summary stringlengths 15 147 | text stringlengths 1 19.3k | answer stringlengths 32 22.6k | labels float64 0.33 1 | answer_summary stringlengths 5 164 |
|---|---|---|---|---|
Quartz cron expression of 0/0 | As a part of a input validation I was thinking whether this is a really valid cron expression and how it would executed:
0 0/0 * * * ?
Quartz validation returns true
org.quartz.CronExpression.isValidExpression("0 0/0 * * * ?")
So, does this run all the time, never, every hour or every minute...?
| More information at CronTrigger documentation. My guess is that the expression 0 0/0 * * * ? means once every hour (i.e. 0/0 does not denote every minute). However, if you need all the time (i.e. every second), you can use * * * * ? *.
| 0.333333 | 0 0/0 * * * |
How can I find out which server OS a particular site is running? | Is there a way to check which server OS a particular site is running. For example from linux command line. Maybe via telnet? But all I can get from "telnet www.google.com http" is:
Trying 209.85.173.104...
Connected to www.l.google.com.
Escape character is '^]'.
Can somebody dwell on the subject if possible at all?
| Many sites will tell you in the HTTP headers:
$ curl -s -I hotmail.com | grep Server
Server: Microsoft-IIS/7.5
$ curl -s -I pinterest.com | grep Server
Server: nginx/0.8.54
Some include the OS and sometimes version:
$ curl -s -I linuxquestions.com | grep Server
Server: Apache/2.2.9 (Unix)
$ curl -s -I red.com | g... | 1 | HTTP headers - HTTP |
Logging layers openings? | i would like to log every layers openings in PyQGIS, regardless of the opened project.
Is there a way to achieve that ?
Where should be the Python code be located in that case ?
Thanks for your help !
| What you need is to create (if it doesn't exist yet) a startup.py file in the QGIS python folder:
On GNU/Linux: /home/YOUR_USER/.qgis2/python/
On Windows: (User folder)/.qgis2/python/ Not sure about it, please tell me if you find it to update the answer
and write inside that file something like this:
from qgis.cor... | 0.888889 | Create a startup.py file in the QGIS python folder |
What's the difference in meaning between "emigrate" and "immigrate"? | What's the difference between emigrate and immigrate? They seem to have the same definitions in the dictionary but they are antonyms...
| Emigration & immigration are almost equal to product movement internationally:
Export: leaving this country and go to another country — emigration
Import: Leaving another country & arriving in to this country — immigration
| 1 | Emigration & immigration are almost equal to product movement internationally |
Demonstrating the insecurity of an RSA signature encoding scheme | I'm working on problem 12.4 from Katz-Lindell. The problem is as follows:
Given a public encoding function $\newcommand{\enc}{\operatorname{enc}}\enc$ and
a textbook RSA signature scheme where signing occurs by finding $\enc(m)$ and
raising it to the private key $d \bmod N$, how can we demonstrate the scheme's
... | An RSA signature scheme with public key $(n,e)$, private exponent $d$, and encoding function $enc$ (including but not limited to the question's $enc$), signs message $m$ as $$Sign(m) = enc(m)^d\bmod n$$
Such scheme is insecure if an adversary can figure out $k>0$ distinct messages $m_i$, and integers $u_i$, $r$, $s... | 0.888889 | An RSA signature scheme with public key $(n,e)$, private exponent $d$, and encoding function $ |
How do people know what they can get out of trade up contracts? | I hear people say "I can get this or that out of these skins" but how do you know what you can get out of a skin?
| The Concept
The whole idea of trade-up's are pretty simple. It provides an alternative to simply opening cases or trading weapons with other players. In order to use the trade-up contracts, all you need is 10 weapons of the same grade.
Weapon Grades
The grades go in the following order:
Consumer Grade > Industri... | 0.888889 | How to use trade-ups? |
House rules to make the cloister less of a game winning tile in Carcassonne? | In my experience, cloister tiles in Carcassonne are often "too lucky". If you draw a cloister tile in the beginning of the game, it will typically still require an investment of quite a bit of "meeple" time to obtain the full 9 points, which makes it a fair trade-off. However, after about half of the game, it's relativ... | I have never had this experience with Carcassonne either - typically in our games it's more likely that a late-game cloister will be wasted because the player doesn't have the meeples to spare for it.
Even an 8-point late game cloister will be outpaced by a decent sized field, and it will tie up that meeple too.
The ... | 1 | Carcassonne late game cloisters will be wasted because players don't have meeples to spare . |
Recovering files downloaded from IE | A friend of mine has opened a Microsoft Publisher document from an e-mail (in gmail) in IE. They made changes to the file, repeatedly saved the changes, then closed Publisher. I've tried looking in Temporary Internet Files, but no joy.
Where else might the file be? Is there anything I can do to get the file back? They... | It should be somewhere in "C:\Documents and Settings\%%USER%%\Local Settings\Temporary Internet Files\Content.IE5" (on windows xp).
On some other windows version you can always try opening another word document the same way through IE, then select "Save As" from the File menu and look where it is going to save that do... | 1 | "C:Documents and Settings%%USER%%Local SettingsContent.IE5" |
Offline WordPress post editor/creator | I have a WordPress site hosted on my personal server. I will be unavailable by Internet for a little while, and I'd like to write up some posts for my blog.
Normally, you need to be connected to WordPress to start writing the blog, and it will do offline-saving automatically. But this is limited to one entry, per tab.... | For the mac users there's blogo. By the time of this writing, the version 1 has been discontinued and the version 2 hasn't yet been released, but there's a video on the official site showing its capabilities. Those include:
WordPress, tumblr and blogger / blogspot support
Offline composing
Editing of already publishe... | 0.888889 | WordPress, tumblr and blogger / blogspot support Blogo |
Why choose an 80-200mm over an 18-200mm lens? | Being a beginner, I can't see why I must choose an 80-200 over an 18-200. Are there scenarios where an 80-200 would be preferable over an 18-200?
I will be buying a D7000 soon and am looking at these:
AF Zoom-NIKKOR 80-200mm f/2.8D ED
AF-S DX NIKKOR 18-200mm f/3.5-5.6G ED VR II
but similar considerations would app... | The biggest reason for difference in the two lenses is aperture. The 80-200mm is a constant f/2.8 throughout the focal range and the 18-200mm varies from f/3.5 to f/5.6, so substantially slower, especially at the far end. All this really means is that the 80-200 can let in more light at the same focal length over the o... | 0.888889 | The biggest reason for difference in the two lenses is aperture |
Inverse fourier transform of exponentially decaying function in the frequency domain | I want to take the inverse Fourier transform of the following function:
$$ \hat{f}(\omega) = \begin{cases}e^{-r \sqrt{\omega}} & \text{for } \omega > 0 \\ 0 & \text{otherwise}\end{cases},$$
such that
$$ f(t) = \int_{-\infty}^\infty \hat{f}(w)e^{i\omega t} d\omega= \int_0^\infty e^{-r \sqrt{\omega}} e^{i... | Substitute $\omega = u^2$ and consider the resulting expression as
$$-2 \frac{\partial}{\partial r} \int_0^{\infty} du \, e^{-r u} \, e^{i t u^2}$$
The integral will end up being some sort of error function of complex argument; the derivative may invoke a more elementary expression, but likely not.
| 0.666667 | Substitute $omega = u2$ and consider the resulting expression as $$-2 frac |
Questions about geometric distribution | I have some trouble understanding the record value for a sequence of i.i.d. random variables of geometric distribution. Following quotation is from Univariate discrete distributions By Norman Lloyd Johnson, Adrienne W. Kemp, Samuel Kotz.
The lack-of-memory property of the
geometric distribution gives it a role
... | Your second point looks wrong in the book. I think
$$R_n = X_{T_n} = X_{T_0} + \sum_{i=1}^n \left(X_{T_i} - X_{T_{i-1}}\right)$$
or
$$R_n = X_{T_n} = R_0 + \sum_{i=1}^n (R_i - R_{i-1})$$
might be better (and obvious).
Since $T_0 = 1$, $R_0 = X_{T_0} = X_1$, identically distributed as each of the $X_j$.
This is ... | 0.888889 | iid geometric variables are identically distributed as each of the $X_j$ |
Show tooltip on invalid input in edit control | I have subclassed edit control to accept only floating numbers. I would like to pop a tooltip when user makes an invalid input. The behavior I target is like the one edit control with ES_NUMBER has :
So far I was able to implement tracking tooltip and display it when user makes invalid input.
However, the tooltip i... | I'm giving the comment as an answer (I should have done that earlier) so that it's clear that the question has been answered:
MSDN Docs for TTM_TRACKPOSITION says that the x/y values are "in screen coordinates".
I'm not totally sure, but the y-coordinate probably corresponds to the top of the caret, you could add hal... | 0.777778 | MSDN Docs for TTM_TRACKPOSITION says that the x/y values are in screen coordinates |
Sort lines based on a variable-width number at a fixed position | I'm trying to sort a file using the Sort command but its not working:
The file contains lines like:
photo1
photo11
photo12
photo13
photo17
photo18
photo19
photo2
photo22
photo23
photo25
photo26
photo27
I'm using the command, sort -k6 Photos so that it start sorting after the string "photo", can someone tell where I... | Define the sort key with the start and stop character position of the key:
sort -nk1.6,1.8 file
See your friendly sort manpages.
| 0.888889 | Sort key with start and stop character position |
Homework with logarithms | I'm stuck on continuing the next exercise:
Considering:
$\log_{c}a = 3$
$\log_{c}b = 4$
and:
$$
y = \frac{a^{3}\sqrt{b \cdot c^{2}}}{2}
$$
What's the value of $\log_{c}y$ (integer)?
So far, I did all the substitutions that were obvious at my eyes:
$$
y = \frac{a^{3}\sqrt{b \cdot c^{2}}}{2}\... | Take $\log_c$ of both sides of the equation:
$$ \log_c y=3\log_c a+\frac12\log_c b+1-\log_c 2.$$
And so,
$$\log_c y=3(3)+\frac12(4)+1-\log_c 2=12-\log_c 2.$$
| 1 | $log_c$ of both sides of the equation |
Is there a way to fill your tires with nitrogen? | I know this is a rather controversial issue. I was skeptical as well before doing this on my car, and I have not refilled my car tires for several months. Before that I needed to adjust the pressure every couple of months at least.
Now I think it is a good idea to try this for our bikes. Especially since, when I see ... | I can inflate my car tires to proper pressure by checking them once a month or so and inflating them as needed using free air. It takes me maybe 5 minutes per month.
I can inflate my bike tires to proper pressure by checking them once a week or so and inflating them as needed using free air. It takes me maybe 2 minu... | 1 | I can inflate my car tires to proper pressure using free air |
Do you start writing GUI class first or reverse? | I want to write my first Java program, for example Phonebook, and I wonder what to do first. My question is should I write GUI classes first or util classes first?
I am database developer and want to know best practice in building program.
| In theory, there are at least five possible approaches.
Top-Down:
Start with UI mock-shots or a paper prototype. Turn them into real dialogs, and work your way from the button handlers and other controls down through the logic and to the database.
Bottom-Up:
Start with the data structures (probably the database sch... | 1 | Start with UI mock-shots or a paper prototype |
I'm new in developing responsive Wordpress Theme, so which framework to use or work from scratch? | I'm totally new in developing responsive Wordpress Theme sector. But fortunately, I've heard of Frameworks like: Underscore, child-themes, Genesis !!
What speciality each Framework has? I'm much confused about that, are these frameworks suitable for designing latest WP versions or just legacy Wordpress versions? like ... | The answer to which framework you should use is — no one knows.
From code perspective there is certain degree of baseline theme functionality/experience — enforced by formal standards. Those things are recommended/required for inclusion into official theme directory, outside of that people can do things a little more ... | 0.888889 | Frameworks exist for different reasons |
PHP DOMXPath gives empty string for /@ID | Simplified HTML
<tr>
<td class="orderOverviewAnotherColumn">0177-4066356</td>
<a name="orderTableSorted:orderTable:10:j_id504" id="orderTableSorted:orderTable:10:j_id504" href="#">
</tr>
<tr>
<td class="orderOverviewAnotherColumn">0177-4066357</td>
<a name="orderTable... | XPath is a case-sensitive language. Therefore, id and ID are entirely different things. In your HTML sample, the a elements have an attribute id, but none that is called ID. That's why the query does not yield any results.
Lowercase ID at the very end of your path expression:
//a[contains(@id,':j_id504')]/@id
I dou... | 0.777778 | XPath is a case-sensitive language |
Buck converter with op-amp, inductor issues when load changes | I'm looking at the designs for a simple buck converter which has the P mosfet, inductor, capacitor and reverse based diode. Instead of PWM, I'm trying out to use an op-amp to switch the P mosfet but one thing that I notice is that if the load changes from low resistance to high resistance then the inductor spikes the v... | An OpAmp will not be able to directly control the state of a MOSFET. The OpAmp will be too limited in output impedance, slew rate, and output voltage swing. You are going to want a device that can switch quickly while driving the gate capacitance of a FET.
There are different ways to control the on and off time of... | 0.777778 | OpAmp can not directly control the state of a MOSFET |
Why is it not dangerous to dissolve NaCl? | $$\ce{H2O~(l) + NaCl~(s) ->[\Delta] Na+~(aq) + Cl^{-}~(aq)}$$
When table salt is placed in water, it dissolves due to the polarity of water molecules. When solvation takes place, negatively polar sides of water molecules attach to $\ce{Na+}$ ions, and positively polar sides of water molecules attach to $\ce{Cl-}$ i... | [A really-good answer to this question should include quantitative evidence, but here is my hand-waving version...]
Solvated sodium ions ($\ce{Na+}$) aren't all that reactive. Surrounded by a lot of polar water molecules, they're actually quite stable. What you're thinking of is solid sodium (Na) which will "react v... | 0.666667 | Solvated sodium ions are stable and not as poisonous as chlorine gas |
How to start working in magento? | I am new in magento and a little confused to how to start work in it.
I studied the basics of magento and found its structure really complex.
I never worked on a CMS before and I have a little knowledge of php and html but I am not good in css.
Should I learn the css before start working in magento or it will not be ... | I have learned magento here . This is awesome tutorials, but I had a lot of knowledge about wordpress and php then, so it was easy to adapt to magento. Try to learn html and css. That you will always need.
Happy coding.
| 0.888889 | How to adapt to magento |
What creates this strange flare and how to prevent it? | I shot at a concert for the first time. The pictures were pretty good for the capability of my equipment, but on some shots, the light has a very strange flare. It isn't the usual rays, but some soft, non-symmetric form which I find quite strange, and, on most shots, distracting.
On this image, you can see it just ... | All cameras contain lenses which are actually comprised of several "lens elements." Lens flare is caused by non-image light which does not pass (refract) directly along its intended path, but instead reflects internally on lens elements any number of times (back and forth) before finally reaching the film or digital se... | 0.888889 | Lens flare is caused by non-image light which does not pass (refract) directly on lens elements |
Fast multi-tag search plus result ordering and paging? | Can somebody explain how StackOverflow search works? I would like to add same features to a project I'm working on.
In SO, it's possible to filter the questions by multiple tags (e.g. c#, java) and get results sorted/paged by date or number of votes?
I realize that RDBMS with full-text engine can be used to filter an... |
As of April 2011, Stackoverflow uses Lucene.NET.
Source: (Jeff Atwood) http://blog.stackoverflow.com/2011/01/stack-overflow-search-now-81-less-crappy/
Their old method was Homebrew + Full Text SQL
How to search by tags in Lucene
Top N with Lucene
Paging with Lucene
| 0.777778 | Stackoverflow uses Lucene.NET |
Set natbib options after loading natbib package | Is it possible to set (or change) the natbib package options after its loading (i.e. after the line \usepackage{natbib})?
The reason I need it is that I'm using a LaTeX style from a journal and it has a natbib option which means it "...handles reference entries in the author-year system by using the natbib package", a... | The \biboptions macro would seem to be set up by the elsarticle document class (or one of its subsidiary files), rather than by natbib. If you can use this command to disable sorting/compressing of numerical references, I'd do so.
The commands natbib provides to change citation-related defaults are \setcitestyle and \... | 1 | biboptions macro set up by elsarticle document class (or one of its subsidiary files) |
Orthogonal complement $V^\bot$ of the vector space $V=\langle(1,0,2),(3,-1,0)\rangle$ and $V\cap V^\bot$ | Consider the inner product defined by polarizing the quadratic form $$q(x,y,z)=x^2-z^2+4xy-2yz$$ on $\mathbb{R}^3$.
Let $V=\langle(1,0,2),(3,-1,0)\rangle$. Could you show me how to find $V^\bot$ and $V\cap V^\bot$? I get $V^\bot=\langle(2,6,1)\rangle$, which doesn't feel right, and don't know how to calculate the inte... | The symmetric bilinear form that gives rise to your quadratic form $q$ is given by
$$
b((x_1,y_1,z_1),(x_2,y_2,z_2))=x_1x_2-z_1z_2+2x_1y_2+2y_1x_2-y_1z_2-z_1y_2
$$
Now the conditions of being orthogonal to $(1,0,2)$ and to $(3,-1,0)$ are respectively given by setting for instance $(x_2,y_2,z_2)$ equal to that vector... | 0.777778 | symmetric bilinear form $q$ is given by $$ b(x_1,y_1,z_1),(x |
Learning how to be a good rhythm guitarist before becoming a lead guitarist, where to start? | I have recently been trying to hone in my improvisational skills. I'm stuck in the first position of the Am pentatonic box and can't move away from it. Whenever I try to move out of it, I randomize the next box that I go to, which most of the time leads to bad sounding improvisations.
I have narrowed the problem down ... | I think there's some possibility for confusion of terms because lead and rhythm means different things depending on what precise area you're talking about.
In a rock band, there's usually a division between the rhythm guitar whose job is primarily harmony and chords (the left hand of the piano) and the lead guitar who... | 1 | Lead and lead playing can be very rhythmic. |
Replicate a big, dense Windows volume over a WAN -- too big for DFS-R | I've got a server with a LOT of small files -- many millions files, and over 1.5 TB of data. I need a decent backup strategy.
Any filesystem-based backup takes too long -- just enumerating which files need to be copied takes a day.
Acronis can do a disk image in 24 hours, but fails when it tries to do a differential... | Check out Shadowprotect. It's not continuous, but it can be set to do an incremental every 15 minutes. It's pretty awesome software. Add on the ImageManager enterprise portion and it also gives you some great replication abilities for offsite backups.
| 0.833333 | Shadowprotect can be set to do incremental every 15 minutes |
What is the cardinality of the family of unlabelled bipartite graphs on n vertices? | I have attempted to calculate the number of unlabelled bipartite graphs as follows:
Let $G = (V_1, V_2, E)$ be a bipartite graph on $n$ vertices with $|V_1| = m$ and $|V_2| = n-m$. Assume without loss of generality that $|V_1| \leq |V_2|$ so $m \leq \left\lfloor \frac{n}{2} \right\rfloor$. If $G$ is complete bipart... | It seems that what Andrew wants to count are what are called in enumerative contexts
"bicolored graphs". A bicolored graph is a graph in which the vertices have been colored black and white so that every edge joins two vertices of different colors. A bipartite (or bicolorable) graph is a graph that has a bicoloring. A ... | 0.666667 | Counting unlabeled bicolored graphs in enumerative contexts |
Does the number of visits matters for SEO? | Considering I have a website and I have millions of direct views (entering directly by URL, not by any other URL) and that there is no links to this site anywhere else (or that this views don't generate any external link to the site), will these visits increase my positioning in search engines such as Google?
Are sea... | Search engines have no way of knowing what traffic your website gets so it can't be used as a ranking metric in their algorithm. (Google has clearly stated that Google Analytics data is not used in their ranking algorithm).
Even if they did, the number of visits would not be a good judge of relevance as it is easy to ... | 0.888889 | Search engines have no way of knowing what traffic your website gets |
Which achievements are missable if sharing Skylanders between multiple profiles? | Since purchasing Skylanders with my son and realizing you can't have different profiles on each character, I've also noticed some achievements are not unlocking depending on who first used the Skylander and who it is tied to. In short, all the Skylanders appears to be tied to my profile, but it's preventing some achiev... | In addition to the ones you mentioned, the following achievements may give you trouble..
I Love Shopping - Buy first Upgrade - if all of the Skylanders already have one+ upgrade
Climb to the Top - Level Up to 10 - If all Skylanders are already at 10
True Portal Master - all other Achievements - obviously, if you ca... | 1 | if all Skylanders are already at 10 True Portal Master - all other Achievements |
printf is causing a segfault with getlogin() | I'm new to C, so I apologize if the answer is obvious, I've searched elsewhere.
the libraries I'm including are:
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <sys/stat.h>
the code that is f... | You should check getcwd return value. According to man page of getcwd:
If the length of the absolute pathname of the current working
directory, including the terminating null byte, exceeds size bytes,
NULL is returned, and errno is set to ERANGE; an application should
check for this error, and allocate a larg... | 1 | Getcwd return value |
Enabling aggregate and compress CSS files caused error on site access | I set this tick box in the performance area, and on clicking Save I now cannot access the site, even the performance area to disable this! any one know if I can directly change this in the DatabasE?
EDIT:
I have refreshed the Database, thankfully no updates since it went live. This does raise the question though as I... | If you're looking for a good alternative for core's preprocessing of CSS/JS check out the Advanced CSS/JS Aggregation module
| 0.777778 | Advanced CSS/JS Aggregation module |
Eved Knani versus a Woman | In terms of obligation in mitzvos, what is the difference between an Eved Knani and a woman? And if they are the same, why do we have two separate brachos for each in the morning prayers?
| The שלמי חגיגה in 6:(4) (starting on page 30) has 2 long pieces discussing this – and from what I understand, women and Eved Knani are incidentally similar in their obligations.
(Not completely incidental, as their dispensations have the same source: both the Eved Knani and the Married Woman have another Boss besides ... | 0.888889 | Women and Eved Knani are incidentally similar in their obligations . |
What does it mean to interpret the Bible literally? | Here are some common definitions from a dictionary for ‘literal’:
Being in accordance with, conforming to, or upholding the exact or primary meaning of a word or words.
Word for word; verbatim: a literal translation.
Avoiding exaggeration, metaphor, or embellishment; factual; prosaic: a literal description; a literal... | Those who claim to interpret scriptures "literally" will otherwise propose this means to "accept the plain meaning" of the text, rather than seeking a symbolic, allegoric, or otherwise subtle hidden meaning.
Of course the "plain meaning" itself can be subjective, causing differences in interpretation based on the "lit... | 0.888889 | "accept the plain meaning" of the text |
COMP_LINE not set despite bash completion being installed | I'm using homebrew's bash completion package on OSX, which is installed in /usr/local/etc/bash_completion. It's working fine, but there are many extensions for it which rely on various environment variables beginning with COMP_, such as COMP_LINE. These environment variables unfortunately aren't being exported into my ... | $COMP_LINE is not an environment variable. It is an internal variable, and it's only visible to the completion functions, not to other shell usage. (Most other internal variables are visible in declare.)
| 0.888889 | $COMP_LINE is not an environment variable |
Does "so far, so good" carry a negative connotation? | As a follow up to this etymology question, does "so far, so good" carry a negative connotation?
For example, after having her sonogram, my wife asked the technician if everything was okay. The technician replied, "so far, so good." My wife later remarked that she didn't like that the technician used the phrase becau... | I don't think "so far, so good" implies that something will go wrong later, not nearly as much as it implies it does that something can go wrong later.
I might use those words to describe the status of a major project that appears to be on-time, or a to report progress on a long trip that has been without incident.
A... | 1 | "so far, so good" implies that something will go wrong later, not nearly as much as it implies it does that something can go |
Change Drupal Commerce line item titles | I'm building a webshop with a lot of promotions in. And some articles in the shopping cart, have a linked promotion. And I want to show this promotion in the shopping cart summary (before the order completion).
Is there a way to change the title of the product in the shopping cart summary?
It's a shop without any vi... | The answer depends on the nature of your 'linked promotions'. It might be that you should add an entity reference field to your line item type, then add the field to the shopping cart view. If your promotions are based on tagging products with taxonomy terms, it's as simple as adding the field to the cart view.
Or, as... | 0.888889 | Adding an entity reference field to your line item type to the cart view |
Insufficient information to create shipping label(s) Magento Enterprise | I am using Magento Enterprise 1.14.0.1
I have Fedex Shiiping method activated and have entered in the information for production that was provided and confirmed by Fedex to be correct for the account ID, Meter, Password, and the key. I have sandbox set to no since the credentials are for production. I have a Max packa... | Magento requires below data to generate shipping labels.
Admin First Name
Admin Last Name
Store Name
Store Phone
Origin Street Address
Origin City
Origin Region/State
Origin Zip
Origin Country
You will see the error if any of the above is missing.
Navigate to
System -> Configuration -> Shipping Settings to... | 0.888889 | Magento requires below data to generate shipping labels |
Will installing Ubuntu using Wubi erase Windows? | I have an HP laptop with 2 partitions: C: and D:, with windows 7 installed in the C: drive and D: is the Recovery partition.
When I try to install Ubuntu 12.04 LTS using Wubi, it only shows the C: drive for installing and not the D: drive where I wanted to format and install ubuntu.
So, if I go ahead and install i... |
or it will just install ubuntu as a program in windows??
Indeed. Wubi will install it as a program in Windows. This will make Ubuntu slower and dependent on Windows.
If you don't want to install as a program in Windows, you should follow these instructions.
| 0.888889 | Wubi will install Ubuntu as a program in Windows |
Set natbib options after loading natbib package | Is it possible to set (or change) the natbib package options after its loading (i.e. after the line \usepackage{natbib})?
The reason I need it is that I'm using a LaTeX style from a journal and it has a natbib option which means it "...handles reference entries in the author-year system by using the natbib package", a... | I think I have found the answer as far as Elsevier articles are concerned (I am using elsarticle.cls). elsarticle-num.bst requires entries in the BibTeX database to be preceded with a \bibitem tag, e.g.
\bibitem{
@article{Bridgman1914,
author = {P. W. Bridgman},
title = {A complete collection of thermodynamic for... | 0.777778 | elsarticle-num.bst requires entries in the BibTeX database to be preceded with a bib |
Unable to shut down laptop after Logging Out of Ubuntu 12.04 | I logged into the Ubuntu 12.04 LTS and instead of installing it... I pressed the Log Out button, thinking of installing it some other time.
But then a screen appeared asking for Username and Password.
I typed in my name as the User name and a password of my choice..I was halfway through typing my password..just then ... | If you're running from a live CD/DVD/USB and have not yet installed Ubuntu, and you clicked Log Off, that's not part of the installation. It's not asking you what username and password you want to use in the system you're installing. It's asking for the username and password for the live environment.
As AliNa says, th... | 0.888889 | If you're running from a live CD/DVD/USB, click Log Off |
Silicone caulk for shower and tub? | I am about to seal the gap between my tub and the wall tile with caulk (it was originally grout which cracked so I chiseled out what I could). I was planning to use silicone caulk (GE II), but a contractor suggested that pure silicone is not ideal since all caulk will eventually need to be removed and replaced and sili... | That gap is to small. Push really hard with the float to completely fill it with grout, giving it one more shot; next time caulk it. Caulked tub surrounds are one of my pet peeves; I'm the one who gets to scrape that mess out.
Whether grout or caulk, I like Some Guy's advice: prestress the tub by filling it with water... | 0.888889 | Caulked tubs are one of my pet peeves |
Show comments fields in two columns | I am using comment_form(); in loop-single.php file to show the comment form. I have the following fields in it: Name, Email, Website, Title, Comment. Currently all these form fields show underneath each other. I tried to modify the form in such a way so that all textbox values appear in left column & only the texta... | What you need are two new containers: one for the single line fields, one for the textarea. Looking at the default comment form, we can see where their start and end tags should appear. I have added some comments to make that easier to see:
<form action="<?php echo site_url( '/wp-comments-post.php' ); ?>" met... | 0.777778 | Using a clearfix handler in a style sheet |
Installation Steps of Oralce Client 11.2 | I tried to install Oracle Client in Ubuntu latest version.Got some problem and also unable to resolve it.Please reply asap.
Error Msg:libpq.so.57 is empty,not checked
| The library libpq is required by Perl DBI.
sudo apt-get install libpq5
Next time you can use this command t find the missing package:
% apt-file search libpq.so.5
libpq5: /usr/lib/x86_64-linux-gnu/libpq.so.5
libpq5: /usr/lib/x86_64-linux-gnu/libpq.so.5.7
| 0.777778 | Perl DBI apt-get install libpq5 |
How to change questions to indirect speech if we are asking about personal information? | I want to to know how to change questions to indirect speech if we are asking about personal information? E.g "What's your name?" said John to the man.
"How old are you?
What's your job?
| John asked the man what his name was.
John asked the man how old he was.
John asked the man what his job was.
Inversion as shown (... how old he was) is necessary.
The tense changes because the original sentence in the direct speech is past as in "said John to the man." In some cases such a... | 1 | John asked the man what his name was . |
Bootstrap datepicker default date | I'm using Bootstrap datepicker and I'd like to make that when datepicker shows, default date would be set after 14 days from today. I've got this code but it doesn't work, default date is still set to today. Could anyone explain what am I missing? Thanks in advance.
JS:
var plus14days = new Date();
plus14days.s... | Just a consideration,
api changed setValue to setDate (http://bootstrap-datepicker.readthedocs.org/en/release/methods.html#setdate)
| 1 | SetValue to setDate |
How to send an email from command line? | How to send an email from command line or script? I want to be able to run the script programmatically by passing the receiver and the message.
| There are two programs that I am aware of which will easily allow you to configure your Mac to send email from the command line.
I have written up HOWTOs for both of them:
mailsend
msmtp
Of the two, I suggest msmtp.
Configuration is complicated enough that I'm not sure if I should replicate all of the steps here,... | 0.888889 | How to configure your Mac to send email from the command line |
COD Black Ops: Can opponents voice chat in free for all? | In a free for all match, can I voice chat with my opponents?
One of my friends started playing Black Ops (it's her first FPS game ever) and to teach her how to play I created a private free for all match so we would be the only two players on the map.
I tried voice chat with her and everything was set up correctly (... | In Free for All, all chat is enabled. You should be able to talk to any player in the match.
| 1 | Free for All Chat enabled. |
What benefits do "title search companies" have over physically visiting a land records offices? | I am looking into buying my first piece of real property.
Basically my question is "why do title search companies even exist?". Who uses them? And why?
Are they doing something special apart from going to the local authoritative body and performing a title search on a parcel id number?
A) Am I paying them just so th... | Title agencies perform several things:
Research the title for defects. You may not know what you're looking at, unless you're a real-estate professional, but some titles have strings attached to them (like, conditions for resale, usage, changes, etc).
Research title issues (like misrepresentation of ownership, misrep... | 1 | Title agencies perform several things: Research the title for defects . |
PostGIS to GeoJSON with GDAL: how to get lat/longs? | I'm trying to convert line features from PostGIS to GeoJSON files, as follows:
from psycopg2 import *
from subprocess import call
conn = connect(dbname='gis')
cur=conn.cursor()
cur.execute("SELECT distinct osm_id,route_name from planet_osm_line where route_name like '%Rail Trail' and network='rcn';")
for record in ... | OpenLayers uses the EPSG:3857 coordinate system, in meters, and not the WGS84 system, in degrees, look at OpenStreetMap Wiki: EPSG:3857
But why use subprocess and ogr2ogr?
1) you can use directly the PostGIS ST_AsGeoJSON function:
import psycopg2
conn = psycopg2.connect("dbname='osm' host='localhost' user='me'")
cu... | 0.888889 | What is the srid of your layer? |
Darken gray hair in GraphicConverter? | I use GraphicConverter on a Mac to tweak my photos before uploading to share. Typically, I'll brighten or adjust a shadowed area or contrast, that sort of thing. Sometimes I'll hide a defect (such as a person who walked in front of a shot) by copying adjacent background over the top.
Is it possible to darken gray hair... | Graphicconverter for OSX didn't add Dodge/Burn capabilities until version 9.2 this month. This is quite amazing that it was missing until now considering they are trying to compare to Adobe Photo shop. Using this functionality will likely achieve what you are describing, although you could also do it with layers and f... | 1 | Graphicconverter for OSX didn't add Dodge/Burn capabilities until version 9.2 this month |
Flash Memory Failure Modes - Block Failure | My understanding is that typical flash memory failures, such as those due to erase cycles, occur at the bit level. I have a flash in which entire blocks (actually two blocks) are failing. Is there a common explanation for this?
More specifically, I have two blocks in a NAND flash device which are failing. These bl... | It could a number of things, you don't say what generation or device type etc. so specific's will be lacking. Some devices are made with extra blocks and during test if a block is found bad the other block is routed into it's place through programmable switches.
The routing channels for the substitutional blocks may ... | 0.777778 | if a block is found bad the other block is routed into its place through programmable switches |
ASP.NET MVC 2.0 NHibernate Configure() issue | I have installed NHibernate for my ASP.NET web app although I'm getting a problem in real-time on the following line of code:
if (_sessionFactory == null)
{
_sessionFactory = new Configuration().Configure().BuildSessionFactory();
}
Looking at the inner exception t... | About "Could not find hibernate.cfg.xml": you can either set it to "Copy to Output" (see this) or configure it as an embedded resource.
About "Could not load assembly Infrastructure": you're missing Infrastructure.dll in your bin, or one of its dependencies, just as the error says.
About missing DynamicProxy.dll: if ... | 0.666667 | "Could not load assembly Infrastructure" |
How to stop shell script if curl failed | I have script that used curl
when i pass wrong parameters to script curl failed but script continue executing.
I have tried use curl -f/--fail parameter but problem does not solved.
What is the best way to stop script?
I have founded my mistake.
I used curl command into another command
echo `curl --fail ... || exit... | You can check for exit code using $?:
exit_status = $?
if [ $exit_status != 0 ]
then
exit $exit_status
fi
If you want to analyze exit status, take a look at the Exit codes section from man curl page. There are a lot of different codes, depending on why it failed.
EDIT : You can use command1 || command2 as we... | 1 | How to check for exit code using $? |
Removing blanks from a column in Excel | If you select the column and press F5, click Special, choose Blanks then right click the selected cells and delete - that'll get rid of the empty cells.
Not my bag but I also found this.
| 0.666667 | Select the column and press F5 and right click the cells and delete . | |
Myrrix java.io.IOException upon ingest when following the tutorial | I am attempting to follow the tutorial for evaluating Myrrix for my collaborative filtering needs:
http://myrrix.com/quick-start/
On my Windows 7 laptop, I am able to get the stand-alone java binary running. I can load the web interface on port 80. However, when I go to ingest the sample audioscrobber data I get the m... | Odd. If I follow the path in the provided error, the final 'tmp' directory is missing. If I manually add it in windows explorer and attempt to re-ingest, things appear to go as planned.
Viewing the log, it appears that the learning process has begun.
| 0.888889 | 'tmp' directory is missing if I manually add it in windows explorer |
How much water should I expect to be left in a dishwasher? | After every load there is always some water left in the bottom of the drain basket/filter. It's not up into the dishwasher itself, but when I reach into the filter to clean it, there's always water in it. I have a GE QuietPower 3.
Is this expected? If not, what can I do about it?
| I had exactly the same issue with my dishwasher. Standing water at the bottom after the wash cycle almost every time, yet the dishwasher appeared to be draining correctly.
Nevertheless, the first thing to verify is that the dishwasher is indeed draining properly. Start a cycle to partially fill the washer, then manu... | 1 | Does the dishwasher drain properly? |
Are mutliple database calls really significant with a network call for a web API? | At one of my employers, we worked on a REST (but it also applies to SOAP) API. The client, which is the application UI, would make calls over the web (LAN in typical production deployments) to the API. The API would make calls to the database.
One theme that recurs in our discussions is performance: some people on the... | If the database is on a different server than your REST service, each database call will result in a network roundtrip and that can significantly hurt performance:
I once observed a single webservice call be translated to about 500 database queries - this was hardly a problem when both the webservice and the database ... | 0.555556 | if the database is on a different server than your REST service, each roundtrip will result in a network roundtrip. |
What to do with old connections when moving outlet to dedicated circuit? | I would like to remove one of the outlets from a circuit, and run a dedicated wire to it from a separate breaker, placing it on it's own circuit.
When I disconnect the existing circuit from the receptical, that will leave pigtails for the old circuit.
What do I do with the pigtails from the old circuit that the outle... | Of the three options you mention, the first is fine; leave the wires in the box, spliced.
The second, no good at all. Splices must be in an accessible box.
Third, also fine. You can certainly blank up the existing box and run new.
I prefer a fourth option; Leave the existing receptacle alone and run a new circuit to... | 0.888889 | Leave the wires in the box, spliced and no good at all |
Privacy of Gmail for business? | Considering the recent litigation in which Google apparently claimed that all the emails, all the data in them, are Google's property and can do with the data whatever they want, I get frequent questions from our employees how does this translate into Gmail for business which we're using. Is the data in our corporate a... | Send your employees to Google's Gmail for business benefits page. http://www.google.com/enterprise/apps/business/benefits.html?#security
It says "When you put your data in Google Apps, you still own it, and it says just that in our contracts."
| 0.777778 | Send your employees to Google's Gmail for business benefits page |
Wrong spacing around guillemets | I use UTF-8 encoding to type a document in French, with the following definitions for guillemets:
\DeclareUnicodeCharacter{AB}{\og}
\DeclareUnicodeCharacter{BB}{\fg\xspace}
and the Babel package:
\usepackage[francais]{babel}
However, when I type a text like ceci cela «~quoted~» ceci cela, the spacing is wrong aro... | The spacing is already inserted by \og and \fg, so you shouldn't type the ~. You can consider changing the definition of the Unicode character as
\DeclareUnicodeCharacter{AB}{\og\ignorespaces}
\DeclareUnicodeCharacter{BB}{\unskip\fg}
so that inputting
Ces simulations «directes» sont ainsi
Ces simulations « directe... | 0.888889 | og and fg spacing for Unicode characters |
Why Do People "Pre-empt" With Seven Of A Suit In Bridge? | One advantage of a "pre-empt" is quite clear: You take two levels of bidding away from your opponents with a "three" bid. But could that be cutting off your nose to spite your face?
Recently, I had something like KQxxxxx, and a side queen (I forget how the other suits were distributed but was told it didn't matter). M... | Your response of "With 7 points?" makes me think you have some misconceptions about the hands the you ought to preempt on. (As an aside, I am really curious: What do you preempt on?).
One normally preempts on highly offensive hands, which when played in any suit other than your long suit will offer very little defens... | 1 | What do you preempt on highly offensive hands? |
Verify $_POST script will work correctly | can someone read through this script really quick and verify that I didn't miss anything... I'm not getting any errors in my IDE so just have to make sure the structure is correct
<?php
require_once '/usr/local/cpanel/3rdparty/lib/php/Mail.php';
$db_server = 'localhost';
$db_user = '-----';
$db_pass = '-----';
$d... | I don't know about real quick. What you have doesn't really compliment a quick review. First off this is procedural code, which is fine if you are just getting started, don't let anyone tell you otherwise. But procedural code is not "quickly" read. I will suggest that once you have a firm grasp on the language, you sho... | 1 | How to get an array from a dbSet() function? |
Why doesn't my MacBook recognize the original HD any longer? | I replaced the stock hd with a samsung ssd (840) about 18 months ago. It died last week. I tried putting the original HD back in and the computer won't recognize it. Even when I hold down the option key when booting nothing happens. When I remove the disk and connect it via USB it boots up fine as an external hard driv... | If the original drives does work in an external case but not internally than patrix has the right idea.
We know the old drive is good as it works in an external case
We know the SSD does not work at all because it doesn't work internally or in the Mac.
In both of those cases drives are not working internally, one kno... | 1 | Logic dictates that the problem is inside your MacBook |
What if I have a voltage between ground neutral? | What does it mean when there is voltage between ground and neutral (220V) and between phase and neutral (220V) but no voltage between phase and ground (0V)?
What could happen? Is it safe?
Is it normal that when I plug in a lamp, it works just fine?
| Actually, it sounds like your phase and neutral are swapped. This is shown by seeing full voltage between neutral and ground but no voltage between phase and ground.
If you have non-grounded appliances, such as lamps, you will potentially have lethal voltage on the metal case.
I recommend calling an electrician immed... | 1 | If you have non-grounded appliances, you will have lethal voltage on the metal case |
Another instructor is pushing me out of the classroom right after my class ends | I am a graduate student in math in my final year, and for several years have been teaching at my department as a lecturer. This semester, in the same lecture hall there is another lecture that starts 20 minutes after my class ends. It's taught by another instructor from my department. I usually have many students comin... |
Last time the instructor told me in front of my students that I don't understand "simple things" and that I am "playing games".
This is where she lost her argument. You should have simply totally ignored her. Let her make a formal complaint and only respond to such formal complaints. You don't have the duty to re... | 1 | Let her make a formal complaint and only respond to formal complaints |
Rotating vector3 by a quaternion | I am attempting to rotate a vector3 by a given quaternion.
I know that this is true
v' = q * v * (q^-1)
I know that q^(-1) is the inverse which just -q/magnitude(q), but how do I map the multiplication of the vector to the quaternion to get back a vector?
I have found that you can treat v as a matrix, and convert ... | Here is an alternative way to transform a vector by a quaternion. It is the way MS does it in the xna framework.
http://pastebin.com/fAFp6NnN
| 1 | How to transform a vector by a quaternion |
Energy required to break single bond vs double bond vs triple bond of a carbon atom in an organic molecule | Assuming every other conditions are the same, what would be the comparison of energy required to break single bond, double bond and triple bond of a carbon atom in an organic molecule?
| Let it be organic or inorganic compound
More the no. of bonds between 2 atoms more the energy required to break it.
This is because intermolecular force of attraction increases as the no. of bonds increase. So to break the bonds one needs more energy or so called more bond enthalpy.
| 1 | The no. of bonds between 2 atoms |
Android Switch Widget: Setting android:track causes thumb and track to not show up | I am having trouble customizing the look of an Android Switch widget. I have custom xml drawables that I want to use for the thumb (the little button part that usually says On or Off) and the track (the background that the thumb slides across). When I set just the thumb using android:thumb, it works fine. When I set th... | I just stumbled upon the same problem and found a fix through on the HoloEverywhere issue tracker. You'll need to set the <size> of the drawable XML shape you are using.
Not working (the widget is there and I can interact with it, but I can't see it, it's hidden):
<shape xmlns:android="http://schemas.android... | 0.666667 | <size> of drawable XML shape |
SonicWall TZ 200 Network bandwidth or usage monitoring | I was using Pfsense for a while and recently replaced it with SonicWall TZ200.
What I miss now is a Bandwidth or usage monitoring like BandwidthD to monitor IP wise traffic.
How can I do this through SonicWall TZ200 or some other software?
I installed BandwidthD on my local machine. It works perfect, but I doubt that... | I looked up the specs for the SonicWall TZ200 and it says that it can create Netflow accounting packets. Consequently, any netflow collector. Personally, I've used nTop before and I know it does IP based bandwidth usage , but there are tons of alternatives out there if that doesn't fit your requirements.
| 1 | SonicWall TZ200 can create Netflow accounting packets |
Adjustment to road bike brakes for high grade downhill | I have a road bike with a front brake that wears a lot of brake pad when I ride downhill every day. I lose 900ft in elevation on steep grades with lots of stop signs and traffic lights. On top of that, it rains a decent amount and the rim brakes are terrible in that weather. I don't trust them downhill in the rain. Som... | Have a look at installing Cantilever brakes- larger pads so you can retain the same stopping power and increase life, at the expense of a few grams of weight. Cantilever brakes will also help in the wet due large pad (more surface area). These are the preferred brakes for tandems and tourers - you may have trouble get... | 1 | Cantilever brakes for tandems and tourers |
Are there any differences in how new vs. well-established professors select students? | For any professors out there, do you feel that there are any differences in how you selected and recruited students from the time when you were newly hired, to a well-established stage (i.e. after getting tenure)? I'm asking this out of curiosity. There are oftentimes questions about whether students should choose a ne... | This will indeed be highly dependent on field. For instance, in pure mathematics, there's a rather dramatic difference: most faculty don't take on any graduate students at all until after tenure.
The American Mathematical Society has written one of their culture statements about this issue. Generally, (pure) mathem... | 1 | The American Mathematical Society has written a culture statement about this issue . |
I am not sure whether to put a comma after "so", which is at the beginning of a sentence | Some people say since "so" is a transitional word, it should have a comma after it like all the transitional words have. And some say if "so" is there for logical continuity, then no comma should be used.
The particular sentence I am writing is:
Moreover, I have completed my senior secondary studies in English and... |
Some people say since "so" is a transitional word…
There aren't traditional words, there are traditional senses. Compare:
Mix all of these ingredients together. Next, add the milk.
I love Firefly. Next to Twin Peaks it is my favourite programme.
I've deliberately picked a different "transitional word" t... | 1 | "so" is a transitional word . |
what size can be the nuts holding the front wheel? | I am trying to install a front wheel in a bike - the axle of the wheel is threaded, but I have trouble finding out what size thread it is, and what nut can go on this. The size of the thread on the axle is the same as of a 8 mm screw, but a standard M8 nut (with 13 mm hex) does not fit on it. Do bikes have some special... | It is a M8 1.0 nut. I found out the hard way because all the hardware store has was a M8 1.25, so I bought it and the threads were way too coarse
| 1 | M8 1.0 nut |
How does critical strike chance stack? | I was wondering how critical strike chance stacks? Say I buy a Phanton Dancer with its 30% crit chance. Now if I buy another Phanton Dancer, what is my critical chance?
| Crit chance caps out at 100% where your basic attacks are just crits. These are other things that stack additively
Ability power
Armor,
Armor penetration,
Armor reduction,
Attack damage,
Attack speed ,
Cooldown reduction,
Critical strike chance,
Critical strike damage,
Health,... | 0.888889 | Crit chance caps out at 100% where your basic attacks are just crits |
Why did OCP build Robocop? | It seems like building the Robocop was a really stupid business approach:
You can't build them on industrial scale (to put it somewhat insensitively, OCP didn't have a ready supply of highly trained and freshly killed police officers)
So, Robocop seemed like a prototype that could never have entered production. Tota... | The concept of Robocop is not to substitute human police, it is the idea of a super reinforcement for police departments.
Of course they won't be able to enter on an industrial production scale, however, maybe one or two of them could be deployed in almost every big city, that would be a huge business as I can assure ... | 1 | Robocop is not to substitute human police, it is the idea of a super reinforcement for police departments |
Etiquette for closing your own questions | For all of my questions I have received great answers. I have implemented the answers in code and they work. I now feel compelled to close the questions because I don't believe there are more or better answers out there.
Should you close your questions that you feel have been answered sufficiently? Would allowing more... | I definitely agree with Euro Micelli; closing the question seems very drastic.
However I'd say an important thing to maintain is to select an answer as the accepted answer to indicate which solution was most appropriate to you; and to vote up good answers and perhaps vote down bad answers. I've seen many questions whe... | 1 | Voting up good answers and perhaps voting down bad answers |
Are DSLRs a dying breed, making now the time to switch to a mirrorless camera system? | I came across this thought provoking article on Stuck in Customs today that makes a strong case to hold off too much investment in DSLR gear, and instead switch to mirror-less cameras like the Sony NEX. The author prefers to call such cameras 3rd generation cameras to prevent any bias.
The crux of the argument lies in... | The advantages of DSLR are going to be usage specific as well as product line specific. It depends on what you are doing with your photographing. It also depends on the state of the market in terms of what products will be available, in the new systems that will eventually replace the current DSLR systems (specifical... | 0.888889 | The advantages of DSLR are going to be usage specific as well as product line specific |
Mathematics of Ritardando | Beyond feel & experience, is there a rule conductors use for ritardando in terms of (a) its rate, (b) its change in rate, and/or (c) the relationship between the final tempo and the tempo of the piece?
(In getting my software to execute a ritardando, I employed over four measures a measure-by-measure decrease in ... | "...is there a rule conductors use for ritardando in terms of (a) its rate, (b) its change in rate, and/or (c) the relationship between the final tempo and the tempo of the piece?"
Not that I'm aware of. Such a rule would be of little value, because -- unless you're practicing with a drum machine, or other device that... | 0.888889 | How do conductors measure tempo in a ritard? |
Spin matrices in Dirac equation | Why in every textbook when deriving Dirac's equation the smallest possible matrices ($2 \times 2$) are used?
I wonder why one couldn't use spin 1 matrices ($3 \times 3$) and get relativistic equation for spin 1 particle?
| Particles in the standard model are in principle massless and acquire mass through interactions via the Lagrangian. This poses a problem if you want to use the 3x3 matrix generators of angular momentum because massless particles have different lie group representations as particles with mass.
The 3x3 generators for pa... | 0.666667 | Particles in the standard model are in principle massless and acquire mass through interactions via the Lagrangian |
Understanding one-way hash functions construction | I understand the needs that lead to the development of cryptography and I am quite familiar with the uses we make of the cryptographic tools.
But, as a programmer, I am conditioned to see them as "black boxes" with specific properties. To me, SHA-X (with X being 1, 2 or 3) is some dark magic, even though I understand ... | First, it's important to understand that no one knows how to build a practical hash function that is provably secure.
The stuff you've read about games and advantage are part of a theory for proving schemes secure, but that theory doesn't help you build a provably secure hash function all that much. Rather, it starts... | 0.888889 | How to build a provably secure hash function? |
Black hole collision and the event horizon | Will the event horizons of a two black holes be perturbed or bent before a collision? What will the shape of the event horizon appear to be immediately after first contact?
| Yes,
Like del piero says, the gravitational field of each one affects the shape of the other, so it's similar to the "metaballs" used in computer graphics.
The exact shape will depend on the geometry, but it usually looks like two fingers reaching out to meet, like in Michelangelo's "The Creation of Adam". You can re... | 1 | pulsing at the end of the first video isn't anything real; it's caused by the change in magnitude of the |
Unix C++: get time at a different zone | I'm trying to get the time in a different timezone (PST) using C++.
#define PST (-8);
char* Time::getSecondSystemTime() {
time_t rawtime;
struct tm * timeinfo;
char buffer[80];
time(&rawtime);
timeinfo = gmtime(&rawtime);
timeinfo->tm_hour = timeinfo->tm_hour + PST;
strftim... | Here is a cleaner way of doing this (this example gets GMT time including DST bias):
struct STimeZoneFromRegistry
{
long Bias;
long StandardBias;
long DaylightBias;
SYSTEMTIME StandardDate;
SYSTEMTIME DaylightDate;
};
static SYSTEMTIME GmtNow()
{
FILETIME UTC;
GetSystemTimeAsFileTime(&UT... | 1 | struct SYSTEMTIME GmtNow() |
Get Product Options for each Product in the Catalog | I am trying to build a script that outputs all the product options for each product in the catalog into a CSV file.
I have tried using the code on this page: http://www.atwix.com/magento/configurable-product-attributes/
For this code:
$attribute = Mage::getModel('eav/config')->getAttribute('catalog_product', 'col... | No answer but another option. Use Avs_FastSimpleImport to update product data with the attribute values. In the FastSimpleImport settings you can define missing options should be created
Check out the module here
| 1 | Avs_FastSimpleImport to update product data with attribute values |
Diff between backups: see permissions, group and owner and sym link differences | Question
Using only the command line, is it possible to tell if a rsync backup (on a NAS) and the original folder tree (on a web server) are exactly the same? I mean in terms of file sizes, attributes, and symbolic links?
I feat the most for symbolic links. In case of a hard-drive failure – let's say I can solve all ... | What you're really asking is: What is a good Backup Strategy for my server and that depends what you want to do when the lightning hits your server...
For me, speedy restore is what I want, so what I do is:
I have one additional small, old, cheap disk containing 2 additional partitions on the server: a 500GB ext4 par... | 0.833333 | What is a good Backup Strategy for my server? |
How to merge unversioned code into Git repository? | So a friend worked on a bunch of code that he never versioned, and is handing it off to me. He initially gave me version A, even though he had a more recent version B available. I put A into a git repository (on say Team Foundation Service), and then made some commits, resulting in version C. Now he has put up version ... | Simply:
checkout A
make a new branch from A
(from "Git version control and Team Foundation Build")
copy B in it
add and commit:
(from "Create, Connect, and Publish using Visual Studio with Git")
merge that branch in your main branch which represents C
resolve conflicts:
| 1 | Create a new branch from A copy B in it add and commit |
Enabling aggregate and compress CSS files caused error on site access | I set this tick box in the performance area, and on clicking Save I now cannot access the site, even the performance area to disable this! any one know if I can directly change this in the DatabasE?
EDIT:
I have refreshed the Database, thankfully no updates since it went live. This does raise the question though as I... | I believe this setting is stored in the variable table as preprocess_css
UPDATE variable
SET value = 'i:0;'
WHERE name = 'preprocess_css'
and then clearing cache should do the trick. I am also pretty certain just deleting that row should do the same thing, as the default value is 0, and variables not in the table t... | 0.888889 | Clearing cache should do the trick if you can't clear caches from the site itself |
Why isn't my if/elseif/else working correctly here? | I am using a simple if/elseif/else bit of code to generate a header image for my page, I can't seem to understand why it isn't working properly. It determines the category of the page being displayed and displays a header accordingly. Here's the code in my header.php:
<?php if (is_category('dino run') || has_categ... | I would use:
in_category('cat-slug') ) {
if you want to display the image on all posts in the category.
Here's a working example i wrote and tested.
This returns true on both the category archive page and all posts in the category
if(is_home())
echo '<div class="home-header"><img src="http://yourdomai... | 0.666667 | In_category ('cat-slug') |
Ideal location to practice soldering | Sounds like a stupid question, but really hasn't been asked before, or I haven't found a post about it. Either way, here it is:
I bought a soldering iron recently and am looking for a place in my house to do my soldering. Of course the first thing in my mind would be to solder in the basement or garage and as close to... | Good circulation and a fume extractor/absorber. I use one of these guys: http://www.amazon.com/Weller-WSA350-Bench-Smoke-Absorber/dp/B000EM74SK/ref=pd_sim_sbs_hi_1
There are also smaller ones available that can be put right above the work area to absorb more: http://www.amazon.com/dp/B00012YSDW/
Carbon activated fi... | 1 | Carbon activated filter takes a lot of fumes out of the air |
How can I span wallpapers over two monitors in Mac OS X? | Is there any way to get a single wide desktop wallpaper to span a dual monitor setup in OS X?
| Without splitting the image by hand into two halves (one for each monitor)? Not currently.
| 1 | Without splitting the image by hand into two halves? |
1/4 to 1/8 jack problem | I was planning to record months ago, with my electric guitar, and yesterday I got myself a guitar rig software and bought some 1/4 to 1/8 adapter jack so that I can plug in unto my laptop's mic hole.
Whenever I plug my guitar cable to the 1/4 to 1/8 adapter then to the laptop I can't hear any sound (past the clicking ... | If you want to record better sounding guitar tracks, getting an audio interface is the way to go, as others have mentioned. You also want to think about shielding, interference, and turning off electrically noisy overhead lights.
However, to say "You can't just use an adapter to plug your guitar directly into your l... | 1 | Mono-stereo mismatch between mono guitar cable, 1/4 to 1/8 inch adapter, and input on laptop |
What are the advantages/disadvantages of the Rock Band 3 Keyboard? | Vs. a normal midi keyboard and the Midi Pro adapter? In particular,
The RB3 Keyboard is not a full-sized keyboard. If we do use a full-sized midi keyboard in Pro mode, can we/do we have to use the entire keyboard, as it's played in the actual song, or can we/do we have to stick to two octaves (like the RB3 Keyboard... | Note: this is from what I've picked up in ready dozens of reviews!
All songs are designed to just be played with the right hand, however in Pro Mode, songs on Hard and Expert difficulty require you to use both octaves.
This means that there's no use for you to have a full sized keyboard, as it would leave most of it... | 1 | How to map certain keys to the five buttons? |
God the Father's possession of a body of flesh and bones | There is a belief out there that God the Father has always possessed a body of flesh and bones. Some of the proponents of this belief don't find it contradictory to John 4:24 ("God is a Spirit") as the verse may be referring only to one part of God without limiting God to being only that one part - just like, for examp... | Your question is worded a little tricky, but I think you're saying: John 4:24 says that God is a spirit, and you are saying that Mormons respond by saying that it only refers to one part of God (one part is the spirit and the other part is the body), since Mormons believe God has a body. Then you cite 1 Peter as an exa... | 0.888889 | How do Mormons reconcile God's omnipresence with his corporeal / fleshy form? |
Similar phrases meaning 'give kudos' | See, in one of our employee evaluation systems, we would like to implement a feature by which any employee can show appreciation to another employee that he has got help from or whom he thinks to be a good performer, mentor etc., and it has to be done every month. So, to give a name to this action, one of the suggestio... | Praise
Merriam-Webster: say or write good things about (someone or something): A good teacher praises students when they do well.
Macmillan: express strong approval or admiration for someone or something, especially in public: Mayor Dixon praised the efforts of those involved in the rescue.
| 1 | Praise Merriam-Webster: say or write good things about (someone or something) |
Can i customize add/edit page for list in sharepoint? | Hi SharePoint Experts,
Can use my custom page to add/Edit item from sharepoint list?
if yes how? Do i need to do any config changes?
| Sure you can! Check Create a custom list article form from Microsoft site. You will use SharePoint Designer 2007 for all the customizations. It also allows you to convert every form to HTML/XSLT and to customize it even further.
| 0.777778 | Create a custom list article form from Microsoft site |
Word for someone who finds oil reservoirs | This question may be way too specific, but what is the word for someone who surveys land in search for Oil (for petroleum). I think it might be a scientific word, like one that ends with -ist (like biologist)
| Petroleum geologist.
A petroleum geologist is a earth scientist who works in the field of petroleum geology, which involves all aspects of oil discovery and production. Petroleum geologists are usually linked to the actual discovery of oil and the identification of possible oil deposits or leads. [Wikipedia]
Petr... | 0.888889 | Petroleum geologist is a earth scientist who works in the field of petroleum geology |
1999 Ford pickup starter whining | 1999 Ford F150 2wd 6 cylinder - What would cause the starter to make a whining sound when you start the truck and will not quit whining and gets very hot on the starter? The Bendix will not disengage.
| From what I remember 1999 F150's use a starter relay/solenoid that is mounted on the firewall or inner fender. If you follow the positive battery cable it should connect to this relay. If the starter spins as soon as the battery cables are connected to the battery then the relay has welded its self in the closed posit... | 0.888889 | If starter spins as soon as the battery cables are connected to the battery then the relay has welded its self in the closed position |
Linearity of push forward $F_*$ | How can I prove the linearity of $F_*$? What does $F_*$ eat?
If $N$ is smooth manifolds and $F: M \to N$ is a smooth map, for each $p \in M$ we define a map $F_*: T_pM \to T_{F(p)}N$, called the push-forward associated with $F$, by
$$(F_*X)(f) = X(f \circ F).$$
| It often times just helps to write out exactly what the formula you are trying to get in the end looks like, and then interpreting that.
For example, you are trying to show that $F_\ast(\alpha X)=\alpha F_\ast(X)$. So, what does the left-hand side do to elements of $T_{F(p)}N$? Well, as you pointed out
$F_\ast(\alpha... | 0.555556 | What does the left-hand side do to elements of $T_F(p)N$? |
Maximal ideals of commutative unital C* algebra using Gelfand-Naimark theorem | Let $\mathcal{A}$ be a unital, commutative C*-algebra. The radical of $\mathcal{A}$ is defined as
$$\operatorname{Rad}(\mathcal{A}) = \bigcap \{\mathcal{I}\subset \mathcal{A}: \mathcal{I} \text{ is a maximal ideal}\}$$
How can one characterize $\operatorname{Rad}(\mathcal{A})$ using the Gelfand-Naimark theorem only, ... | Hint: For any space $X$ and any $x\in X$, the set of functions vanishing at $x$ is a maximal ideal in $C(X)$.
| 0.555556 | Maximum ideal for space $X$ and any $xin X$ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.