How large was Morgoth in the First Age of the Sun?

Morgoth wore one body which he was unable to change during the First Age of the Sun, the last 500 years or so of the Elder Days.  Morgoth shouldn't have been able to make his body grow bigger or smaller at will.  Answering another question about Morgoth's size during hs duel with Fingolfin, various answers were given, each based on a single point.  But nobody tried to explain the contradictory evidence.  There are many indications that last body was very large, many times as tall as a Human.  It is said that when the Iron Crown was lying on its side Beren was barely strong enough to roll it enough to get a silmaril within reach.  Thorondor the giant eagle supposedly had a wing span of about 30 fathoms or 180 feet, and after Morgoth's duel with Fingolfin Thorondor scarred Morogth's face with his claws.  Assuming that the relative sizes of Thorondor and Morgoth were about the same as the relative sizes of modern eagles and men makes Morgoth well over 100 feet tall.  In the duel with Fingolfin Morgoth's feet made sounds like thunder, implying that he weighed at least tens of tons like a large sauropod dinosaur.  Morgoth's mace Grond made large chasms when it smote the earth.  Since Thorondor was able to scratch Morogoth's face it is hard to believe that Morgoth had a tiny head only about two or three feet wide.   A head at least ten feet wide seems to be implied by Thorondor being able to sratch Morgoth's face.  Since Morgoth put his foot ONLY on Fingolfin's neck, Morgoth's foot should have been ONLY Human or at most bigfoot sized, and Morgoth should have been ONLY ten or twenty feet tall.  And if Morgoth was only ten or twenty feet tall Thorondor should have been able to grab Morgoth's body and carry him miles high and then drop him, killing Morgoth's last physical body and changing the history of the rest of the First age.  So what is the explanation of the seeming contradiction and what is the most plausible size estimate for Morgoth?


Black reflections with Cycle's Glossy Material

This is a common problem I've found in a few jobs related with ocean. When the camera is close to the surface, looking at the horizon, those black areas appear. Either with a normal texture or not.     It looks there's a problem with ocean's self reflection, but I can't avoid this by adjusting the bounces. Any ideas?  . As you can see, the environment is visible only through camera and glossy, and the problem keeps with a blank environment too. The scene is lit with a sun lamp and plain color environment.


Travel without residence permit in schengen zone

I live in Poland. I am a citizen of Turkey, so I am a non-EU citizen. Few days ago i lost my residence card and in 7-8 days i will go to Italy for a nice trip.   I know it's a domestic flight from Poland to Italy, however someone told me that some flight companies are checking validity of your documents. I have a ticket from RyanAir. How screwed up am I?


I have a 16 GB iPhone 6s. Just 7 days ago I restored as new because my phone keeps taking up all my storage. When I restored, I had 4 GB available, 5 days went passed and I was forced to restore again because I had no space. I didn't even download a single thing.  3 days ago I restored as new, again. I had 3.9 GB available. Yesterday and this morning I had 1.32 GB available, now I have 600 MB available. This has been a problem since my iPhone 5c on iOS 7.  I've done numerous restoring from backups and as new. I haven't downloaded any apps and in storage usage settings, it doesn't add up to what is being used. I've called Apple and all they say is do a restore even though I've done it many times.  If I delete an app, my phone will take up the space within a day. It got so bad I couldn't send texts because my phone would "forget" them. iTunes says I have more storage than I actually do. I've used 3rd party cleaning software such as PhoneClean. It freed up some but not all.  Here is a picture of the Storage section on Preferences after a recent restore:    It looks ok now but available space will slowly go down after a couple of days.


How can I display only the unique values in one column in Excel?

Is there a way to display the unique values in a column ONLY?  Example:   AAPL AAPL AAPL AAPL AKAM AMZN AMZN AMZN AMZN AMZN AMZN  Expected result:   AAPL AKAM AMZN  I have already done a sort for multiple factors, and the first match for each is the best match.  I'm not sure if this is a vlookup or something else.


why do we assume unity feedback system when designing a controller for a system? Please guide on this issue. It's urgent. Thanks!


Algorithms for Time Series Anomaly Detection

I'm currently using Twitter's AnomalyDetection in R: .  This algorithm provides time series anomaly detection for data with seasonality.  Question: are there any other algorithms similar to this (controlling for seasonality doesn't matter)?  I'm trying to score as many time series algorithms as possible on my data so that I can pick the best one / ensemble.


Is Ubuntu pronounced as you-buntu or oo-buntu? Or both? How does Mark Shuttleworth pronounce it?  Just been wondering...


How to show that $\partial B(0,1)$ is not weakly closed set?

Let X be an infinite dimensional  normed $\mathbb K$-linear space .Prove that $\partial B(0,1)=\{x\in X: ||x||= 1\}$ is not weakly closed in $X$.   We know that a convex subset of $X$ is weakly closed iff it is closed w.r.t. the normed topology. But here $\partial B(0,1)$ is not convex in X.   (definition of weak topology): Let $X$ be a normed $\mathbb K$ -linear space . The weak topology of $X$ is the smallest topology $J_{\omega}$(which is a subset of the normed topology of X) such that $f:(X,J_{\omega})\to\mathbb K$ is continuous for all $f \in X^*.$  Please someone give some hints.  Thank you.


Macbook Pro mid 2012 connect to projector via thunderbolt

Maybe I need to duplicate this  here I am not sure. I need to connect my macbook pro to HDMI port on 3d projector to be able watch full hd or 3d video. What cable should I buy/use?


What is the easiest way to generate $\mathrm{GL}(n,\mathbb Z)$?

I'm searching for a way to generate the group $\mathrm{GL}(n,\mathbb Z)$. Does anyone have an idea?  The intention of my question is that I am searching for an easy proof of the existence of the epimorphism:  $\Phi:\mathrm{Aut}(F_n )\to \mathrm{Aut}(F_n/[F_n,F_n])=\mathrm{Aut}(\mathbb {Z}^n)=\mathrm{GL}(n,\mathbb {Z})$  I know that $\Phi$ is an canonical homomorphism since the commutator subgroup is characteristic in $F_n$. So I need some nice generators of $\mathrm{GL}(n,\mathbb {Z})$ to find their preimages in $\mathrm {Aut}(F_n)$ to prove the surjectivity of $\Phi$.  Thanks for help!


does frozen vegetables and berries need to be washed or rinsed before cooking for eating fresh? Frozen vegetables and berries do you keep them in the freezer or chiller or in an airtight container to stay fresh?


I have installed Ubuntu alongside Windows, but now I want to uninstall Windows as it's now corrupted.I don't remember on which partition I have Windows installed.I have the following partitions:   4 ntfs 1 ext4 1 extended 1 linux-swap 2 unallocated   How to know on which partitions I have Windows?


Eval Php variable with double quotes inside

EDIT: This question has been edited from the original  I have a string in a database with HTML and PHP variable's inside. Some of the HTML has double quotes as if I try to use single quotes the database escapes it by adding a quote in front of it like so: ' '.  I want to query the string and assign it to variable $x. And then use eval("\$x = \"$x\";"); to parse the PHP variable, but it seems the double quote is ruining the eval(), and the variables are not parsing.  Is there a way to allow PHP to read the variable?  I am aware, but anyone reading this should also be aware that using eval() can be very dangerous!  Any help would be greatly appreciated!


Cannot start any Virtual Machine anymore on High Sierra

I just switched from Sierra to High Sierra for some reason, and Virtualbox doesn't work anymore. All my machines (Debian, Windows etc), newly created or existing, show that message when started:  The virtual machine 'Serveur PHP 5' has terminated unexpectedly during startup with exit code 1 (0x1).  Error code:  NS_ERROR_FAILURE (0x80004005)  Component:  MachineWrap  Interface:  IMachine {5047460a-265d-4538-b23e-ddba5fb84976}   It's not linked to  :   No "Kernel Driver" error message No "Security and Privacy" message Discard not working Reinstalling does not solve anything.   VB Version : 6.1.2  macOS Version : 10.13.6  Any idea?  Many thanks


How can I get the list of amazon ec2 instance using aws command line tool? I checked various available commands but could not fount one suitable for this purpose.


Being asked for credit card information for updates on apps already purchased

I have purchsed the apps & most I have are free but I'm being asked for credit card information for apps that are being updated.  I'm not being charged for the updates, am I?


Should my sitemap and robots.txt have http or https urls for the given scenario

My website is running on node.js and runs in http on port 3000 I am using NGINX to enable https access so that all pages are served as https I have placed my sitemap.xml and robots.txt inside the public folder of my express app Should the URL's inside be http or https. They say you should not have both in the same file Nginx I assume redirects HTTP traffic to HTTPS   Can someone kindly suggest?


What's exactly the new definition of kilogram, second and meter?

Could one explain  this?  Technically a kilogram (kg) is now defined: […] by taking the fixed numerical value of the Planck constant h to be 6.626 070 15 × 10–34 when expressed in the unit J s, which is equal to kg m2 s–1, where the metre and the second are defined in terms of c and ΔνCs.  Does that mean that 1 kg = 1 Planck constant? And what exactly is the new definition of the second and the meter?


Probability Density Function in layman terms

I know that PDF of a Random Variable (RV) helps in specifying the probability that the RV lies in a particular interval (for simplicity, let us assume that it is one-dimensional), and that, if it exists, it is the derivative of the Cumulative Distribution Function (CDF).  What I am not able to understand is, how do I explain it in simple language. Like, for CDF at a point $x$, we can say it gives the probability that the RV lies below $x$. What about the case of PDF? Is it possible to explain it independent of CDF?


How many positive integers less than 1000 have distinct digits and are even?

I am not looking for an answer on this. Just need to clarify why my approach is failing -  $N_1 + N_2 + N_3$, i.e. single digit, double digit, 3 digit  single $= 2, 4, 6, 8$, i.e 4   double = X non-zero $= 8 \cdot 4 = 32$ X zero $= 9 \cdot 1 = 9$  Now the confusing part three digit, breaking into 4 cases   X zero zero $= 9$   X nz nz $= 7 \cdot 8 \cdot 4 = 224$   X z nz $= 8 \cdot 1 \cdot 4 = 32$   X nz z $= 8 \cdot 9 \cdot 1 = 72$  Three digit total comes to $= 9 + 224 + 32 + 72 = 337$. This answer is wrong and it should be $328$. What am I missing in the logic? Please suggest.


I am from the mathematics community on StackExchange. I should say that I know absolutely nothing in statistics. I have never taken a statistics course or read any book on it. I am familiar with basic probability theory though, because it is a mathematics subject. After all probability is an application of real analysis to finite measure spaces, and the subject of probability has a rigorous mathematical foundation to it. But what about statistics?   I view statistics as a way to derive quantitative results from observable data. (Please correct me if this is an inaccurate description of statistics.) This is why statistics is very valuable to scientists whose work entirely consists of observable data. But mathematics is entirely non-empirical. None of the major mathematicians of the last century, or the current one, (at least that I know of), know any statistics. This is why I am asking if you, statisticians, agree with the statement that, "statistics is a numerical branch of science, rather than mathematics".   Now I understand that statisticians use mathematics, sometimes even advanced results. But does not necessarily make them mathematics. Physicists use a lot of mathematics too, but they are not mathematicians. For them mathematics is a means to solve some other problem, it is not the math that inherently interests them.


How to Tell Which Devices are in a PCI Slot

I am trying to figure out what devices are in my desktop computer's PCI slots. I need an open slot for installing a wireless adapter, and I cannot figure out which ones I can take out, and which ones I can't.   If there is a sound device in one of the slots, I have no problem with removing it, as I do not need my speakers for this computer.  Any help with determining which slots have what is appreciated.  Thanks.


update-initramfs and linux-firmware while installing and updating softwares

I'm using Kubuntu 19.04 and I've updated the KDE Desktop to version 5.16.2 I keep getting the following errors while performing a software update or installation through KDE Discover(Software center) and Konsole(Terminal). Some Background info:I increased the size of my root(/) partition earlier.  Setting up linux-firmware (1.178.2) ... update-initramfs: Generating /boot/initrd.img-5.0.0-20-generic cryptsetup: WARNING: The initramfs image may not contain cryptsetup binaries      nor crypto modules. If that's on purpose, you may want to uninstall the      'cryptsetup-initramfs' package in order to disable the cryptsetup initramfs      integration and avoid this warning. I: The initramfs will attempt to resume from /dev/sda8 I: (UUID=dc2cd463-e46e-4cbd-b14f-ed811bf6526c) I: Set the RESUME variable to override this.  gzip: stdout: No space left on device E: mkinitramfs failure cpio 141 gzip 1 update-initramfs: failed for /boot/initrd.img-5.0.0-20-generic with 1. dpkg: error processing package linux-firmware (--configure):  installed linux-firmware package post-installation script subprocess returned error exit status 1 Errors were encountered while processing:  linux-firmware    output of df -h,df -i:    ak@ak-pc:~$ df -h Filesystem      Size  Used Avail Use% Mounted on udev            1.9G     0  1.9G   0% /dev tmpfs           385M   12M  374M   3% /run /dev/sda6       8.6G  5.6G  2.5G  70% / tmpfs           1.9G  6.2M  1.9G   1% /dev/shm tmpfs           5.0M  4.0K  5.0M   1% /run/lock tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup /dev/loop0       23M   23M     0 100% /snap/snapd/3646 /dev/loop1       55M   55M     0 100% /snap/core18/1049 /dev/loop3       89M   89M     0 100% /snap/core/7270 /dev/loop4       36M   36M     0 100% /snap/gtk-common-themes/1198 /dev/loop2      266M  266M     0 100% /snap/kde-frameworks-5-core18/29 /dev/loop5       54M   54M     0 100% /snap/core18/1013 /dev/sda5       180M  156M   12M  94% /boot /dev/sda7        11G  3.9G  6.4G  38% /home tmpfs           385M   12K  385M   1% /run/user/1000 /dev/sda3       366G  331G   36G  91% /media/ak/AC4A56F84A56BEB0 ak@ak-pc:~$ df -i Filesystem       Inodes  IUsed    IFree IUse% Mounted on udev             483633    581   483052    1% /dev tmpfs            492446    920   491526    1% /run /dev/sda6        567840 194674   373166   35% / tmpfs            492446     11   492435    1% /dev/shm tmpfs            492446      5   492441    1% /run/lock tmpfs            492446     18   492428    1% /sys/fs/cgroup /dev/loop0          627    627        0  100% /snap/snapd/3646 /dev/loop1        10031  10031        0  100% /snap/core18/1049 /dev/loop3        12823  12823        0  100% /snap/core/7270 /dev/loop4        25385  25385        0  100% /snap/gtk-common-themes/1198 /dev/loop2        33964  33964        0  100% /snap/kde-frameworks-5-core18/29 /dev/loop5         9877   9877        0  100% /snap/core18/1013 /dev/sda5         48768    314    48454    1% /boot /dev/sda7        718080   8798   709282    2% /home tmpfs            492446     34   492412    1% /run/user/1000 /dev/sda3      37240056  16439 37223617    1% /media/ak/AC4A56F84A56BEB0


Is the "read contacts" permission per account or per device?

I have two accounts on my phone (Android 7.1.2)  If one app has "read contacts" permission can it read the contacts for all my accounts or only the account I install it or use it as?  Does it change the answer if the app also has "find accounts" or any other permission?  This question is motivated by the WhatsApp app, but it would apply to many others.


I have heard someone say in a conversation, "Well, my point being,,,". As an English learner, I was puzzled but assumed that it was roughly the same as saying "My point is that..." or "Here's my point:"   Even if my guess was right, the phrase strikes me as a bit odd. Can anyone elaborate on the meaning/usage/gramatical explanation of this phrase?


How to remove footline on the title page of beamer slides

I am using the default theme, and use the following to customize the footline,  \useoutertheme{infolines} \setbeamertemplate{footline}{\hspace*{.5cm}\scriptsize{\insertshorttitle \hspace*{50pt} \hfill\insertframenumber\hspace*{.5cm}}\\ \vspace{9pt}}    I don't like it also appears on the title page. Is there a simple way not to show it on the first page?


How to remove 0's from a Figure Name if its not in a Subsection, etc

I use the chngcntr Package to Name my figures accordingly. \counterwithin{figure}{section} \counterwithin{figure}{subsection} \counterwithin{figure}{subsubsection} \counterwithin{figure}{paragraph}  My Problem is when a Figure is, for example, only in a subsection and not in a subsubsection and paragraph the Figure name looks like this: Figure 1.1.0.0.1. But i want to look like this: Figure 1.1.1 If anybody can help that would be much appreciated :)


