I'm currently using mysqli_real_escape_string. It is working fine but I want to know whether there is a function more broader, which will escape more characters than the predefined ones like ',",\r etc.
Is there a catchall function somewhere that works well for sanitizing user input for SQL injection and XSS attacks, while still allowing certain types of HTML tags?
What is the "maybe" caller id suggestion in the call log based on? I got a call from a phone number that is not stored in my address book, and in the call log, under the number, a name was suggested: "Maybe: X" (where X is the guessed name).  Where is this guess coming from? Does someone know if the following is true:  Let $\mathbb{X}$ be some arbitrary Banach space. $\{x_k \}_{k=1}^{\infty} \in \mathbb{X}$ is a sequence chosen from $\mathbb{X}$.  Now, if the series  $$\sum_{k=1}^\infty \|x_k\|_X$$ converges, would the "more generic" series $$\sum_{k=1}^\infty x_k$$  also converge?  If yes, could you please give the proof (or just mark the proof steps) ?  Thank you. Guides on how to install drivers for a Brother all-in-one network printer are either for older devices or are rather complicated as they often involve editing or copying system files in my root directory.  Is there a newer, more convenient way to install the drivers needed? How to extend summations to fractional orders? Prove that if $a$ and $b$ are odd, coprime numbers, then $\gcd(2^a +1, 2^b +1) = 3$ Prove that if $a$ and $b$ are odd, coprime numbers, then $\gcd(2^a +1, 2^b +1) = 3$.   I was thinking among the lines of:  Since $a$ and $b$ are coprime numbers, $\gcd(a,b)=1$. Then there exist integers $x$ and $y$ such that, $ax+by=1$.   Then, $a=(1-by)/x$, $b=(1-ax)/y$  So if I write $2^a+1$ as:  $2^{(1-by)/x}+1$  Then can I say that the above expression is equivalent to 0 (mod 3)? datetime conversion to CDT Can anyone please help me how to convert the given time into CST timezone.  Input timezone will change dynamically, so i want to convert the given timzone into CST and then need to get the hour from that CST timezone in apex. "I'm not sure what the right way is" I believe the sentence in the title is grammatically correct.   Recently I've seen too many people writing it this way:     I'm not sure what is the right way.   Is it grammatically correct as well? Maybe in a different sense? Or simply misuse by non-native speakers? Why does Simplify ignore an assumption? comment.sty and UTF8 encoding I noted that if I use comment.sty and a there is a block of text containing UTF8 characters inside a comment environment, the compilation aborts!  Minimal Example  \documentclass{article} \usepackage[T1]{fontenc} \RequirePackage[utf8]{inputenc}%this file is stored as UTF8 file! \RequirePackage{comment} \specialcomment{privateSolution}     {\begingroup\itshape\noindent\textbf{Solution}\\}     {\endgroup} %\excludecomment{privateSolution}%Use it to remove solutions!  \begin{document} \title{Comment.sty and UTF8 test file} \maketitle \section{UTF8 character test} In which alphabet characters àìùòè are common? \begin{privateSolution}     The Italian alphabet contains àìùòè. \end{privateSolution}  \begin{comment}     The Italian one! It contains àìùòè. \end{comment} \end{document}   Has anyone the same problem? Any workaround?  Thanks in advance. Bring all planes in mesh to same level I have added a plane in top view. I have then extruded the plane according to a floorplan in topview.  I don't know what happened, but when I switched my view, I could see that some parts of it are for some reason high up in the air.  I would like to ask how I can bring everything back down onto the grid / floor.  And if somebody could tell me how this might have happened, I would also be glad. cd in bash script without alias, function, source I've written a bash script which should cd me to a directory.   My problem is that only the directory in the subshell changes.  I've read of many similar problems to this, but I want to know if there is a solution besides using an alias, a function or sourcing the script.  If you don't understand what I mean, here's an example:  user@linux ~: cat ./myscript.sh #!/bin/bash cd /any/directory user@linux ~: ./myscript.sh user@linux ~:    Please note that my script is much longer, so I don't want to use a function! In the following sentence, I want to know if I've understand the correct meaning or not:     This version holds that the wave function does not so much describe the state of the physical system as the state of our knowledge of the system.    Can we say that it means the wave function describes the state of our knowledge  of the system more than it describes the state of the physical system  ?  It is worth noting that in the Cambridge Dictionary, we read:  not so much sth as sth ​ If you say that something is not so much one thing as something else, you mean it is more the second thing: They're not so much lovers as friends. I don't feel angry so much as sad. mysql_fetch_array, mysql_fetch_assoc, mysql_fetch_object In my script, I have for loop over many cube objects (~1000) and the treatment is very slow. Looking more in details, I notice that in the same amount of loops:   if I use python operation or simple blender operation like  obj = bpy.data.objects[obj_name]   or   obj.select = True   it takes less than 0.08s (for all 1000 objects) but as soon as I start using blender operators like:  bpy.ops.object.select_pattern() # or bpy.ops.object.duplicate() # or bpy.ops.object.location_clear() # or bpy.ops.object.transform_apply() # etc.   then, the performance drops down deeply with more than 6s for the same amount of objects.   And, a last information, if I reduce the amount of objects from 1000 to 50, the same set of operations with bpy.ops is 0.03s - so extrapolating, it would be 0.6s for the 1000 objects and not 6s. It is as is with 1000 objects, we loose a factor 10 in speed in comparison than with 50 objects.  I tried reducing the complexity of my mesh changing the cubes in planes but it had no effect at whole on performance.  Is there something particular to know to improve these performance or a way to use the bpy.ops methods with better performances? Obviously, I am missing something important probably. I am planning to visit London for 6 days from the US. I have given my biometrics and when I was preparing to mail my documents to the UK visa processing center in the US, I used this link from the UK government website to cross-check the documents to be sent to the processing center.     (Guide to supporting documents).  Something that really surprised me was in Section 4 (documents that should NOT be sent along with the package) was hotel bookings and flights bookings.     Section 4: documents you should not send unless specifically requested      This page provides guidance on the types of documents that are not required to consider your application.         hotel bookings   flight bookings      Typically I have always been asked to provide my travel plans, accommodation plans and proof of them. This is the first time that travel plans and accommodation plans are not asked to be sent. What might be the reason behind it? This really confuses me. Any help in clearing my confusion would be greatly welcome. I've been using Ubuntu for a few years now, but I just installed Version 16.04, and I've been having a lot of issues. I'm not a command line expert, but I tried to install some software last night, and it is creating issues (and also not working properly).   When I run sudo apt-get -f install, I see the following message:  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following additional packages will be installed:   lua-event lua-expat lua-filesystem lua-sec lua-socket lua5.1 prosody Suggested packages:   lua-zlib lua-dbi-postgresql lua-dbi-mysql lua-dbi-sqlite3 The following packages will be REMOVED:   jitsi-meet-tokens The following NEW packages will be installed:   lua-event lua-expat lua-filesystem lua-sec lua-socket lua5.1 prosody 0 upgraded, 7 newly installed, 1 to remove and 22 not upgraded. 3 not fully installed or removed. Need to get 0 B/413 kB of archives. After this operation, 2,296 kB of additional disk space will be used. Do you want to continue? [Y/n] Y (Reading database ... 176266 files and directories currently installed.) Removing jitsi-meet-tokens (1.0.962-1) ... dpkg: error processing package jitsi-meet-tokens (--remove):  subprocess installed post-removal script returned error exit status 10 Errors were encountered while processing:  jitsi-meet-tokens E: Sub-process /usr/bin/dpkg returned an error code (1)   Can someone help me figure out what I need to do to get this resolved? I'm fine with deleting jitsi, but I'm not sure if that will correct the problem.   Currently there is a red circle with a line through it in the upper right corner that indicates there may be installed packages with unmet dependencies. is incompatible with the enumerate and itemize environments. Is there a typographical reason not to wrap a list around a figure or is it a technical limitation of LaTeX? If it is a technical limitation, is there any work (new packages or changes to LaTeX) currently being done to eliminate the limitation in the future?  Edit: To respond to some of the comments: I realize that there are "gymnastics" which can make this work. I do not have an example of the problem. Whenever I run into a problem with wrapfig because it is near an enumerate or itemize environment, I search for an easy solution, find none, and move the figure elsewhere. In the vast majority of cases, the cost of learning the complex solutions isn't worth the benefit of keeping the figure where I want it. Short story: rocket fuel which oxidizes iron destroys life on earth I'm looking for the title of a short science fiction story, probably published in a Hugo winner collection 30 years ago. In the story, scientists have developed an extremely efficient rocket fuel that has one dangerous side-effect: it oxidizes iron. A man takes off in a rocket powered by this fuel but returns to find the earth completely devoid of life. His subsequent investigation reveals that a single drop of the fuel began a domino effect, as the substance oxidized all iron it came into contact with. In the end, the man is dying.  He drags himself to the ocean, believing that if he can get his living cells into the water they will restart the primordial soup. Deploy a project using Git push Is it possible to deploy a website using git push? I have a hunch it has something to do with using  to perform a git reset --hard on the server side, but how would I go about accomplishing this? Why would a static nested interface be used in Java?