Download a file from a remote machine while SSH'd into it?

It often happens that I'm SSH'd into another machine and I'd like to download a file onto my local machine without having to open a new terminal and scp. For example, something like this:  local $ ssh remote remote $ ls remote_file remote $ download remote_file … remote $ ^D local $ ls remote_file   Is there any way — even a terrible hack — to let me download a file while I'm SSH'd into the remote host, without using SCP?  I'd considered playing some tricks with, ex, $SSH_CLIENT, but that won't work when my local machine is behind a NAT (which is basically all the time).


How to make mesh lights work in Blender Eevee?

The closest I can get to making mesh lights affect their environment in Blender Eevee is giving them an Emission material and turning on "Bloom". But this isn't emitting proper light, it just looks like it is, but it doesn't light the surroundings whatsoever.     I would like to be able to light a scene with meshes without having to put point lamps everywhere just to make them emit light.


How can I find the original message of two encrypted (Vernam Cipher) text without the key

Can I get the steps or the solution if possible?


Missing environment variables in Windows 7

When I fresh boot my computer everything is dandy.  Then after a few hours applications like Visual Studio, Notepad++, Games, iTunes, Windows components (Cmd prompt, Explorer, etc.), etc. stop working with errors about missing files or not being installed correctly.    I found that if I browse out to Cmd.exe and run it directly (instead of from the menu link) then I can run it, and the WinDir environment variable and others are missing (which explains why I can't run Cmd.exe from the shortcut since it uses %WinDir%\System32 for the path) and the system path is set to (NULL).    When I go to Advanced System Settings (again manually exploring to SystemPropertiesAdvanced.exe) all the environment variables are still there.  I checked my memory utilization and I have 1 of 6 Gig free, with my Commit Charge peak well bellow the limit (like 30%).  The clipboard also stops working too.  Not running anything to exotic, although I do have a lot of Chrome tabs open.  Running Backblaze for backup, Microsoft Security Essentials, and various other utilities.  Closing things one at a time hasn't seemed to fix it.  It has been getting progressively worse (happening sooner and sooner).  Would like to know what is causing it without reinstalling.  Running Windows 7 Ultimate 64-Bit


In the Matrix, what happened after the humans and the robots formed a truce?

Ok, I know it's not really a truce but after "The One" dies and the robots have given up fighting what happens? Are there works that showcase what happens after the last movie, Revolutions? Or is the end of Revolutions the last in-universe piece?  I know the Animatrix sort of gives us a nice background history of the world before The Matrix and why the Matrix was formed but what about the post-Matrix period? Do the robots and humans live in peace, etc?


Password Reset for Users on a Multisite Subsite

I have a multisite network. I want my users to be able to reset their passwords while staying within their subsites. So for example clicking the "lost your password?" link keeps them within their subdomain (subdomain.domain.com/wp-login.php?action=lostpassword) as opposed to taking them to the main site (domain.com/wp-login.php?action=lostpassword).  After they submit the username or email to reset the password, I would like for that email to contain links back to their subdomain and not the main site as is the default functionality.   Prior to the 4.0 update I was able to use this patch  and ultimately this plugin  to get the exact functionality described above. All was great.  However after the update it is no longer working. Asking for assistance in the various places referenced has still not helped solve the problem. Is anyone able to help?


Prove an integral inequality: $ \left(\int|f|^2dx\right)^2\le 4\left(\int|xf(x)|^2dx\right)\left(\int|f'|^2dx\right) $

If $f$ is real-valued and continuously differentiable on $\mathbb{R}$, prove that $$  \left(\int|f|^2dx\right)^2\le 4\left(\int|xf(x)|^2dx\right)\left(\int|f'|^2dx\right) $$  Attempt: I tried the Cauchy-Schwarz inequality as well as the Plancherel theorem, but none of them seems to work.


How to align rotated shape back to 0 degrees?

I have a "rotation" issue with Illustrator. I've rotated some shape which has no horizontal component which I could align to guide, so I have no idea how to rotate the shape back to 0 degrees. In the case of multiple shapes (I've rotated letters) I have a problem to align them back.  Any suggestions to solve the problem?  AI CS6


Can Gohan transform to Super Saiyan in Mystic form?

In DBZ, we see that the Elder Kai fully awakens the dormant power of Gohan. In this state Gohan can match Buu in his unfused form. But after Buu absorbs Piccolo and Gotenks, why doesn't Gohan go Super?  Is there any reason that Gohan couldn't transform to Super Saiyan form after the awakening?   Edit 1: Removed the transformation in GT from consideration because DBZ and GT are seperate canons.  Edit 2: Dragon Ball Super has canon continuity to DBZ and I've heard talks of Ultimate Gohan in it. Has more information been provided on Gohan's transformation in DBS? Please Note: Yet to see DBS beyond the intial movies.


Single word which means "keep moving forward"

I need a single word which means "keep moving forward". What are my options?  I need word as   persevere Be persistent, refuse to stop  cognizant (sometimes followed by 'of') having or showing knowledge or understanding or realization or perception  [] keep moving forward  I want to make meaningful name for firm  please help me


What happens if I put an unsupported version of iOS on my iPhone?

I have an iPhone 6s, released in 2015. I want to know if I can install iOS 5.1.1 on it, and if it is possible.  I don't care if it could brick my iPhone. I'm willing to do it.


I have seen $\sin^2 x$ in an equation and I don't understand how you can square $\sin$. So does $\sin$ squared $x$ equal $\sin x$ squared? Closed it has been answered


For example:     Ask a grammatist, she or he will possibly know how to solve this question!   Is it possible to replace the she or he part with a single word - probably something not gender dependent - in this kind of sentences?


Is somehow possible to run Ubuntu with both graphics?

Is somehow possible to run Ubuntu with both graphics cards like in Windows ? I tested Linux Mint and he recognized both graphic cards and at details about my computer it was showing them both, but in Ubuntu only shows Intel (integrated).I like Ubuntu and I wish I could use both cards on it because I need power on video and photo editing. I apologize if the question is stupid, I'm new in the Linux world.  My computer (Acer 5755g from 2011) details are :   Procesor      : Intel® Core™ i5-2410M CPU @ 2.30GHz Ram           : 8 GB Video         : Nvidia 540m 2gb and Intel (integrated) Hdd           : 650 GB. OS            : Ubuntu 13.04 the 64 bit version.


What means these error mease by using  \usepackage{firamath-otf}   Code:  \documentclass{article} \usepackage{fontspec} \usepackage{firamath-otf} \begin{document} \begin{equation} x+y=45 \end{equation}   The compilation was by XeLaTex


Stack Exchange website for medical questions

Is there any Stack Exchange website to ask questions related to medical?  Is the physical fitness website including medical too? Can anyone ask questions related to psychology?


In SQL Server, what is the probability of creating tow GUIDs with the same value with this code?  DECLARE @EmployeeID UNIQUEIDENTIFIER; SET @EmployeeID = NEWID();


Combinatorics Distribution - Number of integer solutions Concept Explanation

I reading my textbook and I don't understand the concept of distributions or number of solutions to an equation.  It's explained that this problem is 1/4 types of sampling/distributions problems.  An example is provided to illustrate:     In how many ways can 4 identical jobs (indistinguishable balls) be distributed among 26 members (urns) without exclusion (since one member can do multiple jobs)?      A sample outcome might be:   $\text{_____________}$   |  A  |  B  |  C  |...|  Z  |    $\text{--------------------}$      $\text{_____________}$   |  o  | oo|    |   |    ||| o  |    $\text{_____________}$   |  A  |  B  |  C  |...  |  Z  |    $\text{--------------------}$      Thus, the question is reduced to, "How many $(26-1+4)$ letter words are there consisting of four circles and $(26-1)$ vertical lines?"  Therefore, the solution is:  $\binom{26-1+4}{4}$   I really don't understand why its $(26-1+4)$.  There's only 26 different spots or "urns" to place the 4 jobs.  Can someone please explain?    I looked through another text to try and understand and I found it explained as such:       There are $\binom{n+r-1}{r-1}$ distinct nonnegative integer valued vectors $(x_1,...,x_r$ satisfying the equation $(x_1 + ... + x_r = x_n$ for $x\ge0$. $\spadesuit$   How in the world are they deriving this?  For distinct positive integers I understand:  Assume I have 8 balls (n=8) and I have 3 urns (r=3): o^o^o^o^o^o^o^o, where o represents  a ball and ^ represents a place holder where an urn could be placed.  For this scenario:     There are $\binom{n-1}{r-1}$ distinct positive integer valued vectors $(x_1,...,x_n)$ satisfying the equation:  $x_1 + ... + x_n = n, x_i>0, i=1,..,r$ $\clubsuit$   It's clear that I could have this specific case ooo|ooo|oo.  Here the bar represents a divide for the urn and you see I have 3 sections.  So that case is clear.  Can anyone please explain this problem to me?  I don't understand the nonnegative integer case.   Also, people who post tend to be crazy smart and explain things very in a complicated manner.  I'd appreciate it if it could be explained in layman's terms as much as possible.   Thank you!!!


null pointer exception after calling a method

this is withing the gui where i am calling the method.      seatNumber = x*6 + y+1; isRserved = flight[h].reserve(seatNumber);   this is my method within another class  public boolean reserve (int seatNumber){     int x = seatNumber / 6;     int y = seatNumber % 6;      if(seat[x][y] == true){         isTaken = true;         seat[x][y] = false;     }     return isTaken; }   i keep getting a null pointer exception. is this how you call the method for this instance?


I have  and want to install any version of Ubuntu on it, but I don't have an idea how. You have ubuntu for mobile phone, but I don't know where to start. I search internet, but no success.  If there is some way to install Android or something else, I'll try it. Phone is not so old, serves me fine but I need many of new options like Viber, maps etc.


Arrange three figures using subcaption in two rows, horizontally centered with a caption for each figure

I want to place three subfigures in one figure using the subcaption package. All three are equal in dimensions, and for each figure an own caption is required. In the first row there should be two figures, in the second row the third figure, centred horizontally.  The following MWE shows how far I got. Two lines, one caption per figure is working, I however cannot get the third figure centered.  \documentclass{scrartcl} \usepackage{subcaption} \usepackage{graphicx} \usepackage{mwe}  \begin{document}  \begin{figure*}[t]   \begin{subfigure}[b]{0.475\textwidth}     \centering     \includegraphics[width=\textwidth]{example-image-a}     \caption[]%     {{\small a cool description}}     \label{fig:a}   \end{subfigure}%   \hfill   \begin{subfigure}[b]{0.475\textwidth}     \centering     \includegraphics[width=\textwidth]{example-image-b}     \caption[]%     {{\small a cool description}}     \label{fig:b}   \end{subfigure}    \begin{subfigure}[b]{0.475\textwidth}     \centering     \includegraphics[width=\textwidth]{example-image-c}     \caption[]%     {{\small a cool description}}     \label{fig:c}   \end{subfigure}   \caption[ Global caption ]   {\small Cool figure}   \label{fig:test-figure} \end{figure*}  \blindtext  \end{document}


Is there a command to delete all the files in a directory that haven't been modified in N days?  I need to clean up some old logs.


InstallHandler runs under a special ghost user. What rights does it have?

When you install a managed package with a post-install script, Salesforce creates a special ghost user under which all of the post install activities occur. I think this is undocumented. .  This can be great from an audit point of view (you can see which package has 'touched' all the data). But can problematic in several examples:   Certain objects are inaccessible by SOQL (I've found CronTrigger and ApexClass so far) Scheduled Jobs (and any code they call) will forever run under the post-install context, Batch Jobs execute as the post-install user and suffer the same issues above,   I've tried querying the user by id in SOQL to no avail, and the debug log monitor don't record anything.  How crippled is this special ghost user? Does he have a documented profile?  Edit: I've emailed myself some post install context UserInfo return values. Interesting ones in bold:   UserType: LicenseManager (Aha! Who knows what privileges he has!?) ProfileId: 00eF0000000XXXXAAA (viewing URL gives Insufficient Privileges!) UserName: 033g0000000XXXXAAA@00df0000000XXXXAAA (package-id@org-id) UserId: 005F0000003XXXXAAA (viewing URL gives Insufficient Privileges!) Email: noreply@salesforce.com DefaultCurrency: USD FirstName: null Language: en_US LastName: [managed package name] Locale: en_US Name: [managed package name] OrganizationId: [installing org id] OrganizationName: [installing company name] SessionId: null TimeZone: America/Los_Angeles UiTheme: Theme3 UiThemeDisplayed: Theme3 UserRoleId: null


me@hp:~$ sudo apt-get install deluge  [sudo] password for me:  E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.    help me how to fix this


Notification icon that looks like "no entry" symbol

There is an icon in my notification bar that looks like a  (far left):    Does anyone know what it is/means? I have been unable to find out.


I understand VB.NET does not have yield keyword so how would you convert yield of enum. in the following code?      private static IEnumerable<int> Combinations(int start, int level, int[] arr)     {         for (int i = start; i < arr.Length; i++)             if (level == 1)                 yield return arr[i];             else                 foreach (int combination in Combinations(i + 1, level - 1, arr))                     yield return arr[i] * combination;     }   Edit: This is for .NET 2.0  Any idea?  Thanks,


What is the opposite of "infinitesimal"?  Infinitesimal means a value smaller than the minimum possible measurement. For example, if we have a ruler with 1 centimeter intervals, then any length measured shorter than 1 cm is infinitesimal for that measuring instrument - smaller than the smallest possible measurement, but still greater than zero.  The opposite of infinitesimal means a value larger than the maximum possible measurement. Analogously, if we have a 100 centimeter ruler, then any length measured longer than 100 cm is that opposite term.  "Infinite" is not the opposite of infinitesimal, although that term is commonly (mis)used. Infinity is an abstract concept for something that never ends, not merely a value above measuring capability. For example, the question "how long is this road?" may have the answer "the opposite of infinitesimal" if we lack the capacity to travel along a straight road in its entirety and measure its length. On the other hand, if the road is short enough to see in its entirety but loops in on itself, we could say that its length is "infinite".  A term I came up with for this is "supermaximum"; above the maximum possible measured value. I would like to know if an official term exists.


I ran a terminal command and ever since I've been having problems.  The terminal command I entered was   echo off "deb http://archive.canonical.com/ubuntu/ $(lsb_release -cs)/partner Packages" | sudo tee -a /etc/apt/sources.list   I honestly can't even remember why I was doing this again but it was something I found off a forum. Ever since I entered the command, sudo apt-get update doesn't work, and update manager has an error. Stating the following..  An unresolvable problem occurred while initializing the package information.  Please report this bug against the 'update-manager' package and include the following error message:  'E:Type 'off' is not known on line 57 in source list /etc/apt/sources.list, E:The list of sources could not be read., E:The package lists or status file could not be parsed or opened.'


I am experimenting with stepwise regression for the sake of diversity in my approach to the problem. So, I have 2 questions:   What are the advantages of stepwise regression? What are its specific strengths? What do you think about hybrid approach, where you use stepwise regression to select features, and then apply regular regression taking all the selected features together?


Splitting file content into other files based on parsed parameter value in file

A regular file contains data organized in columns, separated by space. Based on the value of the second field, I want to split that initial data file into several other files.  The data file has 54,242 rows and 399 columns. Data structure is so:   SNP Chr Pos ID_01 ID_02 ... rs01 1 200 AA BB ... rs02 25 10 BA AA ... rs03 1 30 AA BB ... rs04 X 90 BB AA ...   My output should consist of each record (or row) in as many file"${chr}" as there are different $chr values in column 2. So for example:  file1 will contain all the records whose 2nd field is 1:  SNP Chr Pos ID_01 ID_02 ... rs01 1 200 AA BB ... rs03 1 30 AA BB ...   file25 will contain all the records whose 2nd field is 25:   SNP Chr Pos ID_01 ID_02 ... rs02 25 10 BA AA ...   And so on...


Firefox : Specifying location of bookmarks

When adding a new bookmark with Ctrl+D in Firefox, it used to ask me where to put it in terms of bookmark directory structure.  However, recently it's not even bothering to ask me and put the bookmark under the bookmark menu by default. Then I always need to open the bookmark menu and drag & drop to the right sub folder, which is quite tedious.  Is there any way to make Firefox ask me where to put the bookmark everytime I add one?


Rearrangement of sequences with limit $0$

Is it true that every real sequence that converges to zero has the property that every rearrangement of it also converges to zero?  I have a proof in mind, but I'm not 100% sure it's correct (although I'm pretty sure), so I just want a yes/no answer.


Windows 8.1 Pro won't upgrade to Windows 10 Pro?

I have Windows 8.1 Pro installed and activated (of course with a legit key) and I want to upgrade to Windows 10 Pro.  Everywhere I read about the upgrade it says I'm suppose to get the Pro version of Windows 10 because I got the Pro version of Windows 8.1. But this doesn't happen, but instead I get the Home version. Why?  I'm upgrading from Microsoft's web page.


Young adult novel involving Time-travel, via a round, rainbow like portal

Haven't read it since I was a child, but I recall a story involving a young man who's father built some kind of time portal that appeared as a circular rainbow. ("No end, therefore no pot of gold" was mentioned at one point.)    During the story, I believe they move thru it at least once or twice in it's early, dinosaur era incarnation, and at one point have it suffer major issues when a dinosaur steps on it, and a tube shaped volume of Dino comes thru it.  Later, it's pointed at a later (historically) time, where the protagonist befriends a young girl (and makes her some clothing, which she later takes off, points at him and puts back on, to his embarrassment, as she tries to explain where it came from) who, at the end of the story, inadvertently came back with them to the 'modern' age.  Any ideas?


I need to add the svjour3.cls to TexStudio. For running the \documentclass[smallextended]{svjour3}. I tried to find a location to copy it. I put it in several directories as well as my local .TEX file. and it didn't run. I get the following error: "Filesvjour3.cls' not found. \usepackage.' Here is my TexStudio directories:


pyvenv vs venv vs python-virtualenv vs virtualenv and python 3

malikarumi@Tetouan2:~$ pip install virtualenv     Collecting virtualenv     Downloading virtualenv-12.0.7-py2.py3-none-any.whl (1.8MB)     100% |################################| 1.8MB 330kB/s   malikarumi@Tetouan2:~$ pip freeze     (a lot of stuff, but not virtualenv)  malikarumi@Tetouan2:~$ virtualenv testvenv1     The program 'virtualenv' is currently not installed. You can install it by typing:     sudo apt-get install python-virtualenv   What is going on here? is python-virtualenv == pyvenv? Isn't that still broken? Does original virtualenv still work with python? if venv (too many name variations!!!) is part of the standard library, , why am I being told to install it?  And when I did try to install it, I got:  malikarumi@Tetouan2:~$ sudo apt-get install python-virtualenv     Reading package lists... Done     Building dependency tree            Reading state information... Done     The following extra packages will be installed:     python-colorama python-distlib python-html5lib python-pip python-setuptools   At which point I aborted, because installing python3-pip just before that had given me   Setting up python3-setuptools (3.3-1ubuntu1) ... Setting up python3-pip (1.5.4-1) ...   And I wasn't sure if the extra packages would overwrite them or go onto python 2.7.  I read that python 3 is supposed to be the default going forward. Since both 2.7 and 3.4 are there, and have separate commands, how do I not only make sure Python 3 is my default, but that anything I install goes there and is used by it instead of 2.7?   BTW, I tried sudo apt-get python3-virtualenv and got: E: Unable to locate package python3-virtualenv


I am working with the "genealogytree" package for a long time, but im struggling again about modeling my Cousins.  After i got Trouble Merging my multiple (completed) Family Trees () with ~150 Nodes, i started to model from  a "superbaby" (below of the youngest living generation) and from a "superparent" (above the oldest generation i want to model). Where the root is either the superbaby or the supergrandfather (Father from all my Ancestors in the oldest Generation i want to model)  With the "superbaby"-attempt, im able to model my Cousins, but im having trouble putting my Uncle into my fathers family.  With the "superparent" im having a smiliar trouble.  Is there any Chance to Model my Cousins correctly ?     \documentclass{article} \usepackage[all]{genealogytree} \usepackage[ngerman]{babel} \usepackage{hyperref} \usepackage{pdflscape}  \begin{document} \thispagestyle{empty}  \begin{landscape}  \begin{tikzpicture}[scale=0.5,transform shape]     \genealogytree[]     {         parent{                                                     g[box={colback=green!20!white}]{invisible superbaby}             parent{                 g[male]{My Brother}                 c[male,box={colback=yellow!80}]{Me}                 parent{                     g[female]{Mother}                     parent{                         g[female]{Grandmother (Mother)}                     }                     parent{                         g[male]{Grandfather (Mother)}                     }                 }                 parent{                     g[male]{Father}                     parent{                         g[female]{Grandmother (Father)}                     }                     parent{                         g[male]{Grandfather (Father)}                     }                 }             }             parent{                 g[male]{Cousin 1}                 c[male]{Cousin 2}                 p[female]{Aunt}                 p[male]{Uncle (Fathers Brother)}             }         }     } \end{tikzpicture}  \end{landscape} \end{document}


What oils are suitable for Indian cooking (i.e. extended frying duration)?

Indian cooking basically uses oil from the beginning of the process, typically starting with sautéing ginger and garlic, then adding shallots, chillies and onions. So the oil is on the fire for quite some time.    I would like to know whether any type of olive oil will be suitable for this type of cooking. Extra virgin olive oil seems to be out of the question from what I have read.


I'd like to know if there a chance to root my Acer tablet  to install ubuntu on it. There is method under Windows but this  did not work on my tablet.   I've still seached the internet but can't find a solution. Can some one help me?


How to properly create a new object that is a copy of another?

I recall being able to clone an object with the spread operator like such:  let obj1 = {   key: 'value',   key2: 'value2'   }  let obj2 = { ...obj1 }   But now I realize this doesn't work as I am trying to change values of obj2 and its also changing the values in obj1.  If I did:  obj2.key2 = 'test'   It would change obj1.key2 to 'test' as well.  Why is this happening?  I also tried doing:  let obj2 = Object.assign({}, obj1)   but i face the same issues.  Thanks  let obj1 = {   key1: 'value1',   key2: 'value2' }  let obj2 = { ...obj1 }  obj2.key2 = 'changed key2 value'  console.log( obj1.key2 == obj2.key2 )


Subtle Twist on the Monty Hall Problem---Does It Make a Difference?

In the Monty Hall problem, when the host picks a door and reveals an goat, does it make any difference if he did not know which door the real car was behind, and he just happened to pick a door with a goat?


Limit of $\left(1+\frac{1}{\sqrt n}\right)^n$ as n tends to $\infty$

I'm trying to find $\lim_{n \to \infty}{\left(1+\frac{1}{\sqrt n}\right)^n}$. It looks pretty easy, so I think there's probably something simple I'm missing, because I can't seem to figure out where to even start. I've tried some basic algebraic manipulation but it doesn't seem to help much. I know the sequence diverges to infinity from typing it into WolframAlpha, but I don't know how to show that it's unbounded.  I'm trying to do it without using L'Hospital's rule or Bernoulli's inequality. Other Calc 1 methods are fair game.


A maester can be recognized by the chain he wears around his neck. The links of the chain can be made of every metal known to man. Each metal is related to a subject - silver for medicine, iron for warcraft, etc. Can a maester's chain include multiple links of the same metal?


Calling SOAP web service programmatically

I am consuming a SOAP web service from .NET code, by adding a reference to the service. Now the service wsdl endpoint might change in the future, so I want to add it to the config file in order to make my app more dynamic. Now I won't be able to use added reference anymore so I want to call the service from code without using service reference. I cannot create a ChannelFacotry as I do not have the interface type for the service as it is not WCF. So I cannot use something like this:  BasicHttpBinding binding = new BasicHttpBinding("MyBinding"); EndpointAddress address = new EndpointAddress(baseUrl);  ChannelFactory factory = new ChannelFactory<IService>(binding, address);   Is there any way I can consume SOAP web service without adding a service reference. And if not at all, is there any way for me to update the url of the ServiceReference dynamically from code?


What properties does a graph whose adjacency matrix is invertible have?

I was thinking about adjacency matrices, when I realised that an adjacency matrix is nilpotent if and only if there is no cycle in the graph.  So, I started wondering: if a graph has an adjacency matrix that is invertible, what does it mean for the graph?  I usually define a graph the following way (but if the is some proprieties with another definition, I'm also interested): a graph $G=(V,E)$ is couple of set where $V = [\![1;n]\!]$ and $E \subset \{ (i,j) \in V^2, i\neq j$}. The adjacency matrix $M=(M_{ij})$ is defined such as $M_{ij} = 1$ if $(i,j) \in V$, $0$ otherwise.  Here I'm talking about undirected graphs.


We already solved or argued differential equations, integral equations and even function equations. But I encounter the following, which I call it "series equation":     Is there any nonzero function $f$ satisfying the series equation   $$f(x)=\sum_{n=0}^{\infty}\frac{f(n)}{n!}x^n \tag{*} $$   The source: I interested to solve the equation $$f'(x)=f(x+1)$$ and I found out $$f^{(n)}(x)=f(x+n)$$ thus: $f^{(n)}(0)=f(n)$ and if we consider  $f$ having a taylor series, then the expression $(*)$ will be the case.  But I have no idea how $f$ would be. Is such a function exists?  Thanks.


I have bunch of files in one directory, like these:  0002.b3120c4bcbf3101e661161ee7efcb8bf 0003.acfc5ad94bbd27118a0d8685d18c89dd 0004.e8d5727378ddde5c3be181df593f1712 0005.8c3b9e9c0f3f183ddaf7592a11b99957   And so on...  And I want to rename them to something easier to manipulate in a script:  2 3 4 5   And so on...  How to do it in Linux shell or script?


Any way to specify the location of profile data

The default the profile file is from the executable is run and the file is called gmon.out. Is there any way to specify a new location?  I'm using gcc 3.4.6 on i386/linux2.6


Prove that for a given prime $p$ and each $0 < r < p-1$, there exists a $q$ such that $rq \equiv 1 \bmod p$

Prove that for a given prime $p$ and each $0 < r < p-1$, there exists a $q$ such that   $$rq \equiv 1 \bmod p$$  I've only taken one intro number theory course (years ago), and this just popped up in a computer science class (homework). I was assuming that this proof would be elementary since my current class in an algorithm cours, but after the few basic attempts I've tried it didn't look promising. Here's a couple approaches I thought of:    (reverse engineer)  To arrive at the conclusion we would need  $$rq - 1 = kp$$  for some $k$. A little manipulation:  $$qr - kp = 1$$  That looks familiar, but I can't see anything from it.    (sum on $r$)  $$\sum_{r=1}^{p-2} r = \frac{(p-2)(p-1)}{2} = p\frac{p - 3}{2} + 1 \equiv 1 \bmod p$$  which looks good but I don't know how to incorporate $r$ int0 the final equality.      (Wilson's Theorem—proved by Lagrange)    I vaguely recall this theorem, but I was looking at it in an old book and it wasn't easy to see how we arrived there. Anyways, $p$ is prime iff $$(p-1)! \equiv -1 \bmod p$$  Here the $r$ multiplier is built in to the factorial expression so I was thinking of adding $2$ to either side  $$(p-1)! + 2 \equiv 1 \bmod p$$  which is a dead end (pretty sure). But then I was thinking, maybe multiplying Wilson't Thm by $(p+1)$? Then getting  $$(p+1)(p-1)! = -(p+1) \bmod p$$  which I think results in  $$(p+1)(p-1)! = 1 \bmod p$$  of which $r$ is a multiple and $q$ is obvious. But I'm not sure if that's valid.


Having font color option in Stack Overflow question editor

Stack Overflow provides good tools in the question editor, like "Links" and "Styling".  Another thing that for me would be nice is a color selector. Although an HTML editor is available, a direct click on tool would be good, and users can select different colors, as for marking errors in their program with red, and more important data with blue.


Evaluate the limit $\lim_{x \to 0}{\frac{\sqrt{1+x\sin{x}}-\sqrt{\cos{2x}}}{\tan^{2}{\frac{x}{2}}}}$

I need to evaluate the limit without using l'Hopital's rule.  $$\lim_{x \to 0}{\frac{\sqrt{1+x\sin{x}}-\sqrt{\cos{2x}}}{\tan^{2}{\frac{x}{2}}}}$$


Where can I find out when I installed an app?

Is there a Play Store log file?   Or should I be looking where apps are installed on the phone for time/date stamps?


Expect script is returning errors when spawning bash script. Why?

I am testing out Expect to get a basic template working. I have created a demo bash script which asks a few questions and outputs the inputs to a file.  When I execute the .exp file directly or through "expect FILENAME", or even when using autoexpect, I get the errors below that suggests it was not interpreted correctly(expected .exp file?). What should I do to get Expect with a bash script working?   I am testing using Ubuntu through WSL as the OS and CMD(bash is executed to use WSL and normal bash commands usable so not sure if this has any effect.).   Expect file:  #!/usr/bin/expect -f  set timeout -1  spawn /bin/bash "./test-interactive.sh" # expect "*" expect "Please fill in each prompt." send -- "a\r" expect "*" send -- "b\r" expect "Please fill in each prompt." # expect "*" send -- "c\r" expect "*" send -- "d\r" expect eof   Bash shell file:  #!/bin/bash  _message="Please fill in each prompt."  echo $_message  read a read b  echo $_message  echo -n "$ " read x echo -n "$ " read y  echo "" echo "Accepting following inputs" echo $a echo $b echo $x echo $y echo ""  echo "a: $a b: $b x: $x y: $y" > output.txt  # read -p "Press enter to exit"   Output:  spawn /bin/bash ./test-interactive.sh ./test-interactive.sh: line 2: $'\r': command not found ./test-interactive.sh: line 4: $'\r': command not found Please fill in each prompt. a b ./test-interactive.sh: line 6: $'\r': command not found ': not a valid identifierne 7: read: `a ': not a valid identifierne 8: read: `b ./test-interactive.sh: line 9: $'\r': command not found Please fill in each prompt. c d ./test-interactive.sh: line 11: $'\r': command not found ': not a valid identifierne 13: read: `x ': not a valid identifierne 15: read: `y ./test-interactive.sh: line 16: $'\r': command not found  Accepting following inputs


How to load translated entity values in Twig for SEO purpose?

How can I get access for the english values of my entity in the french version of my twig template. This is for a tracking task.  Let say I want to print the node title en english on the french version.  I was hoping I could do something like this : {{ node.languages.en.label }} but this doesn't work.  I'd rather avoid using preprocess if possible (I know how to do it with preprocess).


Why are Pokeballs restricted to containing Pokemon?

In the anime, manga, and games Pokemon are captured and stored in Pokeballs. Can Pokeballs be used to contain anything else, e.g. inanimate objects or people? If you can pop a  in your pocket (not to mention store it digitally and transfer it between Pokemon Centers), it seems like that same mechanism would be used for storage, shipping, whiny children in need of a time-out, or a myriad of other purposes.  In the games, any visible item lying on the ground appears to be in a container which at least has a shape similar to a pokeball, (though this was likely done for graphical reasons in the early titles). Other than that, I haven't seen them used for anything other than Pokemon.  Based on , it appears that only Pokemon (or items containing Pokemon) can be trapped. So, are there canon reasons why Pokeballs or the same technology can't be used for other purposes?   Not a duplicate - I'm asking for specific canon reasons - from manga, games, or show - why it can or can't happen, not examples of when it didn't work or didn't happen.


Is there a ranged weapon with an 18-20 crit range?

I have looked for a ranged weapon with an 18-20 critical threat range. So far I have only been able to find the  but obviously it is not a good option for a main weapon as it shatters after each hit.  Is there a ranged weapon, preferably a bow or crossbow, in Pathfinder that has a crit range of 18-20?  3rd party is accepted.  Related to  This question has a slightly broader range of including all ranged weapons and also not limited to official Paizo weapons.


Why are all of Mr. Shirley's gifts the same?

In ,  Clark is bringing his boss, Mr. Shirley a Christmas gift.  Mr. Shirley is annoyed at being interrupted and tells Clark to put it with the others.   The other gifts are on a table behind Clark.  All of the gifts are the same exact size and shape as is the one that Clark has.    Is there any reason why the gifts are the same?   Is this ever explained?


All of our Drupal installations have a /tmp folder at the root of the installation (ie, in parallel with the core files).  What does Drupal use the temporary directory for?


Experimentally, the universe keeps expanding. I do not understand well what is meant by expanding universe.   If we assume an inertial reference frame for which space is defined and if in this reference frame we define a proper length as the distance between 2 atoms in the $O_2$ molecule(both atoms belong to the same inertial reference frame). My question is :   Since the universe is expanding, is that distance going to increase with universe expansion or could that distance be used to measure that universe has indeed expanded?   I feel there is some picture that I have got wrong.


Calculating the height objects fall from

Imagine an object of a given mass. The object falls from a certain height. On contact with the ground, the object has a certain force.   If the force of the object and the mass of the object are know, what formula would be used to find the height fallen from?


If C and D are closed and C is bounded, then C+D is closed.

Let $C,D\subset R^n$ are both closed. And C is bounded. Prove $C+D $ is closed.  I am having a hard time understanding why C being bounded matters. Also, I have no idea how to start.  I would really appreciate your help.


Accidently deleted /usr/lib, how do I restore it?

I know this is something I shouldn't do, but it happened(Ubuntu 12.04.1 LTS) as a root user I deleted /usr/lib folder. Any ideas how to restore it?


Find integer $x\neq 0$ such that $120x+1,160x+1,240x+1$ are perfect square

If $120x+1=a^2, 160x+1=b^2, 240x+1=c^2$ then we get $a^2+c^2=2b^2$ using $\pmod 2$ we get that $c+a=2u$, $c-a=2v$ for some $u,v$ so $a=u-v$ and $c=u+v$ then we get $(u-v)^2+(u+v)^2=2b^2$ or $u^2+v^2=b^2$ and from $a=u-v$, $c=u+v$ we could get that $30x=uv$ now since $160x+1=b^2$ is odd then between $u$ and $v$ one is odd and one is even and $uv$ must be the multiple of $30$. Now I dun know what I should do next. I try some Primitive Pythagorean triple but I dun seem to find any. Please help me and sorry for my bad latex arrangements   Edit: My approach above is wrong because of my mistake for thinking 120+240=2×160 so forgive me for this, I'm so sorry now I can't thinking of another approach... I hope someone could help me with this


VLC auto resume notification time interval modification

In VLC player, I get a small top popup notification that says "Do you want to restart the playback where left off?" and it stays for around 5 seconds then disappears. Is it possible to make it stay/show longer than 5 seconds? If yes, where is that option located? Thanks,


Should I take "One Mind" if I want to continue to play?

There's a strong warning associated with the "One Mind" upgrade that says that "it's all downhill from here". As I'm still interested in playing, should I take this upgrade or wait?  Will appreciate spoiler-free answers if it's at all possible.


I am really LOST. anyone can help me sharing his/her experience would be great.  I am currently a PhD student and I changed my advisor and minor 'research field' after one year of my program. This is a new research field to mine but I have the ability and confident to conduct research and go through but the big problem I've never been exposed to this field before and couldn't find a solid topic/idea to consider for my research. my advisor asks me to find a topic in my own. any tips guys!!


Can somebody tell me why this is complaining? I am using SQL Server, with one table called test and 1 column called word  This is my query:  SELECT TOP 1 COUNT(*) AS count,  (LEN(word) - LEN(REPLACE(word,'A',''))) AS letters FROM dbo.TEST  WHERE  word LIKE '******'  GROUP BY letters  ORDER BY count DESC   THis is the result error:  Msg 207, Level 16, State 1, Line 7 Invalid column name 'letters'.   Why is complaining about my alias?


Python: Is it possible to delay execution of default argument values until the class object has been instantiated?

In the example below, we see C1.__init__() has been executed before either of the class objects have been instantiated. Is there any way to avoid this?  Python 3.7.5 (default, Nov  7 2019, 10:50:52)  [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> class C1: ...     def __init__(self): ...        print('C1.__init__ executed') ...  >>> class C2: ...     def meth_C2(self, c1=C1()): ...         print('C2.__init__ executed') ...  C1.__init__ executed


Review message is wrong in the case of popular posts in the Reopen Queue

I got this review in the Reopen Queue.        Clicking on Revision I got:        Why are there no changes to diplay if the question is in the queue because of being edited?  If this question is in the queue  (reason 3, thanks @George) and not because of being edited, then the review message/prompt should say that.


Can I connect to SQL Server using Windows Authentication from Java EE webapp?

I am currently investigating how to make a connection to a SQL Server database from my Java EE web application using Windows Authentication instead of SQL Server authentication. I am running this app off of Tomcat 6.0, and am utilizing the Microsoft JDBC driver. My connection properties file looks as follows:  dbDriver              = com.microsoft.sqlserver.jdbc.SQLServerDriver dbUser                = user dbPass                = password dbServer              = localhost:1433;databaseName=testDb dbUrl                 = jdbc:sqlserver://localhost:1433   I have zero problems with connecting to a SQL Server database in this fashion when using SQL Server authentication.  Is there any way I can retrieve the credentials of the user's Windows Authentication and use that authentication for SQL Server?  UPDATE: I know in ASP.net there is a way to set up Windows Authentication for access to the webapp, which is exactly what I am looking for, except I want to pass that token off to SQL Server for access to the database.


App Store forcing me to pay twice for the same app but on different devices

I bought a paid app on my iMac, and a few months later tried to download it on my iPhone but it’s forcing me to pay again for it. I thought the App Store linked purchases on multiple devices?


apt-get - allow install of unconventional file

I am looking to install .deb files that have been encrypted and then decrypted. During this process the names of the original files have been dropped and instead are a temporary gibberish value. I can install using 'dpkg -i' without issue but I was looking to use 'apt-get install' to avoid having to perform any cleanup for dependency issues. I did not see any options for apt-get to allow this type of functionality. Does anyone know if this is possible?  I.E - original package:  something-something-version-amd64.deb       decrypted package: blahblah    'dpkg -i blahblah' - success   'apt-get install blahblah' - unrecognized file   Thanks!


How can a Java app create and manage a DB locally for a user?

I'm working on a to-do list app in Java as a learning exercise in databases. I'd like to write the app agnostic to a theoretical user's setup and not assume they have anything like MySQL installed. How can a Java application create and manage a local database, in this case to hold things like tasks, deadlines, etc? Is something like SQLite the only way to go for local?


what does the colon mean? I am searching for a long time on net. But no use

L = list(range(1,99,2)) s = L[:len(L)//2]#I want to get the first half of this list print(s)   what does the colon mean in the 2 lines?  if I write the:, it prints  [1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21,23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47], and it's exactly what I need.  if not, it only prints 49


What options are there for visitors to Italy in getting a sim card with a large amount of data (3G or 4G) or alternatively a portable wifi hotspot that I can pick up and drop off easily.  I will be travelling all over Italy, including Venice, Florence, Tuscany, Pisa, Cinque Terre, Rome, Naples.  Ideally this should work in the cities and in the country side (I will be travelling by train and would like to use it on the long journeys)  Edit:  answers the sim card part of the question, but since I only need internet data, I have changed my question to ask only for portable wifi hotspots.  And I will be travelling for about 2 weeks. I'm looking for "a lot" of data (1GB+ per day).


Any alternative to regex email validation?

I have managed to write a regex which validates an email.  '/[a-zA-Z0-9]+[a-zA-Z0-9_-]+(@{1})[a-zA-Z]+(\.)(com){1}/'   I am finding it pretty difficult to frame complete regex for email validation.  The thing is, I think it would be better for me if there is an alternative to regex.  Can this validation be done efficiently using if/else statements (or other conditional statements)?  Is there a fool-proof alternative to regex?


Show that if $a$ and $b$ are positive integers then $(a!)^b b! \mid (ab)! $    This is what I have done:   The above statement is true for $a=1$ and any arbitrary value of $b$, and also for $b=1$ and any arbitrary value of $a$. Now for $a \ge 2 $ and $ b\ge 2$, $a+b\le ab $. This implies, $ (a+b)!\mid (ab)!$ and since $$\dbinom{a+b}{a} = \frac{(a+b)!}{a!b!} \implies a!b!\mid (a+b)! \implies (a!b!)\mid(ab)!$$        Any ideas how to further progress in this proof? Or are there any other ways to prove this?


Using modular arithmetic to find the remainder of $12^{157}$ when divided by $10$

So, I've figured out that: $12 \equiv 2 \mod 10$ And hence, $$ 12^{157} \equiv 2^{157}  \mod 10$$ I thought of expanding out $2^{157} = 2^{156} \cdot 2 = 4^{78} \cdot 2 = 16^{39}   \cdot 2$, then I could write: $$ 12^{157} \equiv 2^{157} \equiv 16^{39} \cdot 2 \equiv  6^{39} \cdot 2 \equiv 36^{19}\cdot 12\equiv 6^{19} \cdot 2  \equiv 36^9 \cdot 12 \equiv 6^9 \cdot 2 \equiv 36^4 \cdot 12 \equiv 6^4 \cdot 2  \equiv 72 \cdot 36 \equiv 2 \cdot 6 \equiv 2 $$ This is quite a long process. I found that you could use fermats little theorem to speed up the case when the number we taking mod with is prime, however are there any theorems/methods which can be used to speed up calculations when we take a composite numbers?


How to make Master PDF Editor the default for .pdf files

I want to make Master PDF Editor (MPE) the default for opening PDF files. I right-clicked a PDF file, chose Properties > Open With. MPE was not listed. I clicked Show Other Applications but MPE was still not on the list. I tried opening the PDF file with MPE, editing, and then closing it. MPE still did not show up.  So how do I make MPE the default program, or at least appear on the Other Programs or Show Other Programs?


What is the possible way to scan a point in java ? Should I read point.x then point.y or can I read the two co-ordinates at once ?  import java.awt.Point; import java.util.Scanner; public class Saleelo {     public static void main(String[] args) {         int n = 5;         Scanner scan = new Scanner(System.in);         Point[] Points = new Point[60];         for (int i=0 ; i < n ; i++) {             Points[i].x = scan.nextInt();             Points[i].y = scan.nextInt();             System.out.println(Points[i]);         }        } }   This what I have tried and it gives me null pointer exception


Python: lists .remove(item) but not .find(item) or similar?

What mechanism is used that allows the built-in function list.remove but not simply list.find?  If I have a list l = [a,b,c...] and want to remove an element, I don't need to know its index, I simply input l.remove(element).  Why is it then that I can't use a similar command to find an element's index or to simply check if it's in the list?


What will be the one's digit of the remainder in: $\left|5555^{2222} + 2222^{5555}\right|\div 7=?$

What will be the ones digit of the remainder in: $$\frac{\left|5555^{2222} + 2222^{5555}\right|} {7}$$


Annoying Ilustrator feature since I started using it [AI CS6]

I have already searched how to disable this... "feature". I have no idea whats the actual name of... this, so I just uploaded a gif so you guys can see what I'm talking about.    Every time when I'm using the pen and when the mouse gets closer to the workplace border it automatically moves. Most of the times this annoys the hell out of me.   Anyone knows if you can disable it or change its sensivity?


How to convert ISO 8601 date (string) to Date?

I am parsing XML file. In this file there is one tag containing date string "2008-11-10T05:51:33Z" and I want convert this string in to java.util.Date object.  How can this be done?


Please help: whoever or whomever?   And this is the sentence, it cannot be changed!  I think whomever is correct—because isn't the answer to the he/him test him? As in Who are we free to pretend to be? Is the answer he or him? It is him, right? We are free to pretend to be him... not he...  Each of us is freer than ever to believe whatever and pretend to be whoever/whomever we wish.  Thank you!!!  <3


I am primary Windows User and now Learning Linux. There different Software which I need to Install in Linux. I don't have Internet Connection at home. Is there any way that I can download Software in the office using Windows then Install in to Linux. Like Windows you can download Software (setup file .exe) simply run


Graph Theory Questions With Connected Graphs

a. Four vertices are labeled $1,2,3,4$. In how many ways can edges be drawn between some pairs of these vertices so that the result is a connected graph?  b. Five vertices are labeled $1,2,3,4,5$. In how many ways can edges be drawn between some pairs of these vertices so that the result is a connected graph?  I know this question has been asked before but I didn't understand the answer. I don't know how to solve this problem so I would be grateful for help.


I tried to create a connection from a SFTP site to export data from Marketing Cloud to there with a another Marketing Cloud account sftp server for test and the error appears. ERROR:  An undefined error occurred. Contact your account representative if the error persists. The Path: sftp://ftp.s7.exacttarget.com/reports/ What can this error be?


I think I bent the mech hanger (right term?) on my Schwinn MTB. Now changing gears is hard. I'm trying to better understand my options. What I understand so far as to what I can do:   Look for a new mech hanger for this make/model Try un-bend (using force) to correctly align hanger   From my visual inspection, the bend looks slight, yet has a big impact on the gear. A few pics:      I'm biased towards a do-it-yourself solution, if possible. Thank-you.


I rolled back a major edit to  today, but I found no place to put the reason I thought the edit was not appropriate.   In this case, I thought the edits would have been better if they we put into an answer, along with an explanation of why the suggestions make sense. I might even have offered to provide a bounty to the editor for providing a more up to date answer. But i have no way to communicate this in my rollback.  Or did I overlook something in the editor?


The buttons on the modal dialog box for leaving a page with unsaved changes are confusing

If you are editing a question and decide to close the tab/window/whatever, SO opens up a dialog box asking you if you are sure. The buttons for this dialog are "OK" and "Cancel". However, what these map to is not entirely obvious. It would make more sense to change them to action words describing what they do. For example, it could be "Close this Question" and "Stay Here". This would eliminate the need to explain which button does what in the dialog itself and require less work from the user.


Can you make OSX mount just certain partitions when you connect an external HDD?

I have an external HDD with 4 partitions.  My question is the following: is there a way of telling the OS to mount just two of them (One FAT and one HFS+) when I connect the HDD? It is rather annoying to have 4 "disks" connected on the finder, and it makes ejecting the drive a test to my patience.   I would appreciate your suggestions. If it's impossible I guess I'll just have to fiddle around and get everything in 2 partitions... :/


I got my laptop two days ago, a Dell G5-5587, at it came with Linux Ubuntu 16.04. It's my first time with this OS.   My problem came when I tried to change the Linux dash to a dock with GNOME. I installed the gnome tweek tool and the Firefox extension to enable the "Dash to Dock" extension, but when I go into  it shows   Unable to locate GNOME Shell settings or version. Make sure it is installed and running.   Also when I go into the preference menu of the GNOME shell integration firefox extension it displays  GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface 'org.gnome.Shell.Extensions' on object at path /org/gnome/Shell   Moreover, I also removed the Unity tweek tool and packages. I would be incredibly grateful if somebody could help me with this!


Accidentally removed windows when dual booting (Ubuntu re-install wiped partitions)

I am not sure if this question is appropriate to be posted here but I have really no idea and I really need to fix this problem ASAP and I am so frustrated right now. I was dual booting windows 8.1 with ubuntu and after a successful installation in which both OSes boot fine, I installed gnome on Ubuntu and I could not get Ubuntu booting again, so I decided to reinstall Ubuntu but I didn't know that the reinstall and wipe data option will remove the Windows drive. Now I am left with Ubuntu but I still need Windows as my primary OS, I have backup up a system image of Windows 8.1 and my question is how to restore from that, loosing Ubuntu isn't an issue, any ideas would be greatly appreciated


Typeset d'Alembertian operator in 'classicthesis'

What are the proper latex inputs for typesetting the bare d'Alembertian operator, and the d'Alembertian operator with either a tilde or a hat or a bar on top in a document prepared using classicthesis documentclass? I understand that the package eulervm is used in classicthesis.


How to find all subgroups of a group in GAP


A question in the future research section - is it considered appropriate to write a paper on it?

I recently read a paper, which posed some interesting questions in a section named further research.   They concluded the section by writing, "we leave all these questions for our future research".   I am really interested in one of the questions, is it considered inappropriate to write a paper handling one of those questions? The pronoun "our" indicates that the author wish to dig in to this question himself. However the paper was published in 2012, and by browsing the authors personal webpage I get no sign of a paper like that in progress.  In case I wish to write a paper on that particular topic, should I notify the author who posed the question? (Say, by asking, is question X still open?)


How do I change the default application for unknown file types?

Ever since installing Bless Hex Editor, all unknown files and text files automatically open with Bless instead of gedit. How do I change it back? I don't want to have to manually associate files with gedit, I just want gedit to be the default if there's no other application set up to open the file.  Solution: modify ~/.local/share/applications/mimeapps.list  [Default Applications]  - text/plain=bless.desktop - application/octet-stream=bless.desktop + application/octet-stream=gedit.desktop


My OpenGL Vertex Array no longer works when abstracted out into a class

I am using OpenGL to render some cubes and I have managed to get around 10 cubes rendering however I now want to abstract the code out into classes. I have started with the vertex array object.  I have looked through the code and followed it through to the shader making sure vertex data gets where it needs to.  #include "cube_vertex_array.h"  cube_vertex_array::cube_vertex_array(float* vertex_buffer, const std::string& texture_file) {     GLCall(glGenVertexArrays(1, &va_ID));     GLCall(glBindVertexArray(va_ID));  GLCall(glGenBuffers(1, &vb_ID)); GLCall(glBindBuffer(GL_ARRAY_BUFFER, vb_ID)); GLCall(glBufferData(GL_ARRAY_BUFFER, sizeof(vertex_buffer), vertex_buffer, GL_STATIC_DRAW)); GLCall(glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 5 * sizeof(float), (void*)(0 * sizeof(float)))); GLCall(glEnableVertexAttribArray(0)); GLCall(glVertexAttribPointer(1, 2, GL_FLOAT, GL_FALSE, 5 * sizeof(float), (void*)(3 * sizeof(float)))); GLCall(glEnableVertexAttribArray(1));  GLCall(glGenTextures(1, &texture)); GLCall(glBindTexture(GL_TEXTURE_2D, texture)); GLCall(glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT)); GLCall(glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT)); GLCall(glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR)); GLCall(glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR)); int width, height, nrChanells; stbi_set_flip_vertically_on_load(true); unsigned char* data = stbi_load(texture_file.c_str(), &width, &height, &nrChanells, 0); if (data) {     GLCall(glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, data));     GLCall(glGenerateMipmap(GL_TEXTURE_2D)); } else { std::cout << "failed to load texture" << std::endl; } stbi_image_free(data);  GLCall(glBindVertexArray(0)); }  void cube_vertex_array::bind() {     GLCall(glBindVertexArray(va_ID)); }   Also, here is the part of main() that uses this class:  main() { cube_vertex_array cube_1(vertices, "resources/test.png"); cube_1.bind(); while (!glfwWindowShouldClose(window))     {     cube_1.bind();     GLCall(glDrawArrays(GL_TRIANGLES, 0, 36));     }     GLCall(glDeleteVertexArrays(1, &cube_1.va_ID));                                                                              GLCall(glDeleteBuffers(1, &cube_1.vb_ID)); }      I expect to see multiple cubes rendering however this doesn't happen. If I implement the vertex array directly into the main file, the code renders cubes however it does not render anything when abstracted into a class. What could be the problem here?


What properties do natural isomorphisms between functors preserve?

If $F,G: C \rightarrow D$ are functors between regular categories and $F \Rightarrow G$ is a natural isomorphism, is it true that if $F$ is faithful {resp. full) then $G$ is full?  I believe this is true but would like some confirmation.  What about if $F$ is essentially surjective?  Is it necessarily true that $G$ is essentially surjective?  Thanks.


It should be noted that this question poses a similar issue to some other questions on SE, but (the ones that I saw) were caused by massively large scaling factors, which (as far as I can tell) isn't the source of this issue.   I'm trying to import  into blender so that I can extrude it afterwards. All I can manage to get is this result:    I'm very new to blender, so I don't know what the issue could be. All I did to get this was create a new scene, import the svg, and zoom/move the view to make it visible.  As well, I have uploaded (and publicly shared, of course) the  for those who are interested.


What Nikon lens to buy to make photos of birds?

Currently, the zoomiest lens I have is a Nikon 18-200mm. I want to be able to take photos of wildlife, or in most cases birds, which I can't do at 200mm.  For a long time, I wanted to purchase a Nikon AF VR 80-400mm f/4.5-5.6D ED. It is very small and weights nothing; it's also really cheap (approx. $1000). On the other hand, I suppose that the quality of this lens is not very good, especially at 350 to 400mm.  Nikon also has a big and heavy AF-S f/2.8G ED VR at +$9000, and an even larger and heavier AF-S 500mm f/4G ED VR at +$8000. Those two lenses are not a solution: they are too expensive for me, and their size and weight makes it impossible to take them in a bag for long walks.  Is there a lens somewhere between, compatible with Nikon D7000? In other words, is there a lens with a slightly better quality at 400mm or more (including fixed-length lenses) than a Nikon 80-400mm, but not as expensive as Nikon's 400mm and 500mm lenses and not as big and heavy?


Panem-HungerGames: Are there no other countries to stop these types of "games"

I'm reading the Hunger Games (now starting Mockingjay), and I have seen the movies (not the new one).   While I'm reading, I have a big question. Are there no other countries to avoid this type of games? Because in the book says that Panem is EEUU in a future... Or that is what I understood.. So what about (for example) other nations like France, Italy, Spain, Mexico, Russia... to stop it?


How to calculate the sum of $\sum_{n=0}^\infty (n-4)\cdot\left(\frac{1}{2}\right)^n$

This sum: $$\sum_{n=0}^\infty n\cdot\left(\frac{1}{2}\right)^{n-1}$$ can be calculated using this $\sum_{n=0}^\infty a^n=\frac{1}{1-a}$ ; $a<1$ cause we can calculate the sum $\sum_{n=0}^\infty \left(\frac{1}{2}\right)^{n}$ and then calculate it's derivative.  Can we calculate this sum: $$\sum_{n=0}^\infty (n-4)\cdot \left(\frac{1}{2}\right)^n$$ using a similar method?   If not, how can I calculate it?


So, I was looking status of my badges and I've noticed that text is out of the borders. I thought it was because of zooming, but it's not, and it happens on all SO communities. Is there some problem with this? Some bug?  This is not same question as  one. Thoose are badges that I gather in tags, these are other ones. It may be related, because of badges, but they are not the same badges or on the same part of site.


I can't install gnome-software in 20.04, here is the error E: Package 'gnome-software' has no installation candidate

I can't install gnome-software, here is the error shown:- puloq@puloq-HP-Laptop-14s-dk0xxx:~$ sudo apt install gnome-software [sudo] password for puloq:  Reading package lists... Done Building dependency tree        Reading state information... Done Package gnome-software is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'gnome-software' has no installation candidate  Can someone please help?


How to remove link for an application in new Google Launcher?


I was curious to know about my 512mb ram vps and I checked  my centos vps with the 'top' command    Apparently out of there is like ~20Mb of free ram. Is that an issue? This vps has been running for like 6 months, should I clear ram cache or that won't solve anything. I saw a pretty similiar stuff of another vps's screenshot whereas he has 1G of ram and 0.9G were used like in my case.  A single website runs on this website and it is pretty much static (no mysql). Just xml encoding/decoding when a visitor visits the page. I imagine installing mysql or other packages would kill the ram?  I'm a beginner so I apologize in advance for any silly question I might have made.


Realtek and USB Wi-Fi Adapters not Found in Ubuntu 18.04

Folks,  I have a Lenovo Legion Y7000 with dual boot system (Win10 and Ubuntu 18.04). The internal wireless card is Realtek 8822be and I have also attached a Panda wireless USB drive (as I was unable to get the internal wireless card working). When I go to Wi-Fi Settings in Ubuntu, I see "No Wi-Fi Adapter Found" for both internal and USB Wi-Fi drives. But the following commands actually show that Ubuntu has detected my Wi-Fi chips:  o-vh@o-vh:~$ lsusb Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 004: ID 04ca:7070 Lite-On Technology Corp.  Bus 001 Device 003: ID 046d:c52f Logitech, Inc. Unifying Receiver Bus 001 Device 005: ID 0bda:b023 Realtek Semiconductor Corp.  Bus 001 Device 002: ID 148f:5372 Ralink Technology, Corp. RT5372 Wireless Adapter Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub   Also,  o-vh@o-vh:~$ iwconfig wlp7s0    IEEE 802.11  ESSID:off/any             Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm              Retry short limit:7   RTS thr=2347 B   Fragment thr:off           Power Management:on  enp8s0    no wireless extensions.  wlx7cdd90764d5b  IEEE 802.11  ESSID:off/any             Mode:Managed  Access Point: Not-Associated   Tx-Power=0 dBm              Retry short  long limit:2   RTS thr:off   Fragment thr:off           Power Management:off  lo        no wireless extensions.   which is not clear to me, as it seems that two wireless cards are detected, but I still see two no wireless extensions. messages. Finally, when I run lshw -C network, I see:    *-network                         description: Wireless interface        product: RTL8822BE 802.11a/b/g/n/ac WiFi adapter        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:07:00.0        logical name: wlp7s0        version: 00        serial: 48:5f:99:b2:fd:e7        width: 64 bits        clock: 33MHz        capabilities: bus_master cap_list ethernet physical wireless        configuration: broadcast=yes driver=r8822be driverversion=4.15.0-50-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11        resources: irq:143 ioport:4000(size=256) memory:a4300000-a430ffff   *-network        description: Ethernet interface        product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:08:00.0        logical name: enp8s0        version: 15        serial: e8:6a:64:c1:75:66        size: 100Mbit/s        capacity: 1Gbit/s        width: 64 bits        clock: 33MHz        capabilities: bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 ip=192.168.88.187 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s        resources: irq:17 ioport:3000(size=256) memory:a4204000-a4204fff memory:a4200000-a4203fff   *-network DISABLED        description: Wireless interface        physical id: 1        bus info: usb@1:1        logical name: wlx7cdd90764d5b        serial: 7c:dd:90:76:4d:5b        capabilities: ethernet physical wireless        configuration: broadcast=yes driver=rt2800usb driverversion=4.15.0-50-generic firmware=N/A link=no multicast=yes wireless=IEEE 802.11    Note that for the USB Wi-Fi I see *-network DISABLED while I don't see this for the Realtek Wi-Fi.   Can anyone give me some hints on what the problem is and how I can fixed the "No Wi-Fi Adapter Found" issue? I appreciate your help very much!  I have tried many of the approaches suggested for similar (but not identical) problems without any success.


Stack Exchange doesn't know when I last checked my global inbox?

I am subscribed to get my unread inbox items every 3 hours. It's working well, but today I noticed something quite weird:    For sake of future search, adding the text:  The following item was added to your Stack Exchange global inbox since you last checked it on 2015-05-18  But that's just not true, I checked my inbox yesterday. Not 7 months ago. Can it be fixed, or did I miss something? Even going to my  did not "fix" this, got today another email with the same date as yesterday.


I started a 2D Tilegame programmed with libgdx which needs potentially infinite tiles. That means when the player arrives the border of the map it should be possible to generate even more tiles. So a simple 2D Array is not the best datastructure for that purpose.  A better solution I found here in the comments from dlras2:   it seems like he put 2D arrays in 2D arrays and that again and again, that reduces a lot of memory compared to one array for all tiles:   The problem is that I dont know before how many times the arrays will be encapsulated so it should be easily possible to wrap a new Array around if it is needed.  dlras2 also posted his code in C#, but I dont understand anything from it. Do you have an idea how to implement such a datastructure of recursive Arrays in Java? Or how to translate the whole C# code into Java? I hope the other stuff like putting tiles in the right array I'll solve by my selve.


Not sure about what view to use in ViewHolder

I realize that the guide for  create a List with Recycler View     In the part ViewHolder,they are using "public MyViewHolder (TextView textView)"  But when I look at another example,they are using "MyViewHolder(View itemView)"  Is there any different?


The characteristic polynomial of $A$ is $x^n$ if and only if $\text{Tr}(A^i)=0$ for all $1\le i \le n$.

Let $k$ be a field of characteristic zero and $A$ be a matrix over $k$. Then the characteristic polynomial of $A$ is $x^n$ if and only if $\text{Tr}(A^i)=0$ for all $1\le i \le n$.   The only proof I can think of is by applying the Jordan normal form to $A$ (considered as a matrix over $\overline{k}$). Is there any slick proof without invoking this theorem?


QGIS 3.8 could not start ''Qgis_app.dll is missing'' check runtime environment check C:\OSGEO4W64\bin\qgis-dev-bin-g.exe

I had Qgis 3.4 running well on my PC Windows 10, 64 bit. I tried to upgrade to Qgis 3.8 Zanzibar and I had the error message: ''Qgis_app.dll is missing check runtime environment check C:\OSGEO4W64\bin\qgis-dev-bin-g.exe''.  So far, I tried the folowwing:   install countless times with OSGEO install from OSGeo and direct download, the 3.8 don't work go back to the older 3.4 version (from OSGEO or direct donwload), it didn't work run the from the qgis.bat file installed qgis 3.4 as administrator copy and paste the qgis.bat.temp and change the name to qgis.bat Tried to change the path of OSGeo in the .bat file, but I was a little bit lost...?   OSgeo4W shell does not launch from my start menu either, instead I have a text file opening with a text editor software. Grass Gis 7.2 doesn't work also, I also have a text file opening with a text editor software.  Funnily, I have two folders created for QGIS (or I believe so, but I'm not sure):   C:\OSGeo4W64\bin   and:  C:\Program Files\QGIS 3.8\bin   Could this be one of the reason? Should I append one of the path file, if yes, how should I do it?


Starting out with D&D from complete scratch

I'm currently planning to get myself and three other friends into D&D, so I'm looking for tips on starting out from scratch.   To be clear, by from scratch I mean I don't have any dice, any rulebooks, really anything D&D related, hell, I haven't even really played D&D myself, the most experience I have with D&D is watching other people's campaigns on youtube.  What I'm planning is to create and DM a short campaign just to give my friends a taste of what it's like to play D&D (and because I really want to try it out for myself as well). I'm also planning to put in an NPC/pseudo-PC as a part of the party.  Feel free to give general tips for this, but a few questions that I'd need at most would be:   What edition should I start with/use? What's the best tip you have for DMing? What should I do with my campaign? Is what I've got planned viable for completely new players? Are there short pre-made campaigns that are great for just jumping in and finish in around 1 or 2 hours?   Thank you!


Excel count all rows that contain certain values for certain fields

I have a sheet with a couple hundred rows. Each row has an 'owner' and a pass/fail field. I am making a second sheet that has statistics for the users. So for each user it will count the number of passes, fails and non-completes. My question is how do I write a function to do this? My guess is its something like countif(sheet1!a1:aN, AND(a[i][owner]=name, a[i][pass/fail]=pass). Obviously though this syntax doesnt work in excel, so I would like to figure out how to do it


Disk has multiple partitions but Disk Utility can only mount first one

View from Disk Utility:   Output of diskutil (for this disk only):  /dev/disk6 (external, physical):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:     FDisk_partition_scheme                        *80.0 GB    disk6    1:               Windows_NTFS                         34.9 GB    disk6s1    2:                      Linux                         10.7 GB    disk6s5    3:                 Linux_Swap                         2.1 GB     disk6s6    4:                      Linux                         32.2 GB    disk6s7   The first NTFS partition, "--", mounts just fine as read-only. But I can't get to either of the Linux partitions. I've tried mount, diskutil mount, and diskutil mount readOnly, but but they all result in   Volume on disk6s5 failed to mount If the volume is damaged, try the "readOnly" option If the volume is an APFS Volume, try the "diskutil apfs unlockVolume" verb   Also tried diskutil apfs unlockVolume, but it's not an APFS volume. Any ideas? Using macOS Sierra 10.12.6.


Understanding and interpreting consistency of OLS

Many econometrics textbooks (e.g. Wooldridge, "Econometric analysis...") simply write something similar to: "If the population model is $y = xB + u$ and (1) $\text{Cov}(X,U) = 0$; (2) $X'X$ is full rank, then OLS consistently estimate parameters $B$". I've worked out the math behind consistency but I'm a bit lost in interpreting the meaning.  We're talking about consistent estimation, but estimation of what? Please tell me if the following points are correct:   If we have random sample $X,Y$ and $X'X$ is invertible, then we can always define Best Linear Predictor of $y$ given $x$. And then OLS always consistently estimates coefficients of Best Linear Predictor (because in BLP we have $\text{Cov}(u,x)=0$ from the definition). Bottom line: we can always interpret OLS estimates as coefficients of BLP The only question is whether BLP corresponds to conditional expectation $\text{E}(y|x)$. If it does (for which we need $\text{E}(u|x) = 0$), then we can interpret OLS estimates as partial effects.   What is wrong with this or what am I missing? I don't get the point of stating the assumption of $\text{Cov}(u,x) = 0$, if this assumption is by definition fulfilled in case of Best Linear Predictor. And if we want to give structural interpretation to BLP coefficients (partial effects) we need stronger assumption of $\text{E}(u|x) = 0$ anyway. Is there any other interpretation we may have with zero covariance?


How to install Ubuntu 16.04 using iso file?

I am using an Ubuntu 10.04 system, but now it is not at all supported, so i would like to install Ubuntu 16.04.For that I just downloaded the 16.04 iso file. I would like to install 16.04, so what should I do? can somebody help? I prefer making and using a bootable flash drive but don't know how!. Please help!


Equivalent of (foo &>/dev/null &) in Windows shell

I'd like to run a particular application (let's call it foo) from the command line, but I don't want it holding up the terminal, putting any junk in the terminal from its output or error streams, and also want it to keep running even if I close said terminal. In Bash, I can do that using (foo &>/dev/null &), but I don't know how I would do that in Windows shell. Could someone please help me?


Define a function $\phi$ on $\mathbb{R}$ by $\phi(x) = |x|$ for $x\in [-1,1]$ and $\phi(x+2)=\phi(x)$ for all $x\in \mathbb{R}$. Show $|\phi(t) - \phi(s)|\leq |t-s|$. Attempt: for $x\in \mathbb{R}$, $\phi(x)$ =  $\bigg\{\begin{array}{cc} |-1 + \{x\}| \ \text{,if} \ [x]=1 (\mod2) \\ \{x\}\ \ , \text{if}\ \ [x] = 0(\mod 2)\end{array}$ where $\{x\}$ is the fractional part of $x$ and $[x]$ is the greatest integer of $x$. can't proceed further


No space left on device but mounted device shows lots of space left

I have a 2TB hard disk drive connected to my desktop, with a Windows and Ubuntu OS on two partitions of a 250GB SSD. While recently working in Ubuntu while trying write operations onto the 2TB hard disk drive, I am getting the error “No space left on device,” while there is still roughly 500GB left.   Output from df -h:  Filesystem      Size  Used Avail Use% Mounted on /dev/sdb5        69G   59G  6.5G  91% / none            4.0K     0  4.0K   0% /sys/fs/cgroup udev             24G  8.0K   24G   1% /dev tmpfs           4.8G  1.5M  4.8G   1% /run none            5.0M     0  5.0M   0% /run/lock none             24G   39M   24G   1% /run/shm none            100M   52K  100M   1% /run/user /dev/sdb2       153G  120G   33G  79% /media/suchet/c-drive /dev/sda1       1.9T  1.4T  492G  74% /media/suchet/d-drive   I am trying to write to /dev/sda1  Output from df -hi:  Filesystem     Inodes IUsed IFree IUse% Mounted on /dev/sdb5        4.4M  741K  3.7M   17% / none             5.9M     2  5.9M    1% /sys/fs/cgroup udev             5.9M   536  5.9M    1% /dev tmpfs            5.9M   614  5.9M    1% /run none             5.9M     3  5.9M    1% /run/lock none             5.9M    80  5.9M    1% /run/shm none             5.9M    30  5.9M    1% /run/user /dev/sdb2         34M  571K   34M    2% /media/suchet/c-drive /dev/sda1        493M  896K  492M    1% /media/suchet/d-drive   /dev/sda1 has 492 GB free and using 1% of the inodes.   Sample write operation:  >> echo $PWD  /media/suchet/d-drive >> touch hello.txt touch: cannot touch ‘hello.txt’: No space left on device   UPDATE: PANIC MODE!!!  I have lost my 1.5TB of data.  After failing to write to /dev/sda1, I rebooted into Windows to see whats going on. I was able to login safely and actually write a small file to that disk manually. I then rebooted again and tried going into Ubuntu, which complained about mounting error for /dev/sda while starting up. I skipped this message and logged into Ubuntu—and as expected was not able to manually mount /dev/sda—Got an error message about faulty drive.   I rebooted yet again and went to Windows. Upon startup (pre-login) Windows suggested I do a disk check, and I let it do that. The process took about 30-60 seconds and Windows booted up. And My 2TB hard disk drive was wiped out.   Currently attempting to use various data recovery tools on Windows to save my precious work. Most of them seem to recover basic image and document files - but hopefully I stumble upon something that can recover more.


Check if a button is being clicked in Javascript

Here's my question: I want to see from javascript if an object is being clicked at the moment, Here is an example:  setInterval(function() {     if (document.getElementByTagName('button')[0].isBeingClicked) { //I know this isn't right: This is where my question is about.         console.log('Button being clicked');         return;     };     console.log('Button not being clicked'); }, 1000);    With as simplified HTML ofcourse:  <html>     <head></head>     <body>         <button>Click me</button>     </body> </html>   So all together: I want to be able to see whether a button or another object is being clicked at this time. Not if it has been clicked, but is being clicked.


How can I call a method in an object from outside the JVM?

I have a really simple Java class that effectively decorates a Map with input validation, with the obvious void set() and String get() methods.  I'd like to be able to effectively call those methods and handle return values and exceptions from outside the JVM, but still on the same machine Update: the caller I have in mind is not another JVM; thanks @Dave Ray  My implementation considerations are typical    performance ease of implementation and maintenance (simplicity?) reliability flexibility (i.e. can I call from a remote machine, etc.)   Is there a 'right way?' If not, what are my options, and what are the pro/cons for each?  (Stuff people have actually done and can provide real-life feedback on would be great!)


users  I have some problems with linespacing in my thesis. One page look normal like this:    Another page look weird like this:    My preamble look like this:  \documentclass[a4paper,11pt,twoside]{report} \usepackage[utf8]{inputenc} \usepackage[english]{babel}  \usepackage{layout} \usepackage[protrusion=true,expansion=true]{microtype}   % Different usepackages \usepackage[T1]{fontenc} \usepackage[lf]{MinionPro} %% MinionPro \usepackage{icomma} \usepackage{setspace} \setstretch{1.1} \usepackage{siunitx,booktabs} \usepackage{graphicx} %% \usepackage{tocloft} - add if customize TOC \renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}} \usepackage{tabu}  % Chapter \usepackage[pagestyles ,newparttoc, explicit]{titlesec}% \usepackage{titletoc} \SetTracking[no ligatures = {f}]{encoding = }{100}  \usepackage[explicit]{titlesec} \titleformat{name=\chapter}[display]{ \figureversion{lining}}{\lsstyle\Large\MakeUppercase\chaptername\enspace \LARGE\thechapter}{2ex}{\LARGE\bfseries#1}%\uppercase  \titleformat{name=\chapter, numberless}{\lsstyle\LARGE}{}{0pt}{\MakeUppercase{#1}} \titlespacing{\chapter}{0pt}{2.5ex}{6ex}  % Table of Contents  \titlecontents{chapter}[0em]{\large\bfseries\protect\addvspace{15pt}}%\thecontentslabel\brlap[1.25\baselineskip] {\textssc{\mdseries\MakeLowercase\chaptername~{\footnotesize\thecontentslabel}}\\\medskip} {}% {\hfill\contentspage}%  % item / enumerate  \usepackage{enumitem}  % HTML code  \usepackage{listings} \usepackage{xcolor}  \definecolor{dkgreen}{rgb}{0,0.6,0} \definecolor{gray}{rgb}{0.5,0.5,0.5} \definecolor{mauve}{rgb}{0.58,0,0.82}  \lstset{frame=tb,   language=Java,   aboveskip=3mm,   belowskip=3mm,   showstringspaces=false,   columns=flexible,   basicstyle={\small\ttfamily},   numbers=none,   numberstyle=\tiny\color{gray},   keywordstyle=\color{blue},   commentstyle=\color{dkgreen},   stringstyle=\color{mauve},   breaklines=true,   breakatwhitespace=true,   tabsize=3 }   % Figure  \usepackage{chngcntr} \counterwithout{figure}{chapter}  % More pdf-pages at same site  \usepackage{pdfpages}  % References \usepackage[round, colon, sort, authoryear]{natbib} \setlength{\bibsep}{0.0pt} \setlength{\bibhang}{2em} \bibpunct{(}{)}{;}{a}{}{} \setcitestyle{notesep={: }} \def\citeapos#1{\citeauthor{#1}'s (\citeyear{#1})}  % Quotes \usepackage{csquotes} \MakeOuterQuote{"}  % Page margins \usepackage[left=3.5cm,right=3.5cm,top=3.5cm,bottom=3.5cm]{geometry}  % PDF background  \usepackage{eso-pic}  % Random text \usepackage{lipsum}  % Page style \usepackage{fancyhdr} \pagestyle{fancy}% <- ! % Defining MyStyle \fancypagestyle{MyStyle}{%     \fancyhead{}     \fancyfoot{}     \fancyfoot[RO]{\small{\leftmark} \ \ \hspace{2pt} {\vrule height 10pt width 1pt} \hspace{2pt} \ \small{\thepage}}     \fancyfoot[LE]{\small{\thepage} \ \ \hspace{2pt} {\vrule height 10pt width 1pt} \hspace{2pt} \ \lsstyle\small{\MakeUppercase{\chaptername}}\ \thechapter} \renewcommand{\headrulewidth}{0pt} % Remove header rule \renewcommand{\chaptermark}[1]{\markboth{\lsstyle\uppercase{##1}}{}} } % Redefining the PLAIN style \fancypagestyle{plain}{% \fancyhead{} %Clean headers \fancyfoot{} %Clean footers \fancyfoot[RO]{{\vrule height 10pt width 1pt} \hspace{2pt} \ \thepage} \fancyfoot[LE]{\thepage \ \hspace{2pt} {\vrule height 10pt width 1pt} \hspace{2pt}} \renewcommand{\headrulewidth}{0pt} % Remove header rule }   % Tabular \usepackage{threeparttable} \def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi} \includepdfset{pagecommand=\thispagestyle{plain}} \renewcommand{\TPTnoteSettings}{\footnotesize} \renewcommand{\TPTnoteLabel}[1]{#1}   Because of the text-length I only show you preamble. The rest is text and figures, where I use [ht].  Is there anyone who can help me.  Best regards


Does positive charge absorb electromagnetic radiations?

We know the electron that jumps from a higher energy to a lower energy state emits its energy in the form of electromagnetic radiation. What will happen if a proton jumps from a higher energy state to a lower energy state?


I wrote a function which will output a sequence of . For an input of N, showing the last N gray code numbers of N-bit.   Now, this function is not giving the correct output if the input goes over 31. But I need this to work for at least 64. How can I achieve this?   Here is the function:  function gray_encode($binary) {     $powered = pow(2, $binary) - 1;      for ( $i = ($powered - $binary)+1; $i < ($powered+1); $i++) {         echo decbin($i ^ ($i >> 1))  . PHP_EOL;     } }  gray_encode(31);   Right Output for 31:   Wrong Output for 33:   Full output for 1-31:


Deleting photos on the phone - does it affect them on iCloud?

Can you delete pictures from an iPhone and still have it saved in iCloud? If so, how?


Why some iptables DNAT rules don't work until reboot?

My iptables DNAT rules don't work until reboot. If I reboot my server, all of the rules work.  Desciption of the architecture :  Tens of hosts (senders) send some UDP packets (one-way on a specific port 9999) to my Linux router. This Linux router use iptables to forward those packets to several hosts (receivers).  senderX 10.0.0.X  ====> Linux router with iptables ====> receiverY 10.0.1.Y  The linux router have two network cards eth1 10.0.0.1/24 (senders side) and eth0 10.0.1.1/24 (receivers side).  Iptables setup :   ip_forwarding is activated all of the default policies are set to ACCEPT one iptables rules exist per sender, here is an example :    iptables -t nat -A PREROUTING -s 10.0.0.2 -i eth1 -j DNAT --to-destination 10.0.1.123   Network setup :  ip addr show :  1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00     inet 127.0.0.1/8 scope host lo     inet6 ::1/128 scope host        valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000     link/ether 54:9f:35:0a:16:38 brd ff:ff:ff:ff:ff:ff     inet 10.0.1.1/24 brd 10.0.1.255 scope global eth0     inet6 fe80::569f:35ff:fe0a:1638/64 scope link        valid_lft forever preferred_lft forever 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000     link/ether 54:9f:35:0a:16:3a brd ff:ff:ff:ff:ff:ff     inet 10.0.0.1/24 brd 10.0.0.255 scope global eth1     inet6 fe80::569f:35ff:fe0a:163a/64 scope link        valid_lft forever preferred_lft forever   Symptom :  After adding a set of rules, some of the rules doesn't work. And I can see with tcpdump that UDP packets are no more routed and packets are rejected.  tcpdump -n -i eth1 host 10.0.0.2 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes 16:12:58.241225 IP 10.0.0.2.56859 > 10.0.0.1.9999: UDP, length 1464 16:12:58.241285 IP 10.0.0.1 > 10.0.0.2: ICMP 10.0.0.1 udp port 9999 unreachable, length 556    If I flush all the rules and reinject them in iptables, rules that was not working still not work. If I reboot my server all the rules work fine.   Analysis done :  I have added a rule to log a specific sender which is not working :  iptables -t nat -A PREROUTING -s 10.0.0.2 -i eth1 -j LOG --log-prefix='PREROUTING LOG :'   But this rule doesn't log anything. Packets are coming because I see those in tcpdump but they are not logged. Also with the -v option in iptables, I don't see counters increasing for this rule.  If I apply the same rule before it stop working, I have some logs.  Question :   Is there any limits on UDP forwarding in iptables ? How I can troubleshoot this issue ?


Convergence of $\int_0^\infty $sin$ (x^p) dx$

Consider the $\displaystyle \int_0^\infty $sin$ (x^p) dx$. Does it converge when $p<0$? Does it converge when $p>1$?    My Work:  Let $x^p=y$, then $\displaystyle \int_0^\infty $sin$ \displaystyle (x^p) dx=\frac{1}{p}\sum_{n=1}^\infty \int_{(n-1)\pi}^{n\pi} \frac{\text{sin}  \; y}{y^r} dy$ , where $r=\frac{p-1}{p}>1 $when $p<0$ and $0<r=\frac{p-1}{p}\leq 1 $when $p>1$. I know that $\displaystyle \int_0^\infty $sin$ (\frac{1}{x}) dx$ diverges which is a special case of first case. But failed to show it generally. Can anyone please give me a hint to preceed?


Finding $\lim_{n\to \infty}\sqrt n \int_0^1 \frac{\,dx}{(1+x^2)^n}$

$$  \lim_{n\to\infty} n^{1/2} \int_{0}^{1} \frac{1}{(1+x^2)^n}\mathrm{d}x=0 $$  Is my answer correct? But I am not sure of method by which I have done.


Can I pre-emptively secure PS Plus free games, without yet owning a Playstation Console?

I would like to get The Binding of Isaac for with this months PS Plus membership. However, I don't plan to purchase a ps4 until March. Could I buy a PS Plus membership, go to the playstation store website, and secure my purchase of the free game without actually owning a Sony console yet?


Why did Eve die with Maelon's data available?

I saved Wrex in ME1, I saved Maelon's data in ME2, the import screen in ME3 confirmed this.    When I get to the missions on Tuchanka, I completed every one of the side missions before starting the mission where they take down the Reaper and distribute the genophage cure.  Then when I finally get to the lab, Mordin tells me that Eve has died.    Yet every site I've been to says that keeping the data allows her to live.  So why did she die?


I'm running Android 4.2.1 and recently the Play Store app updated to version 4.8.20 and since then I'm facing icon issues within the store.    Click for larger version  As you can see, there's a weird black background for every app icon, this is the case for every page within play store, all the icons have this kind of background. I once tried un-installing Play Store updates and fell back to pre-installed version 4.1 of Play Store, which solved the icon issues (but left me with older version of Play Store). And obviously, the Play Store again updated itself to latest version and I again have same issue.  Note that there isn't any such problem on my different Android phone (which is running Android 4.2.2 but has same Play Store version, 4.8.20).  I've tried clearing Play Store cache, App Data, and as said earlier, uninstalling updates (which momentarily solves the problem), but nothing seems to solve the problem with this version of Play Store, only option I haven't tried is hard resetting my phone, which I want to avoid.  Is this a known bug with this version of Play Store? what are the options I have to fix this?


What Field Type Should Be Used for Password in MySQL when Using PHP crypt()

Using PHP crypt() method I have a PHP script to store users encrypted passwords in MySQL database. Can you please let me know what field type I should use to store the encrypted data?  Thanks


Problems with referencing to tables A1, A2 etc in appendix(with IEEEtran class)

I'm trying to refer to some tables in the appendix of my paper, the following command have been used to number the tables as A1, A2 etc.:  \setcounter{table}{0} \renewcommand{\thetable}{A\arabic{table}}   but when I use the \ref command for cross reference, It only shows table A, not Table A1 as I wanted, will someone help figure out why the reference goes wrong?  I'm using the IEEETran class, and whit the following code:  \appendix \setcounter{table}{0} \renewcommand{\thetable}{A\arabic{table}}   some text here and refer to Table \ref{tab:app-flexible}.   \begin{table}[!htbp] \centering \begin{threeparttable} \label{tab:app-flexible} \caption{Parameters balabala} \begin{tabular}{cccc} \toprule table contents... \bottomrule \end{tabular} \end{threeparttable} \end{table}


I just overheard a conversation between two foreign students and one of them was complaining abot something like this: "I attend every single class while my classmates skip whole days and dare I not share my notes with them , I suddenely become the meanest person in the world."  I'm not sure if I caught it properly, but this dare I not thing got me thinking. Is this correct grammatically? Or how else would you put it? Thanks in advance! :)


Calculating acceleration due to gravity using General Relativity

A few months ago I wrote a program which simulates how user-defined bodies moved under each other's gravities using Newton's Law of Gravitation. For each body, I calculated the total acceleration from all of the other bodies and moved it accordingly.  I would like to see if this can be done using General Relativity. Presumably, I would have to find each body's effect on spacetime and then calculate the body's acceleration/velocity as it moves over the warped spacetime. In the end, I would like to see if I can recreate Mercury's motion around the Sun, as calculated by Einstein.  If there is no single equation or set of equations which can be used to calculate the motion of a particle under gravity, I would love to see an example of where this has already been implemented.


Point location And Distance between two 3D skew lines

I have read this forum post     multiple times but I'm stuck.  I have two lines defined resp. by   Point $P_1 (2,4,0)$ and vector $V_1 [2,-2,4]$  Point $P_2 (4,4,1)$ and vector $V_2 [-3,4,-2]$  Step 1) Define the normal vector to the two Vectors $V_3 = V_1 \times V_2 = [12,8,-2].$  Step 2) Define the Vector $V_4 = P_2-P_1 = [2,0,1].$  Step 3) Define the abs(Dot Product) : $|V_3.V_4| = 22.$  Step 4) Define the norm :  $|[V_3]| = \sqrt{12^2+8^2+2^2} = 14.56$  Step 5) Divide abs(Dot Product ) / $|[V_3]|$  Conclusion : Minimum Distance = $ 22/14.56 = 1.51.$  This is correct but how do I get the location of the two points realizing this minimum distance using my example values step by step ?  Thanks in advance Marc


I have a laptop which is connected to the internet with ADSL modem, and I would like to share the internet for any laptop connecting to wireless router from my laptop using hotspot.  This is what I want:  ┌────────────────────┐ │ ADSL modem         │ └───┬────────────────┘     │ ┌───┴───────────────────────┐ │ laptop's wired adaptor    │ │                           │ │ Hotspot software          │ │                           │ │ laptop's wireless adaptor │ └───┬───────────────────────┘     │ ┌───┴──────────────────────┐ │ wireless router(linksys) │ └───┬──────────────────────┘     │ ┌───┴─────────────────────────────┐ │ Laptop computers and cellphones │ └─────────────────────────────────┘   How can I do that?


'late for school' or 'late for the school'?

Why is this sentence wrong about the article usage?     Don't be late for the school.   I was told that the correct sentence is Don't be late for School.


I'm a bit confused about writing the correct sentence:   It is we whose flat was robbed. It is us whose flat was robbed.   The context is this, A family was robbed and they are in a police department waiting when the police officer calls, "Who's here about the robbery?"  What bothers me is that both sound okay with whose but I somehow feel that "we" is incorrect although it corresponds to "whose" much better than "us".   It is we whose flat was robbed. - We are the family whose flat was robbed.   Here are examples from google search:   Or maybe it's we whose lives are impoverished. Before we parted ways, Philip told me he'd very much like to have a wife just like me someday ... () It's we whose eyes can fill with tears, We yet can be aggrieved. We're prone to all our human fears; It's we who feel bereaved. () It's we, whose destiny it is to serve others, who are There were shouts, a confusion of commands and of hands of their filthy wishes. () But it's we whose meager earnings are at stake that get caught. I call it an outrage." Miss White snapped on the radio, tuned in on Babson's reports, and went on: ... ()   and   It is us whose flat was robbed. - It is us, the family, whose flat was robbed.   Here are examples from google search:   “Our guys know that going over there it's us whose back is up against the wall because I give Westfield a lot of the advantages..." () It's us that he 'walks with purpose' towards and it's us whose senses he 'overwhelms with his passion'. Ergo, the many thousands of female authors with... () It's us whose freedoms are at risk. And it's MPs who retire on a generous, safe pension. Most politicians are not venal - and we need them. ()   I'm unsure whether a comma is needed after "it's we/us"!  Edit: In all your duplicates it's who/whom which does differ from whose. Not one of your duplicates explains the pronoun to use with "whose".


proving multiplicative property of Euler's totient function

I'm trying to prove that Euler's $\phi$ function is multiplicative i.e. $\phi(mn) = \phi(m)\phi(n)$ when m and n are coprime. A key step in the proof is this: $A = \{a \mid 1 ≤ a < m, \gcd(a, m) = 1\}$ $B = \{b\mid  1 ≤ b < n, \gcd(b, n) = 1\}$ $C = \{c \mid 1 ≤ c < mn, \gcd(c, mn) = 1\}.$ Then we have that |A| = φ(m), |B| = φ(n), and |C| = φ(m × n). I need to show that C has equally many elements as the set A × B = {(a, b) | a ∈ A, b ∈ B}, from which the claim follows. By using the Chinese remainder theorem by which the mapping $\mathbb{Z}_{mn} → \mathbb{Z}_m × \mathbb{Z}_n$, is bijective in case of m and n coprime. Now it should be enough to prove that $A ⊂ \mathbb{Z}_{m}$, $B ⊂ \mathbb{Z}_n$, and $C ⊂ \mathbb{Z}_{mn}$. I'm not able to prove it. Could you clarify what's the relation between the sets A,B, and C and the quotient set $\mathbb{Z}_{x}$?


Using the Finite Volume Method, one can discretise a PDE in the following way:    But what I don't understand is why the minus sign (highlighted with yellow) appears in the equation below. It feels that it should be the plus sign, yet it must be the minus sign. I would appreciate if someone could please clarify.


how to give full permissions to a specific user for a folder?

I am completely new to Ubuntu.   There are 4 user groups in my Ubuntu 13.04 (32bit).   In user group ceo, there is only one user chief.    There is a folder in Home (default Personal folder) which is named ITSM Lab1.   There are subfolders with files inside ITSM Lab1.   I want to give user chief or group ceo Full permissions for the folder ITSM Lab1 and everything inside it (and Full permissions will also be given to future subfolders and files).   What is the command to do these?