What is an kernel update with "Bump ABI"?

As you can see in the , there are update messages like "Bump ABI - Maverick ABI 28".  According to the , ABI is something like a bridge between the kernel space and the other modules (my interpretation).  Does such an update adds extra features and / or bugfixes? Should I upgrade my kernel to the next version?


What is the definition of how to count degrees of freedom?

resulted, rather as by-product, the discussion on how to count degrees of freedom (DOF). I extend that question here:   Are necessary1 derivatives such as velocities counted as individual DOFs or together with the respective coordinate2? Should complex valued DOFs be counted twice as in "two real-valued DOFs" or once as in "one complex-valued DOF"? (I mean, when one does not want to specify this explicitly)   Please answer with some reference, unless it turns out this is actually a matter of taste rather than a strictly defined thing.    1) I mean those a value of which is required as an initial condition 2) I count fields in QFT as coordinates as well, while space-time-coordinates are parameters to me, if that matters. I know a field actually has $\infty$ (or rather, $2^\aleph$) DOFs itself, but let's say e.g. "one $\mathbb R^3$ continous DOF" in that case


On design patterns: When should I use the singleton?

The glorified global variable - becomes a gloried global class. Some say breaking object-oriented design.  Give me scenarios, other than the good old logger where it makes sense to use the singleton.


Java Check If Two JTextField Has The Same Content

I have two JTextFields txf1 and txf2.  In both of them I input the same content (for example: "test").  I made and If statement:  if (txf1.getText() == txf2.getText()) {     System.out.println("Equal"); } else {     System.out.println("Error"); }   Why it prints out the error message? I even made a System.out.println(txf1.getText()) and System.out.println(txf2.getText()) and the same looks equal, but prints out the error message?


Term to describe the phenomenon of people starting conversations when you're about to leave

As suggested by the title, I am looking for a term to describe the well-known (?) phenomenon, that some people often start quite lengthy conversations with someone standing in a doorway about to leave. I am sure I came across such a term some time ago, but cannot find it now.  Thanks in advance!


How to compute the remaining space on the current page

Is there a way to compute the remaining space on the current page and issue an optional command?


Find the eigenvalues and eigenvectors with zeroes on the diagonal and ones everywhere else.

I have been working on this problem for a couple hours and am completely stuck. Any help would be greatly appreciated.  Let $A$ be the $n \times n$ matrix which has zeros on the main diagonal and ones everywhere else. Find the eigenvalues and eigenvectors of $A$.


How to estimate mean and variance of censored normal?

Supposing I have data which I know is normally distributed, but because the recording process is right censored, how do I estimate the parameters of the distribution?


solving functional equation $f(x+y) +f(x)f(y)=f(x)+f(y)+f(xy)$ for all real numbers

The functional equation to be solved is $$ f ( x + y ) + f ( x ) f( y ) = f ( x ) +f ( y ) + f ( x y ) $$ for $ f : \mathbb R \to \mathbb R $. I found about four possible solutions to the equation but ran into a fundamental problem with all of them. For example I found one of the solutions to be $ f ( x + 1 ) = f ( x ) + 1 $ with $ f ( 0 ) = 0 $. By induction I proved that $ f ( x ) = x $ for all integers and by setting $ x = \frac m n $, $ y = n $ in the original equation with $ m $ and $ n $ integers, I proved that $ f ( x ) = x $ for all rational numbers. My main problem is that I am not able to think of any way to extend the argument to all real numbers. A search on the internet told me that one way to prove this would be using the density of rational numbers but this method requires the function to be continuous, too. Could anyone help me in extending the argument to real numbers? Maybe if we could prove the continuity of the function?


It is well known that $i$ is unit imaginary part of any complex number, but many uses of $i$ show that has others mathematical properties, for example in integration area, if I want to compute integral of $ix$ I will get $i \frac{x²}{2} $ then here $i$ is considered a constant. Also if I want to check divisors of $i$ I got only  $1$ then here $i$ has divisors however it is not integer.  Really I would like to know more about the nature of "unit imaginary part" $i$, or what the Mathematical nature of $i$ is?    Thank you for any help.


Smooth function not analytic at any $ x$

Does there exist function $ f $ that is smooth but not analytic for all $x\in \Bbb{R}$? ($f $ is a Real-valued function)


Pause a process and bring it back to foreground in a separate screen in Ubuntu

A process put to sleep by issuing ^Z can be brought back to the foreground by listing the running jobs $ jobs and giving the job id to fg %id.  But when I tried to list the jobs in a separate screen of the same terminal there was no results. How to achieve this ?  What I want is to start the same process without killing it in a separate screen of the same terminal.


Can I withdraw money from my rrsp if I made excess contribution by mistake?

If by mistake, I exceed the contribution limit to my RRSP, can I withdraw it from my RRSP, to avoid paying penalty? e.g Let us say my RRSP room is 18k, but I contributed 22k, so any contribution in excess of 2k, will be taxed at 1% per month. To avoid this, should I withdraw the excess money from my RRSP?


Why don't I accelerate upwards due to reaction force?

Now I am standing on the ground and thinking that I exert a force equal to my weight on the ground. So as a reaction the ground also exerts a equal reaction force on me of the same magnitude and opposite direction. Both forces are exerted on different bodies. So why doesn't the ground accelerate downward and me upward? Why am I standing still not going upwards?


Can my answer to a question be a link to another question?

I came across a question which is indirectly related to a clearly answered questions in Stack Overflow.   Can my answer be a link to that question (all similar questions)?


My android device is 4.4.2 and it’s rooted.  To manage auto-start app, I installed Clean Master and allowed it for root access. Also I stopped many apps that start automatically.  To manage start-up app, I installed Boot Manager Xposed.  Apart from these I installed other apps also for controlling auto-start and start-up app.  However, I see many unwanted background running apps and auto-start app.  Please go for screenshot. Whenever I close any apps, I remove them from Recent Apps also. And I keep Recent Apps empty/clean. However, most of time I see closed apps are still in Running Apps.   I do End Process for all unwanted apps manually every time from Running Apps which is ridicules for me.    In screenshot, some apps like My Airtel, Clean Master, Facebook, OneDrive, ET News, Practo for health, Fox News, Hindustan Times News, Flipkart Shopping, SuperBattery, Outlook Email start automatically and very frequently. There are other user apps also that run in background automatically without tapping them.  Till the time, I don’t call/tap any apps, I don’t want see them in Running Apps and once I close any app, I don’t want to see them again in Running Apps.  Please let me know to control them.  Regards GNS


I'm about to add another (second) language to a site. I considered a number of options:  Top level domains/subdomains/path. The first option seems to be rather for multi-regional sites, which is not my case.  Taking language from cookies/user preferences (the Accept-Language header).   I lean towards not using cookies, and ignoring Accept-Language. The reasoning here is that if one user sends somebody a link, it wants the other user to see the same content in that specific language. In other words sounds like a good practice for public content. Also I'm planning to use path (example.com/de), because... I'm not sure. Probably because subdomains sound more like multi-regional solution. And another thing, I'm going to leave the main language as is (keep the URLs). Otherwise I'll need redirects. Particularly from the main page. Which might sound suspicious to search engines. Or so I think. In other words each page will have two versions: https://example.com           (en) https://example.com/de        (de, new) https://example.com/page1     (en) https://example.com/de/page1  (de, new)  Does that sound good? Am I missing something? Do you think that shouldn't affect the site's rating in a bad way?


