qid int64 1 74.7M | question stringlengths 0 58.3k | date stringlengths 10 10 | metadata list | response_j stringlengths 2 48.3k | response_k stringlengths 2 40.5k |
|---|---|---|---|---|---|
15,727,660 | I want to add the datepicker widget to one of my select fields.
I am currently using rails 3.2.13 with ruby 1.9.3.p325.
I also included the 'jquery\_datepicker' gem, as well as 'jquery-rails' and 'jquery-ui-rails'
The form code looks as following.
```
<div class="field">
<%= f.label :datum %><br />
<%= f.te... | 2013/03/31 | [
"https://Stackoverflow.com/questions/15727660",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1508490/"
] | Replace
```
$("datepicker").datepicker();
```
with
```
$("#datepicker").datepicker();
```
Missing `#` in selecotr. As `datepicker` is `id` of element. You need to use `#` in selector.
**UPDATE**
```
jQuery($)->
$("#datepicker").datepicker();
.....
```
This should work.
**Update 2**
Suppose you have foll... | You missed the `#` to select element with id datepicker. It should be
```
$("#datepicker").datepicker()
``` |
101,674 | Write a program or function which, given a *non-empty* sequence of right or left turns, outputs the length of the shortest self-avoiding path on a 2D lattice with those turns.
The input should be taken as a string, with each character being `R` or `L` for a right or left turn respectively.
The output should be an int... | 2016/11/30 | [
"https://codegolf.stackexchange.com/questions/101674",
"https://codegolf.stackexchange.com",
"https://codegolf.stackexchange.com/users/6683/"
] | Prolog, 284 bytes
=================
```prolog
e(S,[0|X]):-e(S,X).
e([A|S],[A|X]):-S=X;e(S,X).
v(X/Y,76,Y/Z):-Z is -X.
v(X/Y,82,Z/X):-Z is -Y.
v(D,0,D).
c([],0/0-0/1,[0/0]).
c([H|T],K/L-D/E,[K/L|C]):-c(T,I/J-X/Y,C),v(X/Y,H,D/E),K is I+X,L is J+Y,\+member(K/L,C).
n(X):-X=0;n(Y),X#=Y+1.
p(S,L):-n(L),length(X,L),e([0|S]... | [Pyth](https://github.com/isaacg1/pyth), 36 bytes
=================================================
```
ff{I.u+NYY0f>r8YlQ.C+1*M._m^.j)hCdQT
```
[Try it online!](https://tio.run/##K6gsyfj/Py2t2lOvVNsvMtIgza7IIjInUM9Z21DLVy8@N04vSzPDOSUw5P9/JR8gCPJRAgA "Pyth – Try It Online")
This is pretty slow, but it works, and i... |
69,666,735 | I want to create a condition which executes the function only when all elements in the array are with status 3, if the array has an element with status 3 or different from 3 I should not execute the function.
I tried this code but doesn't work when I have element with status 3 ore different status.
```
goToPeople(... | 2021/10/21 | [
"https://Stackoverflow.com/questions/69666735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17042096/"
] | The `signal()` function is problematic because of a history of implementations with different details. According to [its Linux manual page](https://man7.org/linux/man-pages/man2/signal.2.html):
>
> The only portable use of `signal()` is to set a signal's disposition to `SIG_DFL` or `SIG_IGN`. The semantics when using... | When you `strace` your program, you see that signal() functions sets SA\_RESTART flag for the signal:
```
rt_sigaction(SIGTERM, {sa_handler=0x562f2a8c3249, sa_mask=[TERM], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fb504d2d210}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
```
meaning, that the open() s... |
69,666,735 | I want to create a condition which executes the function only when all elements in the array are with status 3, if the array has an element with status 3 or different from 3 I should not execute the function.
I tried this code but doesn't work when I have element with status 3 ore different status.
```
goToPeople(... | 2021/10/21 | [
"https://Stackoverflow.com/questions/69666735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17042096/"
] | The `signal()` function is problematic because of a history of implementations with different details. According to [its Linux manual page](https://man7.org/linux/man-pages/man2/signal.2.html):
>
> The only portable use of `signal()` is to set a signal's disposition to `SIG_DFL` or `SIG_IGN`. The semantics when using... | you can use `O_NONBLOCK` in which case `open()` will return immediately, and you will block as soon as you `fcntl(2)` cancelling the `O_NONBLOCK`.
Read the man page, as probably you have some way to make `open(2)` return `-1` and `errno` equal to `EINTR`. But the normal usage is what has been described, the call is re... |
19,716 | Hi All,
I recently got feedback from a client that they prefer an in-person approach for sound design, preferring to be in the room as the sounds are created. This is something I understand from a composition perspective, improvising on a keyboard to hone in on what they're looking for. It seems more difficult for sou... | 2013/07/08 | [
"https://sound.stackexchange.com/questions/19716",
"https://sound.stackexchange.com",
"https://sound.stackexchange.com/users/362/"
] | Oh man, bad move on the sound recordists part and even worse move from the producer to use those sections! Obviously not your fault at all so I'd say explain the situation to the director/producer and let them decide what they want to do | What Joseph said. I think your best option would be to suggest playing the scene with music and no other sound, or maybe sound really low so only the loudest things pop through and it makes sense you can't hear the talking. Your next option would be to lip read or get someone who can lip read and have another actor ove... |
19,716 | Hi All,
I recently got feedback from a client that they prefer an in-person approach for sound design, preferring to be in the room as the sounds are created. This is something I understand from a composition perspective, improvising on a keyboard to hone in on what they're looking for. It seems more difficult for sou... | 2013/07/08 | [
"https://sound.stackexchange.com/questions/19716",
"https://sound.stackexchange.com",
"https://sound.stackexchange.com/users/362/"
] | Oh man, bad move on the sound recordists part and even worse move from the producer to use those sections! Obviously not your fault at all so I'd say explain the situation to the director/producer and let them decide what they want to do | Just thought I'd add the outcome: I've ended up plugging the gap with some snippets of the actors ad-libbing from other takes. Works fairly well, time-wise, and you'd only notice the lip-sync issues if you were really looking. It is only about a second long though so doesn't look too bad. Best that could be done in the... |
19,716 | Hi All,
I recently got feedback from a client that they prefer an in-person approach for sound design, preferring to be in the room as the sounds are created. This is something I understand from a composition perspective, improvising on a keyboard to hone in on what they're looking for. It seems more difficult for sou... | 2013/07/08 | [
"https://sound.stackexchange.com/questions/19716",
"https://sound.stackexchange.com",
"https://sound.stackexchange.com/users/362/"
] | What Joseph said. I think your best option would be to suggest playing the scene with music and no other sound, or maybe sound really low so only the loudest things pop through and it makes sense you can't hear the talking. Your next option would be to lip read or get someone who can lip read and have another actor ove... | Just thought I'd add the outcome: I've ended up plugging the gap with some snippets of the actors ad-libbing from other takes. Works fairly well, time-wise, and you'd only notice the lip-sync issues if you were really looking. It is only about a second long though so doesn't look too bad. Best that could be done in the... |
4,502,702 | The function $f(x)$ satisfies:
$$ xf''(x)+3x[f'(x)]^2=1-e^{-x}$$
for all real $x$. (Do not attempt to solve this differential equation).
Find the Smallest constant $A$ such that $f(x) \leq Ax^2$, given $f(0)=f'(0)=0.$
This is a problem from Calculus Volume 1 by Tom Apostol. There are 3 questions for this exercise. I... | 2022/07/29 | [
"https://math.stackexchange.com/questions/4502702",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/725224/"
] | $\textbf{Matching the difference} \quad X=|B-A|$
There are $\space3\space$ approaches we can take for this:
$X$ can be any prime number $(p)$ where $p\equiv\pm1\mod 8$ with (p) raised to any non-negative power. Under $100$, $X\in \{1,7, 17, 23, 31, 41, 47, 49, 71, 73, 79, 89, 97\}$.
1. Beginning with $X=1$, a soluti... | Remember that a Pythagorean triangle
with relatively prime legs
has sides
$2mn, m^2-n^2, m^2+n^2
$
for some integers $m$ and $n$.
If the legs are
$a$ and $a+1$,
since they are
relatively prime,
the legs must satisfy
either
$a=2mn, a+1=m^2-n^2$
or
$a=m^2-n^2, a+1=2mn$.
Find the solutions
to these equations
and you wil... |
41,787 | What is the difference between *to allege* and *to claim*? Can I use them interchangeably? Or perhaps I can only *allege* something illegal?
For example, from CNET:
>
> Over the past several months, the two companies have been embroiled in
> litigation in which Apple **alleges** that Samsung illegally copied
> tec... | 2011/09/13 | [
"https://english.stackexchange.com/questions/41787",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/12969/"
] | *Merriam-Webster's Dictionary of Synonyms* 1984) puts *allege* in a group of verbs with *adduce*, *advance*, and *cite*; and it puts *claim* in a group of verbs with *demand*, *require*, and *exact*. Here are its treatments of the two verbs:
>
> **adduce, advance, allege, cite** may be used interchangeably in the mea... | Allege is used when no evidence is available so it is not sure or accurate yet. It is a statement that is made without giving proof, accusing somebody of doing something that is wrong or illegal.
Claim is used when evidence is available and it is sure and true.
the two words are not the same and cannot be used interc... |
41,787 | What is the difference between *to allege* and *to claim*? Can I use them interchangeably? Or perhaps I can only *allege* something illegal?
For example, from CNET:
>
> Over the past several months, the two companies have been embroiled in
> litigation in which Apple **alleges** that Samsung illegally copied
> tec... | 2011/09/13 | [
"https://english.stackexchange.com/questions/41787",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/12969/"
] | *Merriam-Webster's Dictionary of Synonyms* 1984) puts *allege* in a group of verbs with *adduce*, *advance*, and *cite*; and it puts *claim* in a group of verbs with *demand*, *require*, and *exact*. Here are its treatments of the two verbs:
>
> **adduce, advance, allege, cite** may be used interchangeably in the mea... | In the legal context, "allege" usually means a statement regarding the truth or falsity of something: e.g. A and B were married on February 20, 1986.
"Claim" is usually used in the sense of "claim for relief," which means what you are asking the court to order: e.g. A asks this court to dissolve the marriage of the pa... |
41,787 | What is the difference between *to allege* and *to claim*? Can I use them interchangeably? Or perhaps I can only *allege* something illegal?
For example, from CNET:
>
> Over the past several months, the two companies have been embroiled in
> litigation in which Apple **alleges** that Samsung illegally copied
> tec... | 2011/09/13 | [
"https://english.stackexchange.com/questions/41787",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/12969/"
] | [*Alleges*](http://www.oxfordadvancedlearnersdictionary.com/dictionary/allege) means:
>
> to state something as a fact but without giving proof
>
>
>
It is very similar to *claims*, but it is used in situations where there is a legal accusation which has not yet been resolved. For example, Apple here *alleges* Sa... | Allege is used when no evidence is available so it is not sure or accurate yet. It is a statement that is made without giving proof, accusing somebody of doing something that is wrong or illegal.
Claim is used when evidence is available and it is sure and true.
the two words are not the same and cannot be used interc... |
41,787 | What is the difference between *to allege* and *to claim*? Can I use them interchangeably? Or perhaps I can only *allege* something illegal?
For example, from CNET:
>
> Over the past several months, the two companies have been embroiled in
> litigation in which Apple **alleges** that Samsung illegally copied
> tec... | 2011/09/13 | [
"https://english.stackexchange.com/questions/41787",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/12969/"
] | To *allege* is always to accuse a party (human or corporate) of wrongdoing. You may, however, *claim* something without the accusation of wrongdoing.
For example:
* You can *claim* that a new product is far superior to its competitors
* You can *claim* that a storm damaged your conservatory by blowing your neighbour'... | The only difference is one of diction. "Alleges" is in a much higher register than "claims." "Alleges" is also preferred in legal contexts. |
41,787 | What is the difference between *to allege* and *to claim*? Can I use them interchangeably? Or perhaps I can only *allege* something illegal?
For example, from CNET:
>
> Over the past several months, the two companies have been embroiled in
> litigation in which Apple **alleges** that Samsung illegally copied
> tec... | 2011/09/13 | [
"https://english.stackexchange.com/questions/41787",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/12969/"
] | The only difference is one of diction. "Alleges" is in a much higher register than "claims." "Alleges" is also preferred in legal contexts. | Allege is used when no evidence is available so it is not sure or accurate yet. It is a statement that is made without giving proof, accusing somebody of doing something that is wrong or illegal.
Claim is used when evidence is available and it is sure and true.
the two words are not the same and cannot be used interc... |
41,787 | What is the difference between *to allege* and *to claim*? Can I use them interchangeably? Or perhaps I can only *allege* something illegal?
For example, from CNET:
>
> Over the past several months, the two companies have been embroiled in
> litigation in which Apple **alleges** that Samsung illegally copied
> tec... | 2011/09/13 | [
"https://english.stackexchange.com/questions/41787",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/12969/"
] | To *allege* is always to accuse a party (human or corporate) of wrongdoing. You may, however, *claim* something without the accusation of wrongdoing.
For example:
* You can *claim* that a new product is far superior to its competitors
* You can *claim* that a storm damaged your conservatory by blowing your neighbour'... | Allege is used when no evidence is available so it is not sure or accurate yet. It is a statement that is made without giving proof, accusing somebody of doing something that is wrong or illegal.
Claim is used when evidence is available and it is sure and true.
the two words are not the same and cannot be used interc... |
41,787 | What is the difference between *to allege* and *to claim*? Can I use them interchangeably? Or perhaps I can only *allege* something illegal?
For example, from CNET:
>
> Over the past several months, the two companies have been embroiled in
> litigation in which Apple **alleges** that Samsung illegally copied
> tec... | 2011/09/13 | [
"https://english.stackexchange.com/questions/41787",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/12969/"
] | *Merriam-Webster's Dictionary of Synonyms* 1984) puts *allege* in a group of verbs with *adduce*, *advance*, and *cite*; and it puts *claim* in a group of verbs with *demand*, *require*, and *exact*. Here are its treatments of the two verbs:
>
> **adduce, advance, allege, cite** may be used interchangeably in the mea... | The only difference is one of diction. "Alleges" is in a much higher register than "claims." "Alleges" is also preferred in legal contexts. |
41,787 | What is the difference between *to allege* and *to claim*? Can I use them interchangeably? Or perhaps I can only *allege* something illegal?
For example, from CNET:
>
> Over the past several months, the two companies have been embroiled in
> litigation in which Apple **alleges** that Samsung illegally copied
> tec... | 2011/09/13 | [
"https://english.stackexchange.com/questions/41787",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/12969/"
] | To *allege* is always to accuse a party (human or corporate) of wrongdoing. You may, however, *claim* something without the accusation of wrongdoing.
For example:
* You can *claim* that a new product is far superior to its competitors
* You can *claim* that a storm damaged your conservatory by blowing your neighbour'... | In the legal context, "allege" usually means a statement regarding the truth or falsity of something: e.g. A and B were married on February 20, 1986.
"Claim" is usually used in the sense of "claim for relief," which means what you are asking the court to order: e.g. A asks this court to dissolve the marriage of the pa... |
41,787 | What is the difference between *to allege* and *to claim*? Can I use them interchangeably? Or perhaps I can only *allege* something illegal?
For example, from CNET:
>
> Over the past several months, the two companies have been embroiled in
> litigation in which Apple **alleges** that Samsung illegally copied
> tec... | 2011/09/13 | [
"https://english.stackexchange.com/questions/41787",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/12969/"
] | *Merriam-Webster's Dictionary of Synonyms* 1984) puts *allege* in a group of verbs with *adduce*, *advance*, and *cite*; and it puts *claim* in a group of verbs with *demand*, *require*, and *exact*. Here are its treatments of the two verbs:
>
> **adduce, advance, allege, cite** may be used interchangeably in the mea... | To *allege* is always to accuse a party (human or corporate) of wrongdoing. You may, however, *claim* something without the accusation of wrongdoing.
For example:
* You can *claim* that a new product is far superior to its competitors
* You can *claim* that a storm damaged your conservatory by blowing your neighbour'... |
41,787 | What is the difference between *to allege* and *to claim*? Can I use them interchangeably? Or perhaps I can only *allege* something illegal?
For example, from CNET:
>
> Over the past several months, the two companies have been embroiled in
> litigation in which Apple **alleges** that Samsung illegally copied
> tec... | 2011/09/13 | [
"https://english.stackexchange.com/questions/41787",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/12969/"
] | [*Alleges*](http://www.oxfordadvancedlearnersdictionary.com/dictionary/allege) means:
>
> to state something as a fact but without giving proof
>
>
>
It is very similar to *claims*, but it is used in situations where there is a legal accusation which has not yet been resolved. For example, Apple here *alleges* Sa... | The only difference is one of diction. "Alleges" is in a much higher register than "claims." "Alleges" is also preferred in legal contexts. |
25,862,917 | I installed the Xcode 6 GM seed, and I'm trying to create an IPA file for the first time. After archive success, when I click on the Export button, a window appears saying:
>
> **Failed to locate or generate matching signing assets**
>
>
> Xcode attempted to locate or generate matching signing assets and failed to ... | 2014/09/16 | [
"https://Stackoverflow.com/questions/25862917",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1817337/"
] | I got the same thing the first time, and then I realized that in the dev site there was a new provisioning profile that started with XC:
I restarted xcode and xcode automatically found the XC: profile it created earlier and allowed me to sign the app.
It looked as if the restart of xcode and refresh of signatures (afte... | This can happen when attempting the first release with a new Xcode version *on the same Mac*.
In my case I had both Xcode 6 and Xcode 5 installed.
I solved the issue by exporting my .developerprofile in Xcode 5 and then importing it in Xcode 6 as follows:
In old Xcode (mine was 5.1.1)
-----------------------------
... |
25,862,917 | I installed the Xcode 6 GM seed, and I'm trying to create an IPA file for the first time. After archive success, when I click on the Export button, a window appears saying:
>
> **Failed to locate or generate matching signing assets**
>
>
> Xcode attempted to locate or generate matching signing assets and failed to ... | 2014/09/16 | [
"https://Stackoverflow.com/questions/25862917",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1817337/"
] | In keychain access, -> Show Expired Certificates, then in your login keychain click on expired certificate and delete it. I also had the same expired certificate in my System keychain, so I deleted it from there too.
-> After deleting the expired cert from the login and System keychains,download certificate from below... | I was able to resolve this issue by renaming the provisioning profile name in member center and refreshing in XCode 6. |
25,862,917 | I installed the Xcode 6 GM seed, and I'm trying to create an IPA file for the first time. After archive success, when I click on the Export button, a window appears saying:
>
> **Failed to locate or generate matching signing assets**
>
>
> Xcode attempted to locate or generate matching signing assets and failed to ... | 2014/09/16 | [
"https://Stackoverflow.com/questions/25862917",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1817337/"
] | I got same issue. I was pretty sure about my provisioning and certificate etc are properly set. I created all these at apple dev portal while my **Xcode 6.2** was opened. After downloading certificate and provisioning, I double clicked both and then was able to choose for signing from Xcode. That is **NO Xcode restart ... | Don't listen to anyone.
DO NEXT:
1. Open XCODE
2. Go to Xcode > Preferences > View Details
3. You will see Signing Identifies at the top of new opened window. There will be "iOS Development" or "iOS Distribution". (in my case there was only 1 - iOS Development)
4. Revoke all Signing Identifies you have there
5. Click... |
25,862,917 | I installed the Xcode 6 GM seed, and I'm trying to create an IPA file for the first time. After archive success, when I click on the Export button, a window appears saying:
>
> **Failed to locate or generate matching signing assets**
>
>
> Xcode attempted to locate or generate matching signing assets and failed to ... | 2014/09/16 | [
"https://Stackoverflow.com/questions/25862917",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1817337/"
] | Only this way solved the issue for me:
Open the "Keychain Access" app and select "View" -> "Show Expired Certificates". Remove ALL expired Apple certificates!
Restart Xcode.
See: Xcode unable to create distribution builds for App Store submissions or Enterprise apps -> <https://developer.apple.com/support/certificate... | Had same problem and now i can EXPORT my App again.
1) this reply was very funny but good NOT TO HEAR ANYONE combining with
2) answered Sep 19 '14 at 23:21
hepled me to get work on my iPhone.
Go to development.apple.com -> Certificates -> All / Production and just delete you **iOS Distribution** thing. It could be... |
25,862,917 | I installed the Xcode 6 GM seed, and I'm trying to create an IPA file for the first time. After archive success, when I click on the Export button, a window appears saying:
>
> **Failed to locate or generate matching signing assets**
>
>
> Xcode attempted to locate or generate matching signing assets and failed to ... | 2014/09/16 | [
"https://Stackoverflow.com/questions/25862917",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1817337/"
] | I have been searching answer for this problem past 6 hours. Nothing is satisfactory. As no one knows why this is happening.
Following is way to generate .ipa via command line. If that works I will update here tomorrow.
>
> xcodebuild -exportArchive -archivePath $projectname.xcarchive -exportPath $projectname -export... | For me, all I had to do was restart XCode and it worked. |
25,862,917 | I installed the Xcode 6 GM seed, and I'm trying to create an IPA file for the first time. After archive success, when I click on the Export button, a window appears saying:
>
> **Failed to locate or generate matching signing assets**
>
>
> Xcode attempted to locate or generate matching signing assets and failed to ... | 2014/09/16 | [
"https://Stackoverflow.com/questions/25862917",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1817337/"
] | Not sure why 'Use local signing assets' worked for me | I got same issue. I was pretty sure about my provisioning and certificate etc are properly set. I created all these at apple dev portal while my **Xcode 6.2** was opened. After downloading certificate and provisioning, I double clicked both and then was able to choose for signing from Xcode. That is **NO Xcode restart ... |
25,862,917 | I installed the Xcode 6 GM seed, and I'm trying to create an IPA file for the first time. After archive success, when I click on the Export button, a window appears saying:
>
> **Failed to locate or generate matching signing assets**
>
>
> Xcode attempted to locate or generate matching signing assets and failed to ... | 2014/09/16 | [
"https://Stackoverflow.com/questions/25862917",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1817337/"
] | I got the same thing the first time, and then I realized that in the dev site there was a new provisioning profile that started with XC:
I restarted xcode and xcode automatically found the XC: profile it created earlier and allowed me to sign the app.
It looked as if the restart of xcode and refresh of signatures (afte... | Problem at my end was, in itunesconnect my account was certified as "iOS developer" but not as "iOS app distributor". Had to recreate certificate, download it, open with keychain , and then revalidate the archive. It finally worked. Thanks all |
25,862,917 | I installed the Xcode 6 GM seed, and I'm trying to create an IPA file for the first time. After archive success, when I click on the Export button, a window appears saying:
>
> **Failed to locate or generate matching signing assets**
>
>
> Xcode attempted to locate or generate matching signing assets and failed to ... | 2014/09/16 | [
"https://Stackoverflow.com/questions/25862917",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1817337/"
] | I edited distribution profile and downloaded it again, restarted xcode and it worked. | For me, all I had to do was restart XCode and it worked. |
25,862,917 | I installed the Xcode 6 GM seed, and I'm trying to create an IPA file for the first time. After archive success, when I click on the Export button, a window appears saying:
>
> **Failed to locate or generate matching signing assets**
>
>
> Xcode attempted to locate or generate matching signing assets and failed to ... | 2014/09/16 | [
"https://Stackoverflow.com/questions/25862917",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1817337/"
] | Only this way solved the issue for me:
Open the "Keychain Access" app and select "View" -> "Show Expired Certificates". Remove ALL expired Apple certificates!
Restart Xcode.
See: Xcode unable to create distribution builds for App Store submissions or Enterprise apps -> <https://developer.apple.com/support/certificate... | To fix this, I had to disable Automatic signing management in Target > General and import both dev and pro profiles after downloading them from my Apple dev account.
Rebuilt app and it worked, nothing else did. I guess this issue can come from many different sources. |
25,862,917 | I installed the Xcode 6 GM seed, and I'm trying to create an IPA file for the first time. After archive success, when I click on the Export button, a window appears saying:
>
> **Failed to locate or generate matching signing assets**
>
>
> Xcode attempted to locate or generate matching signing assets and failed to ... | 2014/09/16 | [
"https://Stackoverflow.com/questions/25862917",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1817337/"
] | I was able to resolve this issue by renaming the provisioning profile name in member center and refreshing in XCode 6. | For me, all I had to do was restart XCode and it worked. |
50,952,307 | I can create a C++11 Template function to explicitly convert a bitset into an unsigned long:
```
template<size_t N>
unsigned long U(bitset<N> x) {
return x.to_ulong();
}
// Explicit conversion
unsigned long y = U(bitset<4>("1010"));
```
Is there a way to "implicitly" convert bitset to an unsigned long using a C... | 2018/06/20 | [
"https://Stackoverflow.com/questions/50952307",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5632412/"
] | To *implicitly* convert `A` to `B`, either:
* `B` must have a non-explicit constructor taking `A`, or
* `A` must have a non-explicit conversion `operator B()`.
Both of these must be member functions only.
Since you cannot modify `std::bitset` or `unsigned long` the answer is: no, you cannot *implicitly* convert `std... | You could wrap `std::bitset` in your own implicitly convertible class:
```
template<size_t N>
class MyBitset
{
public:
// constructors elided here
operator unsigned long()
{
return _bitset.to_ulong();
}
operator std::bitset<N>()
{
return _bitset; // Note that you get a copy he... |
50,952,307 | I can create a C++11 Template function to explicitly convert a bitset into an unsigned long:
```
template<size_t N>
unsigned long U(bitset<N> x) {
return x.to_ulong();
}
// Explicit conversion
unsigned long y = U(bitset<4>("1010"));
```
Is there a way to "implicitly" convert bitset to an unsigned long using a C... | 2018/06/20 | [
"https://Stackoverflow.com/questions/50952307",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5632412/"
] | To *implicitly* convert `A` to `B`, either:
* `B` must have a non-explicit constructor taking `A`, or
* `A` must have a non-explicit conversion `operator B()`.
Both of these must be member functions only.
Since you cannot modify `std::bitset` or `unsigned long` the answer is: no, you cannot *implicitly* convert `std... | Another Solution based on Maxim's Bullet 2:
```
template<size_t N>
class bits : public bitset<N> {
public:
bits(unsigned long num) : bitset<N>(num) {}
bits(char* binstr) : bitset<N>(binstr){}
operator unsigned long() {
return this->to_ulong();
}
// Slice Bit Range
unsigned long slice(... |
50,952,307 | I can create a C++11 Template function to explicitly convert a bitset into an unsigned long:
```
template<size_t N>
unsigned long U(bitset<N> x) {
return x.to_ulong();
}
// Explicit conversion
unsigned long y = U(bitset<4>("1010"));
```
Is there a way to "implicitly" convert bitset to an unsigned long using a C... | 2018/06/20 | [
"https://Stackoverflow.com/questions/50952307",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5632412/"
] | You could wrap `std::bitset` in your own implicitly convertible class:
```
template<size_t N>
class MyBitset
{
public:
// constructors elided here
operator unsigned long()
{
return _bitset.to_ulong();
}
operator std::bitset<N>()
{
return _bitset; // Note that you get a copy he... | Another Solution based on Maxim's Bullet 2:
```
template<size_t N>
class bits : public bitset<N> {
public:
bits(unsigned long num) : bitset<N>(num) {}
bits(char* binstr) : bitset<N>(binstr){}
operator unsigned long() {
return this->to_ulong();
}
// Slice Bit Range
unsigned long slice(... |
15,609,622 | I have a C function witch looks like:
```
int foo(int a, long long b);
```
I'm trying to call it from arm assembly, but I don't know how to deal with the second parameter(`long long`). | 2013/03/25 | [
"https://Stackoverflow.com/questions/15609622",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2206545/"
] | The [ARM EABI/AAPCS](http://infocenter.arm.com/help/topic/com.arm.doc.ihi0042d/IHI0042D_aapcs.pdf) specifies that 64bit types should be passed in 2 registers which are next to each other and the first register must be even numbered. In little endian mode the high part resides in the higher numbered register, while the ... | (Beware: wrong answer; cannot delete it because the comments contain info)
According to the ARM ABI, the second parameter is passed in registers `r1` and `r2`. If your machine is little-endian, pass the low part in `r1` and the high one in `r2` (i don't know if this is opposite for big-endian machines). So to call the... |
15,609,622 | I have a C function witch looks like:
```
int foo(int a, long long b);
```
I'm trying to call it from arm assembly, but I don't know how to deal with the second parameter(`long long`). | 2013/03/25 | [
"https://Stackoverflow.com/questions/15609622",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2206545/"
] | The [ARM EABI/AAPCS](http://infocenter.arm.com/help/topic/com.arm.doc.ihi0042d/IHI0042D_aapcs.pdf) specifies that 64bit types should be passed in 2 registers which are next to each other and the first register must be even numbered. In little endian mode the high part resides in the higher numbered register, while the ... | Just ask the compiler it will tell you everything...
```
int foo ( int a, long long b );
int bar ( void )
{
return(foo(0xAABB,0x1122334455667788LL));
}
```
I prefer to compile then disassemble rather than compile to asm, easier to read.
```
arm-none-eabi-gcc -c -O2 fun.c -o fun.o
arm-none-eabi-objdump -D fun.... |
30,536,389 | For example, I have a 100 row table with a `varchar` column.
I run these queries:
```
SELECT count(*) FROM myTable WHERE myText LIKE '%hello%'
SELECT count(*) FROM myTable WHERE myText NOT LIKE '%hello%'
```
I am not getting a total count of 100. It is not picking up some of the rows for some reason. Why would this... | 2015/05/29 | [
"https://Stackoverflow.com/questions/30536389",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/84292/"
] | Check for `NULL` values, neither `LIKE` nor `NOT LIKE` will count these. | It may be possible that some of the data in field do not have the word "Hello" in them. If you want to display all the row, just use
```
select count(*) from mytable;
```
without using where clause. |
77,677 | I made a game with Unity but the size of .apk file got so large, it is about 70mb...
Is there some way that I can compress my apk file? | 2014/06/14 | [
"https://gamedev.stackexchange.com/questions/77677",
"https://gamedev.stackexchange.com",
"https://gamedev.stackexchange.com/users/42139/"
] | You can compress certain assets individually.
After building the project, go into the log file and there will be a summary of what assets were packaged with the apk, and their sizes.
(On windows, located in C:/Users/username/AppData/Local/Unity/Editor/Editor.log)
Find large textures/music/sound, and select them in th... | 1. You can use [Tinypng](https://tinypng.com/) to decrease you graphics size without visible graphics quality damage, Decreasing graphics size ultimatly leads to decrease in apk size.
2. Make spritessheets either using [Texture Packer](https://www.codeandweb.com/texturepacker)
or using Unity3d own [Sprites Packer](http... |
77,677 | I made a game with Unity but the size of .apk file got so large, it is about 70mb...
Is there some way that I can compress my apk file? | 2014/06/14 | [
"https://gamedev.stackexchange.com/questions/77677",
"https://gamedev.stackexchange.com",
"https://gamedev.stackexchange.com/users/42139/"
] | You can compress certain assets individually.
After building the project, go into the log file and there will be a summary of what assets were packaged with the apk, and their sizes.
(On windows, located in C:/Users/username/AppData/Local/Unity/Editor/Editor.log)
Find large textures/music/sound, and select them in th... | You can also choose to set the Device filter to Arm7. This will exclude certain devices, but I believe the number is quite small and it does minimize the apk size a bit. (This is located in Player Setting -> Other Settings -> Device Filter). You could try a build and see how much it would reduce it by and decide whethe... |
77,677 | I made a game with Unity but the size of .apk file got so large, it is about 70mb...
Is there some way that I can compress my apk file? | 2014/06/14 | [
"https://gamedev.stackexchange.com/questions/77677",
"https://gamedev.stackexchange.com",
"https://gamedev.stackexchange.com/users/42139/"
] | You can compress certain assets individually.
After building the project, go into the log file and there will be a summary of what assets were packaged with the apk, and their sizes.
(On windows, located in C:/Users/username/AppData/Local/Unity/Editor/Editor.log)
Find large textures/music/sound, and select them in th... | Set your image size square and
Set unity suggested pixels.(32, 64, 128, 256, 512, 1024, 2048, 4096, 8192)
If your image size is 567x890 pixels then set this image in a 1024x1024 pixels background transparent blank image and save it as a png file.
Then in unity inspector set this image as a sprite and slice it by sprit... |
77,677 | I made a game with Unity but the size of .apk file got so large, it is about 70mb...
Is there some way that I can compress my apk file? | 2014/06/14 | [
"https://gamedev.stackexchange.com/questions/77677",
"https://gamedev.stackexchange.com",
"https://gamedev.stackexchange.com/users/42139/"
] | You can compress certain assets individually.
After building the project, go into the log file and there will be a summary of what assets were packaged with the apk, and their sizes.
(On windows, located in C:/Users/username/AppData/Local/Unity/Editor/Editor.log)
Find large textures/music/sound, and select them in th... | It is also good to set texture / sprite compression format.
Check this website: <https://docs.unity3d.com/Manual/class-TextureImporterOverride.html>
Most texture compression format needs image in power of 2 resolution (128, 256, 512, 1024, 2048). Resolutions 4096 and 8192 may not work on some android devices.
For ex... |
77,677 | I made a game with Unity but the size of .apk file got so large, it is about 70mb...
Is there some way that I can compress my apk file? | 2014/06/14 | [
"https://gamedev.stackexchange.com/questions/77677",
"https://gamedev.stackexchange.com",
"https://gamedev.stackexchange.com/users/42139/"
] | 1. You can use [Tinypng](https://tinypng.com/) to decrease you graphics size without visible graphics quality damage, Decreasing graphics size ultimatly leads to decrease in apk size.
2. Make spritessheets either using [Texture Packer](https://www.codeandweb.com/texturepacker)
or using Unity3d own [Sprites Packer](http... | You can also choose to set the Device filter to Arm7. This will exclude certain devices, but I believe the number is quite small and it does minimize the apk size a bit. (This is located in Player Setting -> Other Settings -> Device Filter). You could try a build and see how much it would reduce it by and decide whethe... |
77,677 | I made a game with Unity but the size of .apk file got so large, it is about 70mb...
Is there some way that I can compress my apk file? | 2014/06/14 | [
"https://gamedev.stackexchange.com/questions/77677",
"https://gamedev.stackexchange.com",
"https://gamedev.stackexchange.com/users/42139/"
] | 1. You can use [Tinypng](https://tinypng.com/) to decrease you graphics size without visible graphics quality damage, Decreasing graphics size ultimatly leads to decrease in apk size.
2. Make spritessheets either using [Texture Packer](https://www.codeandweb.com/texturepacker)
or using Unity3d own [Sprites Packer](http... | Set your image size square and
Set unity suggested pixels.(32, 64, 128, 256, 512, 1024, 2048, 4096, 8192)
If your image size is 567x890 pixels then set this image in a 1024x1024 pixels background transparent blank image and save it as a png file.
Then in unity inspector set this image as a sprite and slice it by sprit... |
77,677 | I made a game with Unity but the size of .apk file got so large, it is about 70mb...
Is there some way that I can compress my apk file? | 2014/06/14 | [
"https://gamedev.stackexchange.com/questions/77677",
"https://gamedev.stackexchange.com",
"https://gamedev.stackexchange.com/users/42139/"
] | 1. You can use [Tinypng](https://tinypng.com/) to decrease you graphics size without visible graphics quality damage, Decreasing graphics size ultimatly leads to decrease in apk size.
2. Make spritessheets either using [Texture Packer](https://www.codeandweb.com/texturepacker)
or using Unity3d own [Sprites Packer](http... | It is also good to set texture / sprite compression format.
Check this website: <https://docs.unity3d.com/Manual/class-TextureImporterOverride.html>
Most texture compression format needs image in power of 2 resolution (128, 256, 512, 1024, 2048). Resolutions 4096 and 8192 may not work on some android devices.
For ex... |
77,677 | I made a game with Unity but the size of .apk file got so large, it is about 70mb...
Is there some way that I can compress my apk file? | 2014/06/14 | [
"https://gamedev.stackexchange.com/questions/77677",
"https://gamedev.stackexchange.com",
"https://gamedev.stackexchange.com/users/42139/"
] | Set your image size square and
Set unity suggested pixels.(32, 64, 128, 256, 512, 1024, 2048, 4096, 8192)
If your image size is 567x890 pixels then set this image in a 1024x1024 pixels background transparent blank image and save it as a png file.
Then in unity inspector set this image as a sprite and slice it by sprit... | You can also choose to set the Device filter to Arm7. This will exclude certain devices, but I believe the number is quite small and it does minimize the apk size a bit. (This is located in Player Setting -> Other Settings -> Device Filter). You could try a build and see how much it would reduce it by and decide whethe... |
77,677 | I made a game with Unity but the size of .apk file got so large, it is about 70mb...
Is there some way that I can compress my apk file? | 2014/06/14 | [
"https://gamedev.stackexchange.com/questions/77677",
"https://gamedev.stackexchange.com",
"https://gamedev.stackexchange.com/users/42139/"
] | Set your image size square and
Set unity suggested pixels.(32, 64, 128, 256, 512, 1024, 2048, 4096, 8192)
If your image size is 567x890 pixels then set this image in a 1024x1024 pixels background transparent blank image and save it as a png file.
Then in unity inspector set this image as a sprite and slice it by sprit... | It is also good to set texture / sprite compression format.
Check this website: <https://docs.unity3d.com/Manual/class-TextureImporterOverride.html>
Most texture compression format needs image in power of 2 resolution (128, 256, 512, 1024, 2048). Resolutions 4096 and 8192 may not work on some android devices.
For ex... |
2,156,192 | i´m creating a thread that takes as parameter dispatchInputs which is an CString array
but in mean while i need to use "env" in DispFrontEnd function, can a thread use the global variable "env" ? if not how how can i pass it as argument to DispFrontEnd ?
```
static JNIEnv *env;
static JavaVM *jvm;
JNIEnv* startJVM... | 2010/01/28 | [
"https://Stackoverflow.com/questions/2156192",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/250825/"
] | yes a thread can use the value of a global variable! | See [Is it ok to save JavaVM \* and JNIEnv \* as a global variable and use it elsewhere?](https://stackoverflow.com/questions/10082769/is-it-ok-to-save-javavm-and-jnienv-as-a-global-variable-and-use-it-elsewhere)
The JNIEnv "represents a context for a specific JNI method invocation. It is dependent on the current thre... |
69,405,178 | I have updated my project to Xcode 13 and iOS 15. Now the app is crashing with an error related to autoresizing masks in UITableViewCells. I have tried to change UITableViewCells Layer property in the inspector to Inferred and followed [this post](https://developer.apple.com/forums/thread/689312), but none of them are ... | 2021/10/01 | [
"https://Stackoverflow.com/questions/69405178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6734627/"
] | I have faced up with same problem.
Try following:
Open \*.xib of your UITableViewCell as source code (Context menu / "Open As" / "Source Code").
Locate "tableViewCell" and "tableViewCellContentView" tags, delete its "translatesAutoresizingMaskIntoConstraints" attributes (with values), delete its subtags "autoresizingMa... | Removing "translatesAutoresizingMaskIntoConstraints" for "tableViewCell" worked for me, but "autoresizingMask" stayed there as they were added by XCode automatically again. |
69,405,178 | I have updated my project to Xcode 13 and iOS 15. Now the app is crashing with an error related to autoresizing masks in UITableViewCells. I have tried to change UITableViewCells Layer property in the inspector to Inferred and followed [this post](https://developer.apple.com/forums/thread/689312), but none of them are ... | 2021/10/01 | [
"https://Stackoverflow.com/questions/69405178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6734627/"
] | My issue was resolved with a different solution, while the error was the same the cause was different. A view inside my cell was assigned the same class from the cell, by removing the class the error was resolved.
[](https... | Removing "translatesAutoresizingMaskIntoConstraints" for "tableViewCell" worked for me, but "autoresizingMask" stayed there as they were added by XCode automatically again. |
69,405,178 | I have updated my project to Xcode 13 and iOS 15. Now the app is crashing with an error related to autoresizing masks in UITableViewCells. I have tried to change UITableViewCells Layer property in the inspector to Inferred and followed [this post](https://developer.apple.com/forums/thread/689312), but none of them are ... | 2021/10/01 | [
"https://Stackoverflow.com/questions/69405178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6734627/"
] | I think this has something to do with Xcode 13 and that too specifically for cells in xib file. For me it first time crashed on Xcode 13.2.1. Previously I used several versions of Xcode 12 and it never crashed.
The `Content View` of my cell in `xib` was already set to `Autoresizing Mask` but for the cell itself, the l... | Same thing happened to me with xCode 13.0 on iOS 15 only (previous iOS versions didn't have any issues).
To solve the problem, make sure your cell Content View is set to **Layout: Autoresizing Mask** (and not Inferred (Constrains)) under the size inspector as shown in the following image:
[Autoresizing Mask](https://i... |
69,405,178 | I have updated my project to Xcode 13 and iOS 15. Now the app is crashing with an error related to autoresizing masks in UITableViewCells. I have tried to change UITableViewCells Layer property in the inspector to Inferred and followed [this post](https://developer.apple.com/forums/thread/689312), but none of them are ... | 2021/10/01 | [
"https://Stackoverflow.com/questions/69405178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6734627/"
] | My issue was resolved with a different solution, while the error was the same the cause was different. A view inside my cell was assigned the same class from the cell, by removing the class the error was resolved.
[](https... | 1. Change the Layout for TableViewCell and ContentView to "Autoresizing Mask". If it is still checked try changing to "Inferred Constraints" and back to "Autoresizing Mask".
2. Try opening the xib file in the latest Xcode , save the changes performed by the Xcode and run again.
3. Important - Check if tableView cell na... |
69,405,178 | I have updated my project to Xcode 13 and iOS 15. Now the app is crashing with an error related to autoresizing masks in UITableViewCells. I have tried to change UITableViewCells Layer property in the inspector to Inferred and followed [this post](https://developer.apple.com/forums/thread/689312), but none of them are ... | 2021/10/01 | [
"https://Stackoverflow.com/questions/69405178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6734627/"
] | I think this has something to do with Xcode 13 and that too specifically for cells in xib file. For me it first time crashed on Xcode 13.2.1. Previously I used several versions of Xcode 12 and it never crashed.
The `Content View` of my cell in `xib` was already set to `Autoresizing Mask` but for the cell itself, the l... | 1. Change the Layout for TableViewCell and ContentView to "Autoresizing Mask". If it is still checked try changing to "Inferred Constraints" and back to "Autoresizing Mask".
2. Try opening the xib file in the latest Xcode , save the changes performed by the Xcode and run again.
3. Important - Check if tableView cell na... |
69,405,178 | I have updated my project to Xcode 13 and iOS 15. Now the app is crashing with an error related to autoresizing masks in UITableViewCells. I have tried to change UITableViewCells Layer property in the inspector to Inferred and followed [this post](https://developer.apple.com/forums/thread/689312), but none of them are ... | 2021/10/01 | [
"https://Stackoverflow.com/questions/69405178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6734627/"
] | My issue was resolved with a different solution, while the error was the same the cause was different. A view inside my cell was assigned the same class from the cell, by removing the class the error was resolved.
[](https... | Also happens if you insert a `UITableViewCell` within your `UITableViewCell`. I was loading a custom view which I didn't realise was a `UITableViewCell` - for some reason I thought it was just a regular `UIView`. |
69,405,178 | I have updated my project to Xcode 13 and iOS 15. Now the app is crashing with an error related to autoresizing masks in UITableViewCells. I have tried to change UITableViewCells Layer property in the inspector to Inferred and followed [this post](https://developer.apple.com/forums/thread/689312), but none of them are ... | 2021/10/01 | [
"https://Stackoverflow.com/questions/69405178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6734627/"
] | Same thing happened to me with xCode 13.0 on iOS 15 only (previous iOS versions didn't have any issues).
To solve the problem, make sure your cell Content View is set to **Layout: Autoresizing Mask** (and not Inferred (Constrains)) under the size inspector as shown in the following image:
[Autoresizing Mask](https://i... | 1. Change the Layout for TableViewCell and ContentView to "Autoresizing Mask". If it is still checked try changing to "Inferred Constraints" and back to "Autoresizing Mask".
2. Try opening the xib file in the latest Xcode , save the changes performed by the Xcode and run again.
3. Important - Check if tableView cell na... |
69,405,178 | I have updated my project to Xcode 13 and iOS 15. Now the app is crashing with an error related to autoresizing masks in UITableViewCells. I have tried to change UITableViewCells Layer property in the inspector to Inferred and followed [this post](https://developer.apple.com/forums/thread/689312), but none of them are ... | 2021/10/01 | [
"https://Stackoverflow.com/questions/69405178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6734627/"
] | Same thing happened to me with xCode 13.0 on iOS 15 only (previous iOS versions didn't have any issues).
To solve the problem, make sure your cell Content View is set to **Layout: Autoresizing Mask** (and not Inferred (Constrains)) under the size inspector as shown in the following image:
[Autoresizing Mask](https://i... | Also happens if you insert a `UITableViewCell` within your `UITableViewCell`. I was loading a custom view which I didn't realise was a `UITableViewCell` - for some reason I thought it was just a regular `UIView`. |
69,405,178 | I have updated my project to Xcode 13 and iOS 15. Now the app is crashing with an error related to autoresizing masks in UITableViewCells. I have tried to change UITableViewCells Layer property in the inspector to Inferred and followed [this post](https://developer.apple.com/forums/thread/689312), but none of them are ... | 2021/10/01 | [
"https://Stackoverflow.com/questions/69405178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6734627/"
] | I have faced up with same problem.
Try following:
Open \*.xib of your UITableViewCell as source code (Context menu / "Open As" / "Source Code").
Locate "tableViewCell" and "tableViewCellContentView" tags, delete its "translatesAutoresizingMaskIntoConstraints" attributes (with values), delete its subtags "autoresizingMa... | 1. Change the Layout for TableViewCell and ContentView to "Autoresizing Mask". If it is still checked try changing to "Inferred Constraints" and back to "Autoresizing Mask".
2. Try opening the xib file in the latest Xcode , save the changes performed by the Xcode and run again.
3. Important - Check if tableView cell na... |
69,405,178 | I have updated my project to Xcode 13 and iOS 15. Now the app is crashing with an error related to autoresizing masks in UITableViewCells. I have tried to change UITableViewCells Layer property in the inspector to Inferred and followed [this post](https://developer.apple.com/forums/thread/689312), but none of them are ... | 2021/10/01 | [
"https://Stackoverflow.com/questions/69405178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6734627/"
] | I have faced up with same problem.
Try following:
Open \*.xib of your UITableViewCell as source code (Context menu / "Open As" / "Source Code").
Locate "tableViewCell" and "tableViewCellContentView" tags, delete its "translatesAutoresizingMaskIntoConstraints" attributes (with values), delete its subtags "autoresizingMa... | Also happens if you insert a `UITableViewCell` within your `UITableViewCell`. I was loading a custom view which I didn't realise was a `UITableViewCell` - for some reason I thought it was just a regular `UIView`. |
5,155,434 | I want to convert a string such as 'a=b,a=c,a=d,b=e' into a dict of lists {'a': ['b', 'c', 'd'], 'b': ['e']} in Python 2.6.
My current solution is this:
```
def merge(d1, d2):
for k, v in d2.items():
if k in d1:
if type(d1[k]) != type(list()):
d1[k] = list(d1[k])
d1... | 2011/03/01 | [
"https://Stackoverflow.com/questions/5155434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/147877/"
] | ```
d = {}
for i in 'a=b,a=c,a=d,b=e'.split(","):
k,v = i.split("=")
d.setdefault(k,[]).append(v)
print d
```
or, if you're using python > 2.4, you can use [defaultdict](http://docs.python.org/library/collections.html#defaultdict-examples)
```
from collections import defaultdict
d = defaultdict(list)
for i ... | ```
>>> result={}
>>> mystr='a=b,a=c,a=d,b=e'
>>> for k, v in [s.split('=') for s in mystr.split(',')]:
... result[k] = result.get(k, []) + [v]
...
>>> result
{'a': ['b', 'c', 'd'], 'b': ['e']}
``` |
5,155,434 | I want to convert a string such as 'a=b,a=c,a=d,b=e' into a dict of lists {'a': ['b', 'c', 'd'], 'b': ['e']} in Python 2.6.
My current solution is this:
```
def merge(d1, d2):
for k, v in d2.items():
if k in d1:
if type(d1[k]) != type(list()):
d1[k] = list(d1[k])
d1... | 2011/03/01 | [
"https://Stackoverflow.com/questions/5155434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/147877/"
] | ```
>>> result={}
>>> mystr='a=b,a=c,a=d,b=e'
>>> for k, v in [s.split('=') for s in mystr.split(',')]:
... result[k] = result.get(k, []) + [v]
...
>>> result
{'a': ['b', 'c', 'd'], 'b': ['e']}
``` | How about...
```
STR = "a=c,b=d,a=x,a=b"
d = {} # An empty dictionary to start with.
# We split the string at the commas first, and each substr at the '=' sign
pairs = (subs.split('=') for subs in STR.split(','))
# Now we add each pair to a dictionary of lists.
for key, value in pairs:
d[key] = d.get(key, []) + ... |
5,155,434 | I want to convert a string such as 'a=b,a=c,a=d,b=e' into a dict of lists {'a': ['b', 'c', 'd'], 'b': ['e']} in Python 2.6.
My current solution is this:
```
def merge(d1, d2):
for k, v in d2.items():
if k in d1:
if type(d1[k]) != type(list()):
d1[k] = list(d1[k])
d1... | 2011/03/01 | [
"https://Stackoverflow.com/questions/5155434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/147877/"
] | ```
>>> result={}
>>> mystr='a=b,a=c,a=d,b=e'
>>> for k, v in [s.split('=') for s in mystr.split(',')]:
... result[k] = result.get(k, []) + [v]
...
>>> result
{'a': ['b', 'c', 'd'], 'b': ['e']}
``` | Using a regex allow to do the work of two splits in only one:
```
import re
ch ='a=b,a=c ,a=d, b=e'
dic = {}
for k,v in re.findall('(\w+)=(\w+)\s*(?:,|\Z)',ch):
dic.setdefault(k,[]).append(v)
print dic
``` |
5,155,434 | I want to convert a string such as 'a=b,a=c,a=d,b=e' into a dict of lists {'a': ['b', 'c', 'd'], 'b': ['e']} in Python 2.6.
My current solution is this:
```
def merge(d1, d2):
for k, v in d2.items():
if k in d1:
if type(d1[k]) != type(list()):
d1[k] = list(d1[k])
d1... | 2011/03/01 | [
"https://Stackoverflow.com/questions/5155434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/147877/"
] | ```
d = {}
for i in 'a=b,a=c,a=d,b=e'.split(","):
k,v = i.split("=")
d.setdefault(k,[]).append(v)
print d
```
or, if you're using python > 2.4, you can use [defaultdict](http://docs.python.org/library/collections.html#defaultdict-examples)
```
from collections import defaultdict
d = defaultdict(list)
for i ... | How about...
```
STR = "a=c,b=d,a=x,a=b"
d = {} # An empty dictionary to start with.
# We split the string at the commas first, and each substr at the '=' sign
pairs = (subs.split('=') for subs in STR.split(','))
# Now we add each pair to a dictionary of lists.
for key, value in pairs:
d[key] = d.get(key, []) + ... |
5,155,434 | I want to convert a string such as 'a=b,a=c,a=d,b=e' into a dict of lists {'a': ['b', 'c', 'd'], 'b': ['e']} in Python 2.6.
My current solution is this:
```
def merge(d1, d2):
for k, v in d2.items():
if k in d1:
if type(d1[k]) != type(list()):
d1[k] = list(d1[k])
d1... | 2011/03/01 | [
"https://Stackoverflow.com/questions/5155434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/147877/"
] | ```
d = {}
for i in 'a=b,a=c,a=d,b=e'.split(","):
k,v = i.split("=")
d.setdefault(k,[]).append(v)
print d
```
or, if you're using python > 2.4, you can use [defaultdict](http://docs.python.org/library/collections.html#defaultdict-examples)
```
from collections import defaultdict
d = defaultdict(list)
for i ... | Using a regex allow to do the work of two splits in only one:
```
import re
ch ='a=b,a=c ,a=d, b=e'
dic = {}
for k,v in re.findall('(\w+)=(\w+)\s*(?:,|\Z)',ch):
dic.setdefault(k,[]).append(v)
print dic
``` |
2,954,666 | If you take the circumference of the circle and stretch it into a rope and then multiply it by the height(radius) why don't you get the area of a circle?
I ask this question when using the shell method revolved around the $x$ axis on $x^2$ from $[0,2] $ instead of the disk method. | 2018/10/14 | [
"https://math.stackexchange.com/questions/2954666",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/603992/"
] | Because if you join the ends of a small piece of your rope to the centre, you get a triangle, not a rectangle. A triangle has half the area of a rectangle with the same base and height. | In your logic, you are saying that unraveling a circle gives you many small rectangles. How does that make any sense when you try to roll it back?
Instead, it comes out as many triangles of height $r$, and sum of all the base lengths would be $2\pi r$(the circumference). Hence their total area is $0.5\times r\times2\... |
2,954,666 | If you take the circumference of the circle and stretch it into a rope and then multiply it by the height(radius) why don't you get the area of a circle?
I ask this question when using the shell method revolved around the $x$ axis on $x^2$ from $[0,2] $ instead of the disk method. | 2018/10/14 | [
"https://math.stackexchange.com/questions/2954666",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/603992/"
] | Because if you join the ends of a small piece of your rope to the centre, you get a triangle, not a rectangle. A triangle has half the area of a rectangle with the same base and height. | You are stretching both the circumference and the center to make a rectangle of height$R$
By turning the circumference of the circle into a rope and keeping the center fixed you are going a triangle not a rectangle so the area is $$ (1/2)(2\pi R)(R) = \pi R^2 $$ |
2,954,666 | If you take the circumference of the circle and stretch it into a rope and then multiply it by the height(radius) why don't you get the area of a circle?
I ask this question when using the shell method revolved around the $x$ axis on $x^2$ from $[0,2] $ instead of the disk method. | 2018/10/14 | [
"https://math.stackexchange.com/questions/2954666",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/603992/"
] | Because if you join the ends of a small piece of your rope to the centre, you get a triangle, not a rectangle. A triangle has half the area of a rectangle with the same base and height. | Here I'd not argue with lots of formulas.
Rather I'd provide the picture proof from Wikipedia:
cf. <https://en.wikipedia.org/wiki/Area_of_a_circle#/media/File:CircleArea.svg>
--- rk |
2,954,666 | If you take the circumference of the circle and stretch it into a rope and then multiply it by the height(radius) why don't you get the area of a circle?
I ask this question when using the shell method revolved around the $x$ axis on $x^2$ from $[0,2] $ instead of the disk method. | 2018/10/14 | [
"https://math.stackexchange.com/questions/2954666",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/603992/"
] | You are stretching both the circumference and the center to make a rectangle of height$R$
By turning the circumference of the circle into a rope and keeping the center fixed you are going a triangle not a rectangle so the area is $$ (1/2)(2\pi R)(R) = \pi R^2 $$ | In your logic, you are saying that unraveling a circle gives you many small rectangles. How does that make any sense when you try to roll it back?
Instead, it comes out as many triangles of height $r$, and sum of all the base lengths would be $2\pi r$(the circumference). Hence their total area is $0.5\times r\times2\... |
2,954,666 | If you take the circumference of the circle and stretch it into a rope and then multiply it by the height(radius) why don't you get the area of a circle?
I ask this question when using the shell method revolved around the $x$ axis on $x^2$ from $[0,2] $ instead of the disk method. | 2018/10/14 | [
"https://math.stackexchange.com/questions/2954666",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/603992/"
] | Here I'd not argue with lots of formulas.
Rather I'd provide the picture proof from Wikipedia:
cf. <https://en.wikipedia.org/wiki/Area_of_a_circle#/media/File:CircleArea.svg>
--- rk | In your logic, you are saying that unraveling a circle gives you many small rectangles. How does that make any sense when you try to roll it back?
Instead, it comes out as many triangles of height $r$, and sum of all the base lengths would be $2\pi r$(the circumference). Hence their total area is $0.5\times r\times2\... |
57,610,270 | I have multiple forms on one page with same structure.
They all have a file input field that has 'onchange' event, which removes the 'disabled' attribute from my submit button when a file is chosen.
The problem is, my function only works for the first element with that class name. How can I make it work for every ite... | 2019/08/22 | [
"https://Stackoverflow.com/questions/57610270",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11696748/"
] | 1. Use eventListener
2. address relatively using selectors
3. make it a habit to never call anything submit in a form
```js
document.querySelectorAll("[name=image]").forEach(
ele => ele.addEventListener("change",
(e) => e.target.closest(".form").querySelector(".sub").disabled = false
)
); ... | Give ID's to all submit buttons and pass the respective ID's in unlock() function.
This removes the disabled from the submit
```js
function unlock(form_id) {
document.getElementById(form_id).removeAttribute("disabled");
}
```
```html
<form class="form">
<input type="file" name="image" onchange="unlock('form1'... |
45,069,275 | I'm developing an iOS app which includes Facebook Login, I have done the login button, but going through the Facebook Test I saw a test to ensure token validity, and if not valid, ask the user to sign in again, I would like to know how to check if a Access Token is valid or expired using Swift 3.0. | 2017/07/12 | [
"https://Stackoverflow.com/questions/45069275",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8298914/"
] | How about you just create a variable that creates your flow layout for you like this
```
var flowLayout: UICollectionViewFlowLayout {
let _flowLayout = UICollectionViewFlowLayout()
// edit properties here
_flowLayout.itemSize = CGSize(width: 98, height: 134)
_flowLayout.sectionInset = UIEdgeInsetsMake... | It's possible to do what I was trying to do. Basically, follow the tutorials I suggested in my own question and setup the collection view and its view layout as follow:
```
collectionViewLayout = PinterestLayout()
collectionViewLayout.delegate = self
collectionView = DynamicCollectionView.init(frame: .zero, collection... |
45,069,275 | I'm developing an iOS app which includes Facebook Login, I have done the login button, but going through the Facebook Test I saw a test to ensure token validity, and if not valid, ask the user to sign in again, I would like to know how to check if a Access Token is valid or expired using Swift 3.0. | 2017/07/12 | [
"https://Stackoverflow.com/questions/45069275",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8298914/"
] | How about you just create a variable that creates your flow layout for you like this
```
var flowLayout: UICollectionViewFlowLayout {
let _flowLayout = UICollectionViewFlowLayout()
// edit properties here
_flowLayout.itemSize = CGSize(width: 98, height: 134)
_flowLayout.sectionInset = UIEdgeInsetsMake... | I think this will work.
```
override init(collectionViewLayout layout: UICollectionViewLayout) {
super.init(collectionViewLayout: layout)
collectionView?.collectionViewLayout = YourCollectionViewLayout()
}
``` |
45,069,275 | I'm developing an iOS app which includes Facebook Login, I have done the login button, but going through the Facebook Test I saw a test to ensure token validity, and if not valid, ask the user to sign in again, I would like to know how to check if a Access Token is valid or expired using Swift 3.0. | 2017/07/12 | [
"https://Stackoverflow.com/questions/45069275",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8298914/"
] | How about you just create a variable that creates your flow layout for you like this
```
var flowLayout: UICollectionViewFlowLayout {
let _flowLayout = UICollectionViewFlowLayout()
// edit properties here
_flowLayout.itemSize = CGSize(width: 98, height: 134)
_flowLayout.sectionInset = UIEdgeInsetsMake... | I resolved this issue taking these steps:
1 - Changing UICollectionViewController to a UIViewController with a collectionView inside.
2 - On ViewDidLoad I set the delegates and add the view, as usual. Moreover, I instantiate the ViewLayout and use it to instantiate the CollectionView
```
var collectionView: UIColl... |
45,069,275 | I'm developing an iOS app which includes Facebook Login, I have done the login button, but going through the Facebook Test I saw a test to ensure token validity, and if not valid, ask the user to sign in again, I would like to know how to check if a Access Token is valid or expired using Swift 3.0. | 2017/07/12 | [
"https://Stackoverflow.com/questions/45069275",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8298914/"
] | I think this will work.
```
override init(collectionViewLayout layout: UICollectionViewLayout) {
super.init(collectionViewLayout: layout)
collectionView?.collectionViewLayout = YourCollectionViewLayout()
}
``` | It's possible to do what I was trying to do. Basically, follow the tutorials I suggested in my own question and setup the collection view and its view layout as follow:
```
collectionViewLayout = PinterestLayout()
collectionViewLayout.delegate = self
collectionView = DynamicCollectionView.init(frame: .zero, collection... |
45,069,275 | I'm developing an iOS app which includes Facebook Login, I have done the login button, but going through the Facebook Test I saw a test to ensure token validity, and if not valid, ask the user to sign in again, I would like to know how to check if a Access Token is valid or expired using Swift 3.0. | 2017/07/12 | [
"https://Stackoverflow.com/questions/45069275",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8298914/"
] | It's possible to do what I was trying to do. Basically, follow the tutorials I suggested in my own question and setup the collection view and its view layout as follow:
```
collectionViewLayout = PinterestLayout()
collectionViewLayout.delegate = self
collectionView = DynamicCollectionView.init(frame: .zero, collection... | I resolved this issue taking these steps:
1 - Changing UICollectionViewController to a UIViewController with a collectionView inside.
2 - On ViewDidLoad I set the delegates and add the view, as usual. Moreover, I instantiate the ViewLayout and use it to instantiate the CollectionView
```
var collectionView: UIColl... |
45,069,275 | I'm developing an iOS app which includes Facebook Login, I have done the login button, but going through the Facebook Test I saw a test to ensure token validity, and if not valid, ask the user to sign in again, I would like to know how to check if a Access Token is valid or expired using Swift 3.0. | 2017/07/12 | [
"https://Stackoverflow.com/questions/45069275",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8298914/"
] | I think this will work.
```
override init(collectionViewLayout layout: UICollectionViewLayout) {
super.init(collectionViewLayout: layout)
collectionView?.collectionViewLayout = YourCollectionViewLayout()
}
``` | I resolved this issue taking these steps:
1 - Changing UICollectionViewController to a UIViewController with a collectionView inside.
2 - On ViewDidLoad I set the delegates and add the view, as usual. Moreover, I instantiate the ViewLayout and use it to instantiate the CollectionView
```
var collectionView: UIColl... |
2,324,999 | $$\sum\_{n=1}^{\infty}({\cos{\frac{a}{n^3}})^{n^3}}$$where a is constant. I have done the next:$$(\cos{\frac{a}{n^3}})^{n^3}\sim{e^{-0.5a^2n}}$$And what is the next step? | 2017/06/16 | [
"https://math.stackexchange.com/questions/2324999",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/455239/"
] | **Hint**: The necessary condition for convergence of a series is that after large *n*, the terms should not affect the sum significantly! That is, if for large *n*, the terms should approach zero. Mathematically, we may say that if $\sum\limits\_{n=0}^{\infty} a\_n$ is a series, then it will not converge if $\lim\limit... | $\sum\_{n=1}^{\infty}({\cos{\frac{a}{n^3}})^{n^3}}
$
Since
$\cos(x)
\approx 1-\frac{x^2}{2}
$
for small $x$,
$\cos{\frac{a}{n^3}}
\approx 1-\frac{a^2}{2n^6}
$
so
$\begin{array}\\
(\cos{\frac{a}{n^3}})^{n^3}
&\approx (1-\frac{a^2}{2n^6})^{n^3}\\
&= ((1-\frac{a^2}{2n^6})^{n^6})^{1/n^3}\\
&\approx (e^{-a^2/2})^{1/n^3}\\... |
25,372 | Just loaded Ubuntu 10.10 and loaded all updates on a hard drive by itself (without Windows). Would like to change the time for the system to shut down automatically from 60 seconds to 5 seconds, thus just hitting the shutdown icon once and in 5 seconds the system would shut down or give me just enough time to hit the r... | 2011/02/09 | [
"https://askubuntu.com/questions/25372",
"https://askubuntu.com",
"https://askubuntu.com/users/10485/"
] | There is currently no way to do this without editing and compiling the source code. You can, however, shut down immediately through the CLI using the command `sudo shutdown -h now`. | Open dialogs:
`Ctrl` + `Alt` + `Del` → `/usr/lib/indicator-session/gtk-logout-helper --logout`
`/usr/lib/indicator-session/gtk-logout-helper --shutdown`
`/usr/lib/indicator-session/gtk-logout-helper --restart`
Create your own Shortcuts, e.g. `Ctrl` + `Alt` + `End` for shutdown.
Source: [ubuntuusers.de](http://foru... |
25,372 | Just loaded Ubuntu 10.10 and loaded all updates on a hard drive by itself (without Windows). Would like to change the time for the system to shut down automatically from 60 seconds to 5 seconds, thus just hitting the shutdown icon once and in 5 seconds the system would shut down or give me just enough time to hit the r... | 2011/02/09 | [
"https://askubuntu.com/questions/25372",
"https://askubuntu.com",
"https://askubuntu.com/users/10485/"
] | There's no way to configure the timeout currently, and in fact the timeout has been removed. But there is a couple of wishlist bugs to add it back and make it configurable that you might be interested in commenting on:
<https://bugs.launchpad.net/indicator-session/+bug/623804>
and
<https://bugs.launchpad.net/indicat... | Open dialogs:
`Ctrl` + `Alt` + `Del` → `/usr/lib/indicator-session/gtk-logout-helper --logout`
`/usr/lib/indicator-session/gtk-logout-helper --shutdown`
`/usr/lib/indicator-session/gtk-logout-helper --restart`
Create your own Shortcuts, e.g. `Ctrl` + `Alt` + `End` for shutdown.
Source: [ubuntuusers.de](http://foru... |
13,230,112 | How to drag row from one table to another table in jsp? | 2012/11/05 | [
"https://Stackoverflow.com/questions/13230112",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1799604/"
] | [HTML5](http://www.w3schools.com/html/html5_intro.asp) is way forward to achieve [drag-drop](http://www.w3schools.com/html/html5_draganddrop.asp) using javascript, here are some links to help you get started with it:
1. [HTML5 Drag-drop Basics](http://www.html5rocks.com/en/tutorials/dnd/basics/)
2. [HTML5 drag-drop de... | You can use javascript library to implement it. See [this](http://www.isocra.com/2007/07/dragging-and-dropping-table-rows-in-javascript/) |
16,706 | In Judith in Vulgate, why does Jerome transliterate the name "Arphaxad" with 'ph', but he transliterates "Holofernes" with an 'f'?
By the time of Jerome, both 'f' and 'ph' were the same sound, the English /f/, right? And Greek letter φ was pronounced /f/ as well at the time, right?
Regardless, they were arguably the ... | 2021/08/24 | [
"https://latin.stackexchange.com/questions/16706",
"https://latin.stackexchange.com",
"https://latin.stackexchange.com/users/8533/"
] | ### Both of these names are older than the Book of Judith, and come from different places.
*Arphaxad* is a transcription of Hebrew אַרְפַּכְשַׁד (*ʔarpakšad*), which appears in Genesis: a minor character who's only mentioned in genealogies.
*Holofernes*, on the other hand, is the Persian name of a Cappadocian ruler m... | One possible avenue is that Jerome is hearing a difference in the original Hebrew/Aramaic. In Hebrew, Arphaxad is spelled אַרְפַּכְשַׁד. The פַּ has a dagesh, which means that it is pronounced as a bilabial plosive, *p*. With Judith, [Jerome says](https://www.tertullian.org/fathers/jerome_preface_judith.htm#4) he is tr... |
16,706 | In Judith in Vulgate, why does Jerome transliterate the name "Arphaxad" with 'ph', but he transliterates "Holofernes" with an 'f'?
By the time of Jerome, both 'f' and 'ph' were the same sound, the English /f/, right? And Greek letter φ was pronounced /f/ as well at the time, right?
Regardless, they were arguably the ... | 2021/08/24 | [
"https://latin.stackexchange.com/questions/16706",
"https://latin.stackexchange.com",
"https://latin.stackexchange.com/users/8533/"
] | ### Both of these names are older than the Book of Judith, and come from different places.
*Arphaxad* is a transcription of Hebrew אַרְפַּכְשַׁד (*ʔarpakšad*), which appears in Genesis: a minor character who's only mentioned in genealogies.
*Holofernes*, on the other hand, is the Persian name of a Cappadocian ruler m... | The answers provided by cmw and Draconis are very learned, but I'm not sure they explain the inconsistent ways of transliterating Phi in the Vulgate. Here is why.
1. Different editions of the Vulgate transliterate Phi in different ways. For example, the Clementine edition has *Arphaxad* and *Holofernes*, which is what... |
16,706 | In Judith in Vulgate, why does Jerome transliterate the name "Arphaxad" with 'ph', but he transliterates "Holofernes" with an 'f'?
By the time of Jerome, both 'f' and 'ph' were the same sound, the English /f/, right? And Greek letter φ was pronounced /f/ as well at the time, right?
Regardless, they were arguably the ... | 2021/08/24 | [
"https://latin.stackexchange.com/questions/16706",
"https://latin.stackexchange.com",
"https://latin.stackexchange.com/users/8533/"
] | One possible avenue is that Jerome is hearing a difference in the original Hebrew/Aramaic. In Hebrew, Arphaxad is spelled אַרְפַּכְשַׁד. The פַּ has a dagesh, which means that it is pronounced as a bilabial plosive, *p*. With Judith, [Jerome says](https://www.tertullian.org/fathers/jerome_preface_judith.htm#4) he is tr... | The answers provided by cmw and Draconis are very learned, but I'm not sure they explain the inconsistent ways of transliterating Phi in the Vulgate. Here is why.
1. Different editions of the Vulgate transliterate Phi in different ways. For example, the Clementine edition has *Arphaxad* and *Holofernes*, which is what... |
43,117,724 | I am developing an admin panel where we can determine which `stored procedures` and `views` can be called in **Oracle 12c** schemas, from services in our micro-services platform.
The services must know which parameters a procedure needs, and which columns a view has available, in order to call them.
I the admin pan... | 2017/03/30 | [
"https://Stackoverflow.com/questions/43117724",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1062933/"
] | I believe your are looking for something like this.
```
SELECT *
FROM SYS.DBA_PROCEDURES
WHERE OBJECT_TYPE = 'PROCEDURE'
AND OBJECT_NAME = 'xxxx'
```
Once you have that, you can get the parameters from something like this.
```
SELECT *
FROM SYS.ALL_ARGUMENTS
where object_name = 'procedure_name';
`... | This can be used for views (I used USER\_... metadata views, but you can use DBA\_... depending of user grants):
```
SELECT A.TABLE_NAME, A.COLUMN_NAME, A.DATA_TYPE
FROM USER_TAB_COLUMNS A
INNER JOIN USER_VIEWS B ON A.TABLE_NAME = B.VIEW_NAME
/* WHERE A.TABLE_NAME = 'xxxx' */
ORDER BY TABLE_NAME, COLUMN_ID;
``` |
46,087,234 | The `<span> + </span>` is added outside of the `<a></a>` tag, how can I make the `<span>` show inside the tag?
In this way:
```
<a>about us <span>+</span></a>
```
**My code:**
```js
jQuery(document).ready(function ($) {
$('.accord ul li:has(ul)').addClass('expand').find('ul').hide();
$('.accord ul li.expand>... | 2017/09/07 | [
"https://Stackoverflow.com/questions/46087234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Here you go with a solution
```js
$(document).ready(function ($) {
$('.accord ul li:has(ul)').addClass('expand').find('ul').hide();
$('.accord ul li.expand>a').append('<span> + </span>');
$('.accord ul').on('click', 'li.collapse a span ', function (e) {
$(this).text(' + ').closest('li').addClass('expand... | Try using .append() function instead of .after().
[Append documentation](https://www.w3schools.com/jquery/html_append.asp) |
46,087,234 | The `<span> + </span>` is added outside of the `<a></a>` tag, how can I make the `<span>` show inside the tag?
In this way:
```
<a>about us <span>+</span></a>
```
**My code:**
```js
jQuery(document).ready(function ($) {
$('.accord ul li:has(ul)').addClass('expand').find('ul').hide();
$('.accord ul li.expand>... | 2017/09/07 | [
"https://Stackoverflow.com/questions/46087234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Try using .append() function instead of .after().
[Append documentation](https://www.w3schools.com/jquery/html_append.asp) | In your `jquery` replace the `after` to `append` to make the `span` add inside the `a` tag. And updated your `jquery` to make the content expand too. See below code.
```js
jQuery(document).ready(function ($) {
$('.accord ul li:has(ul)').addClass('expand').find('ul').hide();
$('.accord ul li.expand>a').append('<spa... |
46,087,234 | The `<span> + </span>` is added outside of the `<a></a>` tag, how can I make the `<span>` show inside the tag?
In this way:
```
<a>about us <span>+</span></a>
```
**My code:**
```js
jQuery(document).ready(function ($) {
$('.accord ul li:has(ul)').addClass('expand').find('ul').hide();
$('.accord ul li.expand>... | 2017/09/07 | [
"https://Stackoverflow.com/questions/46087234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Here you go with a solution
```js
$(document).ready(function ($) {
$('.accord ul li:has(ul)').addClass('expand').find('ul').hide();
$('.accord ul li.expand>a').append('<span> + </span>');
$('.accord ul').on('click', 'li.collapse a span ', function (e) {
$(this).text(' + ').closest('li').addClass('expand... | In your `jquery` replace the `after` to `append` to make the `span` add inside the `a` tag. And updated your `jquery` to make the content expand too. See below code.
```js
jQuery(document).ready(function ($) {
$('.accord ul li:has(ul)').addClass('expand').find('ul').hide();
$('.accord ul li.expand>a').append('<spa... |
68,545,022 | I have loaded a data from API and displayed here with VueJS. I have users information inside `users[]` array. I also have users with two types of plan: `basic_plan` and `standard_plan`. Currently it shows all users.
Now I want to apply filters equally to this example: <https://codepen.io/marn/pen/jeyXKL?editors=0010>
... | 2021/07/27 | [
"https://Stackoverflow.com/questions/68545022",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11795772/"
] | If you want to filter out specific users you must apply the "filter" function to the users variable like this:
`this.users.filter(...)`
With this function you then can filter the users based on their plan like this:
```
this.users.filter((user) =>
user.plan === this.selectedItems;
});
```
For a modern approach I... | Try this way instead, as you are already using `v-for` in your HTML, you can conveniently filter out users without any more loops, **if you are getting value as "basic\_plan" in the "user.plan" key.**
Also, I think that you should move your `v-for` to `<li>` tag instead of `<ul>` along with the validation on `<ul>` if... |
1,757,303 | Forgive me as I'm new to Objective C.
I am getting back dates from a .NET webservice in the /Date(xxxxxxxxxxxxx-xxxx)/ format. I'm looking for some direction on how to best parse this into an NSDate object. I've tried using dateWithTimeIntervalSince1970 on it but it comes back with a date in the year 1969 for a date ... | 2009/11/18 | [
"https://Stackoverflow.com/questions/1757303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/213517/"
] | I just wrote this for iOS 4.0+ (because it uses NSRegularExpression). It handles dates with or without timezone offsets. Seems to work pretty well, what do you think?
```
+ (NSDate *)mfDateFromDotNetJSONString:(NSString *)string {
static NSRegularExpression *dateRegEx = nil;
static dispatch_once_t onceToken;
... | As a .NET programmer learning Objective-C I had the same problem when I tried to consume a .Net WebService.
At first I thought I would be able to use the NSDateFormatter...
I found a really good reference for it's symbols [here](http://www.stepcase.com/blog/2008/12/02/format-string-for-the-iphone-nsdateformatter/), bu... |
1,757,303 | Forgive me as I'm new to Objective C.
I am getting back dates from a .NET webservice in the /Date(xxxxxxxxxxxxx-xxxx)/ format. I'm looking for some direction on how to best parse this into an NSDate object. I've tried using dateWithTimeIntervalSince1970 on it but it comes back with a date in the year 1969 for a date ... | 2009/11/18 | [
"https://Stackoverflow.com/questions/1757303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/213517/"
] | I just wrote this for iOS 4.0+ (because it uses NSRegularExpression). It handles dates with or without timezone offsets. Seems to work pretty well, what do you think?
```
+ (NSDate *)mfDateFromDotNetJSONString:(NSString *)string {
static NSRegularExpression *dateRegEx = nil;
static dispatch_once_t onceToken;
... | Use an [`NSDateFormatter`](http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Classes/NSDateFormatter_Class/Reference/Reference.html)'s [`dateFromString:`](http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Classes/NSDateFormatter_Class/Reference/Reference.html#... |
1,757,303 | Forgive me as I'm new to Objective C.
I am getting back dates from a .NET webservice in the /Date(xxxxxxxxxxxxx-xxxx)/ format. I'm looking for some direction on how to best parse this into an NSDate object. I've tried using dateWithTimeIntervalSince1970 on it but it comes back with a date in the year 1969 for a date ... | 2009/11/18 | [
"https://Stackoverflow.com/questions/1757303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/213517/"
] | I just wrote this for iOS 4.0+ (because it uses NSRegularExpression). It handles dates with or without timezone offsets. Seems to work pretty well, what do you think?
```
+ (NSDate *)mfDateFromDotNetJSONString:(NSString *)string {
static NSRegularExpression *dateRegEx = nil;
static dispatch_once_t onceToken;
... | I actually found the snippet with NSRegularExpression pretty useful, till i came up with another solution that uses NSCharecterSet for stipping off the milliseconds.
```
+ (NSDate*) dateFromJSONString:(NSString *)dateString
{
NSCharacterSet *charactersToRemove = [[ NSCharacterSet decimalDigitCharacterSet ] inverte... |
1,757,303 | Forgive me as I'm new to Objective C.
I am getting back dates from a .NET webservice in the /Date(xxxxxxxxxxxxx-xxxx)/ format. I'm looking for some direction on how to best parse this into an NSDate object. I've tried using dateWithTimeIntervalSince1970 on it but it comes back with a date in the year 1969 for a date ... | 2009/11/18 | [
"https://Stackoverflow.com/questions/1757303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/213517/"
] | As a .NET programmer learning Objective-C I had the same problem when I tried to consume a .Net WebService.
At first I thought I would be able to use the NSDateFormatter...
I found a really good reference for it's symbols [here](http://www.stepcase.com/blog/2008/12/02/format-string-for-the-iphone-nsdateformatter/), bu... | Use an [`NSDateFormatter`](http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Classes/NSDateFormatter_Class/Reference/Reference.html)'s [`dateFromString:`](http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Classes/NSDateFormatter_Class/Reference/Reference.html#... |
1,757,303 | Forgive me as I'm new to Objective C.
I am getting back dates from a .NET webservice in the /Date(xxxxxxxxxxxxx-xxxx)/ format. I'm looking for some direction on how to best parse this into an NSDate object. I've tried using dateWithTimeIntervalSince1970 on it but it comes back with a date in the year 1969 for a date ... | 2009/11/18 | [
"https://Stackoverflow.com/questions/1757303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/213517/"
] | I was in the same boat whilst using json-framework which doesn't support the date format as it's not official JSON. My source is from an API built using JSON.Net. This is what I came up with:
```
- (NSDate*) getDateFromJSON:(NSString *)dateString
{
// Expect date in this format "/Date(1268123281843)/"
int star... | -(NSString\*)convertToUTCTime:(NSString\*)strDate{
```
NSDate *currentDate = [NSDate date];
myDate = [commonDateFormatter dateFromString: strDate];
NSTimeInterval distanceBetweenDates = [currentDate timeIntervalSinceDate:myDate];
return [self stringFromTimeInterval:distanceBetweenDates];
```
}
- (NSString \*)stringF... |
1,757,303 | Forgive me as I'm new to Objective C.
I am getting back dates from a .NET webservice in the /Date(xxxxxxxxxxxxx-xxxx)/ format. I'm looking for some direction on how to best parse this into an NSDate object. I've tried using dateWithTimeIntervalSince1970 on it but it comes back with a date in the year 1969 for a date ... | 2009/11/18 | [
"https://Stackoverflow.com/questions/1757303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/213517/"
] | I just wrote this for iOS 4.0+ (because it uses NSRegularExpression). It handles dates with or without timezone offsets. Seems to work pretty well, what do you think?
```
+ (NSDate *)mfDateFromDotNetJSONString:(NSString *)string {
static NSRegularExpression *dateRegEx = nil;
static dispatch_once_t onceToken;
... | Theory: MS encoded the C# DateTime in JSON as milliseconds since 1970.
Solution:
```
NSString*
dateAsString = @"/Date(1353720343336+0000)/";
dateAsString = [dateAsString stringByReplacingOccurrencesOfString:@"/Date("
withString:@""];
dateAsString ... |
1,757,303 | Forgive me as I'm new to Objective C.
I am getting back dates from a .NET webservice in the /Date(xxxxxxxxxxxxx-xxxx)/ format. I'm looking for some direction on how to best parse this into an NSDate object. I've tried using dateWithTimeIntervalSince1970 on it but it comes back with a date in the year 1969 for a date ... | 2009/11/18 | [
"https://Stackoverflow.com/questions/1757303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/213517/"
] | Theory: MS encoded the C# DateTime in JSON as milliseconds since 1970.
Solution:
```
NSString*
dateAsString = @"/Date(1353720343336+0000)/";
dateAsString = [dateAsString stringByReplacingOccurrencesOfString:@"/Date("
withString:@""];
dateAsString ... | -(NSString\*)convertToUTCTime:(NSString\*)strDate{
```
NSDate *currentDate = [NSDate date];
myDate = [commonDateFormatter dateFromString: strDate];
NSTimeInterval distanceBetweenDates = [currentDate timeIntervalSinceDate:myDate];
return [self stringFromTimeInterval:distanceBetweenDates];
```
}
- (NSString \*)stringF... |
1,757,303 | Forgive me as I'm new to Objective C.
I am getting back dates from a .NET webservice in the /Date(xxxxxxxxxxxxx-xxxx)/ format. I'm looking for some direction on how to best parse this into an NSDate object. I've tried using dateWithTimeIntervalSince1970 on it but it comes back with a date in the year 1969 for a date ... | 2009/11/18 | [
"https://Stackoverflow.com/questions/1757303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/213517/"
] | I just wrote this for iOS 4.0+ (because it uses NSRegularExpression). It handles dates with or without timezone offsets. Seems to work pretty well, what do you think?
```
+ (NSDate *)mfDateFromDotNetJSONString:(NSString *)string {
static NSRegularExpression *dateRegEx = nil;
static dispatch_once_t onceToken;
... | -(NSString\*)convertToUTCTime:(NSString\*)strDate{
```
NSDate *currentDate = [NSDate date];
myDate = [commonDateFormatter dateFromString: strDate];
NSTimeInterval distanceBetweenDates = [currentDate timeIntervalSinceDate:myDate];
return [self stringFromTimeInterval:distanceBetweenDates];
```
}
- (NSString \*)stringF... |
1,757,303 | Forgive me as I'm new to Objective C.
I am getting back dates from a .NET webservice in the /Date(xxxxxxxxxxxxx-xxxx)/ format. I'm looking for some direction on how to best parse this into an NSDate object. I've tried using dateWithTimeIntervalSince1970 on it but it comes back with a date in the year 1969 for a date ... | 2009/11/18 | [
"https://Stackoverflow.com/questions/1757303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/213517/"
] | As a .NET programmer learning Objective-C I had the same problem when I tried to consume a .Net WebService.
At first I thought I would be able to use the NSDateFormatter...
I found a really good reference for it's symbols [here](http://www.stepcase.com/blog/2008/12/02/format-string-for-the-iphone-nsdateformatter/), bu... | Theory: MS encoded the C# DateTime in JSON as milliseconds since 1970.
Solution:
```
NSString*
dateAsString = @"/Date(1353720343336+0000)/";
dateAsString = [dateAsString stringByReplacingOccurrencesOfString:@"/Date("
withString:@""];
dateAsString ... |
1,757,303 | Forgive me as I'm new to Objective C.
I am getting back dates from a .NET webservice in the /Date(xxxxxxxxxxxxx-xxxx)/ format. I'm looking for some direction on how to best parse this into an NSDate object. I've tried using dateWithTimeIntervalSince1970 on it but it comes back with a date in the year 1969 for a date ... | 2009/11/18 | [
"https://Stackoverflow.com/questions/1757303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/213517/"
] | As a .NET programmer learning Objective-C I had the same problem when I tried to consume a .Net WebService.
At first I thought I would be able to use the NSDateFormatter...
I found a really good reference for it's symbols [here](http://www.stepcase.com/blog/2008/12/02/format-string-for-the-iphone-nsdateformatter/), bu... | -(NSString\*)convertToUTCTime:(NSString\*)strDate{
```
NSDate *currentDate = [NSDate date];
myDate = [commonDateFormatter dateFromString: strDate];
NSTimeInterval distanceBetweenDates = [currentDate timeIntervalSinceDate:myDate];
return [self stringFromTimeInterval:distanceBetweenDates];
```
}
- (NSString \*)stringF... |
36,814,390 | I have a simple `TopbarComponent` which basically adds a bootstrapish navbar at the top of my view.
Since 90% of my templates should have this directive included, i want to handle it through my `app.component` which looks like this:
```
import ...;
@Component({
selector: 'my-app',
templateUrl: 'app/app.comp... | 2016/04/23 | [
"https://Stackoverflow.com/questions/36814390",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1114201/"
] | I've crashed my head on a similar problem for a while.
The solution that i've found could be seen as tricky at first, but can resolve many similar problems of this type for me in the future.
Basically, you have to make the `router-outlet` emit an event on route change, having your `AppComponent` listening to that cus... | I'm working in
```
"@angular/common": "~2.1.0"
```
The way that I solved this issue was to created an application-wide data object `global` and a service for it `GlobalService`. Any component can `subscribe()` to all or part of the global object. For your purposes, you should create a boolean property `isTopBar: tr... |
36,814,390 | I have a simple `TopbarComponent` which basically adds a bootstrapish navbar at the top of my view.
Since 90% of my templates should have this directive included, i want to handle it through my `app.component` which looks like this:
```
import ...;
@Component({
selector: 'my-app',
templateUrl: 'app/app.comp... | 2016/04/23 | [
"https://Stackoverflow.com/questions/36814390",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1114201/"
] | Almost there, try this
**Template**
```ts
<my-topbar *ngIf="shouldShowTopbar()">
</my-topbar>
```
**App Component**
```ts
export class AppComponent implements OnInit{
hideWhen: Array<string> = ['Login', 'Help', 'SomeOtherRoute'];
// put all the route names where you want it hidden in above array
c... | This is probably not the right way to do it at all, but it worked for me. It's not changing the visibility depending on the route itself, but on the Component shown in that route.
I was already using a service to feed the Navigation Bar with all the sections, and so on, so I thought it could also tell the navigation ... |
36,814,390 | I have a simple `TopbarComponent` which basically adds a bootstrapish navbar at the top of my view.
Since 90% of my templates should have this directive included, i want to handle it through my `app.component` which looks like this:
```
import ...;
@Component({
selector: 'my-app',
templateUrl: 'app/app.comp... | 2016/04/23 | [
"https://Stackoverflow.com/questions/36814390",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1114201/"
] | I've crashed my head on a similar problem for a while.
The solution that i've found could be seen as tricky at first, but can resolve many similar problems of this type for me in the future.
Basically, you have to make the `router-outlet` emit an event on route change, having your `AppComponent` listening to that cus... | Not sure if it is the right way, but you can add any data in the `data` parameter of the [`@RouteConfig()`](https://angular.io/docs/ts/latest/api/router/RouteConfig-decorator.html) object. For instance you can place in the [`RouteDefinition`](https://angular.io/docs/ts/latest/api/router/RouteDefinition-interface.html) ... |
36,814,390 | I have a simple `TopbarComponent` which basically adds a bootstrapish navbar at the top of my view.
Since 90% of my templates should have this directive included, i want to handle it through my `app.component` which looks like this:
```
import ...;
@Component({
selector: 'my-app',
templateUrl: 'app/app.comp... | 2016/04/23 | [
"https://Stackoverflow.com/questions/36814390",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1114201/"
] | I've crashed my head on a similar problem for a while.
The solution that i've found could be seen as tricky at first, but can resolve many similar problems of this type for me in the future.
Basically, you have to make the `router-outlet` emit an event on route change, having your `AppComponent` listening to that cus... | This is probably not the right way to do it at all, but it worked for me. It's not changing the visibility depending on the route itself, but on the Component shown in that route.
I was already using a service to feed the Navigation Bar with all the sections, and so on, so I thought it could also tell the navigation ... |
36,814,390 | I have a simple `TopbarComponent` which basically adds a bootstrapish navbar at the top of my view.
Since 90% of my templates should have this directive included, i want to handle it through my `app.component` which looks like this:
```
import ...;
@Component({
selector: 'my-app',
templateUrl: 'app/app.comp... | 2016/04/23 | [
"https://Stackoverflow.com/questions/36814390",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1114201/"
] | I've crashed my head on a similar problem for a while.
The solution that i've found could be seen as tricky at first, but can resolve many similar problems of this type for me in the future.
Basically, you have to make the `router-outlet` emit an event on route change, having your `AppComponent` listening to that cus... | Almost there, try this
**Template**
```ts
<my-topbar *ngIf="shouldShowTopbar()">
</my-topbar>
```
**App Component**
```ts
export class AppComponent implements OnInit{
hideWhen: Array<string> = ['Login', 'Help', 'SomeOtherRoute'];
// put all the route names where you want it hidden in above array
c... |
36,814,390 | I have a simple `TopbarComponent` which basically adds a bootstrapish navbar at the top of my view.
Since 90% of my templates should have this directive included, i want to handle it through my `app.component` which looks like this:
```
import ...;
@Component({
selector: 'my-app',
templateUrl: 'app/app.comp... | 2016/04/23 | [
"https://Stackoverflow.com/questions/36814390",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1114201/"
] | I've crashed my head on a similar problem for a while.
The solution that i've found could be seen as tricky at first, but can resolve many similar problems of this type for me in the future.
Basically, you have to make the `router-outlet` emit an event on route change, having your `AppComponent` listening to that cus... | I has a similar problem. Maybe this is not the best way. But I solved it this way:
I created a new component. This component handles all the routes that need the navbar. The other routes are handled by `app.component`.
Here is some code to understand:
`app.component`
```
@RouteConfig([
{
path: '/...',
name... |
36,814,390 | I have a simple `TopbarComponent` which basically adds a bootstrapish navbar at the top of my view.
Since 90% of my templates should have this directive included, i want to handle it through my `app.component` which looks like this:
```
import ...;
@Component({
selector: 'my-app',
templateUrl: 'app/app.comp... | 2016/04/23 | [
"https://Stackoverflow.com/questions/36814390",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1114201/"
] | Not sure if it is the right way, but you can add any data in the `data` parameter of the [`@RouteConfig()`](https://angular.io/docs/ts/latest/api/router/RouteConfig-decorator.html) object. For instance you can place in the [`RouteDefinition`](https://angular.io/docs/ts/latest/api/router/RouteDefinition-interface.html) ... | I'm working in
```
"@angular/common": "~2.1.0"
```
The way that I solved this issue was to created an application-wide data object `global` and a service for it `GlobalService`. Any component can `subscribe()` to all or part of the global object. For your purposes, you should create a boolean property `isTopBar: tr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.