qid int64 1 74.7M | question stringlengths 0 70k | date stringlengths 10 10 | metadata list | response stringlengths 0 115k |
|---|---|---|---|---|
63,570,652 | New to SQL.
I have two SQL tables T1 and T2 which looks like the following
```
T1
customer_key X1 X2 X3
1000 60 10 2018-02-01
1001 42 9 2018-02-01
1002 03 1 2018-02-01
1005 15 1 2018-02-01
1002 32 2 2018-02-05
T2
customer_key A1 A2 A3
1001 20 2 2018-02-17
100... | 2020/08/25 | [
"https://Stackoverflow.com/questions/63570652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7933418/"
] | Full outer join with filtering is just confusing. I recommend filtering in subqueries:
```
select T1.customer_key, T3.customer_key, T1.X1, T1.X2
from (select t1.*
from T1
where T1.X3 = '2018-02-01'
) t1 full outer join
(select t2.*
from T2
where T2.A3 = '2018-02-17'
) t2
on ... |
68,276,673 | Assume I have `df1`:
```
df1= pd.DataFrame({'alligator_apple': range(1, 11),
'barbadine': range(11, 21),
'capulin_cherry': range(21, 31)})
alligator_apple barbadine capulin_cherry
0 1 11 21
1 2 12 22
2 ... | 2021/07/06 | [
"https://Stackoverflow.com/questions/68276673",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11133739/"
] | I just had the same issue and fixed it. So, you probably installed jest globally on accident. In doing so, it likely ended up installed inside of `users/yourname/node-modules/`. If you can pull up a terminal, try doing a `cd` into `node-modules` from your home folder then do a `ls -a`. If you see `babel-jest`, do a `rm... |
2,314,781 | I have a class which sets an alarm but I need to set around 10 more of these alarms. Instead of duplicating classes, is there a way I can just make a new instance of the class and set the alarm time?
Here's my code.
```
import java.util.Calendar;
import java.lang.String;
import android.app.Activity;
import androi... | 2010/02/22 | [
"https://Stackoverflow.com/questions/2314781",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/264905/"
] | Can't you just create one Calendar instance in onCreate(), set its parameters, then pass the instance to setAlarm(), modify the instance, call setAlarm(), etc, or am I missing something?
e.g. -
```
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.m... |
978,052 | I have Alienware 15 R3 with:
* 512GB NVME SSD - Windows 10.
* 1TB HDD - 300GB free space available.
I would like to install Ubuntu using the free space available in 1TB HDD.
I have experience installing Dual Boot Ubuntu on my old laptop, but after a Windows 10 auto-update, the boot loader got corrupted.
So, how sho... | 2017/11/19 | [
"https://askubuntu.com/questions/978052",
"https://askubuntu.com",
"https://askubuntu.com/users/136502/"
] | I have been having this issue for a while and I found an answer to a similar questions [here](https://askubuntu.com/questions/31786/chrome-asks-for-password-to-unlock-keyring-on-startup#answer-968149) that seems to resolve this. In short, copy `google-chrome.desktop` file to your home folder and edit it to use the 'Bas... |
9,970,713 | I am having real trouble with provisioning and code signing issues. I have migrated to a new computer and have a bunch of "Valid signing identity not found" messages. In repeated attempts to fix distribution code signing I have managed to lose my developer code signing as well.
I am the first to admit that the root pr... | 2012/04/02 | [
"https://Stackoverflow.com/questions/9970713",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/401543/"
] | **Step 1**: Open XCode. In the Organizer, delete all provisioning profiles.
**Step 2**: Open Keychain Access (Utilities>Keychain Access); delete all certificates related to developer/distribution and the WWDCCA (or whatever it's called) intermediate certificate.
**Step 3**: Re-download and resign. Make sure you expor... |
57,362,904 | I'll try to simplify my question:
I have a div container with a fixed height of 200px. Inside, I have a flexbox that shows vertical items. Each item has a FIXED height which should not change. I use `overflow: hidden` to prevent the last item to break out of that 200px. This works well.
**This is what I have with `o... | 2019/08/05 | [
"https://Stackoverflow.com/questions/57362904",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/282918/"
] | First Thing : you should get benefits from using react:
To make Content Dynamically I'll add `gridItem` to state so that they're rendered dynamically.
```
state = {
items: [
"1",
"2",
"3",
" 4 I want this hidden, its partially visible",
"5 I want this hidden, its partially visible"
... |
16,602,277 | I am trying to use the @Scheduled feature. I have followed [this](http://krams915.blogspot.com/2011/01/spring-3-task-scheduling-via.html) and [this](http://blog.springsource.com/2010/01/05/task-scheduling-simplifications-in-spring-3-0/) tutorials but I can not get my scheduled task to be executed.
I have created a wor... | 2013/05/17 | [
"https://Stackoverflow.com/questions/16602277",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/162345/"
] | `<context:annotation-config />` does not detect beans - it just processes the annotations on declared beans. Which means your `@Service` is not actually turned into a bean.
Use `<context:component-scan base-package="com.yourcomany" />` instead. |
22,468,622 | While using resque-scheduler to set\_schedule dynamic cron jobs based on user's input the schedules seem to be set but the worker never actually starts at the set schedule.
In the Resque configuration dynamic is set to true like so: Resque::Scheduler.dynamic = true
And I am setting the schedule like so:
```
name =... | 2014/03/18 | [
"https://Stackoverflow.com/questions/22468622",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/664675/"
] | You probably forgot to start the scheduler with the `DYNAMIC_SCHEDULE` environment variable set to `true`.
Here is the command I use to start the scheduler:
```
DYNAMIC_SCHEDULE=true rake resque:scheduler
```
Quote from README:
>
> DYNAMIC\_SCHEDULE - Enables dynamic scheduling if non-empty (default
> false)
>
... |
21,324,330 | How can I get `[jobNo]` using loop from array below?
```none
Array
(
[date] => 2014-01-13
[totcomdraft] => 400
[comdraft] => 0
[0] => Array
(
[jobNo] => 1401018618
[dateType] => 1
[comdraft] => 200
)
[1] => Array
(
[jobNo] =>... | 2014/01/24 | [
"https://Stackoverflow.com/questions/21324330",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1325668/"
] | Try this
```
foreach($array as $key=>$val){
if(is_array($val)){
echo $val["jobNo"];
echo "<br />";
}
}
``` |
4,404,711 | The **differential equation** is the following:
$ydx+(\frac{y^2}{4}-2x)dy=0$
It can be written as:
$\frac{y}{2x-\frac{y^2}{4}}=\frac{dy}{dx}$
However, this is not the linear shape. So we rewrite the equation as:
$\frac{2x-\frac{y^2}{4}}{y}=\frac{dx}{dy}\to\frac{dx}{dy}-\frac{2x}{y}=-\frac{y}{4}$
The **integrating... | 2022/03/16 | [
"https://math.stackexchange.com/questions/4404711",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/986528/"
] | You can not just apply the integrating factor to the original equation. You need to apply it to the equation that you computed it for.
$$
\frac1{y^2}\frac{xy}{xy}-\frac{2x}{y^3}=-\frac1{4y}
$$
is nicely integrable. |
24,398,937 | I have a flask running at domain.com
I also have another flask instance on another server running at username.domain.com
Normally user logs in through domain.com
However, for paying users they are suppose to login at username.domain.com
Using flask, how can I make sure that sessions are shared between domain.com an... | 2014/06/25 | [
"https://Stackoverflow.com/questions/24398937",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2982246/"
] | **EDIT:
Later, after reading your full question I noticed the original answer is not what you're looking for.**
I've left the original at the bottom of this answer for Googlers, but the revised version is below.
Cookies are automatically sent to subdomains on a domain (in most modern browsers the domain name must con... |
8,412,530 | I have a hash with the following key/value pair
```
4 => model1
2 => model2
```
I want the following string created from the above hash
```
4 X model1 , 2 X model2
```
I tried the following
```
my %hash,
foreach my $keys (keys %hash) {
my $string = $string . join(' X ',$keys,$hash{$keys});
}
print $string;
... | 2011/12/07 | [
"https://Stackoverflow.com/questions/8412530",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/238021/"
] | You could do:
```
my %hash = (4 => "model1", 2 => "model2");
my $str = join(", ", map { "$_ X $hash{$_}" } keys %hash);
print $str;
```
Output:
```
4 X model1, 2 X model2
```
How it works:
`map { expr } list` evaluates `expr` for every item in `list`, and returns the list that contains all the results of these e... |
3,913,574 | As the title implies, I want to compare two objects whose type may be diffrent.
For eg,
I expects 'true' for comparing 1000.0(Decimal) with 1000(Double) .
Similary, it should return true if I compare 10(string) and 10(double) .
I tried to compare using Object.Equals() , but it did NOT work.It return false if two obje... | 2010/10/12 | [
"https://Stackoverflow.com/questions/3913574",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/364412/"
] | Try this:
```
Dim oldVal As Object 'assgin some value
Dim newVal As Object 'assgin some value
Dim b As Boolean = False
If IsNumeric(oldVal) And IsNumeric(newVal) Then
b = (Val(oldVal) = Val(newVal))
ElseIf IsDate(oldVal) And IsDate(newVal) Then
b = (CDate(oldVal) = CDate(newVal))
Else
b = (oldVal.ToStri... |
49,748,378 | I am currently creating a math's quiz for kids in python tkinter. In this quiz i have 3 different 'pages' as per say. A start page, a quiz page and a score page for when the quiz is finished. In my start page, i have three different difficulties of the quiz the user can choose from. How do i essentially clear elements ... | 2018/04/10 | [
"https://Stackoverflow.com/questions/49748378",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9623512/"
] | You could use a tabbed view and switch the tabs according to the difficulty selected (see tkinter notebooks <https://docs.python.org/3.1/library/tkinter.ttk.html#notebook>)
Or you could have the quiz in their selected difficulty in their own windows. |
1,395 | This question is for anyone who has learned programming in a Spanish speaking country.
Seeing as though the key words for programming languages like Java, C, Python etc are all in English I have a couple of questions:
* Do courses in Spanish speaking countries expect some knowledge of
English as a prerequisite?
* Do ... | 2012/01/16 | [
"https://spanish.stackexchange.com/questions/1395",
"https://spanish.stackexchange.com",
"https://spanish.stackexchange.com/users/312/"
] | Keywords aren't changed and their meaning is explained. But almost everything else is in Spanish, because concepts are taught in Spanish and have their own Spanish terminology, and exercises reflect that. I mean, if the lesson was about trees or stacks, it would be taught in terms of "árboles" and "pilas", and the prog... |
27,612,785 | I have a bunch of different show times in a database and want to display the correct time based on the users time zone by creating an offset.
I'm getting the users time zone offset from GMT and converting that to hours first.
```
NSTimeZone.localTimeZone().secondsFromGMT / 60 / 60
```
Then I need to find a way to a... | 2014/12/23 | [
"https://Stackoverflow.com/questions/27612785",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3712837/"
] | If you want to convert a show time which is stored as a string in GMT, and you want to show it in the user's local time zone, you should *not* be manually adjusting the `NSDate`/`Date` objects. You should be simply using the appropriate time zones with the formatter. For example, in Swift 3:
```
let gmtTimeString = "5... |
46,672 | As a puzzle author, I often write puzzles with red ink and then test-solve them with pencil. What would be the most efficient way to remove the pencil and blue gridlines from the paper to leave only the red puzzle clues behind? | 2015/01/31 | [
"https://graphicdesign.stackexchange.com/questions/46672",
"https://graphicdesign.stackexchange.com",
"https://graphicdesign.stackexchange.com/users/26073/"
] | As one who has typeset a thick mathematical book (written by various contributors), I would make two points in favour of Computer Modern.
First, the lower-case italic *v* and the lower-case Greek *ν* are clearly distinguished.
Second, parentheses rise higher than ascending letters, so that items in parentheses look m... |
86,573 | I'm using Parallels on my mac. But when I open a software the font are so small, it's very weird. Can anyone help me out!!!

The picture above is when I open up my chrome, how can I fix it? | 2013/03/24 | [
"https://apple.stackexchange.com/questions/86573",
"https://apple.stackexchange.com",
"https://apple.stackexchange.com/users/26496/"
] | I've seen this particular problem many times, and a lot of it has to do with how Windows handles DPI scaling.
Since you are using a Retina MBP - which has an extremely high resolution, you'll want Parallels to manage the DPI of your Windows VM. You can do this under your Virtual Machine's configuration, Hardware, Vide... |
41,061 | Older French texts often use defunct spellings, such as *-oi* instead of *-ai* in verb conjugations or spellings that contain consonants that were later dropped, like in *doubter*. When these texts are read aloud by modern French speakers, are these words read as if they were written with the modern spelling, or is the... | 2020/01/27 | [
"https://french.stackexchange.com/questions/41061",
"https://french.stackexchange.com",
"https://french.stackexchange.com/users/4082/"
] | I'm no expert in old French so I can't tell you if we *should*, but we'd definitely pronounce it as it is written, but following the pronunciation rules of modern French.
So "*déchiroit*" would be pronounced as "*déchiroit*" and "*entrez*" as "*entré*". That's what a native would say naturally, but I have no idea if t... |
26,678,824 | Whenever I run phpunit tests from PHPStorm I get an error. I have provided more info below. I am not sure where I have miss configured the setup.
### My Setup
* Ubuntu
* PHPStorm 8.0.1
* PHPUnit 4.3.4
### More Info:
PHPUnit.phar is located at `/usr/local/bin/phpunit.phar`. I have setup PHPUnit path directly in PHPS... | 2014/10/31 | [
"https://Stackoverflow.com/questions/26678824",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1301804/"
] | This appears to be the autoloading issue. When you bootstrap your app for the test suite you must initialise your autoloader, which doesn't seem to be happening, as something doesn't get found. The easiest way would be to use Composer to manage the PHPUnit dependency and autoload your classes via the `autoload` directi... |
17,015 | I have moved into a house with a nice Wolf-range griddle, and I would like to know what the primary advantages of the griddle are over a cast-iron skillet, including, is there anything I can do with a griddle that can not be done with a skillet?
I have found that the primary downside to using the griddle is the time i... | 2011/08/21 | [
"https://cooking.stackexchange.com/questions/17015",
"https://cooking.stackexchange.com",
"https://cooking.stackexchange.com/users/3418/"
] | Yes, you don't have the edge of a pan in the way when going to flip things, but it also means that you don't have a mass of metal there to add as a heat sink, which can help dramatically when pre-heating your pans, as they'll be evenly heated across their bottom more quickly (at least, compared to something of the same... |
11,368,204 | I followed a tutorial/instructions online to make a sidebar fixed position by making the sidebars position "fixed" and it worked fine. Now I realize that since my page has a min-width attribute, when the user scrolls sideways the content that doesn't move moves into the sidebar. So basically, I'm looking for a way to p... | 2012/07/06 | [
"https://Stackoverflow.com/questions/11368204",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1218699/"
] | As said by others, not possible with only css and html. However, you can do this with javascript/jquery.
Just encase you want to use jquery to do this, first as watson said, change index of side bar (I had to make negative), just encase it jquery doesn't work for whatever reason for someone.
Then add to your `<head>`... |
9,453,761 | I am debugging a website using firebug. The website opens a window, performs some operations and than closes it. This causes me to lose all of the firebug net history. Is there any way to prevent javastript from closing the window after its done, except changing the code? | 2012/02/26 | [
"https://Stackoverflow.com/questions/9453761",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/847200/"
] | I haven't tried to use it, but there's a settings in FF which supposedly lets you do what you wish.
Type about:config in the url bar and press enter. After a warning you'll see the list of config options. Search for dom.allow\_scripts\_to\_close\_windows and set its value to false. |
35,047,356 | I have a problem with a post\_save function. The function is correctly triggered but the instance doesn't contains the value insereted. I checked the function using ipdb and there is nothing wrong. Simply the ManyToManyField is empty.
The code:
```
@receiver(post_save, sender=Supplier)
def set_generic_locations(sende... | 2016/01/27 | [
"https://Stackoverflow.com/questions/35047356",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1640213/"
] | ManyToManyFields work a little bit differently with signals because of the difference in database structures. Instead of using the post\_save signal, you need to use the [m2m\_changed](https://docs.djangoproject.com/en/1.9/ref/signals/#m2m-changed) signal |
69,617,819 | When I search the internet for `react-native` optimizations / best practices (**Especially for `FlatLists` which are often greedy**), I always find the advice not to use the arrow functions `<Component onPress={() => ... }`.
*Example 1 :* <https://reactnative.dev/docs/optimizing-flatlist-configuration#avoid-anonymous-... | 2021/10/18 | [
"https://Stackoverflow.com/questions/69617819",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3197378/"
] | The answer has nothing to do with arrow functions, but rather understanding reference equality why react might decide to rerender a component.
You can use useCallback to wrap your function. This will cause the reference to renderItem to only update when one of your callback dependencies updates.
```
const renderItem ... |
49,170,893 | i am creating an angular table using this example from angular material <https://material.angular.io/components/table/overview> is there anyway to export it in excel or pdf? | 2018/03/08 | [
"https://Stackoverflow.com/questions/49170893",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6280170/"
] | In your table component.ts
declare a value called
`renderedData: any;`
Then in your constructor subscribe to the data that has been changed in your material table. I am guessing you are using a filterable table.
```
constructor(){
this.dataSource = new MatTableDataSource(TableData);
this.dataSource.connect().subscr... |
20,932,644 | I have the following [example](http://jsbin.com/ohonaYu/1/edit):
```
<div class="container">
<div class="left"></div>
<div class="right">
<span class="number">1</span>
<span class="number">2</span>
</div>
</div>
```
As you can see in the code above left div in not vertically aligned:![enter image descr... | 2014/01/05 | [
"https://Stackoverflow.com/questions/20932644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1006884/"
] | How about
```
select * from `post_plus` left join `post` on `post`.`id` = `post_plus`.`news_id` where `post`.`id` IS NULL
``` |
28,318,912 | I need to write several formulas in CSS (or is there some other way?) and integrate it on my quiz website for students.
I already found some interesting examples in here:
<http://www.periodni.com/mathematical_and_chemical_equations_on_web.html>
But I need one more, as can be seen in this picture:
[ :
```html
<p>
<span style="visibility: hidden;">CH<sub>3</sub> - </span>CH<sub>3</sub><br/>
<span style="visibility: hidden;">CH<sub>3</sub> - </span>|<br/>
CH<sub>3</sub> - C - CH<s... |
60,553,264 | I need to compare the roman letters and get the correct integer out of it.
If I'm correct, there should be a way to compare the hashmap key with the arraylist element and if they match, get the associated value from the key.
The return 2020 is there just for test purposes, since I wrote a JUnit test in a different cl... | 2020/03/05 | [
"https://Stackoverflow.com/questions/60553264",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13014882/"
] | The retry policy for App Store server notifications depends on the version of the server notification. It retries as follows:
>
> * For version 1 notifications, it retries three times; at 6, 24, and 48 hours after the previous attempt.
> * For version 2 notifications, it retries five times; at 1, 12, 24, 48, and 72 h... |
41,433,932 | I'm interested in instantiating a pool of workers, `the_pool`, using `multiprocessing.Pool` that uses a `Queue` for communication. However, each worker has an argument, `role`, that is unique to that worker and needs to be provided during worker initialization. This constraint is imposed by an API I'm interfacing with,... | 2017/01/02 | [
"https://Stackoverflow.com/questions/41433932",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3417688/"
] | Why not use two worker functions, one for just for initialization? Like:
```
def worker_init(q):
global queue
queue = q
def worker_main(role):
# use the global `queue` freely here
```
Initialization is much the same as what you showed, except call `worker_init`:
```
the_pool = multiprocessing.Pool(3... |
74,378,006 | I do host a gitea server and access git via https. The certificate is **not** self-signed, but from a proper CA, User Trust (<https://www.tbs-certificates.co.uk/FAQ/en/racine-USERTrustRSACertificationAuthority.html>).
I'm using the latest git client for windows (2.38.1, 64bit)
When i do a `git pull`, the error `unable... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74378006",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1155873/"
] | Make a typed getter so it has proper type and you don't have to store it
```
abstract class AbstractView {
get ctx(): typeof AbstractView {
return this.constructor as typeof AbstractView;
}
static getStatus() : string
{
return 'hi';
}
}
class TestView extends AbstractView {
stat... |
8,927 | I work in a small but growing team of UX designers developing a suite of web applications. It's become obvious that we would benefit from a common pattern library, but are unsure how to get started or what tool we should use.
We want something that we can collaborate on and also share with visual designers and develop... | 2011/07/12 | [
"https://ux.stackexchange.com/questions/8927",
"https://ux.stackexchange.com",
"https://ux.stackexchange.com/users/4500/"
] | There are several [design pattern repositories listed on Konigi web](http://konigi.com/wiki/design-pattern-repositories). From these, [Patternry](http://patternry.com/) allows you to create public and private collections of patterns. |
49,109 | From death to brittleness?
Two bodies, on a bed, in an embrace. Windows and doors closed, so little to no air and light, but not completely air/light tight.
No scavenger animals/rodents, but bugs would obviously be present.
Humid (tropical rain-forest) environment.
The aim is to have my characters stumble across this... | 2016/07/31 | [
"https://worldbuilding.stackexchange.com/questions/49109",
"https://worldbuilding.stackexchange.com",
"https://worldbuilding.stackexchange.com/users/21849/"
] | Okay, there's not much data on timescales of human bones decaying away to nothing, because we bury/ cremate our dead. Also when folk come across a pile of bones, they tend to phone the police. So you might have to look at studies of animal bones and extrapolate from that. The search term you'll need is [taphonomy](http... |
102,279 | I am trying to solve the recurrence below but I find myself stuck.
$T(n) = \frac{n}{2}T(\frac{n}{2}) + \log n$
I have tried coming up with a guess by drawing a recurrence tree. What I have found is
number of nodes at a level: $\frac{n}{2^{i}}$
running time at each node: $\log \frac{n}{2^{i}}$
total running time ... | 2012/01/25 | [
"https://math.stackexchange.com/questions/102279",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/14078/"
] | Consider the equality
$$
1+x+x^2+...+x^n=\frac{x^{n + 1} -1}{x-1}
$$
Differentiate it by $x$, then multiply by $x$:
$$
x+2x^2+3x^3+...+n x^n=\frac{nx^{n+2} - (n + 1)x^{n+1} + x}{(x-1)^2}
$$
Now we can substitute $x=\frac{1}{2}$ and obtain
$$
\sum\limits\_{i=0}^n\frac{i}{2^i}=n\left(\frac{1}{2}\right)^{n} - (n + 1)... |
13,383 | I need a web based project management software. It should basically have:
* Issue tracker
* Wiki (not mandatory)
* Git integration
* Progress
It should be open source and I should be able to install it onto my server.
Currently, I have found the following options :
* [ProjeQtOr](http://www.projeqtor.org/)
* [MyColl... | 2014/10/22 | [
"https://softwarerecs.stackexchange.com/questions/13383",
"https://softwarerecs.stackexchange.com",
"https://softwarerecs.stackexchange.com/users/8417/"
] | I'd recommend using **[Trac](http://trac.edgewall.org/)** (for details and screenshots, see my answers [here](https://softwarerecs.stackexchange.com/a/7501/185) and [here](https://softwarerecs.stackexchange.com/a/1560/185). Trac fulfills all your requirements listed:
* **Issue tracker:** Yes.
* **Wiki:** Yes.
* **GIT ... |
9,743,922 | in a geolocation application, after the recovery of the location I will like to let the user correct the situation by draggable marker on the map.
example: in the image the true position is the red cross then the solution is to drag the blue marker and confirm.
. Now the user drags the map so the center(\*) of t... |
53,573,017 | I am using lit html to create custom web components in my project. And my problem is when I try to use the CSS target selector in a web component it wont get triggered, but when I am doing it without custom component the code works perfectly. Could someone shed some light to why this is happening and to what would be t... | 2018/12/01 | [
"https://Stackoverflow.com/questions/53573017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10558165/"
] | LitElement uses a Shadow DOM to render its content.
Shadow DOM isolates the CSS style defined inside and prevent selecting inner content from the outide with CSS selectors.
For that reason, the `:target` pseudo-class won't work.
Instead, you could use a standard (vanilla) custom element instead of the LitElement.
Wi... |
46,308,541 | I have a linechart, and by default I need to show just a subset of elements, then show a different subset on dropdown event.
Here is initial code:
```
varlines = svg.append("g")
.attr('id', 'lines')
.selectAll('g')
.data(datum.filter(function(d) {
return d.group == 'default'
}),
... | 2017/09/19 | [
"https://Stackoverflow.com/questions/46308541",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2286597/"
] | If you look at your `varlines`, you'll see that it is just an **enter** selection:
```
varlines = svg.append("g")
.attr('id', 'lines')
.selectAll('g')
.data(datum.filter(function(d) {
return d.group == 'default'
}),
function(d) {
return d.name
}
).enter()... |
21,889,087 | I'm using this line of code:
```
$("#middle_child").contents().filter(function(){return this.nodeType == Node.TEXT_NODE;}).text();
```
For now, I'm just placing this in a console.log(). I'm using Chrome for testing & value returns as an empty string, but the value should return "Middle Child".
This is the HTML:
``... | 2014/02/19 | [
"https://Stackoverflow.com/questions/21889087",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3277004/"
] | You were on the right track. Just needed to make minor changes. The following query will give you the desired results. In inner query got the first 4 columns and to get rank cross joined that to `(SELECT @curRank := 0) r` which is MySQL trick for getting rank. in the end just needed to order by Cnt to make it work.
``... |
5,391,816 | i have a javascript file about 6000+ lines of codes created by myself. Now it has functions for different sections of my site.. Now what i want to ask is that should i use that large file or divide it in parts for respective sections and call it in respective section. | 2011/03/22 | [
"https://Stackoverflow.com/questions/5391816",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/229849/"
] | I would suggest using 1 large one, as that requires only 1 http request. And with the right server setup it is only loaded once as it becomes cached. |
32,892,143 | I have been using nodejs a lot lately but I keep coming up against a similar error. There are a huge amount of projects out there and a lot of them have npm packages, but whenever I attempt `npm install --save some-package` I can't seem to figure out how to use them. I don't mean things like express, or mongoose, which... | 2015/10/01 | [
"https://Stackoverflow.com/questions/32892143",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2091965/"
] | You still need to include those scripts in your page.
Use a good old `<script src="…">` or some module loader. (e.g. [require.js](http://requirejs.org/)) |
28,824,570 | So Im keep coming up with typeError: Cannot read property 'style' undefined.
It situated on the last line of javascript.
Anyone any suggestions.
The finished piece is to be a marquee with vertically scrolling text.
```js
window.onload = defineMarquee;
var timeID;
var marqueeTxt = new Array();
var marqueeOff = true... | 2015/03/03 | [
"https://Stackoverflow.com/questions/28824570",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4318762/"
] | 1. Hmm no, because with your piece of code you make ALL methods on the collection class available for a static call. That's not the purpose of the (abstract) factory pattern.
2. (Magic) methods like `__callStatic` or `call_user_func_array` are very tricky because a developer can use it to call every method.
3. What wou... |
4,098,022 | There is an negative number for every positive number and there’s zero.Thus,an odd number of numbers exist right? | 2021/04/11 | [
"https://math.stackexchange.com/questions/4098022",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/913449/"
] | You are right in that agents may *believe* some fact that is not actually true. In this case, as the authors say, the truth axiom does not hold. Moreover, the epistemic relation in models ceases to be the equivalence.
If we are talking about knowledge in the context of epistemic logic, then the notion of knowledge is ... |
252,729 | I know you get 2 set pieces in the new season for reaching level 70, what else do you have to do to get the other 4 pieces?
Can you get a free set again if you complete the parameters with a new character? | 2016/01/21 | [
"https://gaming.stackexchange.com/questions/252729",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/73403/"
] | You get two more set pieces for completing the Chapter 4 objective "Mercy" (Defeat Zoltan Kulle on Torment II) and two pieces for completing the Chapter 4 objective "Great Expectations" (Complete a Level 20 Greater Rift solo). |
31,655,986 | I have an asp.net gridview which displays two rows for each record, using the following code below (example).
However using a dropdownlist which is on the top of the page, based on its selection (1 or 2) I want the gridview to update itself on the following way:
option 1 = display two rows per record.
option 2 = dis... | 2015/07/27 | [
"https://Stackoverflow.com/questions/31655986",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1135218/"
] | There is code based on one of my database, just change parameters (this is *server side* example, someone else provide here client side example) :
aspx :
```
<asp:DropDownList runat="server" ID="ddlChoice" AutoPostBack="true">
<asp:ListItem Text="One row"></asp:ListItem>
<asp:ListItem Text="Two rows"></... |
72,341,977 | I have been trying to find solutions for this for a few days now and can't seem to get anything to work.
The script below shows/hides columns in the tabs and works perfectly in the named sheet. I just need it to run through all of the tabs, **except for the first few**,and be applied in them too.
I just don't underst... | 2022/05/22 | [
"https://Stackoverflow.com/questions/72341977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19176386/"
] | SQLAlchemy itself only calls the cursor's `execute` method, which does not support executing multiple statements. However it's possible to access the DB API connection directly, and call its `executescript` method:
```py
import sqlalchemy as sa
engine = sa.create_engine('sqlite:///so72341960.db')
# Create a table fo... |
8,188,172 | I am pretty new to rails so this may be an easy question, but I was looking to create a Rails app that would use youtube in it. I have found that youtube\_it seems to be the gem of choice for a task like this but I am having trouble using it. Basically, I want to use the gem so that I can get videos from specific users... | 2011/11/18 | [
"https://Stackoverflow.com/questions/8188172",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1054494/"
] | it looks like what you want to print out is the name of the playlist - but that is an attribute of the playlist object, so you'll need something like:
```
<% @playlists.each do |playlist| %>
<p>Playlist: <%= playlist.title %></p>
<% end %>
```
otherwise ruby is trying to "print" the playlist object - which just do... |
54,264,668 | Hello everyone i have the following row as a sample in my table
```
id shop_id start_time end_time
1 21 10:00 11:00
```
and i want to check whether start\_time and end\_time exist in table or not
I am using following query but not working correctly, Where i am wrong ?
```
se... | 2019/01/19 | [
"https://Stackoverflow.com/questions/54264668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10784895/"
] | You need to clearly separate the checks on the `shop_id` and the time ranges:
```
SELECT *
FROM usr_booking
WHERE
shop_id = 21 AND
(start_time BETWEEN '10:10:00' AND '11:01:00' OR
end_time BETWEEN '10:10:00' AND '11:01:00');
```
The `AND` operator in MySQL has higher precedence than the `OR` operator. S... |
12,996,365 | I have coding below:
```
try{
address = "http://isbndb.com//api/books.xml?
access_key=CKEHIG4D&index1=isbn&value1=" +barcode;
URL url = new URL(address);
URLConnection conn = url.openConnection();
DocumentBuilderF... | 2012/10/21 | [
"https://Stackoverflow.com/questions/12996365",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1740540/"
] | Make sure you are importing the right Element class ([org.w3c.dom.Element](http://developer.android.com/reference/org/w3c/dom/Element.html)). |
56,630,969 | I have one json file with 100 columns and I want to read all columns along with predefined datatype of two columns.
I know that I could do this with schema option:
```
struct1 = StructType([StructField("npi", StringType(), True), StructField("NCPDP", StringType(), True)
spark.read.json(path=abc.json, schema=struct1)... | 2019/06/17 | [
"https://Stackoverflow.com/questions/56630969",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5219480/"
] | According to [official documentation](https://spark.apache.org/docs/latest/api/python/pyspark.sql.html#pyspark.sql.DataFrameReader.json), schema can be either a `StructType` or a `String`.
I can advice you 2 solutions :
### 1 - You use the schema of a dummy file
If you have one light file with the same schema (ie o... |
3,945,342 | I started building an app under an individual developer account.
In preparing to beta and release this I'm switching over to a new company account.
I'm trying to prepare a checklist of the things I will need to update in order to move the project over to the new account.
* Install new development certificate
and prof... | 2010/10/15 | [
"https://Stackoverflow.com/questions/3945342",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/296003/"
] | Here is my checklist in addition to your list:
* Change Version of your app to 1.0 in case if this is your first time you submit the app. If it's an update make sure it has higher version number than the one on app store
* Add Code Signing Entitlement file to the project
* Remove debug code like NSLog
* Build the App ... |
25,179,650 | Is it good practice to declare object inside [`block scope`](http://msdn.microsoft.com/en-us/library/1t0wsc67.aspx) Condition
```
If item.DocType = 1 Then
Dim objass As Assignment = DBFactory.GetAssignmentDB.AssignmentGetByID(vis.AssignmentID)
End If
```
OR should i declare object outside t... | 2014/08/07 | [
"https://Stackoverflow.com/questions/25179650",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1263981/"
] | That entirely depends on the scenario.
If you want to use the variable within the condition only, then declare it inside the condition. If you want the variable to be used outside of the If statement, then it's scope must extend to outside the condition.
There is no 'good practice' for all scenarios. Sometimes it'll ... |
18,648,142 | I was trying to create a brighter color using the default colors that `java.awt.Color` provides
but when I draw using the 2 colors, they appear to be the same?
```
Color blue = Color.BLUE;
Color brighterBlue = blue.brighter();
test.setColor(blue);
test.fillCircle(size);
test.setColor(brighterBlue);
test.drawCircle(... | 2013/09/06 | [
"https://Stackoverflow.com/questions/18648142",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2752646/"
] | Quoting [the docs](http://docs.oracle.com/javase/6/docs/api/java/awt/Color.html#brighter%28%29):
>
> This method applies an arbitrary scale factor to each of the three RGB components of this Color to create a brighter version of this Color.
>
>
>
So, assuming that `Color.blue` is the color `rgb(0, 0, 255)`, the b... |
246,823 | *Prenote: I have asked this question first on [math stackexhange](https://math.stackexchange.com/questions/1882475/gauss-theorem-for-null-boundaries), but a user suggested that mathoverflow might be a better place for this question. Upon thinking about it I have agreed with him and copy-pasted the question here.*
*Not... | 2016/08/04 | [
"https://mathoverflow.net/questions/246823",
"https://mathoverflow.net",
"https://mathoverflow.net/users/85500/"
] | Gauss' Theorem has nothing to do with the (pseudo-)metric. Is just a consequence of Stokes' theorem.
Stokes's theorem says that, for any $n-1$ form $\omega$,
$$ \int\_M d\omega = \int\_{\partial M} \omega. $$
Now fix any smooth measure $\mu$ (i.e. given by a smooth non-vanishing top dimensional form, or a density if... |
15,024,035 | I'm experiencing a very slow startup of gvim with tex files and the latex-suite plugin. For example, opening [this tex file](https://bitbucket.org/andrenarchy/funcall/raw/25d83535b4839ae1598a620b4cb7315a467ccc4b/funcall.tex) takes 7 seconds. A minimal .vimrc file only contains the following line:
```
filetype plugin o... | 2013/02/22 | [
"https://Stackoverflow.com/questions/15024035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1219479/"
] | The reason for that error lies in the fact that you try to map a Set of plain Objects. Object is not a JPA-entity and therefore it cannot be mapped to a relational type.
You'll need to create an entity named Occurence and map it the way you did it with the Set of Objects. |
9,648 | I have various devices to connect to my iMac using good-old RS-232.
Of course, I only have USB connectors on my machine.
I have a couple of Prolific PL2303-based cables, and they seem to work OK, but the kext provided seems a little flaky and I'm not sure about long-term support.
What is the most-stable, best-suppor... | 2011/03/05 | [
"https://apple.stackexchange.com/questions/9648",
"https://apple.stackexchange.com",
"https://apple.stackexchange.com/users/1794/"
] | I have two Prolific USB-to-serial adapters but they are made by different Vendors (one is Prolific, the other ATEN).
I've used their supplied drivers just fine. Note that there are open source drivers for these devices too available here: <https://github.com/failberg/osx-pl2303> FYI my use case is actually patching th... |
14,082,113 | I didnt quite understand whats is the `effect.World` and `effect.View` etc. and why we put the matricies in them?
```
foreach (ModelMesh mesh in model1.Meshes)
{
foreach (BasicEffect effect in mesh.Effects)
{
effect.World = Matrix.CreateWorld(Vector3.Zero, Vector3.Forwar... | 2012/12/29 | [
"https://Stackoverflow.com/questions/14082113",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1673384/"
] | effect.World is not a matrix representing the world. It is a matrix representing a 3d object's (mesh, model) position and orientation relative to the 3d game world. Each object will have a different effect.World matrix if they are positioned differently &/or pointed differently.
effect.View is a matrix that represents... |
10,701,393 | Should an HTML email message begin like any valid HTML-document and should it even have a DOCTYPE declaration? | 2012/05/22 | [
"https://Stackoverflow.com/questions/10701393",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/92063/"
] | HTML emails should include a doctype, html and body declaration if you intend to do anything fancy at all.
There are a multitude of guides on this subject which can help you learn how to properly code HTML Email, but most of them disregard the specifics of a doctype, which is how I stumbled on your question.
I sugges... |
33,302,235 | I have a problem with reading from .xlsx (Excel) file. I tried to use:
```
var fileName = @"C:\automated_testing\ProductsUploadTemplate-2015-10-22.xlsx";
var connectionString = string.Format("Provider=Microsoft.Jet.OLEDB.4.0; data source={0}; Extended Properties=Excel 8.0;", fileName);
var adapter = new OleDbDataAdap... | 2015/10/23 | [
"https://Stackoverflow.com/questions/33302235",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3146582/"
] | If you are reading data from `Excel` file, you can use `EPPlus` NuGet package, and use following code:
```
//using OfficeOpenXml;
using (ExcelPackage xlPackage = new ExcelPackage(new FileInfo(@"C:\YourDirectory\sample.xlsx")))
{
var myWorksheet = xlPackage.Workbook.Worksheets.First(); //select sheet here
var t... |
55,691,091 | [](https://i.stack.imgur.com/Uw9j2.jpg)
I am trying to transfer some text files on SFTP Server using Putty command line option.
I have a batch file with the following commands:
```
(
echo cd /inbox
echo mput c:\temp\*.txt
echo bye
echo cd c:\temp\
echo del c:\temp\*.txt
)... | 2019/04/15 | [
"https://Stackoverflow.com/questions/55691091",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6089571/"
] | You don't need to make 2 connections to the db for getting the same data. You could create a collection of objects and use them in place like such...
```
<?php
$arr = [];
$sql = "SELECT category.name as cat, article.name as art from category
JOIN article ON category.id = article.id";
$query = mysqli_query($... |
63,853,893 | Good day to all! I need Your help.
I have a DataFrame like:
```
df.sort_values('date')
name date mark
0 Jack 2019-03 4
1 Michael 2019-03 6
2 John 2019-03 9
3 Michael 2019-03 2
4 Jerry 2019-03 4
5 Jack 2019-03 5
6 John... | 2020/09/11 | [
"https://Stackoverflow.com/questions/63853893",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12935018/"
] | You can use an `if_else` like so:
```r
library(lubridate)
library(dplyr)
x <- seq(1,5)
y <- c(dmy("04/02/1863", "29/10/1989", "16/03/2000", "14/05/2021", NA))
dat <- tibble(x,y)
dat %>%
mutate(y = if_else(y >= dmy("01/06/2020") | y < dmy("01/01/1900"), NA_Date_, y))
#> # A tibble: 5 x 2
#> x y
#> ... |
9,942,275 | I'm working with two-dimensional array-values that should be inserted into a ArrayList. But this is done in a for-loop and the value of the two-dimensional array-value gets changed as the loop runs since it is just used as an temp-variable (which makes all of the variables stored in the ArrayList gets changed as this v... | 2012/03/30 | [
"https://Stackoverflow.com/questions/9942275",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1255810/"
] | The problem is the way Array is added to the Object here. You are not adding the Array to the Object. What is happening is you are adding the address to the location in memory where the Array resides. So every time you add the Array to the Object, you are adding the same address every time. So every Array in the Object... |
25,668,796 | I'm trying to make a function that changes a char array from the main function, that's what I'm trying to do:
```
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
void change(char *a);
int main()
{
char a[] = "hello";
printf("\na = %s", a);
change(a);
printf("%\na = %s", a);
getch();
}
... | 2014/09/04 | [
"https://Stackoverflow.com/questions/25668796",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3174594/"
] | Several problems with this code, but first we need to take a step back and talk about how arrays are handled in C.
Except when it is the operand of the `sizeof` or unary `&` operators, or is a string literal used to initialize another array in a declaration, an expression of type "N-element array of `T`" will be conve... |
67,481,013 | I am using react-select with styled component and it is working but I want to use tailwind classes using twin macro.
```
import tw from 'twin.macro';
import styled from 'styled-components';
import Select from 'react-select';
export const StyledReactSelect = styled(Select)(() => [
`
.Select__control {
height: 4... | 2021/05/11 | [
"https://Stackoverflow.com/questions/67481013",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2585973/"
] | When you define a Coroutine, eg;
```cs
using System.Collections;
public class C {
private void before() { }
private void after() { }
public IEnumerator MyCoroutine()
{
before();
yield return null;
after();
}
}
```
The compiler defines a new type to track the state of the m... |
40,142,675 | The method I am using takes two sorted lists and returns a single list containing all of the elements in the two original lists, in sorted order.
For example, if the original lists are (1, 4, 5) and (2, 3, 6) then the result list would be (1, 2, 3, 4, 5, 6).
Is there something I am missing?
```
public static<E ext... | 2016/10/19 | [
"https://Stackoverflow.com/questions/40142675",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5900887/"
] | In order to perform a merge, you need to peek at the next value, so see which next value to use.
Eventually, one of the lists will run out of values before the other, so you need to check for that.
One trick is to use `null` as an End-Of-Data marker, assuming that lists cannot contain `null` values, which is a fair a... |
44,691,438 | I was trying to restore jenkins on a new machine by tacking up backup from old machine . I replaced the jenkins home directory of new machine from old one. When i launch jenkins it gives me this error.
```
Caused: java.io.IOException: Unable to read /var/lib/jenkins/config.xml
```
There is also
```
Caused: hudson... | 2017/06/22 | [
"https://Stackoverflow.com/questions/44691438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2991413/"
] | This usually happens when the plugin providing the authorization strategy is not installed or enabled.
Make sure the `matrix-auth` plugin is installed and that it's not disabled (no `matrix-auth.jpi.disabled` file (or similar) in `$JENKINS_HOME/plugins/`). |
52,205,476 | **Now Playing Activity**
```js
public class NowPlayingActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_nowplaying);
// The buttons on the screen
ImageB... | 2018/09/06 | [
"https://Stackoverflow.com/questions/52205476",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10256304/"
] | Installing @types/moment as a dev dependency solved it for me. |
20,764,375 | I have 2 videos. Each 7 seconds long. I need the top video to fadeout after it is halfway done playing, revealing the bottom video for 3.5 seconds, then fading back in, in an infinite loop.
I am unable to get the video to fade and not sure how to make it start at a specific time. This is what I have:
JS
```
<script t... | 2013/12/24 | [
"https://Stackoverflow.com/questions/20764375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2482256/"
] | to track the time in the video and make decisions based on that, you'll want to track the `timeupdate` event on the video, and then use the `currentTime` property to decide what to do.
This fragment will allow you to swap one video out at the 2.5s mark, play the second for 3.5s then swap back to the first ... you can ... |
237,697 | In my [previous question](https://worldbuilding.stackexchange.com/questions/234454/i-designed-a-maglev-space-propulsion-tube-on-mt-everest-do-you-see-any-issues), I was discussing about the possibility of using a mass-driver on Mt. Everest, to propel payloads to space, and reduce the amount of fuel needed (RIP bulky ro... | 2022/11/06 | [
"https://worldbuilding.stackexchange.com/questions/237697",
"https://worldbuilding.stackexchange.com",
"https://worldbuilding.stackexchange.com/users/97694/"
] | Impossibility 1: Ring magnets as depicted
-----------------------------------------
All magnetic fields need to be closed curves. The ring magnet as depicted would require a magnetic source at the very center of the ring, which is forbidden.
The problem can be alleviated by placing many magnets on the outside in the ... |
72,630,214 | I have this laravel project, but due the specific version of it's dependencies it need php 8 to run, but I need it to run with php 7.4, is there a way so that we can downgrade the dependencies?
```
....
"require": {
"php": "^8.0.2",
"barryvdh/laravel-debugbar": "^3.6",
"fruitcake/lara... | 2022/06/15 | [
"https://Stackoverflow.com/questions/72630214",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7995302/"
] | Laravel 9 [works only](https://github.com/laravel/framework/blob/9.x/composer.json) on PHP 8, so you can't, unless you are up to downgrading Laravel version too. But installing newer PHP will be faster. |
279,607 | I've encountered the following notation several times (for example, when discussing Noether's Theorem):
$$\frac{\partial L}{\partial(\partial\_\mu \phi)}$$
And it's not immediately clear to me what this operator $\frac{\partial}{\partial(\partial\_\mu \phi)}$ refers to. Based on the answer to [this question](https://ph... | 2016/09/11 | [
"https://physics.stackexchange.com/questions/279607",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/52072/"
] | In field theory usually you have a Lagrangian density function of fields and first derivative of fields or
$$\mathscr{L}(\phi,\partial\_\mu\phi).$$ It is well know that higher derivative of field than first are in some way problematic (Hamiltonian not bounded from below). Field equations follow from Euler-Lagrange equa... |
251,179 | How do I let a few specified non-subscriber email addresses post to an otherwise closed GNU Mailman mailing list? | 2011/03/24 | [
"https://serverfault.com/questions/251179",
"https://serverfault.com",
"https://serverfault.com/users/10813/"
] | I finally figured out how to do this!
Go to the list's Privacy Options, click on Sender Filters, then add the emails to the option called `accept_these_nonmembers`. |
23,374,985 | I'm using Susy 2 with breakpoint-sass to create my media queries.
It's outputting like:
```
@media (min-width: 1000px)
```
I'm wondering why the screen is missing? It should read:
```
@media screen (min-width: 1000px)
```
I'm trying to add css3-mediaqueries-js which isn't working and I think that might be why. | 2014/04/29 | [
"https://Stackoverflow.com/questions/23374985",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/823239/"
] | If you want to use `HashSet`, you can override `hashCode` and `equals` to exclusively look at those two members.
Hash code: (`31` is just a prime popularly used for hashing in Java)
```
return 31*id_a + id_b;
```
Equals: (to which you'll obviously need to add `instanceof` checks and type conversion)
```
return id_... |
49,929,034 | Trying to figure out this error. I am attempting to call on an API, and map the JSON data from the API call to a CurrencyModel. No issues with that, but when I am calling on a method that returns an observable (as it is waiting for two other API calls), it's throwing the following error to the provider property:
>
> ... | 2018/04/19 | [
"https://Stackoverflow.com/questions/49929034",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4008500/"
] | if you use the `elif` construct, it will be tested only when the previous condition was false, so in the end only one of the code blocks will run.
```
if some_condition:
# code
elif another_condition:
# code
elif yet_another_condition:
# code
else:
# code
``` |
2,185,846 | I just uploaded my application in the market, but I'm not able to purchase it (it's a pay app).
I saw [here](http://market.android.com/support/bin/answer.py?hl=en&answer=141659) that it seems to be *made by design*, but then why the error message is `Server Error try again` ?
Is there a way to bypass that ? | 2010/02/02 | [
"https://Stackoverflow.com/questions/2185846",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/231417/"
] | Do you have an Android Developer Phone? If so, you can't purchase your own app by design. Since ADPs are unlocked, there's nothing preventing an ADP from easily pirating any app it downloads, so they are purposely cut off from downloading paid apps. |
50,046,938 | I'm working with places, and I need to get the latitude and longitude of my location. I successfully got it like this
```
mLatLang = placeLikelihood.getPlace().getLatLng();
```
where mLatLang is `LatLng mLatLang;`
Now, the output of this line is
```
(-31.54254542,62.56524)
```
but since I'm using an URL to que... | 2018/04/26 | [
"https://Stackoverflow.com/questions/50046938",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9164141/"
] | What you are missing in your logic is that `replaceAll` returns the resultant string. But you are not storing the result, and that's why it's not working. So try as following:
```
latlongshrink = latlongshrink.replaceAll("[\\\\[\\\\](){}]","");
```
Now try to print the result. It'll give the expected result. See [th... |
41,196,867 | This is a question I always had, but now is the time to solve it:
I'm trying to implement the composition of objects using public attributes like:
```
Person {
public Car car;
}
Owner {
public Person person;
public Car car;
}
Car {
public Person person;
}
```
Really my question is: Is a good practice to se... | 2016/12/17 | [
"https://Stackoverflow.com/questions/41196867",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5900879/"
] | If you are doing OO, there should be no such thing as a "public" attribute. All the attributes are implementation details of the object, therefore are hidden from everybody. Only the methods associated with the object's responsibility are public.
So to answer the question:
* All "attributes" should be private
* *And*... |
1,015,017 | Simple as that, can we emulate the "protected" visibility in Javascript somehow? | 2009/06/18 | [
"https://Stackoverflow.com/questions/1015017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12540/"
] | Do this:
```
/* Note: Do not break/touch this object */
...code...
```
Or a bit of google found this on the first page:
<http://blog.blanquera.com/2009/03/javascript-protected-methods-and.html> |
10,476,265 | I have a PDF form that needs to be filled out a bunch of times (it's a timesheet to be exact). Now since I don't want to do this by hand, I was looking for a way to fill them out using a python script or tools that could be used in a bash script.
Does anyone have experience with this? | 2012/05/07 | [
"https://Stackoverflow.com/questions/10476265",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/701409/"
] | **For Python you'll need the fdfgen lib and pdftk**
@Hugh Bothwell's comment is 100% correct so I'll extend that answer with a working implementation.
If you're in windows you'll also need to make sure both python and pdftk are contained in the system path (unless you want to use long folder names).
Here's the code ... |
275,889 | In quantum mechanics it is usually the case that when degrees of freedom in a system are traced out (i.e. ignored), the evolution of the remaining system is no longer unitary and this is formally described as the entropy of the reduced density matrix ($S = Tr(\rho\ln{\rho}$)) attaining a nonzero value.
Why is it then... | 2016/08/23 | [
"https://physics.stackexchange.com/questions/275889",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/41152/"
] | The answer to your question is a bit subtle and has to do with the various ways we can ignore degrees of freedom in physics. One way, as you mentioned, is if you have a system interacting with its environment but you don't care about the state of the environment. Then you can perform a partial trace over environmental ... |
5,817,526 | So I was wondering, is there any feasible way in JavaScript to view information about scheduled timeouts and intervals that you don't explicitly know about (I know `setTimeout` and `setInterval` return a handle that can be used to refer to the scheduled instance, but say that this is unavailable for one reason or anoth... | 2011/04/28 | [
"https://Stackoverflow.com/questions/5817526",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/609251/"
] | how about simply rewriting the setTimeout function to sort of inject custom logging functionality?
like
```
var oldTimeout = setTimeout;
window.setTimeout = function(callback, timeout) {
console.log("timeout started");
return oldTimeout(function() {
console.log('timeout finished');
callback();
}, timeou... |
29,138,498 | Can I import RDBMS table data (table doesn't have a primary key) to hive using sqoop? If yes, then can you please give the sqoop import command.
I have tried with sqoop import general command, but it failed. | 2015/03/19 | [
"https://Stackoverflow.com/questions/29138498",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4688490/"
] | If your table has no primary key defined then you have to give `-m 1` option for importing the data or you have to provide `--split-by` argument with some column name, otherwise it gives the error:
```
ERROR tool.ImportTool: Error during import: No primary key could be found for table <table_name>. Please specify on... |
3,585 | I have recently setup Wordpress Multisite and have that working well. Now to complete the branding, I want to use `feeds.mydomain.com` for the MyBrand integration to Feedburner. I have setup the CNAME to point to the server that Feedburner has specified, but when I visit the site (after ensuring the entry could propaga... | 2010/10/06 | [
"https://webmasters.stackexchange.com/questions/3585",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/835/"
] | This is probably a DNS issue. Make sure `feeds.mydomain.com` points to Feedburner. You can easily check it running a DNS query.
With Linux/MacOSX, use the `dig` command.
```
$ dig feeds.engadget.com
; <<>> DiG 9.6.0-APPLE-P2 <<>> feeds.engadget.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY... |
23,996 | Let me introduce my idea.
Given:
* sizeof( Blockchain ) = 16Gb
* Downloading of one avi film 16GB from the pirate bay ( 5mb/s ) = 2-3 hours
* Downloading of bitcoin's blockchain ( 5mb/s ) = 2-3 days
* One day = 6 \* 24 = 144 blocks.
* Drag - cryptography.
Task:
* Accelerate boot of fresh client to the torrent speed... | 2014/03/26 | [
"https://bitcoin.stackexchange.com/questions/23996",
"https://bitcoin.stackexchange.com",
"https://bitcoin.stackexchange.com/users/12645/"
] | When a node learns of a transaction, some validity tests are performed and if the transaction is not yet in the blockchain it knows of with the longest height and the transaction also is valid (i.e., not a double spend) then that transaction is added to that node's memory pool.
If a later transaction arrives at a node... |
79,602 | I'm learning Salesforce Marketing Cloud and experienced some unexpected behavior today.
I sent a message to a number of data extensions. The number of recipients was upwards of 70,000. Before I sent the official email I sent a test specifically to my address. Everything looked good so I used Guided Send to send to the... | 2015/06/11 | [
"https://salesforce.stackexchange.com/questions/79602",
"https://salesforce.stackexchange.com",
"https://salesforce.stackexchange.com/users/21233/"
] | Also you can directly query in child object using relationship fields,
```
[select ISOOffice__Merchant_Location__c,Account__r.Name
from ISOOffice__Merchant_Opportunity__c where
ISOOffice__Opportunity_Type__c = 'New Merchant' AND
Account__r.Name = 'Goodwill of Southwestern Pennsylvania']
```
You need to prefix ... |
40,910,892 | I am trying to call Application insights API using pageviews Event and i get this error message
```
{
"error": {
"message": "Rate limit is exceeded",
"code": "ThrottledError",
"innererror": {
"code": "ThrottledError",
"message": "Rate limit of 0 per day is exceeded.",
"limitValue": 0,
... | 2016/12/01 | [
"https://Stackoverflow.com/questions/40910892",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7236177/"
] | You get this issue if you are on the old pricing model, and you don't if you are on the new pricing model.
Unless you created a brand new Application Insights instance very recently, you are probably are on the old pricing model. Easiest way to tell is if you see "Features + pricing" in your Application Insights, you ... |
21,586,409 | I want to get notified when a test fails. Ideally, I want to know if the test is passed or failed in my @After annotated method. I understand that their is a RunListener which can be used for this purpose but it works only if we run the test with JunitCore. Is there a way to get notified if a test case fails or somethi... | 2014/02/05 | [
"https://Stackoverflow.com/questions/21586409",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2943317/"
] | The Spring TestContext Framework provides a `TestExecutionListener` SPI that can be used to achieve this.
Basically, if you implement `TestExecutionListener` (or better yet extend `AbstractTestExecutionListener`), you can implement the `afterTestMethod(TestContext)` method. From the `TestContext` that is passed in you... |
25,324,860 | I have to link two containers so they can see each other. Of course the following...
```
docker run -i -t --name container1 --link container2:container2 ubuntu:trusty /bin/bash
docker run -i -t --name container2 --link container1:container1 ubuntu:trusty /bin/bash
```
...fails at line 1 because a container needs to ... | 2014/08/15 | [
"https://Stackoverflow.com/questions/25324860",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/644958/"
] | Docker 1.10 addresses this very nicely by introducing advanced container networking.
(Details: <https://docs.docker.com/engine/userguide/networking/dockernetworks/> )
First, create a network. The example below creates a basic "bridge" network, which works on one host only. You can check out docker's more complete docu... |
5,309,206 | I use HtmlUnit to fill form.
I have a select `SELECT_A`. After selecting option the additional elements must appear in the page. But it's not working! I simulate Firefox 3.6.
What do you think?
I tried to use `NicelyResynchronizingAjaxController()` but it does not help. | 2011/03/15 | [
"https://Stackoverflow.com/questions/5309206",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/660203/"
] | One note: fireEvent should be called with `"change"` parameter, not `"onchange"`. Or `fireEvent(Event.TYPE_CHANGE);` is even better. |
63,919,101 | I have one almost completed Java application with authentication and need to add to this project another one app to reuse auth code, for example.
As I heard there could be some kind of two "main activities" with different icons to launch them separately. Also I cannot check this info, because don't know how this named... | 2020/09/16 | [
"https://Stackoverflow.com/questions/63919101",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4974229/"
] | You should consider using flavors for your apps. This allows you setting different app name, icons, code for each flavor.
Here is an example for defining two flavors in your main module's build.gradle:
```
buildTypes {
debug{...}
release{...}
}
// Specifies one flavor dimension.
flavorDime... |
43,355,774 | So i'm trying to generate all binaries of a size n but with the condition that only k 1s. i.e
for size n = 4, k=2, (there is 2 over 4 combinations)
```
1100
1010
1001
0110
0101
0011
```
I'm stuck and can't figure out how to generate this. | 2017/04/11 | [
"https://Stackoverflow.com/questions/43355774",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6915563/"
] | Using the basic recursive method for printing all binary sequence all that remains is to enforce your constraints:
```
private static void binSeq(int n, int k, String seq) {
if (n == 0) {
System.out.println(seq);
return;
}
if (n > k) {
binSeq(n - 1, k, seq + "0");
}
if... |
989,381 | I have Intel NUC i5 with Latest OpenElec installed on it.
I would like to wake it up from suspend using Wake On Lan feature (sent from another device on my home network), but I am having difficulties with that.
I have verified WOL is enabled in the BIOS, and I have tried to use the WOL Windows GUI provided in Depicio... | 2015/10/20 | [
"https://superuser.com/questions/989381",
"https://superuser.com",
"https://superuser.com/users/511927/"
] | I was looking for an answer to this and just tested out a number of syncing services on my Mac by trying to copy an OSX framework. The only one that successfully copied the internal symbolic links between folders was...
* **[Copy.com](https://copy.com)** (Edit: **Service will shut down on May 1, 2016**. So that leaves... |
11,230,424 | I am uncompressing a .gz-file and putting the output into `tar` with php.
My code looks like
```
$tar = proc_open('tar -xvf -', array(0 => array('pipe', 'r'), 1 => array('pipe', 'w'), 2 => array('pipe', 'a')), &$pipes);
$datalen = filesize('archive.tar.gz');
$datapos = 0;
$data = gzopen('archive.tar.gz', 'rb');
while... | 2012/06/27 | [
"https://Stackoverflow.com/questions/11230424",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/522479/"
] | `1 => array('pipe', 'w')`
You have tar giving you data (file names) on stdout. You should empty that buffer. (I normally just read it.)
You can also send it to a file so you don't have to deal with it.
`1 => array('file', '[file for filelist output]', 'a')`
if you're on Linux, I like to do
`1 => array('file', '/de... |
2,079,812 | What is the difference between WPF and Silverlight?
Is it just the same as winforms vs asp as in desktop apps versus web app or is there an overlap? | 2010/01/17 | [
"https://Stackoverflow.com/questions/2079812",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/231822/"
] | Silverlight is a subset of the functionality in WPF. WPF is desktops, silverlight is cross-platform web apps. Silverlight can run out-of-browser with limited functionality. if you want full blown WPF and access to everything WPF can access on the client, you can't do silverlight out-of-browser - just build a WPF app.
... |
45,149 | I imported some 2000 photos into Lightroom 5 on the Mac, and then removed most of the ones in them, bringing it down to 40 photos. I did this by selecting photos I didn't like, pressing the Delete button and selecting Remove (not Delete From Disk). These removed photos are still on the filesystem, taking up 30 GB. How ... | 2013/11/13 | [
"https://photo.stackexchange.com/questions/45149",
"https://photo.stackexchange.com",
"https://photo.stackexchange.com/users/22575/"
] | The problem is that Lightroom does not know about these images, so it cannot do anything about it. Essentially you want to know which photos are *not* in Lightroom. I have no idea how to do that but I think this will work:
From Lightroom, select the folder or tree where these photos are and synchronize it. It will pop... |
43,675,036 | I'm quite new to SQL and databases.
I'm trying to make a preference table of an user.
The fields will be `user_id`, `pref_no`, `prg_code`.
Now if I create the table making `pref_no` `auto_increment` then it will automatically increase irrespective of the `user_id`.
So, my question is - Is there a way to define the t... | 2017/04/28 | [
"https://Stackoverflow.com/questions/43675036",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5771617/"
] | Following what `Mjh` and `Fahmina` suggested, we can create a procedure for the insertion.
```
DELIMITER //
CREATE PROCEDURE test(IN u_id INT(7), p_code INT(5))
BEGIN
SELECT @pno:= MAX(pref_no) FROM temp_choice WHERE user_id = u_id;
IF @pno IS NULL THEN
SET @pno = 1;
ELSE
... |
34,278,600 | As per Java Concurrency in Practice below code can throw assertion Error:
If a thread other than the publishing thread were to call
assertSanity, it could throw AssertionError
```
public class Holder {
private int n;
public Holder(int n) { this.n = n; }
public void assertSanity() {
if (n != n)
throw new AssertionE... | 2015/12/14 | [
"https://Stackoverflow.com/questions/34278600",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4008171/"
] | Answering my own question, I should have read complete chapter before asking question. This is what later part of chapter says:
>
> Mutable objects: If an object may be modified after construction, safe
> publication ensures only the visibility of the as-published state.
> Synchronization must be used not only to p... |
4,968,504 | I am using spring tags to in my jsp page.
Now I have a situation where I am using form:select for a dropdown.
If I select first value in the dropdown "normal.jsp" page should be diaplayed. If I select second value "reverse.jsp" page should be displayed.
Both these jsp pages should be displayed in the main page below... | 2011/02/11 | [
"https://Stackoverflow.com/questions/4968504",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/557068/"
] | You've not been very clear with your problem description but I can give you a place to start looking. When ever any subview of a UIScrollView is made a first responder that UISCrollView calls scrollsRectToVisible. If the scrollView is scrolling to the wrong location that may be because the tap gesture is setting the wr... |
3,211,437 | HI
I have the following (apparently simple) problem: I have to install a simple website, made by someone else, on a web hosting account. The site consists of lot and lot of HTML pages, no dynamic content, created some in MS Word and saved as html, some in frontpage, etc. A mixed bag.
I uploaded initially on a test ac... | 2010/07/09 | [
"https://Stackoverflow.com/questions/3211437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/163124/"
] | You don't give enough information to confirm this, but I guess the salt is used in its binary form. In that case, changing the encoding of the file will corrupt the salt if this binary stream is changed, even if the characters are correctly converted.
Since the first 128 characters are similar in UTF-8 and Mac OS Roma... |
289,429 | I just added a second user to my Exchange 2010 box, it is in coexistence with exc2003. My account is already set up and working with a personal archive folder.
The user I just set up however is unable to see the archive in Outlook. It is visible in OWA but not outlook. I have created a test profile on my PC with the ... | 2011/07/12 | [
"https://serverfault.com/questions/289429",
"https://serverfault.com",
"https://serverfault.com/users/87374/"
] | Change the configuration of the `origin` remote. See the **REMOTES** section of the `git-push(1)` man page for details. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.