Change Placement of In-Frame Beamer Notes - [item]-Notes NOT at End of Page

Currently, (and this is even mentioned in the current , Chapter 19), in-frame notes are ordered such that those notes that used the "[item]" option are all bunched up at the end of the subject note page.  Is there a relatively painless way to change this so that you can list said "[item]" notes, say, in the middle of the notes page?  Here is a MWE to show what I'm looking for:  \documentclass{beamer}  \setbeameroption{show notes}  \begin{document}  \begin{frame}     This is boring.     \note{I want this to be line 1\par}     \note[item]{I want this to be line 2}     \note{I want this to be line 3} \end{frame}  \end{document}   The output (notes page) of this code is:    WHAT FINALLY WORKED FOR ME:  Please see the selected answer below, plus the comments attached to same, for the explanation behind the following code.  Also note that the indentation problem (as per ted_kingdom's comment below said selected answer) still exists.  \documentclass{beamer} \setbeameroption{show notes} \begin{document}   \makeatletter \def\myrenewcommand{\@ifnextchar<{\beamer@myrenewcom}{\beamer@origrenewcommand}} \def\beamer@myrenewcom<>{\@star@or@long\beamer@myrenew@command} \def\beamer@myrenew@command#1{%   \expandafter\def\expandafter\beamer@name\expandafter{\csname @orig\string#1\endcsname}%   \expandafter\let\beamer@name=#1\relax% \@ifnextchar[{\beamer@@myrenewcom{#1}}{\beamer@myrenewcomnoopt {#1}{0}}} \def\beamer@@myrenewcom#1[#2]{\@ifnextchar[{\beamer@myrenewcomopt{#1}{#2}}{\beamer@myrenewcomnoopt{#1}{#2}}} \long\def\beamer@myrenewcomnoopt#1#2#3{%   \ifnum#2=0\relax%     \expandafter\def\expandafter#1\expandafter{\expandafter\beamer@sortzero\expandafter{\csname beamerx@\string#1\endcsname}}%   \else     \expandafter\def\expandafter#1\expandafter{\expandafter\beamer@sort\expandafter{\csname beamerx@\string#1\endcsname}{#2}}%   \fi%   \beamer@argscount=#2\relax%   \advance\beamer@argscount by 1\relax%   \expandafter\renewcommand\csname beamerx@\string#1\endcsname[\beamer@argscount]{#3}% } \long\def\beamer@myrenewcomopt#1#2[#3]#4{%   \expandafter\def\expandafter#1\expandafter{\expandafter\beamer@presort\expandafter{\csname beamerx@\string#1\endcsname}{#2}{#3}}%   \beamer@argscount=#2\relax%   \advance\beamer@argscount by 1\relax%   \expandafter\renewcommand\csname beamerx@\string#1\endcsname[\beamer@argscount]{#4}% }   \makeatletter \myrenewcommand<>{\beamer@inframenote}[2][]{%   \ifbeamer@inlecture%     \only#3{%       \def\beamer@temp{#1}%       \ifx\beamer@temp\beamer@itemtext%         \expandafter\gdef\expandafter\beamer@notes%         \expandafter{\beamer@notes\par\hskip30pt$\bullet$\hskip10pt#2\par}%       \else         \expandafter\gdef\expandafter\beamer@notes%          \expandafter{\beamer@notes#2\par}       \fi%     }%   \fi%   }  \begin{frame}     This is boring.     \note{I want this to be line 1}     \note[item]{I want this to be line 2}     \note[item]{I want this to be line 3}     \note{I want this to be line 4}     \note{I want this to be line 5}     \note[item]{I want this to be line 6}     \note[item]{I want this to be line 7}     \note{I want this to be line 8}     \note{I want this to be line 9}     \note[item]{I want this to be line 10} \end{frame}  \end{document}


What is the difference between MAC OS X "Virtual Memory" and Linux/Unix Swap?

I would like to understand the difference of MAC OS X "Virtual Memory" and Linux/Unix Swap.    I ask this because I observed that MAC OS X "Virtual Memory" seems to work way more efficient (in desktop use cases) than Linux/Unix Swap does.    In my understanding, MAC OS stores unused (RAM)Data in "Virtual Memory". In manner, it keeps the RAM free for current used Data/ current running Programs. So for example, if I have watched a movie and then start to render some images, MAC OS will move the movie into the "Virtual Memory" and remove it into the RAM only when I re-access it.    Swap to the contray will only use the swap if the current running programs demand more RAM than available. And will immediately write the data stored in swap back to the RAM as soon as possible.


It is given to me that r, s and t are prime numbers and that p, q are two positive integers such that the LCM of p and q is $$N=r^2t^4s^2  $$ and we want to find the numer of ordered pairs (p, q).   Here since LCM of (p, q)  is N then both the numbers must be divisors of N.  If we calculate the total number of divisors of N we get 45 divisors which means that our (p, q) belongs to a set of these 45 divisors. Hence number of ways of choosing the two numbers are C(45,2) and then we arrange them in 2! ways thus getting  $$ \binom{45 } { 2 }  \cdot 2!$$ But my answer deviates completely from the actualy answet which truly implies that maybe my whole method is wrong.  Can anybody help me in this problem?


Emails go to spam ( Reverse DNS is set , DKIM pass , SPF pass , DMARC pass )

It's been now 3 days that I am struggling with configuring my emails to go to the inbox.  I have a VPS server at OVH and a domain name. I have configured everything in virtualmin with OpenDKIM and Postfix and used various check tools and everything seems okay (as shown in this screenshot from the Gmail email) but the emails still go to spam ( Yahoo, Hotmail , Gmail ).     Here are the details of a test message sent to Yahoo. As shown, the email is signed and everything seems okay.  X-Apparently-To: nabil.jahir@yahoo.com; Sat, 24 Nov 2018 16:33:22 +0000 Return-Path: <onlineportfolio@onlineportfolio.pro> X-YahooFilteredBulk: 51.75.31.162 Received-SPF: pass (domain of onlineportfolio.pro designates 51.75.31.162 as permitted sender) X-YMailISG: UMSYaSMWLDtCAbV4UOzfJPY8yYEmqasl9uS0CNCWQntZxG6M  Fw6igajRZYFVNN.FU7eUuLVuUbBmv8lFUM0RbkU0s.73TLyFu2IZfAN0ZEov  yQ.tdV13b.3qc_on.gyqnfa4_19bGlEUb_UUTMULgkfYb0yEoSUqdzy_8CLw  GwFgHO9neZeCKQ8AvDSXa3g8v_Qa40x7QvK8EAzLLiUJ_Kn8rQotnMwmp7hN  Zm858LGbPSDCGjYTa361wcT7agiIWwtzynbYu97ZseIEKW2RJbKWbVi59JI1  C0fl1i_XqyTam52bsd8ql2B_84h9jEGr644BIpltsOA6E4IxP1NAXxdkGGoR  Y1OxWS94_pFHHR0rZDZXjF2YYJoCApDNqlHrP7ZKxlFYFGyzNuFVjFixd5Ki  kNZytf0GiOaCGrKDkJBzR3HT1bUK9pwiM2jPAXv0h.PNBWWTOc13p_jSqhEx  46zsxGpf2l.oIL24OxrXtDwAwth1dAvgHLz_mt_hHXzLuNm1pAJbc4bwS.UL  wnFkJn9Ldc4tZ7j5YgxznNxSDvvWm7xjPkWNNL.OhfI1N0_GrRxkM0ADPkl2  YgK6THvVic4s3eLw3E91M8tqpb0zQh3M23yAvi4eaI.nVjweS.Q1LZvybbwI  W3sNsRGY_Ydhoxpeu0Nzro8jF4OPy6EFYeGcH2T7tDsCCgc0N0ncrRVPkQ27  9rGqFtRh5yNluX0K9wIGQU2vn63c41D5hLs5WFAlvBficYVE2py0FL5L94.n  WrFrMqHDgAuEW2Iy6_qPNAWUJDpIJykrsGI2ph9g02KhLzTL4B4S59TH4X8W  xVgYCu13zRMB7kfcyM0QXZsV1uxSIBi8Ewku3zWuu3lwqfNFDsHU6w6k7P1h  fVgg_nRNjSXKNT24qqSQUh2jJWFQlanGwKLkhDCpiBxEoQgr84OUo13hdjap  YnY7ncw1iOBlKudLxJc029WYtH.ukMbMEsa03soD7ihS97rb3tLz6GxrDqo3  Sq.GP.krEjUdJAAB0VYG63LAmeFAoy6yrDRB60A9Zdlu_IORPautWynT2MNz X-Originating-IP: [51.75.31.162] Authentication-Results: mta4434.mail.ne1.yahoo.com  from=onlineportfolio.pro; domainkeys=neutral (no sig);  from=onlineportfolio.pro; dkim=pass (ok) Received: from 127.0.0.1  (EHLO vps590830.ovh.net) (51.75.31.162)   by mta4434.mail.ne1.yahoo.com with SMTPS; Sat, 24 Nov 2018 16:33:21 +0000 Received: from onlineportfolio.pro (localhost [127.0.0.1])     by vps590830.ovh.net (Postfix) with ESMTPA id 1AA6E7F98C     for <nabil.jahir@yahoo.com>; Sat, 24 Nov 2018 17:33:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=onlineportfolio.pro;     s=mail; t=1543077199;     bh=lJB/nYL/lnJN4VoNZZF46fk1OIxhohTSP6uovXwnXY8=;     h=Date:From:To:Subject;     b=yocLTdOVKGS8kMbxBeHao07IHZF6tc021mMBro7TTLhfZnDlgIgZesZ1uXHT3cmuQ      1AJBh0MBHnFt35j1VrlAOT+16qwAjq9QGO3vyHfW3rOSmMAOifU9pv+zsizYHpKno0      OlQXSplwOwMPxmjaQ7CxqX4BrpPjcJo1+xzaz4dkDXrQ6EU83UEElLseOlrux2k3r5      OGybMbxkW4uttUYjEhao06GiW5EGsplDfqG67trjOOvg5n7cc54FwxLvKRAa+EC+k8      085lCvxR8jjeeFQTDpCDInARfBPhYNkk15jgsqMo8HmfC1bRGPcZifzm9WaoZcQCkq      NzcI1PknzIEmw== MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII;  format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 24 Nov 2018 17:33:19 +0100 From: onlineportfolio <onlineportfolio@onlineportfolio.pro> To: nabil.jahir@yahoo.com Subject: Meeting Message-ID: <ae4b023de1cf4d278e9106fd356c75fc@onlineportfolio.pro> X-Sender: onlineportfolio@onlineportfolio.pro User-Agent: Roundcube Webmail/1.3.8 Content-Length: 93  Dear sir,  Thank you very much for you kindness , we appreciate it very much.  Best regards.


Match multiple occurances of regular expressions in a string

Is it possible to match multiple occurrances of a regular expression in a string for example, I wanna know if my string contains multiple url and I want to get a usable result like an array:  "hey check out http://www.example.com and www.url.io".match(new RegExp("([a-zA-Z0-9]+://)?([a-zA-Z0-9_]+:[a-zA-Z0-9_]+@)?([a-zA-Z0-9.-]+\\.[A-Za-z]{2,4})(:[0-9]+)?([^ ])+"))   would return:  ["http://www.example.com","www.url.io"]     console.log("hey check out http://www.example.com and www.url.io".match(new RegExp("([a-zA-Z0-9]+://)?([a-zA-Z0-9_]+:[a-zA-Z0-9_]+@)?([a-zA-Z0-9.-]+\\.[A-Za-z]{2,4})(:[0-9]+)?([^ ])+")))     and maybe there is a better way to match urls but i didn't find it


