I get an annoying amount of spam traffic from the Ukrane, Russia, Korea etc. I have setup rules in my .htaccess file to block all of these countries and it's working great. The problem i have now is my error logs are insanely large. Last weeks log was 2gb. The entire log is just full of      client denied by server configuration:...   I dont need to read these. They are making it impossible for me to monitor genuine errors and the disk space they take up is also annoying. Is there a better way to do this or a way to stop apache from writing these messages to the log?  Its important that i still have errors written to this log. If i block everything that is an error or lower i will loose out on everything that i currently use the error log for. I want errors to still get written to the log. It helps me track any errors in the code.
I want to block access to my web server by default as a precaution but I keep getting the following errors showing up in my error log.      [Wed Jun 27 23:30:54 2012] [error] [client 86.77.20.107] client denied by server configuration: /home/www/default/Edu.jar      [Wed Jun 27 23:32:40 2012] [error] [client 86.77.20.107] client denied by server configuration: /home/www/default/REST.jar      [Wed Jun 27 23:35:39 2012] [error] [client 86.77.20.107] client denied by server configuration: /home/www/default/Set.jar      [Thu Jun 28 01:01:17 2012] [error] [client 58.218.199.227] client denied by server configuration: /home/www/default/proxyheader.php      [Thu Jun 28 02:34:57 2012] [error] [client 58.218.199.227] client denied by server configuration: /home/www/default/proxy.php      [Thu Jun 28 05:41:33 2012] [error] [client 58.218.199.227] client denied by server configuration: /home/www/default/proxyheader.php      [Thu Jun 28 06:55:10 2012] [error] [client 180.76.6.20] client denied by server configuration: /home/www/default/      [Thu Jun 28 07:31:26 2012] [error] [client 86.77.20.107] client denied by server configuration: /home/www/default/Edu.jar      [Thu Jun 28 07:32:25 2012] [error] [client 86.77.20.107] client denied by server configuration: /home/www/default/REST.jar      [Thu Jun 28 07:36:10 2012] [error] [client 86.77.20.107] client denied by server configuration: /home/www/default/Set.jar   I don't really want these errors to show up but whatever I do, I can't get rid of them. Does anyone know how I can achieve this?  Here is a copy of my configuration.  &lt;VirtualHost *:80&gt;     DocumentRoot /home/www/default      &lt;Directory /&gt;            AllowOverride None            Order Deny,Allow            Deny from all     &lt;/Directory&gt;      #ErrorLog /var/log/apache2/error.log     #LogLevel warn     CustomLog /var/log/apache2/access.log combined &lt;/VirtualHost&gt;
Error when creating data with special characters and numbers My code will not project and store the feature layer in the scratch.gdb. "ERROR 999999 ... The table name is invalid. The table was not found. [17_5330_51961Lake]"  The interpreter doesn't like "-" characters or beginning or ending in a number. Does anyone know of a work around?  import arcpy import os  mxd = arcpy.mapping.MapDocument("Current") mxdpath = mxd.filePath (filepath, filename) = os.path.split(mxdpath) MCP_Path = str(filepath)  srl = os.path.join(MCP_Path, r"CoordinateSystems\NAD 1983 UTM Zone 17N.prj")  WBYLID = "17-5330-51961"  WBYLIDlabel = WBYLID.replace("-","_")  LakeOut = os.path.join(MCP_Path + "\OutputData\Scratch.gdb", WBYLIDlabel + "Lake") arcpy.Project_management(fl, LakeOut, srl) Can file uploads time out in PHP? Hi im quite new to PHP, i have created a form for very large csv files to be uploaded to my server. Some one mentioned to me that the browser can time out due to the uploading file being to big, is this true? and if so, can it be prevented?  Thanks for your help! Show tabs in Chrome full screen mode? Firefox can do it, can Chrome?   Here's what I'm looking for: I wanted to find a counter example to show that the completeness of the inner product space is necessary in . Please give an example of a bounded linear functional $T$ on an incomplete inner product space $X$ which do not have any inner product representation i.e. there does not exist any $z$ in $X$ s.t. $T(x)= \langle ,z\rangle$ for all $x$ in $X$. I'm trying to prove by induction that for all $a,b \in \mathbb{Z}$ and $n \in \mathbb{N}$, that $(a-b) \mid (a^n-b^n)$. The base case was trivial, so I started by assuming that $(a-b) \mid (a^n-b^n)$. But I found that: \begin{align*} (a-b)(a^{n-1}+a^{n-2}b + a^{n-3}b^2+...+b^{n-1}) &amp;= a^n-b^n. \end{align*}  Doesn't this imply that $(a-b) \mid (a^n-b^n)$ as $a^{n-1}+a^{n-2}b+\dots+b^{n-1}$ is clearly an integer? This obviously isn't a proof by induction, but is there anything wrong with taking this approach to prove this result, other than the fact that it isn't what is being asked?   Aside, I'm having trouble getting started with the proof by induction. I've tried making the above equivalence useful during the induction step, but it doesn't seem to be helpful, so any hints would be greatly appreciated! I don't know how to prove this example. Let $y(t):\mathbb{R}^+\to \mathbb{R}$ be a nonincreasing function. Assume that there is a constant $A&gt;0$ such that \begin{equation} \int_{s}^{+\infty}y(t)dt \leq Ay(s), \quad 0\leq s&lt;+\infty \end{equation} Then $y(t)\leq y(0)e^{1-\frac{t}{A}}$, for all $t&gt;0$. I am encountering two definitions of the special orthogonal lie algebra, and I would like to know if they are equivalent, and if there are advantages to working with one over the other.  If we begin with an $n$-dimensional vector space $V$ over a field $k$ and a chosen basis, we can define a bilinear form on $V$ by a matrix $S\in M_n(k)$, ie, let $\langle v,w\rangle=v^tSw$ for all $v,w\in V$.  Now $g\in GL_n(k)$ preserves the form ($\langle g(v),g(w)\rangle=\langle v,w\rangle$) if and only if $g^tSg=S$, so all such $g$ form a linear algebraic group $G$.  The tangent space at the identity of $G$ will be contained in that of $GL_n(k)$, so $T_eG\subset T_eGL_n(k)=M_n(k)$, and in fact, $T_eG=\{B\in M_n(k)\mid B^tS+SB=0\}$.  $T_eG$ becomes a lie algebra, $Lie(G)$, if we define the bracket to be the commutator of two matrices.  Now, if $S=I_n$, it follows that $G=O_n(k)$ is the orthogonal group of matrices satisfying $g^tg=I_n$, and $Lie(G)=\mathfrak{so}_n$ is the lie algebra of antisymmetric matrices.  In Humphrey's Introduction to Lie Algebras and Representation Theory, he defines $\mathfrak{so}_n$ to be all matrices $B$ satisyfing $B^tS+SB=0$, where $$ S=\begin{pmatrix} 1&amp;0&amp;0\\ 0&amp;O&amp;I_l\\ 0&amp;I_l&amp;O \end{pmatrix} \hspace{.5in}\text{or}\hspace{.5in} S=\begin{pmatrix} O&amp;I_l\\ I_l&amp;O \end{pmatrix} $$ depending on the parity of $n$.  The matrices obtained in this way are not antisymmetric, nor is the group $G$ preserving the form defined by $S$ the orthogonal group $O_n(k)$.  Are the two groups obtained from considering different $S$ isomorphic?  Are the two lie algebras isomorphic?  If so, why would one prefer one form to the other? Using subcaption package but subfigures end up stacked rather than side by side I'm trying to put two jpegs side by side using the subcaption package, but the images are consistently stacking on top of each other rather than side by side. All the solutions I've found simply state that the pictures have to be small enough to actually be side by side but I've tried making them smaller, too small even and they stay stacked. My code looks like this:  \begin{figure}[H] \centering \begin{subfigure}{0.5\textwidth} \centering     \includegraphics[width=0.3\linewidth]{inclusion.jpg}     \caption{inclusions}     \label{fig:inclu} \end{subfigure}  \begin{subfigure}{0.5\textwidth} \centering     \includegraphics[width=0.3\linewidth]{deform}     \caption{grain deformation}     \label{fig:deform} \end{subfigure} \caption{filler text} \label{fig:manmade} \end{figure}   Help would be greatly appreciated. Opening document library files in popup or new window Is there any easy way to open the document library files in a new window or popup depending on the file types?  e.g. PDF - In Adobe reader (currently opens in IE)  Image file (currently opens in IE) Is there a way I can avoid imperial ships? Whenever I am traveling on foot, imperial ships will fly by and drop down troops for me to fight. In a normal situation, this is no big deal and I will fight or flee to continue with my travels.  However this will also occur when I am doing a quest that requires me to locate and pick up items. This is an inconvenience as I cannot pick up items while in combat and I have to kill them before I can continue.  Is there a way I can "hide" and allow the ships to by pass my location? Is there any way to add if elif and else in drivers?  Given the way we do if and else, here are two examples out of few other things i tried to get the statement right but unable to do so:  var-3.5 if (var&lt;0) var+3.5 elif (var&gt;0) else 1  var-3.5 if (var&lt;0) elif var+3.5 (var&gt;0) else 1   And also if there's any other way to add multiple if/else similarly? How to install mods for the new Minecraft launcher The "Info" bar on top disappeared and the mouse pointer is misaligned I have a problem with Blenders UI. The "Info" bar on top disappeared and the mouse pointer is misaligned. I reinstalled Blender 2 times, deleted every leftover files  but it still does the same thing. This is in v2.78c. The weird thing is that on the bottom everything works fine. Here are some images: What could be the reason, that private keys are not unlocked? Since I updated to Ubuntu 17.10 a while ago, my private keys – the which I use for example to access my server via ssh – are not unlocked programmatically after login anymore.    My understanding is, that usually the seahorse client should take care of this, by asking you whether or not to store the key's password when typing them in for the first time.  My first guess was, that seahorse-daemon wasn't running for some reason, but it is:  user@Zeus:~$ ps aux | grep seahorse user    19170  0.0  0.1 432636 26564 ?        Ss   00:07   0:00 seahorse-daemon   My second guess was, that for some reason I have to delete all related passwords stored in seahorse under »Passwords->login«:    I was hoping to force the client to ask me again and then storing them again. But this didn't help either. The client does not pop up to ask me...  Then I found this question, which could be related, but did not help me:    As the management of other passwords work as expected (for example passwords for nautilus, Chromium, Nextcloud etc.) I assume the problem has to do something with ssh-agent...  Can anybody hint me in the right directions, how to solve this problem? Has anything changed in the way how GNOME handles passwords? Maybe some new fancy program failed being installed during the upgrade process?   UPDATE When I add the private key to the authentication agent again with:  ssh-add ~/.ssh/id_rsa   and try to log in, I will be asked to unlock the key only once, after that the key gets unlocked programmatically. But this works only until the next reboot. After a fresh start, I have to add the key again... Run VirtualBox in background, without a window? Is there a way in javascript to detect if the unload event is caused via a refresh, the back button, or closing the browser? I have a Linux instance that I set up some time ago.  When I fire it up and log in as root there are some environment variables that I set up but I can't remember or find where they came from.     I've checked ~/.bash_profile, /etc/.bash_rc, and all the startup scripts.  I've run find and grep to no avail.   I feel like I must be forgetting to look in some place obvious. Is there a trick for figuring this out? Why do only two sexes exist for animals? Why, from the natural selection point of view, do only two sexes exist for animals? Install packages through yum from file Is there any way to install packages through yum from a file?  Something like:   yum -f packages.txt  I couldn't find anything in the man pages.  packages.txt would contain something like:  bash bc binutils bzip2 bzip2-libs ca-certificates cairo ffmpeg is not even cutting this and other mp4s to the nearest second I have a file  Other - Analogue Clock-JEJqy1Wlovw.mp4  which is just a download from     It's 2 minutes 13 seconds long.  I had some issues cutting it to the second.  I was able to use this command   ffmpeg -ss 0 -i infile.mp4 -c copy -t 60 output.mp4  to make a file that was 60 seconds, so no problem so far.  That's the file exactly 1 minute, no issue there so far.  C:\vids\a&gt;dir blahhclo.mp4   9,590,540 bytes  C:\vids\a&gt;   C:\vids\a&gt;mediainfo blahhclo.mp4 General Complete name                            : blahhclo.mp4 Format                                   : MPEG-4 Format profile                           : Base Media Codec ID                                 : isom File size                                : 9.15 MiB Duration                                 : 1mn 0s Overall bit rate                         : 1 278 Kbps Writing application                      : Lavf58.3.100  Video ID                                       : 1 Format                                   : AVC Format/Info                              : Advanced Video Codec Format profile                           : High@L4.0 Format settings, CABAC                   : Yes Format settings, ReFrames                : 3 frames Codec ID                                 : avc1 Codec ID/Info                            : Advanced Video Coding Duration                                 : 1mn 0s Bit rate                                 : 1 146 Kbps Width                                    : 1 920 pixels Height                                   : 1 080 pixels Display aspect ratio                     : 16:9 Frame rate mode                          : Constant Frame rate                               : 25.000 fps Color space                              : YUV Chroma subsampling                       : 4:2:0 Bit depth                                : 8 bits Scan type                                : Progressive Bits/(Pixel*Frame)                       : 0.022 Stream size                              : 8.21 MiB (90%)  Audio ID                                       : 2 Format                                   : AAC Format/Info                              : Advanced Audio Codec Format profile                           : LC Codec ID                                 : 40 Duration                                 : 1mn 0s Bit rate mode                            : Constant Bit rate                                 : 126 Kbps Channel count                            : 2 channels Channel positions                        : Front: L R Sampling rate                            : 44.1 KHz Compression mode                         : Lossy Delay relative to video                  : 40ms Stream size                              : 920 KiB (10%)    C:\vids\a&gt;   But I do have an issue when I try to cut it at the following times, and it's whether I try to cut the 1 minute one or the whole 2 min 13sec one.  If I cut with -ss 0 -t 1,   it produces a file that is 1s 22ms.  So that's not too bad that's fairly close to one second. 1.022 seconds is quite good for an attempt to cut one second.  If I cut with -ss 0 -t 2, it produces a file that is 3s 19ms   That is terrible! it's meant to be one second!  If I cut with -ss 0 -t 30 then it is fine it does 30s 1ms.  Or this video for example, also an mp4   C:\blah&gt;ffmpeg -ss 189 -i vid.mp4 -c copy -t 6 someoutput.mp4  C:\blah&gt;mediainfo someoutput.mp4   produces a duration of 8s 383ms  That is so wrong though 'cos it should be 6 seconds! So that is two seconds too long!  C:\blah&gt;ffmpeg -ss 191 -i vid.mp4 -c copy -t 6 someoutput2.mp4  C:\blah&gt;mediainfo output2.mp4   shows that ffmpeg produced a duration of 10s 403ms  which is crazily wrong 'cos the ffmpeg command specified 6 seconds!  So that's not just one second out, that is 4 seconds out!  That's almost 50% longer than it should be!