How correctly to rewrite domain to a subfolder with HTTPS ?  This will just redirect all request to subfolder1  RewriteCond %{HTTP_HOST} ^(www.)?example1.com$    RewriteRule !^subfolder1/ subfolder1%{REQUEST_URI} [L]   If I change to   RewriteCond %{HTTP_HOST} ^(www.)?example1.com$    RewriteRule !^subfolder1/ https://subfolder1%{REQUEST_URI} [L]   then it will generate a loop  The problem is if I navigate to this url: example.com  , then I want it to redirect to HTTPS, and to not change the url to something like: example.com/subfolder1   I want to make the above to work with HTTPS.


Am I right in thinking that the Drupal distributions that I can download from  are a standard Drupal core download with a load of other stuff added at /profiles?  Anyone know if there are any plans to create a dev branch of distributions that would automatically update the core version that the distribution is running on? Currently it seems that the distribution runs on whatever core version its developer has chosen.  And how can I use distributions with Drush? Is there an equivalent to drush dl drupal that will download a specific distribution?  And, finally, is there any difference between an install profile and a distribution?


Is it acceptable to begin a declarative sentence with "Am"?

I want to know firstly if it's grammatically correct to start a declarative sentence with "Am". For example:     Am excited about the game today.   Secondly, if it is grammatically incorrect, then I wanted to ask how much "head room" there is for the above usage. I can't think of an example now, nor find one here at english.stackexchange. However I imagine there are usages of the english language that grammatically are illegal, yet have somehow become accepted as colloquial or idiomatic perhaps.


The following code I got from:     \documentclass{article}   \usepackage{pgfplots}  \usetikzlibrary{patterns}  \makeatletter \newcommand{\pgfplotsdrawaxis}{\pgfplots@draw@axis} \makeatother \pgfplotsset{only axis on top/.style={axis on top=false, after end axis/.code={              \pgfplotsset{axis line style=opaque, ticklabel style=opaque, tick style=opaque,                           grid=none}\pgfplotsdrawaxis}}}  \newcommand{\drawge}{-- (rel axis cs:1,0) -- (rel axis cs:1,1) -- (rel axis cs:0,1) \closedcycle} \newcommand{\drawle}{-- (rel axis cs:1,1) -- (rel axis cs:1,0) -- (rel axis cs:0,0) \closedcycle}  \begin{document}    \begin{figure}[htpb]      \centering      \label{fig:p3:c1}      \begin{tikzpicture}        \begin{axis}[only axis on top,         axis line style=very thick,          axis x line=middle,          axis y line=middle,           ymin=-1,ymax=5.99,xmin=-1,xmax=5.99,           xlabel=$x$, ylabel=$y$,grid=major        ]          \addplot [draw=none, pattern=north west lines, pattern color=blue!40, domain=-10:12]                  {3-3/2*x} \drawge;         \addplot[very thick, domain=-1:2.5,<->] {3-3/2*x};        \end{axis}      \end{tikzpicture}      \caption{Problem 4, Part A}    \end{figure}   \end{document}   The question here is how can I get it to work with a setting like the following:    \documentclass[dvipsnames]{article} \usepackage{amsmath,pgfplots,tikz} \usetikzlibrary{arrows,calc} \begin{document}      \begin{tikzpicture}[transform shape,scale=0.6]     \draw[step=1cm,gray,very thin] (-4,-3) grid (4,5);     \draw [-latex,thick](-4,0) -- (4,0) node[right] {$x$} coordinate(x axis);     \foreach \x in {-3,-2,-1,1,2,3}              \draw (\x,0.1) -- (\x,-0.1) node [fill=white,below] {$\x$};     \foreach \y in {-2,-1,1,2,3,4}              \draw (0.1,\y) -- (-0.1,\y) node [fill=white,left] {$\y$};     \draw [-latex,thick](0,-3) -- (0,5) node[above] {$y$} coordinate(y axis);     \node at (-0.25,-0.3375) {0};     \draw[color=Cerulean,latex-latex,domain=-1.3:4] plot (\x,-3/2*\x+3);     \filldraw[OrangeRed] (0,3) circle (1.5pt) node[inner sep=2pt,right,fill=white,shift={(0.25,0)}] {$(0,3)$};     \filldraw[OrangeRed] (2,0) circle (1.5pt) node[inner sep=2pt,right,fill=white,shift={(0.25,0.35)}] {$(2,0)$};     \end{tikzpicture} \end{document}   That is, I would like to represent the solution set of the inequality in a similar manner as is done using pgfplots in my last example above. Is this possible?


It is possible to define "styles" in tcolorbox listings?