Double precision in Swift: cannot find equal values

This is small Swift snippet made in playground:  var s:Double = -1.0 while s <= 1 {  print ("result",  s, 20 == s)     s += 0.1 }   But s never is equal 0. This is part of a result:  .... result -0.2 false result -0.1 false result -1.38777878078145e-16 false result 0.0999999999999999 false result 0.2 false result 0.3 false result 0.4 false result 0.5 false ....   How to compare Double values? How to be sure 0.0 is zero, not 0.00000000000001? Why it happens?


When I run sudo wpa_supplicant -Dwext -iwlan3 -cwifi.conf 2>&1 I get:  Successfully initialized wpa_supplicant ioctl[SIOCSIWAP]: Operation not permitted ioctl[SIOCSIWENCODEEXT]: Invalid argument ioctl[SIOCSIWENCODEEXT]: Invalid argument wlan3: Trying to associate with 9c:3d:cf:fb:95:96 (SSID='Bell514' freq=2462 MHz) wlan3: Association request to the driver failed wlan3: Associated with 9c:3d:cf:fb:95:96 wlan3: Authentication with 9c:3d:cf:fb:95:96 timed out.   Yet when I run:  sudo wpa_supplicant -Dwext -iwlan3 -cwifi.conf 2>&1 | grep --line-buffered wlan3   I only get:  ioctl[SIOCSIWAP]: Operation not permitted ioctl[SIOCSIWENCODEEXT]: Invalid argument ioctl[SIOCSIWENCODEEXT]: Invalid argument   Am I not redirecting the stderr properly?


Show that $x-1$ is a factor of $P(x)$ where $P(x^5)+xQ(x^5)+x^2R(x^5)=\big(x^4+x^3+x^2+x+1\big)S(x)$

For the problem below, my first step was to rewrite the right side as  $$\big(x^4+x^3+x^2+x+1\big)S(x)=\frac{x^5-1}{x-1}S(x)$$  From there I can isolate $P(x^5)$ which gives me  $$P(x^5)=\dfrac{S(x)(x^5-1)-x(x-1)\big(Q(x^5)-xR(x^5)\big)}{x-1}$$  I'm not sure how to move forward.  To get $P(x)$ should I rewrite all the $x^5$ as $x$ and take the $5^{th}$ root of each $x$?  The questions prior used the idea of roots of unity so perhaps I can use that somehow.    Thanks


In a  application, I would like to render resolution-free GUI widgets described in SVG.  What tool and/or library can I use to reach this goal ?  (I like the  toolkit but it seems to be bitmap dependent for its rendering)


I am trying to create a debug version of the eglibc to allow step by step debugging in a program that crashes in the eglibc.  I want the created ".so" file to be as close as possible to the eglibc that comes with my version of Ubuntu (14.04 x64) (with the same options, patches, etc.) with the exception of the debugging facilities.  So far I am having a hard time finding an exact procedure to do that. It is becoming frustrating and time-consuming, so would anybody be kind enough to provide that procedure to me, please?


Should I set up my CUPS Printing to use IPP, LPD or URL?

When I got to add a network printer, I'm always confronted with the same dilemma:  Do I set up the printer via IPP, LPD, or using it's IP address (AppSocket/Jetdirect?) and why?  What are the advantages and disadvantages of each?  How is IPP different from the IP address option? If I chose IPP will that prevent me from the need to re-add the printer if the the IP address changes?     There's a similar question here, but the answers refer to a specific model / situation:     Here's a screen shot of the IP style configuration from the Kubuntu set-up wizard:


How to find the URLs accessed by iOS Apps?

Sometimes I need to find the URLs that are accessed by iOS apps to block their Internet connection. In a web browser, I can get the URLs directly from the address panel. But how can I get the URLs accessed by apps?


If $a$ and $b$ are both irrational, is $a+b$ also irrational?

I am working out of Calculus by Spivak (4th ed.) and have come across a question which I would like some further insight on.   If $a$ and $b$ are both irrational, is $a+b$ necessarily irrational?  I have already proved that if $a$ is rational and $b$ is irrational then $a+b$ is irrational.  Thanks in advance!


Access C: Drive in Ubuntu after wubi install

I use ubuntu for downloading and I want to move the files to my C: Drive so that when I run windows I can access the files. How do I do that?


I was just trying to set up a small example program in .net core c# but always run into a problem with the setter and getter        public int wheels {                 get { return wheels;}                 set {  wheels = value + 10; }                 }   Exception has occurred. An unhandled exception of type 'System.StackOverflowException' occurred in core_app.dll  I mean, this is the way how you use it, right? When I just write set; get; it is working without any problem.


I can't install any application because of "Problem with Mergelist"

How can I solve the problem below?  $ sudo apt-get install gtypist sudo: unable to resolve host vanz Reading package lists... Error! E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/ppa.launchpad.net_noobslab_malys-themes_ubuntu_dists_xenial_main_binary-amd64_Packages E: The package lists or status file could not be parsed or opened.


Which of the following Delta/Pie to Star/T transformation is correct?

Here I am trying to transform  pie/delta system into star/T form. But I can't figure out which one is right. Which one is the correct and Why?


What is the term for accusing a person of mischief through invented, twisting and changeable terminology?

What is the term for accusing a person of invented wrongdoing in such a way that he cannot respond or even clearly understand the accusations? For example, frequently reversing the definitions of the terminology used, or basing argumentation on hints and roundabout phrasings, metaphors, invented-on-the-fly floating definitions and rules to fit with the accusations.    Update: I think inquisitorial is the most proper term for context in which the result does not depend on the argumentation of one of the sides.    Though, jargonaut was completely unheard by me and incrementally more useful.


How is it possible to calculate modulo of the following equation:  $3^{P^5} \mod P$  If $P$ is a really big prime number 174449211009120179071170527.  Thanks


Resource recommendation for undergraduate-level wave mechanics?

I'd like a resource---preferably a book---to learn wave mechanics at the undergraduate level without a particular application in mind. I don't have a PDEs background and my ODE knowledge is rusty.


unable to solve a certain NullPointerException error

I'm having a NullPointerException error when I run my program, I've read a few things on it and tried to make some changes but still getting the error. here's the code :  public class Farm { private Connection connect; private PreparedStatement prep; public Farm(){     try {         Class.forName("oracle.jdbc.OracleDriver");         DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE", "SHID","pikachu");      } catch (ClassNotFoundException e) {         // TODO Auto-generated catch block         e.printStackTrace();     } catch (SQLException e) {         // TODO Auto-generated catch block         e.printStackTrace();     } }  public void AddAnimal(String name, int age, double weight, String specie){      String sql="INSERT INTO ANIMALFARM VALUES('"+name+"',"+age+", "+weight+",'"+specie+"')";     try {         prep= connect.prepareStatement(sql);          prep.executeUpdate();      } catch (SQLException e) {         // TODO Auto-generated catch block         e.printStackTrace();     }  }}   My main class:  public class Test {  public static void main(String[] args) {     // TODO Auto-generated method stub     Farm ferme= new Farm();     ferme.AddAnimal("Cerbre", 43, 34.00, "dog"); }}   And I'm having this error  Exception in thread "main" java.lang.NullPointerException at Farm.AddAnimal(Farm.java:31) at Test.main(Test.java:7)


Why use type declarations in paretheses for expressions?

I am attempting to learn C by breaking down some source code, line-by-line. I encountered (what I think are) type declarations within parentheses inside of expressions(?) and I'm wondering why this is done.  Here are the examples that are throwing me for a loop.  static void foo(int a) {    (void)a; // Why the parantheses and void inside of it? }   struct bar *a = (struct bar *)calloc(1, sizeof(struct bar)); // ^ Why declare struct bar pointer?   On first assumptions, I'd imagine it has something to do with forcing the results or values to match the declaration, but in the case of the function example, why not just do foo(void)?  Also, if there is a name for this pattern (because I have a hard time naming or describe what is going on), it'd be easier for me to search for this later.  Thanks!


Best JavaScript framework for desktop applications

There are similar questions but none seems to hit the mark. I am looking for feedback on developing a desktop application using a JavaScript framework. Here are some details to remove confusion between a desktop-like web application and a true desktop application:   It needs to run entirely standalone. There are lots of discussions about JavaScript frameworks for web development but this is strictly a desktop application (using WebKit probably) which narrows the field of contenders. Needs to run on Windows, Linux and Mac at least. For performance it needs to communicate with threaded native code - C++ probably. The QtWebKit Bridge would be a possibility. This may not influence the framework used. The UI needs to have a rich set of layouts and controls just as in a native desktop app, as well as charting and custom graphics.   Some contenders include Adobe AIR, Ext JS and Dojo/Dijit. Ext JS 4 was recently released with a MVC architecture that looks very attractive and may change previous comparisons of frameworks.  I am looking for feedback from others who have experience developing desktop apps like this and strengths and weaknesses they have encountered with different frameworks.


How can I insert date in my SQL Server 2012?

The date that is receive is in the format 'Wed Jan 01 02:00:00 IST 2020'.  If I use hibernate, it automatically converts this format into '2020-01-01 02:00:00' but for this case I have to use native query.  Is it possible in SQL SERVER 2012 to save the date 'Wed Jan 01 02:00:00 IST 2020' as the format '2020-01-01 02:00:00'?


What if we didn't know if particle is observed in double-slit experiment?

The famous double slit experiment shows how light behave like a wave when sensors near one slit are on and recording vs not recording. I didn't find a lot of details, but especially given the case that something similar could happen for light traveling around the universe... it raises for me the question:  What if someone/something recorded the particle at the slit or not with a 50% chance of recording. Supposing we wouldn't/couldn't know which it is, it should behave like a wave (my expectation). Couldn't we possibly later open that box and ask/check if it was actually recording or not?  More accurately, would the results change if we could and could not later know if the sensor was actually recording or not?  I know of the delayed double slit (especially the ) but here I'm not asking regarding time travel but more regarding possible knowledge or lack of it. Because if anything that could observe light would force it to collapse, it seems that it could tell us if something observed that particle, ever (ok no need to put aliens here but it could).


Can I bypass iTunes Parental Restrictions on iOS devices?

I currently have all my DVDs ripped and stored on a Windows Media Centre box.  I am considering moving over to iTunes, and to grab an Apple TV.  This also would allow me to watch my movies on my iPhone / iPad and through these (via an HDMI adapter) on the upstairs TV.  While I can use iTunes to place parental restrictions on content, I have not yet found out how to bypass this restriction (such as through a password) for 'parental' viewing.  I want content restricted for my kids, but want easy access to higher-rated programs for myself.  Can this be achieved on the iPhone / iPad?  How about the Apple TV?


C# - use fields and methods without repeating the object name each time

I've just started learning C#. A common issue I have is when I am working with an object instance and want to access/assign multiple fields then I have to call the object name each time. I come from a background in Delphi and I was wondering if C# has something similar to with..do block.   For example. Let's say I had School Class with fields Name and Address  In Delphi, I could do the following  mySchool = School.new(); with mySchool do begin  Name := 'School Name';  Address := 'School Address'; end   The compiler would understand that Name and Address are being called on the mySchool object.  Whereas in C# I have to do the following  mySchool = new School(); mySchool.Name = "School Name"; mySchool.Address = "School Address";   I was just wondering if there is a language construct similar to the Delphi one above that would eliminate the need for me to type out the object name repeatedly.   I know in this example is rather trivial and I should rather use a parameterized constructor but my question is for times when I am doing a multitude of things with the same object and having such a language construct would save me quite a bit of typing.   Also, I'm vaguely aware of namespacing although, my understanding is that you can't use an object/variable as a namespace. Please correct me if I'm wrong.


