Is there a way to define a macro that turns a expression i.e. an int, into an String literal?
Stringification of a macro value
I have a class with two class methods (using the classmethod() function) for getting and setting what is essentially a static variable.  I tried to use the property() function with these, but it results in an error.  I was able to reproduce the error with the following in the interpreter: class Foo(object):     _var = 5     @classmethod     def getvar(cls):         return cls._var     @classmethod     def setvar(cls, value):         cls._var = value     var = property(getvar, setvar)  I can demonstrate the class methods, but they don't work as properties: &gt;&gt;&gt; f = Foo() &gt;&gt;&gt; f.getvar() 5 &gt;&gt;&gt; f.setvar(4) &gt;&gt;&gt; f.getvar() 4 &gt;&gt;&gt; f.var Traceback (most recent call last):   File &quot;&lt;stdin&gt;&quot;, line 1, in ? TypeError: 'classmethod' object is not callable &gt;&gt;&gt; f.var=5 Traceback (most recent call last):   File &quot;&lt;stdin&gt;&quot;, line 1, in ? TypeError: 'classmethod' object is not callable  Is it possible to use the property() function with @classmethod decorated functions? How do I show that if there are functions $f,g$ such that$$ f(g(x)+g(y))=bx+cy $$holds for all $b,c\in\mathbb{R}$, then we necessarily have $b=c$? Is this even true? It seems so, but I'm just not sure how to explain it in detail and using theory from functional equations. Any ideas?  Extra: In addition, I'd like to prove that there are no pair of functions $f,g$ such that$$ y^2+z^2=f(x,g(y-x)+g(z-x)). $$ Any ideas on how to prove this? Plus, does anyone know some literature regarding this type of problems? How to make Biber also print the debug information in the log file? I've switched from BibTeX to Biber and I was struggling with some errors.  During those problems (see  and  ) I noticed that other users seem to get a more detailed output in the log file (see e. g. ).  I also tried to run biber --tool --debug myreferences.bib, but I'm still missing those details (like the problematic source text for a FATAL error)  example of my current project  command: biber -tool --debug references.bib   INFO - This is Biber 1.9 running in TOOL mode INFO - Config file is '/Users/mbg4/.biber.conf' INFO - Logfile is 'references.bib.blg' INFO - DEBUG mode: all messages are logged to 'references.bib.blg' INFO - Looking for bibtex format file 'references.bib' INFO - Decoding LaTeX character macros into UTF-8 INFO - Found BibTeX data source 'references.bib' WARN - Datamodel: Entry '2005' (references.bib): Invalid format '2005/12//' of date field 'date' - ignoring WARN - Datamodel: Entry '2002a' (references.bib): Invalid format '2002/12//' of date field 'date' - ignoring WARN - Datamodel: Entry 'Ferri2009' (references.bib): Invalid format '2009/3/25/' of date field 'date' - ignoring WARN - Datamodel: Entry 'Klein2005' (references.bib): Invalid format '2005/9//' of date field 'date' - ignoring WARN - Range field 'pages' in entry 'Prochazaka1983' is malformed, skipping WARN - Datamodel: Entry '2006b' (references.bib): Invalid format '2006/2//' of date field 'date' - ignoring WARN - Datamodel: Entry 'Lu2001a' (references.bib): Invalid format '2001/6/15/' of date field 'date' - ignoring WARN - Datamodel: Entry 'Schubert2002' (references.bib): Invalid format '2002/9//' of date field 'date' - ignoring WARN - Datamodel: Entry 'N.N.c' (references.bib): Invalid format 'Apr\,2003' of date field 'urldate' - ignoring FATAL - Caught signal: SEGV Likely your .bib has a very bad entry which causes libbtparse to crash:    how I'd like it to look like (the FATAL - Caught signal: SEGV line):  [496] bibtex.pm:1029&gt; DEBUG - Parsing namestring 'Coyle, ,Thomas W.' [496] bibtex.pm:94&gt; FATAL - Caught signal: SEGV   Used software   TeXLive 2014 on MacOS X  biblatex v2.9a biber 1.9 I have been racking my brains over how in bloody hell can you have a different header for the title (or first) page of a document.   I am not asking here how I can not have a header by clearing the page style for this page using \thispagestyle{plain} or something of the sort but how can I have a different header just for the very first page.   Please help as I have a deadline to meet.   So far, I have not been able to find anything useful on TeX.SE.   Here is some of my code to give you some idea of what I want to achieve:  \documentclass[12pt]{article} \usepackage{amsmath} \usepackage[margin=2.5cm]{geometry} \usepackage[utf8]{inputenc} \usepackage{amsfonts} \usepackage{fancyhdr} \usepackage{hyperref} \usepackage{graphicx} \usepackage{csc} \pagestyle{fancy} \fancyhead[L]{**Left Header for all pages**}\fancyhead[R]{**Right Header for all pages**} \lhead{**Left Header for just the first page**} \rhead{**Right Header for just the first page**} \title{Problem Set 1}         \author{MyBloodyName} \date{January 31, 2017} \begin{document}     \maketitle     \newpage     Easier? \end{document} I am non-EU citizen working in Germany. Can I travel to UK without a visa? Why isn't a virus "alive"? What does the notation $S^n$ mean? I see this notation a lot, but I can't seem to find an answer in my google searches. In particular I am looking at the question      Let $\alpha:S^n\rightarrow S^n$ be the antipodal map. Prove that $n$ is odd, then $\alpha\simeq \operatorname{id}.$    If it is an arbitrary symmetric group, then I understand, but I have seen $S^1$ be used for the circle. I've been having this issue for a while where I come to open the Terminal and I'm met with this:  Login incorrect login: _   I've already deleted the com.apple.terminal.plist to no avail. The really interesting thing is that sometimes it works, maybe 1 in 50 times. I literally have no idea what might be causing it and after searching the web for the better part of half a day it seems everyone else's issues are fixed when they delete the plist file.  How do I sort this out? I've tried running different shells (bash and zsh), but I still get this log in screen.  Also when I use Activity Monitor, I can see there is no shell running just the login. For example, if I revisit a memory of mine where I'm inside a castle and talking to someone, can the present-me explore different parts of the castle meanwhile the past-me continues her conversation? Is that possible? Prove there are no other solutions of functional equation $f(x+y) = \frac{f(x)+f(y)}{1-f(x)f(y)}$ I have the following functional equation. Find all continuous functions $f:(-1,1) \to \mathbb R$ such that $$ f(x+y)=\frac{f(x) + f(y)}{1 - f(x)f(y)} $$ The first obvious solution is $f(x) \equiv 0$. Another one I guessed, it is $f(x) = \pm \tan x$. I suspect, that there are no more solutions. The problem is that I don't know how to prove that.  Since we have a rational equation, I have no idea how to make any substitutions in order to get expression for $\tan x$ (as it is not a rational expression).  P.S. I can also show that it is true that (a) $f(0) = 0$ (take $x=y=0$), and (b) $f(-x) = -f(x)$ (take $y=-x$).  Update: there is a solution of this problem also here: how to redirect output to multiple log files How prove :         $$ {31}^{11}&lt;{17}^{14} $$       help please! How can I install WhatsApp in Ubuntu? Related: If $r,s,t$ are prime numbers and $p,q$ positive integers s.t. $\text{lcm}(p,q)$ is $r^2s^4t^2$, then the number of ordered pairs $(p,q)$ is? If $r,s,t$ are prime numbers and $p,q$ are the positive integers such that LCM of $p,q$ is $r^2s^4t^2$, then the number of ordered pairs $(p,q)$ is?  My attempt to the solution:  Let $r^a s^b t^c$ be the LCM where $a=2,b=4,c=2$  Then the cases that arise are  I case   1) $p$ has $r^as^bt^c$ then there are a total of $(2+1)(4+1)(2+1)$ options  II case   1) $p$ has $r^as^b$ or $s^bt^c$,$r^at^c$ then there are total of $(2+1)(4+1)(2+1)(3)$ options.  The answers comes out to be $45*4$ but the answer is $45*5$. Which case am I missing? Moment generating functions/ Characteristic functions of $X,Y$ factor implies $X,Y$ independent. This is solely a reference request. I have heard a few versions of the following theorem:     If the joint moment generating function $\mathbb{E}[e^{uX+vY}] = \mathbb{E}[e^{uX}]\mathbb{E}[e^{vY}]$ whenever the expectations are finite, then $X,Y$ are independent.   And there is a similar version for characteristic functions. Could anyone provide me a serious reference which proves one or both of these theorems? Set "default" monitor I would like to be able to set my "default" monitor to be my external 25' monitor instead of my laptop one when I have my external monitor connected.  Many applications always open on the laptops monitor instead of the "big" one. Currently, the only way I know to disable this behavior is to disable the laptop monitor, however, as I use a laptop stand to bring it higher, Id like to be able to use my laptop monitor as a "secondary" monitor, without dock (launcher) and without any windows opening on it.  The only way for a window to reach it would be to actually manually grab it and drag it over.  Some known applications that ALWAYS open on the laptop monitor and drive me crazy: Slack, Rocket Chat, Thunderbird, Sky, System Settings, Guake (specially annoying since i cant move it). An arithmetic function is defined as follows:$f(1)=1$,  $f(2k)=k$ and $f(2k+1)=f(k)+f(k+1)$. When (for which $k$) is $f(k)$ even?  While it is obvious that $f(4n-1)=f(4n)=2n$, therefore $f(k)$ is even for $k=4n$ and $k=4n-1$, which is possible to prove using induction (isn't it?), I don't know how to prove the converse.  I tried to solve the recurrence or make use of constant difference between certain elements of the sequence $\ldots$ What am I missing?  Thank you. Many apps are missing from Ubuntu Software app I tried to enable additional repositories according to the instructions from , however my Ubuntu Software app is still missing a lot of popular apps. Is there anything I'm missing?  Ubuntu 16.10 Ubuntu Software app 3.20.1 I received an undesirable status for overstaying a SA visa while hospitalized for injuries sustained in Lesotho. I had to cross into SA from Lesotho. Now I am banned entry into SA until Feb 2016 and though I have submitted a waiver request to remove the undesirable status, I hear from some the waiver request may take 4-5 months or even take longer than the time of banishment.  I have a pre-paid safari planned in October in which I need to fly through Johannesburg to get to Botswana. The Jburg border control requires tourists to pass through SA immigration even when simply changing planes.  1) Will SA grant me "transit" access if I don't leave the airport?  2) Will SA allow me to spend a night in the airport as the layover is 12 hours>  Thanks for passing on any info. What is the difference between select count(*) and select count(any_non_null_column)? I seem to remember that (on Oracle) there is a difference between uttering select count(*) from any_table and select count(any_non_null_column) from any_table.  What are the differences between these two statements, if any?