I am writing a document where I use tcolorbox to list code. I would like to have a couple of commands to list code from an external file, and one (or two) environment for inline snippets. What I have (and it's nicely working) is something along the way of this MWE:   \RequirePackage{filecontents} \begin{filecontents}{test.c} #include <stdio.h>  int main() {      return 0; }  \end{filecontents}  \documentclass{article} \usepackage[listings, breakable, skins, fitting]{tcolorbox}  % from http://tex.stackexchange.com/a/163617/38080 \newtcbinputlisting[auto counter]{\putcodecomment}[2]{     listing file={#1},     title={Listing \thetcbcounter: #1}, fonttitle=\bfseries,     listing and comment,     comment={#2},     %%% start of common things here      breakable,     width=0.9\linewidth,     bicolor,     lower separated=true,     colback=red!5,     colframe=red!75!black,     listing options={       language          = {[Visual]C++},           % Language       basicstyle        = \ttfamily,             % Default format                 keywordstyle      = \color{blue},          % Keywordformat                                      breaklines        = true,                  % Automatic line breaks       breakatwhitespace = true,                  % Line breaks only at white spaces       tabsize           = 4,                     % Number of spaces equal to a tab       showspaces        = false,                 % Show spaces in the code       showtabs          = false,                 % Show tabs in the code       showstringspaces  = false,                 % Show spaces among strings   }, }  \newtcblisting{justcode}[0]{     listing only,     breakable,     width=0.9\linewidth,     %%% start of common things here      breakable,     width=0.9\linewidth,     bicolor,     lower separated=true,     colback=red!5,     colframe=red!75!black,     listing options={       language          = {[Visual]C++},           % Language       basicstyle        = \ttfamily,       % Default format                 keywordstyle      = \color{blue},          % Keywordformat                                      breaklines        = true,                  % Automatic line breaks       breakatwhitespace = true,                  % Line breaks only at white spaces       tabsize           = 4,                     % Number of spaces equal to a tab       showspaces        = false,                 % Show spaces in the code       showtabs          = false,                 % Show tabs in the code       showstringspaces  = false,                 % Show spaces among strings   }, }  \begin{document}  \putcodecomment{test.c}{%     No comment here  }  \begin{justcode}     a = a + 1;  \end{justcode}  \end{document}     ... which works, but as you can see, I had to use copy and paste to "repeat" the common part of the options of the boxes. Now, if I want to change the color of the background, I need to change it in two (really they are four) different place.   I tried to put all the common option in a \def\commonoptions{...} but it choked...   Is there a way to put the common part in common "style" so that I can organize it better? Something on the line of the tikz styles?


Does counterspell require seeing the casting or the caster?

Counterspell:  Casting Time: 1 reaction, which you take when you see a creature within 60 feet of you casting a spell  What does "you see" refer to, the creature or the casting of a spell? In other words, can you Counterspell for example, if you hear a creature within 60 feet of you casting a spell, and see the creature? Example: You are looking at someone with full-face helmet, and they cast a verbal-only spell at someone else next to them. Can you Counterspell?


EDIT: This is not a duplicate. The other question describes a consistent failure. My system can hibernate and resume sometimes, indicating that the basic config (kernel command line, etc) is correct.  Most of the time sudo pm-hibernate hibernates my machine properly, and there are no problems on restore. I have a huge swap partition and there were no issues before upgrading from Ubuntu 12.04.  Now the command sometimes exits with 1 immediately and absolutely nothing happens. Or it hangs for ~10 minutes, also with no effect. From my  pm-suspend.log:  Fri Jun 17 19:13:16 MSK 2016: performing hibernate sh: echo: I/O error Fri Jun 17 19:20:32 MSK 2016: Awake. Fri Jun 17 19:20:32 MSK 2016: Running hooks for thaw   The disk is new and healthy. Where does this I/O error happen, and how can I fix it?


Which of the following is correct: "It cannot be seen, nor touched." and "It cannot be seen, or touched."

Helen Keller said, “The best and most beautiful things in the world cannot be seen, nor touched . . . but are felt in the heart.”  Shouldn't it be "cannot be seen or touched" since the word "cannot" is used?


My friend, Adam's birthday or My friend's, Adam's birthday

Which one is correct?         It is my friend's, Adam's birthday.   It is my friend, Adam's birthday.       Does the word 'friend' need an apostrophe to show possession?


It's wide known that for polynomial interpolation Chebyshev sites (as knots) are almost optimal, we can show that using those the Lebesgue constant is near to the lower bound.  Is that claim also valid for piece wise polynomial regression? this is, by setting the break points in the Chebyshev sites, do I obtain an analogous result regarding the optimality of the estimation? If yes, is there any form to prove that, for instance some analogous of the Lebesgue function/constant in the regression framework? Thanks in advance for your answers.


Chrome shows a password suggestions for an input field

I have one input field with type text and jQuery Datepicker. A weird thing happening is that when I click on that input field, chrome shows a password suggestion.  <input name="registration" type="text" placeholder="MM.JJJJ">   When I remove the name then it stops suggesting passwords.


In the third Hobbit film, Saruman tells Gandalf, Galadriel, and Radagast, to get as far from the Nazgul realm as possible, while he goes to handle Sauron alone.  However, we never see him again, for the rest of the movie. Saruman is obviously still good at this time, it's hard to believe he was evil all this time, with nobody noticing.  Did he go fight Sauron, during the film?


Interesting Recursive (Telescoping?) Inequality

Let $x_0 = 5,$ and $x_{n+1} = x_n + \frac {1} {x_n}$ for n = $0, 1, 2, . . ..$ Show that $45 < x_{1000} < 45.1.$  First noticing that $x_{n+1}-x_n= \frac {1}{x_n},$ we get $\sum \limits_{n=1}^{1000} \frac{1}{x_n} = x_{1000} - 5$ with some simple telescoping.   Now we want to find some inequalities for $\sum \limits_{n=1}^{1000} \frac{1}{x_n},$ which I tried to do with more telescoping, but I've had no luck finding a good way to express $\frac{1}{x_n}$ between two bounds.


More than 1000 gallons of paint is/are sold each day

Possible Duplicate:             Can anyone help me determine the correct verb in this sentence? I am not sure what to do. If it were not such a complex introductory phrase, it would be more obvious. The general consensus of my friends who are not professional writers is that the verb should be are.   To me the question is whether or not the subject is singular (i.e., “a large collective volume of paint”, perhaps in a tank) or plural (a lot of the individual gallon containers of paint).  If simplified to other options, it would be like these:   Paint is sold. Gallons of paint are sold. More paint is sold. More gallons of paint are sold. More than 1000 gallons of paint is sold. [emphasis on total volume] More than 1000 gallons of paint are sold. [emphasis on individual containers]


What is a good word to mean "nostalgia for the future"?

Especially when "nostalgia" is presented in terms of "a longing for the past" and "evoking fond memories." For example, a word which would mean "a fondness for the present or future."   A contextual sentence might be:     He never seemed to dwell on past times—good or bad—and had countdown calendars around his house for nearly every holiday imaginable. When making conversation with him, you could always sense an excited anticipation in his words. He claimed that it was an intense feeling of ___ which drove him to look forward so enthusiastically.


In C# what is the difference between the upper and lower case String/string?

Newbie here, in C# what is the difference between the upper and lower case String/string?


Soving a Complex Integral along a circle

I have a complex integral $$\int_{|z|=r}x \, dz$$ for the positive portion of the circle.  I know that this integral seems easy enough but I am having trouble with it, and I'm fairly certain my answer is incorrect.  I wanted to use a parameter such that $x=r\cos\theta$, so we then have $dz=dx+i\,dy=dx$ since there is no reason to have have the $i\,dy$ since the imaginary part is equal to $0$.  So now I have the double integral  $$\int^r_0\int^\pi_0 r \cos\theta \, dx$$  which equals $0$ since integration the $\cos\theta$ gives $\sin\theta$ and evaluated from $0$ to $\pi$ makes the integral evaluate to $0$.  Am i misinterpreting part of the question?  Way off base?  The book suggests to also solve the problem by realizing $x=\frac{1}{2}\left(z+\frac{r^2}{z}\right)$ along the circle.  For this portion of the problem I assume that I would integrate the above by $z$ as if it were a normal calculus problem, but I have problems with what to put as upper and lower limits.  Thanks in advance!


I have a mesh and when I access edit mode I can select a vert, but how can I see what verts it is? Because the "Verts:1/2712" will always stay 1. I don't want to see how many I have selected, but the number of the one I have selected. So when I have a mesh with 2715 vertices, and when I select the last, then I want to see: '2715'.  A screen of when I want to see the vert:


How can we show that the intersection of a series of closed unbounded sets is closed unbounded?

I am currently stuck on an exercise in set-theory and would like to get some help: If $S$ is a stationary subset of a regular uncountable cardinal $κ$, and a subset $C$ of $κ$ is an S-cub if it is unbounded in $κ$ and $\sup(x) ∈ C$ holds for every $x ⊆ C$ with $\sup(x) ∈ S$, then how can we prove that for every sequence $(C_α | α < λ)$ of S-cubs with λ < κ,  $\bigcap_{α<λ} C_α$ is an S-cub?  Thanks in advance.


Installing mpd 0.17 or 0.16 on debian squeeze

How could I install mpd 0.17 or even 0.16 on debian squeeze? It's been suggested to me that I should use backports, but I did not quite understand what I should do in case of unmet dependencies. For instance, mpd 0.17 exists on wheezy-backports but it depends on libraries that are a greater version than what is available in the squeeze repos. Should I install every dependency one-by-one from the ready packages on the backports (if they exist)? Or should I install them from the wheezy repos?  My sources.list file is:  #  # deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official Snapshot amd64 LIVE/INSTALL Binary 20130824-13:07]/ squeeze main non-free  # deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official Snapshot amd64 LIVE/INSTALL Binary 20130824-13:07]/ squeeze main non-free  deb http://ftp.gr.debian.org/debian/ squeeze main deb-src http://ftp.gr.debian.org/debian/ squeeze main  deb http://security.debian.org/ squeeze/updates main non-free deb-src http://security.debian.org/ squeeze/updates main non-free  # squeeze-updates, previously known as 'volatile' deb http://ftp.gr.debian.org/debian/ squeeze-updates main non-free deb-src http://ftp.gr.debian.org/debian/ squeeze-updates main non-free  # backports deb http://ftp.gr.debian.org/debian wheezy-backports main contrib non-free deb http://ftp.gr.debian.org/debian wheezy main contrib non-free deb http://backports.debian.org/debian-backports/ squeeze-backports main contrib non-free   EDIT: I couldn't get the sources with apt-get source mpd=0.17.6-1~bpo70+1. apt was giving me this error:   E: Ignore unavailable version '0.17.6-1~bpo70+1' of package 'mpd'  E: Unable to find a source package for mpd   apt-cache showsrc mpd returned the only the squeeze version.  EDIT 2:  Trying to install version 0.16 from wheezy. I got the sources but when I ran debuild -uc -us it gave me errors about unmet dependecies. Building the deps with apt-get build-deps mpd=0.16.7-2 returned that it required libmp3lame0 (= 1:3.99.5), and I have 3.98.4+repack2-3~bpo60+1.


How to prevent browsers from remembering last logged user?

Let me start off with these sources I have found that are not helpful to me, because they are not asking the same thing, no matter how similar it might sound:       And recently:    Essentially, these threads all suggest browser settings & adding the attribute autocomplete='off'. This is not a valid solution for me nor is it the issue that I am having. My issue is as follows:  Using Incognito Mode in Chrome:   User A clicks on "Patient Portal" to bring them to the login page. (Good) User A logs into their account by filling in their email & password. (Good) User A logs out of their account & is brought back to the Kiosk home page. (Good) User B clicks on "Patient Portal" to bring them to the login page. (Good) User B sees User A's email filled in the email field. (BAD)   User B can remove User A's email from the field & enter their own without Chrome's suggestions of previously entered emails.  It is not okay to retain a users email address on a public computer, how might I fix this issue?


What's the difference between "i.e." and "that is"?

I'm writing a scientific paper, I want to use i.e. or that is to clarify a term. Are they both correct or either?


Should I use who or whom in the following situation?

"I do," said Mr Takeda.      The priest repeated the same question to the bride who/whom gave the same   reply.      They exchanged rings and the priest declared them husband and wife.   What should I use in this case, who or whom? How to deal with this kind of confusion in the future?


Blender interface has been incredibly slow since installation

My issue is that upon startup, my Blender interface runs extremely slow. It takes 1+ seconds to process any mouse input--it takes over a second to move the mouse cursor from one point to the other, or to click on a single button.  I have used Maya, C4D, and 3DS Max and have never had this problem before. I tried opening Unity 3D and Maya, and they both run super fast on my gaming rig.  My Specs are:  Windows 10 AMD Six-Core Processor, 3.5 GHz 16GB DDR3 RAM 64 bit Os, x64-based processor NVIDIA GeForce GTX 750 Ti  I have seen very many posts on Blender Stack Exchange related to my issue, most notably, the ones with josepharaoh99 and KentZ, but none of them seem to solve my problem.   I have tried Right-Clicking on the Blender shortcut to "Run with graphics processor > Integrated Graphics," but the "Run with graphics processor" option is not displayed in the menu that appears when I right-click on the shortcut. I then tried to add Blender to NVIDIA Control Panel, but there is no option to do that.   Someone, anyone, please help me--I don't want to be doomed to a skipping-interface snail-paced Blender forever.


I am trying to insert a figure with a caption into a multicol article. When the figure was inserted on its own, it was fine: includegraphics[width=0.5cm]{image}  However, when I tried to insert the caption [see below], the caption did not appear anywhere in the article and the figure disappeared.  \documentclass{article} \usepackage[hmarginratio=1:1,top=30 mm,columnsep=20pt,hmargin=2.5cm]{geometry} \usepackage[font=it]{caption} \usepackage{paralist} \usepackage{multicol} \usepackage{setspace} \usepackage{graphicx}  \begin{document} \begin{multicols}{2} text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text  \begin{figure}[h!]  \caption{Fig.1 xxxxx} \includegraphics[width=0.5cm]{image} \end{figure}  text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text  \end{multicols} \end{document}   What might be the issue and how could I fix it?


I am not the best when it comes to working with programs like LaTeX and I am unable to open a .tex document, or rather 'LaTeX it' since it keeps coming up with this error.  I have downloaded slashbox.sty, but I am not sure where to put it so that LaTeXiT can use it.  Where should it go?


Surname plural, Wolf becomes The Wolves?

The Simpson family becomes The Simpsons, does that mean I can call a family with surname Wolf, The Wolves or The Wolfs? I don't know if changing letters of someone's surname is appropriate or not.


Files vanished from external hard drive for no reason. Anything I can do about this?

I had some data backed up onto an external hard drive, and it seemed fine. When I reopened the folder a few minutes later, there were only two files left instead of hundreds.  I can't think of anything  I was doing that might have caused this. I wasn't formatting or deleting anything, I wasn't doing anything to file systems, I wasn't doing anything that might have caused this.  The two files left are the two most recently edited.   find and locate commands don't show them anywhere else. Well, sorta: /home/user/.local/share/Trash/files/ contains all the directories, but they're all empty.  Is it hopeless? Is there anything I can do?


I've looked at similar posts on this topic but nothing so far is working.  Unfortunately I can connect to my Colleges Guest WIFI but not the actual WiFi. The school is running security: WPA & WPA2 Enterprise and PEAP authentication.   Some of the things I’ve tried is:   changing the config file inside /etc/NetworkManager/system-connections. My config file does not have   system-ca-cert=true  Attaching the schools CA Certificate (From the IT Deparment) Changing the user name schema to Domain\Username Trying to install drivers (however that’s a rabbit hole inside a rabbit hole) etc.


HP OfficeJet Pro 6978 won't print with Ubuntu 20.04

Ever since I accepted an update my HP OfficeJet Pro 6978 suggested, it won't print. I worked fine before that. The printer application identifies the printer correctly, but when I try to print anything it says it can't connect to it. My laptop and the printer are connected to my router by ethernet cables. I've tried installing hplip-30.20.11 but it says it can't find the printer. I'm ready to throw the HP printer out. What printers work with current Ubuntu? None of the suggestions worked. I'm ready to throw the HP printer out and get something else. What printers work well with Ubuntu now/


Javascript prompt to confirm reopen when voting "leave closed"

This happened when I reviewed the question as "leave closed".  It's rather confusing.  I clicked cancel, and my review was registered and it moved to the next item. Le bug!


How to add vertex precisely at crossing edges?

Let's forget 3D for a while and imagine it all happens in 2D.  I have two edges that are crossing each other, they are on exactly the same plane when it comes to Z axis (z-dimension is thus not important). How do I add a common vertex to those two edges precisely in the spot where they cross each other?  For example:


I have a website built on drupal with search functionality. When I search for example for "test" the link of the search is displayed like search/node/test  Is there any possibility that if I call search/node/test?json or search/node/test/json the returned page would be plain text in json format of node ids ?


Determine if Reynolds Number is large or small in classical mechanics.

In classical Mechanics, there is a reference to the Reynolds Number ( Re=ρvd/η (ρ density, v velocity, d diameter and η the viscosity of fluid)) that relates the ratio $$ f_{\text{quadratic}}/ f_{\text{linear}}$$  When the Reynolds number is large, the quadratic term is important, and when small, the linear term is important. How will I know if the Reynolds Number is large or small in determining when to use the quadratic or linear terms for air resistance in the equation like:  $$f(v) = bv + c^2v = f_{\text{linear}} + f_{\text{quadratic}}$$


Help setting up a home Media + File server

okay, here is the thing -  I want to set up a Media + File server for my home...  I have a tp-link wifi router+modem.  I plan to use xbmc as the media server...i tried it out and i can now use it..  but, i have problems in the following -   how to use the same server as a file server?  i installed vsftpd but i cant understand how to use it from a remote ubuntu , android and windows machine...  is there any other software like xbmc for file server access apart from filezilla... filezilla is fine but i would like to know if there is anything as simple to use as a file manager to access the files on the server...i do use the ubuntu filemanager to access ftp server set up on my phone to access the phone but i cant seem to figure out how to use such a thing where i can just access a location in my network on ubuntu, android, windows pcs...  also, i cant figure out how to remotely upload files on the server for use through xbmc(like movies etc...i guess that shall also be done with ftp..but just asking if there is any other way)..  Access from outside the wifi network is not a priority at first though it would be a thing to add later for sure( guess it needs port forwarding on the router... :/ )  hope my question is understandable... thankyou...


If every nonidentity element in a group is of order $2$, the group is abelian

Let $G$ be a group. Show that if every non-identity element in $G$ has order $2$ then $G$ is abelian.   Proof:  Let $a,b $ be non-identity elements in $G$. Since $|a|=|b|=2$ , that means $ab=babaab$ $=$ $ba$.  Is the proof correct? How can I improve it?


How do I stop/disable unattended upgrades from being launched automatically?

I recently installed Trisquel 8.0 LTS (Flidas) on my Desktop PC which was running on Trisquel 7.0 for 4 year. The system became very slow. When I check the RAM and CPU Usage, I found that CPU is almost at 100 % I tun top to see what is going wrong and found that unattended-upgr is consuming whole CPU.    I tried to kill it by PID using sudo kill 1803 but after sometime, it started again automatically. I know that Unattended Upgrades are purposed to install important security updates automatically, however I need to disable it being launched automatically.  How do I do that?


Prove that the following function is $C^\infty$ (and in the point $ξ=0$) :  $$f:\Bbb R\to\Bbb C:\xi\mapsto {e^{i\cdot\xi\cdot λ}-1\over i\cdot\xi}-λ$$  for whichever $$λ>0$$ I am trying to find a proof for this elementary problem that has been asked in a mathematical competition in France in 2004.Maybe can we find a proof?


Changing column datatype with QGIS Field Calculator

I have seen a solution that I don't get to work - I need to change data type from string to integer and I did what is shown i the image below Can someone point out what I do wrong?


setting model workspace from script (and saving the setting)

I made a model using ModelBuilder. User must be able to specify output featureclasses by basename, I do not want to expose the workspace. The workspace therefore needs to be specified in the model environment. The workspace can be derived from the other specifics.  A savvy user can do this in the toolbox window, however, I want to make it automatic. So, I'm looking for a way to set toolbox environment variables by means of python script. My ArcGIS version is 9.3.1. However, I'm interested in advice pertaining to version 10+ as well, since it just might put me on the right track.


Not quite grasping /dev/random and /dev/urandom

I am not quite understanding the difference between /dev/random and /dev/urandom on Linux systems.  What does it mean to run out of “entropy” and how does the system get more?  What does it mean when people say /dev/random “blocks” if there isn’t enough entropy?  Which one should I use for what scenarios?


i get these weird pixels when rendering an image here is an exanple i whipped up.  not sure of the cause i'm fairly new


How do I find all lines not containing a specific word?

In my case I want to find (using python regex) all lines not containing the words "error" or "empty". In code:       varformals    : PAR_OPEN PAR_CLOSE                                                    {}             | PAR_OPEN varform PAR_CLOSE                                            {}   /* error / | error PAR_CLOSE                                                     {}   / error / | error varform PAR_CLOSE                                             {}   / error */ | PAR_OPEN error PAR_CLOSE                                                {}   ;


How can apache access a file in a directory which has no execute permission?

I am trying to open an html file which is inside a directory that has no execute permission for apache group. Therefore when I try to access the file from apache it displays the error "You don't have permission to access / on the server.". Is there any way I can open the file without changing the permissions of the directory but by editing the access control directives in apache2.conf?


How can I find variations in database schemas?

I'm working with a system where each customer has their own database.  This amounts to ~4000 databases (approximately 150 tables each database) spread over 8 instances of Microsoft SQL server 2012.  The database scheme for all these databases is supposed to be identical, but recent events has shown that there are minor deviations in data types, indexes, keys and nullable/default value settings in some of the databases.  My goal is to synchronize all database schemas so they all have identical tables, columns, indexes, keys and nullable/default value settings  I have a single database that I'm certain has the 100% correct database schema.  How could I compare this database scheme to others, in an attempt to find variations in keys, indexes, tables, columns and nullable/default value settings?  I've read  which is similar to mine, but the suggestions (like right clicking the database object in SSMS to generate a script or generating and comparing a .dacpac file with the Visual Studio extension SSDT) seems to be oriented towards comparing only two databases, and is not practical for comparing 4000 database schemas.


Java Swing NullPointerException error on a Log-in application

I am making a log-in application with java swing, specifically with Eclipse IDE Extension's where it makes a source code out of a visual design that is made, I don't have any errors on my code noticed by the IDE but I got an error message saying java.lang.NullPointerException     at me.garbage.Logger.initialize(UwULogger.java:46)     at me.garbage.Logger.<init>(UwULogger.java:39)     at me.garbage.Logger$1.run(UwULogger.java:26)     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)     at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)     at java.awt.EventQueue.access$500(EventQueue.java:97)     at java.awt.EventQueue$3.run(EventQueue.java:709)     at java.awt.EventQueue$3.run(EventQueue.java:703)     at java.security.AccessController.doPrivileged(Native Method)     at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)     at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)     at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)     at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)  The extension's name is WindowBuilder 1.9.5, I'm using J8.


