I had stored locations in wp with defined taxonomy. I would like implement a search that can take in consideration the location, eg,     search for 'car rental, Maryland'   All car rental are stored as users and every users has a location number in wp_usermeta table that map into location name. This map is done by the theme whenever a user set the field location in is account.  In my taxonomy of locations I have specified all the cities located in Maryland.  So the car rental 'XYZ' in Annapolis must result in the output of the previous search.   How can I exploit the taxonomy structure in the search?
I have two custom taxonomies applied to two custom post types. the terms list on the sidebar just fine and will list all posts associated with it. However, if you search one of the terms in specific, it doesn't bring up a post with that term.  Example:  Search for term "PQRI"  I get nothing. Any ideas? I've tried using various search plugins but they either break my custom search parameters or just don't work.
Expected value in an urn problem In an urn there are $n$ red balls and $m$ blue balls. I extract them without replacement. Let $X$=time of first blue. What is $E(X)$?  I found PMF of $X$ and it is, if $k &gt; n+1$  $$P(X=k) =\frac{n(n-1) \dots (n-k+1)m}{(m+n)(m+n-1) \dots (n+m-k+1)}$$  How could I evaluate $E(X)$?  Edit: I'm looking for an explicit form of $E(X)$ What is the REST endpoint URL to get list of site collections? If I go to SharePoint 2013 site, click on Admin -> SharePoint, you will see a list of site collections (the link is https://somename-admin.sharepoint.com/_layouts/15/online/SiteCollections.aspx)  What is the REST endpoint URL to get this list of site collections ?  I was trying _api/search/query?querytext='contentclass:sts_site' or _api/search/query?querytext='contentclass:sts_web', but it doesn't give the whole list... In PHP, is there an easy way to convert a number to a word? For instance, 27 to twenty-seven. Can crumbled feta cheese last almost a year? talks about feta cheese in a brine or milk bath lasting up to three months.  What about crumbled feta?  I was looking through the fridge, and found a 1/2 pound open container of crumbled feta.  I have only used about an ounce of it.  There is no sign of mold on it, and it smells like feta cheese.  A small sample tasted okay.  The amazing thing is that I bought it in October or November: 8-10 months ago!  I have a recipe that calls for almost a 1/2 pound of feta, and I will be the only one eating it (so I'm not trying to impress anybody!).  I dislike wasting food, but I dislike being sick even more!  Is it safe to use dry crumbled feta that is so old? I run a large bulletin board and I get spammers every now and again. My moderation team does a good job filtering them out but every time I IP ban them they seem to come back (I'm pretty sure it's the same person on some occasions, as the post patterns are exactly the same as are the usernames) but I'm afraid to ban them by IP address every time.  If they are on a dynamic IP address, I could be banning innocent users later down the line when they try to get to my forum through SERPs, but if I ban only via static IPs I know that I'm only banning that one person.  So, is there a way to properly determine if an IP address is static or dynamic?  Thanks. Model selection with low N? I've got a study which is kinda messed up by the design...Turns out I ended up with about 50 patients of which 80% have the outcome and 20% don't (binary outcome).  I've been turning in my bed for the last month trying to figure out what to do with this. The only real answer is "don't" but I have to deliver something in the next days as it's part of a master's thesis.  I have about 10 predictors of interest for the outcome (various variable types) and the research question is whether any of these predictors can predict the outcome. Some already have an established correlation in the literature while some are original hypothesis. Several are significant with a univariate logistic regression, but it doesn't look good in any other way than the actual p-value.  Now obviously I'm not going to be able to answer this research question sufficiently but if you were in my shoes, what sort of statistical analysis would you perform to relay to your supervisors?  EDIT: Link to my (anonymized) data (CSV): How to power a button's LED within a guitar? I'm working on a guitar, and the plan is to use three latching push buttons so that each pickup can be turned on and off individually. I'm fairly confident that the following diagram should work for that (Feel free to correct me)   The buttons I want to use are , which have a built-in LED when turns on when the button is pressed.   Which brings me to my question: Is there a way to power the LED? If I introduce a 9volt into the wiring, wouldn't that cause problems with the guitar's standard electronics? I'm trying to do something similar to this epsilon-delta graph I've found.  Specifically, I'd like to copy the placements and arrows, like the L+e and L-e coming out of L. Same thing with the x0 + d and x0-d coming out of the x0. Can someone help me with this? This is what I have so far.    \begin{tikzpicture} \begin{axis}[ ,         legend pos=north east,         axis x line=middle,         axis y line=middle,         x tick label style={/pgf/number format/fixed,                             /pgf/number format/fixed zerofill,                             /pgf/number format/precision=1},         y tick label style={/pgf/number format/fixed,                             /pgf/number format/fixed zerofill,                             /pgf/number format/precision=1},         grid = major,         width=8cm,           height=6cm,         grid style={dashed, gray!30},         xmin=0   ,     % start the diagram at this x-coordinate         xmax= 4,    % end   the diagram at this x-coordinate         ymin= 0,     % start the diagram at this y-coordinate         ymax= 11,   % end   the diagram at this y-coordinate %axis background/.style={fill=white},         xlabel=$x$,         ylabel=$f(x)$,         tick align=outside,         enlargelimits=false] % plot the stirling-formulae %\addplot[domain=0:200, red, ultra thick,samples=100] {K/(1 +    ((K-X0)/X0) * exp(r*x))    }; \addplot[domain=0:200, red, ultra thick,samples=100] {3*x-1 };  \addplot[line width=1pt, dashed, mark=none, black] coordinates {(0,8) (3,8)}; \addplot[line width=1pt, dashed, mark=none, black] coordinates {(3,0) (3,8)}; \addplot[line width=1pt, dashed, mark=none, blue] coordinates {(3.33,0) (3.333,9)}; \addplot[line width=1pt, dashed, mark=none, blue] coordinates {(2.666,7) (2.666,0)}; \addplot[line width=1pt, dashed, mark=none, blue] coordinates {(2.666,7) (0,7)}; \addplot[line width=1pt, solid, mark=none, blue] coordinates {(3.333,9) (0,9)}; \addplot[holdot] coordinates{(60,8.66)};  % 1\addlegendentry{$f(x) = 10 \sin (x)$}  \end{axis}   \end{tikzpicture}   which gives What exactly are DLL files, and how do they work? How exactly do DLL files work? There seems to be an awful lot of them, but I don't know what they are or how they work.  So, what's the deal with them? How can I get CSS comments with jQuery? I am wondering how I can read CSS comments out of a linked stylesheet.  I have this sample CSS loaded via:  &lt;link rel="stylesheet" type="text/css" media="all" href="test.css" /&gt;   &nbsp;  #test1{ border:1px solid #000; } #test2{ border:1px solid #000; } #test3{/* sample comment text I'm trying to read */}   I'm testing this in FF3. The following javascript reads the rules but doesn't read the comments in#test3.  window.onload = function(){     s=document.styleSheets;     for(i=0;i &lt; s[0].cssRules.length;i++){         alert(s[0].cssRules[i].cssText);     } } What are good strategies for booster drafts? I know that doing a booster draft can be somewhat complicated, because to really be good you need to know a lot about the set you're drafting (or be really good at evaluating cards quickly) and to pay attention to signal cards.    Besides going into the whole complicated strategies of knowing the set and paying attention to signal cards, what are some relatively simple/basic guidelines for drafting? One thing that made me curious while watching a football game on TV was the numbers that appear on the ground. For instance, there's a "1st &amp; 10" beside one team, but there was a "3rd &amp; 6" a few minutes prior (and I think it was beside the other team). What do these numbers mean? What are the in universe telltale indicators of an away beam down or beam up? What do witnesses experience? As a long time fan, I'm familiar with the tell tale sound effects that indicate when the beaming process is taking place. What do residents of the Star Trek universe witness from the ground when people beam back to or down from the ship? How to stop HTTPS requests for non-ssl-enabled virtual hosts from going to the first ssl-enabled virtualhost (Apache-SNI) I hope that title is clear.  How do I prevent HTTPS requests for non-ssl-enabled virtual hosts from going to the first ssl-enabled virtualhost (setup is Apache-SNI).  For example, using my abbreviated config below, requests for https://example.com (a non-ssl vhost) are being served by Apache at the ssl-enabled vhost https://example.org. I'd like to disable that behavior and possibly reply with the appropriate HTTP response code (unsure of what that is).  It may not even be possible, but I thought I'd ask.  # I actually have a SNI setup, but it's not demonstrated here. # I don't think it's relevant in this situation.  NameVirtualHost *:80 NameVirtualHost *:443  &lt;VirtualHost *:80&gt;     ServerName example.org &lt;/VirtualHost&gt;  &lt;VirtualHost *:443&gt;     ServerName example.org &lt;/VirtualHost&gt;  &lt;VirtualHost *:80&gt;     ServerName example.com &lt;/VirtualHost&gt;   EDIT: Maybe a mod_rewrite rule in the first ssl-vhost? Comprehensive list of tools that simplify the generation of LaTeX tables Find PostgreSQL server hostname on which it runs Not getting email alerts on answers on Stack Overflow Not getting email alerts on answers on my questions on stackoverflow.com   Used to get it earlier (>1 month back), but not getting alerts in recent times Email field in profile is filled  In prefs, "I'd like email notifications of activity on questions I've asked" is ticked.   What is missing?  Is it possible that signing up on another Stack Exchange community (say, Server Fault), on which by default, "I'd like email notifications of activity on questions I've asked" is unchecked affects same preference on stackoverflow.com? If so, it is a bug. How is the derivative of $\textrm{Trace}\left\{ X^T A X B\right\}$ with respect to $X$ equal to $AXB + A^TXB^T$? What term refers to those who adhere to scientism? Why is my camera so forgiving for overblown exposure when shooting in RAW?