So I have this query here that isn't working, the table exist, the data is loaded correctly, the userid exists what is wrong?   $sql =  sprintf(" UPDATE leagueoflegends     SET solotier = '%s'      , solotiername = '%s'      , winssolo = %d      , lossessolo = %d      , ranksolo = '%s'      , lpsolo = %d   WHERE accountId = %d" , $solotier , $solotiername , $winssolo , $lossessolo , $ranksolo , $lpsolo , $accountid ); $db-&gt;query($sql);
If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?
Why won't Mathematica display an answer? While working on a project, I came across a JS-script created by a former employee that basically creates a report in the form of  Name : Value Name2 : Value2   etc.  The peoblem is that the values can sometimes be floats (with different precision), integers, or even in the form 2.20011E+17. What I want to output are pure integers. I don't know a lot of JavaScript, though.  How would I go about writing a method that takes these sometimes-floats and makes them integers? Reload activity in Android "There are no shortage of applications" I've been having an argument with a colleague about this sentence, could you please let me know which one of us is correct:     There are no shortage of applications for our product in this   space.   She is convinced that are should be replaced by is, and I think it should stand as it is. Thanks for your help! Access 2007 Work in a separate file using ACCDE Have been working in an Access 2007 application for over 3 weeks and it should be ready now. Anyway, I know (and tried) that "Make ACCDE" can actually split the raw data from the application itself so you can run it using the Access RunTime.  The question is... can I deploy my app for general use and modify a separate copy of the forms/views inside the application to deploy it when it´s ready without touching the data? Keep items in inventory on death in Minecraft I once played a vanilla Minecraft adventure map (called "Herobrine's Mansion") that prevented the player from losing their items on death. Which commands can be used to prevent the player from losing their items on death (in vanilla Minecraft)? Error: could not start the command in Texmaker when I run makeindex I'm trying to create a nomenclature but I'm getting the following error when I run makeindex:     Error: Could not start the command   This error appears even with this basic example:  \documentclass{article} \usepackage[refpage]{nomencl}  \makenomenclature  \begin{document} Example of nomenclature \nomenclature{A}{Area}  \printnomenclature \end{document}   In the Configure Texmaker editor I wrote: makeindex %.nlo -s nomencl.ist -o %.nls in the makeindex slot. Then I run:   PdfLaTeX MakeIndex   And the error appears... I also tried all suggestions , but nothing seems to work.  I have installed MacTex 2012 distribution, Mac OS X 10.7.5 How to fix invisible form fields in Firefox while using Adwaita Dark Theme (or any other dark theme) I have this issue with some form fields in Firefox and using the adwaita-dark theme. In some webpages where the field background is white, you cannot read the text because it is also white.   This question was edited in order to clarify that this kind of wording of the question might help people who are not familiar with what a GTK+ theme. I also thing that the wording will help to get more hits through search engines. If it's still considered a duplicate, I'll accept it. Find the last two digits of $9^{{9}^{9}}$ I have to find the last two decimal digits of the number $9^{{9}^{9}}$.  That's what I did:  $$m=100 , \phi(m)=40, a=9$$ $$(100,9)=1, \text{ so from Euler's theorem,we have :} 9^{40} \equiv 1 \pmod{100}$$  $$9^{{9}^{9}} \equiv 9^{9^{2+2+2+2+1}} \equiv 9^{9^2 \cdot 9^2 \cdot 9^2 \cdot 9^2 \cdot 9} \equiv 9^{81 \cdot 81 \cdot 81 \cdot 81 \cdot 9} \equiv 9^{(40+40+1) \cdot (40+40+1) \cdot (40+40+1) \cdot (40+40+1) \cdot 9} \equiv (9^{(40+40+1)})^{(40+40+1) \cdot (40+40+1) \cdot (40+40+1) \cdot 9} \equiv 9^9 \equiv 9^4 \cdot 9^4 \cdot 9 \equiv 6561 \cdot 6561 \cdot 9 \equiv 3721 \cdot 9 \\ \equiv 21 \cdot 9 \equiv 89 \pmod{100}$$  So,the last two digits are $8 \text{ and } 9$. $$$$But,is there also an other way two calculate the last two digits of $9^{{9}^{9}}$ or is the above the only one? Enumerate alignment problem in theorem environment I'm using amsart. When I create an enumeration inside a theorem environment, the numbering is not aligned properly:  Theorem 14. (1) (2) (3) (4)   How do I shift the (2),(3),... to be aligned with (1)?  MWE:  \documentclass{amsart} \newtheorem{thm}{Theorem}[section]  \begin{document} \begin{thm} \begin{enumerate} \item Item 1 \item Item 2 \item Item 3 \end{enumerate} \end{thm} \end{document} Is there a way to target the arrow from an OP bow via command block? I am trying to make an effect trail for a specific weapon in MC, a bow with power 120.  I want to use a command block to target any arrow with the damage it should be doing (63) and summon a trail of splash potions.  I also want to kill any arrow entities that have inGround=True  Is there any way to do this or do I have to come up with something else?  Attempt:  /execute @e[type=Arrow,damage=63,inGround=0] ~ ~ ~ summon ThrownPotion ~ ~ ~ {Potion:{id:potion,Damage:8197}} /kill @e[type=Arrow,inGround=True]   Each unfortunately just affects all arrows.  Is this even possible? What is the proof that the total number of subsets of a set is $2^n$? What is the proof that given a set of $n$ elements there are $2^n$ possible subsets (including the empty-set and the original set). Is there a command for large middle delimiters consistent with \bigl and \bigr? After browsing through related threads, I am now of the understanding (please correct me if I am wrong) that the rule of thumb is to use the \bigl,\bigr pair with brackets, parentheses, etc. for operators like sums, products, and integrals, and \left,\right in all other cases.  I only recently found out about \middle , which has solved what had been a vexing problem for me: delimiters for function arguments (slashes, bars) not scaling properly. Leafing through my cheatsheet has not been of much help, so I wish to ask: is there an equivalent of \middle for \bigl and \bigr, or would the use of \middle along with that pair not be gauche? running a bash file states:date: command not found I've installed a version of Ubuntu Server and although I'm fairly still fresh with Ubuntu, I'm trying to create a bash file to run a program in the background. More importantly, I'm trying to get a file nameto display correct and create it before I start running the program (I like my debug stuff).  However, here is my bash script:    #!/bin/bash  PATH="/var/log/servers/Game/"  FILENAME="startup"  EXT=".log"  DATE=$(date +%d-%m-%Y)  NEWFILE=${PATH}${FILENAME}_${DATE}${EXT}   I have verified that the file does exist in the PATH directory. However, the issue is with the date command. When I run the script bash -x game.sh this is what is displays.   + PATH=/var/log/servers/Game/  + FILENAME=startup  + EXT=.log  ++ date +%d-%m-%Y  game.sh: line 5: date: command not found  + DATE=  + NEWFILE=/var/log/servers/Game/startup_.log  + echo /var/log/servers/Game/startup_.log   I don't understand why it would say the command doesn't work, when I can go to the main console and run date and get a valid response.  Any help is greatly appreciated! Is abstract algebra (mostly?) restricted to $2$-ary operators? This may be due to my own pure ignorance but it's my experience that all abstract algebra I've been introduced to, both in actual courses and in self-studies only exclusively deals with algebraic objects consisting of a set together with one or more binary operators defined on that set, perhaps over some other algebraic structure. Not counting categories here, just "low-level"-ish stuff.  I'm an undergraduate so my knowledge is of course very limited but I can't help to wonder why I never stumble upon algebraic structures with $n$-ary operators? Is there a good reason for this, something along the lines of $n$-ary operators behave "badly" when $n&gt;2$ or is it just my ignorance because I'm a beginner in the field? How do I get the value of text input field using JavaScript? Editing capabilities document in GeoServer I've got several layers in GeoServer, one of which I'm trying to use as a WMS in desktop programs (Manifold 8). I've set it up correctly, but whenever I bring it into Manifold, it projects the layer into EPSG:4326, which unfortunately can't work with my map - I need it in EPSG:3857. The layer in question is wrapped inside a more overarching layer definition, which contains all the layers - and coordinate systems that allow them all to be used flexibly. However, I want to put this layer on its own in the capabilities document, and only allow it to use EPSG:3857. How, in GeoServer, would I edit, or override, a capabilities document? Missing settings in GNOME control center installed in Ubuntu MATE I installed GNOME Control Center following  to access Google Drive in Ubuntu MATE 16.04 LTS (MATE desktop environment 1.12.1)   The problem is GNOME Control Center is only showing language support, printers, firewall setup and backups... not online accounts or other settings.  This is what I get:  ~$ gnome-control-center gnome-online-accounts   ** (gnome-control-center:5744): WARNING **: Ignoring launcher landscape-client-settings (missing desktop file)  ** (gnome-control-center:5744): WARNING **: Invalid categories System;Settings; for panel software-properties-gtk.desktop  ** (gnome-control-center:5744): WARNING **: Ignoring launcher ubuntuone-installer (missing desktop file)  ** (gnome-control-center:5744): WARNING **: Could not find settings panel "gnome-online-accounts"   Any ideas?  Thanks! What is the correct way to use infinitive after the verb "help": with or without "to"? Has drupal abandoned drush? I've been away from drupal for 2-3 years. I just came back around and installed drush via composer () and now every time I try to use drush I get a message telling me that I should be using composer:  ~/sites/d7 $ drush version  Drush version : 9.0-dev-gd4a3872 ~/sites/d7 $ drush dl drupal-7.x  [notice] dl has been deprecated. Please build your site using Composer. Add new projects with composer require drupal/[project-name]. Use https://www.drupal.org/project/composer_generate to build a composer.json which represents the the enabled modules on your site.   I downloaded drupal 8 following these , but when I try to use drush in that project I get this message:  ~/sites/cfbtv/web $ drush dl devel This codebase is assembled with Composer instead of Drush. Use `composer update` and `composer require` instead of `drush pm-updatecode` and `drush pm-download`. You may override this error by [error] using the --pm-force option.   Is there something wrong with my local env, or is drush a thing of the past now?