Limit On Number Of Simultaneous Actions?

Sometimes when things are getting intense I will try to hit every button in short succession (including multiple mouse buttons). Oftimes I find that the activated item is not actually activated, and I can never tell if I'm messing up the click or if league is ignoring some of the actions. Is there a limit on the number of actions your champ can do at once (abilities and activated items)?  e.g. A Xin Zhao with all 4 abilities and an activated item, can you mash the 3 non-ult abilities and the activated item at the same time?  NOTE: I'm not talking about casting lots of abilities at once, I know that there are plenty that can't be cast at the same time. I'm also not talking about  as I have  keyboard.


Around six months ago, I did some light solder work in my room.  I was pretty reckless with the lead solder, and even ate while soldering on several occasions.  Should I be worried about the lead exposure?  Since soldering in my room, I have vacuumed and wiped down my desk several times.  Could small pieces of lead still be present?


straight lines - slope of perpendicular straight lines

Slope of line l (this line is parallel to y-axis) = 1/0.  Slope of line m (this line is parallel to x-axis) = 0.  Line m is perpendicular to line l.  Now, since line 'l' is perpendicular to line 'm'  Therefore, slope of line l × slope of line m = -1.  This implies, 1/0 × 0 = -1


Hello everyone i have a header with a div in my header with a  pic in it but i want to display my pics next to eachother but instead of that its displays it under each other how can i fix this i tried to change my css but didnt work.  its now like this when i add anoter div  How it is now:    I want it like this:    this is my code    @import url('https://fonts.googleapis.com/css?family=Josefin+Sans:400,400i,600,600i'); html, body {   margin: 0;   height: 120%;   font-family: 'Josefin Sans', sans-serif; }  .header {   position: relative;   overflow: hidden;   display: flex;   flex-wrap: wrap;   justify-content: center;   align-items: flex-start;   align-content: flex-start;   height: 50vw;   min-height: 400px;   max-height: 550px;   min-width: 300px;   color: #eee; }  .header:before {   content: "";   width: 100%;   height: 100%;   position: absolute;   top: 0;   left: 0;   -webkit-backface-visibility: hidden;   -webkit-transform: translateZ(0) scale(1.0, 1.0);   transform: translateZ(0);   background: #1B2030 url(https://unsplash.it/1999/999?image=1063) top center no-repeat;   background-size: cover;   background-attachment: fixed;   animation: grow 60s linear 10ms infinite;   transition: all 0.2s ease-in-out;   z-index: -2 }  .header a {   color: #eee }  .info {   width: 100%;   padding: 25% 10% 0 10%;   text-align: center;   text-shadow: 0 2px 3px rgba(0, 0, 0, 0.2) }  .author {   display: inline-block;   width: 50px;   height: 50px;   border-radius: 50%;   background: url(http://favim.com/media/uploads/images/610/140308/black-n-white-cute-funny-iron-man-Favim.com-1462744.jpg) center no-repeat;   background-size: cover;   box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);   margin-bottom: 3px }  .info h4, .meta {   font-size: 0.7em }  .meta {   font-style: italic; }  .twtr {   margin-top: 100px }  .btn.twtr:after {   content: "\1F426";   padding-left: 5px }

TestHeader

         test

 By James Nodws on May 30, 2017


Disabling ContrastEnhancement in GeoServer?

I am using Geoserver to upload and display GTiff images in OpenLayers. The images are unsigned 16 bit grayscale at about 300MB size and are processed to to give better performance using the methods .  When viewing the images in OpenLayers it changes darkness when zooming in/out and from what I understand this is coming from the ContrastEnhancement property in the style script (SLD).  This is not necessary with the images I have and are only lowering the performance.   Is it possible to disable this altogether?  Changing from Normalize to Histogram in SLD makes it better, but now black values for some reason will be treated as no-value and become transparent when zooming in.  I am fairly new with GeoServer.


How can i update a dictionary with keys from a list dict_keys and values from a list dict_values? I have tried using for loop in this way: for i in dict dict_keys:     for o in dict_values:         dict(i) = o


How can I detect my graphics card with no driver installed?

I have no idea what graphics card hardware do I have, and have no driver installed. How can I detect what graphics card do I have to install the right driver?


Website and Active Directory domain share the same name

In our network the name of the network domain is also the domain of the organization's website (say, example.com). Externally, people can enter example.com to visit our website, but internally, this points to one of the several domain controllers, we have for Active Directory, some of which do not even run a webserver.   As a result of this, links to http://example.com don't work internally (only www.example.com does work internally).  How do we point http requests transparently to the web server, and what side effects does this have?


What's the difference between RSA and Diffie-Hellman?

I've been reading on a lot of websites that same thing: RSA is for communication using the public and private key for both the server and client, where Diffie-Hellman is just for exchanging the same secret key that will then be used for both encryption and decryption, but they both depend on the same MATHS, e.g: that  on quoraThen I was confused when I also read that RSA shares a master and pre-master key, as well, like in this :SO, the question here is, does RSA use the public and private key to encrypt the whole conversation, or is it used just to encrypt a key then the encryption depends on that symmetric key? And if it was used to encrpyt the key and it was the same MATH as Diffie-Hellman, so what is the difference anyways??


Book recommendations for fluid dynamics self-study

I have my bachelors degree in engineering science: computer science, option electrotechnic. I have a good understanding of basic mechanics and dynamics, calculus (differential equations).  The books I'm now having a look at are:       What book do you recommend for studying fluid dynamics on my own and why?


When I write, I treat references as though they are proper nouns; for example, Chapter 10, Section 10, Line 10, Page 10. (As opposed to chapter 10, section 10, line 10, page 10 - no capital letter.)  [My short forms would be Ch.10, s.10, l.10, p.10]  Until now, I've never been picked up on it. I wrote a piece that involved numerous references to numbered lines. Here is an example from my piece:     Ham makes further attempts to connect with the reader in Line 26, where she writes...   This was corrected to "line 26" (no capital).  I can't really explain why I think references should be capitalised, but I surely must have picked it up from somewhere.  So, my question is - if not common practice, is there anything wrong with capitalising (line) references? Are there any style guides that have a preference for capitalised references?


I have done a few normal inductions (like divisibility and sums) and know a little bit about strong induction. I can't find any problem similar to this one and am struggling to understand any intuition that would make proving this statement any easier. Here is how far I have gotten (not very much): Base Case: $4^1 < 5^1$ $4^2 < 5^2$ $16 < 25$ Induction: $4^k < 5^k$ $4^{k+1} < 5^{k+1} = 4\times4^k < 5\times5^k$ I have no clue where to go or how to force the k+1 equation to somehow equate to the k equation. Sorry if this has been asked before. Thank you.


Is there some way to add text between the items of an enumerate or itemize environment

The title says it all. This does not seem possible with a regular enumerate or itemize enviroment. Do you need to use a special/custom environment for this, or am I missing something?  I thought this might be a duplicate, but did a search and did not find anything.


1) I have recently installed Ubuntu 20 LTS. I went to the Ubuntu Software app and clicked on installed. This section is completely blank. There is an error message that states that the app can't find the directory.  2) I downloaded the Ubuntu Studio software installer and installed all the software on top of regular Ubuntu. I want to remove some of this software but I am unable due to the problem above.  Any help?