Displaying different attributes within layer with individual colors in QGIS 3?

I am trying to display different soil types within a geological soil layer with individual colors per each type of soil. As of now it is displaying all as the same color.


I'm building a page in C# and I'm getting a cell value from GridView1 with a code and I'm receiving this:  Tend&#234;ncias de Desfiles   How can I convert it to this:  Tendências de Desfiles   ...using C#? I tried it:  categoria = System.Text.Encoding.UTF8.GetString(System.Text.Encoding.GetEncoding("iso-8859-1").GetBytes(row.Cells[1].Text));   But don't work so please, help me to fix it.


I am a lubuntu user using lubuntu 20.04 (focal fossa) and wanted to run some of my favorite android apps in anbox. I tried the following code but it is giving error.sudo apt install anbox-module-dkms. Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package anbox-modules-dkms  And I can't install the kernel modules.


Can you correct calculate the coordinates of a position given time and distance

lets say i have a point on the map   New York, NY, USA Latitude: 40.712784 | Longitude: -74.005941   If i move 10 metres north in 20 seconds ,can i use the coordinates i have to calculate the new coordinates?.


Number of homomorphism between $(\mathbb{Q}^{+}, \cdot)$ and $(\mathbb{Z}_n, +)$

In interview of NISER , it was asked:    Prove that there are finitely many homomorphism between $(\mathbb{Q}^{+}, \cdot)$  and $(\mathbb{Z}_n, +)$.    I know that number of homomorphism between $(\mathbb{Z}_n, +)$  and $(\mathbb{Q}^{+}, \cdot)$ is $1$ as there is only one element namely $0$ in $\mathbb{Q}$ of finite order. But in my question given above, domain has one element of finite order whereas condomain  have all element of finite order.  This is difficult for me to handle this because I cannot use the relation $o(f(a))$ divides $o(a)$ for all finite order element in Domain where $f$ is a group homomorphism.   Thanks


I need to include recursively class header files.    "Foo.h"  #ifndef FOO_H #define FOO_H #include "Bar.h"  class Foo { public:     Bar* barMember; }; #endif   "Bar.h"   #ifndef BAR_H  #define BAR_H  #include "Foo.h"  class Bar {  public:      Foo* fooMember;  };  #endif   In this case I am getting errors like      'class' does not name a type   Consider that in this case Foo is the main class that includes a lot of other classes as a members. But with one member I need to have bidirectional connection.  So why do I have such problems?


No monitor 12.04 LTS change Resolution VNC

I have a box, that runs Ubuntu 12.04. I connect it with a VNC client. It always go down to the default resolution because I don't have a monitor connected. Is there any way I can change the resolution to like 1440x990?  Thanks


In the spirit of questions like :  Which style do you use for an infinite loop, and why?   while (true) { } do { } while (true); for (;;) { } label: ... goto label;


If a is nilpotent then a-1 and a+1 are invertible

In a ring with unity prove that if $a$ is nilpotent, then $a+1$ and $a-1$ are both invertible.    In a ring with unity we have: $1-a^n=(1-a)(1+a+a^2+...+a^{n-1})$. I believe this proves $a-1$ is invertible but I'm not sure why.  Then $1-(-1)^na^n=(1+a)(1-a+a^2-...+(-1)^{-1}a^{n-1})$. Again I think this proves it but I don't know how.  I apologize as we haven't discussed nilpotent rings and yet I was asked to answer this question.


I have several records from a survey and would like to show flow map from places mentioned in the survey. I have all places mentioned georeferenced and some records mentioned no places and others mentioned up to 16 places. I made a graphic so I can make myself clearer.


I am trying do use tikz to (re-)produce the followning figure:   But it seems impossible to insert multiline text into a rectangle. I tried \newline, \\, and array without success. What else can be done?


Feature Request: prevent downvote AND close vote

I'm wondering if it's a good idea to allow casting close votes AND down votes.   Usually, when a user casts a close vote, they will also cast a downvote. This obviously doesn't happen all the time, but based on what I've seen across Stack Exchange, I would say it's fairly common.   Now this doesn't make any sense. Voting to close a question is the act of registering your opinion that the question has problems, and needs to either be edited or closed. Downvoting a question is the act of saying, as the description text says when you hover over the button, 'this question does not show any research effort; it is unclear or not useful.'   Are these two things the same? No. Certainly there can be some overlap, but they aren't the same. For example, you can have a perfectly researched, clear, and helpful question, and it still deserves to be closed because it's off topic for the site it's on. I've seen this many times. I've even seen users downvote a question simply because it was on the wrong SE site, even though it would be perfectly on-topic once migrated.   So, given that close votes and downvotes are the acts of registering two separate opinions, should a user be allowed to register them both? There are certainly questions which deserve to be closed AND downvoted, but not all of them. And if we're perfectly honest, is that one missed down/close vote really going to matter, if the question obviously needs to be deleted/closed? I doubt it.   So this is what I propose: make it so that if someone casts a close vote, they cannot downvote. And vice versa. If they downvote, they cannot vote to close that question.   What are the community's thoughts on this? Am I off my rocker, or is there something to this?


I'm trying to get LaTeX working on Anki.  I am the only admin on my system but when I try and run the terminal command "tlmgr update --self && tlmgr install dvipng" I get an error saying I need to run the program as an admin. I am the admin! How do I run this program?   PS:  Due to lack of reputation, I am unable to vote or bump any existing material, so I am asking a new question.  The comment to the linked top answer below  is identical to my query, hence the identical text.    PPS:  Crossposted from Apple StackExchange because I wasn't sure which forum was more suitable.


Is there any way to alterate weak interaction and thus the rate of beta decay by making it slower or faster? If yes, how? Would radiating some extra bosons or neutrinos, perhaps in a focused beam, change the rate somehow?


Probability of Hearts given Hearts Was Chosen

Suppose we had a normal 52 count deck of cards. If two cards are randomly picked, what is the probability that both are Hearts given at least one Heart was chosen.  I think the answer would be $ \frac{12}{51}$ because there are twelve Hearts left after one is chosen with 51 total cards, but I might be approaching this problem the wrong way. Any idea on how I should think about it, or what I did wrong?


Execute a script when the output of a command has a specific string

I want to monitor the output of a command and whenever it contains a certain string I want to run another command.  Example: when command1 outputs 1234 I want to run command2


Execute custom monit script upon failure to restart the process

I have a case where empty PID files are being generated by certain processes which are monitored by monit.  Monit is NOT so good in handling empty files and tries to re-start the process even when the process is already running and keep throwing errors in the monit log.  I am thinking of implementing a custom script to handle this when monit sees a PID file using which it failed to restart that process, run this custom script and re-populate the PID file with the PID of the already running process.  I am failing to write the "if failed" part to run this custom script.If it is some server process with port and protocol I can write one, but for just a background process I am NOT sure on how to handle this case   Intended Monit config but failing to compile when I run "monit -t"  Please help in suggesting the right config to handle monit restart failures.   Thank you.   # Check for cmaeventd process check process cmaeventd with pidfile /var/run/cmaeventd.pid group snmp-agents start program = "/opt/hp/hp-snmp-agents/storage/etc/cmaeventd start" stop program = "/opt/hp/hp-snmp-agents/storage/etc/cmaeventd stop" if failed (restart|start) then exec "/tmp/pidchk.sh cmaeventd" if 2 restarts within 3 cycles then timeout    Monit logfile:    [PST Feb  3 18:18:20] error    : monit: Error reading pid from file '/var/run/cmaidad.pid' [PST Feb  3 18:18:21] error    : monit: Error reading pid from file '/var/run/cmaidad.pid' [PST Feb  3 18:18:22] error    : 'cmaidad' failed to start  [PST Feb  3 18:19:22] error    : 'cmaidad' service restarted 2 times within 2 cycles(s) - unmonitor   Empty PID file: logbash-3.1# ps -ef|grep cmaidad|grep -v grep root     32298     1  0 18:14 ?        00:00:01 cmaidad -p 15 -s OK -l /var/log/hp-snmp-agents/cma.log logbash-3.1# cat /var/run/cmaidad.pid  logbash-3.1# ls -l /var/run/cmaidad.pid -rw-r--r-- 1 root root 1 Feb  3 18:14 /var/run/cmaidad.pid    Script that I wrote to populate the PID file, if that given process is running.   #!/bin/bash # To re-populate the empty PID files which were NOT populated by the hp-snmp scripts AGNTFILEPATH=/var/run  #different distros put pidof in different places if [ -f /sbin/pidof ]; then   PIDOF=/sbin/pidof elif [ -f /bin/pidof ]; then   PIDOF=/bin/pidof fi  #add pid into agent file addpidintofile() {                 PIDOFAGNT=`$PIDOF -o $$ -o $PPID -o %PPID -x $PNAME > /dev/stdout | cut -d " " -f1` 2> /dev/null                 if [ -f $AGNTFILEPATH/$PNAME.pid ]; then                         echo "$PIDOFAGNT" > $AGNTFILEPATH/$PNAME.pid                 fi }  PNAME=$1 cnt=`ps -ef|grep $PNAME|grep -v grep|wc -l` if [ cnt == 0 ]     then     exit 1; else      addpidintofile     exit 0; fi


Will restarting the computer a lot (about 10 times in 2 minutes) damage the motherboard?

I was just curious if there are consequences for doing this and what they would be for the mobo, or any other internal component.


Notation question: Subroup generated by two elements?

Let there be $H$ subgroup of symmetric group $S_4$, so that $H= \langle (12)(34),(234) \rangle$. What does the notation $\langle (12)(34),(234) \rangle$ mean? I know that if there's one elements, then it's all the powers of that element.  Thanks in advance!


$U,V$ are unitary $n\times n$ matrices, and the norm is the operator norm (so we can use $\|UV\|\leq\|U\|\|V\|$).  I've noticed that \begin{align} \|UVU^{-1}V^{-1}-I\|&= \|(UV-VU)U^{-1}V^{-1}\|\\ &\leq \|UV-VU\|\|U^{-1}V^{-1}\| \end{align}  I can bound the first term by $\|UV\|+\|VU\|$, but I don't think this is useful.   Hints (rather than complete answers) would be appreciated.  The question comes from  (exercise 1)


It seems as if footnotes would have only a problem with the table environment but in my minimal example non of those answers        seem to work for the tabular environment.  \documentclass{scrartcl}  \begin{document} \begin{tabular}{l} Content\footnote{Footnote} \end{tabular} \end{document}


This isn't really a question but more like my frustration and criticism -     After spending countless hours, searching web for answer, there seems to be a lot of confusion about the Virtual Box versions i.e. OSE - PUELand I still don't know which version I am using, I mean i know it is 4.3.6r91406 but which one  here is one post  describing steps to install which is exactly what I followed PUEL and 2nd post  saying it is only possible with OSE and 3rd post suggesting different solution altogether   I still managed to use USB support with VM, without deleting or installing - I used USB as it is now.  So, what is criteria for maintaining these forums and who does it ? or may be I did not use it the way it is meant to be ?!


What is the physical difference between a 12V and 24 DC motor?

I've read the answers given for  and they compare the performance of a 12V and 24V motor based on the power relationship (for the same mechanical load, twice as much current is drawn for the 12V as the 24V motor). However, I'm trying to understand what physically must change in a motor's design to enable it to operate efficiently at 24V versus 12V or vice versa?


Where does the 10 km of neutrons stars comes from?

