hashing password using sha1 AND random salt in PHP but the login function always fail even if the password is true
Secure hash and salt for PHP passwords
Is there a way to set initial state with rigid bodies? Let's say I set up a Rigid Body simulation in Blender (not in GE), and then run the simulation for a number of frames. Is there a way to tell Blender to use the current state and position as the initial state? So that when I go back to frame 1, the rigid bodies stay in the same place they did in frame X.  For instance, if I want a pile of bricks, I first place the bricks in the air and then let them drop down on the ground, coming to rest. When they have come to rest, I want to use that position as the starting position. I am in a situation where when I get an HTTP 400 code from the server, it is a completely legal way of the server telling me what was wrong with my request (using a message in the HTTP response content)  However, the .NET HttpWebRequest raises an exception when the status code is 400.   How do I handle this? For me a 400 is completely legal, and rather helpful. The HTTP content has some important information but the exception throws me off my path. pdfx: incomplete CIDset in some fonts I try to compile a document as pdf/x and pdf/a with pdfx under LuaLaTeX, and I am already quite successful. One thing still poses problems though: With some fonts I get the following error if I check the resulting pdf/a file with Acrobat: "CIDset in subset font is incomplete (font contains glyphs that are not listed)" (VeraPDF gives the same error, so the issue seems to be real).  Here's a MWE:  \RequirePackage{filecontents} \begin{filecontents*}{\jobname.xmpdata} \Title{Test}       \Author{Simon Spiegel}       \Language{de-DE} \end{filecontents*} \documentclass {article} \usepackage{fontspec} \setmainfont{Palatino Linotype} [Ligatures={TeX,Common}, Extension = .ttf, ] \usepackage[a-3b]{pdfx} \begin{document} Test \end{document}   I realise that not everyone will be able to compile this MWE due to the proprietary font, but since the problem only occurs with specific fonts, I had to use this example.  The pdfx manual mentions this error, but only in relation to XeLaTeX. According to the manual, it should not occur with LuaLaTeX.  From what I understand, this seems to be at least to some degree a problem of this specific font, but since I am relying on it, I am looking for a way to fix it.  EDIT  Here's a new MWE with a bunch of fonts which are hopefully more common (the paths have to be adapted of course).  \RequirePackage{filecontents} \begin{filecontents*}{\jobname.xmpdata} \Title{Test}       \Author{Simon Spiegel}       \Language{de-DE} \end{filecontents*} \documentclass {article} \usepackage{fontspec} \setmainfont{Georgia} [Ligatures={TeX,Common}, Extension = .ttf, ]  \newfontfamily\fontone{Verdana} [Ligatures={TeX,Common}, Extension = .ttf, ] \newfontfamily\fonttwo{Cambria} [Ligatures={TeX,Common}, Extension = .ttf, Path = {/Users/simi/FontExplorerX/C/Cambria/} ] \usepackage[a-3b]{pdfx} \begin{document} Test  \fontone Test  \fonttwo Test \end{document}   All these fonts give me the same error. I wonder if this only happens with .ttf OpenType fonts. Can you benefit from the Dueling fighting style for one weapon, then draw a second weapon as part of Extra Attack to qualify for Two-Weapon Fighting? Wake screen after scheduled task wakes computer How to use itemize in Table environment I want to create a table like the picture below, and i wish to itemize the lamba_1 > lamba_2 > 0 using 'item style', which is the cell of each categories. Can someone help me? How should I budget for ally/third party NPCs in 4e combats? I've done a few combats recently where the PCs and their enemies were not the only participants in the fight.  I wasn't sure how to budget XP in this case.  In the case of an NPC ally to the PCs, I see two options.     Draw the NPC up as a PC and increase the number of members in the party.    Draw the NPC up as an NPC and take its XP into account when budgeting.   I'm not sure if either option is correct, or if there are others.  But the ambiguity doesn't end there - what about if there's more than one side in the fight and nobody wants to team up?  I'd rather not treat it as one combat budget divided over two factions.  Unless the factions immediately unite, it's going to be an absurdly easy combat.  Would I be better off budgeting for two encounters than happen at the same time, and hoping that no PC gets ganged up on too much?  In general, how is XP budgeting done in complex combats with NPC allies and/or more than two factions? Netgear WNA3100 wifi dongle not recognized I was recently asked to find the accumulation points of the set $$S = \{(-1)^n + \frac{1}{n} \mid n \in \mathbb{N}\}$$  I answered that the accumulation points are $\{-1,1\}$, because despite the fact that $\frac{1}{n}$ diverges, we can still use $\frac{1}{n}$ to find an element arbitrarily close to either $1$ or $-1$, i.e. to show that there is an element in an arbitrarily small neighborhood of $1$ or $-1$. (No proof was required for this question --- this is my intuition.)  Am I right at all? ASP.NET Call Code Behind Function From Javascript How can I emulate 1.7.10's adventure mode in 1.8? What would you call a person who systematically dumps his work on you in a bid to evade responsibilities (with a work philosophy that when you don't learn or do it, you are never given the responsibilities and thus have no fear of making mistakes) but cluelessly whines to the same people around him for not having all the benefits that they (the higher ranking hardest working colleagues) earn.  PS: Owing to a bad management (Racial discrimination, Poor work ethic,ignorance, etc), if it helps. As per the title, what hardware do I need to be able to run various versions of Android? Question about Casella and Berger's proof of MLE invariance In Casella and Berger, p. 320, they have a proof of the invariance of the MLE. Let $g: \theta \mapsto \eta$ be a function. They define the induced likelihood as  $$ L^*(\eta \mid X) = \sup_{\{\theta: g(\theta) = \eta\}} L(\theta \mid X). $$  This ensures that $g$ is one-to-one with respect to the likelihood functions because if $g$ is not one-to-one, there may be multiple values of $\theta$ that map to a given $g(\theta) = \eta$.  Then they note  $$ \sup_{\eta} L^*(\eta \mid X) = \sup_{\eta} \sup_{\{\theta: g(\theta) = \eta\}} L(\theta \mid X) = \sup_{\theta} L(\theta \mid X). $$  The first equality just applies the definition of the MLE of $\eta$. However, the next inequality confuses me. They write,     The second inequality follows because the iterated maximization is equal to the unconditional maximization over $\theta$...   Can someone justify this claim or provide some intuition if the claim is supposed to obviously follow from definitions? Let $G=\langle a\rangle$ be a cyclic group of order $n$. Show that, for every divisor $d$ of $n$, there exists a subgroup of $G$ whose order is $d$. How do I unit test code that includes a callout? This is a canonical question and answer developed by the community to help address common questions. If you've been directed here, or your question has been closed as a duplicate, please look through the resources here and use them to shape more specific questions. To browse all canonical questions and answers, including more unit test resources, navigate to the  tag.  How do I unit test code that includes a SOAP or REST-based callout, or indirectly calls code that makes a callout? I'm getting an error saying that callouts are not supported. "work for" / "work in" / "work at" I would like to know what usually follows after each proposition in sentences with the word &quot;work&quot;. These are what I understand so far: I work for my boss. ( usually for certain person ) I work in a accounting corporation. (usually for business area ) I work at Samsung. ( usually for specific name of company ) Could you please tell me if I understand rightly? How to convert physical Ubuntu operating system into a virtual machine? A while ago I turned my PC into dual boot with Windows and Ubuntu. But my experience is, that I rarely boot into Ubuntu, so I wanted to make it available as virtual machine in Windows rather than as a second OS. Can you provide me some information which is the tool of my choice and how I can achieve this migration? I already have VMWare Player installed. font set problems in beamer i want to set the main font in my beamer as "Consolas" i do like this :  \documentclass{beamer} \usepackage{fontspec} \usetheme{Warsaw} \begin{document} \setmainfont{Consolas} \begin{frame} we discuss the ambiguities of existing security definitions and then provide a general framework for defining AKE security when involve strong adversary capabilities \end{frame} \end{document}   but after compile it , the font doesn't change, it is the same with that before the main font was set. what's the reason? Let $A$ and $B$ be $m \times n$ and $n \times m$ real matrices.  I proved that if $\lambda$ is a nonzero eigenvalue of the $m \times m$ matrix $AB$ then it is also an eigenvalue of the $n \times n$ matrix $BA$. But I am having trouble finding an example showing that this need not be true if $\lambda=0$  Thank you in advance