Rendered image is not as smooth as in 3d preview

I'm a newb to blender so apologies if this is obvious.  I modelled a simple cup and set the modifier subdivisions to 5 after I turned on 'smooth'.  It renders fine in the CTRL+Z render preview window but when I do a final render the handle of the cup is blocky and not smooth.... Any ideas what I'm doing wrong?  Attached pics of the render with blocky handle and the object/render settings   Many thanks


set a maximum width and height for an image

I would like to define a maximum height and a maximum width for an image at same time. I suppose there must be a package to do this, but actually I'm unable to find it...


I followed many many tutorials but it doesn't work. I want to install the compat-drivers which include the negative-one-patch. In airodump-ng I always get the error: mon0 is on channel -1, but the AP uses channel...  I tried many OS, like Ubuntu 13.04, 12.04/10 and Neptune 3.1 from ZevenOS. I also tried BackTrack but it doesn't boot.  The only thing I want is to install succesfully the compat-drivers.  If so, could anyone help me, it would be very nice! Thank you very much!


Prove that if $a, b, c \geq 0$ then $(a + b)(b + c)( a + c) \geq 8abc$

Prove that if $a, b, c\ge 0$, then $(a + b)(b + c)(a + c)\ge 8abc$.


If the eating meal starts at 7:00 AM and finishes at 8:00 AM. the drinking liquor starts at 7:00 AM and finishes at 7:50 AM.  can I say that :   I drank the liquor when I ate the meal. I ate the meal when I drank the liquor.   Is I need to use progressive tense ?


In many sources I have seen that in order to prove that any field is euclidean domain we need to take function $d:F-\{0\}\mapsto \mathbb{Z}_{\geq 0}$ and mostly $d$ is taken to be the $d(x)=1$ for any nonzero $x\in F$.   But if I define the function $d$ in different way, namely $d(x)=0$ for any nonzero $x\in F$ then everything still be fine.  1) $d(xy)\geq d(y)$ holds for any nonzero $x,y\in F$.  2) If $a,b\in F$ where $b\neq 0$  then $\exists q,r\in R$ such that $a=bq+r$. In our case we can take $r=0, q=b^{-1}a$.  P.S. In general we can take $d(x)=k$ where $k$ is any nonnegative integer.  Am I right? Would be very grateful for help.


my iphone5 is shutting down and has no power to turn on what do i do?

I've had my iPhone 5 for a year now but ever since iv had it it always had battery problems, i tried to replace it with a new battery but it would work for a day and the power off. Now when i try to charge it it doesn't light or display anything even charging over night doesn't put the phone on, does anyone know what i can do?


I have a DVD I was trying to rip, and handbrake froze up when scanning it.  I tried to eject the DVD by dragging and dropping it to the trash, which trashed the icon, but didn't eject the DVD.  I then forced Handbrake to quit, but without an icon on my desktop to select, how can I eject the DVD?


I want to limit the end date to 3 days from the current date. This code is

<script> function checkDate() {     var selectedText = document.getElementById('datepicker').value;     var selectedDate = new Date(selectedText);     var now = new Date();      if (selectedDate < now) {         alert("Date must be in the future");     } } </script>   This code throws an alert message when the past date is selected from the calendar  How can I get to restrict the future dates from selecting from the calendar


Determining bounds for the sum $\sum\limits_{n=1}^\infty \frac{1}{2^n - 3^n }$

I have to give low and high bounds for the following:  $$ \sum_{n=1}^\infty \frac{1}{2^n - 3^n } $$  How do I determine an upper bound? How can I show this sum exists?  edit: removed erroneous conclusion.


How to read a picture with name # in it?

Probably avoiding to use #  would be best at the first place but for musical chords I would like to name my image something like F#m.png . The problem is that latex does not allow to write  \includegraphics{F#m.png}   If I do  \includegraphics{F\#m.png}   Then I will get a file not found error since now F\#m is considered as the filename.


Will I get to experience the whole storyline as a new WoW player?

WoW has had gone through several expansions now. If I start playing as a new subscriber at this time, will I still get to experience the storyline since its first release or will I miss out all the previous storyline?


How to log all commands run on Linux including their arguments (parameters)?

How can I log all commands executed on Linux, including their command-line arguments (parameters)?  So, for example, if someone runs:  rm -rf /tmp/foo   I would see a log entry similar to this:  2016-01-01 18:00:00 user=bob command='rm -rf /tmp/foo'   And not just this:  2016-01-01 18:00:00 user=bob command='rm'   I have only been able to find uses of auditd which don't log command-line arguments (parameters). Is there a way to properly configure auditd to record this? It looks like FreeBSD has a , but this doesn't seem to be present in Debian derivatives.


I've trouble with placing images in LaTeX. I know that is a starter problem.  In my document (research) I have a lot of graphs (40 graphs on 20 pages). So LaTeX just throw all images in all directions and the text in another direction. So I have some text clustert on some pages, and just a huge among of images on another one. So actually there are some text with the corresponding image like four pages beneath.  Is there any method to make LaTeX place the images correctly? So there is an image and then some text and than the next image? Like how I wrote it in my Tex-Document?  It doesn't matter if LaTeX just make a pagebreak and let some free space on sites, so that the text and images are in the right order. And \pagebreak doesn't help, LaTeX doesn't make anything. And it would actually be nice, if I not have to write \pagebreak all the time, but when LaTeX would do it for me.  Could you please make a suggestion for a one columnd and a twocolumn document? I write in documentclass article.  PS! I think a lot of us who are new to LaTeX have the same problem.  \documentclass{article} \usepackage{graphicx}  \begin{document} \end{document}


how can I get my fstab mounts working if they won't mount on bootup?

The suggested answers (a typo in fstab; _netdev) have no effect. However when I mount them with sudo mount -a there are no issues and they are mounted.   Here's the first entry. The other two are nearly identical, just a different path on each side of the connection.   # added line break for readability  //192.168.1.9/video/cartoons /media/saturn-cartoons  cifs credentials=/home/media/.smbcredentials,_netdev, iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777 0 0


If I were to win the election, I would restore the vitality of downtown area.  In the above sentence, I understand that it's a hypothetical situation so it comes with "I were" and "I would". However, I don't understand the use of "were to". What is the intended meaning of "were to" here.


Why is $H(k\mathbin\Vert x)$ not a secure MAC construction?

If $H(m)$ is a secure hash function, can't we implement a MAC using $H(k\mathbin\Vert m)$?  However, it seems the more widely used MACs, such as NMAC and  (both originally defined in ) use a much more complicated scheme. Why is this concatenation scheme insecure?


MacBook keeps losing connection to external monitor when waking from sleep mode

Using my Macbook Pro on Catalina 10.15.7, when my Mac wakes from sleep mode it loses the connection to my Samsung monitor. I have to unplug the hdmi cable and reconnect to get it to detect my monitor again. Is there anything I can do to prevent this? My MacBook details are: Model Name:    MacBook Pro    Model Identifier: MacBookPro16,    Processor Name:   Quad-Core Intel Core i5    Processor Speed:  1.4 GHz    Number of Processors: 1    Total Number of Cores:    4    L2 Cache (per Core):  256 KB    L3 Cache: 6 MB    Hyper-Threading Technology:   Enabled    Memory:   16 GB    Boot ROM Version: 1037.147.4.0.0 (iBridge: 17.16.16610.0.0,0)    Serial Number (system):   C02DF018P3YV    Hardware UUID:    1185ACE8-96B4-5B4C-A7A1-604EEAAFAC70    Activation Lock Status:   Disabled


Getting ping'd in some chatrooms (servers?) makes a nice little ding!, in some others you get a loud bonk! Inconsistency is evil, this needs to be fixed.  Or rather, instead of forcing a uniform bink! on all chat users across the network, how about making the ping notification sound a configurable preference?  We can already choose to have sound on or off. I propose to expand that into something like...   (off) Ding Bonk Lightsaber swoosh Knock-knock   Would that be feasible?


I am trying to create a 10X10 grid of JButtons. I have tried using a 2D array to instantiate the buttons but I get a NullPointerException error

