Acquiring (m:s) duration of a (mp4/flv) video using PHP?
How to get video duration, dimension and size in PHP?
There is some conflict or error I don't understand. I can skip it and nothing visible happens. The output is okay and everything seems to be fine. Still I would like to get rid of the error message. If I run the following minimal example:   \documentclass[]{scrbook}  \usepackage[applemac, grafiken]{tahbiblatex} \usepackage[ngerman]{babel}   \begin{document}  Testing äüöaüä.  \end{document}   I get the error message:      ! Missing = inserted for \ifnum. &lt;to be read again&gt;                     , l.4 \usepackage                [ngerman]{babel} ?  ! Missing number, treated as zero. &lt;to be read again&gt;                     , l.4 \usepackage                [ngerman]{babel}   Here is my .sty file:  \NeedsTeXFormat{LaTeX2e}\relax \ProvidesPackage{tahbiblatex}[2012, by tah modified by sm]  \RequirePackage{ifthen}  \DeclareOption{latin1}{\PassOptionsToPackage{\CurrentOption}{inputenc}} \DeclareOption{applemac}{\PassOptionsToPackage{\CurrentOption}{inputenc}} \DeclareOption{cp850}{\PassOptionsToPackage{\CurrentOption}{inputenc}} \DeclareOption{utf8}{\PassOptionsToPackage{\CurrentOption}{inputenc}}  \DeclareOption{dvi}{% \newif\ifpdf \ifx\pdfoutput\undefined     \pdffalse \else     \pdfoutput=0     \pdftrue \fi}  \newcounter{Grafiken}\setcounter{Grafiken}{0} \DeclareOption{grafiken}{\setcounter{Grafiken}{1}}  \newcounter{Randausgleich}\setcounter{Randausgleich}{0} \DeclareOption{randausgleich}{\setcounter{Randausgleich}{1}}  \newcounter{Tabellen}\setcounter{Tabellen}{0} \DeclareOption{tabellen}{\setcounter{Tabellen}{1}}  \newcounter{Sync}\setcounter{Sync}{0} \DeclareOption{sync}{\setcounter{Sync}{1}}  \ProcessOptions  \RequirePackage{fixltx2e} \RequirePackage{inputenc} \RequirePackage[T1]{fontenc} \RequirePackage[T1]{url} \RequirePackage{setspace} %\RequirePackage[german]{varioref} \RequirePackage{textcomp}  \newcommand{\urlangabe}[2]{% $\langle$\url{#1}$\rangle$ -- Zugriff am #2}  \def\hierlockern {\begingroup \def\par{\endgraf\endgroup}%   \tolerance 1414%   \hbadness 1414%   \emergencystretch 1.5em%   \hfuzz 0.3pt%   \vfuzz \hfuzz%   \raggedbottom% }  \newcommand{\alleslockern}{%   \tolerance 1414%   \hbadness 1414%   \emergencystretch 1.5em%   \hfuzz 0.3pt%   \vfuzz \hfuzz%   \raggedbottom% } \ifthenelse{\value{Grafiken}=1}   {   \ifx\pdfoutput\undefined \newcount\pdfoutput \fi   \ifcase\pdfoutput       \RequirePackage[dvips]{graphicx}       \DeclareGraphicsExtensions{.eps}       \typeout{Paket tah Meldung: Die Option `grafiken' fuer DVI wurde gewaehlt.}% \else     \RequirePackage[pdftex]{graphicx}     \DeclareGraphicsExtensions{.jpg,.tif,.png,.pdf}     \typeout{Paket tah Meldung: Die Option `grafiken' fuer PDF wurde gewaehlt.}%   \fi}   {}  \ifthenelse{\value{Sync}=1}   {     \ifx\pdfoutput\undefined \newcount\pdfoutput \fi     \ifcase\pdfoutput     \RequirePackage{srcltx}     \typeout{Paket tah Meldung: Die Option `sync' fuer DVI wurde gewaehlt.}%     \else     \RequirePackage{pdfsync}     \typeout{Paket tah Meldung: Die Option `sync' fuer PDF wurde gewaehlt.}%     \fi }   {}   \ifthenelse{\value{Randausgleich}=1}   {\typeout{Paket tah Meldung: Die Option `randausgleich' wurde gewaehlt.}%   \RequirePackage[activate]{pdfcprot}}   {}  \ifthenelse{\value{Tabellen}=1}   {\typeout{Paket tah Meldung: Die Option `tabellen' wurde gewaehlt.}%   \RequirePackage{tabularx}   \RequirePackage{ragged2e}   \RequirePackage{dcolumn}   \RequirePackage{booktabs}   \newcolumntype{L}{&gt;{\RaggedRight\hspace{0pt}\arraybackslash}l}   \newcolumntype{Y}{&gt;{\RaggedRight\hspace{0pt}\arraybackslash}X}   \newcolumntype{d}[1]{&gt;{\DC@{.}{,}{#1}}l&lt;{\DC@end}}   }   {}    \endinput   I also don't really need all the features. So it would be nice to reduce it to minimal features, which are needed.. I am a graduate student of math right now but I was not able to get a topology subject in my undergrad... I just would like to know if you guys know the best one.. 14.04 microphone noice buzzing sounds My Microphone started acting up badly this morning has a loud buzz, it has got to be software it was working fine last night installed updates and shutdown last night and boom here we are, oh and i have a Microphone jack microphone and a internal mic, both are acting up... Please help  PLEASE help i need to use skype.  Dafull97 Test the convergence of the series For $a&gt;0$, test the convergence of the infinite series: $$\sum a^{\ln(n)}$$ Which test should be better to use here? I tried the D'Alembert's ratio test. $$\lim_{n\to \infty} {\frac{a^{\ln(n)}}{a^{\ln(n+1)}}}= \lim_{n\to \infty}a^{ln{\frac{n}{n+1}}}=a^0=1$$ So the test failed.  UPDATE: I observed that $${a^{\ln(n)}}=e^{{\ln(a)}{\ln(n)}}={n^{\ln(a)}}={{1\over n^{ln({1\over a})}} }$$Further by test of auxiliary series $$\sum \frac{1}{n^p}$$ we know that criterion for convergence is $p&gt;1$. Here $p=ln({1\over a})$.Hence the series will be convergent when $ln(a)&lt;-1$ i.e. when $0&lt;a&lt;1/e$, since $a&gt;0$ is already given.Finally this solved my question. Persistent Dummy Output The soundcard I want to use is detected and works (it only recently switched to dummy output and didn't allow me to go back). HDMI is no longer listed under Audio and Video - KDE Control Module; everything under audio module is set to dummy output and its the only 'soundcard' on the list now. I can view my previous sound cards in alsamixer, but changing the settings from there does nothing. How can I get my real soundcards to work again? I have already tried the following answers without success:  EDIT: name@name-desktop:~$ lspci -vvv | grep -A8 Audio 00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Kaveri HDMI/DP Audio Controller         Subsystem: ASRock Incorporation Kaveri HDMI/DP Audio Controller         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast &gt;TAbort- &lt;TAbort- &lt;MAbort- &gt;SERR- &lt;PERR- INTx-         Latency: 0, Cache Line Size: 64 bytes         Interrupt: pin B routed to IRQ 43         Region 0: Memory at ff764000 (64-bit, non-prefetchable) [size=16K]         Capabilities: &lt;access denied&gt;         Kernel driver in use: snd_hda_intel         Kernel modules: snd_hda_intel -- 00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 01)         Subsystem: ASRock Incorporation FCH Azalia Controller         Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=slow &gt;TAbort- &lt;TAbort- &lt;MAbort- &gt;SERR- &lt;PERR- INTx-         Latency: 32, Cache Line Size: 64 bytes         Interrupt: pin A routed to IRQ 16         Region 0: Memory at ff760000 (64-bit, non-prefetchable) [size=16K]         Capabilities: &lt;access denied&gt;         Kernel driver in use: snd_hda_intel  Could this image possibly help?:  There is another soundcard but I'm unsure of what its for because it never outputs sound, but it does have a lot of settings: that sound card is labelled as &quot;HD-Audio Generic&quot;.   So I went into Software &amp; Updates under the Additional drivers tab and I see this:  It was on Do not use the device so I changed it and applied the settings but unfortunately the soundcard isn't back even after reboot. I am trying to solve the following two problems:  1) Prove that the functions $\cos(z)$, $\sin(z)$ are surjective over the complex numbers.  2) Find all $z \in \mathbb C$: $cos(z) \in \mathbb R$ and find all $z \in \mathbb C$: $\sin(z) \in \mathbb R$.  For 1),I've tried to prove it for the function $\cos(z)$ (I suppose the other one is analogue)  so I've used the fact that $\cos(z)=\dfrac{e^{iz}+e^{-iz}}{2}$.  Let $w \in \mathbb C$, I want to show there exists $z \in \mathbb C : f(z)=w$, i.e., $\dfrac{e^{iz}+e^{-iz}}{2}=w$, multiplying by $2$ and then by $e^{iz}$ yields $e^{2iz}+1=2we^{iz}$ iff $e^{2iz}-2we^{iz}+1=0$.   I don't know if this approach is the correct one but here I've replaced $e^{iz}$ by $x$, so the solutions of the equation would be the roots of the polynomial $p(x)=x^2-2wx+1$, by the quadratic formula, I get that $x \in \{\dfrac{2w+w_0}{2},\dfrac{2w-w_0}{2}\}$, where $w_0^2=4w^2-4$.  Then, $e^{iz} \in \{\dfrac{2w+w_0}{2},\dfrac{2w-w_0}{2}\}$. At this point I got lost, I would like to explicitly show that $z$ exists and I can't see existence directly from the fact that $e^{iz}=\dfrac{2w+w_0}{2}$ or $e^{iz}=\dfrac{2w-w_0}{2}$.  First I thought of taking logarithm of both sides of the equation ir order to solve for $z$, but this is not a legitimate operation unless $e^{iz} \in \mathbb R$.   I couldn't go any farther.  For point 2) I have no idea what to do, should I use the identity $\cos(z)=\dfrac{e^{iz}+e^{-iz}}{2}$?  I would appreciate some help with the two points (specially with point 2), at least in 1) I could do something).   Btw, Happy new year! I have just started special theory of relativity. The limiting speed known as speed of light fascinated me most. I asked my teacher:      Consider two massless objects moving in the same direction at the speed of light. What would be their relative velocity w.r.t each other?   My teacher tells me that their relative velocity would be zero. But then the speed of light is universal constant regardless of the motion of its frame of reference, so shouldn't their relative velocity be $c$? What is their relative velocity and how? Do objects moving at the speed of light obey law of addition of velocities? I have this table definition as part of a invoice  \begin{tabularx}{\textwidth}[ht]{lXrr}%   It worked fine for years until I have a very short word in the X column for the first time. Now my table is very small in width and centered horizontally on the page.  In my expectation the X column should fill up all space until the width of the table reaches the width of the page except the margins.  I have read about workarounds specifying something like 1.2\textwidth, but I don't like that, because the table is a template included via \include, so it would affect all my invoices.  I also tried \linewidth, \hsize and \columnwidth, but everything results in the same layout.  Is there a way to make the only X column expand so that it uses all available space?    Complete included table definition (Rechnungstabelle.tex):  \newcommand{\Rechnungstabelle}[4]{% vielen Dank für Ihren Auftrag. \noindent \begin{tabularx}{\textwidth}[ht]{lXrr}% \toprule% \bf{Anzahl} &amp; \bf{Bezeichnung} &amp; \bf{Einzelpreis} &amp; \bf{Gesamtpreis} \\% \midrule% #1% \bottomrule% &amp; \bf{Rechnungsbetrag}  &amp; &amp; \bf{\EUR{#2}} \\% \ifthenelse{\equal{#3}{}}{}{&amp; Enthaltene MwSt. 19\% &amp; &amp; \EUR{#3} \\}% \ifthenelse{\equal{#4}{}}{}{&amp; * Enthaltene MwSt. 7\% &amp; &amp; \EUR{#4} \\}% \end{tabularx}% }   Changing the table header row to  \bf{Anzahl} &amp; \bf{Bezeichnung} \hspace{\textwidth} &amp; \bf{Einzelpreis} &amp; \bf{Gesamtpreis} \\%   is a workaround, but I don't think that would be good TeX style.  Minimum example for reproducing:  \documentclass[ fontsize=12pt,                  paper=a4,                 foldmarks=TBMPL,                 fromalign=center,                 ngerman                 ]{scrlttr2} \usepackage{babel} \usepackage[utf8]{inputenx} \usepackage[right]{eurosym} \usepackage{tabularx} \usepackage{ltablex} \usepackage{booktabs} \usepackage{ifthen}  \input{Rechnungstabelle} \begin{document} \begin{letter}  \Rechnungstabelle{     1,0 h &amp; Do something &amp; \EUR{99,00} &amp; \EUR{99,00} \\      }     {99,00}     {}{} \end{letter} \end{document} Traveling to the US with new passport, visa on the old one Projection is an open map Let $X$ and $Y$ be (any) topological spaces. Show that the projection  $\pi_1$ : $X\times Y\to X$   is an open map. gnome-software on Ubuntu 16.04 doesn't work How does JavaScript .prototype work? resolv.conf not working properly with Ethernet in Ubuntu I have a Lenovo X200 laptop on which I am running Ubuntu 9.10. Recently, (I assume after some updating, but I really don't know) my ethernet port stopped working under Linux. A more tech/linux-savvy friend of mine was able to temporarily fix the problem by manually editing the resolv.conf file with the DNS servers he found through his connection. However, after rebooting, the problem came back and now I am looking for a more permanent solution. Why do I get different outputs in case of sh and bash? Is every sufficiently large positive integer of the form $ab + ac + bc + 1$? Is every sufficiently large positive integer $A$ of the form $ab + ac + bc + 1$   where $a,b,c$ are some positive integers larger than some given positive integer $d$ ?  How large is sufficiently large , in other words how do we know our number $A$ is sufficiently large ( as a function of $d$ ) ?    Update :  I read the following about positive integers that are not of the form $ ab + ac + bc $:    And I quote about that sequence above : " Note that for n in this sequence, n+1 is either a prime, twice a prime, the square of a prime, 8 or 16 "  This is why I considered the weird +1 in $ab + ac + bc + 1$  So composites larger than 16 not a prime , twice a prime or the square of a prime are of the form $ab + ac + bc + 1$.  And I wonder why !  I guess that relates strongly to the Original posted problem. Maybe I should have mentioned that before , sorry.  Will Jagy's answer gave the same OEIS link which I already knew. This also explains some of the comments.  Im no expert in genus theory or Galois theory but I assume this has a simple answer. When two phrases are pronounced alike but have different spelling and meaning, can we call them homophones?  e.g. "ice-cream" and "I scream", "nitrate" and "night rate", "that's tough" and "that stuff".  Or is there another term for them?  What linguistic phenomenon distiguishes these near homophones?  I've checked the putative duplicate at  but it isn't exactly what I'm asking here. Apparently,   $$ \sum_{n = 0}^\infty \frac{n}{2^n} $$  converges to 2. I'm trying to figure out why. I've tried viewing it as a geometric series, but it's not quite a geometric series since the numerator increases by 1 every term. How to change password using usermod? I am superadmin of a server and like to change password of an existing user . How can I do that ?  I tried   usermod -p 'new-password' john   but it didn't worked ? Why does factoring eliminate a hole in the limit? Beamer Bibliography Icon I want to list my references in a beamer presentation using thebibliography environment, with the nice little    book icon (\beamertemplatebookbibitems) and  article icon (\beamertemplatearticlebibitems)   in front of each source.  Is there an icon for websites too? something like \beamertemplatewebsitebibitems? If not, is there a way to implement this easily ?