Is my code good enough to prevent SQL injection?
How can I prevent SQL injection in PHP?
How to debug JavaScript / jQuery event bindings with Firebug or similar tools? I have a  to which I'd like to add JPEG and PNG images that I generate on the fly.  All the examples I've seen so far in the , specially in the  use ImageIcons.  I'm generating these images as byte arrays, and they are usually larger than the common icon they use in the examples, at 640x480.   Is there any (performance or other) problem in using the ImageIcon class to display an image that size in a JPanel? What's the usual way of doing it? How to add an image to a JPanel without using the ImageIcon class?   Edit: A more careful examination of the tutorials and the API shows that you cannot add an ImageIcon directly to a JPanel. Instead, they achieve the same effect by setting the image as an icon of a JLabel. This just doesn't feel right... The site description in the hero header is wrong for Meta sites The hero header contains the same description for the Main and Meta sites. Here's the one for MSO:           Meta Stack Overflow is a question and answer site for professional and enthusiast programmers. Join them; it only takes a minute:    This can easily confuse people who are new to the network, so I feel this should be changed to something Meta specific. Perhaps re-use the text from the sidebar, that has a good description:     This site is intended for bugs, features, and discussion of Stack Overflow and the software that powers it. You must have an account on Stack Overflow to participate. Where does the term $|\psi\rangle\langle\psi|$ come from while calculating the expectation value? Assume $f$ and $g$ are differentiable at $x$. Prove that $(fg)^{(n)} = \sum_{k=0}^n \binom{n}{k}f^{(k)}(x)g^{(n-k)}(x)$   I am assuming here $fg = f(x) g(x)$. Then we can prove this via induction. If $n = 0$ we have $1 = 1$ which is true. Now assume it is true for some $m$ we need to show it is possible for $m+1$. We have $(fg)^m = \sum_{k=0}^m f^{(k)}(x)g^{m-k}(x)$. How do we show that? Color gradient for bars in pgfplots I want that each bar in my diagram has a color gradient from black to white (from left to the right). However, for the following code, the gradient exists for the entire diagram such that the left bar is black, the middle one is gray, and the right one is white.   \documentclass{report}  \usepackage{pgfplots}   \begin{document}  \begin{tikzpicture}      \begin{axis}[ybar]          \addplot[left color=black,right color=white] coordinates {(1,2) (2,3) (3,4)};      \end{axis}  \end{tikzpicture}  \end{document} Boundary condition with spatial derivative is ignored by NDSolve "This box of matches is empty" There are several Japanese books teaching Japanese students how to write in English. I found this example in  (Correcting Errors in English Composition Manuals) by Michio Kawakami and J.D. Monkman.  The authors of this book claim that this sentence is incorrect:     This box of matches is empty.   They note that a “box of matches” is a box containing matches (and not a box made for keeping matches), hence the sentence should instead be:     This matchbox is empty.   Likewise, an “empty bottle of beer” should instead be an “empty beer bottle.”  Is this actually an error that I should avoid in writing English? If so, is it a grammatical error or something else? How did Anakin Skywalker survive Order Sixty Six? . When activated, troopers would immediately perceive Jedi as a threat and kill them.  Since Anakin was a Jedi until around the time of the Order, how did the troopers know not to kill Anakin? Can't mount ISO file as loop device: Error: “failed to setup loop device” sudo mkdir -p /media/cdrom cd ~ sudo mount -o loop ubuntu-* / mount: ubuntu-*: failed to setup loop device: No such file or directory I read a YA novel in the early 2000s that I think takes place on Earth some time in the future. The human race has been enslaved by some other race, possibly aliens. If I remember correctly, humans were kept as slaves for some purpose and then exterminated at age 16, and I think some girls were kept to breed.  I remember scenes of a band of teenagers walking around sewers fighting these aliens who bled a blue "ichor." The only thing I distinctly remember about the book was that it was the first place I saw the word "ichor."  This is a pretty sorry description; but does anyone have a clue what this book was? Pick random row from a file Packed images used as background don't show up when reopening the file I have seen a single (1) mention of View port background images disappearing when the .blend file is saved and reopened.  However...the answers are not relative to what I am experiencing.  I go through the trouble of setting up four images (top, side, front, back) and then pack these images using External Data &gt; Pack all into .blend and then I save the .blend.  I save the file, open it back up, and the background images are all gone. Open up properties panel, look to see background images check box is unchecked, click add image, and choosing the open drop-down arrow...the data paths still show the list of images (packed into a specific folder textures).  They are still there, the data set is intact.  Why is It that I have to set this up each and every time I open the file.  It seems like earlier versions &lt;2.76B saved the images and saved the file with the background images check box checked without the need to set this up each time the file is reopened.  This is getting very frustrating due to the fact that a few of the background images mus be set up using Blender's rotate, scale and move tools to align the background image up with the model I have already fabricated.  Thanks! Smooth transition between two materials I want to apply for Schengen visa, but employer NOC which is mandatory document for visa is not available with me I have resigned from my current company and will be joining a new company soon.   Hence, I cannot get a leave approval letter from my current company, and if I decide to join a new company and then request a NOC (No Objection Certificate) it will be late for visa process completion because of my traveling dates.   What can I show to the embassy as an alternative to this NOC document? Beamer: PDF presentation viewer to play embedded videos and show elapsed time How do I fill an area with faces lined up in a grid over a not flat surface? Hello to everyone again,  I'm looking for an addon or a short cut to fill fast and simmetrically a NOT FLAT surface that needs to be closed with vertices. Doing it manually it takes a lot of time. I tried to do CTRL F and then Grid fill,but it didn't work. Neither F key works. Check the attached screenshot. thanks. LEFT OUTER JOIN in LINQ Drop Table and recreate Permissions So we followed an best practice by Andreas de Ruiter ()  The Idea behind it is, that you write SQL Views which are easy to maintain and deploy. You use stored procedures to use these views and create tables from it. He suggests dropping or truncating the tables to maintain consistency over the data. I think it's the easiest approach without writing any complex update logic.  On these tables we have the need to set specific user permissions. By dropping the table we would lose them. So for us the question is, how could we drop the table and recreate the existing permissions on the newly created table? How do I (or can I) SELECT DISTINCT on multiple columns? I need to retrieve all rows from a table where 2 columns combined are all different. So I want all the sales that do not have any other sales that happened on the same day for the same price. The sales that are unique based on day and price will get updated to an active status.  So I'm thinking:  UPDATE sales SET status = 'ACTIVE' WHERE id IN (SELECT DISTINCT (saleprice, saledate), id, count(id)              FROM sales              HAVING count = 1)   But my brain hurts going any farther than that.