As I am working in NetBeans all components have been auto generated and initialised. the JButton array has been declared as JButton [][] btnArr in the class;    private void createButtons() {     btnArr = new JButton[10][10];      for (int i = 0; i < 10; i++)         for (int j = 0; j < 10; j++)         {             btnArr[i][j] = new JButton();             pnlButtons.add(btnArr[i][j]); //Error on this line             btnArr[i][j].setVisible(true);             btnArr[i][j].setBounds(i * 30, j * 30, 30, 30);             btnArr[i][j].setActionCommand("" + i + j);         } }


subfloat, how to put two tables side by side instead of one above the other?

I need to put two tables side by side in my Springer LNCS paper. I used the \subfloat command but something went wrong: instead of being side by side, one is below the other.  Here's my code:  \documentclass[oribibl]{llncs} \usepackage[numbers]{natbib} \usepackage[pdftex,bookmarks=true]{hyperref} \usepackage{amssymb} \setcounter{tocdepth}{3} \usepackage{graphicx} \usepackage{url} \usepackage{amsmath, amssymb} \usepackage[table]{xcolor} \usepackage[lofdepth,lotdepth]{subfig}   \def\truncationLevel{k} \def\AP{\mathtt{AP}} \def\NAC{\mathtt{NAC}} \def\AC{\mathtt{AC}} \def\AR{\mathtt{AR}} \def\ROC{\mathtt{ROC}} \def\AUC{\mathtt{AUC}}   \begin{document}  \begin{table}[t]\subfloat[\footnotesize Numbers of $\AP$ and $\NAC$ annotations for \emph{H. sapiens} CC when varying the SVD truncation level $\truncationLevel$, and their corresponding $\ROC$ $\AUC$ percentage.The likelihood threshold is fixed  \rosso at \nero  $\theta=0.49$.]  { \centering \begin{tabular}[t]{|c|r|r|c|c|}            \hline \multicolumn{5}{|c|}{SVD when varying truncation $\truncationLevel$ } \\  & \emph{\textbf{k}} & $\AP$ & $\NAC$ & $\ROC$ $\AUC$ \\ \hline \multicolumn{5}{|c|}{\emph{Homo sapiens} CC} \\ List0   &   \textbf{378}    &   8   &   4,458,751 & 83.49\% \\ List1   &   \textbf{402}    &   2   &   4,458,757 & 53.64\% \\ List2   &   \textbf{390}    &   7   &   4,458,752 & 53.58\% \\ List3   &   \textbf{291}    &   19  &   4,458,740 & 53.14\% \\ List4   &   \textbf{349}    &   8   &   4,458,751 & 52.97\% \\ List5   &   \textbf{233}    &   48  &   4,458,711 & 51.82\% \\ List6   &   \textbf{175}    &   78  &   4,458,681 & 48.80\% \\ List7   &   \textbf{117}    &   86  &   4,458,673 & 45.11\% \\ List8   &   \textbf{59} &   95  &   4,458,664 & 38.82\% \\ \hline \end{tabular} \label{tab:HOMO-SAPIENS-CC-DATI-TRONCAMENTO} }  \qquad  \subfloat[\footnotesize Numbers of $\AP$ and $\NAC$ annotations for \emph{G. gallus} MF and \emph{B. taurus} MF when varying the SVD truncation level $\truncationLevel$, and their corresponding $\ROC$ $\AUC$ percentage.  The likelihood threshold is fixed \rosso at \nero $\theta=0.50$] { \centering \begin{tabular}[t]{|c|r|r|c|c|} \hline \multicolumn{5}{|c|}{SVD when varying truncation $k$ } \\  & \emph{\textbf{k}} & $\AP$ & $\NAC$ & $\ROC$ $\AUC$ \\ \hline \multicolumn{5}{|c|}{\emph{Gallus gallus} MF} \\ List0   &   \textbf{40} &   9   &   39,340 & 75.38\% \\ List1   &   \textbf{53} &   5   &   39,344 & 74.33\% \\ List2   &   \textbf{27} &   10  &   39,339 & 73.69\% \\ List3   &   \textbf{14} &   11  &   39,338 & 67.25\% \\ List4   &   \textbf{1}      &   164 &   39,185 & 35.98\% \\ \hline \multicolumn{5}{|c|}{\emph{Bos taurus} MF} \\ List0   &   \textbf{70} &   11  &   120,318 & 74.74\% \\ List1   &   \textbf{93} &   8   &   120,321 & 74.59\% \\ List2   &   \textbf{47} &   11  &   120,318 & 73.57\% \\ List3   &   \textbf{24} &   32  &   120,297 & 68.59\% \\ List4   &   \textbf{1}  &   369 &   119,960 & 35.21\% \\ \hline \end{tabular} \label{tab:GALLUS-GALLUS-BOS-TAURUS-MF-DATI-TRONCAMENTO} } \label{tab:DOUBLE-TABLES}\caption{\rosso DA SISTEMARE \nero} \end{table}      \end{document}       And here what is printed out:    Do you have any idea about solving this problem? How could I put the two tables side by side?


Would it be inappropriate to cite wikipedia for something trivial in an academic article?

Edit: I believe this is not a duplicate of , because that question asks about citing Wikipedia for knowledge that is very basic but is nonetheless highly relevant to the core subject of the paper. My question is about citing  Wikipedia for something that is, by contrast, unrelated to the core subject matter of the paper, and thus is trivial in the sense of being unimportant rather than trivial in the sense of being common or basic knowledge.  Many previous questions on this site touch on citing Wikipedia, but none of them seem to me to address this specific issue.  I am writing a statistics paper. The focus and original work of the paper is abstract and theoretical. To introduce some of those ideas, I have a silly little thought experiment involving golf, and choosing which properties one wants one's club to have.  To be clear, nothing about the paper's actual focus is relevant to golf. The golf example is just a helpful, concrete way to introduce the perspective I am taking in the paper on certain statistical techniques.  To flesh out this example, I need to be able to describe the various options one has when choosing a golf club (head material, shaft length, etc.). I have learned from Wikipedia everything I need to know about these options in order to describe my silly little thought experiment. Would it be inappropriate to cite Wikipedia in a case like this? Would reviewers/readers raise an eyebrow at my doing so? Do I really need to spend time reading primary sources on various golf head materials just to be able to include this silly thought experiment in my paper?


I have in a directory some *.csv files. I want to insert inside each file, its name.  The following code do it, but I also need to remove, delete the pattern .csv  for file in *.csv; do echo "$file,"$"$(cat -- "$file")" > "$file"; done   for example  if the name is London.csv and inside I have 10, 20, now I get  London.csv, 10, 20   I need to reduce it to,  London, 10, 20   With your help, I get it with this update  for file in *.csv; do echo ${file%.csv},"$"$(cat -- "$file")" > "$file"; done


In LaTeX, there are two epsilons: \varepsilon and \epsilon.    When I see the second one used in mathematics texts, I consider it a typo, because the first one corresponds to what is used in the majority of texts but also what is used when writing maths by hand. By personal taste, I prefer the first one and consider it the correct version.   Be that as it may, whichever is the correct one, there seems to be no need to have two. Hence my question:   Why are there two versions or epsilons? Why does the command \epsilon not get compile into the first version?  \documentclass{article} \usepackage{amssymb}  \begin{document} \begin{tabular}{ll} \texttt{\textbackslash{}varepsilon}     & \(\varepsilon\)   \\ \texttt{\textbackslash{}epsilon}        &\(\epsilon\)            \end{tabular} \end{document}


How can I copy MySQL users table from one server to another?

I'm setting up up a new MySQL server and I'd like to give it the same set of usernames, allowed hosts, and passwords as an existing server (which is going away).  Would it work to just do a dump of the users table and then load it on the new server?  Is there a better way than that?


I would like to install AMD drivers for my Dell Latitude E6540, but I couldn't find any. Here are my system specifications.   Thanks


So, i want to make a timer that will turn on/off a circuit. I want to turn on the connected device at 08:00 and stop it at 20:00, so the interval is 12 hours. Correct me if i'm wrong but i can't use IC 555(or another IC), i'll need some huge resistors/capacitors. Is there another way to build that other than using a microcontroller?


I wish my father "were having the stuff" or "was having the stuff"?

"I wish my father were having the stuff" or "I wish my father was having the stuff" ..  "And what if I wish my father having the stuff", is that bring different time definition? Thank you..


So rolling a d100, or percentile dice, you (typically) would roll 2d10, take one in the tens place and one in the ones place. Does this mean if I roll a 90 and a 0 (a 10) that I get 100? Does that not increase the chances of me getting a 100, since I could get it two different ways, or am I misunderstanding?   I believe I understand everything else about these dice. For instance, a 00 and a 0 are 100, a 30 and a 4 are 34, a 00 and 1-9 is 1-9, et cetera, but this one has me stumped.  Any feedback and help is appreciated!


What is a better solution to make gaps between active areas of menu items or place them close to each other? I'm asking just about active areas of links not about visual styles.   For example, maybe gaps help to aim on touch devices. Is it not good when cursor switches between pointer and normal when it hovers on menu?  Live demo


Bug in calculation "Reputation gained since your last ..."

If I get a downvote on one of my posts and then delete this post, I get back my reputation. However, the "Reputation gained since your last ..." will not show the correct value:  Reputation of the day:    Reputation gained since:    Reputation tab:    These values should be equals because I have visited the reputation tab before I get the first reputation of the day. The downvote and the remove of the answer was an the same day.  UPDATE:  Maybe that is only a problem in stackoverflow.com


Reading package lists... Error! W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty_universe_binary-amd64_Packages) W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ trusty/universe i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty_universe_binary-i386_Packages) W: Unknown Multi-Arch type '2oreign' for package 'fonts-tlwg-mono' E: Problem parsing dependency Depends E: Error occurred while processing mcp-account-manager-uoa (NewVersion2) E: Problem with MergeList /var/lib/dpkg/status E: The package lists or status file could not be parsed or opened.   I get this when I try and install apps or update using terminal and software updater.  Content of /etc/apt/source.list  # deb cdrom:[Ubuntu 14.04.4 LTS _Trusty Tahr_ - Release amd64 (20160217.1)]/ trusty main restricted  # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://archive.ubuntu.com/ubuntu trusty main restricted deb-src http://archive.ubuntu.com/ubuntu trusty main restricted  ## Major bug fix updates produced after the final release of the ## distribution. deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted deb-src http://archive.ubuntu.com/ubuntu trusty-updates main restricted  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://archive.ubuntu.com/ubuntu trusty universe deb-src http://archive.ubuntu.com/ubuntu trusty universe deb http://archive.ubuntu.com/ubuntu trusty-updates universe deb-src http://archive.ubuntu.com/ubuntu trusty-updates universe  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu  ## team, and may not be under a free licence. Please satisfy yourself as to  ## your rights to use the software. Also, please note that software in  ## multiverse WILL NOT receive any review or updates from the Ubuntau ## security team. deb http://archive.ubuntu.com/ubuntu trusty multiverse deb-src http://archive.ubuntu.com/ubuntu trusty multiverse deb http://archive.ubuntu.com/ubuntu trusty-updates multiverse deb-src http://archive.ubuntu.com/ubuntu trusty-updates multiverse  ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse  deb http://archive.ubuntu.com/ubuntu trusty-security main restricted deb-src http://archive.ubuntu.com/ubuntu trusty-security main restricted deb http://archive.ubuntu.com/ubuntu trusty-security universe deb-src http://archive.ubuntu.com/ubuntu trusty-security universe deb http://archive.ubuntu.com/ubuntu trusty-security multiverse deb-src http://archive.ubuntu.com/ubuntu trusty-security multiverse  ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. # deb http://archive.canonical.com/ubuntu trusty partner # deb-src http://archive.canonical.com/ubuntu trusty partner  ## This software is not part of Ubuntu, but is offered by third-party ## developers who want to ship their latest software. deb http://extras.ubuntu.com/ubuntu trusty main deb-src http://extras.ubuntu.com/ubuntu trusty main deb http://archive.ubuntu.com/ubuntu trusty universe # deb-src http://cz.archive.ubuntu.com/ubuntu trusty main universe # deb-src http://cz.archive.ubuntu.com/ubuntu trusty main universe


