Difference between two ways of embedding metadata into pdf outpurt

The following source, using hyperref, shows two different ways of embedding metadata into the output from using pdflatex:  Using the pdfx package with option a-2u — this happens when the flag validate is set to true, as it is below. Using instead the hyperxmp package with \hyperrefset including options pdfapart=2, pdfaconformance=u — this happens if the flag validate is set to 'false`.  Both methods seem to embed essentially the same metadata about title, author, etc., into the pdf. Questions:  Aside from passing PDF/A-2U validation (which method 1 allows but method 2 does not), in fact is there any actual difference in the embedded metadata? Is there some reason to prefer one method to the other (aside the issue PDF/A-2U validation)?  Source: \RequirePackage{filecontents}  \begin{filecontents}{\jobname metadata.xmp} \hyxmp@at@end{%   % Create XMP code and write it to macro \hyxmp@xml   % (cf. hyperxmp.sty, \hyxmp@construct@packet (ll. 847-868))   \gdef\hyxmp@xml{}%   \hyxmp@add@to@xml{% <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="3.1-702">^^J% ___<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns\hyxmp@hash">^^J%   }%   \hyxmp@pdf@schema   \hyxmp@xmpRights@schema   \hyxmp@dc@schema   \hyxmp@photoshop@schema   \hyxmp@photometa@schema   \hyxmp@xmp@basic@schema   \hyxmp@mm@schema   \hyxmp@add@to@xml{% ___</rdf:RDF>^^J% </x:xmpmeta>^^J%   }% } \end{filecontents}  \begin{filecontents}{\jobname.xmpdata} \Title{A Book} \Author{Anonymous} \Language{en-US} \Keywords{things\sep stuff} \Subject{matters} \Publisher{Anonymous} \Copyright{\copyright 2020 The Company CC-BY-NC-ND} \CopyrightURL{https://creativecommons.org/licenses/by-nc-nd/4.0/} \PublicationType{book} \Lastpage{3} \Date{2020-06-26} \CoverDisplayDate{June\ 26,\ 2020} \CoverDate{2020-06-26} \end{filecontents}  \documentclass{book}  \usepackage{ifthen} \newboolean{validate} \setboolean{validate}{true}    \ifthenelse{\boolean{validate}}%   {\RequirePackage[a-2u]{pdfx}%     \pdfglyphtounicode{EM}{0058 0058 0058 0058 0058 0058 0058 0058}%     \pdfglyphtounicode{NUL}{0060 0060 0060 0060 0060 0060 0060 0060}%     \RequirePackage[type={CC},modifier={by-nc-nd},version={4.0},lang={english}]{doclicense}     \usepackage{hyperref}     \hypersetup{        pdfa,        bookmarksnumbered,        pdftitle={A Book}, pdfauthor={Anonymous}, pdfcreator={somebody},        pdfsubject={A general introducton to things}, pdfkeywords={things, stuff},    }  %   }%   {\RequirePackage{hyperxmp} % to add CC info into pdf    \RequirePackage[type={CC},modifier={by-nc-nd},version={4.0},lang={english}]{doclicense}    \usepackage[pdfa]{hyperref}    \hypersetup{       pdfapart=2, pdfaconformance=u,       bookmarksnumbered,       pdftitle={A Book}, pdfauthor={Anonymous}, pdfcreator={somebody},       pdfsubject={A general introducton to things}, pdfkeywords={things, stuff},       pdflicenseurl={http://creativecommons.org/licenses/by-nc-nd/4.0/}     }%     \immediate\pdfobj stream attr{/N 3} file{sRGB.icc}     \pdfcatalog{%         /OutputIntents [            <<              /Type /OutputIntent              /S /GTS_PDFA2              /DestOutputProfile \the\pdflastobj\space 0 R              /OutputConditionIdentifier (sRGB)              /Info (sRGB)           >>       ]     } }  \newcommand\mytitle{A Book} \newcommand\myauthor{Anonymous} \newcommand\myabstract{An introduction to things in general.} \newcommand\mydate{\today} \title{\mytitle} \author{\myauthor} \date{\mydate}  \usepackage{newtxtext,newtxmath} \usepackage[french,ngerman,russian,main=english]{babel}  \usepackage{blindtext}  \begin{document} \maketitle \blindmathpaper \end{document}  Related:


in c# How do I validate a textbox when someone types in a decimal , and I want a error shown saying no decimal numbers?

Every time someone types in a decimal or any characters or strings, I want a message box shown saying “only integers”.


How to compute $\lim\limits_{n\rightarrow \infty} \{(2+\sqrt{3})^{n}\}$, where $\{x\}$ is the fractional part of $x$?

I've stumbled upon the following problem:  $$\lim_{n\rightarrow \infty} \{(2+\sqrt{3})^{n}\}$$  where "{}" notates the fractional part.  I've never studied this kind of problem, there exists any reference that I could read about this type of problem?


Is it a good idea to scan external HDD with Ubuntu?

I have an external hard disk drive, and it may have some viruses in it.  I don't want to connect it to Windows, so when I have to copy something from it, I do it in Ubuntu.  Now I have to install a lot of -Windows- programs from it, so does it make sense to install an antivirus (like BitDefender) and scan from Ubuntu?  I mean, does just plugging it into Windows puts me in danger?  Can there be viruses in Autorun.exe or such?  And which free antivirus should I use?


