qid int64 1 74.7M | question stringlengths 15 58.3k | date stringlengths 10 10 | metadata list | response_j stringlengths 4 30.2k | response_k stringlengths 11 36.5k |
|---|---|---|---|---|---|
50,956,396 | I wanted to find an intersection between two arraylist that are of byte[] format and return the common indices. I have the code as follows and it works correctly:
```
ArrayList<Integer> intersect = new ArrayList<Integer>();
for(int j = 0; j < A.size(); j++)
{
byte [] t = A.get(j);
for (int j1 = 0;... | 2018/06/20 | [
"https://Stackoverflow.com/questions/50956396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9732420/"
] | If you just dont want to use for loops, you may try the Java 8 streams, since you have not shared the complete code I did not try it out.
```
List<T> intersect = list1.stream()
.filter(list2::contains)
.collect(Collectors.toList());
``` | This may help:
```
public <T> List<T> intersection(List<T> list1, List<T> list2) {
List<T> list = new ArrayList<T>();
for (T t : list1) {
if(list2.contains(t)) {
list.add(t);
}
}
return list;
}
```
Reference:
[Intersection and union of Arra... |
50,956,396 | I wanted to find an intersection between two arraylist that are of byte[] format and return the common indices. I have the code as follows and it works correctly:
```
ArrayList<Integer> intersect = new ArrayList<Integer>();
for(int j = 0; j < A.size(); j++)
{
byte [] t = A.get(j);
for (int j1 = 0;... | 2018/06/20 | [
"https://Stackoverflow.com/questions/50956396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9732420/"
] | I think for `T` your solution with brutforce is not so bad. This is a small refactoring of it. Yes, for specific `T` (e.g. `int`) you could use special structures, but in general case, I think this is not implementable.
```
public static <T> List<Integer> intersect(List<T> A, List<T> B, BiPredicate<T, T> isEqual) {
... | This may help:
```
public <T> List<T> intersection(List<T> list1, List<T> list2) {
List<T> list = new ArrayList<T>();
for (T t : list1) {
if(list2.contains(t)) {
list.add(t);
}
}
return list;
}
```
Reference:
[Intersection and union of Arra... |
3,145 | I recently upgraded my site from SharePoint 2007 to SharePoint 2010.
The first issue I noticed was that the "lookup" columns in "Display view" showed up as the hyperlink instead of the string.
```
Salesman "<a onclick="OpenPopUpPage('http://sharepoint2010:72/blackbook/_layouts/listform.aspx?PageType=4&ListId={FB9575A... | 2010/05/26 | [
"https://sharepoint.stackexchange.com/questions/3145",
"https://sharepoint.stackexchange.com",
"https://sharepoint.stackexchange.com/users/-1/"
] | 1- one solution is to use XPath functions to extract the simple inner text. see below sample
```
<xsl:value-of select="substring-before( substring-after(@Service_, '>') , '<') "/>
```
you can use some useful auto-complete XPath editor or more advanced editor in ribbon (see below image)
[![enter image descrip... | Check this URL
This may help u
<http://www.chakkaradeep.com/post/Using-the-SharePoint-2010-Modal-Dialog.aspx> |
39,740,575 | I used `DownloadManager` to download a file from server, I expect when the network is not connected to internet I receive `STATUS_PAUSED` in `BroadcastReceiver`. But it doesn't call `onReceive()`.
```
downloadReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {... | 2016/09/28 | [
"https://Stackoverflow.com/questions/39740575",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5221941/"
] | What you are trying to do doesn't make any sense.
As mentioned on [Beautiful Soup Documentation](https://www.crummy.com/software/BeautifulSoup/bs4/doc/):
>
> Beautiful Soup is a Python library for pulling data out of HTML and XML files. It works with your favorite parser to provide idiomatic ways of navigating, sear... | I don't know whether someone was able to solve it or not but my hit and trial worked. the problem was I was not converting the content to string.
```
#what i needed to add was:
#after line data=BeautifulSoup(page.content)
a=str(data)
```
Hopefully this helps |
58,805,703 | I'm new to this VBA for excel.
I'm trying to write some code that will check (for 2 specific columns: let' say C and I) until it comes to a specific text and copies the column next to that value (from the column before) in a different spreadsheet.
For Example, check if in column **C** and column **I** the word "Yes" ... | 2019/11/11 | [
"https://Stackoverflow.com/questions/58805703",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11613489/"
] | You can do that without a rotation matrix, just by vector calculus.
A point `S` along the line through `P` and `Q` is computed by `P + t.PQ` where `t` is a scalar. Now take any point in space, let `R` and find its orthogonal projection `S` on the line, by solving `RS.PQ = 0` or `(RP + t.PQ).PQ = 0`, or `t = - RP.PQ / ... | Quaternions are interesting, but not necessary. A rotation matrix can be used here.
Outline of the algorithm:
* suppose p1 and p2 are the 3D points of the line
* let p1p2 be the normalized vector from p1 towards p2 (normalize(p2-p1))
* place four points s1, s2, s3, s4 at (0,1,1), (0,1,-1), (0,-1,-1), (0,-1,1); these ... |
58,805,703 | I'm new to this VBA for excel.
I'm trying to write some code that will check (for 2 specific columns: let' say C and I) until it comes to a specific text and copies the column next to that value (from the column before) in a different spreadsheet.
For Example, check if in column **C** and column **I** the word "Yes" ... | 2019/11/11 | [
"https://Stackoverflow.com/questions/58805703",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11613489/"
] | You can do that without a rotation matrix, just by vector calculus.
A point `S` along the line through `P` and `Q` is computed by `P + t.PQ` where `t` is a scalar. Now take any point in space, let `R` and find its orthogonal projection `S` on the line, by solving `RS.PQ = 0` or `(RP + t.PQ).PQ = 0`, or `t = - RP.PQ / ... | ```
func drawline(starting_point, finishing_point):
var width = 0.1
var diference_vector = finishing_point - starting_point
var diference_vector_norm = sqrt(pow(diference_vector[0],2.0) + pow(diference_vector[1],2.0) + pow(diference_vector[2],2.0))
var normalized_difference_vector
if diference_vector_norm != 0:
... |
29,367,533 | I have array with integers something like this:
```
[1, 2, 3, 6, 10]
```
My question is what is the easiest way to get lowest positive integer that is not already in this array?
Something like:
```
[1, 2, 3, 6, 10].lowest_available => 4
[1, 8, 3, 6, 10].lowest_available => 2
[5, 8, 3, 6, 10].lowest_available => 1
... | 2015/03/31 | [
"https://Stackoverflow.com/questions/29367533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2945241/"
] | >
> By lowest i mean integer that is > 0 and not already in the array
>
>
>
Basically you are looking for the first value that is not equal to its `index+1` when sorted. Here:
```
def lowest_available(arr)
res = nil
arr.sort.each.with_index(1) { |a, i|
if i != a
res = i
break
end
}
res... | ```
class Array
def lowest_available; (1..Float::INFINITY).find{|e| include?(e).!} end
end
[1, 2, 3, 6, 10].lowest_available # => 4
[1, 8, 3, 6, 10].lowest_available # => 2
[5, 8, 3, 6, 10].lowest_available # => 1
```
or, as suggested by Stefan:
```
class Array
def lowest_available; 1.step.find{|e| include?(e).... |
29,367,533 | I have array with integers something like this:
```
[1, 2, 3, 6, 10]
```
My question is what is the easiest way to get lowest positive integer that is not already in this array?
Something like:
```
[1, 2, 3, 6, 10].lowest_available => 4
[1, 8, 3, 6, 10].lowest_available => 2
[5, 8, 3, 6, 10].lowest_available => 1
... | 2015/03/31 | [
"https://Stackoverflow.com/questions/29367533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2945241/"
] | >
> By lowest i mean integer that is > 0 and not already in the array
>
>
>
Basically you are looking for the first value that is not equal to its `index+1` when sorted. Here:
```
def lowest_available(arr)
res = nil
arr.sort.each.with_index(1) { |a, i|
if i != a
res = i
break
end
}
res... | There is a very simple way
```
def lowest_available (array)
min = array.min
max = array.max
number = (min..max).to_a - array
number = array.select { |v| v>0 }
number = number.min + 1
end
```
What I am doing is to create another array that contains all numbers in the interval of the array in question.
Once ... |
29,367,533 | I have array with integers something like this:
```
[1, 2, 3, 6, 10]
```
My question is what is the easiest way to get lowest positive integer that is not already in this array?
Something like:
```
[1, 2, 3, 6, 10].lowest_available => 4
[1, 8, 3, 6, 10].lowest_available => 2
[5, 8, 3, 6, 10].lowest_available => 1
... | 2015/03/31 | [
"https://Stackoverflow.com/questions/29367533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2945241/"
] | ```
class Array
def lowest_available; (1..Float::INFINITY).find{|e| include?(e).!} end
end
[1, 2, 3, 6, 10].lowest_available # => 4
[1, 8, 3, 6, 10].lowest_available # => 2
[5, 8, 3, 6, 10].lowest_available # => 1
```
or, as suggested by Stefan:
```
class Array
def lowest_available; 1.step.find{|e| include?(e).... | There is a very simple way
```
def lowest_available (array)
min = array.min
max = array.max
number = (min..max).to_a - array
number = array.select { |v| v>0 }
number = number.min + 1
end
```
What I am doing is to create another array that contains all numbers in the interval of the array in question.
Once ... |
29,367,533 | I have array with integers something like this:
```
[1, 2, 3, 6, 10]
```
My question is what is the easiest way to get lowest positive integer that is not already in this array?
Something like:
```
[1, 2, 3, 6, 10].lowest_available => 4
[1, 8, 3, 6, 10].lowest_available => 2
[5, 8, 3, 6, 10].lowest_available => 1
... | 2015/03/31 | [
"https://Stackoverflow.com/questions/29367533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2945241/"
] | >
> By lowest i mean integer that is > 0 and not already in the array
>
>
>
Basically you are looking for the first value that is not equal to its `index+1` when sorted. Here:
```
def lowest_available(arr)
res = nil
arr.sort.each.with_index(1) { |a, i|
if i != a
res = i
break
end
}
res... | 1. Sort the array
2. Iterate over the array and compare each item's value with the current index+1, if this pair is not equal you found the lowest available integer which is index+1. |
29,367,533 | I have array with integers something like this:
```
[1, 2, 3, 6, 10]
```
My question is what is the easiest way to get lowest positive integer that is not already in this array?
Something like:
```
[1, 2, 3, 6, 10].lowest_available => 4
[1, 8, 3, 6, 10].lowest_available => 2
[5, 8, 3, 6, 10].lowest_available => 1
... | 2015/03/31 | [
"https://Stackoverflow.com/questions/29367533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2945241/"
] | >
> By lowest i mean integer that is > 0 and not already in the array
>
>
>
Basically you are looking for the first value that is not equal to its `index+1` when sorted. Here:
```
def lowest_available(arr)
res = nil
arr.sort.each.with_index(1) { |a, i|
if i != a
res = i
break
end
}
res... | To get the lowest possible number > 0 in an array containing negative values, I would add something to the given solution by [@shivam](https://stackoverflow.com/a/29367766/14048071), and finally, a function looks something like this:
```rb
def lowest_element(arr)
res = nil
arr = arr.reject { |e| e < 0 }
arr.sort... |
29,367,533 | I have array with integers something like this:
```
[1, 2, 3, 6, 10]
```
My question is what is the easiest way to get lowest positive integer that is not already in this array?
Something like:
```
[1, 2, 3, 6, 10].lowest_available => 4
[1, 8, 3, 6, 10].lowest_available => 2
[5, 8, 3, 6, 10].lowest_available => 1
... | 2015/03/31 | [
"https://Stackoverflow.com/questions/29367533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2945241/"
] | >
> By lowest i mean integer that is > 0 and not already in the array
>
>
>
Basically you are looking for the first value that is not equal to its `index+1` when sorted. Here:
```
def lowest_available(arr)
res = nil
arr.sort.each.with_index(1) { |a, i|
if i != a
res = i
break
end
}
res... | Another way (it's late):
```
def first_missing(a)
a.reduce(0) { |tot,n|
exp=expected(tot); return exp if n>exp; tot + n }
end
def expected(tot)
((-1.0 + Math.sqrt(1.0+8*tot))/2).round + 1
end
first_missing([1, 2, 3, 6, 10]) #=> 4
first_missing([1, 8, 3, 6, 10]) #=> 2
first_missing([5, 8, 3, 6, 10]) #=> 1
``... |
29,367,533 | I have array with integers something like this:
```
[1, 2, 3, 6, 10]
```
My question is what is the easiest way to get lowest positive integer that is not already in this array?
Something like:
```
[1, 2, 3, 6, 10].lowest_available => 4
[1, 8, 3, 6, 10].lowest_available => 2
[5, 8, 3, 6, 10].lowest_available => 1
... | 2015/03/31 | [
"https://Stackoverflow.com/questions/29367533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2945241/"
] | ```
class Array
def lowest_available; (1..Float::INFINITY).find{|e| include?(e).!} end
end
[1, 2, 3, 6, 10].lowest_available # => 4
[1, 8, 3, 6, 10].lowest_available # => 2
[5, 8, 3, 6, 10].lowest_available # => 1
```
or, as suggested by Stefan:
```
class Array
def lowest_available; 1.step.find{|e| include?(e).... | Another way (it's late):
```
def first_missing(a)
a.reduce(0) { |tot,n|
exp=expected(tot); return exp if n>exp; tot + n }
end
def expected(tot)
((-1.0 + Math.sqrt(1.0+8*tot))/2).round + 1
end
first_missing([1, 2, 3, 6, 10]) #=> 4
first_missing([1, 8, 3, 6, 10]) #=> 2
first_missing([5, 8, 3, 6, 10]) #=> 1
``... |
29,367,533 | I have array with integers something like this:
```
[1, 2, 3, 6, 10]
```
My question is what is the easiest way to get lowest positive integer that is not already in this array?
Something like:
```
[1, 2, 3, 6, 10].lowest_available => 4
[1, 8, 3, 6, 10].lowest_available => 2
[5, 8, 3, 6, 10].lowest_available => 1
... | 2015/03/31 | [
"https://Stackoverflow.com/questions/29367533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2945241/"
] | Not that elegant, but if your arrays are small, you could create the entire integer array and use [`Array#-`](http://ruby-doc.org/core-2.2.1/Array.html#method-i-2D) to find the difference:
```
def lowest_available(arr)
((1..arr.size).to_a - arr).first
end
lowest_available([1, 2, 3, 6, 10]) #=> 4
lowest_available([1... | 1. Sort the array
2. Iterate over the array and compare each item's value with the current index+1, if this pair is not equal you found the lowest available integer which is index+1. |
29,367,533 | I have array with integers something like this:
```
[1, 2, 3, 6, 10]
```
My question is what is the easiest way to get lowest positive integer that is not already in this array?
Something like:
```
[1, 2, 3, 6, 10].lowest_available => 4
[1, 8, 3, 6, 10].lowest_available => 2
[5, 8, 3, 6, 10].lowest_available => 1
... | 2015/03/31 | [
"https://Stackoverflow.com/questions/29367533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2945241/"
] | ```
class Array
def lowest_available; (1..Float::INFINITY).find{|e| include?(e).!} end
end
[1, 2, 3, 6, 10].lowest_available # => 4
[1, 8, 3, 6, 10].lowest_available # => 2
[5, 8, 3, 6, 10].lowest_available # => 1
```
or, as suggested by Stefan:
```
class Array
def lowest_available; 1.step.find{|e| include?(e).... | 1. Sort the array
2. Iterate over the array and compare each item's value with the current index+1, if this pair is not equal you found the lowest available integer which is index+1. |
29,367,533 | I have array with integers something like this:
```
[1, 2, 3, 6, 10]
```
My question is what is the easiest way to get lowest positive integer that is not already in this array?
Something like:
```
[1, 2, 3, 6, 10].lowest_available => 4
[1, 8, 3, 6, 10].lowest_available => 2
[5, 8, 3, 6, 10].lowest_available => 1
... | 2015/03/31 | [
"https://Stackoverflow.com/questions/29367533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2945241/"
] | ```
class Array
def lowest_available; (1..Float::INFINITY).find{|e| include?(e).!} end
end
[1, 2, 3, 6, 10].lowest_available # => 4
[1, 8, 3, 6, 10].lowest_available # => 2
[5, 8, 3, 6, 10].lowest_available # => 1
```
or, as suggested by Stefan:
```
class Array
def lowest_available; 1.step.find{|e| include?(e).... | To get the lowest possible number > 0 in an array containing negative values, I would add something to the given solution by [@shivam](https://stackoverflow.com/a/29367766/14048071), and finally, a function looks something like this:
```rb
def lowest_element(arr)
res = nil
arr = arr.reject { |e| e < 0 }
arr.sort... |
10,714,790 | I am trying to implement a generic thread-safe Cache method, and I wonder how I should implement the lock in it.
**It should look something like this:**
```
//private static readonly lockObject = new Object();
public T GetCache<T>(string key, Func<T> valueFactory...)
{
// try to pull from cache here
lock (lock... | 2012/05/23 | [
"https://Stackoverflow.com/questions/10714790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/897259/"
] | For non shared data among pools
-------------------------------
When you have many pools (web garden) each pool can have their static data. There I have measure this days that the `ConcurrentDictionary<TKey, TItem>` is the faster because they have implement some kind of technique that don't use look inside, so they ha... | The .NET `ConcurrentDictionary<TKey, TItem>` implements this internally by creating a separate lock for each key hash. This has the benefit of only locking the one relevant hash, even when processing item additions and removals. |
10,714,790 | I am trying to implement a generic thread-safe Cache method, and I wonder how I should implement the lock in it.
**It should look something like this:**
```
//private static readonly lockObject = new Object();
public T GetCache<T>(string key, Func<T> valueFactory...)
{
// try to pull from cache here
lock (lock... | 2012/05/23 | [
"https://Stackoverflow.com/questions/10714790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/897259/"
] | For non shared data among pools
-------------------------------
When you have many pools (web garden) each pool can have their static data. There I have measure this days that the `ConcurrentDictionary<TKey, TItem>` is the faster because they have implement some kind of technique that don't use look inside, so they ha... | I just found [LazyCache](https://github.com/alastairtree/LazyCache) lib. I haven't tried it yet in production though.
```
IAppCache cache = new CachingService();
ComplexObject cachedResults = cache.GetOrAdd("uniqueKey",
() => methodThatTakesTimeOrResources());
``` |
10,714,790 | I am trying to implement a generic thread-safe Cache method, and I wonder how I should implement the lock in it.
**It should look something like this:**
```
//private static readonly lockObject = new Object();
public T GetCache<T>(string key, Func<T> valueFactory...)
{
// try to pull from cache here
lock (lock... | 2012/05/23 | [
"https://Stackoverflow.com/questions/10714790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/897259/"
] | I just found [LazyCache](https://github.com/alastairtree/LazyCache) lib. I haven't tried it yet in production though.
```
IAppCache cache = new CachingService();
ComplexObject cachedResults = cache.GetOrAdd("uniqueKey",
() => methodThatTakesTimeOrResources());
``` | The .NET `ConcurrentDictionary<TKey, TItem>` implements this internally by creating a separate lock for each key hash. This has the benefit of only locking the one relevant hash, even when processing item additions and removals. |
71,452,373 | I'm trying to create a JDBC application using Java and MySQL in **Eclipse IDE** and **Ubuntu 20.04** OS.
I'm getting the very common error while connecting to database that is "java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)" and I've tried every possible solution from stack over... | 2022/03/12 | [
"https://Stackoverflow.com/questions/71452373",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15661685/"
] | In application.properties, add this statement:
`server.port = 8034` in case you've got some other application running that might be useing port 8080.
This helped me with this problem, took me several hours to find this solution.
Hope it helps someone. | try to do this
```
GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost';
GRANT ALL PRIVILEGES ON *.* TO 'username'@'127.0.0.1';
``` |
71,452,373 | I'm trying to create a JDBC application using Java and MySQL in **Eclipse IDE** and **Ubuntu 20.04** OS.
I'm getting the very common error while connecting to database that is "java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)" and I've tried every possible solution from stack over... | 2022/03/12 | [
"https://Stackoverflow.com/questions/71452373",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15661685/"
] | In application.properties, add this statement:
`server.port = 8034` in case you've got some other application running that might be useing port 8080.
This helped me with this problem, took me several hours to find this solution.
Hope it helps someone. | Execute this sql statement:
```
update mysql.user set host = '%' where user = 'root' and host = 'localhost';
flush privileges;
```
And try again. It worked for me in a similar situation. Good luck! |
30,133 | I am trying to **add a dashed line border** around a coupon I've made using CS6. I tried adding a shape (rectangle) with the dashed Stroke option but **the rectangle shape covers my coupon**. Can I make everything but the dashed border transparent?
Or is there a better way to accomplish this? I am new to Photoshop an... | 2014/04/24 | [
"https://graphicdesign.stackexchange.com/questions/30133",
"https://graphicdesign.stackexchange.com",
"https://graphicdesign.stackexchange.com/users/22567/"
] | The way you authenticate a piece of software (a font is a piece of software) is you have a receipt of purchase and a license agreement on paper stored on file. Without these 2 options its nearly impossible to verify ownership. In case of digital stuff you still need to have a paper copy of the money transaction and the... | Do you own a licence for the fonts? If so, most foundries will let you redownload a fresh, unmodified file that you can be sure is authentic. ;) |
1,023,339 | When I download a video with `youtube-dl` and the `--all-subs`, `--write-sub`, `--write-auto-sub` options, I get a mixture of prewritten subtitles and autogenerated ones.
For example, this video: <https://www.youtube.com/watch?v=kHYZDveT46c> has prewritten English subtitles and autogenerated ones. When using the afore... | 2018/04/09 | [
"https://askubuntu.com/questions/1023339",
"https://askubuntu.com",
"https://askubuntu.com/users/816488/"
] | The other answer is wrong and actually misleads and wastes people's time with this "latest version" thing which is an issue on his end and has nothing to do with the question...
The actual answer is that youtube-dl names its subtitle files only with the language in it (ex: `file.en.vtt`), which means that a potential ... | I had same problem with your video. When I used the --write-auto-sub switch (which writes automatically generated subtitle file) I ended up with this:
```
[youtube] kHYZDveT46c: Looking for automatic captions
WARNING: Couldn't find automatic captions for kHYZDveT46c
```
Then I update youtube-dl to the latest version... |
7,229 | I'm having issues with ripples on the first layer of big flat prints. The initial corner of a big flat print is fine, but then ripples begin to form as shown in the screenshot.
I'm just a newbie, so I was thinking they might have something to do with heat or contraction or something. Normally, I use the default and pr... | 2018/10/22 | [
"https://3dprinting.stackexchange.com/questions/7229",
"https://3dprinting.stackexchange.com",
"https://3dprinting.stackexchange.com/users/12981/"
] | First layer rippling is usually caused by a too low of a first layer height (for the amount of extruded filament).
Are you sure that:
1. Your bed is leveled as good as possible, and
2. the initial height between the nozzle and the bed is correct when Z=0 (A4 paper thickness, when moved should be giving some drag), an... | 1. The first that I have in mind was connected with an acceleration, so you could play with it (set to half the current value and see the results)
2. The other source of that could be drive belt that is fiddling a little bit on the motor and idler shaft (visual check for any play on the motor/shaft)
3. Next one could b... |
7,229 | I'm having issues with ripples on the first layer of big flat prints. The initial corner of a big flat print is fine, but then ripples begin to form as shown in the screenshot.
I'm just a newbie, so I was thinking they might have something to do with heat or contraction or something. Normally, I use the default and pr... | 2018/10/22 | [
"https://3dprinting.stackexchange.com/questions/7229",
"https://3dprinting.stackexchange.com",
"https://3dprinting.stackexchange.com/users/12981/"
] | The main problem is solved (first layer thickness vs leveled nozzle height).
The following image shows the problem. I was running with a default 0.3 mm first layer (the tooltip setting says a slightly thicker layer helps with adhesion). The build plate was correctly leveled with "midrange" friction on the leveling car... | 1. The first that I have in mind was connected with an acceleration, so you could play with it (set to half the current value and see the results)
2. The other source of that could be drive belt that is fiddling a little bit on the motor and idler shaft (visual check for any play on the motor/shaft)
3. Next one could b... |
7,229 | I'm having issues with ripples on the first layer of big flat prints. The initial corner of a big flat print is fine, but then ripples begin to form as shown in the screenshot.
I'm just a newbie, so I was thinking they might have something to do with heat or contraction or something. Normally, I use the default and pr... | 2018/10/22 | [
"https://3dprinting.stackexchange.com/questions/7229",
"https://3dprinting.stackexchange.com",
"https://3dprinting.stackexchange.com/users/12981/"
] | The main problem is solved (first layer thickness vs leveled nozzle height).
The following image shows the problem. I was running with a default 0.3 mm first layer (the tooltip setting says a slightly thicker layer helps with adhesion). The build plate was correctly leveled with "midrange" friction on the leveling car... | First layer rippling is usually caused by a too low of a first layer height (for the amount of extruded filament).
Are you sure that:
1. Your bed is leveled as good as possible, and
2. the initial height between the nozzle and the bed is correct when Z=0 (A4 paper thickness, when moved should be giving some drag), an... |
26,360 | This is talking about a promise to meet at a certain place. However, is it grammatically correct? Is it badly phrased? It seems that it can be misinterpreted to mean that at a certain place a promise was made to meet, rather than promising to meet at a certain place later. | 2011/05/21 | [
"https://english.stackexchange.com/questions/26360",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/5877/"
] | It is grammatical (as far as it goes - I assume you're using it as part of a longer sentence!).
It is also potentially ambiguous, as you say - it *could* be interpreted to mean *the place where we made the promise* rather than *the place where the meeting will take place*. However, it is more likely to be interpreted ... | If confusion reigns due to misunderstanding of that phrase, try changing it a little so that it retains it romantic taste while being absolutely clear:
>
> **The place we had promised we would meet.**
>
>
>
There can be no ambiguity about the above. |
26,360 | This is talking about a promise to meet at a certain place. However, is it grammatically correct? Is it badly phrased? It seems that it can be misinterpreted to mean that at a certain place a promise was made to meet, rather than promising to meet at a certain place later. | 2011/05/21 | [
"https://english.stackexchange.com/questions/26360",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/5877/"
] | To remove any ambiguity (although I agree with @psmears that the sentence is unlikely to be misinterpreted) you could use *meeting place* or *meeting point*.
>
> I went to the meeting point, as promised.
>
>
>
However, *the place that we promised to meet* has some poetic vein to it that is lost in the above examp... | If confusion reigns due to misunderstanding of that phrase, try changing it a little so that it retains it romantic taste while being absolutely clear:
>
> **The place we had promised we would meet.**
>
>
>
There can be no ambiguity about the above. |
26,360 | This is talking about a promise to meet at a certain place. However, is it grammatically correct? Is it badly phrased? It seems that it can be misinterpreted to mean that at a certain place a promise was made to meet, rather than promising to meet at a certain place later. | 2011/05/21 | [
"https://english.stackexchange.com/questions/26360",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/5877/"
] | It is grammatical (as far as it goes - I assume you're using it as part of a longer sentence!).
It is also potentially ambiguous, as you say - it *could* be interpreted to mean *the place where we made the promise* rather than *the place where the meeting will take place*. However, it is more likely to be interpreted ... | To remove any ambiguity (although I agree with @psmears that the sentence is unlikely to be misinterpreted) you could use *meeting place* or *meeting point*.
>
> I went to the meeting point, as promised.
>
>
>
However, *the place that we promised to meet* has some poetic vein to it that is lost in the above examp... |
26,360 | This is talking about a promise to meet at a certain place. However, is it grammatically correct? Is it badly phrased? It seems that it can be misinterpreted to mean that at a certain place a promise was made to meet, rather than promising to meet at a certain place later. | 2011/05/21 | [
"https://english.stackexchange.com/questions/26360",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/5877/"
] | It is grammatical (as far as it goes - I assume you're using it as part of a longer sentence!).
It is also potentially ambiguous, as you say - it *could* be interpreted to mean *the place where we made the promise* rather than *the place where the meeting will take place*. However, it is more likely to be interpreted ... | For a rather archaic, but unambiguous option you could use *tryst* or *trysting place*. |
26,360 | This is talking about a promise to meet at a certain place. However, is it grammatically correct? Is it badly phrased? It seems that it can be misinterpreted to mean that at a certain place a promise was made to meet, rather than promising to meet at a certain place later. | 2011/05/21 | [
"https://english.stackexchange.com/questions/26360",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/5877/"
] | It is grammatical (as far as it goes - I assume you're using it as part of a longer sentence!).
It is also potentially ambiguous, as you say - it *could* be interpreted to mean *the place where we made the promise* rather than *the place where the meeting will take place*. However, it is more likely to be interpreted ... | Yes, there is ambiguity from the possibilities that you could be discussing the *content* of the promise or the situation of the promise's *making*.
I think that while mildly ambiguous your phrase would be clearly understood, and that if you were intending to refer to your location at the time of promising, you would ... |
26,360 | This is talking about a promise to meet at a certain place. However, is it grammatically correct? Is it badly phrased? It seems that it can be misinterpreted to mean that at a certain place a promise was made to meet, rather than promising to meet at a certain place later. | 2011/05/21 | [
"https://english.stackexchange.com/questions/26360",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/5877/"
] | To remove any ambiguity (although I agree with @psmears that the sentence is unlikely to be misinterpreted) you could use *meeting place* or *meeting point*.
>
> I went to the meeting point, as promised.
>
>
>
However, *the place that we promised to meet* has some poetic vein to it that is lost in the above examp... | For a rather archaic, but unambiguous option you could use *tryst* or *trysting place*. |
26,360 | This is talking about a promise to meet at a certain place. However, is it grammatically correct? Is it badly phrased? It seems that it can be misinterpreted to mean that at a certain place a promise was made to meet, rather than promising to meet at a certain place later. | 2011/05/21 | [
"https://english.stackexchange.com/questions/26360",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/5877/"
] | To remove any ambiguity (although I agree with @psmears that the sentence is unlikely to be misinterpreted) you could use *meeting place* or *meeting point*.
>
> I went to the meeting point, as promised.
>
>
>
However, *the place that we promised to meet* has some poetic vein to it that is lost in the above examp... | Yes, there is ambiguity from the possibilities that you could be discussing the *content* of the promise or the situation of the promise's *making*.
I think that while mildly ambiguous your phrase would be clearly understood, and that if you were intending to refer to your location at the time of promising, you would ... |
41,593,484 | I'm having an issue getting an association to populate in my Doctrine entity. The entity gets populated fully with the single exception of the association, even when set to eager loading. I have other similar associations working so I suspect there is some fundamental understanding that I'm missing here.
What I am try... | 2017/01/11 | [
"https://Stackoverflow.com/questions/41593484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/506488/"
] | This is the way the language is defined. You divide an `int` by an `int`, so the calculation is performed resulting in an `int`, giving `3` (truncating, rather than rounding).
You then store `3` into a `float`, giving `3.0`.
If you want the division performed using `float`s, make (at least) one of the arguments a `fl... | `360/100` is computed in *integer* arithmetic *before* it's assigned to the `float`.
Reworking to `360f / 100` is my favourite way of fixing this.
Finally these days `float`s are for quiche eaters, girls, and folk who don't understand how modern chipsets work. Use a `double` type instead - which will probably be fast... |
46,444,487 | I have configured `MySQL` + `phpMyAdmin` + `prestashop` containers.
I would like to build a unique image with my own custom containers.
How can I do?
Thanks for your help. | 2017/09/27 | [
"https://Stackoverflow.com/questions/46444487",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3279494/"
] | What you are looking for is [Docker Compose](https://docs.docker.com/compose/compose-file/). Docker compose will automatically start the images that you have and you can also [link](https://docs.docker.com/compose/compose-file/#links) these images automatically inside docker-compose.
If you have done some manual chang... | A container is made from a Dockerfile
<https://docs.docker.com/engine/reference/builder/>
If you want to build your custom container, you should create one and make it as you want it to be!
Here's a tutorial: <https://www.howtoforge.com/tutorial/how-to-create-docker-images-with-dockerfile/> |
1,814 | This question popped back onto the main screen recently:
[Why did Facebook not use HSTS for a long time after it became available?](https://security.stackexchange.com/questions/51796/why-doesnt-facebook-use-hsts/51798#51798)
Both the question and all answers are now incorrect, because Facebook now use HSTS. I'm not s... | 2015/05/21 | [
"https://security.meta.stackexchange.com/questions/1814",
"https://security.meta.stackexchange.com",
"https://security.meta.stackexchange.com/users/31625/"
] | I think what you have done is probably the best first step. I think the question can now be closed as well - it doesn't mean deleted. With your edit, and the votes, it can be seen that this was valuable at a point in time, but is no longer current. | I agree, the question remains useful. It's now a question about the history of security mechanisms instead of current usage of security mechanisms. It's also a question about when to use and not to use HSTS, just as it was before.
The question and, where relevant, should be updated to not imply that Facebook currently... |
13,489,306 | let's say i have this generic class which does some work and produces a result:
```
public abstract class Work<T> {
private T mResult;
public Work(T result) {
mResult = result;
}
public abstract <T> void doWork(T result);
public T getResult() {
return mResult;
}
}
```
For ... | 2012/11/21 | [
"https://Stackoverflow.com/questions/13489306",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/439719/"
] | You don't need the `<T>` in the declaration of `doWork`, because you want to use the T that is declared at the class level - you need
```
public abstract void doWork(T result);
```
The current declaration is the same as
```
public abstract <A> void doWork(A result);
```
it isn't necessarily the same T as the rest... | Try this instead:
```
Work<MyResult> work = new Work<MyResult>(new MyResult()){
public void work(MyResult result){
// Do something
}
}
```
---
Your current design of the `Work` class is a little strange. I'm not sure why your `doWork` method requires a result object as an argument. The abstract class ... |
114,861 | When I try to download Remote.app or Find my friends on a device that is stuck on iOS 6 I am presented with this alert?
>
> This application requires iOS 7.0 or later.
>
>
> You must update to iOS 7.0 in order to download and use this
> application.
>
>
>
Is there anyway around this if I've previously download... | 2013/12/24 | [
"https://apple.stackexchange.com/questions/114861",
"https://apple.stackexchange.com",
"https://apple.stackexchange.com/users/4160/"
] | Did you backup your phone to your computer? If so, you probably have the old version of the app in the Mobile Applications folder inside your iTunes folder. If you only backed up to iCloud I think you may be out of luck. | It's easy. I'm using "vshare" from Cydia. You need to jailbreak your device, but it's much better than when you need to buy a new apple device just to get your favorite iOS 7 apps. Jailbreak your device. It's free. Learn how to do that with YouTube. I've downloaded a lot of apps that need iOS 7. I downloaded the old ve... |
114,861 | When I try to download Remote.app or Find my friends on a device that is stuck on iOS 6 I am presented with this alert?
>
> This application requires iOS 7.0 or later.
>
>
> You must update to iOS 7.0 in order to download and use this
> application.
>
>
>
Is there anyway around this if I've previously download... | 2013/12/24 | [
"https://apple.stackexchange.com/questions/114861",
"https://apple.stackexchange.com",
"https://apple.stackexchange.com/users/4160/"
] | If you access the store directly from your iPhone, you get the option to download the latest version still compatible with iOS 6. | It's easy. I'm using "vshare" from Cydia. You need to jailbreak your device, but it's much better than when you need to buy a new apple device just to get your favorite iOS 7 apps. Jailbreak your device. It's free. Learn how to do that with YouTube. I've downloaded a lot of apps that need iOS 7. I downloaded the old ve... |
114,861 | When I try to download Remote.app or Find my friends on a device that is stuck on iOS 6 I am presented with this alert?
>
> This application requires iOS 7.0 or later.
>
>
> You must update to iOS 7.0 in order to download and use this
> application.
>
>
>
Is there anyway around this if I've previously download... | 2013/12/24 | [
"https://apple.stackexchange.com/questions/114861",
"https://apple.stackexchange.com",
"https://apple.stackexchange.com/users/4160/"
] | I was able to download a 'last compatible' version of some of Apple's apps. It looks like here were my options:
1. Buy an iOS 7 device (not ideal when you have lots of iOS 6 only devices around).
2. Download a 'last compatible' version of an iOS 7 only app if I had purchased that app while an iOS 6 version was out.
3.... | It's easy. I'm using "vshare" from Cydia. You need to jailbreak your device, but it's much better than when you need to buy a new apple device just to get your favorite iOS 7 apps. Jailbreak your device. It's free. Learn how to do that with YouTube. I've downloaded a lot of apps that need iOS 7. I downloaded the old ve... |
427,586 | I was searching for a simple software that encrypts given text using either PGP or GPG. The alternatives I have found so far are very complicated and hard to operate.
Are there any encryption programs that generates public and private key, encrypts/decrypts text given proper key? | 2012/05/22 | [
"https://superuser.com/questions/427586",
"https://superuser.com",
"https://superuser.com/users/19707/"
] | [Gpg4win](http://www.gpg4win.org/) might be your best bet. **Assemetric encryption is already a pretty complicated topic** and would be pretty hard to dumb down any further. Still, it looks as if this particular software at least **provides a GUI to navigate around in as opposed other command line tools** like [GnuPG](... | In the GNOME 2 builds that ship with GPG (such as Debian or Ubuntu) this is built-in; you just right-click the file and select "Encrypt..." and you are prompted to pick the public keys you wish to use.
I'm not sure which program provides this functionality, it's probably a plugin to nautilus.
You may have luck with G... |
22,090,122 | I don't like the way var\_dump prints out objects. I want to override it with this function:
```
function var_dump($object, $die = true) {
print '<pre>';
print_r($object);
if ($die) die();
}
```
I know how to override it in my application, but is there a way to override it globally for all sites on a PHP... | 2014/02/28 | [
"https://Stackoverflow.com/questions/22090122",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/146366/"
] | You can not do that currently (via "good way") in PHP. And more - you shouldn't.
`var_dump()` is doing right for what it's intended: *plain* output and nothing more. If you want to change that, then by definition you want some *user-defined* behavior. Therefore:
* Create **your own function**. That is what you have no... | You can use the `override_function`: <http://www.php.net/manual/en/function.override-function.php> to replace the behavior of the `var_dump` function. If you want to include this piece of code in all of your sites, you can put this in your `php.ini` file:
```
php_value auto_prepend_file /path/to/file_where_you_overrid... |
72,204 | I have an electric road bike with disc brakes. Its stock front and rear tires
have only 28 spokes and a slightly deeper than ordinary rim. The hubs are cheap
non-Shimano hubs, but their flange diameter is the same as for Shimano
FH/HB-R7070 hubs, i.e. 44mm.
After about 100 kilometers of riding, I noticed the front whe... | 2020/09/20 | [
"https://bicycles.stackexchange.com/questions/72204",
"https://bicycles.stackexchange.com",
"https://bicycles.stackexchange.com/users/33932/"
] | I would say that your wheels were not initially tensioned properly. The load-unload cycle of riding will work to back off the tension on spokes that aren't tight enough.
That you have disk brakes isn't the root cause, though the forces of disks braking act through the spokes whereas rim brakes are already acting direc... | The cause is the disc brake braking torque. A wheel having a reduced number of
spokes should have larger-flange hubs to withstand torque more efficiently and
a stiffer rim to withstand radial loads more efficiently.
This wheel lacks the large-flange hub. This rim also is only very slightly
stiffer than my DT Swiss TK ... |
29,374,553 | How can I make a countdown with an `NSTimer` using Swift? | 2015/03/31 | [
"https://Stackoverflow.com/questions/29374553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4548796/"
] | For use in Playground for fellow newbies, in Swift 5, Xcode 11:
```
Import UIKit
var secondsRemaining = 10
Timer.scheduledTimer(withTimeInterval: 1.0, repeats: true) { (Timer) in
if secondsRemaining > 0 {
print ("\(secondsRemaining) seconds")
secondsRemaining -= 1
} else {
Timer.inval... | For Egg Countdown Timer.
```
class ViewController: UIViewController {
var secondsRemaining = 60
var eggCountdown = 0
let eggTimes = ["Soft": 5, "Medium": 7,"Hard": 12]
@IBAction func hardnessSelected(_ sender: UIButton) {
let hardness = sender.currentTitle!
let result = eggTimes[hardne... |
29,374,553 | How can I make a countdown with an `NSTimer` using Swift? | 2015/03/31 | [
"https://Stackoverflow.com/questions/29374553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4548796/"
] | this for the now swift 5.0 and newst
```
var secondsRemaining = 60
Timer.scheduledTimer(timeInterval: 1.0, target: self, selector: #selector(updateCounter), userInfo: nil, repeats: true)
}
@objc func updateCounter(){
if secondsRemaining > 0 {
print("\(secondsRemaining) seconds.")
secondsRemaining -= 1
... | You really shouldn’t. Grand Central Dispatch is much more reliable. |
29,374,553 | How can I make a countdown with an `NSTimer` using Swift? | 2015/03/31 | [
"https://Stackoverflow.com/questions/29374553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4548796/"
] | Variable for your timer
```
var timer = 60
```
NSTimer with 1.0 as interval
```
var clock = NSTimer.scheduledTimerWithTimeInterval(1.0, target: self, selector: "countdown", userInfo: nil, repeats: true)
```
Here you can decrease the timer
```
func countdown() {
timer--
}
``` | You really shouldn’t. Grand Central Dispatch is much more reliable. |
29,374,553 | How can I make a countdown with an `NSTimer` using Swift? | 2015/03/31 | [
"https://Stackoverflow.com/questions/29374553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4548796/"
] | **Swift 4.1 and Swift 5.** The updatetime method will called after every second and seconds will display on UIlabel.
```
var timer: Timer?
var totalTime = 60
private func startOtpTimer() {
self.totalTime = 60
self.timer = Timer.scheduledTimer(timeInterval: 1.0, target: self, sel... | Make Countdown app Xcode 8.1, Swift 3
```
import UIKit
import Foundation
class ViewController: UIViewController, UITextFieldDelegate {
var timerCount = 0
var timerRunning = false
@IBOutlet weak var timerLabel: UILabel! //ADD Label
@IBOutlet weak var textField: UITextField! //Add TextField /Enter any... |
29,374,553 | How can I make a countdown with an `NSTimer` using Swift? | 2015/03/31 | [
"https://Stackoverflow.com/questions/29374553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4548796/"
] | Question 1:
```
@IBOutlet var countDownLabel: UILabel!
var count = 10
override func viewDidLoad() {
super.viewDidLoad()
var timer = Timer.scheduledTimer(timeInterval: 0.4, target: self, selector: #selector(UIMenuController.update), userInfo: nil, repeats: true)
}
func update() {
if(count > 0) {
... | **Timer with Combine**
```
var counter = 30
let cancellable = Timer.publish(every: 1, on: .main, in: .default).autoconnect().sink(receiveValue: { _ in
counter = counter > 0 ? counter - 1 : 0
print("timer: ", counter)
})
``` |
29,374,553 | How can I make a countdown with an `NSTimer` using Swift? | 2015/03/31 | [
"https://Stackoverflow.com/questions/29374553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4548796/"
] | Question 1:
```
@IBOutlet var countDownLabel: UILabel!
var count = 10
override func viewDidLoad() {
super.viewDidLoad()
var timer = Timer.scheduledTimer(timeInterval: 0.4, target: self, selector: #selector(UIMenuController.update), userInfo: nil, repeats: true)
}
func update() {
if(count > 0) {
... | **Swift 5 another way. *Resistant to interaction with UI***
I would like to show a solution that is resistant to user interaction with other UI elements during countdown.
In the comments I explained what each line of code means.
```
var timeToSet = 0
var timer: Timer?
...
@IBAction func btnWasPressed(_ sender:... |
29,374,553 | How can I make a countdown with an `NSTimer` using Swift? | 2015/03/31 | [
"https://Stackoverflow.com/questions/29374553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4548796/"
] | Variable for your timer
```
var timer = 60
```
NSTimer with 1.0 as interval
```
var clock = NSTimer.scheduledTimerWithTimeInterval(1.0, target: self, selector: "countdown", userInfo: nil, repeats: true)
```
Here you can decrease the timer
```
func countdown() {
timer--
}
``` | this is an egg timer.
```
import UIKit
class ViewController: UIViewController {
let eggTimes = ["Soft": 0.1, "Medium": 2, "Hard": 3]
var eggTime = 0
var timer = Timer()
@IBOutlet weak var label: UILabel!
@IBAction func b(_ sender: UIButton) {
timer.invalidate()
let hardness = sender.... |
29,374,553 | How can I make a countdown with an `NSTimer` using Swift? | 2015/03/31 | [
"https://Stackoverflow.com/questions/29374553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4548796/"
] | **Swift 4.1 and Swift 5.** The updatetime method will called after every second and seconds will display on UIlabel.
```
var timer: Timer?
var totalTime = 60
private func startOtpTimer() {
self.totalTime = 60
self.timer = Timer.scheduledTimer(timeInterval: 1.0, target: self, sel... | XCode 10 with Swift 4.2
```
import UIKit
class ViewController: UIViewController {
var timer = Timer()
var totalSecond = 10
override func viewDidLoad() {
super.viewDidLoad()
startTimer()
}
func startTimer() {
timer = Timer.scheduledTimer(timeInterval: 1, target: self, selector: #... |
29,374,553 | How can I make a countdown with an `NSTimer` using Swift? | 2015/03/31 | [
"https://Stackoverflow.com/questions/29374553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4548796/"
] | Swift 5 with Closure:
```
class ViewController: UIViewController {
var secondsRemaining = 30
@IBAction func startTimer(_ sender: UIButton) {
Timer.scheduledTimer(withTimeInterval: 1.0, repeats: true) { (Timer) in
if self.secondsRemaining > 0 {
print ("\(self.secondsRemaining) seconds")
... | Make Countdown app Xcode 8.1, Swift 3
```
import UIKit
import Foundation
class ViewController: UIViewController, UITextFieldDelegate {
var timerCount = 0
var timerRunning = false
@IBOutlet weak var timerLabel: UILabel! //ADD Label
@IBOutlet weak var textField: UITextField! //Add TextField /Enter any... |
29,374,553 | How can I make a countdown with an `NSTimer` using Swift? | 2015/03/31 | [
"https://Stackoverflow.com/questions/29374553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4548796/"
] | In Swift 5.1 this will work:
```
var counter = 30
override func viewDidLoad() {
super.viewDidLoad()
Timer.scheduledTimer(timeInterval: 1.0, target: self, selector: #selector(updateCounter), userInfo: nil, repeats: true)
}
@objc func updateCounter() {
//example functionality
if counter > 0 {
... | >
> Swift4
>
>
>
```
@IBOutlet weak var actionButton: UIButton!
@IBOutlet weak var timeLabel: UILabel!
var timer:Timer?
var timeLeft = 60
override func viewDidLoad() {
super.viewDidLoad()
setupTimer()
}
func setupTimer() {
timer = Timer.scheduledTimer(timeInterval: 1.0, target: self, ... |
17,225,688 | I have a form that I'd like to reuse around a site, but there are times where I'd like to omit a specific field from the form. Is it possible to do this when initialising the form in the view? | 2013/06/20 | [
"https://Stackoverflow.com/questions/17225688",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | You may not be able to delete a field, but You can override the widget of the form in the form's `__init__` method.
```
from django import forms
class MyForm(forms.Form):
some_field=forms.CharField()
other_field=forms.CharField()
def __init__(self, my_criteria, *args,**kwrds):
super(MyForm,self)._... | I think there is no way only for ModelForm but what you can do is this
```
fromd django.forms import forms
class MyForm(forms.Form):
text = forms.CharField()
another_text = forms.CharField()
```
and in your view something like:
```
from myforms import MyForm
from django.shortcuts import render
def view(... |
14,046,929 | I recently redesigned my website and now I have many lines of code that are not being used anymore when the website loads. Its really tedious to go through all the lines manually, is there any tool for this?
Thanks! | 2012/12/26 | [
"https://Stackoverflow.com/questions/14046929",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1161412/"
] | Looks like <http://unused-css.com/> will check for unused CSS on your site.
Unused JS will be much tougher. | Found these for fixing html,
* <http://fixmyhtml.com/>
* <http://unfuckmyhtml.com/>
and these for fixing css
* <http://unused-css.com/>
* <https://github.com/giakki/uncss> (I personally recommend this. Great tool!) |
55,272,369 | I have a dictionary like
```py
{a:{b:{c:{d:2}}}, e:2, f:2}
```
How am I supposed to get the value of d and change it in python? Previous questions only showed how to get the level of nesting but didn't show how to get the value. In this case, I do not know the level of nesting of the dict. Any help will be apprecia... | 2019/03/21 | [
"https://Stackoverflow.com/questions/55272369",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10383123/"
] | How about some recursion?
```
def unest(data, key):
if key in data.keys():
return data.get(key)
else:
for dkey in data.keys():
if isinstance(data.get(dkey), dict):
return unest(data.get(dkey), key)
else:
continue
d = {'a':{'b':{'c':{'d':2... | I was searching for a similar solution, but I wanted to find the deepest instance of any key within a (possibly) nested dictionary and return it's value. This assumes you know what key you want to search for ahead of time. It's unclear to me if that is a valid assumption for the original question, but I hope this will ... |
15,847,920 | I have a draggable jquery popup window,now its shows a message inside its body.But i want to load a html page inside the popup how can i do this
here is the screen shot of my popup

here is my code
popup.php
```
<!DOCTYPE html>
<html>
<head>
<l... | 2013/04/06 | [
"https://Stackoverflow.com/questions/15847920",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2214797/"
] | ```
int h=10;
UILabel *lbl_headitem = [[UILabel alloc]initWithFrame:CGRectMake(3,h, 690, size_txt_overview1.height)];// See the 'h' value
lbl_headitem.text = [headItemArray objectAtIndex:k];
[lbl_headitem setTextAlignment:UITextAlignmentLeft];
[lbl_headitem setBackgroundColor:[UIColor clearColor]];
[lbl_headi... | Hope the below code may work
```
CGSize size = [str sizeWithFont:lbl.font constrainedToSize:CGSizeMake(204.0, 10000.0) lineBreakMode:lbl.lineBreakMode];
```
here width or height one must be fixed.. |
15,847,920 | I have a draggable jquery popup window,now its shows a message inside its body.But i want to load a html page inside the popup how can i do this
here is the screen shot of my popup

here is my code
popup.php
```
<!DOCTYPE html>
<html>
<head>
<l... | 2013/04/06 | [
"https://Stackoverflow.com/questions/15847920",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2214797/"
] | Try it....
```
//Calculate the expected size based on the font and linebreak mode of your label
CGSize maximumLabelSize = CGSizeMake(296,9999);
CGSize expectedLabelSize = [yourString sizeWithFont:yourLabel.font
constrainedToSize:maximumLabelSize
lineBreakMode:yourLabel.lineBr... | ```
int h=10;
UILabel *lbl_headitem = [[UILabel alloc]initWithFrame:CGRectMake(3,h, 690, size_txt_overview1.height)];// See the 'h' value
lbl_headitem.text = [headItemArray objectAtIndex:k];
[lbl_headitem setTextAlignment:UITextAlignmentLeft];
[lbl_headitem setBackgroundColor:[UIColor clearColor]];
[lbl_headi... |
15,847,920 | I have a draggable jquery popup window,now its shows a message inside its body.But i want to load a html page inside the popup how can i do this
here is the screen shot of my popup

here is my code
popup.php
```
<!DOCTYPE html>
<html>
<head>
<l... | 2013/04/06 | [
"https://Stackoverflow.com/questions/15847920",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2214797/"
] | ```
int h=10;
UILabel *lbl_headitem = [[UILabel alloc]initWithFrame:CGRectMake(3,h, 690, size_txt_overview1.height)];// See the 'h' value
lbl_headitem.text = [headItemArray objectAtIndex:k];
[lbl_headitem setTextAlignment:UITextAlignmentLeft];
[lbl_headitem setBackgroundColor:[UIColor clearColor]];
[lbl_headi... | ```
func makeSizeSender(name:UILabel){
let attributes = [NSFontAttributeName : name.font]
let rect = name.text!.boundingRectWithSize(CGSizeMake(frame.size.width, CGFloat.max), options: NSStringDrawingOptions.UsesLineFragmentOrigin, attributes: attributes, context: nil)
name.frame = CGRectMake(contentView.f... |
15,847,920 | I have a draggable jquery popup window,now its shows a message inside its body.But i want to load a html page inside the popup how can i do this
here is the screen shot of my popup

here is my code
popup.php
```
<!DOCTYPE html>
<html>
<head>
<l... | 2013/04/06 | [
"https://Stackoverflow.com/questions/15847920",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2214797/"
] | Try it....
```
//Calculate the expected size based on the font and linebreak mode of your label
CGSize maximumLabelSize = CGSizeMake(296,9999);
CGSize expectedLabelSize = [yourString sizeWithFont:yourLabel.font
constrainedToSize:maximumLabelSize
lineBreakMode:yourLabel.lineBr... | Hope the below code may work
```
CGSize size = [str sizeWithFont:lbl.font constrainedToSize:CGSizeMake(204.0, 10000.0) lineBreakMode:lbl.lineBreakMode];
```
here width or height one must be fixed.. |
15,847,920 | I have a draggable jquery popup window,now its shows a message inside its body.But i want to load a html page inside the popup how can i do this
here is the screen shot of my popup

here is my code
popup.php
```
<!DOCTYPE html>
<html>
<head>
<l... | 2013/04/06 | [
"https://Stackoverflow.com/questions/15847920",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2214797/"
] | Hope the below code may work
```
CGSize size = [str sizeWithFont:lbl.font constrainedToSize:CGSizeMake(204.0, 10000.0) lineBreakMode:lbl.lineBreakMode];
```
here width or height one must be fixed.. | ```
func makeSizeSender(name:UILabel){
let attributes = [NSFontAttributeName : name.font]
let rect = name.text!.boundingRectWithSize(CGSizeMake(frame.size.width, CGFloat.max), options: NSStringDrawingOptions.UsesLineFragmentOrigin, attributes: attributes, context: nil)
name.frame = CGRectMake(contentView.f... |
15,847,920 | I have a draggable jquery popup window,now its shows a message inside its body.But i want to load a html page inside the popup how can i do this
here is the screen shot of my popup

here is my code
popup.php
```
<!DOCTYPE html>
<html>
<head>
<l... | 2013/04/06 | [
"https://Stackoverflow.com/questions/15847920",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2214797/"
] | Try it....
```
//Calculate the expected size based on the font and linebreak mode of your label
CGSize maximumLabelSize = CGSizeMake(296,9999);
CGSize expectedLabelSize = [yourString sizeWithFont:yourLabel.font
constrainedToSize:maximumLabelSize
lineBreakMode:yourLabel.lineBr... | ```
func makeSizeSender(name:UILabel){
let attributes = [NSFontAttributeName : name.font]
let rect = name.text!.boundingRectWithSize(CGSizeMake(frame.size.width, CGFloat.max), options: NSStringDrawingOptions.UsesLineFragmentOrigin, attributes: attributes, context: nil)
name.frame = CGRectMake(contentView.f... |
29,203 | In considering words with `-er` ending like "quandary" /ˈkwɑːn.dəɹɪ/, it seems like to me there is no difference between that IPA /ˈkwɑːn.dəɹɪ/ and /ˈkwɑːn.d.ɹɪ/, or "quand-ree". The [r] is like "rrrr" straight from the [d], as in "drrr".
There is a difference between those and "quandry", like "foundry", where the `d`... | 2018/09/25 | [
"https://linguistics.stackexchange.com/questions/29203",
"https://linguistics.stackexchange.com",
"https://linguistics.stackexchange.com/users/3142/"
] | There really is, or really isn't, depending on the speaker. The OUP entry indicates that the schwa in "quandary" is optional for both UK and US English. The US token is pronounced with no schwa, the UK token is pronounced with one. Two versions of Jones' dictionary indicate a vowel, the Macmillan dictionary writes obli... | In my dialect of American English, [r] becomes an obstruent (fricative) after [t], [d] in the same syllable, as in "dream", "drive", "trick", "trivial". This does not happen when schwa precedes the [r], or when the [r] is syllabic (which is approximately the same thing).
So, listen to the "r" in "quandary". If it's a ... |
24,659,708 | To my issue there are several similar questions but I haven't found a good one that would help me solve my problem. My problem is:
I want to convert a JQuery object into a Json String, and then post this string to a PHP webPage, This is running very good. But when I received it on the server(php page) it is full of es... | 2014/07/09 | [
"https://Stackoverflow.com/questions/24659708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3557746/"
] | Try this one. It is working for me.
```
handler.postDelayed(new Runnable() {
@Override
public void run() {
// Set up the projection (we only need the ID)
String[] projection = { MediaStore.Images.Media._ID };
// Match on the file path
String selection = MediaStore.Images.Media.... | You can delete a file by using `delete()` method.
For that first you need to create a File reference in your code by specifying the path of the file as argument, then call `delete()` method to delete the file.
```
String path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS) + "/video1.... |
24,659,708 | To my issue there are several similar questions but I haven't found a good one that would help me solve my problem. My problem is:
I want to convert a JQuery object into a Json String, and then post this string to a PHP webPage, This is running very good. But when I received it on the server(php page) it is full of es... | 2014/07/09 | [
"https://Stackoverflow.com/questions/24659708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3557746/"
] | Try this one. It is working for me.
```
handler.postDelayed(new Runnable() {
@Override
public void run() {
// Set up the projection (we only need the ID)
String[] projection = { MediaStore.Images.Media._ID };
// Match on the file path
String selection = MediaStore.Images.Media.... | ```java
File file=new File(getFilePath(imageUri.getValue()));
boolean b= file.delete();
```
not working in my case. The issue has been resolved by using below code-
```java
ContentResolver contentResolver = getContentResolver ();
contentResolver.delete (uriDelete,null ,null );
``` |
24,659,708 | To my issue there are several similar questions but I haven't found a good one that would help me solve my problem. My problem is:
I want to convert a JQuery object into a Json String, and then post this string to a PHP webPage, This is running very good. But when I received it on the server(php page) it is full of es... | 2014/07/09 | [
"https://Stackoverflow.com/questions/24659708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3557746/"
] | Try this one. It is working for me.
```
handler.postDelayed(new Runnable() {
@Override
public void run() {
// Set up the projection (we only need the ID)
String[] projection = { MediaStore.Images.Media._ID };
// Match on the file path
String selection = MediaStore.Images.Media.... | I tested this code on Nougat emulator and it worked:
In manifest add:
```
<application...
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="${applicationId}.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-dat... |
24,659,708 | To my issue there are several similar questions but I haven't found a good one that would help me solve my problem. My problem is:
I want to convert a JQuery object into a Json String, and then post this string to a PHP webPage, This is running very good. But when I received it on the server(php page) it is full of es... | 2014/07/09 | [
"https://Stackoverflow.com/questions/24659708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3557746/"
] | ```java
File file=new File(getFilePath(imageUri.getValue()));
boolean b= file.delete();
```
not working in my case. The issue has been resolved by using below code-
```java
ContentResolver contentResolver = getContentResolver ();
contentResolver.delete (uriDelete,null ,null );
``` | You can delete a file by using `delete()` method.
For that first you need to create a File reference in your code by specifying the path of the file as argument, then call `delete()` method to delete the file.
```
String path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS) + "/video1.... |
24,659,708 | To my issue there are several similar questions but I haven't found a good one that would help me solve my problem. My problem is:
I want to convert a JQuery object into a Json String, and then post this string to a PHP webPage, This is running very good. But when I received it on the server(php page) it is full of es... | 2014/07/09 | [
"https://Stackoverflow.com/questions/24659708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3557746/"
] | I tested this code on Nougat emulator and it worked:
In manifest add:
```
<application...
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="${applicationId}.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-dat... | ```java
File file=new File(getFilePath(imageUri.getValue()));
boolean b= file.delete();
```
not working in my case. The issue has been resolved by using below code-
```java
ContentResolver contentResolver = getContentResolver ();
contentResolver.delete (uriDelete,null ,null );
``` |
24,659,708 | To my issue there are several similar questions but I haven't found a good one that would help me solve my problem. My problem is:
I want to convert a JQuery object into a Json String, and then post this string to a PHP webPage, This is running very good. But when I received it on the server(php page) it is full of es... | 2014/07/09 | [
"https://Stackoverflow.com/questions/24659708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3557746/"
] | Why don't you test this with this code:
```
File fdelete = new File(uri.getPath());
if (fdelete.exists()) {
if (fdelete.delete()) {
System.out.println("file Deleted :" + uri.getPath());
} else {
System.out.println("file not Deleted :" + uri.getPath());
}
}
```
I think part of the problem ... | I see you've found your answer, however it didn't work for me. Delete kept returning false, so I tried the following and it worked (For anybody else for whom the chosen answer didn't work):
```
System.out.println(new File(path).getAbsoluteFile().delete());
```
The System out can be ignored obviously, I put it for co... |
24,659,708 | To my issue there are several similar questions but I haven't found a good one that would help me solve my problem. My problem is:
I want to convert a JQuery object into a Json String, and then post this string to a PHP webPage, This is running very good. But when I received it on the server(php page) it is full of es... | 2014/07/09 | [
"https://Stackoverflow.com/questions/24659708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3557746/"
] | Why don't you test this with this code:
```
File fdelete = new File(uri.getPath());
if (fdelete.exists()) {
if (fdelete.delete()) {
System.out.println("file Deleted :" + uri.getPath());
} else {
System.out.println("file not Deleted :" + uri.getPath());
}
}
```
I think part of the problem ... | You can delete a file by using `delete()` method.
For that first you need to create a File reference in your code by specifying the path of the file as argument, then call `delete()` method to delete the file.
```
String path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS) + "/video1.... |
24,659,708 | To my issue there are several similar questions but I haven't found a good one that would help me solve my problem. My problem is:
I want to convert a JQuery object into a Json String, and then post this string to a PHP webPage, This is running very good. But when I received it on the server(php page) it is full of es... | 2014/07/09 | [
"https://Stackoverflow.com/questions/24659708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3557746/"
] | Why don't you test this with this code:
```
File fdelete = new File(uri.getPath());
if (fdelete.exists()) {
if (fdelete.delete()) {
System.out.println("file Deleted :" + uri.getPath());
} else {
System.out.println("file not Deleted :" + uri.getPath());
}
}
```
I think part of the problem ... | ```java
File file=new File(getFilePath(imageUri.getValue()));
boolean b= file.delete();
```
not working in my case. The issue has been resolved by using below code-
```java
ContentResolver contentResolver = getContentResolver ();
contentResolver.delete (uriDelete,null ,null );
``` |
24,659,708 | To my issue there are several similar questions but I haven't found a good one that would help me solve my problem. My problem is:
I want to convert a JQuery object into a Json String, and then post this string to a PHP webPage, This is running very good. But when I received it on the server(php page) it is full of es... | 2014/07/09 | [
"https://Stackoverflow.com/questions/24659708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3557746/"
] | I see you've found your answer, however it didn't work for me. Delete kept returning false, so I tried the following and it worked (For anybody else for whom the chosen answer didn't work):
```
System.out.println(new File(path).getAbsoluteFile().delete());
```
The System out can be ignored obviously, I put it for co... | first call the intent
```
Intent intenta = new Intent(Intent.ACTION_OPEN_DOCUMENT_TREE);
startActivityForResult(intenta, 42);
```
then call the result
```
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
switch (... |
24,659,708 | To my issue there are several similar questions but I haven't found a good one that would help me solve my problem. My problem is:
I want to convert a JQuery object into a Json String, and then post this string to a PHP webPage, This is running very good. But when I received it on the server(php page) it is full of es... | 2014/07/09 | [
"https://Stackoverflow.com/questions/24659708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3557746/"
] | Try this one. It is working for me.
```
handler.postDelayed(new Runnable() {
@Override
public void run() {
// Set up the projection (we only need the ID)
String[] projection = { MediaStore.Images.Media._ID };
// Match on the file path
String selection = MediaStore.Images.Media.... | first call the intent
```
Intent intenta = new Intent(Intent.ACTION_OPEN_DOCUMENT_TREE);
startActivityForResult(intenta, 42);
```
then call the result
```
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
switch (... |
926,454 | How to evaluate integral $$\int\_{0}^{\infty}\frac{\cos(2x+1)}{\sqrt[3]{x}}\text dx?$$ I tried substitution $x=u^3$ and I got $3\displaystyle\int\_{0}^{\infty}u \cos(2u^3+1)\text du$. After that I tried to use integration by parts but I don't know the integral $\displaystyle\int \cos(2u^3+1)\text du$. Any idea? Thanks ... | 2014/09/10 | [
"https://math.stackexchange.com/questions/926454",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/146687/"
] | Here is how. The approach is based on Mellin transform.
>
> $$I = \int\_{0}^{\infty}\frac{\cos(2x+1)}{\sqrt[3]{x}}dx = \cos(1)\int\_{0}^{\infty}\frac{\cos(2x)}{\sqrt[3]{x}}dx -\sin(1)\int\_{0}^{\infty}\frac{\sin(2x)}{\sqrt[3]{x}}dx . $$
>
>
>
To evaluate the integrals on the right hand side make the change of var... | Hint: $\cos(2x+1) = \Re e^{i(2x+1)}$ and $\int\_0^\infty \text dx\, x^{a-1} e^{-x} = \Gamma(a)$. The latter equation can be analytically continued to complex exponentials, as long as the integral converges.
Also, why does the new Latex font look terrible? |
926,454 | How to evaluate integral $$\int\_{0}^{\infty}\frac{\cos(2x+1)}{\sqrt[3]{x}}\text dx?$$ I tried substitution $x=u^3$ and I got $3\displaystyle\int\_{0}^{\infty}u \cos(2u^3+1)\text du$. After that I tried to use integration by parts but I don't know the integral $\displaystyle\int \cos(2u^3+1)\text du$. Any idea? Thanks ... | 2014/09/10 | [
"https://math.stackexchange.com/questions/926454",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/146687/"
] | $$\color{blue}{\mathcal{I}=\frac{\Gamma(\frac{2}{3})\cos(1+\frac{\pi}{3})}{2^{2/3}}\approx-0.391190966503539\cdots}$$
---
\begin{align}
\int^\infty\_0\frac{\cos(2x+1)}{x^{1/3}}{\rm d}x
&=\int^\infty\_0\frac{\cos(2x+1)}{\Gamma(\frac{1}{3})}\int^\infty\_0t^{-2/3}e^{-xt} \ {\rm d}t \ {\rm d}x\tag1\\
&=\frac{1}{\Gamma(\f... | Hint: $\cos(2x+1) = \Re e^{i(2x+1)}$ and $\int\_0^\infty \text dx\, x^{a-1} e^{-x} = \Gamma(a)$. The latter equation can be analytically continued to complex exponentials, as long as the integral converges.
Also, why does the new Latex font look terrible? |
926,454 | How to evaluate integral $$\int\_{0}^{\infty}\frac{\cos(2x+1)}{\sqrt[3]{x}}\text dx?$$ I tried substitution $x=u^3$ and I got $3\displaystyle\int\_{0}^{\infty}u \cos(2u^3+1)\text du$. After that I tried to use integration by parts but I don't know the integral $\displaystyle\int \cos(2u^3+1)\text du$. Any idea? Thanks ... | 2014/09/10 | [
"https://math.stackexchange.com/questions/926454",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/146687/"
] | $\newcommand{\angles}[1]{\left\langle\, #1 \,\right\rangle}
\newcommand{\braces}[1]{\left\lbrace\, #1 \,\right\rbrace}
\newcommand{\bracks}[1]{\left\lbrack\, #1 \,\right\rbrack}
\newcommand{\ceil}[1]{\,\left\lceil\, #1 \,\right\rceil\,}
\newcommand{\dd}{{\rm d}}
\newcommand{\ds}[1]{\displaystyle{#1}}
\newcommand{... | Hint: $\cos(2x+1) = \Re e^{i(2x+1)}$ and $\int\_0^\infty \text dx\, x^{a-1} e^{-x} = \Gamma(a)$. The latter equation can be analytically continued to complex exponentials, as long as the integral converges.
Also, why does the new Latex font look terrible? |
926,454 | How to evaluate integral $$\int\_{0}^{\infty}\frac{\cos(2x+1)}{\sqrt[3]{x}}\text dx?$$ I tried substitution $x=u^3$ and I got $3\displaystyle\int\_{0}^{\infty}u \cos(2u^3+1)\text du$. After that I tried to use integration by parts but I don't know the integral $\displaystyle\int \cos(2u^3+1)\text du$. Any idea? Thanks ... | 2014/09/10 | [
"https://math.stackexchange.com/questions/926454",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/146687/"
] | $$\color{blue}{\mathcal{I}=\frac{\Gamma(\frac{2}{3})\cos(1+\frac{\pi}{3})}{2^{2/3}}\approx-0.391190966503539\cdots}$$
---
\begin{align}
\int^\infty\_0\frac{\cos(2x+1)}{x^{1/3}}{\rm d}x
&=\int^\infty\_0\frac{\cos(2x+1)}{\Gamma(\frac{1}{3})}\int^\infty\_0t^{-2/3}e^{-xt} \ {\rm d}t \ {\rm d}x\tag1\\
&=\frac{1}{\Gamma(\f... | Here is how. The approach is based on Mellin transform.
>
> $$I = \int\_{0}^{\infty}\frac{\cos(2x+1)}{\sqrt[3]{x}}dx = \cos(1)\int\_{0}^{\infty}\frac{\cos(2x)}{\sqrt[3]{x}}dx -\sin(1)\int\_{0}^{\infty}\frac{\sin(2x)}{\sqrt[3]{x}}dx . $$
>
>
>
To evaluate the integrals on the right hand side make the change of var... |
926,454 | How to evaluate integral $$\int\_{0}^{\infty}\frac{\cos(2x+1)}{\sqrt[3]{x}}\text dx?$$ I tried substitution $x=u^3$ and I got $3\displaystyle\int\_{0}^{\infty}u \cos(2u^3+1)\text du$. After that I tried to use integration by parts but I don't know the integral $\displaystyle\int \cos(2u^3+1)\text du$. Any idea? Thanks ... | 2014/09/10 | [
"https://math.stackexchange.com/questions/926454",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/146687/"
] | $\newcommand{\angles}[1]{\left\langle\, #1 \,\right\rangle}
\newcommand{\braces}[1]{\left\lbrace\, #1 \,\right\rbrace}
\newcommand{\bracks}[1]{\left\lbrack\, #1 \,\right\rbrack}
\newcommand{\ceil}[1]{\,\left\lceil\, #1 \,\right\rceil\,}
\newcommand{\dd}{{\rm d}}
\newcommand{\ds}[1]{\displaystyle{#1}}
\newcommand{... | Here is how. The approach is based on Mellin transform.
>
> $$I = \int\_{0}^{\infty}\frac{\cos(2x+1)}{\sqrt[3]{x}}dx = \cos(1)\int\_{0}^{\infty}\frac{\cos(2x)}{\sqrt[3]{x}}dx -\sin(1)\int\_{0}^{\infty}\frac{\sin(2x)}{\sqrt[3]{x}}dx . $$
>
>
>
To evaluate the integrals on the right hand side make the change of var... |
926,454 | How to evaluate integral $$\int\_{0}^{\infty}\frac{\cos(2x+1)}{\sqrt[3]{x}}\text dx?$$ I tried substitution $x=u^3$ and I got $3\displaystyle\int\_{0}^{\infty}u \cos(2u^3+1)\text du$. After that I tried to use integration by parts but I don't know the integral $\displaystyle\int \cos(2u^3+1)\text du$. Any idea? Thanks ... | 2014/09/10 | [
"https://math.stackexchange.com/questions/926454",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/146687/"
] | $$\color{blue}{\mathcal{I}=\frac{\Gamma(\frac{2}{3})\cos(1+\frac{\pi}{3})}{2^{2/3}}\approx-0.391190966503539\cdots}$$
---
\begin{align}
\int^\infty\_0\frac{\cos(2x+1)}{x^{1/3}}{\rm d}x
&=\int^\infty\_0\frac{\cos(2x+1)}{\Gamma(\frac{1}{3})}\int^\infty\_0t^{-2/3}e^{-xt} \ {\rm d}t \ {\rm d}x\tag1\\
&=\frac{1}{\Gamma(\f... | $\newcommand{\angles}[1]{\left\langle\, #1 \,\right\rangle}
\newcommand{\braces}[1]{\left\lbrace\, #1 \,\right\rbrace}
\newcommand{\bracks}[1]{\left\lbrack\, #1 \,\right\rbrack}
\newcommand{\ceil}[1]{\,\left\lceil\, #1 \,\right\rceil\,}
\newcommand{\dd}{{\rm d}}
\newcommand{\ds}[1]{\displaystyle{#1}}
\newcommand{... |
51,895,553 | I am trying to configure a FireDAC TFDQuery component so it fetches records on demand in batches of no more than 500, but I need it to report back what is the total record count for the query not just the number of fetched records. The `FetchOptions` are configured as follows:
```
FetchOptions.AssignedValues = [evMode... | 2018/08/17 | [
"https://Stackoverflow.com/questions/51895553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4488342/"
] | I have tested `FetchOptions`' `fmOnDemand` `Mode` with a `FDTable` component and a `FDQuery` component. Both with identical settings for `FetchOptions` ie `RowSetSize`=50. 425,000 rows in the dataset fetched over a network server.
`FDTable` performs as expected. It loads just 50 tuples and does so almost instantly. W... | The results of my tests using `fmOnDemand` with postgreSQL and MySQL are basically the same. With FDTable `fmOnDemand` only downloads what it needs limited to the `RowSetSize`. With a `RowSetSize` of 50 it initially downloads 50 tuples and no matter where you scroll to it never downloads more than 111 tuples (though do... |
37,001,003 | If I calling toBytecode() method in my context it throws
>
> java.lang.RuntimeException: remaper.by.moofMonkey.Main class is frozen
> at javassist.CtClassType.checkModify(CtClassType.java:515)
> at javassist.CtClass.getClassFile(CtClass.java:524)
> at com.moofMonkey.Main.writeFile(Main.java:340)
> at com.moofMon... | 2016/05/03 | [
"https://Stackoverflow.com/questions/37001003",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6285148/"
] | Having a look into the javadoc of [CtClass](https://jboss-javassist.github.io/javassist/html/javassist/CtClass.html#toBytecode--) reveals
>
> Once this method is called, **further modifications are not possible** any more.
>
>
>
If you change the call order to
```
String s = cl.getClassFile().getSourceFile();
b... | The exception isn't coming where you call `toBytecode` but in the next source line, where you call `getClassFile`. The [documentation](http://jboss-javassist.github.io/javassist/html/index.html) says that you aren't allowed to call this on a frozen class.
There's a method called `getClassFile2` which seems intended to... |
11,030,273 | I'm trying to produce a conditional sum in SQL Server Report Builder 3.0.
My expression looks like this:
```
=Sum(Iif(Fields!ProjectTypeID.Value=2,Fields!kWp.Value,0))
```
I'd hoped that this expression would produce a sum of the kWp of all projects of type 2.
Unfortunately, it is not to be. And I can't seem to ... | 2012/06/14 | [
"https://Stackoverflow.com/questions/11030273",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1037491/"
] | The data type of the column 'kWp' is Decimal so you need to either convert the default value to 0.00 or cast the column to double
```
SUM(iif(Fields!ProjectTypeID.Value = 2,cdbl(Fields!kWp.Value),0.00))
``` | To get the `sum` of the **kWp** of all projects of type **2**, the expression is as follows,
```
=IIf(Fields!ProjectTypeID.Value=2,sum(Fields!kWp.Value),0)
```
I hope this will help u. |
11,030,273 | I'm trying to produce a conditional sum in SQL Server Report Builder 3.0.
My expression looks like this:
```
=Sum(Iif(Fields!ProjectTypeID.Value=2,Fields!kWp.Value,0))
```
I'd hoped that this expression would produce a sum of the kWp of all projects of type 2.
Unfortunately, it is not to be. And I can't seem to ... | 2012/06/14 | [
"https://Stackoverflow.com/questions/11030273",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1037491/"
] | To get the `sum` of the **kWp** of all projects of type **2**, the expression is as follows,
```
=IIf(Fields!ProjectTypeID.Value=2,sum(Fields!kWp.Value),0)
```
I hope this will help u. | To get the conditional sum you can try this expression
```
=sum(IIf(Fields!balance.Value > 0,(Fields!balance.Value),0))
```
It sums only positive numbers otherwise it adds 0 to the total, you can do it wise versa. |
11,030,273 | I'm trying to produce a conditional sum in SQL Server Report Builder 3.0.
My expression looks like this:
```
=Sum(Iif(Fields!ProjectTypeID.Value=2,Fields!kWp.Value,0))
```
I'd hoped that this expression would produce a sum of the kWp of all projects of type 2.
Unfortunately, it is not to be. And I can't seem to ... | 2012/06/14 | [
"https://Stackoverflow.com/questions/11030273",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1037491/"
] | I had similar problem, this worked for me:
```
=Sum(iif(Fields!date_break.Value = "0001-01-01",Fields!brkr_fee.Value, nothing))
```
zb | To get the `sum` of the **kWp** of all projects of type **2**, the expression is as follows,
```
=IIf(Fields!ProjectTypeID.Value=2,sum(Fields!kWp.Value),0)
```
I hope this will help u. |
11,030,273 | I'm trying to produce a conditional sum in SQL Server Report Builder 3.0.
My expression looks like this:
```
=Sum(Iif(Fields!ProjectTypeID.Value=2,Fields!kWp.Value,0))
```
I'd hoped that this expression would produce a sum of the kWp of all projects of type 2.
Unfortunately, it is not to be. And I can't seem to ... | 2012/06/14 | [
"https://Stackoverflow.com/questions/11030273",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1037491/"
] | The data type of the column 'kWp' is Decimal so you need to either convert the default value to 0.00 or cast the column to double
```
SUM(iif(Fields!ProjectTypeID.Value = 2,cdbl(Fields!kWp.Value),0.00))
``` | To get the conditional sum you can try this expression
```
=sum(IIf(Fields!balance.Value > 0,(Fields!balance.Value),0))
```
It sums only positive numbers otherwise it adds 0 to the total, you can do it wise versa. |
11,030,273 | I'm trying to produce a conditional sum in SQL Server Report Builder 3.0.
My expression looks like this:
```
=Sum(Iif(Fields!ProjectTypeID.Value=2,Fields!kWp.Value,0))
```
I'd hoped that this expression would produce a sum of the kWp of all projects of type 2.
Unfortunately, it is not to be. And I can't seem to ... | 2012/06/14 | [
"https://Stackoverflow.com/questions/11030273",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1037491/"
] | The data type of the column 'kWp' is Decimal so you need to either convert the default value to 0.00 or cast the column to double
```
SUM(iif(Fields!ProjectTypeID.Value = 2,cdbl(Fields!kWp.Value),0.00))
``` | I had similar problem, this worked for me:
```
=Sum(iif(Fields!date_break.Value = "0001-01-01",Fields!brkr_fee.Value, nothing))
```
zb |
11,030,273 | I'm trying to produce a conditional sum in SQL Server Report Builder 3.0.
My expression looks like this:
```
=Sum(Iif(Fields!ProjectTypeID.Value=2,Fields!kWp.Value,0))
```
I'd hoped that this expression would produce a sum of the kWp of all projects of type 2.
Unfortunately, it is not to be. And I can't seem to ... | 2012/06/14 | [
"https://Stackoverflow.com/questions/11030273",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1037491/"
] | I had similar problem, this worked for me:
```
=Sum(iif(Fields!date_break.Value = "0001-01-01",Fields!brkr_fee.Value, nothing))
```
zb | To get the conditional sum you can try this expression
```
=sum(IIf(Fields!balance.Value > 0,(Fields!balance.Value),0))
```
It sums only positive numbers otherwise it adds 0 to the total, you can do it wise versa. |
131,110 | In the new setting I'm making, I found an opportunity to make a species of humanoids that I simply couldn't resist. So I got to work, making the tribal herdsmen and hunters of the predominantly carnivorous **Luugitsu**. Though I've come to an impasse.
They are a species with a rare trait--which I call *polythermy*--th... | 2018/11/23 | [
"https://worldbuilding.stackexchange.com/questions/131110",
"https://worldbuilding.stackexchange.com",
"https://worldbuilding.stackexchange.com/users/48443/"
] | Consider that homo sapiens is a highly adaptable hunter humanoid, and you will see that within our own biochemistry the range is from nearly black to nearly white - essentially any color that can be created by density of melanin over unpigmented flesh and blood | Consider camouflage colors, for desert, forest, water, city, or whatever environment they do most of their hunting in. Splotches of the most common colors found in such environments. Although splotches are common in natural settings, urban camo may involve straight lines and shadow; due to straight lines being most pre... |
131,110 | In the new setting I'm making, I found an opportunity to make a species of humanoids that I simply couldn't resist. So I got to work, making the tribal herdsmen and hunters of the predominantly carnivorous **Luugitsu**. Though I've come to an impasse.
They are a species with a rare trait--which I call *polythermy*--th... | 2018/11/23 | [
"https://worldbuilding.stackexchange.com/questions/131110",
"https://worldbuilding.stackexchange.com",
"https://worldbuilding.stackexchange.com/users/48443/"
] | Something you need to take into account is the visual system of these people and their prey & predators. Most placental mammals are dichromats <https://en.wikipedia.org/wiki/Dichromacy#Animals_that_are_dichromats> rather than trichromats like humans and some other primates, which probably goes a long way towards explai... | Consider camouflage colors, for desert, forest, water, city, or whatever environment they do most of their hunting in. Splotches of the most common colors found in such environments. Although splotches are common in natural settings, urban camo may involve straight lines and shadow; due to straight lines being most pre... |
131,110 | In the new setting I'm making, I found an opportunity to make a species of humanoids that I simply couldn't resist. So I got to work, making the tribal herdsmen and hunters of the predominantly carnivorous **Luugitsu**. Though I've come to an impasse.
They are a species with a rare trait--which I call *polythermy*--th... | 2018/11/23 | [
"https://worldbuilding.stackexchange.com/questions/131110",
"https://worldbuilding.stackexchange.com",
"https://worldbuilding.stackexchange.com/users/48443/"
] | Consider that homo sapiens is a highly adaptable hunter humanoid, and you will see that within our own biochemistry the range is from nearly black to nearly white - essentially any color that can be created by density of melanin over unpigmented flesh and blood | Earth humans living near the poles have evolved to be pale. Humans living near the equator tend to have darker skin. This is a response to the level of sunlight and the need to synthesise vitamin D.
Your humanoids could turn pale when they are in cold conditions and dark when they are in hot conditions.
When they are... |
131,110 | In the new setting I'm making, I found an opportunity to make a species of humanoids that I simply couldn't resist. So I got to work, making the tribal herdsmen and hunters of the predominantly carnivorous **Luugitsu**. Though I've come to an impasse.
They are a species with a rare trait--which I call *polythermy*--th... | 2018/11/23 | [
"https://worldbuilding.stackexchange.com/questions/131110",
"https://worldbuilding.stackexchange.com",
"https://worldbuilding.stackexchange.com/users/48443/"
] | Consider that homo sapiens is a highly adaptable hunter humanoid, and you will see that within our own biochemistry the range is from nearly black to nearly white - essentially any color that can be created by density of melanin over unpigmented flesh and blood | If the Luugitsu want to take advantage of natural sunlight their skins would have to be green. Plants are green because they absorb the sun's energy in the blue and red wavelengths, while reflecting the green wavelengths. In cold climates though the skin color isn't as important as having thermal insulation layers, suc... |
131,110 | In the new setting I'm making, I found an opportunity to make a species of humanoids that I simply couldn't resist. So I got to work, making the tribal herdsmen and hunters of the predominantly carnivorous **Luugitsu**. Though I've come to an impasse.
They are a species with a rare trait--which I call *polythermy*--th... | 2018/11/23 | [
"https://worldbuilding.stackexchange.com/questions/131110",
"https://worldbuilding.stackexchange.com",
"https://worldbuilding.stackexchange.com/users/48443/"
] | Something you need to take into account is the visual system of these people and their prey & predators. Most placental mammals are dichromats <https://en.wikipedia.org/wiki/Dichromacy#Animals_that_are_dichromats> rather than trichromats like humans and some other primates, which probably goes a long way towards explai... | Earth humans living near the poles have evolved to be pale. Humans living near the equator tend to have darker skin. This is a response to the level of sunlight and the need to synthesise vitamin D.
Your humanoids could turn pale when they are in cold conditions and dark when they are in hot conditions.
When they are... |
131,110 | In the new setting I'm making, I found an opportunity to make a species of humanoids that I simply couldn't resist. So I got to work, making the tribal herdsmen and hunters of the predominantly carnivorous **Luugitsu**. Though I've come to an impasse.
They are a species with a rare trait--which I call *polythermy*--th... | 2018/11/23 | [
"https://worldbuilding.stackexchange.com/questions/131110",
"https://worldbuilding.stackexchange.com",
"https://worldbuilding.stackexchange.com/users/48443/"
] | Something you need to take into account is the visual system of these people and their prey & predators. Most placental mammals are dichromats <https://en.wikipedia.org/wiki/Dichromacy#Animals_that_are_dichromats> rather than trichromats like humans and some other primates, which probably goes a long way towards explai... | If the Luugitsu want to take advantage of natural sunlight their skins would have to be green. Plants are green because they absorb the sun's energy in the blue and red wavelengths, while reflecting the green wavelengths. In cold climates though the skin color isn't as important as having thermal insulation layers, suc... |
20,193,067 | I have environmental transect data for three environmental variables. I have performed a PCA in R on my three environmental variables. I would like to plot my points (sites on my transect) along a single principal compoent. If I use the `plot()` function in R it generates a 2d biplot.
How do I create a 1D plot of my P... | 2013/11/25 | [
"https://Stackoverflow.com/questions/20193067",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3032264/"
] | >
> How do I create a 1D plot of my PCA?
>
>
>
You can use the `linestack()` function in the **vegan** package for a plot of a single PCA axis (others have pointed out the error that led to you only getting a single component in this case).
E.g.:
```
library("vegan")
data(dune)
## fit PCA
pca <- rda(dune, scale... | Actually, `vegan::ordiplot()` knows `prcomp` and `princomp` results and will produce a `linestack` graph if only one axis is requested. This should work:
```
pca1 <- princomp(~ X250 + X500 + shear, data=data, scores=TRUE, cor=TRUE)
ordiplot(pca1, choices = 1)
```
The scaling of row and column scores can be odd with... |
199,898 | Let's face it, mankind is evil. We invented means to destroy one another under the guidance of mages since the dawn of time. We shed off the yoke of the werebeasts during the Impergium and made them pariahs. We launched the first and second Inquisition to drive out the undead. We fortified our holdings with the works o... | 2022/07/12 | [
"https://rpg.stackexchange.com/questions/199898",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/30306/"
] | ### Bombs fall, everybody dies.
Vampire isn't supposed to be a game where human militaries play a large role. That's part of the point of the Masquerade - vampires are afraid that humans will wipe them out if their existence becomes widely known.
If things degenerate to the point where vampires are getting shot at by... | In your question you mention M20 having Flechettes and Incendiary rounds. The same table (p453) also lists explosive shells. Additionally, there's an explosives chart two pages later (455) that includes small rockets and artillery shells.
While maybe not the most directly applicable answer, I also recommend taking a g... |
147,193 | I'm writing planet generator, using [pico8](http://lexaloffle.com/pico-8.php). I got surface generation done:
[](https://i.stack.imgur.com/wjWnP.png)
[](https://i.stack.imgur.com/bVwUn.png)
And the l... | 2017/08/15 | [
"https://gamedev.stackexchange.com/questions/147193",
"https://gamedev.stackexchange.com",
"https://gamedev.stackexchange.com/users/-1/"
] | Here's a rundown of a few different ways we can sample a panning texture to make it look like a globe...
[](https://i.stack.imgur.com/Tk86w.gif)
Since I'm not deeply familiar with Pico-... | First of all, this is going to cut corners, as this API is very small (I have concerns about the maximum 8192 tokens rule, which technically makes this non-turing-complete). The algorithms you need to use are the pythagorean theorem (`√(x² + y²)`) and the width of a circle at a specific height (`2√(r² + |y - cy|²)` whe... |
301,422 | consider an insteresting question:
given Banach Space $ \mathcal{B}$, independent identical distribution random operator on $ \mathcal{B}$: $ (T\_i)\_{i \ge 1} $, where operator space is endowed with operator norm $ || T\_i||= \sup\_{v \in \mathcal{B},||v||=1}||T\_iv||$.
assume $ \sup\_i||T\_i|| < \infty $, spectrum... | 2018/05/29 | [
"https://mathoverflow.net/questions/301422",
"https://mathoverflow.net",
"https://mathoverflow.net/users/124254/"
] | Let $\mathbb{P}$ be a Borel probability measure on the space of bounded operators on $\mathcal{B}$, equipped with the operator norm topology. By the subadditive ergodic theorem, the limit
$$\lim\_{n \to \infty} \frac{1}{n}\log \|T\_{\omega\_n}\cdots T\_{\omega\_1}\|$$
exists a.s., where the operators $T\_{\omega\_i}$ a... | You should have a look on the book "Product of random matrices and application to Schrodinger operators" (Lacroix, Bougerol) <http://fr.booksc.org/book/32773481/48bc02>
or the paper of Le Page "Théorèmes limites pour les produits de matrices aléatoires" (in French).
I am not sure that the spectral radius condition is ... |
73,479,875 | I'm writing an API in Next.js to insert data into a MySQL database. The error I'm experiencing relates to a circular reference, but I'm having trouble finding it. Please be aware that I am also using Axios to write this API.
I'm running into the following error:
```
TypeError: Converting circular structure to JSON
... | 2022/08/24 | [
"https://Stackoverflow.com/questions/73479875",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13844056/"
] | I guess your problem is here: `res.status(200).json(JSON.stringify(rows));`. So, from the docs of [`res.json`](https://expressjs.com/de/api.html#res.json):
>
> Sends a JSON response. This method sends a response (with the correct
> content-type) that is the parameter converted to a JSON string using
> [JSON.stringif... | I personally use `safe-json-stringify` which has a method to modify objects without stringifying, in case you want a circular-safe object.
<https://www.npmjs.com/package/safe-json-stringify>
```
res.status(200).json(safeJsonStringify.ensureProperties(data));
```
Otherwise, you can look at many other posts on the su... |
13,265 | I'm trying to figure out if I should be filtering out GWAS hits that have high standard error and I'm not quite sure what to do. It seems like it might not matter, because the standard error is used to calculate the t-statistic, which is then used to calculate the p-value. So in a way it's already built in. But reporti... | 2020/05/12 | [
"https://bioinformatics.stackexchange.com/questions/13265",
"https://bioinformatics.stackexchange.com",
"https://bioinformatics.stackexchange.com/users/59/"
] | I am curious about the relationship between your p-value (or effect sizes) and standard error. I would expect the significant signals to have smaller stand error compared to the non-significant, background signals. If this is the case, there is no need to do filter. | I think the effect size is more of an issue than the standard error.
If the standard error suggests that the effect direction could change sign, then it might be a good idea to filter it out. Otherwise, if the effect size remains large (or at least positive) even after accounting for a large error, then [to me] that w... |
6,907,423 | I have a module called 'admin' in my application, which is accessible at /mysite/admin. To improve the site security I want to change this URL to something more difficult to guess to the normal users and only the site admin will know.
I tried urlManager rules but couldn't get the desired result, for example:
```
'adm... | 2011/08/02 | [
"https://Stackoverflow.com/questions/6907423",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/238784/"
] | ```
rules=>array(
'admin-panel' =>'admin',
'admin-panel/<_c:\w+>/<_a:\w+>/<id:\d+>' =>'admin/<_c>/<_a>/<id>',
'admin-panel/<_c:\w+>/<_a:\w+>' =>'admin/<_c>/<_a>',
'admin-panel/<_c:\w+>' =>'admin/<_c>',
)
```
But it's just alias - your admin module ... | Take a look at [URL Management (Parameterizing Routes)](http://www.yiiframework.com/doc/guide/1.1/en/topics.url#parameterizing-routes) from the Definitive Guide.
Something like this should do the job:
```
array(
'<_c:(admin\-panel)>/<_a>' => 'admin/default/<_a>',
)
```
But you're just 'renaming' your default contr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.