Retrofil Attempt to invoke interface method call on a null object

I am trying to get JSON data via http using Retrofit for Android I am getting the following error:  Attempt to invoke interface method 'retrofit2.Call com.webdealer.otexconnect.goldback.network.LoginServices.sendSMS(java.lang.String)' on a null object reference  Here are my classes.  Client  package com.webdealer.otexconnect.goldback.network;  import retrofit2.Retrofit; import retrofit2.converter.gson.GsonConverterFactory;  /**  * Created by fazal on 3/13/18.  */  public class RetrofitClient {      private static Retrofit retrofit = null;      public static Retrofit getClient(String baseUrl) {         if (retrofit==null) {             retrofit = new Retrofit.Builder()                     .baseUrl(baseUrl)                     .addConverterFactory(GsonConverterFactory.create())                     .build();         }         return retrofit;     }      public void getServies(){         // return RetrofitClient.getClient(BASE_URL).create(LoginServices.class);     } }   Interface:  package com.webdealer.otexconnect.goldback.network;  import com.webdealer.otexconnect.goldback.utils.Login; import com.webdealer.otexconnect.goldback.utils.Sms;  import org.json.JSONObject;  import retrofit2.Call; import retrofit2.http.Field; import retrofit2.http.FormUrlEncoded; import retrofit2.http.GET; import retrofit2.http.POST; import retrofit2.http.Part; import retrofit2.http.Path;  /**  * Created by fazal on 3/13/18.  */  public interface LoginServices {      @FormUrlEncoded     @POST("login")     Call<Login> login(@Field("email") String email, @Field("password") String password);     @FormUrlEncoded     @POST("register-customer")     Call<JSONObject> signUp(@Field("name") String name,@Field("email") String email,@Field("phone_number") String phoneNumber, @Field("password") String password);@FormUrlEncoded     @POST("register-driver")     Call<JSONObject> signUpDriver(@Field("name") String name,@Field("email") String email,@Field("phone_number") String phoneNumber, @Field("password") String password);     @FormUrlEncoded     @POST("send-sms-code")     Call<Sms> sendSMS (@Field("phone_number") String phone_number);    }   Model:  package com.webdealer.otexconnect.goldback.utils;  import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName;  public class Sms {      @SerializedName("status")     @Expose     private Boolean status;     @SerializedName("fourDigitCode")     @Expose     private String fourDigitCode;      public Boolean getStatus() {         return status;     }      public void setStatus(Boolean status) {         this.status = status;     }      public String getFourDigitCode() {         return fourDigitCode;     }      public void setFourDigitCode(String fourDigitCode) {         this.fourDigitCode = fourDigitCode;     }  }   try {                      mLoginServices.sendSMS("+923418007173").enqueue(new Callback<Sms>(){                          @Override                         public void onResponse(Call<Sms> call, Response<Sms> response) {                             Toast.makeText(getApplicationContext(), mPhone, Toast.LENGTH_SHORT).show();                         }                          @Override                         public void onFailure(Call<Sms> call, Throwable t) {                             Toast.makeText(getApplicationContext(),"Failed",Toast.LENGTH_LONG).show();                         }                     });                  }catch (Exception ex){                     Log.e("Error sms",ex.getMessage());                 }


Evaluate Infinite Series Summation of 1/(k(k+c))

I am trying to evaluate the infinite series:  $$\sum_{k=1}^{\infty} \frac{1}{k(k+c)} $$  where c is a constant, positive integer.  Is my approach correct by using partial fraction decomposition? Then I break down the series into the form $\frac{1/c}{k} - \frac{1/c}{k+c}$ and I get a series of the form (after writing out few terms and noticing some cancellations)   $$\frac{1/c}{1} + \frac{1/c}{2} + \frac{1/c}{3} + ...$$  Is there a way for me to formalize the solution better (if correct), maybe into some kind of compact formula? Otherwise is there a correct/better approach to the problem?   I also used an online infinite series calculator which told me the sum of the series for different values of c. For c = 1,2,3,4 the sum of the infinite series evaluates to $1, \frac{3}{4}, \frac{11}{18}, \frac{25}{48}$ respectively. However, I don't really see the pattern here.  Any helps/hints would be much appreciated! Thank you!


I'm trying to merge the props from values into this.   The following throws an error. How can I do this?  this = {...this, ...values}


Can anyone help me be able to design the title page Master thesis?

I use this template, but I want some of the changes it as shown in the picture \documentclass[a4paper,oneside]{bth} \usepackage{multirow} \usepackage{changepage} \begin{document} \pagestyle{plain} \pagenumbering{roman} {\pagestyle{empty} \changepage{5cm}{1cm}{-0.5cm}{-0.5cm}{}{-2cm}{}{}{} \noindent%    {\small \begin{tabular}{p{0.75\textwidth} p{0.25\textwidth}} \textit{Republic of Iraq}&\multirow{4}{*}{\bthcsnotextlogo{3cm}}\\ \textit{Ministry of Higher Education}\\ \textit{Scientific Research}\\ \textit{University of Babylon}\\ \textit{College of Education for Pure Sciences}\\ \textit{Department of Mathematics}\\ \end{tabular}}  \begin{center}  \par\vspace {4cm}  {\huge\textbf{SPECIAL NUMBERS IN GRAPH THEORY\\*[0.25cm]}}     \par\vspace {2cm}  {\Large\textbf{Research}}                    \par\vspace {1cm}  {\textbf{Submitted to the council of the College of Education for Pure Sciences of University of Babylon in Partial Fulfillment of the Requirements for the Degree of Higher Diploma in Mathematical Sciences}}                    \par\vspace {1cm} {\Large\textbf{BY}}                    \par\vspace {1cm} {\Large\textbf{Ayad Jassim Mohammed}}                    \par\vspace {1cm} {\Large\textbf{Supervised by}} \par\vspace {1cm} {\Large\textbf{Assist.prof. Ahmed A. Omran}} \par\vspace {2cm}  \end{center}  \noindent% {\small 2016 A.D ...... . . . . . . . . . . . . . . . . . . . . . . , , , , , , ,  . . . . . . . . . . . . .... 1437 A.H. \\  \noindent% \end{document}   Can I make this template as in the picture with a change, and is there a better and easier template


My textures are rendering transparent and strange

I am trying to make this cool minecraft effect on blender. I've done all the modeling and tracking. In rendered view it looks fine.   But it comes out very weird. I am using blender 2.8 for this project. It has nothing to do with the materials, because I changed them around and tested it out. I have a feeling it has something to do with either the movie clip editor, sequence editor, or the render settings.  I've been trying over and over to fix it. While it renders it looks fine, but as soon as it finishes, it comes out with nothing but rendered shadows, but I have not enabled shadow catcher. I have done research and I don't think it is a common problem. If you can help me, please do.    This was the default setup of the compositing nodes.


How to specify the ARMA model based on ACFs and PACFs?

I'm reading Tsay's time series book. The ACFs and PACFs looks like this:   My question is: how to specify an ARMA model (p=?, q=?) based on the above figure? The author did give some ideas, but I'm totally confused. The first eight lags of PACFs are significant. This implies that q (order of MA part) >0. Why? The PACFs do not follow a simple exponentially decaying pattern. This means p (order of AR part) >1. Why? Somehow I think AR(8) would be a good choice. Is it reasonable?    Is there any general rule about how to specify an ARMA model? Thanks!


Why this login program in netbeans can't executed well?

i have a question for you about java program in netbeans. I made this login program in java netbeans project, but i have some problem here. Can any one help me to find any mistakes in my algoritm?  --first, there is my script below :   public static void main(String[] args) {      int i;     int x;     int amountOfData=0;     String user="";     String pass="";     String[] username = new String[100];     String[] password = new String[100];     boolean found=false;      Scanner sc = new Scanner(System.in);      i=0;     while(i<3){         System.out.print("Input username -"+(i+1)+":");         username[i] = sc.nextLine();         System.out.print("Input password -"+(i+1)+":");         password[i] = sc.nextLine();         System.out.println("");         i++;         amountOfData++;     }      System.out.println("============================");     System.out.println("Welcome in Login Form");     System.out.println("============================");     for(x=1;x<=3;x++){         System.out.print("Username :");         user = sc.nextLine();         System.out.print("Password :");         pass = sc.nextLine();         i=0;         while(i<amountOfData && found==false){             **if(user==username[i] && pass==password[i])                 found=true;**             else{                 System.out.print("haha");                 i++;             }         }         if(found==true){             System.out.println("You Succesfully Login");             break;         }         else{             System.out.println("Error ! Please Try again !");         }     }  }    When i running this program, the output is :  Input username-1 :a Input password-1 :1  Input username-2 :a Input password-2 :2  Input username-3 :a Input password-3 :3  ======================  Welcome in Login Form  ======================  Username :a  Password :3  haha  haha  haha  Error ! Try again enter login data !  Username :  as you have seen above, the username and password that i entered for login is true, that's (a,3). But somehow, the function if(user==username[i] && pass==password[i]) can't executed. So, the program is executed the else function 3 times and output "haha". Any answer how this can be happened?? I need the answer immediately... Thank you.


var x = 2; var y=x+2<<2; Console.WriteLine(y); output = 16   my doubt is that how 16 is come.i know about bitwise shift left operator.what kind of operation is done.


I use youtube-dl command for downloading the videos from Youtube. But now it is not working. So I thought it need to be update. I used youtube-dl -U to update, but they show the following message:    So what should now I do?


Does anyone know of a script that can select all text references to URLs and automatically replace them with anchor tags pointing to those locations?  For example:  http://www.google.com   would automatically turn into  http://www.google.com   Note: I am wanting this because I don't want to go through all my content and wrap them with anchor tags.


Drag and drop multiple file upload using Ajax WordPress

How can i upload multiple files via drag & drop and browse with ajax. But I select and upload the file, it works. But when I drag & drop, Ajax's error is coming.   My HTML Code here.

                           <img src="<?php echo plugins_url("../images/dragImg/",__FILE__) ?>dragimg.png" alt="" />
<input type="button" value="Choose a file or drag you files here." onclick="file_explorer();">
                           <input type="file" name="my_file_upload[]" id="selectfile" multiple="multiple">

  JavaScript code.


How to create a custom meta box field in category?

I'm creating a website, and I want to associate images every time I create a new category? Does anyone know how I give this option to the user through this menu?


How to completly remove and reinstall Ubuntu Software Center

I've been having a few issues with Ubuntu Software Center and need to do a complete reinstall of it. I tried "sudo apt-get purge software-center" but that said it would remove the Ubuntu desktp. So how can I completely remove it (config files and everything) then reinstall it?  Thanks!


I'm adding model to Jtable. Error message is showing NullPointerException. And I can't find the object that is null

I'm learning Java. Now I'm trying to write the code that'll print out the GUI table. but the error message keeps showing java.lang.NullPointerException  Here's my main method  private JTable table; Products proarr[]=new Products[20]; public static void main(String[] args) {         EventQueue.invokeLater(new Runnable() {             public void run() {                 try {                     ProductForm frame = new ProductForm();                     frame.setVisible(true);                 } catch (Exception e) {                     e.printStackTrace();                 }             }         });     }    Here is my code for adding model to Jtable  public ProductForm() {         proarr[0]=new Products("Samsung", "Iron", "Yangon", 42, "info", 90, 20);//object array         proarr[1]=new Products("LG", "Fridge", "biege", 232, "info", 90, 25);         proarr[2]=new Products("LG", "Air-Con", "Yangon", 62, "info", 90, 10);         proarr[3]=new Products("Toshiba", "Hair dryer", "Yangon", 300, "info", 90, 35);         proarr[4]=new Products("Samsung", "Iron", "Yangon", 450, "info", 90, 5);           table = new JTable();         table.setModel(new DefaultTableModel(             new Object[][] {              },             new String[] {                 "brand name", "product type", "color", "price in $", "product information", "quantity", "discount in percent"             }         ));          DefaultTableModel model=(DefaultTableModel) table.getModel();         for (int i=0; i<proarr.length; i++)         {             String brandname=proarr[i].getBrandname();             String producttype=proarr[i].getProducttype();             String color=proarr[i].getColor();             String price=Integer.toString(proarr[i].getPrice());             String productinfo=proarr[i].getProductinfo();             String quantity=Integer.toString(proarr[i].getQuantity());             String discount=Integer.toString(proarr[i].getDiscount());             String []data=new String[] { brandname, producttype, color, price, productinfo, quantity, discount};             model.addRow(data);         }   and here's the error message  java.lang.NullPointerException     at waiyancompany.ProductForm.<init>(ProductForm.java:96)     at waiyancompany.ProductForm$1.run(ProductForm.java:36)     at java.awt.event.InvocationEvent.dispatch(Unknown Source)     at java.awt.EventQueue.dispatchEventImpl(Unknown Source)     at java.awt.EventQueue.access$500(Unknown Source)     at java.awt.EventQueue$3.run(Unknown Source)     at java.awt.EventQueue$3.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)     at java.awt.EventQueue.dispatchEvent(Unknown Source)     at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)     at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)     at java.awt.EventDispatchThread.run(Unknown Source)


Where is the Developer options in the Settings on the S6?

On the S3 it was easy to find. I clicked on everything under Settings.  I can't find it. Where do I access it?


I was watching  today, and noticed this: in some moment the space station changed orbit and the people inside experienced zero-gravity. At that moment, a candlestick passed floating in the air, with the candles burning ().   But in our environment the flames go upward because the hot air is less dense, and that effect should disappear when no gravity is present, am I right? How would a candle flame look then?


Most spells that exile a permanent temporarily, like  or  specify they return the permanent to the owner when the effect ends. Some of the newer ones like  do not say they return it to the owner.  Now I know if the permanent had been taken under temporary control from the owner, say  or  the temporary effect ends, and it returns to the owner, but what happens if the effect was ongoing, say it was under temporary control then had  cast on it, or 's -2? Does the card return to the controller without the "end of turn" effect or does it return to the owner?


Lightning Aura Component - How to detect if you are using Chrome Browser on the iPAD?

We have a lightning aura component that we expose to a Customer Community. How can you detect if you are using Chrome Browser on the iPAD?


How to write c function which invoke `super`'s implementation in Objective-C?

I need to implement a universal C function which will invoke super's implementation and return the value. I will inject this function to a target class at runtime. The number of  arguments of the target selector could be any number, and would be known only at runtime.  I implement a C function as following, but I don't know how to invoke the super's implementation with the variable argument list:  id forwardMessageToSuper (id self, SEL _cmd, ...) {      // Is this `super` definition right?     struct objc_super super = {         self,         [self superclass]     };        // How can I pass the variable argument list (...) to super?      id result = objc_msgSendSuper(&super, _cmd, ...);      return result; }   Another question: how and when to use objc_msgSendSuper_stret to invoke super's implementation?


How do I determine what hardware is present?

I'm looking to see what serial ports, USB and ethernet ports are available and what they are labeled as.


What exactly is a Principal component and Empirical Orthogonal Function?

I am trying to enhance the contrast in the images I get after scanning a surface using Thermography (Principal Component Thermography ~Rajic, which is basically an application of Principal Component Analysis) to see the defects clearly.   But my question here is to understand the difference between empirical orthogonal functions and Principal Components as shown below:  SVD is used to decompose matrix A into U, R, and V.  In my case, I have 20 images. And after doing a raster like operation to unroll an image in a column, I get my matrix A which has 20 columns and each of them represents one image.   Any intuitive explanation will be really appreciated.


what i do to getting visas it is fst refusal they put me questions why a company airport-transfer the funds in my acc second time when am apply then clear customs-and-immigration officer with atta he d bank statement and letter heads every things but mention gud u clearly doubt said bangladeshi .my citizenship indian


What is the proper way to access the active scene in a driver expression?

I tried to access the FPS setting of the render settings in a shader node through a driver expression. The attempt was successful, but I got a warning and a tip saying:  WARNING: Driver expression may not work correctly TIP: bpy.context is not safe for renderfarm usage   According to  the proper way to set the active scene is through bpy.context. Therefor, I assumed, that the proper way to get the active scene would be through bpy.context as well. This warning however makes me feel like there is a more proper way to access scene data (like render settings) through drivers so they would also work in renderfarms. So my question is: How do I properly access this kind of data in a driver expression?


Is the Banach Tarski Theorem applicable to a $4D$ sphere?   More generally is the theorem applicable to any dimension?


Strange behaviour of 'sudo chmod -rwx': Does not remove group write permissions

I just ran the following command in a directory with several files, some owned by root, some by a normal user. I got a strange message:  $ sudo chmod -rwx * chmod: example-file: new permissions are ----w----, not ---------   Why the heck does chmod refuse to clear all permissions, if a file had group write rights? What is the thought behind this behaviour?  And is there a way to force removing all permissions in one step, without having to execute sudo chmod g-w * afterwards?


I'm facing an annoying issue with Google Play over and over again. There are some apps (currently Deezer and Teamtreehouse) which can't be updated/installed due this error:  "Can't install App" (Error code: -504)  FYI: This is not a 504 but negative 504 error  The only working solution what I found is the factory reset an wiping the whole phone, which is really annoying doing this every month. My question is, someone has easier solution for this error?  I have tried all solution what I found:   force stopping play store / play store framework clearing data clearing cache of google play store & google service framework removing  gmail account side-loading apps directly installing apks searching apps related files on phone and removing them   Image of the error:    My phone details: Xperia M4 Aqua  Android 5.0


$\sum (-1)^n/n$ fails the p-series test, but passes the alternating series test?

$$ \sum_{i=0}^\infty \frac{(-1)^n}{n} $$  This alternating series fails the p-series test because the exponent of n = 1.  Yet it seems to pass the alternating series test.   1 - $a_n$ must be positive. True.  2 - Terms must be decreasing. $\frac{d}{dn} 1/n = -n^{-2}$, which is < 1. True.  3 - $ \lim_{n\rightarrow\infty} 1/n = 0  $ True.  $(-1)^n/n$ is clearly a divergent series, so why does it pass the AST?


Value Types, Immutability (Good) & Mutability (Evil) in .NET

I have been reading a lot of literature lately surrounding , and their differences. This question surrounds the topic of mutability and immutability of value types.  Based on what I have read, it seems that value types in .NET should be written in such a fashion that they are immutable; that is, once they have been assigned a value, the value of that type in memory never changes. Only subsequent copies of the type may construct new instances in memory with new values based off the original. It would seem that mutability in .NET is evil.  To clarify the understanding of immutability (for my own sanity, and for others), I have demonstrated this below:  DateTime and TimeSpan are examples of immutable structs because once a value has been assigned to an instance, that instances value cannot change, this is evident through readonly properties:  DateTime dt = new DateTime(); DateTime newdt = dt.AddDays(2); // Okay, new value stored in newdt newdt.Year = 1945; // Error, cannot write to readonly property   Immutability can however be confusing when looking ar primitive types such as Int32, Double or Char, because the types appear to be mutable, but my gut feeling is that actually, immutability is handled transparently via the CLR; take for example the following operations (I've commented in some very basic x86 equivalent to understand how immutability is handled in terms of a primitive type)  int x = 0;  // xor eax, eax;     'clear register to 0 // push eax;         'push eax (0) onto the stack  x = 5;  // pop eax;          'pop stack (0) into eax // mov eax, 5;       'eax = 5 // push eax;         'push eax (5) onto the stack  x++;  // pop eax;          'pop stack (5) into eax // add eax, 1;       'eax = 5 + 1 // push eax;         'push eax (6) onto the stack   All well and good so far; Microsoft appear to be doing a good job of implementing immutability into their value types; but then we begin to find the bad apples, and suble nuances which make mutability look okay and lul developers into a false sense of security!  I'm talking about , ,  (and a few others) in the  namespace.  All of a sudden we're given the ability to mutate a value type by it's properties, and I have a theory as to why this is possible; take for example the following code  Point p = new Point(); p.X = 100; p.Y = 200;  // Immutability (had it been implemented here) might infer the following usage  Point p = new Point(100, 200); Point p2 = p.AddXY(200, 300);   However as stated I had a theory as to why these structures are mutable:   Microsoft just wanted to make it easier to work with these structures. They are interoperable with native GDI/GDI+ calls, so their behavior was designed around their native C/C++ counterparts.   So finally my questions:   Have I fully covered and understood immutability and mutability? Should developers aim to build immutable structs as a rule? When is it acceptable to build mutable structs?


How to get rid of the shape inside a shape

Hello guys, when i enter into Edit mode, i always get this shape inside the mesh. (I'm talking about the rectangle inside the cube) does anybody knows how to remove it? or what its for? (if its suppose to be there)  Thanks in advance


How do I send commands to a REPL before handing back to interactive mode?

There are various interactive REPL like programs, sh, bc, ocaml REPL, and so on.  I can invoke them in a shell script like this: foo.sh  #!/bin/bash repl   then when I run foo.sh in my terminal I get an interactive repl, I can put in commands and get the results.     How would I extend my script so that it launches the repl process, sends a few commands to it, then puts me back into the interactive mode   What I have tried is echo command | repl inside the script but it exits as soon as the command is finished.  Thanks!


Probability measure for Schwartz function

Let $X$ be a set, $\mathcal F$ a $\sigma$-field of subsets of $X$, and $\mu$ a probability measure on $X$. Given random variables $f,g\colon X\rightarrow\mathbb{R}$ such that $$\int_\mathbb{R}hd{\mu_f}=\int_{\mathbb{R}}hd\mu_g$$ for any Schwartz function $h$. I want to show that $\mu_f=\mu_g$.   there is a proof that the statement is true even if we restrict ourselves to test functions, but the proof looks quite complicated. Since Schwartz functions form a larger class, is there an easy proof for this statement?


Which locator do you use with Selenium: CSS or XPath?

I have heard that, when using Selenium, the CSS Locator has better performance than the XPath Locator.   Which Locator do you use in your tests?   Have you seen a great performance improvement when using CSS Locators?   Were there times when you had to use XPath instead of the corresponding CSS Locator?


Oracle sql rownum between how to shrink the query

I would like to get records from 25 to 50. I write this code, but, it looks terrible with double select clause.   Select * From (     Select eto.*, rownum rn from employee_trip_orders eto ) where rn between 25 and 50 ;   How can i shrink it to use one select like that?    Select eto.*, eto.rownum rn from employee_trip_orders eto  where rn between 25 and 50 ;   I don't need the second one. Thanks. I have old 11c Oracle version and offset keyword is not suitting me


How do I change the boot order for Ubuntu?

Hello Ubuntu community!  I have two operating systems on my laptop (Windows 7 and Ubuntu), and I would like to change the boot order to Windows 7 first and if F2 or something is pressed on boot it will change to Ubuntu.   It is not in the BIOS because of Ubuntu being a partition.   Any help is greatly appreciated, thank you!


How do i give the user 'testuser' write privileges on the folder: /var/www/test/public_html


How does gnome reboot without root privileges?

I am reading the book , in chapter 5 "System Call Implementation" page 77 says      For example, capable(CAP_SYS_NICE) checks whether the caller has the   ability to modify nice values of other processes. By default, the   superuser possesses all capabilities and nonroot possesses none. For   example, here is the reboot() system call. Note how its first step is   ensuring that the calling process has the CAP_SYS_REBOOT . If that one   conditional statement were removed, any process could reboot the   system.   However, in my Debian Sid I can reboot my machine by using gnome or by executing /sbin/reboot without sudo or su. How is this possible?  Maybe with systemctl?   ls -l /sbin/reboot  lrwxrwxrwx 1 root root 14 Jun 28 04:23 /sbin/reboot -> /bin/systemctl   EDIT: My user groups  [damian@xvz:~]$ groups  damian sudo wireshark bumblebee   EDIT 2: systemctl permissions   [damian@xvz:~]$ ls -l /bin/systemctl  -rwxr-xr-x 1 root root 626640 Jun 28 04:23 /bin/systemctl


I have a quick questions: can I safely power a LED with 3.3v without a resistor? I have some LEDs that I typically power with 5v and a 220Ω resistor, but I can only supply 3.3v at the moment.  Additionally I have push-buttons that I typically pull-down with 10kΩ resistors when using 5v. What resistor should I use in this case? Is there a general rule on what resistor should be used given the voltage?  Thank you in advanced for your help!


If AM-GM holds for any $2^n$ positive real numbers, show that AM-GM holds for *any number* of positive real numbers.

I was able to prove by induction on $n\in\mathbb{N}$ that for any $m:=2^n$ positive real numbers we have $\text{Geometric Average}\leq\text{Arithmetic Average}$, I.e. $\sqrt[m]{\Pi_{i=1}^m a_i} = $$\sqrt[2^n]{\Pi_{i=1}^{2^n} a_i} \leq\frac{\Sigma_{i=1}^{2^n} a_i}{2^n}$$ =\frac{\Sigma_{i=1}^m a_i}{m}$ where $a_1,...,a_m\in\mathbb{R}_+$ are any $m=2^n$ positive real numbers. Now I am trying to prove by using this fact, That for any $n\in\mathbb{N}$ positive real numbers we have $\text{Geometric Average} \leq \text{Arithmetic Average}$, I.e. $\sqrt[n]{\Pi_{i=1}^n a_i} \leq\frac{\Sigma_{i=1}^n a_i}{n}$ where $a_1,...,a_n\in\mathbb{R}_+$ are any $n$ positive real numbers, But then I got stuck and was not able to proceed.  In other words, The problem can be stated as:  Suppose that we know  $\forall n\in\mathbb{N},\forall a_1,...,a_{2^n}\in\mathbb{R}_+, \sqrt[2^n]{\Pi_{i=1}^{2^n} a_i} \leq\frac{\Sigma_{i=1}^{2^n} a_i}{2^n}$ and prove by using this fact that  $\forall n\in\mathbb{N},\forall a_1,...,a_{n}\in\mathbb{R}_+, \sqrt[n]{\Pi_{i=1}^{n} a_i} \leq\frac{\Sigma_{i=1}^{n} a_i}{n}$  Thanks for any hint/help... ($\mathbb{R}_+$ - The set of positive real numbers)


where to find corrosive weapons in borderlands 2 easy?

i am a level 12 commando (heavy shock trooper) on borderlands 2. I'm on the dam fine rescue mission and need to beat w4r d3n but i can't find any corrosive weapons. i heard there are some hidden in certain chests and in shops but i can't find any. any help or corrosive weapon locations?


Can you factor out a common divisor when finding $\gcd(a,b)$?

If I am given to find a $\gcd$ and I can see a common divisor, can I divide it to make the problem smaller? if so what do I do with the common divisor?  In the case of $\gcd(2780,785)$ I can see the $5$ is a common divisor, and let $\gcd(556,157)=a$ what will be the $\gcd(2780,785)$?


Why is the earth a viable return path for power distribution?

I'm having trouble understanding why the earth is a viable fault path for electricity brought into my home. Isn't there really high resistance? I mean, it's dirt?   Also, let's say I connect the hot wire coming into my house directly to the ground wire. What is the path that the electricity takes to get back and "complete the circuit?"


I finished the game and I have downloaded all of the bat suits. But it doesn’t give me the option to change suits.


novel about a man who makes his broken spaceship into a spacesuit

In around 1986 I asked my dad what the paperback he was reading was and he told me the plot of this book. A spaceship breaks down and the man inside builds a spacesuit from the working parts of it, and flies through space in this tiny one-man ship-suit. The cover had an illustration of this sarcophagus-like ship in space, with the astronaut looking through a clear faceplate. (I was reminded of it by thinking Tony Stark could do the same in the Avengers Endgame trailer.) The book could have been written any time from the 1950s to the mid 1980s. My best guess so far is that I badly misunderstood the plot to Gordon R. Dickson's The Forever Man, but I wanted to see if there was a closer match.


$R$ with an upper bound for degrees of irreducibles in $R[x]$

One very convenient property of $\mathbb{R}$ as a ring is that there is an upper bound for the degree of irreducible polynomials in $\mathbb{R}[x]$, as      If $f\in\mathbb{R}[x]$ has degree larger than $2$, then $f$ is reducible.   However, the proof as I know depends highly on the fact that $\mathbb{C}$ is algebraically closed, and the very nice property: $z\in\mathbb{C}$ is in $\mathbb{R}$ if and only if $z=\bar{z}$.  This makes a generalization to other integral domains rather difficult. So the problem is      For what kind of integral domain $R$, we have a finite upper bound on the degree of irreducible elements in $R[x]$?   Some most familiar examples are ruled out: in $\mathbb{Z}[x]$, $\mathbb{Q}[x]$ and $\mathbb{F}_{p}[x]$, there is not such a bound. Unfortunately these exhaust all integral domains about which I have a working knowledge.  Another result might help is , which says if we can find a prime ideal $\mathfrak{p}$ in $R$ such that $\mathfrak{p}^2\neq\mathfrak{p}$, then by picking $a\in\mathfrak{p}^2\backslash\mathfrak{p}$ we have an irreducible $a+x^d$, where $d$ can be arbitrary, and hence the upper bound is not possible.  So we only need to focus on domains where $\mathfrak{p}^2=\mathfrak{p}$ for all prime ideals. This seems to be a quite strong restriction but I am not sure what to make of it.  Can someone give a hint?  Thanks!


Can't search by dollar amounts that are in filename

I have a bunch of PDF documents in a network folder that follow a similar file name structure:  CompanyName - $160.99.pdf  When I open the folder containing all the documents in Windows 7, I can search by the CompanyName, but not by the dollar amount. The search just simply shows no results when searching by dollar amount. It shows perfect results when I search by company name.  I've tried searching both with and without the dollar ($) sign, but no change. As in the above example, I would get nothing if I searched for 160.99 or $160.99.  I've searched high and low but I've found nothing similar or people with the same problem.  Any idea what would cause this behavior?


MySQL log shows 3 root users, 2 without passwords? Why?

Our MySQL log displayed a warning on restart about 2 root users not having passwords.  I went into MySQL and checked all users:  mysql> select * from mysql.user;   and see:  Host       |    User   |   Password localhost       root      *76685yt868itetc web12-b0        root 127.0.0.1       root     First off, why are there 3 root users (and do we need 127.0.0.1 since we have localhost)?  Second, why would two of them not have passwords set?  Third, do the web12-b0 and 127.0.0.1 hosts have full root access without having to use a password (as it appears)?  Fourth, is there some valid reason for this or should I suggest the admin put passwords on those two hosts?  Thanks for your answers.


C++ error: operator[] cannot be overloaded

I am learning C++ and studying Chapter 18 of Vandevoorde and Josuttis's C++ Templates. I retyped their code for Expression Templates, but the following is producing the error   sarray1.cpp:36:6: error: ‘T& SArray<T>::operator[](size_t) const’ cannot be overloaded    T& operator[] (size_t idx) const {       ^ sarray1.cpp:32:5: error: with ‘T SArray<T>::operator[](size_t) const’    T operator[] (size_t idx) const {   Here's the code:  template <typename T> class SArray {  public:  ...    T operator[] (size_t idx) const {     return storage[idx];   }    T& operator[] (size_t idx) const {     return storage[idx];   } ... };   I am just learning C++ so I hadn't seen an instance of an overloaded function that differed only be return type, but I see that this is indeed done: . I also see that [] is not on the  in C++. I can't think of what else could be going wrong. What is the reason for the above error?