How many elements do you want in the array? 3 Enter an integer to store in the array 66 enter an integer to store in the array 33 enter an integer to store in the array 99 Here are the sorted values: [33,66,99]   This should be the result.  This is what I made:  import java.util.Scanner;   public class PracTe3Te {      /**      * @param args      */     public static void main(String[] args) {         int [] a;         int size;         int value;           Scanner sc;         sc = new Scanner(System.in);         System.out.println("How many elements do you want in the array? ");         size = sc.nextInt();          a = new int [size];          System.out.println("the size of array is " + a.length);                for (int i = 0; i < a.length; i++)              {                 System.out.println("Enter an integer to store in the array");                 value = sc.nextInt();                 a[i] = value;                    int newNum = value;                   if (value < a.length - 1) { //otherwise array is already full                      a[value] = value;                      newNum = newNum + 1;                    }              }              System.out.print(a);          }      }   and get this result:   How many elements do you want in the array?  3 the size of array is 3 Enter an integer to store in the array 4 Enter an integer to store in the array 3 Enter an integer to store in the array 5 [I@60072ffb   How can I print the array list of entered items not like [I@60072ffb?


I'm finding a lot of popular articles about the "exciting" possibility that the speed of light might be changing. However, I'm having no luck finding a good rebuttal. My general understanding is that variable speed of light theories aren't widely accepted, or worse, fringe theories. Can someone offer a rebuttal or point to a good reference?


Using Secure String and Keeping it Secure

So the .NET framework provides the  class for storing strings in a secure fashion.  But to read the information and work with it you have to return it to a standard string.  See .  As you can see from the example using the pointer we return an unencrypted string.  How to do we now manage that "insecure" instance of the string?  What is the most secure way to work with the value once it has been set?  Edit  The purpose of this question was to discuss methods to REDUCE the surface area of potential attack when using SecureStrings and then working with the values.  Not the "why" as to the "duplicate" link.


All normal verbs can be conjugated in the future tense.     e.g. I know, I will know. I do, I will do.   But I have noticed that we cannot conjugate the modal verb can in the future tense.     can, I will can?   Although we are able to conjugate the phrase be able (that has approximately the same meaning of can) to will be able, we cannot conjugate can. Is there a way to express can in the future tense without using the expression to be able?    Additionally, need and dare are sometimes utilised as a modal verb.     I need not. Need I not? I dare say. Dare he do it?   Are we able to conjugate these verbs in the future tense as modal verbs?  If need were used as a ‘normal’ verb, an example of it in the future tense would be I will need to do it. Can we write that sentence by making need a modal verb?  Thank you.


How Do I Properly Install Selinux on Ubuntu?

In the past I have used Fedora and loved having Selinux and learning about it etc. I'm pretty familiar with it. But I had a soft spot in my heart and went back to Ubuntu due to it being the first distro I used. I know that Apparmor is similar and installed on Ubuntu by default however I wish to use what I'm used to. Does anyone have an update to date guide on how to safely and properly remove apparmor and install Selinux? Thanks for reading :)


The German word for these patterns is "Schliere, pl. Schlieren", and apparently this word has entered the English language as a loanword (cf. article  in Wikipedia or entry  in OED). But the German loanword is probably not something most native speakers of English understand without the help of a dictionary, so what would you call, or how would you describe, the following patterns?  Concrete:    Air:    Oil on water:    Coffee and milk:    Paint:    Smoke:    Rock:    Marbled paper:    And so on.    "Waves" is not applicable, because waves are vertical undulations of the surface, while these are a pattern on, or inside, the surface level, with no amplitude.  "Striæ" does not really fit either, because those refer more to the parallel layers, than to the curly forms.


Find a bijection from $\mathbb R$ to $\mathbb R-\mathbb N$

Find a bijection from $\mathbb R \to  \mathbb R-\mathbb N$. I want to set my function up such that all natural numbers get mapped to $n+.1$ and reals of the form $n+.1$ to $2n+.1$ is this correct?


Can a Wild Shaped Druid regain hit points after a short rest?

Assuming the Druid's level is high enough to stay in Wild Shape, can the Druid's beast form regain lost Hit Points resting this way? If so, does he use the beast's hit dice or the Druid's?


Creating Pie Chart in Legend with Varying Representations of Percentage using ArcGIS for Desktop?

I want to create a pie chart within a legend in ArcGIS that reflects differences in percentage (ie: male vs female). An example of what I want to create is below.     How do I create something like this in ArcGIS for Desktop?


What happens when square root is performed in inequalities?

Simplify: $x^2 > 1$.  My solution: Taking square root on both sides:  $±x > ±1$  So my results are:   $x > 1$ $x > -1$ $-x > 1$ $\implies$ $(-1 > x)$ $-x > -1$ $\implies$ $(1 > x) $   But I strongly feel this is wrong. What is wrong here?  A step-by-step explanation will help me.


Story about a giant brain like thing that puts our hero in suspended animation for centuries to kill it when it needs to die

Hi I'm looking for the title of an animated movie probably from the 80s about a hero (a guy) and a "villain" who I recall being kind of like a giant brain/blob that could project tentacles (I think) out of itself. I don't recall the setting being Earth as in my mind it was more like alien landscape and caves. In this story, the protagonist is befriended by humanoid cave creatures who want the brain thing destroyed. I believe it might have been enslaving them and at this point the protagonist also wants the brain destroyed and agrees to do so. The hero acquires/is given a syringe of brain killing goo, but when he goes to inject the brain thing it stops and captures him. Instead of killing the hero though, the brain recognizes that in the distant future, it will become ill/corrupted and will need to be euthanized. It also knows that when the times comes the sick future brain will be unwilling to kill itself. The brain's solution is to put our hero in a state of suspended animation (with the syringe) to be revived centuries later. That comes to pass and when the hero awakens, the brain thing is in fact sick/corrupted and as predicted needs to be euthanized. Our hero proceeds to do just that (despite the brain thing now having changed it's mind about the whole plan). This is a longshot, but I will add the the humanoids referred to the hero in all the "timelines" past, present and future of the movie as something along the lines of:  "once was, will be our friend"  As I recall this did not make sense at the beginning of the movie, but by the end it is apparent that the (potentially enslaved) cave humanoids had predicted the events thousands of years in the future.


Numbering Equations in the following form

I would like to number equations (in increasing order using positive integers) so that the number appears in parenthses (n) in the right margin. Currently, my equation numbers appear in the left margin and the number corresponding to the nth equation in section m is (m.n). How can I edit the numbers and the location?   MWE  \documentclass[english]{amsart} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{amsthm} \usepackage{setspace}  \makeatletter %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands. \numberwithin{equation}{section} \numberwithin{figure}{section}  \makeatother  \usepackage{babel} \begin{document}  \section{\textbf{Introduction.}}  \begin{doublespace} \begin{equation} A=B \end{equation} \end{doublespace}  \end{document}


Can a Pakistani with valid Saudi Resident Card travel to Georgia?

I am holding a valid resident ID card of the Kingdom of Saudi Arabia and I am a Pakistani national. Can I travel to Georgia with visa free entry?


How to write a unit-test / test class for trigger?

How do I write a unit-test / test class for a trigger?  What are my options?   Inline with the trigger?  New Class?


Android widget stuck in "please login before using this widget" message

The Android widget on my  is always saying:     please login before using this widget   Here is a screenshot of this happening(sorry for the ugly style, I am not a great designer). I used blue rectangles to hide private/irrelevant information. I am trying to place the 2x1 widget in the 2x1 empty slot in the top right:    I have tried logging out and logging back in to the app, but still the problem persists.  This happened recently (in the past two months).


I'm using the OpenFonts version in this repository, which is a resume template for CS majors:   In the resume template, there are two column minipages created, with each column meant to have several subsections, such as Education, Links, Coursework in the first column and Experience, Research, Awards, Societies in the next column.  I want to increase the space between the two columns and I tried the solutions to several questions here to set the space between two minipages, but none of them worked. How do I set the space between the minipages here? I fiddled around with the code a lot, and I've seen several variations happen, including the overflow issue the repo owner mentions in the README.  EDIT: Here's a minimal .xtx file. deedy-resume-openfont.cls is the class file.  \documentclass[]{deedy-resume-openfont}  \begin{document}  \lastupdated  \namesection{Debarghya}{Das}{ \urlstyle{same}\url{http://debarghyadas.com} \\ \href{mailto:dd367@cornell.edu}{dd367@cornell.edu} | 607.379.5733 }  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % %     COLUMN ONE % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  \begin{minipage}[t]{0.33\textwidth}   % Sections like Education, Links, Coursework over here   \end{minipage} \hfill \begin{minipage}[t]{0.66\textwidth}  %Sections like Experience, Research, Awards, Societies over here  \end{minipage} \end{document}  \documentclass[]{article}


Why does adding  in a comment break the parser?

Why does adding </script> in a comment break the parser? Is this a bug or is there something in the documentation I've overlooked?  I've tested this in Chrome, Firefox, Opera, Internet Explorer and they all produce the same result.  Single-line comment:    function Foo(){   // </script>   alert("bar"); };  Foo();     Multi-line comment:    function Foo(){   /*       </script>   */   alert("bar"); };  Foo();


Network unavailable when resume from suspend after updating Ubuntu 20.04.1

After a recent update of Ubuntu 20.04.1 LTS when I resume my laptop from suspend my WIFI does not work. WIFI does work after rebooting the laptop. Here is what I have tried. sudo systemctl restart NetworkManager sudo service network-manager restart sudo nmcli networking off sudo nmcli networking on Non of these worked. There were no problems before the update and restoring to a previous state with timeshift resolves the problem. Here are the outputs of some commands that my help. sudo lshw -C network -network DISABLED    description: Wireless interface    product: Centrino Advanced-N 6235    vendor: Intel Corporation    physical id: 0    bus info: pci@0000:02:00.0    logical name: wlp2s0    version: 24    serial: c4:85:08:43:dc:6c    width: 64 bits    clock: 33MHz    capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless    configuration: broadcast=yes driver=iwlwifi driverversion=5.8.0-34-generic firmware=18.168.6.1 6000g2b-6.ucode latency=0 link=no multicast=yes wireless=IEEE 802.11    resources: irq:31 memory:f1500000-f1501fff  -network    description: Ethernet interface    product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller    vendor: Realtek Semiconductor Co., Ltd.    physical id: 0    bus info: pci@0000:03:00.0    logical name: enp3s0    version: 06    serial: e8:03:9a:e8:1a:51    capacity: 1Gbit/s    width: 64 bits    clock: 33MHz    capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation    configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.8.0-34-generic firmware=rtl8168e-3_0.0.4 03/27/12 latency=0 link=no multicast=yes port=MII    resources: irq:19 ioport:2000(size=256) memory:f1404000-f1404fff memory:f1400000-f1403fff  nmcli device DEVICE             TYPE      STATE         CONNECTION 30:D9:D9:28:09:E4  bt        disconnected  -- enp3s0             ethernet  unavailable   -- wlp2s0             wifi      unavailable   -- lo                 loopback  unmanaged     -- lspci -knn | grep Net -A3; rfkill list 02:00.0 Network controller [0280]: Intel Corporation Centrino Advanced-N 6235 [8086:088e] (rev 24) Subsystem: Intel Corporation Centrino Advanced-N 6235 AGN [8086:4060]  Kernel driver in use: iwlwifi Kernel modules: iwlwifi  0: phy0: Wireless LAN Soft blocked: no Hard blocked: no  2: hci0: Bluetooth Soft blocked: no Hard blocked: no  rfkill ID TYPE      DEVICE      SOFT      HARD 0 wlan      phy0   unblocked unblocked 2 bluetooth hci0   unblocked unblocked EDIT: the problem occur with Linux kernel 5.8 but no with Linux kernel 5.4


Compare dates in query from IMPORTRANGE and cell

for a few days I'm stuck at comparing two dates.  In a big table with dates as columns and products as rows, we want to display the amount of sales per day per product.  What the following query does:   Import our sales via IMPORTRANGE query the specific sales for a given day and product ID return 0 if there is an error (e.g. not found) count the result   This is a working query with the date 2018-03-26 hard coded:  =COUNTA(IFERROR(query(IMPORTRANGE("1OHR0nr_w3oFNNxtMxRwv65xncCBRpK-vV3vvqmHGFPo"; "Sales March!A:K"); "select Col6 where Col6 = '"&$A95&"' and todate(Col11) = date '2018-03-26'"; 0)))  It shows how many sales a specific product has on the specified date.  Now I want the date from a cell in the sheet:  =COUNTA(IFERROR(query(IMPORTRANGE("1OHR0nr_w3oFNNxtMxRwv65xncCBRpK-vV3vvqmHGFPo"; "Sales March!A:K"); "select Col6 where Col6 = '"&$A95&"' and todate(Col11) = date '"&$AR3&"'"; 0)))  But this doesn't work. I tried A LOT of things for the past 3 days but I have no idea if I did that wrong (I'm a beginner) so I'm turning to you. What might be wrong with the date comparison in this section?  "select Col6 where Col6 = '"&$A95&"' and todate(Col11) = date '"&$AR3&"'"  You can see it  in Column AR Row 95 but I can't give edit rights.


How likely is a hyperparameter search on a subset dataset going to be accurate on the full dataset?

I'm running a hyper parameter search over many options in a neural network, holding all but one fixed in turn until I come to rest on a reasonably optimal set of hyperparameters.  I wonder if anyone has any insight on how well a subset of the full dataset will be representative of the full dataset in this process?  For example, if I have a 1M item dataset these trainings may very well take on the order of days, weeks, or longer. If I sample 10,000 items out of that dataset, how reasonable/unreasonable is it to hope that the hyperparameters I identify for this subset will be equally optimal when run on the full dataset?


Which cmd is the best for determining the OS' word size (32/64)-bit?

I need to find my OS (not hardware) is 32-bit / 64-bit. Which command is best?   uname -p uname -i uname -m arch   All the above commands returns the same answer:   On 32 bit systems: i686/i386     On 64 bit systems: x86_64


Show that a matrix is a multiple of the identity

Let $A$, $B$, $C$ three complex 2x2 matrices such that $$A^2=B^3=I\;(A\neq I\neq B),\quad ABA=B^{-1},\quad AC=CA,\quad BC=CB.$$  Show that $C=rI$ for some $r\in\mathbb{C}$.  I got the minimal polynomials of $A$ and $B$, but I can't go further to find the minimal polynomial of $C$. Any suggestion?


Point dataset from CSV showing up outside of known region

I'm using QGIS and trying to display point data from a CSV file.  I've added a vector layer with a shapefile of Canada.  Both the project CRS and the shapefile CRS are set to NAD83 / Statistics Canada Lambert.    The CSV file CRS is also set to NAD83 / Statistics Canada Lambert.  The points should appear somewhere in the province of Manitoba.  However, the points show up outside of the map.  As shown by the attribute table, the lat / long appears normal, but the points show up at the wrong location.  What I am doing wrong here?  I've tried to ensure that both CRS projections are the same.  I've also tried switching the x and y in the CSV import, but the points still continue to show up at the same location.  Here is the CSV file data:  -98.43936109999999,49.3958333,TCR1 -98.38749999999999,49.3505556,TCR2 -98.38666669999999,49.3630556,TCR3 -98.3791667,49.3277778,TCR4 -98.3697222,49.39777779999999,TCR5 -98.3605556,49.3361111,TCR6 -98.3363889,49.3902778,TCR7 -98.33138889999998,49.3844444,TCR8


In an integral domain every non-zero prime ideal is invertible implies every non-zero proper ideal is invertible.

Suppose that $R$ is an integral domain. How to show that if every non-zero prime ideal of $R$ is invertible, then every non-zero ideal of $R$ is invertible?    Actually, I am trying to prove the unique prime factorization of ideals in $R$, so I cannot use the fact that any ideal can be factored as a product of primes.


Is a block of cotton heavier than a block of iron?

if i have a block of cotton and a block of iron each containing a weight of 100 kg when measured on a weighing machine, in reality which one is heaver than the other, which one is heavier and why?  This question was in my physics worksheet. The teacher gave the following answer: the apparent weight of both of them is the same, but the buoyant force of cotton is high since the volume of cotton is more than iron. Therefore, true weight of cotton is more. Does this answer make sense? What is the right answer?


Are there recommendations or pitfalls for playing an archer cleric?

In my 4E game, a player is going to try an elven cleric with a longbow (and a mace, just in case). She chose mostly ranged powers. Are there any caveats to playing such a character, or any builds that I could recommend for her?


I need to explain this to someone.  I know obviously the expanded form gives you $x^2 + 2xy + y^2$ but technically don't the individual exponents multiply to give $x^2 + y^2$  I might say I'm looking for an interesting geometrical explanation for this.  Any help is appreciated!


Layers with same coordinate system should align/overlap in ArcMap but do not?

I put 4 different layers into my ArcMap document, but only one of them will show up on the map! I should be seeing the other 3 layers as well. When I do a Zoom to layer, I can see one layer, but I cannot figure out how to make the other 3 show up at once on top of each other.  Before I opened ArcMap, I used ArcCatalog where I right-clicked 3/4 of the shapefiles and  clicked Properties → Coordinate system → Import and then clicked on my Trees layer, which has the coordinate system I want the other 3 to have. But when I opened ArcMap the 4 layers did not overlap, nor could I move them above or below each other.


Booted up to a weird issue.  My cursor size and selection change when I mouse over from desktop to browser.  I didn't change anything in themes, nor mouse pointers and such.  I have tried changing the size and cursor back to DMZ-White but it didn't work. Running Ubuntu 18.04.5 LTS and Cinnamon 3.6.7.  Any advice greatly appreciated.


Passing timestamp variable from shell to gawk

I want to take time difference of two time stamp but getting an error while passing timestamp variable from shell toawk.  Shell code:  FTIMESTAMP="2015-07-01 12:30:50" gawk -v FTIMESTAMP=$FTIMESTAMP -v DSECONDS=$DSECONDS -f test.awk /home/abc/TShift.csv    Error is:  gawk: 12:30:50 gawk:   ^ syntax error   Escaping character is also not working FTIMESTAMP="2015-07-01 12\:30\:50".  I have another timestamp in awk and want to take time difference between them.


What are the requirements to get the "Weed Eater" hat?

The hat's description says     answer a question qualifying for the Tumbleweed badge that gets accepted   During the winter bash, I  a question that is a , and it got accepted; yet I did not get the hat. However  answer  and did get the hat. (What was the difference?)  So what are the exact requirements to get the  hat?


When are stopovers permitted on Japan Railways (JR) trains?

Regarding : in general, what are the rules governing stopovers for JR trains if one does not use a rail pass? A stopover means you have a ticket from stations A to B (say, Tokyo to Hiroshima) and you disembark and exit the ticket gates at an intermediate station (say, Kyoto).  (Spoiler alert: it's complicated.)


Redirecting an entire domain to another in one CNAME record

Is there a way to redirect an entire domain to another domain through one CNAME record?  For example [anyhost].domain1.com pointing to [anyhost].domain2.com where no matter what host name I enter in domain1.com it will point to the actual ip address of the SAME host name in domain2.com.  If I ping www.domain1.com it will resolve to www.domain2.com's ip address. Or if I ping mail.domain1.com it will resolve to mail.domain2.com's ip address, and so on.  I know I can enter a CNAME record for each host in domain1.com but that is tedious. Some of the other questions asked in this area shows answers where a specific ip address is used for a default for the domain and that is not what I am looking for as an answer.  Incidentally, I tried using CNAME *.domain1.com *.domain2.com and it didn't work.


Intersection of two compact sets in $\mathbb R$ is compact (without Heine-Borel theorem)

I  to this question here.   The answer here used Heine-Borel theorem since it used the fact, that every compact set is closed.  Without using it, how can I show that union of two compact sets in $\mathbb R$ is compact?


How to escape certain characters for sed?

I want to remove a line from a file and understand this can be done with sed. The command below fails because of unterminated address regex sed -i '/$settings['file_temp_path'] = '../tmp';/d' file.php  Having read the the answer at  . I now understand this is because characters [ and / must be escaped. Having tried this, the code below is still unsuccessful sed -i '/$settings\['file_temp_path'] = '..\/tmp';/d' file.php  What is wrong with this? What am I missing?


Mapping of multiple server logins to one database user

This seems to be a stupid question but despite some research I was unable to find any information regarding this only (possibly due to using the wrong terminology).  Is it possible to log multiple server logins (sql server authentication) to a single database user (which has permissions assigned by being member of a database role)?  I have dozens of sql logins (sql server authentication) which need to read one setting from a central database and I'd rather map all these logins to a single DB user in the target database than create an own DB user for each login.  If yes, what would be the correct T-SQL syntax?


Cannot browse for Backup files using SSMS

I'm facing a strange problem. When I try to backup or restore any database using a SQL Server user (not sa) that belongs only to "public" server role, i have the following error when i click the browse button on the "Select backup destination" window:  D:\SQLServerData\Backup Cannot access the specified path or file on the server. Verify that you have the necessary security privileges and that the path or file exists. ...  The user is db_owner for the database I try to backup, and SQLServer service is running with administrator account, so it should have no problems with access to the D:\SqlServerData\ folder.  I tried to add the user to any other server role, but none worked except "sysadmin". But having the user in sysadmin server role means that the user can do anything in any database, and I do not want that.  Any idea on what's going on?


Proper use of the contraction "don't" in questions

I was reading a fantasy novel and I came across this piece of dialogue:     Don’t you know what a Conquest Knight is?   And the main character replied by nodding his head.   But this confused me because the question could be asking if he does know, to which he nods his head, or it could be asking if he does not know, to which he nods his head.  Well from reading the story I can tell you that at this point in time the character does not know. And because he nods his head the question must be asking if he does not know.  But, left as is, it could be interpreted one of two ways:     "Do you not know what a conquest knight is?"      "Do you know what a conquest knight is?"   Basically, I am asking if the contraction don't is used improperly in the sentence or if the contraction itself has always been that ambiguous.


Is there a website that keeps track of which software versions are available in which distributions?

I want to find out and keep track of which package versions I should support when writing software for other people to install and use.  There is a website () that helps you find out which features are available in which browsers. In a similar fashion, I would like to find out which software versions are available in different distributions.


How to determine the size of a structure in C

I have the following code:  #include<stdio.h> typedef struct _node_1 {     int number;     int scores;     int xyz;     double p;  } Node_1;  typedef struct _node_2 {     int number;     int scores;     int xyz;     struct _node_2 *p;  } Node_2;  typedef struct _node_3 {     int number;     int scores;     int xyz;     struct _node_2 p;  } Node_3; int main() {     printf("%d\n",sizeof(Node_1));     printf("%d\n",sizeof(Node_2));     printf("%d",sizeof(Node_3));     return 0; }   and the output is:  24 24 40   My question is why the result of these 3 examples's outputs are like this and how do we exactly determine the size of a structure? BTW, my operating system is 64-bit. Thank you!


I accidentally added myself to a group using the command usermod -G vboxsf daniel and I forgot to add the parameter -a ... Now I need to revert the changes.  What are the default groups of the first user after a fresh install of Ubuntu 15.10?


Lightning Component - createRecord without navigating away from current page

I have a lightning component that allows you to create a contact record via:  createRecord : function (component, event, helper) { var createRecordEvent = $A.get("e.force:createRecord"); createRecordEvent.setParams({     "entityApiName": "Contact" }); createRecordEvent.fire();}   After I add the new contact in the popup I am navigated away from my current page and brought the view contact page.  Is there any way to prevent this and remain on the current page?  And, if so, is there a callback so that I know the save happened and I can reload related data on my page?


I wrote a desktop application in WPF with several buttons. It works so far but now I want to link the buttons to keys. I want the program to detect if a buttons is pressed and then perform the Button_click method. I tried to achieve this by adding this method  public void Window1_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)     {         switch (e.Key)         {             case Key.D0:                 Button0_Click(new object(), new RoutedEventArgs());                 break;             case Key.D1:                 Button1_Click(new object(), new RoutedEventArgs());                 break;             case Key.D2:                 Button2_Click(new object(), new RoutedEventArgs());                 break;             case Key.D3:                 Button2_Click(new object(), new RoutedEventArgs());                 break;             case Key.D4:                 Button4_Click(new object(), new RoutedEventArgs());                 break;         }     }   But it didn't work at all. How can I link the defined button methods to keys?


Is it possible? improper integral no answer?

Is it possible to evaluate this improper integral? If not then how should I answer?? $$ \int_{0}^1 \frac1x dx $$


When did it become incorrect to use apostrophes with possessive pronouns?

I'm reading Jane Austen's Sense and Sensibility, and I notice that she invariably uses an apostrophe with possessive pronouns — in a way that would be considered incorrect now. For example: (Elinor is speaking to Colonel Brandon)  My gratitude will be insured immediately by any information tending to that end, and her's must be gained by it in time. Pray, pray let me hear it. (Volume II, Chapter IX, page 153 of the Oxford World's Classics edition, emphases in original)  Assuming that Austen is a reasonably good yardstick for proper style of her time, I'm wondering when this practice came to be considered incorrect. (Note that there are some related questions, especially . But that question's answers don't get into any real detail about the when part of the question.) Edit: @FumbleFingers points out in the comments that my example may be a bad one. In the original, the sentence would have had "HERS" (and no apostrophe). My larger point stands, and here are a few other examples without that problem:  When they stopped at the door, Mrs. Jennings recollected that there was a lady at the other end of the street on whom she ought to call; and as she had no business at Gray's, it was resolved, that while her young friends transacted their's, she should pay her visit and return for them. (Chapter 33) But at last she found herself with some surprise, accosted by Miss Steele, who, though looking rather shy, expressed great satisfaction in meeting them, and on receiving encouragement from the particular kindness of Mrs. Jennings, left her own party for a short time, to join their's. (Chapter 38) That conviction must be every thing to you; and he is undoubtedly supported by the same trust in your's. (Chapter 24)  Those examples are all taken from the . Edit after closing: It's funny that this should be closed so soon after the blog post about . The alleged duplicate does not talk about my question, namely when did good usage shift forms like her's, their's, etc. to hers, theirs, etc. Nor does the only answer to that question address the when question. That other question and its answer are about whether forms like hers came to exist by analogy with the possessive of nouns, such as John's. It's a completely different question. In addition, this question now has a reasonably good answer. There's no reason for this to be closed.


Trying to see the 3D Manipulator Widget on selected objects

How do I get the 3d manipulator widget to appear on a selected object in Blender 2.8. When I select any object in the scene the widget does not appear with it. Is there a menu item that makes it appear?


Get around an app that won't work on rooted device

My bank's app has stopped working after an update. Trying to open the app gets the error "The device is rooted. For security reasons the application cannot be run from a rooted device". Then the app immediately closes.  I'm not really sure how there's security issues from being rooted. Especially compared to accessing the regular website from a desktop computer, which has no such kind of check. However, I don't really care. It's my device. So how can I get around this restriction (without unrooting my phone)?


Grep lines between start & end pattern even end pattern in next file

My data is like:   First_file.txt  Start abcd efgh hijk lmn  Second_File.txt  opq rst uvw xyz END      I want to grep all the line between patterns START & END even END pattern in next file  Output should be like:  abcd efgh hijk lmn opq rst uvw xyz


Wordpress Numeric Pagination with Query String

So I have a dynamic loop which is affected by a query sting in the URL..  For example I have 3 categories and when they click the category it just adds a query to the URL:  Dogs Cats Other   and then my custom loop will pull the query values to show relative posts  $args = array('post_type' => 'animals', 'posts_per_page' => 4, 'category' => $queryString); $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $wp_query = new WP_Query($args);   I then have my pagination code which is working as expected but it doesn't change the posts.. I have a feeling its because of the url structure..   any help from you awesome people!


How to decrypt all my personal files which is encrypted by window after window 10 reset?

All my personal files and excel files are encrypted by window when i reset window 10. Now i am not able to open my excel files. In all my files, the extension .geno is added in all the files (Mouse list.xlxs.geno ) and unreadable text are appear. I got one text file(_readme.txt) in every folder. Inside _readme.txt file **(ATTENTION! Don't worry, you can return all your files! All your files like photos, databases, documents and other important are encrypted with strongest encryption and unique key. The only method of recovering files is to purchase decrypt tool and unique key for you. This software will decrypt all your encrypted files. What guarantees you have? You can send one of your encrypted file from your PC and we decrypt it for free. But we can decrypt only 1 file for free. File must not contain valuable information. You can get and look video overview decrypt tool: https---- Price of private key and decrypt software is $980. Discount 50% available if you contact us first 72 hours, that's price for you is $490. Please note that you'll never restore your data without payment. Check your e-mail "Spam" or "Junk" folder if you don't get answer more than 6 hours. To get this software you need write on our e-mail: mail.ch Reserve e-mail address to contact us: airmail.cc Your personal ID: )** I am using window 10 Home Help me to solve this problem.


Travel to Cuba from LA for non US residents

We are Australians planning a trip to Cuba. We can now fly direct from LA but are worried that we might not be allowed to board, even with a visa. Dies anyone know the current situation?


How to Classify an Image in a Class and a Subclass?

I am a beginner in Machine Learning and I have a situation where an Image needs to be classified into first a super class, then a subclass. For Example, I have a set of images of fruits, containing images of Mangoes, Banana, Peaches, Apples etc. Then each fruit can either be fresh or rotten. I have training set containing images of rotten and fresh fruits for each Fruit type. So for a test image I need to classify which fruit it is (Mango, Banana, etc) and then whether it is fresh or rotten.  I want to know how to approach this kind of problem


Evaluating the integral:$\int_0^\infty x\left(\log\left(\frac1{x^2}\right)\right)^n dx$

$$\int_0^\infty x\left(\log\left(\frac1{x^2}\right)\right)^n dx$$  put $\log\left(\frac1{x^2}\right)=y^{1/n}$  $$I=\frac{\ln10}{2n}\int_{-\infty}^\infty10^{-y^{1/n}}y^{1/n}dy$$  put $10^{-y^{1/n}}=e^{-t}\implies$  $$I=\frac1{(2\ln10)^n}\int_{-\infty}^0e^{-t}t^ndt+\frac1{(2\ln10)}\int_0^\infty e^{-t}t^ndt$$  $$I=\frac1{(2\ln10)^n}\int_{-\infty}^0e^{-t}t^ndt+\frac{\Gamma(n+1)}{(2\ln10)}$$  I want to know how can I evaluate the first integral in the last step of my turn I used some substitutions so i get two integrals one of them converted to the formula of gamma function but the second could not be so because the domain of integration is different ? $n$ is a natural number


Different screen resolutions for each work-space?

I'm using i3-wm on my ubuntu laptop. My screen size is 3200x1800. Which is great for something but horrible for other things. (Netflix vs gvim).  I'd like to change the resolution of one of my work-spaces, or multiple ones. But I have no idea if that is even possible... can I use compton to do this or maybe another program?


I need to set a column as the current date on table creation MariaDB

I am trying to create a table that includes a column that contains just the current date-not timestamp-using the MariaDB base. Which is the command that sets the content of the column as the current date upon table creation?


What happens if a dismissed familiar takes a Bag of Holding with it?

, how would this interact with an magic item that makes an extra-dimensional space?  What happens if you give your familiar a Bag of Holding, Portable Hole, or similar item, and then you dismiss your familiar to its pocket dimension? In particular, such items when put in each other tend to burst and cause problems. Does that happen in this case as well? If not, why not?


There is a little water in the pot. There is some water in the pot.  What is the difference between them? How can I distinguish these sentences? I am a bit confused.


PHP - How to save a file in Windows-1252?

I work on a system that automates signature generation for outlook. The part to generate the .htm files works great. But now I need to also add files in .txt format. If I use the content without any change in the encoding, all my accentuated characters are converted to a different value for example : "é" becomes "Ã©" or "ô" becomes "Ã´".  This issue clearly looked like an encoding conflict of some sort. I tried to correct it by converting the text value input to the "Windows-1252" encoding.  $myText = iconv( mb_detect_encoding( $myText ) , "Windows-1252//TRANSLIT", $myText);   But it didn't change anything. I also tried with :  $myText = mb_convert_encoding($myText, "Windows-1252");   And it didn't work either. For both of these tests, I checked the file type with Atom (my IDE) and it recognise these files as UTF-8. But when I check on terminal with file -I signature.txt it responds with this encoding signature.txt: text/plain; charset=iso-8859-1  Note that if I manually change the encoding to Windows-1252 in Atom, the characters are correct.  Has anyone met the same problem ? Is there another way in php to specify the encoding of the file ?


$$I=\int_0^\infty\frac{1}{1+x^6}dx$$  How do I evaluate this?


I was just curious, why is epic a silver badge if only 73 users have been awarded with it?  For example: Silver Epic - 73  Gold Electorate - 193    Edit: My point was to reduce the level of epic, like "hit the daily reputation cap on 30 days" so it becomes some what at par with other silver badges.


Positive definite symmetric matrix satisfying a certain property concerning a group homomorphism

We have a finite group $G$ and a homomorphism $\rho: G \rightarrow \mathbb{GL}_n(\mathbb{R})$ where $n$ is a positive integer. I need to show that there's an $n\times n$ positive definite symmetric matrix that satisfies $\rho(g)^tA\rho(g)=A$ for all $g \in G$, where $t$ means the transpose.   So far, all I could do was write definitions...not sure where to start. So for all non-zero vectors $v$ with $n$ real entries, $v^tAv>0$, and I know $A=A^t$ Also, I know $A$ is positive-definite if and only if there exists an invertible $n\times n$ matrix $P$ such that $A=P^tP$. But I'm not really sure where to go with that. I was wondering maybe I can start with $\rho(g)^tA\rho(g)=A$ and then show that $A$ is positive-definite, but I don't really see that going anywhere.


How can I show that $n^2<n!$ for all $n\geq 4$ Step 1 For $n=1$, the LHS=$4^2=16$ and RHS=$4!=24$. So LHS$<$ RHS. Step 2 Suppose the result be true for $n=k$  i.e., $k^2<k!$ Step 3 For $n=k+1$ $(k+1)^2=k^2+2k+1$ What will be the next step?


According to the theory of general relativity 'space' can be bend like a fabric. Objects with a lot of mass bend spacetime like a well or a bowling ball on a stretched blanket. It (images) always look like spacetime is being 'pushed' downwards thus objects swirl around the more massive object (if their velocity is fast enough to not getting pulled into the singularity). So I seriously ask myself, is it possible for objects / matter in the universe to push / bend spacetime 'upwards?' Upwards in the sense that the ball in the picture (above) is bending spacetime in the other direction (vertical). Though one problem arrises in my head already, wouldn't objects be invisible to our eyes since ,just like with the bowling ball and the blanket, it would be a layer under the actual play field <-- Instruments should be able to detect their impact right? Info: I'm just a hobby astrophysics learner, not a physicist or a professional student in this field, so anything I've written down could be non-sense / false. Correct me if that's the case.


Is SOQL query with ID condition optimized to work as limit 1?

Is there any performance difference between these two queries?  select name from Account where id = :myId  select name from Account where id = :myId limit 1   Or, I guess more general: does salesforce stop searching after first hit when there's a unique value as a condition?


Is there a way to work backwards using CSS

I want to know if there is a way to work backwards in CSS.  What I mean is say I have a border around a div tag and then inside that div tag is a link that has a hover function.  Is there a way to change the border color on the div tag when that link is hovered or is this only achievable using jquery?


Why are there so many different Visual C++ redistributables?

Every time I install a game, or even OpenOffice, part of the installation routine is installing yet another Visual C++ 2005/2008 redistributable, right next to the 10 others I already have on my system.  Why are so many different versions (of what feels like the same thing) necessary?


I found the following question in a book:-  $Q:$Let $a_1, a_2, ... , a_n$ be a sequence of real numbers with $a_{n+1}=a_n+\sqrt{1+a_n^2}$ and $a_0=0$. Prove that $$\lim_{n \to \infty} \frac {a_n}{2^{n-1}}=\frac 4{\pi}$$ I tried many things none of which seemed fruitful. First thing I did was to define $a_n=2^{n-1}b_n$. Substituting this into the condition, we get $$2^{n}b_n=2^{n-1}b_n+\sqrt{1+2^{2n-2}b_n^2}\implies b_{n+1}=\frac {b_n}2+\sqrt{\frac1{2^{2n}}+\left(\frac {b_n}2\right)^2}$$ Simplifying this gives $$b_{n+1}^2-b_{n+1}b_n=\frac1{2^{2n}}\implies b_{n+1}(b_{n+1}-b_n)=\frac1{2^{2n}}$$ This doesn't lead anywhere. One lead that I got was by substituting $a_n=\tan \theta_n$. This gives $$\begin{align}a_{n+1}&=\tan \theta_n+\sec \theta_n\\&=\frac{\sin\theta_n+1}{\cos\theta_n}\\&=\frac{1+\tan\frac{\theta_n}2}{1-\tan\frac{\theta_n}2}\\&=\tan\left(\frac {\theta_n}2+\frac{\pi}4\right)\end{align}$$ Hence $$\tan\theta_{n+1}=\tan\left(\frac {\theta_n}2+\frac{\pi}4\right)\implies \theta_{n+1}=\frac {\theta_n}2+\frac{\pi}4\implies \theta_n=\frac {\pi}2+c\left(\frac 12\right)^n$$From initial conditions we get $\theta_0=0\implies c=-\frac{\pi}2$. Therefore $$\lim_{n \to \infty} \frac{a_n}{2^{n-1}}=\lim_{n\to\infty}\frac{\tan\left(\frac {\pi}2-\frac{\pi}2 \left( \frac 12 \right)^n\right)}{2^{n-1}}=\lim_{n\to\infty}\frac{2\left(\frac12\right)^n}{\tan\left(\frac {\pi}2\left(\frac12\right)^n\right)}=\lim_{n\to\infty}\frac{2\left(\frac12\right)^n}{\frac{\pi}2\left(\frac12\right)^n}=\frac4{\pi}$$ Is this proof valid and are there any other ways of doing it?


I used an  for, uh, calculating the spoke lengths that I need. The results of the calculator are as follows:  Front  Left - 276.5mm Right - 277.8mm   Rear  Left - 275mm Right - 273.4mm    The rims are WTB KOM Tough i35 27.5" with an ERD of 568mm. The hubs are Shimano XT M8110-B. Thing is, LBSs here only have limited lengths for different tire sizes. For 27.5", they only have 270mm and 275mm. Will the 275mm work for my wheels or should I just go look for the correct lengths online?


I need to parse json from String builder, but I get this error:  Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int org.json.JSONArray.length()' on a null object reference   I don't know why stringBuilder.toString() give me the array with objects!  Here is my code:  try {     // HttpResponse is an interface just like HttpPost.     //Therefore we can't initialize them     HttpResponse httpResponse = httpClient.execute(httpPost);      // According to the JAVA API, InputStream constructor do nothing.     //So we can't initialize InputStream although it is not an interface     InputStream inputStream = httpResponse.getEntity().getContent();      InputStreamReader inputStreamReader = new InputStreamReader(inputStream);      BufferedReader bufferedReader = new BufferedReader(inputStreamReader);      StringBuilder stringBuilder = new StringBuilder();      String bufferedStrChunk = null;      while((bufferedStrChunk = bufferedReader.readLine()) != null){         stringBuilder.append(bufferedStrChunk);     }      // return stringBuilder.toString();     System.out.println("EHEH"+stringBuilder.toString());       JSONArray mainObject = null;     try {         mainObject = new JSONArray(stringBuilder.toString());     } catch (JSONException e) {         e.printStackTrace();     }      for (int i = 0; i < mainObject.length(); i++) {         JSONObject object = null;         try {             object = mainObject.getJSONObject(i);         } catch (JSONException e) {             e.printStackTrace();         }         try {             Video video=new Video();             String url = object.getString("url");              String titolo = object.getString("titolo");             String sottotitolo = object.getString("sottotitolo");             String data = object.getString("date");             //video.setId(idd4);             System.out.println("CAZZO:"+video.getId());             video.setPic(url);             video.setTitolo(titolo);             video.setSottotitolo(sottotitolo);             video.setData(data);              videoList.add(video);         } catch (JSONException e) {             e.printStackTrace();         }     }   Can someone help me?  JSON RESPONSE:


I'd like to import Coordinates from an Excel list, for this reason I saved the excel sheet as an .csv ant tried to import it via "Layer --> Add delimited text Layer". The points are imported, but with the wrong Coordinates. They are very far away from the right location. They should be in Germany, but they are in the Sea near Africa.  In the table of attributes and in the import dialogue the coordinates are displayed correctly.  I tried:   to exchange Longitude and Latitude. Save the csv in utf8 (and choose utf8 in the QGIS dialogue) format the Coordinates in Excel as a Number   Does anybody know what can be wrong?  (in the other question it is only asked how it works not, how to solve my problem)


How does one fetch the arguments of \title and \author?

When using the simple \maketitle command, one can use \title, \author, \date etc to define the corresponding contents. Now if one desires to for example make a custom title page, how can this information then be retrieved?  MWE:  \documentclass{report} \title{My report} \author{Me \and Myself} \date{\today} \begin{document} \begin{titlepage} %\thetitle? %\theauthor? %\thedate? \end{titlepage} Hello world! \end{document}


The concept of God in different religions as well as deism seems to be inconsistent. So what is the best way of defining God?


Find $\lim _{x\rightarrow \infty }\left[ \sqrt [6] {x^{6}+x^{5}}-\sqrt [6] {x^{6}-x^{5}}\right] $

How to find      $$\lim _{x\rightarrow \infty }\left[ \sqrt [6] {x^{6}+x^{5}}-\sqrt [6] {x^{6}-x^{5}}\right]\;?$$


How are *Wingardium Leviosa* and *Levicorpus* different?

Lets take the semi-literal-translations  Wingardium Leviosa Wing + Levitate --> not really sure but whatever Levicorpus Levitate + body --> body fly  So presumably Levicorpus can be used on bodies only. But then why does Levicorpus exist? Draco, in the Cursed child, uses Wingardium Leviosa on a body, so why would Levicorpus exist?


Strange errors when using ffmpeg in a loop

I have a bash script looping through the results of a find and performing an ffmpeg encoding of some FLV files. Whilst the script is running the ffmpeg output seems to be interupted and is outputting some strange looking errors like the one below. I've no idea what is going on here. Can anyone point me in the right direction?  It's as though the loop is still running when it shouldn't be and interupting the ffmpeg process.  The specific error is:  frame=   68 fps= 67 q=28.0 00000000000000000000000000001000size=      22kB time=00:00:00.50 bitrate= 363.2kbits/s dup=1 drop=0     Enter command: <target> <time> <command>[ <argument>] Parse error, at least 3 arguments were expected, only 1 given in string 'om/pt_br/nx/R3T4N2_HD3D_demoCheckedOut.flv'   Some more details from the ffmpeg output:  [buffer @ 0xa30e1e0] w:800 h:600 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:flags=2 [libx264 @ 0xa333240] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64 [libx264 @ 0xa333240] profile High, level 3.1 [libx264 @ 0xa333240] 264 - core 122 r2184 5c85e0a - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=5 deblock=1:0:0 analyse=0x3:0x113 me=umh subme=8 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=50 rc=cbr mbtree=1 bitrate=500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=500 vbv_bufsize=1000 nal_hrd=none ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to './mp4s/pt_br/teamcenter/tc8_interactive/videos/8_SRM_EN.mp4':   Metadata:     audiodelay      : 0     canSeekToEnd    : true     encoder         : Lavf54.3.100     Stream #0:0: Video: h264 (![0][0][0] / 0x0021), yuv420p, 800x600, q=-1--1, 500 kb/s, 30k tbn, 29.97 tbc     Stream #0:1: Audio: aac (@[0][0][0] / 0x0040), 44100 Hz, mono, s16, 128 kb/s Stream mapping:   Stream #0:1 -> #0:0 (vp6f -> libx264)   Stream #0:0 -> #0:1 (mp3 -> libfaac) Press [q] to stop, [?] for help error parsing debug value0 00000000000000000000000000000000size=      13kB time=00:00:00.-3 bitrate=-3165.5kbits/s dup=1 drop=0     debug=0 frame=   68 fps= 67 q=28.0 00000000000000000000000000001000size=      22kB time=00:00:00.50 bitrate= 363.2kbits/s dup=1 drop=0     Enter command: <target> <time> <command>[ <argument>] Parse error, at least 3 arguments were expected, only 1 given in string 'om/pt_br/nx/R3T4N2_HD3D_demoCheckedOut.flv'   The script is as follows  #!/bin/bash LOGFILE=encodemp4ize.log echo '' > $LOGFILE STARTTIME=date echo "Started at `$STARTTIME`" >> $LOGFILE rsync -avz flvs/ mp4s/ --exclude '*.flv' #find flvs/ -name "*.flv" > flv-files # The loop find flvs/ -name "*.flv" | while read f do FILENAME=`echo $f | sed 's#flvs/##'` MP4FILENAME=`echo $FILENAME | sed 's#.flv#.mp4#'` ffmpeg -i "$f" -vcodec libx264 -vprofile high -preset slow -b:v 500k -maxrate 500k -bufsize 1000k -threads 0 -acodec libfaac -ab 128k "./mp4s/$MP4FILENAME" echo "$f MP4 done" >> $LOGFILE done


This question is sort of general and long-winded, but please bear with me.  In my application, I have many datasets, each consisting of ~20,000 datapoints with ~50 features and a single dependent binary variable. I am attempting to model the datasets using regularized logistic regression (R package )  As part of my analysis, I've created residual plots as follows. For each feature, I sort the datapoints according to the value of that feature, divide the datapoints into 100 buckets, and then compute the average output value and the average prediction value within each bucket. I plot these differences.   Here is an example residual plot:    In the above plot, the feature has a range of [0,1] (with a heavy concentration at 1). As you can see, when the feature value is low, the model appears to be biased towards overestimating the likelihood of a 1-output. For example, in the leftmost bucket, the model overestimates the probability by about 9%.  Armed with this information, I'd like to alter the feature definition in a straightforward manner to roughly correct for this bias. Alterations like replacing  $x \rightarrow \sqrt{x}$  or  $x \rightarrow f_a(x) = \cases{a & if $x<a$ \cr x & else}$  How can I do this? I'm looking for a general methodology so that a human could quickly scroll through all ~50 plots and make alterations, and do this for all datasets and repeat often to keep models up-to-date as the data evolves over time.  As a general question, is this even the right approach? Google searches for "logistic regression residual analysis" don't return many results with good practical advice. They seem to be fixated on answering the question, "Is this model a good fit?" and offer various tests like Hosmer-Lemeshow to answer. But I don't care about whether my model is good, I want to know how to make it better!


Is there an simple way to grant specific players permissions by right clicking a item?

I'm working on a server where instead of buying ranks to get access to certain features such as nicknaming and and other donater features commonly found on most Minecraft servers, I'm hoping to add a system where you find one-use items that give you permissions like the ones you find on other servers.  So for example, lets say you are given an item that when right clicked, dissapears from your inventory, and gives you a permission that allows you to change your nickname with a command.  Are there any Plugins or other methods to doing this?


FFmpeg -ss -t (seeking) output is not accurate, any workarounds?

My mission is to make small video segments from a larger one, then join them together into one file. After a lot of search and reading I decided to use the next command  ffmpeg -y -ss 03:00 -i myvideo.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts -t 00:05 segment01.ts   My problems; hoping that you have any workarounds to solve them:  1- As you can see the wanted output's duration is 5 seconds which I didn't get at all. I got different duration for different segments; 4, 6, 8 ,9 seconds.  **After searching I found out that happening due to keyframes issues.  But I don't get at all what that has to do with the segment's duration.  I am totally understand that the seeking position could differ due to keyframes, but why the duration?  2-After more reading, I decided to use -fs command to limit the segment's size. It worked somehow except one thing.  The segments have like a little hang (drop frames! I have no idea) at the end, making the final result when joining together is terrible. What can I do to get rid off this "hang"  Any Ideas?  **Note: I have tried both of (input/output) seeking but nothing changed.


Chemmacros reactions environment compile error

The package chemmacros will throw the following error when I try to use the reaction or reactions environments. It does not happen when I use the starred variants. I am using MacTeX-2017 and am (fairly) confident everything is up to date.  ./main.tex:11: Undefined   control sequence. <argument> \l__chemmacros_hyperref_bool   l.11     \end              {reaction} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined.   MWE. I compile with latexmk on Atom but the same error occurs in TeXShop and using pdfLatex.  \documentclass{article}  \usepackage[compatibility = 5.8a]{chemmacros} \chemsetup{     modules=reactions, }  \begin{document} Before     \begin{reaction}         H2O -> CO2     \end{reaction} Afterwards \end{document}   I also noticed that a pdf file is made, and everything seems to be in there. However, there is a Greek letter after the equation number that the chemmacros package does not indicate should be there (p43).


How the mobile phones sending and receiving signals from the satellites? who is providing these services at free of cost?


Why does my custom launcher open under a separate icon?

I've created a custom launcher file: [Desktop Entry] Type=Application Name=P4V Comment=Perforce Visual Client Icon=/usr/lib/p4v/P4VResources/icons/P4-V_128x128.png Exec=/usr/bin/p4v Terminal=false Categories=Development;  And dragged this file to my launcher. However, when I click the icon, it opens the application under a 2nd, different icon (I click the top one, it opens the application under the bottom one):  The bottom icon isn't present until after I launch the application using the top P4v icon that I manually added.


In special relativity it is said that " Time and space cannot be defined separately from one another. Rather space and time are interwoven into a single continuum known as spacetime. " What is the exact meaning of this statement ? In SR, even though time is relative too but still in classical physics, we still needed time to define an event and what is the meaning of the term continuum ?


Rails form validation conditional bypass

I have a rails model that validates uniqueness of 2 form values.  If these 2 values aren't unique the validation errors are shows and the "submit" button is changed to "resubmit".  I want to allow a user to  click the "resubmit" button and bypass the model validation.  I want to do something like this from the rails validation documentation:     validates_uniqueness_of :value, :unless => Proc.new { |user| user.signup_step <= 2 }   but I don't have a a value in my model that I can check for...just the params that have the "Resubmit" value.  Any ideas on how to do this?


Transfer Whatsapp chat history to new device

I've got a new phone (Samsung) and want to transfer my Whatsapp chat history from my old device to it. Is this possible, and how to do it? I have a Whatsapp backup file for that date.


How can I find tv shows/films similar to one I like?

As a general case, how can I find movies or TV shows similar to an existing movie or TV show that I like?


Obviously I know about pwd and readlink, but is there a command to find out the real absolute path to the current directory (ie, resolving links and dots)?


SQL: How to insert the result of a stored procedure to a temp table

I'm using SQL Server 2012. I have a stored procedure that outputs 2 tables. I need to insert those 2 result set in two separate temp tables. I am using   INSERT INTO #TempTable EXEC [dbo].[SomeSP]   but it only catch the first table.  Is there anyone knows how to do it? Thanks in advance.


The question is basic, How to get output of ps with headers in Linux.   Linux details:  PRETTY_NAME="Debian GNU/Linux 7 (wheezy)" NAME="Debian GNU/Linux" VERSION_ID="7" VERSION="7 (wheezy)"   I can get it with ps -ef | { head -1; grep query; }, but that is lot of text. When looking at docs of ps using man ps, I can see there is one option --headers, but using that also does not give headers:  >~$ ps aux --headers | grep grep user  24082  0.0  0.0   6656   628 pts/0    S+   12:59   0:00 grep grep   Also tried option h with the command:  ~$ ps auxh  | grep grep user  25982  0.0  0.0   6656   624 pts/0    S+   13:14   0:00 grep grep


glob() - sort array of files by last modified datetime stamp

I'm trying to display an array of files in order of date (last modified).  I have done this buy looping through the array and sorting it into another array, but is there an easier (more efficient) way to do this?


What is the real meaning of the determinant of a matrix?

I understand how it is calculated, but what does the determinant of a matrix mean and what is it used for? If you could explain it to me in simple words, thank you.


Are tidal power plants slowing down Earth's rotation?

Are tidal power plants slowing down Earth's rotation to the speed of the orbiting moon? (1 rotation per 28 cca days)   Are they vice versa increasing the speed of moon orbiting by generating some waves in gravitation field?  If yes, can you calculate how much energy must be produced by how many tidal power plants (compare it to average nuclear plant please) to slow down the Earth's rotation to 25 hours / day?


How can I rate or tag files that aren't images in Windows 7?

In Windows 7 it is possible to rate images or tag Word-files. Since I'm reading a lot on my computer, I would like to mark PDF-files I've already read. The image-rating-option would be great and so would be the tag option, but other solutions are also very welcome (even adding a small x or so to the details window in the properties). It only needs to be shown in Windows Explorer somehow. I know that it is possible using shells. Unfortunately I'm not a programmer and sure, that I'm not the first one with that 'problem'. Any idea or suggestion anyone?


ADB pull error: remote object '/dev/block/mmcblk0p24' not a file or directory

I'm trying to pull the partition /dev/block/mmcblk0 directly to my Windows PC, following the instructions from:  while the phone is in TWRP, using the command:  adb pull /dev/block/mmcblk0 mmcblk0.img   But it keeps returning the error:  remote object '/dev/block/mmcblk0' not a file or directory   What am I doing wrong?  Thanks in advance.  Additional information: The reason that I want to do this is because I want to restore deleted files from a Samsung Galaxy S4 Mini (GT-I9195), so I need the entire partition.


Can avocado substitute the 'fat' in cake baking?

Can avocado substitute the usual fat in cake baking? If so, what's the ratio to other ingredients?


How can I improve Light Armor as an Archer?

I play as an archer, which means sneaking and killing foes off at long range. Problem is, once a creature gets too close to me, I am in a world of troubles. (A random dragon encounter is fair game if I can snipe it off, but a random bear encounter is the thing I fear mostly. Three strikes of such a vicious beast and I drop dead.)  At short range, I use a one-hand sword with shield, but I do not want to put much perks into those skills, as I want to be a sneaky archer first.  Which leaves Light Armor. But to get certain perks I need some skill points, e.g., 30 points are required for the "Custom Fit"- and 40 for "Agile Defender 2/5"-perk. Yet I have no clue how to accumulate those points.  Many enemies won't even see me, so I seldom will be hit. Getting hits means getting skills point. Letting some enemies come close to me and let me hit me on purpose sometimes helps, but since I cannot stand much damage I mostly die erasing any hard earned process.  So is there a teacher for Light Armor like there is for other skills? And if not, how should I go on to improve the Light Armor skill?


How to identify items without getting killed

In NetHack/Roguelikes you run across wands/rings/potions/etc. that you need to identify before you can know what they do.    Is there a safe or recommended way of handling these items without turning myself into a puddle of goo?


I have a Mid 2012 Model Macbook Pro, nearly 3 years old, and my computer has recently become extremely, stupidly slow. It's becoming hard to perform simple tasks on the computer, like opening a Google Chrome Page, opening any app on my computer or even switching to a different application via the dock. I use this computer for school, however much of my classmates (who have the same model computer) aren't having the same problem as I am.  Usually, it takes about half an hour for my computer to start up and log in, and another half an hour to get everything set up on my desktop (as in loading up desktop, dock, menu bar and letting the computer speed up and stabilise). Below is an image of my Activity Monitor:    I have nothing on my desktop as of now. My Downloads folder is rather full, and I still have 200 GB of storage out of my 500GB remaining. I can't figure as to why it is this slow, and I know it's not because of my internet connection because I have a second Macbook Air laptop (relatively new) that runs at beautiful speeds.  What should I do about this?  Specifications: Macbook Pro (13 Inch, Mid 2012) Processor: 2.5 GHz Intel Core i5 Memory: 4 GB 1600 MHz DDR3 Graphics: Intel HD Graphics 4000 1536 MB Storage: 500GB total, 200GB remaining


In my code, I'm using a lot of expressions like:  #if DEBUG     printf("Some text = %d", param); #endif   I was wondering if it is possible to change it to macro like:   DEBUG("Some text = %d", param);    or at least to:  DEBUG("Some text =", param);   ?


I just need a simple explanation of what exactly ridge regression is so I can have a decent intuitive understanding of it. I understand it's about applying some sort of penalty to the regression coefficients... but beyond that I'm a little confused about how it is different from other kinds of regression which implement penalties. In what case should you use ridge regression as opposed to some other kind of regression?


Is overstaying 90 day limit in USA by one day a problem?

My daughter has bought a return ticket to Hawaii which exceeds the 90 day limit by one day.  She intends to travel for the first month and do voluntary work on an organic farm for two months before she flies home.  Is outstaying the 90 day limit by one day going to be a problem?


'' ("the cache has no package named 'wine-staging-I386'")

I'm getting the following error:    $ sudo apt-get update  # partial output Reading package lists... Done  W: GPG error: https://download.01.org trusty Release: The following signatures couldn't be verified because the public key is not available:  NO_PUBKEY A902DDA375E52366 W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty/InRelease  W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease  W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-backports/InRelease  W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/trusty/InRelease W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/InRelease  W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg Could not resolve 'us.archive.ubuntu.com'  W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg Could not resolve 'us.archive.ubuntu.com'  W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg Could not resolve 'us.archive.ubuntu.com'  W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg Could not resolve 'dl.google.com'  W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/trusty/Release.gpg Could not resolve 'extras.ubuntu.com'  W: Some index files failed to download. They have been ignored, or old ones used instead.


Let $f$ be a function defined $[0,1]$ with the following property: For every real number $y$, either there is no $x$ in $[0,1]$ for which $f(x)=y$ or there are exactly two values of $x$ in $[0,1]$ for which $f(x)=y$ .  EDIT:  Prove that there are infinite discontinuities in this interval  I found a possible solution  but I am not able to comprehend the answer on the page as probably it uses high concepts of graph theory.   Could anybody please give a simpler solution?  Thank you for your help.


Glossy materials not rendering correctly

I'm new to blender (and 3D modelling) so please use dummy terms if you answer!  I have applied 3 materials one each to 3 different objects and only 1 renders the same as the material preview. I've attached a screenshot to show you what I mean. The silver material should be on the top ball and the brass material should be on the cylinder holding the ball up. I've no idea why it's not working when the copper material on the spiral wire worked. I'm using cycles render if that helps?


CPU temperature indicator alternative to jupiter

I was happily using jupiter and now it is not supported anymore. I am on 64bit ubuntu 12.04 using gnome-panel. I am just looking for an applet that will give my my cpu temperature.


Is there a map of Middle Earth during the second age?

Where can I find a map of Middle Earth during the Second Age circa SA 1600 (before the war of the Elves and Sauron)?  The following site () says:     The Second Age geography of Middle-earth prior to the Downfall of Numenor was different from the geography depicted by the Third Age map you see published in The Lord of the Rings. So far as I know, Tolkien never made an intermediate map, so we have no idea of what changes rendered by the War of Wrath were modified or wiped out by the Downfall of Numenor.


I am trying to prevent a table from showing up in the list of tables. I used long table to create the table. This is the first table in my document. I know the \caption*{} command should do the trick but something weird is happening. Although the table doesn't show up in the list of tables but when I insert the next table it has a caption of "Table 2: ****". I want the numbering to start with 1 rather than 2. Can someone help?      \documentclass[12 pt]{article}     \usepackage{fullpage}     \usepackage{amsmath}     \usepackage{float}     \usepackage{longtable}     \usepackage{caption}      \begin{document}      First table is inserted here (longtable).     \begin{longtable}{l l}     \hline         A & A1 \\         B & B1 \\        \hline     \caption*{}\label{TableNomen}     \end{longtable}      \newpage     Second table inserted here.     \begin{table}      \centering     \caption{Influence of X}\label{TableC}     \begin{tabular}{c c c c} \hline      $10^{-5}$ & $80\times40$ & 16 & 10 \\     $10^{-4}$ & $80\times40$ & 21 & 11 \\        \hline     \end{tabular}     \end{table}     \newpage     \listoftables      \end{document}   Page 1    Page 2    List of tables


Does the quality of a UV filter make a difference when used with a cheap lens?

I like to use UV filters to protect the front side of my lenses. I have always used the cheap Tiffen filters, around US$5.00 each, depending on the diameter.  My question is, should I spend some more money on my UV filters? Like a , (or other equivalents from B+W, Hoya, etc) for around US$20.00-US$30.00)  My lenses are:   Nikon 50mm f/1.8D Nikon 35mm f/1.8G  Nikon 18-200mm f/3.5-5.6G


Show that $\sum^\infty_{n=m}\frac{1}{n^2} = O(\frac{1}{m})$

I have been told it is very simple, but I cannot work it out. I was thinking I use that I know the left hand side converges?


How to continue numbering within the Appendix equation?

I would like to continue the numbering of equations that I have in my paper in the Appendix section. Right now, the equations are numbered (A.1), (A.2), .... I would like them to appear as a continuation of the equation numbered in my previous sections in the paper. \appendix\newpage\markboth{Appendix}{Appendix} \renewcommand{\thesection}{\Alph{section}} \numberwithin{equation}{section} \section{Appendix} \label{Appendix}      \subsection{Proofs}     \label{proofs}     \noindent {\it Proof of Lemma 1}. Consider Case 1      \begin{align}         x = 1 + y,\label{eqn:40}     \end{align}\\     and      \begin{align}         m = bx -c.\label{eqn:41}     \end{align}\\ $\blacksquare$\\  Instead of being labeled (40) and (41) the equations appear as (A.1) and (A.2) How do I change that?


a and c keys not working on macbook, even on an external keyboard

It's a 2011 MacBook pro and the a and c keys are not working on both the built-in keyboard and the usb keyboard.   Because of this i can't bypass the firmware login screen.  Now the weird thing is that that cmd + a works (select all) so the key is being recognized, but a by itself doesn't.   Any ideas?


I am wondering if there is a way to use the APS reference style in a latex article that does not use the revtex article class? Here is a compilable example: \documentclass[a4paper,11pt]{article}  %bibliography \usepackage[square,numbers]{natbib}  \begin{document}     Hello \cite{example}. Hello again \cite{example2}.      %\bibliographystyle{unsrt}     \bibliographystyle{apsrmp4-1}     \bibliography{mybib}      \end{document}  with the bibliography mybib.bib @article{example,    author = {Keinstein, A.},    title  = {Not very general theory of relativity},    journal= {Astrostuff},    year   = {1000},    volume = {1},    number = {2},    pages  = {3-4},   }   @article{example2,     title = {Cool paper},     author = {X, XX and Y, YY},     journal = {Phys. Rev. A},     volume = {1},     issue = {1},     pages = {000000},     numpages = {1},     year = {2000},     month = {Jan},     publisher = {American Physical Society},     doi = {00.0000/PhysRevA.00.000000}, }  compiles to  Interestingly only one of the papers is not printed correctly. With the unsrt style, on the other hand, this gives a correct output for both papers. Is there a way for natbib or bibtex to interpret the style file as revtex would? I use the same bibfile as I use in my revtex articles and there I have no problems.


The investigation uncovered that he had taken bribes when he was/had been governor of Maryland.  So the question is: is it when he was or when he had been? I want to say "when he was" because it seems that we always use Past Simple with such phrases, but isn't this about the time before the investigation uncovered something??


Android: huge thumbdata4 file in DCIM folder

I have recently noticed a huge (>3.5GB) file in the DCIM/.thumbnails folder. I have tried deleting it, but the next time I open the Camera app it rebuilds the file (and locks up the phone, sometimes displaying a "media scanning in progress" message, in the process.)  The total file size of all the (approximately 2,000) photos displayed in the Gallery is around 500MB. There are in addition around 35,000 images in folders which contain .nomedia files to instruct Android to ignore the media therein. The total file size of these is around 1.5GB. The Gallery app is correctly ignoring these images, but I wonder whether the Camera app is misbehaving and actually processing them.  I think this problem has emerged since the ICS upgrade ... either when the phone (Samsung Galaxy Note) was first updated from Gingerbread or at some later date.  Any ideas, please?


I'm trying to learn about the logicist programme by myself so I was wondering, what are some good book/papers/articles on logicism? I'm looking for introductory to medium level texts, nothing very deep.


How do I make windows save their position on screen after re-attaching a display?

When I attach a second monitor to my MacBook, I drag many windows onto it.  When I detach the monitor, all the windows move back onto my MacBook's display.  How can I make it so that when I re-attach the monitor, all the windows automatically move back to their position on the second monitor again?  I use my personal MacBook at work where I have the extra monitor.  But this means I need to detach and re-attach the monitor every day.  I have many windows I leave open from the previous day's work, so this is a real pain.  I know about an app called , which is almost exactly what I want.  But I need something that works on OS X 10.5.


How to explain the formula for the sum of a geometric series without calculus?

How to explain to a middle-school student  the notion of a geometric series without any calculus (i.e. limits)? For example I want to convince my student that $$1 + \frac{1}{4} + \frac{1}{4^2} + \ldots + \frac{1}{4^n} = \frac{1 - (\frac{1}{4})^{n+1} }{ 1 - \frac{1}{4}}$$ at $n \to \infty$ gives 4/3?


"It really doesn't matter" v "It doesn't really matter"

I can't distinguish the difference in meaning between these  two sentences.   It really doesn't matter.  It doesn't  really matter.    It seems that there is a nuanced difference, but I cannot see what this is.


What's the need to find derivative of a polynomial?

I was learning differential calculus when I came with a doubt that why do we need to find derivative of polynomial. How is it useful?


Gamma distribution as a member of exponential family

In my lecture notes I have that the distribution of a random variable $Y$ is said to be in the exponential family if it can be written as $f(y;\theta)=exp(a(y)b(\theta)+c(\theta)+d(y))$, where $a,b,c$ and $d$ are fixed functions. If we have (in the exponential family form) that $a(y)=y$, then the distribution is said to be in canonical form and then $b(\theta)$ is the called the natural parameter and $b$ is called the natural link function. Then we have shown that for a random variable $Y$ in exponential family form we have $\mathbb{E}(a(Y))=\frac{-c'(\theta)}{b'(\theta)}$ and $var(a(Y))=\frac{b''(\theta)c'(\theta)-c''(\theta)b'(\theta)}{[b'(\theta)]^{3}}$.  I am now working on the following problem: the gamma pdf of r.v. $Y$ is given by   $\begin{equation} f(y) = (s^{a}\Gamma (a))^{-1}y^{a-1}e^{y/s} \end{equation}$,               where $y \geq 0$, $s$ is the scale parameter, $a$ the shape parameter. The first question asks me to reparameterise this pdf by setting $a=1/\phi$ and $s=\mu\phi$, and hence show that it is a member of the exponential family. So after introducing $a=1/\phi$ and $s=\mu\phi$ into the pdf and rearranging I get   $ f(y) = exp((\frac{1}{\phi}-1)log(y)-\frac{y}{\mu\phi}-\frac{1}{\phi}log(\mu\phi)-log(\Gamma(1/\phi))=exp(a(y)b(\theta)+c(\theta)+d(y))$,   where $a(y)=y$,$b(\mu)=-\frac{1}{\mu\phi}$,$c(\mu)=-\frac{1}{\phi}log(\mu\phi)$ and $d(y)=(\frac{1}{\phi}-1)log(y) - log(\Gamma(\frac{1}{\phi}))$, where we treat the (dispersion) parameter $\phi$ as a nuisance parameter. Is that correct?   The next question says: deduce that the canonical link for the gamma is $\theta=\frac{1}{\mu}=\eta=\textbf{X}\beta$. So I'm thinking since $f$ is in a canonical form, the canonical parameter is $b(\mu)=-\frac{1}{\mu\phi}$ and so ignoring all the constants of proportionality we have that the canonical link, in its simplest form, is $\frac{1}{\mu}$, as required. Does that make sense? I still don't have a good enough understanding of link/canonical link functions, I'm afraid.  Then the next question asks me to deduce further that the variance function is $b''(\theta)=-1/\theta^{2}=-\mu^{2}$. I don't really know how to do this. Why is this the variance function? What is $\theta$ here? A canonical link? That clearly doesn't make sense. Or is just the dummy variable for our parameter of interest ( $\mu$ in our case )? I've tried to differentiate $b(\mu)$ w.r.t. to $\mu$ but it doesn't work. I'd really appreciate some help.


I'm trying to activate a specific tab in the tool shelf from a script.  The idea being that my add-on would setup an "enhanced/tailored" environment for the user when certain button is clicked.  Is that possible?  Also, following this idea, in the "Tools" tab of the tool shelf, there are many sections (i.e. Transform, Mesh Tools, Weight Tools...). Is is possible to collapse/expand those sections from a script?


I am using Codeigniter: simple mail() function in cron job, but in mail its showing via crystal url name server in from section?

Code-igniter: I am using simple mail() function in cron job, but in mail its showing via crystal url name server in from section??  In mail its showing like:     from:   Domain Name <noreply@domainname.com> via crystal.urlnameserver.com   My code snippet:  $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; $headers .= 'From: Domain Name <noreply@domainname.com>' . "\r\n"; .... mail($mailId, $subject, $mentor_message, $headers);   Why its showing "via....." text?? please suggest me the changes??  I didn't mention it anywhere, then why its coming like that?  My cron job is in pure core-php.


Non-vanishing of Dirichlet $L$-function $L(s,\chi)$ for $\Re(s)=1$

I know that if $\chi$ is a non-principal Dirichlet character then the $L$-function $L(s,\chi)$ doesn't vanish for $s=1$. But, how about $s=1+it$ with $t\neq 0$? I found in this post:  that indeed, $L$-functions never vanish. Where can I find a proof of it? I've looked in some books and googled it, but couldn't find anything. Can sombody provide a reference? Thank you very much!


There is an "Informed" badge for reading the meta about page but it was awarded zero times and to make sure I tried reading the about page but did not receive it. If the badge is to be awarded here, then this should be 'fixed'. If not, it should be removed from the list of badges.


Can I get the "Diamonds to you!" achievement in singleplayer?

How can one get the "Diamonds to you!" achievement in singleplayer? The achievement list cannot be completed without it. Perhaps it can be possible by passing a diamond to a zombie?


Show that only finitely many positive integers $n$ have the property that for all $m$ for which $1<m<n$ and $\text{gcd}(m,n) = 1$, $m$ is prime.    I am able to show that a positive integer with the specified property is prime, but I do not know how to prove that there are "finitely many" of them.  EDIT: Adding a proof of the mentioned claim that "a positive integer with the specified property is prime."  If $m$ is prime $m$ has no factors but $1$ and $m$. So gcd$(m,n)$ can only equal 1 or $m$.  If gcd$(m,n) = m$ then $m|n$.  So $n \ge m$. If $n < m$ then gcd$(m,n)=1$. Conversely, if gcd$(m,n)=1$ for all $n < m$, then no number less than $m$ divides $m$ (other than $1$).  Since no number larger than $m$ divides $m$, $m$ has no divisors except itself and $1$. So $m$ is prime.


Can I run a ground wire along the outside of conduit?

I have a sub panel on back of house. From main in garage is three wire.  2 hot one neutral.  NO GROUND WIRE.  Sub has a single bar used as neutral and grounds.  Its bonded to case (Screw in).  I will add a ground only bar, a ground to earth rod and wire them together.  I cannot get the snake all the way through the conduit to pull a ground wire.    Can I run a separate ground wire alongside the conduit to the sub?  ===========================================================================  Update/clarifications:  Thank you Speters.  ArchonOSX, I understand there should be a common ground back to the main, I do not have that. Currently (pre-existing),  I have a 3wire 50 amp gfci breaker for a spa in this SUB.   Its the only circuit. I was advised to Isolate the neutral bar and add a ground bar, bonding it to earth;  Where new circuits utilize the ground bar. In this config would I be protected and no SUB/main panel metal become  energized if a short occurred?


I assume that my case is weird but I've the following information:   IV: 0x263e or 0x3e26 Auth tag: 0x25 AES256-GCM encrypted payload: 0x4eec96df534ade4c013a AES256-GCM decrypted payload: 0x0041e36baf2648090174   Regarding the length of the IV and Auth tag, I'm wondering if it is possible to guess the key used to encrypt the payload ?


Procedure to Upgrade SSD without borking-up MS-Office License

I have upgraded a Macbook 500GB to a 128GB SSD.  MS-Office 2011 detected the change and the licensing failed.  I would like to avoid this problem in the future if at all possible.  I would like to upgrade a 128GB Macbook air to 1TB: is it possible to create a 128GB partition to let Office think that it is on a 128GB drive and not bork-up the license?  If yes, how is it this done?  I am seeking to avoid dealing with licensing keys if at all possible and simply upgrade the SSD


Use remote computer without disturbing local user

I have a Windows 7 computer that is acting as a Media Center so it is always on but not always in use.  I would like to be able to log in to this machine remotely and launch some scripts that take time to compute. If I use Remote Desktop I can get a view of the desktop and use it but the media center view gets blocked (I get the log in screen). If I use LogMeIn, the media center application closes (not compatible with remote use) and the both the remote and media center views are the same.  Is there a way to access the computer remotely to launch and monitor these scripts while not disturbing the media center users?


This question is simple: Was sir Cadogan a wizard or a muggle? If he was a wizard: Why is he wearing armor and riding a horse? he can use protective charms and ride a broomstick.  A moment later, a short, squat knight in a suit of armour had clanked into the picture after his pony.  If he was a muggle: What is he doing in a Hogwarts portrait? Also: does this mean that muggles can move in wizard portraits?


Can USB 2.0 power a USB 3.0 external HDD?

I'm on the verge of buying myself a new bus-powered USB 3.0 2.5-inch external hard drive. However, my computer only has USB 2.0 ports on it. I understand that the USB 3.0 HDD will simply run slower on USB 2.0 until I upgrade my machine, but my question is this:  Can I be sure that my USB 2.0 port can provide enough power for this bus-powered USB 3.0 device?  I read that the maximum power provided by USB 3.0 is 900 mA, which is almost twice the maximum power provided by USB 2.0: 500 mA. This made me think that even though USB 3.0 is backward compatible with USB 2.0, a USB 3.0 powered device may not work on a USB 2.0 port. If it depends on the device, what would indicate USB 2.0 power compatibility when choosing which external hard drive to buy?


How to free up space and see remaining storage?

Firstly, I seemed to have messed something up in the About This Mac storage tab as I can't see the remaining storage.as seen in this picture.  And while I'm at it, what is the best way to free up storage?


TexStudio: Enable spellchecking in user-defined commands

I am trying to find a way to enable spell-check in cases such as:   \remark[I don't understend this]{$2+5=7$}   I found something that might look as an answer but it sadly does not work ... In 'configure TexStudio' -> 'editor' I unchecked both 'hide spelling errors in non-text ..' and 'hide grammar in ...'.


I have question about using this phrase.  For example. If I was cooking lunch everyday meaning Saturday, Sunday and today is Monday lunch time and I cooked lunch again but my family does not like it.  They would say:      This has been your worst lunch in the last two or three days?   Or another example:  If I am working today 3rd day in the job and my boss gives me the most work today should I tell my friend that:      This has been the most work I have been given in the last 2 or 3 days?   Thank you for explaining and sorry for asking these maybe stupid questions but I have OCD and cant help myself, I need reassurance.


Generate external images for all equations in a document

I have to convert a LaTeX document to a Microsoft Word template due to circumstances I cannot alter (intergovernmental organisation).  With \tikzexternalize, I can easily generate images for all my graphics, that I can then include in the Word document.  Is there a similar way to convert all equations into external images?  I find that would be an easier (and prettier) way to go, than to convert LaTeX-equations to Microsoft Office equations.  I know there are other ways to convert equations, such as the ones listed at , but I wonder if the path I'm thinking of is possible.  Moreover, wanting images may have other applications, such as inclusion on websites (when no MathML is available) or so.  I have ten equations in total, so a solution adding code to the LaTeX source is acceptable.


sed couldn't flush stdout no space left on device?

What could be the reason for this error :  sed couldn't flush stdout no space left on device   This is come of the stuff that i am doing at last in my code  sed -n '/.*needs to be executed manually.*/{n;p}' "$ERR_LOG"*  sed -n '/.*have.*latest.*/{n;p}' "$ERR_LOG"* >> "$ERR_LOG"final.log   sed -n '/.*Phone type not recognised.*/p' "$ERR_LOG"* >> "$ERR_LOG"final.log   sed '/.*#/!{H;d;} x;/\n.*Error/!d' "$ERR_LOG"* >> "$ERR_LOG"final.log   sed '/.*#/!{H;d;} x;/\n%/!d' "$ERR_LOG"* >> "$ERR_LOG"final.log   sed is seraching through around 10 - 15 files of size=50-69 kb (approx)  EDIT 1 : This is the exact error :  sed: couldn't write 166 items to stdout: No space left on device sed: couldn't write 201 items to stdout: No space left on device All the hostnames processed sed: couldn't flush /home/gocs1/LOG//sed6hkHBu: No space left on device sed: couldn't flush /home/gocs1/LOG//sedM2dr4u: No space left on device sed: couldn't flush /home/gocs1/LOG//sed6A8NWu: No space left on device sed: couldn't flush /home/gocs1/LOG//sedbmkv3x: No space left on device sed: couldn't flush /home/gocs1/LOG//sed42pjSx: No space left on device sed: couldn't flush /home/gocs1/LOG//sedMKxrHy: No space left on device Time Taken : 0 hour(s) 58 minute(s) 33 second(s)   what does this mean.    /home/gocs1/LOG//sed6hkHBu   i have created the directory upto /home/gocs1/LOG/ but the rest(/sed6hkHBu) is not created by me.  EDIT 2 : does sed or sed -i option creates files in tmp directory i had many files  created in /tmp/LOG directory with one file of huge size(800 MB) also while the script was running.


What is the difference between dotfile and dot config?

Examples:   .bashrc .config/fish/config.fish   I would like to know which is more common and what pros and cons they each have. I imagine a dotfile would be easier to change, since it is right in the home directory, but it seems .config would be easier to carry around, since it is one directory with everything in it.  Do applications usually support just one, or both?  Would it be a good idea to pick one, then symlink for each application? For example, if I wanted a dotfile, I could use ln .config/fish/config.fish .fish and just edit .fish, right?


Dismissible is defined by  as:     capable of being removed or taken away or dismissed   Dismiss is (from ):     to permit or cause to leave   In my context, I am trying to express that a character thinks a notion he’s had is worthy of being dismissed. He thinks the idea is absurd. Aside from just sucking it up and spelling out ‘worthy of dismissal’, which I just don’t really like the sound of, I thought I might say, ‘justifiably dismissible’. However, that ‘capable of being’ part of the definition has me unsure if I can use the word this way. Might it come across that I’m trying to say it should be capable of being dismissed or in some other way that isn’t what I’m looking for?  Also, I tried to look up a single word that matches my meaning, which is ‘ridiculous enough to be disregarded’ or ‘worthy of dismissal’ (either way), but nothing good came out of it. If anyone has one on the top of their head, I’d be happy to hear it.  And here’s how I used the phrase:     He believed the notion was (justifiably dismissible) to begin with.


changing a web browsers default scroll bar advice

So, I want to change my browsers scroll bar to something a little nicer looking like the scrollbar that www.twitch.tv uses.  But then I noticed that not many other websites change their scrollbars. Is there a reason for this?  Is it best to leave these as default?


System of equations in single line with indices at end

I want to write a system of $n$ equation of similar form in a single equation with indices at the end of the equation, for example the following one:    I did this by the following commands   \begin{equation*} \tag{$\nu=1,2,\ldots,n$} x_{\nu}^{(0)}=x_{\nu}^{(1)} \end{equation*}   This is a system of n equations with the indexing symbol k takes values from 1, 2, up to n and it has been put in the command of \tag in \begin{equation} - \end{equation}.  Is this the correct way to do this? Or there is an alternative?    One problem with this use is the following. Suppose after above system of $n$ equations the statement (sentence) is complete (full-stop). Then putting full-stop after n in the \tag{$\nu=1,2,\ldots,n.$} results completion of the sentence before bracket ), so how to deal with above system of equations?


Covariance term in simple linear regression

I am trying to derive the expression for the variance of $\hat{\beta_0}$ in simple linear regression. I substitute $\bar{y} - \hat{\beta_1} \bar{x}$ for $\hat \beta_0$, but in the intermediate steps the covariance term $\text{Cov}(\bar{y}, \hat{\beta_1})$ comes up and I don't know how to deal with it. Any help would be appreciated!


Bold names of some authors with prefixes

There is a nice solution for making the names of several authors bold in the bibiliography:  However, this removes the prefixes ("de", "von", etc) of the author names. How to make author names bold while keeping the prefixes?


If energy can't order itself, how did energy get ordered or made?

In the universe we see that hydrogen (bound up energy) is found in a highly concentrated ordered state in some places and it's highly dispersed in most other places. There is a natural progression that makes all of the elements heavier than hydrogen so is there a return cycle to make hydrogen again? If not, how did hydrogen (bound up energy) get into a highly concentrated ordered state as we see it today? (You could appeal to another universe and it still will not answer the question of how energy got ordered or made for that matter.)


The context is soccer (association football) and the sentence in question is:       The forward received the ball from the midfielder's pass.     I have already ask about this  and received alot of good answers, and I tried to leave it at that.  But then the World Cup 2014 is upon us, and I am starting to have doubts about this football usage of "from", to the point that I have semi-nightmares about it.  The use of "from" in the football example continues to bother me.  I seem to disagree (subconsciously) about how a ball (physical object) could be "from" a pass (action) unless that action creates that object.       Some people were hit by debris from the explosion.   The use of "from" in "debris from the explosion" makes excellent sense to me, because the explosion does create the debris.  But in soccer/football, the ball cannot possibly be "created" by a pass.    Is there any non-football usage of "from" similar to my football example sentence?