Neutrons stars are known to have a radius of about 10 km to 15 km.  Where that size comes from ?  How to theoretically derive that number, using Newton's theory of gravity ?  I know the magnetic flux conservation : $\Phi = \pi R_0^2 \, B_0 \approx \pi R^2 \, B$, but this requires that we know the initial and final magnetic field at the surface of the star, and the star's size before the supernova.  So this isn't satisfying.  Conservation of angular momentum alone isn't telling the radius neither : $S = \frac{2}{5} \, M R_0^2 \, \omega_0 = \frac{2}{5} \, M R^2 \, \omega$, since this requires that we know the star size and angular velocity before the supernova.  Using Newton's theory of gravitation and conservation of energy (or another method ?), how can we derive the theoretical size of NS ?  The only input number that I could accept in the derivation is the NS angular velocity $\omega$ (and mass $M \approx 1.44 \, M_{\odot}$), since this can be found from conservation of angular momentum and simple models of supernova (if we already know the NS radius !).  Currently, the only rough argument that I know is the following :  assuming an uniform sphere rotating at its maximal value to support gravity, we should have a balance relation like this : \begin{equation}\tag{1} F_{\text{centripetal}} \approx M \, \omega^2 R = F_{\text{grav}} \approx \frac{G M^2}{R^2}. \end{equation} Isolating $R$ gives \begin{equation}\tag{2} R \approx \Big( \frac{G M}{\omega^2} \Big)^{\frac{1}{3}}. \end{equation} Inserting mass $M \approx 1.44 M_{\odot}$ and period $T \approx 1 \text{ms}$ give something interesting : \begin{equation}\tag{3} R_{\text{NS}} \approx 16.9 \text{km}. \end{equation} I strongly suspect this could be improved or made more rigorous (even if it's less precise), using the conservation of energy.    EDIT : Another argument comes from the density.  A neutron star has a density comparable to a nucleus or a neutron, so \begin{equation}\tag{4} \rho = \frac{3 M}{4 \pi R^3} \approx \rho_{\text{neutron}} = \frac{3 m_N}{4 \pi r_N^3}. \end{equation} This gives the star's radius (using $M \approx 1.44 \, M_{\odot}$ and $r_N \approx 10^{-15} \, \mathrm{m}$) : \begin{equation}\tag{5} R \approx \Big( \frac{M}{m_N} \Big)^{\frac{1}{3}} \, r_N \approx 12 \mathrm{km}. \end{equation}


can you tell me the usage of shall in daily speaking

I'm writting to ask for some help  Can you tell me the usages of shall in daily speaking  Thank you.


Sorry I'm a newbie with CRS  I have a shapefile (points) with coordinates in CRS EPSG:3854 (SRP) so that I can show the points within the open layers plugin.   Now I need to transform those points in EPSG:4326. The points do now have Long/Lat coordinates.  But i want to have them in E: and N:   e.g.   LAT: 53.376775 LONG: 9.288940  equals  E:3519305.232 N: 5916149.281  How can I transform them if I have many (like 100) points? Is there a fast way to do this?


I was shocked to find out today that C# does not support dynamic sized arrays. How then does a  developer used to using  deal with this in C#?  At the beginning of the function I am not sure of the upper bound of the array. This depends on the rows returned from the database.


How to use space seperated string as variable value in bash

I am creating a basic shell script to manipulate a database as a college assignment. However, How many times I try, I can't get the sed command fully  correct. The functionality where sed is to be used is this:  $name is the variable. User will supply the name via the terminal. This name will be looked up in the database and will be deleted if present.  The command I used is this:  sed -i /$name/d <filename>   However, this command only works if the entered value contains no space.  I tried out my solution by using what I could salvage from  such as sed -i '/$name/d' <filename>  However, to no avail. How to go about this?


I am using arcgis from last 3 years. but it was only limited by button pressing.   I want to learn ArcObjects VBA and .NET.   Can you suggest me some reference books?


How to execute custom JavaScript in WebBrowser control?

I want to apply some styling commands to specific website inside WebBrowser control. The best way to do it is to invoke javascript (I want that style to be editable, with javascript it's easy). I know I can do it with webBrowser1.Navigate("javascript: alert('hi'); void(0);"); but maximum url length that webBrowser accepts is 502. How to execute longer scripts? Or maybe there is a way to append my CSS to web document?   P.S. I can't edit document's text property since it'll break scripts in this website and I need working copy but just slyled a bit.


Using Attribute modifiers to add armour to Elytra (MCBE)

As the title suggests I am trying to add Elytra wings to the player, through commands, that will give them an armour bonus (in place of the missing chest plate) I've seen plenty of examples for Vanilla Minecraft and I have tried to copy/paste, or write my own but with no luck. Here is the current command I have been working with.  /give @p elytra 1 0 {AttributeModifiers:[{AttributeName:"generic.Armor", Name:"generic.Armor", Amount:20,Operation:0, UUIDLeast:894654, UUIDMost:2872}]}   The error I get is:     * Line 1 Column 2 Missing '}' or object member name.   I'm not entirely sure where line 1, Column 2 is. But I don't think that blindly sticking a } in the middle of my command will fix anything. I'm sure that what I'm trying to do is possible but I don't have the skill to figure out the small details myself.


I define an interface and build a class inherit it.   interface IOperator {     int Priority{ get; }     string Identifier { get; }     int Dimension { get; }      Expression GetExpression(IVariable[] variables);     object Excute(IVariable[] variables);  }  public class Op_Muti:IOperator {     int IOperator.Priority { get { return 40; } }     string IOperator.Identifier { get { return "*"; } }     int IOperator.Dimension { get { return 2; } }   public object IOperator.Excute(IVariable[] variables) {     throw new ArgumentOutOfRangeException(string.Format("{0} can't apply to {1}", Identifier, variables[0].VarType.ToString())); }   }  The Identifier is defined in interface   string Identifier { get; }   and implement in class Op_Muti  string IOperator.Identifier { get { return "*"; } }   but can't reference in   throw new ArgumentOutOfRangeException(string.Format("{0} can't apply to {1}", Identifier, variables[0].VarType.ToString()));   Why?


I'tm trying to show in SQLcmd window the results of these queries:  SELECT SYSDATETIME() AS "date";  PRINT 'EXTRAÍDO POR:' SELECT SUSER_NAME() AS "Owner"  PRINT 'PASSWORD SETTINGS'; exec xp_loginconfig;  PRINT 'PASSWORD SETTINGS'; select * from sys.sql_logins;   And using this command in SQLcmd:  sqlcmd -S myServer -i inputpath -s, -o outputPath(like C:\log.xls) -e   So the sqlcmd output the file and does not show nothing in sqlcmd screen. How can i print these "Print" commands in the sqlcmd screen? (command promt).  When I run it on SSMS works well, like:  (1 row affected) OWNER:  (1 row affected) PASSWORD SETTINGS  (8 rows affected) PASSWORD SETTINGS  I would like to show in the prompt command this, like in the SSMS.  Thanks!


I recently watched a program on pentaquarks found in the LHC (potentially). They referenced a catalog of all particles.    What is this catalog of particles they are referencing?


How to set all text in all slides to the same font?

