Javascript - getting RGB color from a string
Create a hexadecimal colour based on a string with JavaScript
Using something like this:  try:    # Something... except Exception as excep:    logger = logging.getLogger("component")    logger.warning("something raised an exception: " + excep)    logger.info("something raised an exception: " + excep)   I would rather not have it on the error-level cause in my special case it is not an error. When testing the difference between 2 proportions why do we use a z-test rather than a t-test?    Further, is there a simple way to conduct an omnibus test for significant differences between more than 2 proportions (in the form of percentages). Is there an equivalent to a one-way ANOVA for this?  I imagine that you could use logistic regression (assuming you have the original data for the proportions in the form of 0s and 1s) Are there other options? font-not-found error: font "HoeflerText" cannot be found -- LuaLaTex error! I am running this CV/Resume example from :   Here is a relevant fraction of the code:  \documentclass[10pt]{article} %!TEX encoding =  UTF-16 % See geometry.pdf to learn the layout options. There are lots. \usepackage[hmargin=1.25cm, vmargin=1.5cm]{geometry} %symbols - the ones you see on the left of the email and of the phone \usepackage{bbding} \usepackage{amssymb} \usepackage{eurosym} %Colors/Graphics \usepackage{color,graphicx} \usepackage[usenames,dvipsnames]{xcolor}  %Fonts and Tweaks for XeLaTeX \usepackage{fontspec,xltxtra,xunicode} \defaultfontfeatures{Mapping=tex-text} \setromanfont[Mapping=tex-text]{Hoefler Text} ...   So... when compiling with LuaLaTeX (part of MiKTeX on Windwos XP x64), I am getting the following error:  ... luaotfload | Font names database loaded: C:/Documents and Settings/Ampleforth/L ocal Settings/Application Data/MiKTeX/2.9/luatex-cache/generic/names/otfl-names .lua luaotfload | Updating the font names database: luaotfload | Scanning TEXMF and OS fonts... luaotfload | Font names database saved: %s  : C:/Documents and Settings/Ampleforth/Local Settings/Application Data/MiKTeX/2 .9/luatex-cache/generic/names/otfl-names.lua  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !  ! fontspec error: "font-not-found" !  ! The font "HoeflerText" cannot be found. !  ! See the fontspec documentation for further information. ! For immediate help type H &lt;return&gt;. !...............................................    l.28 \setromanfont[Mapping=tex-text]{Hoefler Text}   What is wrong? How can I install this font so LuaLaTeX is picking it up? Where to download? Any other thoughts about this? Is Ubuntu an open source software? This is meant to solve this problem once and for all. What is every reason an object isn't showing up in a render or viewport in when using the cycles render engine? Using 'for' as a coordinating conjunction at the beginning of a sentence – is this acceptable? As I understand it, 'for' is a coordinating conjunction. Learning German as a second language has taught me specifics about reforming sentences, but it is an awful lot less common in English. If I were to rearrange the sentence: "I ate lunch, for I was hungry," so that 'for' was the first word of the sentence, by my reckoning I should end up with "For that I was hungry, I ate lunch." Does this new sentence have any grammatical errors? I inserted the word 'that' after 'for', because without it the sentence didn't sound right. Should I have? Is there a rule for that? Thank you in advance, an aspiring author.  Additional Information:  I am not having problems with the sentence, this is a general question to increase my knowledge of the manipulations of coordinating conjuntions. How to find and delete identical points? I recently performed  on a merged point feature class in ArcGIS 10.1.  I specified "1 meter" XY tolerance for the Integrate command.  The resulting point feature appears to be what I want except points that were integrated are now stacked on top of each other, which will be problematic in future processing steps.  The attributes for my dataset consist of an OID, Shape, x, y, z.  Where x and y = UTM coordinates and z = buffer distance.  The command  does not appear to work for my dataset (i.e based on Fields: OID, Shape, x, y, z and XY tolerance = 1m) as the output still has stacked points.  I am also working with big data--the integrate output has 37 million points.    There is a related thread, titled , although I would like to open the question up to python solutions too.  What is the best way to find and delete (spatially) duplicate points?  Is there a better solution to integrating such that the output does not contain overlapping points? taller than any student or taller than any other student Which of the following sentences is correct?     a)   1. John is taller than any student in his class.   2. John is taller than any other student in his class.        b)   1. No student is taller than John in his class.   2. No other student is taller than John in his class. Is there an easy way to log all commands executed, including command line arguments? I am trying to find how to log a specific instantiation of rrdtool to see whether the path it is receiving is incorrect.  I know I could wrap the executable in a shell script that would log the parameters, but I was wondering if there was a more kernel-specific way to monitor for that, perhaps a filesystem callback that sees when a particular /proc/pid/exe matches a given binary? Performing Raster Reclassification in QGIS? Is there a way to perform a reclassify of a raster image in QGIS?  In ArcGIS you can do that in Spatial analyst Tools→Reclass→Reclassify  Any ideas? What are the differences between $$, \[, align, equation and displaymath? I once learnt, that it is uncool to use $$, but why is that? Why does \[ not act as a abbreviation to \begin{align}? I noticed, that there is a difference, since one cannot use &amp; and \\ inside a block started with \[. MS Access to Oracle easy Conversion / Migration $D_8$ as a derived subgroup Every undergraduate student knows that there are (exactly) two non-abelian groups of order 8: Dihedral ($D_8$) and Quaternion ($Q_8$). The group $Q_8$ has many interesting properties; simple of them are: it has unique element of order $2$, all subgroups are normal, etc. A property, which is strange and not obvious, the group $Q_8$ has, is that there is no group $G$ such that $G/Z(G)$ is isomorphic to $Q_8$. On the other hand, $D_8$ has no such property; there are (infinitely many) groups $G$ such that $G/Z(G)$ is isomorphic to $D_8$; example - $D_{16}$.   The question, I would like to ask, is related to a property of $D_8$, which is not shared by $Q_8$. There are (infinitely many) groups whose derived subgroup is $Q_8$; example- $SL_2(3)$. For groups $G$ of order &lt;100, one can check on GAP that $D_8$ is not a derived subgroup of any group. The natural question is then:  Question 1: Does there exist a finite/infinite group whose derived subgroup is equal to $D_8$?  Question 2: Does there exist a finite/infinite group whose derived subgroup is equal to (general) dihedral group $D_{2n}$ of order $2n$ ($n&gt;2$)? using System; using System.Security.Permissions; using Microsoft.SharePoint; using Microsoft.SharePoint.Security; using Microsoft.SharePoint.Utilities; using Microsoft.SharePoint.Workflow;  namespace Change_Title_Event.Change_Title {     /// &lt;summary&gt;     /// List Item Events     /// &lt;/summary&gt;     public class Change_Title : SPItemEventReceiver     {        /// &lt;summary&gt;        /// An item is being added.        /// &lt;/summary&gt;        public override void ItemAdding(SPItemEventProperties properties)        {            properties.AfterProperties["Title"] = "Kevin: Changed by event receiver at" + DateTime.Now.TimeOfDay.ToString();            base.ItemAdding(properties);        }       } }   Where simple example, which works perfect on my local Sharepoint 2010. It is sandboxed.  But when I package this solution, it do not work on Sharepoint Online. I does not give any Errors either.  I think I am doing something wrong, something simple, but I can't simply find anything on Google about it.  Here is another who asks on the MSDN forum, but gets a very wierd reply, that I do not understand. Proving that the unities of a ring form a group under multiplication How do I create an Ubuntu live USB using a Mac? I'd like to create an Ubuntu live USB stick on a Mac to use to install Ubuntu on another machine. How do I accomplish this? JSF convertDateTime renders the previous day Restore console session after remote desktop disconnects? Is it possible (through group policy, etc) to automatically restore the console session to a Windows 8.1 PC after a remote desktop session disconnects?  I'm aware that you can run the command "tscon 1 /dest:console" during the RDP session to disconnect yourself and reconnect the console session, but is it possible to have this happen automatically? Internal "get/set" function of property? Here is my test code and picture:  import bpy   # Simple property reading/writing from ID properties. # This is what the RNA would do internally. def get_float(self):     return self["testprop"]   def set_float(self, value):     self["testprop"] = value  #bpy.types.Scene.test_float = bpy.props.FloatProperty(get=get_float,set=set_float) bpy.types.Scene.test_float = bpy.props.FloatProperty()   bpy.context.scene.test_float = 12.34     When I don't explicitly set the "get/set" function for my property, after assigning the value, I can get the property value by 'scene["test_float"]', but if I explicitly set the "get/set" function, then if I try to type in the same commands, I will receive a error "KeyError: 'bpy_struct[key]: key "test_float" not found'" . So what should I do to get the same results by using explicitly  "get/set" function? Power Series proofs $$\alpha(x) =\sum_{j=0}^\infty \frac{x^{3j}}{(3j)!}$$  $$\beta(x) = \sum_{j=0}^\infty \frac{x^{3j+2}}{(3j+2)!}$$  $$\gamma(x) = \sum_{j=0}^\infty \frac{x^{3j+1}}{(3j+1)!}$$  Show that $\alpha(x+y) = \alpha(x)α(y) + \beta(x)\gamma(y) + \beta(y)\gamma(x)$ for every $x, y \in\mathbb R$.  Show that $\alpha(x)^3 + \beta(x)^3 + \gamma(x)^3 − 3\alpha(x)\beta(x)\gamma(x) = 1$ for every $x\in\mathbb R$.  My work:  Ive noticed that $$\sinh(x)=\sum_{j=0}^\infty \frac{x^{2j+1}}{(2j+1)!}$$ and $$\cosh(x)=\sum_{j=0}^\infty \frac{x^{2j}}{(2j)!}$$ Can hyperbolic trig identies be used to solve these and if so how?