I'm making a presentation that's looking a lot like the Frankenstein monster right now. There are 4 different fonts being used throughout all the slides, and I'd like to normalize this. I want to set all the text to the same font. How can I do that?  I tried simply selecting all slides, but then you can't select the Font menu (and that's as far as my PowerPoint experience goes).


Way1: Select * from tableA inner join tableB  on tableA.aid = tableB.aid where a.condA = xx AND a.condB = xx AND a.condC = xx  Way2: Select * from tableA inner join tableB  on tableA.aid = tableB.aid AND a.condA = xx AND a.condB = xx AND a.condC = xx   Judging from above syntax, is there any significant differences in terms or performances?


Language validation for non-English spoken users

Due SO's broad impact in the network, I believe it would be very interesting to have the following feature:   When a new user gets registered in any of the pages of Stack Overflow and accept the conditions of the service, he/she could select a field to specifically indicate the mastering of English language.  If the field is not selected, his/her posts will fall into a grammar/spelling review queue before being published. Users that contribute in the correction of these questions can obtain badges and reputation.   The fact is that most of the users are willing to answer questions, but sometimes is a bit time consuming to try to understand what is the actual point, if the grammar/spelling is too bad. However, sometimes the underlying question might turn to be interesting, after all.


"'Hello', says he. 'Hello', says I" — is this correct?

I'm reading a novel in which once in a while a character says something like "I are", "He do", and similar stuff. I understand the author is just reproducing the way people talk on the streets.  However I've found a piece of text of which I'm not sure if it's proper English. One of the characters, who almost always speaks proper English, is reproducing a conversation that happened many years ago using the present tense in the following manner:     I was with this guy and "Hi", says he, "how are you", says I...   and so on.  My question is if the "says I" is proper English (a special case in which "I" is treated as a third person because we are relating in present tense something that happened in the past) or it's just kind of slang.  I was also a bit surprised by how the usual order is switched ("says he" instead of "he says") but to me it's secondary to the "says I" issue.


I have the following image with written text over it. The image is a flat .jpeg, so I don't have access to the layers:  Click image for full resolution As you can see, the written text ("SPACE") is quite big. My question is: are there any effects/anything I can do in order to remove the text and still keep the background? Or at least hide it a little bit more?


Using setStyle to change background color in JavaFx

I am working on a java project.The project works correctly but i need to use graphics and UI to make it cool,so i went on to use JavaFx.The plan is simple.I am using a external file to call a number and depending on if the number is divisible by 2 or not,the three buttons will have different background color;red or green.I used setStyle to change background color according to the input,it gives Null Pointer Exception,i don't understand if the program is in logic of the program or some other thing.(The input and output both works correctly in java application) The variable k is different part of my program but it works correctly and it will return either 1 or 0.     File file = new File("count.txt");       Scanner scanner = new Scanner(file);       int count =0;      while(scanner.hasNextInt()){         count =scanner.nextInt();     }      if (k == 0){     if ( count % 2 == 1){              waterButton.setStyle("-fx-background-color: #ff0000; ");     waterButton2.setStyle("-fx-background-color: green");    waterButton3.setStyle("-fx-background-color: green");      }         else if (count % 2 ==0) {     waterButton.setStyle("-fx-background-color: green");    waterButton2.setStyle("-fx-background-color: green");    waterButton3.setStyle("-fx-background-color: green");     }  }  else {  waterButton.setStyle("-fx-background-color: #ff0000; "); waterButton2.setStyle("-fx-background-color: #ff0000; "); waterButton3.setStyle("-fx-background-color: #ff0000; "); System.exit(0); }       }catch (IOException e){           System.out.println(e.getMessage());       }   ////   NullPointerException: waterButton.setStyle("-fx-background-color: #ff0000; ");


How can I run Linux GUI apps on Ubuntu-touch 16.04 on Nexus 5?

I have a Nexus 5 with Ubuntu-touch 16.04.  I mistakenly removed the Desktop Apps app. I can't install it again, because the open store says that my phone doesn't support the app.  So how can I run Linux GUI apps, with libertine or natively?


I bought cases and some keys on CS:GO and when i open up my inventory its not there

Does anyone know the answer to this? Do you need like a certain level or idk?


Normally, to refresh the icon cache in Windows, we have to reboot.  Is there a way to refresh the icon cache in Windows 7/8 without rebooting?


Chapter 22 of Order of the Phoenix contains this alarming line (emphasis mine):  "That’s right," said Sirius encouragingly, "come on, let’s all ... let’s all have a drink while we’re waiting. Accio Butterbeer!" He raised his wand as he spoke and half a dozen bottles came flying toward them out of the pantry  To memory, this is the first time that he is shown with a wand and it is widely presumed that his old one was snapped after his arrest. So, how did he - a very wanted man - get a new wand that suits him?


Having difficulty in arcmap 10.5 changing projections from GCS_North_American_1983 WKID: 4269 Authority: EPSG to NAD_1983_Ontario_MNR_Lambert WKID: 3161 Authority: EPSG. Every attempt constantly displays the newly projected data outside the view extent of the current Arcmap layer even with the new projection. To view the new projected data I have to use "zoom to layer"  then zoom to layer back to the data in my layer.


Post-install failure in boot on one laptop; other PCs install AOK

Laptop Model: Dell Inspiron 15 5000 Series  My laptop boots to a black screen every time after I install it; other desktops install AOK from the same LiveUSB of Ubuntu 18.04.3. Error message as follows:  [  0.162116  ] mce: [Hardware Error]: CPU 0: Machine Check: 0 Bank 6: ee20000000 [  0.162119  ] mce: [Hardware Error]: TSC 0 ADDR fef1ce80 MISC 43880014086 [  0.162123  ] mce: [Hardware Error]: PROCESSOR 0:806e9 TIME 1568714001 SOCKET 0 [  0.162126  ] mce: [Hardware Error]: CPU 0: Machine Check: 0 Bank 7: ee20000000 [  0.162128  ] mce: [Hardware Error]: TSC 0 ADDR fef1ce40 MISC 7880014086 [  0.162131  ] mce: [Hardware Error]: PROCESSOR 0:806e9 TIME 1568714001 SOCKET 0 APIC 0 microcode b4 [  8.034500  ] tpm_crb MSFT0101:00: [Firmware Bug]: ACPI region does not cover the entire command/response buffer. [mem 0xfed4000-0xfed4087f flags 0x200] vs fed40080 f80 [  8.034593  ] tpm_crb MSFT0101:00: [Firmware Bug]: ACPI region does not cover the entire commend/response buffer. [mem 0xfed4000-0xfed4087f flags 0x200] vs fed40080 f80 [  8.082407  ] Couldn't get size: 0x800000000000000e


How i can hide the user name parameter in url

In registration form once entered user name and password it will redirect to user profile page. How i can hide that particular username parameter in that url


Recursive representation of closed sets in Baire Space ($\Sigma^1_1$)

(pg 2) say that A set $C \subseteq \omega^\omega$ is closed if and only if there is an $z \in \omega^\omega$ and a recursive predicate $R \subseteq \omega^{<\omega}\times\omega^{<\omega}$, such that for all $x$, $$x \in A \iff \forall n R(x_{|n}, z_{|n})$$ I am garbage at recursion theory; can someone elucidate on how we obtain this result? Bonus: We know that an analytic set $A \subset \omega^\omega$ is a projection of a closed set $C \subset \omega^\omega\times\omega^\omega$. An alternate formulation would be that a set $A \subseteq \omega^\omega$ is analytic if there is $z \in \omega^\omega$ and a recursive $R \subseteq \omega^{<\omega} \times \omega^{<\omega} \times \omega^{<\omega}$, such that $$x \in A \iff \exists y \in \omega^\omega \forall n\in \omega R(x_{|n}, y_{|n}, z_{|n})$$ Proving the result above would easily give us the equivalence between these two formulations.


Issue with the Sort method when sorting strings with numbers

I am trying to sort an ArrayList filled with strings alphabetically. When I call the Sort method the alphabet seems to sort fine, however when there are numbers involved the Sort method seems to sort incorrectly.  Take this code for example:  ArrayList list = new ArrayList ();  list.Add ("img149"); list.Add ("img15"); list.Add ("a");  list.Sort ();  for (int i = 0; i < list.Count (); i++) {     Console.WriteLine (list [i]); }   This seems to print:  a img_149 img_15   the string "a" is sorted fine, but the two other strings are incorrectly sorted. I think I understand why this is as "4" comes before "5" however, 149 is really higher than 15 in which case the string with the 15 should print first.  For my situation, I never know exactly what the strings will be (the strings represent file names in my program), and it is crucial the names are sorted alphabetically with the numbers in order (1, 2, 150, 300, etc.). Does anyone have any ideas on how to rectify this?


Why did a Dementor try to take Harry's soul in the train?

In "Harry Potter and the Prisoner of Azkaban" - when Harry and his friends were travelling to Hogwarts by train, the train stopped in between and Dementors were searching for Sirius Black. Why did one of the Dementors try to take Harry's soul?


Prove the following inequality, $$\sqrt{n} \le (n!)^\frac{1}{n} \le \frac{n+1}{2} \ \ \ \ \forall \ n\in \mathbb{N} $$


Find all functions satisfying $\frac{1}{f(a)}+ \frac{1}{f(b)} = \frac{1}{f(c)} $ whenever $\frac{1}{a}+ \frac{1}{b} = \frac{1}{c} $

Find all functions $f: \mathbb{N} \rightarrow \mathbb{N} $ satisfying $\frac{1}{f(a)}+ \frac{1}{f(b)} = \frac{1}{f(c)} $ whenever $\frac{1}{a}+ \frac{1}{b} = \frac{1}{c} \ a,b,c \in \mathbb{N} $   After talking through it with a friend, they believe there is a simple solution only a couple of lines long, but I have yet to spot the method. Any ideas?


How to Compute the Brier Score for more than Two Classes

tl;dr  How do I correctly compute the Brier score for more than two classes? I got confusing results with different approaches. Details below.    As suggested to me in a comment to , I would like to evaluate the quality of a set of classifiers I trained with the Brier score. These classifiers are multiclass classifiers and the classes are imbalanced. The Brier score should be able to handle these conditions. However, I am not quite confident about how to apply the Brier score test. Say I have 10 data points and 5 classes:  One hot vectors represent which class is present in a given item of data:  targets = array([[0, 0, 0, 0, 1],                  [0, 0, 0, 0, 1],                  [0, 0, 0, 0, 1],                  [0, 1, 0, 0, 0],                  [0, 0, 0, 0, 1],                  [0, 0, 1, 0, 0],                  [1, 0, 0, 0, 0],                  [0, 1, 0, 0, 0],                  [1, 0, 0, 0, 0],                  [1, 0, 0, 0, 0]])   Vectors of probabilities represent the outputs of my classifiers, assigning a probability to each class  probs = array([[0.14, 0.38, 0.4 , 0.04, 0.05],                [0.55, 0.05, 0.34, 0.04, 0.01],                [0.3 , 0.35, 0.18, 0.09, 0.08],                [0.23, 0.22, 0.04, 0.05, 0.46],                [0.  , 0.15, 0.47, 0.28, 0.09],                [0.23, 0.13, 0.34, 0.27, 0.03],                [0.32, 0.06, 0.59, 0.02, 0.01],                [0.01, 0.19, 0.01, 0.03, 0.75],                [0.27, 0.38, 0.03, 0.12, 0.2 ],                [0.17, 0.45, 0.11, 0.25, 0.01]])   These matrices are coindexed, so probs[i, j] is the probability of class targets[i, j].  Now,  the definition of the Brier Score for multiple classes is  $$\frac{1}{N} \sum_{t=1}^{N} \sum_{i=1}^{R} (f_{ti} - o_{ti})^2$$  When I program this in Python and run it on the above targets and probs matrices, I get a result of $1.0069$  >>> def brier_multi(targets, probs): ...     return np.mean(np.sum((probs - targets)**2, axis=1)) ...  >>> brier_multi(targets, probs) 1.0068899999999998   But I am not sure if I interpreted the definition correctly.  For Python the sklearn library provides . While the documentation states     The Brier score is appropriate for binary and categorical outcomes that can be structured as true or false   What the function actually does is pick one (or get one passed as an argument) of $n > 2$ classes and treat that class as class $1$ and all other classes as class $0$.  For example, if we choose class 3 (index 2) as the $1$ class and thus all other classes as class $0$, we get:  >>> # get true classes by argmax over binary arrays ... true_classes = np.argmax(targets, axis=1) >>>  >>> brier_score_loss(true_classes, probs[:,2], pos_label=2) 0.13272999999999996   alternatively:  >>> brier_score_loss(targets[:,2], probs[:,2]) 0.13272999999999996   This is indeed the , as can be shown by manually defining and running it:  >>> def brier_bin_(targets, probs): ...     return np.mean((targets - probs) ** 2) >>> brier_bin(targets[:,2], probs[:,2]) 0.13272999999999996   As you can see, this is the same result as with sklearn's brier_score_loss.  Wikipedia states about the binary version:     This formulation is mostly used for binary events (for example "rain"   or "no rain"). The above equation is a proper scoring rule only for   binary events;   So... Now I am confused and have the following questions:  1) If sklearn computes the multi class Brier score as a One vs. All binary score, is that the only and correct way to compute the multi class Brier score?  Which leads me to  2) If that is so, my brier_multi code must be based on a misconception. What is my misconception about the definition of the multiclass Brier score?  3) Maybe I am on the wrong track altogether. In which case, please explain to me, how I compute the Brier score correctly?


How can I solve "fixed channel -1" (mon0 is on channel -1) issue when using airodump-ng?

I am beginner in Ubuntu 12.04, and have a problem with aircrack-ng. airodump-ng gived me a fixed channel -1 error. The access point is on channel 5, but I can't switch to that channel because of that error.  My hardware is: Broadcom BCM431, driver b43. I've tried patching,  but had a problem with driver installation.


Search and replace multiple values with multiple/different values in PHP5?

Is there an inbuilt PHP function to replace multiple values inside a string with an array that dictates exactly what is replaced with what?  For example:  $searchreplace_array = Array('blah' => 'bleh', 'blarh' => 'blerh'); $string = 'blah blarh bleh bleh blarh';   And the resulting would be: 'bleh blerh bleh bleh blerh'.


Is there such a method that computes 'e' to 'n' correct digits with less than 'n' iterations?

I have been looking into methods and formulae that yields approximations of 'e', one thing i have observed is that at least the ones i have tried tend to use by far more iterations than the number of correct digits they generate.  Is there no method that has a better convergence as well as less time needed to generate correct digits than them?.


Why has the boolean modifier created new vertices?

As you can see in object mode there are 4 vertices that have separated the front of the cartridge into multiple faces when I use boolean modifiers on cartridge.001. How can I fix this?  I imagine it has to do with good topology.  Here's the cartridge in object mode showing faces:    Here is the cartridge with the unwanted vertices:    Attached is the .blend


How does the futures market affect the stock market?

For instance, at this current moment the SP500 index is at 2094 while the futures on this market, symbol /ES with a contract of June is at 2088.  Can someone please explain how traders and investors use this price difference to trade? And most importantly how the futures market affects subsequent moves in the stock market?


How to rearrange a list of object / items

I have a list of employees which I get from database. I need to rearrange the list of employees to have fairness.   for example If I have List<Employee> employees = new List<Employee>();  while (reader.Read()) {     departments.Add(new Department(Convert.ToInt16(reader.GetString("Did"))));     departments[count].Name = reader.GetString("DName");     departments[count].MinEarlyShift = Convert.ToInt16(reader.GetString("Minearlyshift"));     departments[count].MinLateShift = Convert.ToInt16(reader.GetString("Minlateshift"));     departments[count].EarlyShiftStart = Convert.ToDateTime( (reader.GetString("Earlyshift"))); }   now I have list of employees which will always have james in index 0 carter in index 1   but I want to rearrange this so carter may have the index 0 for example. basically shuffle the list.


Generating / viweing XML content in bar,pie charts : Java

We have a Java rcp product, we need to generate results reading an xml file ie,Data source is XML file. Which tool / library I need to use to view/ populate xml data in bar,pie charts ?


Rule clarification for Enlightened badge (again, I know)

I know that this very question was asked before (more than once), but the answers don't apply here.    was the first and only one given, was accepted with 10 votes, but didn't result in the badge being awarded.  The only reason I can see is that the answer needs to be accepted after it gets 10 votes. Is that so?


Is there any LaTeX option to treat " characters (ASCII 0x22) as either an opening quote or a closing quote, depending on whether it's at beginning or end of a word?  e.g. I supply the text like:  "hello", world.  and LaTeX would treat that as equivalent to:  ``hello'', world.


Why more (and varying number of) logical reads with read ahead (prefetch)?

After creating tpch database in my SQL Server, I tried below query:      set statistics io on     DBCC DROPCLEANBUFFERS;             select top 100 * from dbo.lineitem order by l_partkey;   The table lineitem has a non-clustered index on l_partkey. I issued the above queries for several times and found out that the logical reads vary each time:      Table 'lineitem'. Scan count 1, logical reads 1019, physical reads 4, read-ahead reads 1760, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.     Table 'lineitem'. Scan count 1, logical reads 1007, physical reads 4, read-ahead reads 1720, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.     Table 'lineitem'. Scan count 1, logical reads 1030, physical reads 4, read-ahead reads 1792, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.   From the post here: , I know it could be caused by read ahead behavior.  BUT exactly why read ahead could cause more logical reads? How does it change the SQL Server behavior? Like SQL Server may read more index page since it's in cache anyway?  Anyway, I disabled read ahead and issue the above query again. Now it reports the same amount of logical reads each time. BUT the logical reads is much smaller!!      Table 'lineitem'. Scan count 1, logical reads 404, physical reads 160, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.   So my question is, why the read ahead feature could cause many more and various logical reads count?  Out of curiosity, I tried another query without the "order by":      select top 100 * from dbo.lineitem   Here's the result without read ahead:      Table 'lineitem'. Scan count 1, logical reads 5, physical reads 3, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.   Here's the result with read ahead:      Table 'lineitem'. Scan count 1, logical reads 15, physical reads 2, read-ahead reads 3416, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.   The one with read ahead still has more logical reads. So, why?


I have a basic table looking like:

             userId	             Firstname	             Lastname

  Javascript code: (data is loaded from database) $('table tbody').append('
'+userId+'	'+firstname+'	'+lastname+'	Details
')  Now when I click on Details, it should be called the click event: $(".details").click(function () {     console.log("test") })  But nothing happen. What can it be? Is it because I am loading it with javascript?


How to connect a 4x4 keypad without a microcontroller

I have the  4x4 keypad, and I need to connect it so that I can determine which key has been pressed without using a microcontroller. Is there a way I can connect it using logic gates? The final aim of connecting it is to determine which number has been pressed, decoding this value into BCD and storing it in an array of D Flip Flops. I can't see how to go about connecting it, and would greatly appreciate your help.


Some people say cleaning with water removes the taste from mushrooms.   But if I don't use water the mushrooms will carry a lot of dust.  Do you have any techniques for cleaning mushroom so I don't eat crap but don't spoil the mushroom?


How can you change your status in Google Hangouts from Gmail?

Is there a way to change your status in Google Hangouts from within Gmail?


Is there a word that implies that a person is educated and ignorant at the same time?   I tried ignorant, ignoramus and similar words but they imply that a person is uneducated and does not convey the sense of educated and ignorant. I searched up synonyms of ignorant and ignoramus but did not find the word I need.   In my native language we have a word which means "educated idiot." Is there any word for that? Thanks.


Can you tell me what the difference is between cat and sudo cat?  All I know so far is that cat is used for displaying contents of file and concatenation.


Is there any number which $n!$ is lower than $2^n$ or same?

I interested in this question. how many numbers meet this condition? I think a few of them meet this but I want a proof for this. also I'm not very pro in mathematics.


Wolverine's love of beer is fairly well known.  According to , he can even suffer the effects of intoxication if he binges.  However, does he have an actual alcohol dependence?  Considering his mutant healing factor, and despite the fact that he can potentially get drunk if he consumes enough, can he develop an alcohol dependence?


Can I clean range hood exhaust duct without reaching it?

My home range hood is . Plz see pictures that post. I never clean . It's probably greasy and clogged.  How can I clean it, but not access it? I don't want remove range hood or open exhaust duct. I see no Access Panel like picture below.  Are there safe chemicals I can spray at range hood? Then when I turn on range hood fans, these chemicals suck into exhaust duct, destroy grease?


Integral of the square of a non-standard gaussian pdf

What is the integral of the square of a non-standard univariate gaussian distribution? The following is what I have so far, is it right? $\int_{-\infty}^{\infty} p^2(x)dx$, where $p(x)\sim N(\mu, \sigma^2)$ $\int_{-\infty}^{\infty} p^2(x)dx = \int_{-\infty}^{\infty} (\frac{1}{\sqrt{2\pi \sigma^2}} e^{\frac{-(X-\mu)^2}{2\sigma^2}})^2 dx$ $= \int_{-\infty}^{\infty} \frac{1}{2\pi \sigma^2} e^{\frac{-2(X-\mu)^2}{2\sigma^2}} dx$ $= \frac{1}{2\pi \sigma^2} \int_{-\infty}^{\infty} e^{\frac{-(X-\mu)^2}{\sigma^2}} dx$ $= \frac{\sigma \sqrt{\pi}}{2\pi \sigma^2} $ $= \frac{1}{2\sigma \sqrt{\pi}} $ And what is the integral if it is a 2D gaussian? $\int_{-\infty}^{\infty} p^2(x, y)dx$, where $p(x, y)\sim N(\mu, \Sigma^2)$ $\int_{-\infty}^{\infty} p^2(x, y)dx = \int_{-\infty}^{\infty} (\frac{1}{2\pi \sqrt{\Sigma}} e^{\frac{-(X-\mu)^2}{2\Sigma}})^2 dx$ $= \int_{-\infty}^{\infty} \frac{1}{4\pi^2 \Sigma} e^{\frac{-2(X-\mu)^2}{2\Sigma}} dx$ $= \frac{1}{4\pi^2 \Sigma} \int_{-\infty}^{\infty} e^{\frac{-(X-\mu)^2}{\Sigma}} dx$ $= \frac{\sqrt{\pi\Sigma}}{4\pi^2 \Sigma} $ $= \frac{1}{4\pi\sqrt{\pi} \sqrt{\Sigma}} $


Unable to claim reward after completing field research, how can I fix this?

Pokémon Go graphic glitch.  My daughter was trying to capture Raikou, after feeding berries and several failed attempts with ultra balls she fled the capture prize screen.  When trying to go back and capture the prize we are brought to a blurry bluish white screen with no buttons or options to click on.  Please help!!!  Here’s a video of my issue:                                !


Fingerprint GUI not installing in Ubuntu 20.04

I'm trying to install fingerprint-gui on my Lenovo Ideapad 520 having Ubuntu 20.04 on which fingerprint isn't working for now. I tried going directly to Settings → Users → Automatic login and enabled the fingerprint login, but the error is:  Could not access any fingerprint readers Please contact your system administrator for help!  I also tried to install Fingerprint GUI: sudo apt-add-repository ppa:fingerprint/fingerprint-gui && sudo apt-get update  sudo apt-get install libbsapi policykit-1-fingerprint-gui fingerprint-gui  but encountered this error: E: Package 'policykit-1-fingerprint-gui' has no installation candidate E: Package 'fingerprint-gui' has no installation candidate  What could be the problem here?


How do I restore the default Windows 10 bootloader?

I would like to remove by Ubuntu partition by formatting its drive in the Windows Disk Manager. However, how can I restore the Windows 10 bootloader after this action? I no longer wish to use GRUB.


Can't place blocks in modded creative mode

I've recently been having difficulty in Minecraft. It's a modded creative, but sometimes, I can break blocks but not place them in creative mode. I switched over to a server that used the same mod I was playing and I couldn't place on there either.   When I play a non-modded game (typically 1.8.8) it works fine.  My internet is at 5 full bars (4 sometimes) and runs very smoothly. It also mostly only occurs after I make a new world and play on it shortly after making it (and, I have a load of worlds.)  EDIT: It now happens mid-game too. It happened with any mod I used, same or different, and does not occur in vanilla Minecraft. I use Forge 1.7.10.


Integral of bounded continuous function on $R$

Let $f$ be a bounded continuous function on $R$. Prove that  $$\lim_{n \to \infty} \frac{n}{\pi} \int_{ R} \frac {f(t)}{1+n^{2}t^{2}} dt=f(0)$$  I solved this question as follows, but I ran into a problem:  Solution:  Since $f$ is continuous at $0$, given $\epsilon>0$, there is $\delta >0$ such that $|f(x)-f(0)| \leq \epsilon, \forall x \in [-\delta \hspace{2 mm} \delta]$. Now consider $f_{n}(x)=\frac{nf(x)}{1+n^{2}x^{2}}$,$n \in N$, is a sequence of continuous function that converges to $0$ on $R-[-\delta \hspace{2 mm} \delta]$ when $n \to \infty$. Also, according to guestion, $f$ is bounded (i.e.$|f_{n}(x)|<g(x)$). Therefore according to Dominated Convergence Theorem   $$\lim_{n \to \infty} \frac{n}{\pi} \int_{ R-[-\delta \hspace{2 mm} \delta]} \frac {f(t)}{1+n^{2}t^{2}} dt=\lim_{n \to \infty} \frac{n}{\pi} \int_{ R-[-\delta \hspace{2 mm} \delta]} 0 \hspace{2 mm} dt=0$$  Now I have a problem to solve the second part. I want to prove     $\lim_{n \to \infty} \int_{ -\delta}^{\delta} \frac {nf(t)}{1+n^{2}t^{2}} dt =  \lim_{n \to \infty} \int_{ -\delta}^{\delta} \frac {nf(0)}{1+n^{2}t^{2}} dt $  which   $\lim_{n \to \infty} \int_{ -\delta}^{\delta} \frac {nf(0)}{1+n^{2}t^{2}} dt =\pi f(0)$  If I can prove that, the rest of question is easy, because I can say:   $\lim_{n \to \infty} n \int_{ R} \frac {f(t)}{1+n^{2}t^{2}} dt=\lim_{n \to \infty} n \int_{ R-[-\delta \hspace{2 mm} \delta]} \frac {f(t)}{1+n^{2}t^{2}} dt+\lim_{n \to \infty} n \int_{ R} \frac {f(t)}{1+n^{2}t^{2}} dt=\lim_{n \to \infty} n \int_{ [-\delta \hspace{2 mm} \delta]} \frac {f(t)}{1+n^{2}t^{2}} dt=\pi f(0)$  Now how can I prove: $\lim_{n \to \infty} \int_{ -\delta}^{\delta} \frac {nf(t)}{1+n^{2}t^{2}} dt =  \lim_{n \to \infty} \int_{ -\delta}^{\delta} \frac {nf(0)}{1+n^{2}t^{2}} dt $


I've been trying to update for several days now, and it tells me that extras.ubuntu.com is unavailable. Why is it unavailable?


What happens if Canadian Citizens overstay in United States?

Someone who is visiting Florida and goes over the “6 month” deadline. What happens if they were to re-enter Canada? How much trouble is to be had if they were found out? Currently I've overstayed for about a week, but don't look to return to Canada anytime soon.


Why is the winter bashed themed as such when users of the network are from all around the world (and it's summer in half the Globe)?

These aren't the geographically located Olympics. I am from the Southern Hemisphere and this makes me feel alienated, as sometimes occurs in other forums and communities. I think many people will share the feeling.


From the given figure, prove that      $$\cot\ \theta=\cot\ A+\cot\ B+\cot\ C$$     I could not even start to the first point. Please help me to solve this.  Thanks in advance


Combining several Likert items from a Likert scale into one variable

Hi there I have a very important question for my statistical analysis which needs to be finished in a few days.  First of all I have to say that I have not much knowledge of statistics and therefore have problems to understand most of the answers for similar questions.  My question is:  I have conducted a survey with nine questions grouped into 3 variables (3 questions for each variable). Now I would like to have the score my variable which results from the 3 questions in each variable. So now I'm wondering how can I get my scores for the single variables? Can I calculate the mean of the scores from every respondent and then use the mean? Would that be okay?   I would be happy if I got a quick (and easy :D) answer. Thank you!!