qid
int64
1
74.7M
question
stringlengths
15
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
4
30.2k
response_k
stringlengths
11
36.5k
26,219
It seems that about 2 weeks ago, Gmail began *always* opening a new tab (in Chrome at least) *every* time I switch Accounts. Previously it only opened new tabs when I logged into a new account, but if I closed down to 1 tab, and switched between accounts, I could stay in the same tab. Does anyone know of a setting in...
2012/04/27
[ "https://webapps.stackexchange.com/questions/26219", "https://webapps.stackexchange.com", "https://webapps.stackexchange.com/users/662/" ]
I don't know if this is what you need, but you can drag the "Add Account" Button to your address bar, works for me on Firefox.
I got it, I just solved the issue. You have to switch with the profile icon on the webpage itself instead of the button on the browser task bar (the icon next to the 3 dots icon).
36,781,384
In SQL Server I am joining 2 tables and need a way to get the maximum or greatest (version Number) value for each (Record ID) that exists in the table including it's row data selected. My query is returning the data as follows but returns ALL record id's and versions, I need this to return only the max version number ...
2016/04/21
[ "https://Stackoverflow.com/questions/36781384", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5561275/" ]
Dockerfiles are for creating images. I see gosu as more useful as part of a container initialization when you can no longer change users between run commands in your Dockerfile. After the image is created, something like gosu allows you to drop root permissions at the end of your entrypoint inside of a container. You ...
I am using gosu and entrypoint.sh because I want the user in the container to have the same UID as the user that created the container. [Docker Volumes and Permissions.](https://denibertovic.com/posts/handling-permissions-with-docker-volumes/) The purpose of the container I am creating is for development. I need to b...
36,781,384
In SQL Server I am joining 2 tables and need a way to get the maximum or greatest (version Number) value for each (Record ID) that exists in the table including it's row data selected. My query is returning the data as follows but returns ALL record id's and versions, I need this to return only the max version number ...
2016/04/21
[ "https://Stackoverflow.com/questions/36781384", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5561275/" ]
I am using gosu and entrypoint.sh because I want the user in the container to have the same UID as the user that created the container. [Docker Volumes and Permissions.](https://denibertovic.com/posts/handling-permissions-with-docker-volumes/) The purpose of the container I am creating is for development. I need to b...
Advantage of using `gosu` is also signal handling. You may `trap` for instance `SIGHUP` for reloading the process as you would normally achieve via `systemctl reload <process>` or such.
36,781,384
In SQL Server I am joining 2 tables and need a way to get the maximum or greatest (version Number) value for each (Record ID) that exists in the table including it's row data selected. My query is returning the data as follows but returns ALL record id's and versions, I need this to return only the max version number ...
2016/04/21
[ "https://Stackoverflow.com/questions/36781384", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5561275/" ]
Dockerfiles are for creating images. I see gosu as more useful as part of a container initialization when you can no longer change users between run commands in your Dockerfile. After the image is created, something like gosu allows you to drop root permissions at the end of your entrypoint inside of a container. You ...
Advantage of using `gosu` is also signal handling. You may `trap` for instance `SIGHUP` for reloading the process as you would normally achieve via `systemctl reload <process>` or such.
45,210,969
I'm trying to understand an existing piece of code written implementing generics, so it sets up a generic dictionary and then adds items to the dictionary with the key being the type and the value a delegate ``` private readonly Dictionary<Type, Func<actionType, Task>> requestedActions; private void AddAction<T>(Func...
2017/07/20
[ "https://Stackoverflow.com/questions/45210969", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4433801/" ]
The Generic example lets you dynamically add handlers (during runtime), while the switch statement is basically "baked" into the code. This is the primary example of why I can come up with. Also the Generic example looks fancy.
It's hard to tell which approach is better without knowing the use scenario but with the initial example you'll be able to pull in and serialize the data from the Database without having to hassle with adding switch statement every time you introduce a new action. Looks to be saving dev time through the use of Generics...
45,210,969
I'm trying to understand an existing piece of code written implementing generics, so it sets up a generic dictionary and then adds items to the dictionary with the key being the type and the value a delegate ``` private readonly Dictionary<Type, Func<actionType, Task>> requestedActions; private void AddAction<T>(Func...
2017/07/20
[ "https://Stackoverflow.com/questions/45210969", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4433801/" ]
The Generic example lets you dynamically add handlers (during runtime), while the switch statement is basically "baked" into the code. This is the primary example of why I can come up with. Also the Generic example looks fancy.
While you are using as example generic data structure (dictionary), this problem is related to polymorphism not generics. As you've been already told, switch is bad, because you must modify this piece of code if you want to add another case. Switch is usually code smell, indicating polymorphism should be used. Using ...
4,624,341
I'm making an MVC2 app to manage billing schemes. These billing schemes can be of various types, e.g. daily, weekly, monthly, etc. and all types have their specific properties. My class structure looks like this: ``` public abstract class BillingScheme { /* basic billing scheme properties */ } public class BillingSche...
2011/01/07
[ "https://Stackoverflow.com/questions/4624341", "https://Stackoverflow.com", "https://Stackoverflow.com/users/403465/" ]
You may take a look at [AutoMapper](http://automapper.codeplex.com/).
Ideally when converting from Models to ViewModels you'll have a seperate converter class. In our MVC projects we have two types of converter, `IConverter<TFrom,TTo>` defining a `Convert` method, and `ITwoWayConverter<TFrom,TTo>` defining `ConvertTo` and `ConvertFrom` methods. We then inject our converters into the ne...
1,989,971
In problems where I have to find the limit of a given sequence example **$\lim\_{n→∞}1 \big(\frac{1}{1·2}+\frac{1}{2·3}+ . . .+\frac{1}{n·(n + 1)}\big)$** how can i find what that sequence equals to in order to solve the limit? or example find the limit of **$\lim\_{n→∞}1 \big(\frac{1}{(4·5)} + \frac{1}{(5·6)} ...
2016/10/29
[ "https://math.stackexchange.com/questions/1989971", "https://math.stackexchange.com", "https://math.stackexchange.com/users/383809/" ]
Hint: Observe \begin{align} \frac{1}{n(n+1)} = \frac{1}{n}-\frac{1}{n+1} \end{align}
There is no general algorithm. But, the example you gave, it is a series of type $$\dfrac{1}{(a+d)(a+2d)}+\dfrac{1}{(a+2d)(a+3d)}...+\dfrac{1}{(a+(n-2)d)(a+(n-1)d)}$$ You can sum this series by making it a telescoping sum, and then compute the limit.
73,120
[Statistical closeness implies computational indistinguishability](https://crypto.stackexchange.com/q/73108/23115) was recently posed. It revolves around a numeric value $\Delta(n)$ of the statistical difference between a pair of distribution ensembles, as:- $$ \Delta(n) = 1/2 \sum\_{\alpha}|\mathbb{P}[X\_n = \alpha] ...
2019/09/06
[ "https://crypto.stackexchange.com/questions/73120", "https://crypto.stackexchange.com", "https://crypto.stackexchange.com/users/23115/" ]
What we call "statistical distance" in cryptography is called [total variation distance](https://en.wikipedia.org/wiki/Total_variation_distance_of_probability_measures) by statisticians. So it certainly exists outside of cryptography. I can't speak to its applications within statistics. But it certainly is the most n...
In the cryptographic context, the $\Delta(X;Y)$ formula(i.e the statistical distance) seems to be the most 'natural' because of the way we define security in terms of a distinguishing advantage. i.e $$\Delta^D(X;Y) = |Pr^{DY}[D(Y) = 1] - Pr^{DX}[D(X) = 1]$$. As mentioned here [here](https://crypto.stackexchange.com/a/...
7,568,479
I know that similar questions have been asked in the past but I can't seem to get this working at all even with the suggestions. I get the above abend on the "show()" command. ``` public void onCreate(Bundle savedInstanceState) { try{ super.onCreate(savedInstanceState); setContentView(R.layout.submitsco...
2011/09/27
[ "https://Stackoverflow.com/questions/7568479", "https://Stackoverflow.com", "https://Stackoverflow.com/users/648746/" ]
Substitude the following line: ``` whatToUploadDialog.setContentView(R.layout.submitscoreprompt); ``` with: ``` whatToUploadDialog.setView(R.layout.submitscoreprompt); ```
Try calling ``` .setTitle(R.string.uploadedScoreTitle); ``` before ``` .setContentView(R.layout.submitscoreprompt); ```
7,568,479
I know that similar questions have been asked in the past but I can't seem to get this working at all even with the suggestions. I get the above abend on the "show()" command. ``` public void onCreate(Bundle savedInstanceState) { try{ super.onCreate(savedInstanceState); setContentView(R.layout.submitsco...
2011/09/27
[ "https://Stackoverflow.com/questions/7568479", "https://Stackoverflow.com", "https://Stackoverflow.com/users/648746/" ]
I experienced the same problem. I found that the problem only occurs if I do both of the following things: * I don't use activity managed dialogs (`activity.showDialog()` -> `activity.onCreateDialog()`/`onPrepareDialog()`) * I do `dialog.findViewById()` (and this is indeed the line difference between success or the re...
Try calling ``` .setTitle(R.string.uploadedScoreTitle); ``` before ``` .setContentView(R.layout.submitscoreprompt); ```
7,568,479
I know that similar questions have been asked in the past but I can't seem to get this working at all even with the suggestions. I get the above abend on the "show()" command. ``` public void onCreate(Bundle savedInstanceState) { try{ super.onCreate(savedInstanceState); setContentView(R.layout.submitsco...
2011/09/27
[ "https://Stackoverflow.com/questions/7568479", "https://Stackoverflow.com", "https://Stackoverflow.com/users/648746/" ]
I experienced the same problem. I found that the problem only occurs if I do both of the following things: * I don't use activity managed dialogs (`activity.showDialog()` -> `activity.onCreateDialog()`/`onPrepareDialog()`) * I do `dialog.findViewById()` (and this is indeed the line difference between success or the re...
Substitude the following line: ``` whatToUploadDialog.setContentView(R.layout.submitscoreprompt); ``` with: ``` whatToUploadDialog.setView(R.layout.submitscoreprompt); ```
16,035,188
Assume that there is a table which is called Stack; ``` Id StackId ------------------- . . 1 10 2 12 3 10 4 10 5 11 11 5 . . . . ``` how to learn cross id like ? ``` Id = 5 StackId = 11 Id = 11 StackId ...
2013/04/16
[ "https://Stackoverflow.com/questions/16035188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1514165/" ]
Use `JOIN` to the table itself with `s1.Id = s2.StackId AND s1.StackId = s2.Id` condition: ``` SELECT s1.Id, s1.StackId FROM Stack s1 JOIN Stack s2 ON s1.Id = s2.StackId AND s1.StackId = s2.Id ``` Because `INNER JOIN` is used (it's by default) rows with no corresponding `s2` values won't be returned.
Please try: ``` select a.* from YourTable a inner join YourTable b on a.Id=b.StackId ```
16,035,188
Assume that there is a table which is called Stack; ``` Id StackId ------------------- . . 1 10 2 12 3 10 4 10 5 11 11 5 . . . . ``` how to learn cross id like ? ``` Id = 5 StackId = 11 Id = 11 StackId ...
2013/04/16
[ "https://Stackoverflow.com/questions/16035188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1514165/" ]
Use `JOIN` to the table itself with `s1.Id = s2.StackId AND s1.StackId = s2.Id` condition: ``` SELECT s1.Id, s1.StackId FROM Stack s1 JOIN Stack s2 ON s1.Id = s2.StackId AND s1.StackId = s2.Id ``` Because `INNER JOIN` is used (it's by default) rows with no corresponding `s2` values won't be returned.
Another solution: ``` select * from Stack s where exists (select 1 from Stack where Id = s.StackId and StackId = s.Id) ```
16,035,188
Assume that there is a table which is called Stack; ``` Id StackId ------------------- . . 1 10 2 12 3 10 4 10 5 11 11 5 . . . . ``` how to learn cross id like ? ``` Id = 5 StackId = 11 Id = 11 StackId ...
2013/04/16
[ "https://Stackoverflow.com/questions/16035188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1514165/" ]
You can approach this with aggregation as well as a join. Here is one method: ``` select (case when id < StackId then id else StackId end) as FirstVal, (case when id < StackId then StackId else id end) as SecondVal from t group by (case when id < StackId then id else StackId end), (case when id < Stack...
Please try: ``` select a.* from YourTable a inner join YourTable b on a.Id=b.StackId ```
16,035,188
Assume that there is a table which is called Stack; ``` Id StackId ------------------- . . 1 10 2 12 3 10 4 10 5 11 11 5 . . . . ``` how to learn cross id like ? ``` Id = 5 StackId = 11 Id = 11 StackId ...
2013/04/16
[ "https://Stackoverflow.com/questions/16035188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1514165/" ]
You can approach this with aggregation as well as a join. Here is one method: ``` select (case when id < StackId then id else StackId end) as FirstVal, (case when id < StackId then StackId else id end) as SecondVal from t group by (case when id < StackId then id else StackId end), (case when id < Stack...
Another solution: ``` select * from Stack s where exists (select 1 from Stack where Id = s.StackId and StackId = s.Id) ```
35,531,538
I need to have an absolute `div` that is a child of only `body` fill the entire document area (window + any scroll area) -- width: 100% only fills the viewable screen I prefer a CSS only solution but pure javascript is ok. I tried without success setting: ``` opaque.style.minHeight = Math.max(document.body.offsetHei...
2016/02/21
[ "https://Stackoverflow.com/questions/35531538", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1101341/" ]
Can use ``` #opaque { position: fixed; top: 0; left: 0; right:0; bottom:0; } ``` remove `width:100%` from body due to creates horizontal scrollbar Depending on use case it is often common to add class to body when using such an overlay that sets body overflow to hidden `**[DEMO](https://jsfid...
You can put a `position: relative` on your body so that the body will be used as a reference point by the child element in terms of height (as opposed to the `document` object).
35,531,538
I need to have an absolute `div` that is a child of only `body` fill the entire document area (window + any scroll area) -- width: 100% only fills the viewable screen I prefer a CSS only solution but pure javascript is ok. I tried without success setting: ``` opaque.style.minHeight = Math.max(document.body.offsetHei...
2016/02/21
[ "https://Stackoverflow.com/questions/35531538", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1101341/" ]
You can put a `position: relative` on your body so that the body will be used as a reference point by the child element in terms of height (as opposed to the `document` object).
Using javascript to set one elements height equal to anothers ``` var o = document.getElementById('opaque'); var p = document.querySelector('.page-container'); o.style.height = window.getComputedStyle(p).getPropertyValue("height"); ``` [**FIDDLE**](https://jsfiddle.net/dsxvre7t/2/)
35,531,538
I need to have an absolute `div` that is a child of only `body` fill the entire document area (window + any scroll area) -- width: 100% only fills the viewable screen I prefer a CSS only solution but pure javascript is ok. I tried without success setting: ``` opaque.style.minHeight = Math.max(document.body.offsetHei...
2016/02/21
[ "https://Stackoverflow.com/questions/35531538", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1101341/" ]
Can use ``` #opaque { position: fixed; top: 0; left: 0; right:0; bottom:0; } ``` remove `width:100%` from body due to creates horizontal scrollbar Depending on use case it is often common to add class to body when using such an overlay that sets body overflow to hidden `**[DEMO](https://jsfid...
Using javascript to set one elements height equal to anothers ``` var o = document.getElementById('opaque'); var p = document.querySelector('.page-container'); o.style.height = window.getComputedStyle(p).getPropertyValue("height"); ``` [**FIDDLE**](https://jsfiddle.net/dsxvre7t/2/)
52,727,570
Given the following code snippet from my nodejs server: ``` router.get('/page/:id', async function (req, res, next) { var id = req.params.id; if ( typeof req.params.id === "number"){id = parseInt(id);} res.render('page.ejs' , { vara:a , varb:b }); }); ``` I want to do exactly what I'm doing in the nodejs server...
2018/10/09
[ "https://Stackoverflow.com/questions/52727570", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9581773/" ]
The `gethostbyname()` and `gethostbyaddr()` functions are deprecated on most platforms, and they don't implement support for IPv6. IPv4 has reached its limits, the world has been moving to IPv6 for awhile now. Use `getaddrinfo()` and `getnameinfo()` instead, respectively. To answer your questions: A. `getaddrinfo()` ...
I've always used [gethostbyname()](https://linux.die.net/man/3/gethostbyname) since "forever". It's always worked, it continues to work, and it's "simpler". [getaddrinfo()](http://man7.org/linux/man-pages/man3/getaddrinfo.3.html) is the newer function: > > <http://man7.org/linux/man-pages/man3/getaddrinfo.3.html> > ...
17,085,277
Is there an easy way to lock all files in directory for svn. As I know we cannot lock all directory?
2013/06/13
[ "https://Stackoverflow.com/questions/17085277", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1960347/" ]
You need a different syntax, as per [the documentation](http://api.jquery.com/on/): ``` $('body').on('click', 'button.btn_change_status', function(e) { alert(e.target.id); return false; }); ```
Use the following syntax for [**.on()**](http://api.jquery.com/on/) ``` $(document).on('click','btn_change_status', function(e) { //write your code here }); ```
17,085,277
Is there an easy way to lock all files in directory for svn. As I know we cannot lock all directory?
2013/06/13
[ "https://Stackoverflow.com/questions/17085277", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1960347/" ]
Update your css with the following. I'm assuming you don't need mouse events on your icon. ``` .icon-eye-open { pointer-events:none; } ``` [MDN Information regarding pointer-events](https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events)
Use the following syntax for [**.on()**](http://api.jquery.com/on/) ``` $(document).on('click','btn_change_status', function(e) { //write your code here }); ```
46,642,184
I have a code where im looping through hosts list and appending connections to connections list, if there is a connection error, i want to skip that and continue with the next host in the hosts list. Heres what i have now: ``` def do_connect(self): """Connect to all hosts in the hosts list""" for host in self...
2017/10/09
[ "https://Stackoverflow.com/questions/46642184", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7943938/" ]
Your own answer is still wrong on quite a few points... ``` import logging logger = logging.getLogger(__name__) def do_connect(self): """Connect to all hosts in the hosts list""" for host in self.hosts: # this one has to go outside the try/except block # else `client` might not be defined. ...
Ok, got it working, i needed to add the Continue, mentioned by Mark and also the previous if check inside finally was always returning true so that was fixed aswell. Here is the fixed code, that doesnt add failed connections and continues the loop normally after that: ``` def do_connect(self): """Connect to all h...
83,033
How do I season an antique cast iron cider press that I just bought? It is substantially bigger than any stove, oven, or grill that I own, at about 48" diameter. I'd consider other food-safe finishes too, but seasoning seems the obvious choice given that it is cast iron.
2017/07/17
[ "https://cooking.stackexchange.com/questions/83033", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/751/" ]
I would not heat up a large cast iron press - too much to go wrong there, little benefit. You are not frying on the thing. Clean any oil/rust that's on it, dry carefully, oil it with mineral oil or wax it with beeswax (or paraffin wax, but beeswax will probably stick better,) use it, clean it up well, dry very careful...
I expect that the "[Open Fire](http://americanskilletcompany.com/use-care/re-seasoning/)" method (the second technique in the linked article) may be your best bet. Create a fire pit large enough to meet your needs. Make sure you allow for enough room around where you will place your device to allow the fire to proper...
83,033
How do I season an antique cast iron cider press that I just bought? It is substantially bigger than any stove, oven, or grill that I own, at about 48" diameter. I'd consider other food-safe finishes too, but seasoning seems the obvious choice given that it is cast iron.
2017/07/17
[ "https://cooking.stackexchange.com/questions/83033", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/751/" ]
I expect that the "[Open Fire](http://americanskilletcompany.com/use-care/re-seasoning/)" method (the second technique in the linked article) may be your best bet. Create a fire pit large enough to meet your needs. Make sure you allow for enough room around where you will place your device to allow the fire to proper...
Tropical method for seasoning a press. Pick a day when the temperatures are likely to stay above 90°F for a good part of the day. Clean well. Place in black plastic bag. close bag. Let set in direct sunlight for 4 hours during the hottest part of the day (in summer). Rub with bees wax. Set to cool in shade. Bees wax i...
83,033
How do I season an antique cast iron cider press that I just bought? It is substantially bigger than any stove, oven, or grill that I own, at about 48" diameter. I'd consider other food-safe finishes too, but seasoning seems the obvious choice given that it is cast iron.
2017/07/17
[ "https://cooking.stackexchange.com/questions/83033", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/751/" ]
I would not heat up a large cast iron press - too much to go wrong there, little benefit. You are not frying on the thing. Clean any oil/rust that's on it, dry carefully, oil it with mineral oil or wax it with beeswax (or paraffin wax, but beeswax will probably stick better,) use it, clean it up well, dry very careful...
Cos Callie's suggestion seems very good, but I thought I'd mention there is another way of finishing cast iron. You can make a tea-based seasoning, where tannins from tea react with the iron to form a stable, rustproof outer layer of [ferric tannate](https://cooking.stackexchange.com/questions/43950/why-dont-i-have-t...
83,033
How do I season an antique cast iron cider press that I just bought? It is substantially bigger than any stove, oven, or grill that I own, at about 48" diameter. I'd consider other food-safe finishes too, but seasoning seems the obvious choice given that it is cast iron.
2017/07/17
[ "https://cooking.stackexchange.com/questions/83033", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/751/" ]
I would not heat up a large cast iron press - too much to go wrong there, little benefit. You are not frying on the thing. Clean any oil/rust that's on it, dry carefully, oil it with mineral oil or wax it with beeswax (or paraffin wax, but beeswax will probably stick better,) use it, clean it up well, dry very careful...
Tropical method for seasoning a press. Pick a day when the temperatures are likely to stay above 90°F for a good part of the day. Clean well. Place in black plastic bag. close bag. Let set in direct sunlight for 4 hours during the hottest part of the day (in summer). Rub with bees wax. Set to cool in shade. Bees wax i...
83,033
How do I season an antique cast iron cider press that I just bought? It is substantially bigger than any stove, oven, or grill that I own, at about 48" diameter. I'd consider other food-safe finishes too, but seasoning seems the obvious choice given that it is cast iron.
2017/07/17
[ "https://cooking.stackexchange.com/questions/83033", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/751/" ]
Cos Callie's suggestion seems very good, but I thought I'd mention there is another way of finishing cast iron. You can make a tea-based seasoning, where tannins from tea react with the iron to form a stable, rustproof outer layer of [ferric tannate](https://cooking.stackexchange.com/questions/43950/why-dont-i-have-t...
Tropical method for seasoning a press. Pick a day when the temperatures are likely to stay above 90°F for a good part of the day. Clean well. Place in black plastic bag. close bag. Let set in direct sunlight for 4 hours during the hottest part of the day (in summer). Rub with bees wax. Set to cool in shade. Bees wax i...
3,130,884
If you have a look at their website it shows statical data ``` $25 Billion in transactions 60,000+ merchants 2,000+ extensions 2+ Million downloads ``` **EDIT:** just wanted to know where does magento get its data from!?
2010/06/28
[ "https://Stackoverflow.com/questions/3130884", "https://Stackoverflow.com", "https://Stackoverflow.com/users/103264/" ]
Often numbers like these are sort of accurate guesstimates done by canvassing users. You should take this up with them directly, I'm sure they'll be happy to help. Making wild claims like this without proof is also a good way to get sued for libel, btw.
Magento code is open source, meaning you can take a look at it any time. I worked with Magento for 3 months and I didn't notice any pingbacks and generally in open source projects developers avoid pingbacks. Especially in a eCommerce environment this could be a security breach and a potential source of information leak...
3,064,608
How to know that, the system you are building is a better as Desktop Application than an Web Application?
2010/06/17
[ "https://Stackoverflow.com/questions/3064608", "https://Stackoverflow.com", "https://Stackoverflow.com/users/369672/" ]
My top 3: 1. I need to use/control the hardware directly (printer, graphic card...). 2. I don't care if my project is platform dependant. 3. Need complex user interface (OK Web 2.0 is better than ever, but it's still hell to make advanced specialized stuff to work in all Web browsers).
It depends on your target audience, desired features, and what delivery method makes the most sense. It might help to answer these questions: 1) Who will use this? 2) What will they do with it? (think about thinks like media operations, data storage,..) 3) How will they best be able to get this app? 4)...
3,064,608
How to know that, the system you are building is a better as Desktop Application than an Web Application?
2010/06/17
[ "https://Stackoverflow.com/questions/3064608", "https://Stackoverflow.com", "https://Stackoverflow.com/users/369672/" ]
Interesting question. in practice the answer hinges primarily on the deployment requirements: * If you want very broad and "instant" deployment - then use HTML and HTTP. * if you or your organization have administrative control over the computers on which the app will be deployed, making it a "desktop app" is acceptab...
It depends on your target audience, desired features, and what delivery method makes the most sense. It might help to answer these questions: 1) Who will use this? 2) What will they do with it? (think about thinks like media operations, data storage,..) 3) How will they best be able to get this app? 4)...
41,941
How can I identify the make and model of a chain? I need to take a chain off and clean it. (It's a new-to-me used bike, and I'm giving everything the once over.) The chain doesn't have a master link, so I'm going to have to break it and add a master link. To do this, I need to figure out what kind of chain it is so I ...
2016/08/18
[ "https://bicycles.stackexchange.com/questions/41941", "https://bicycles.stackexchange.com", "https://bicycles.stackexchange.com/users/28706/" ]
Any brand link that is rated for a 7 speed chain will fit. Sram refers to there's as a Power Link, KMC calls it a Missing Link other are quick connect. What is important is that it not the type with the "U" clip that it together. That type is only for non derailleur bikes.
It looks like a variant of the [KMC Z8](http://www.kmcchain.eu/chain-KMC_Z8_S-touring_city-8%2C7%2C6%2C5_speed), with a pin length of 7.1mm: [![enter image description here](https://i.stack.imgur.com/a2n5D.jpg)](https://i.stack.imgur.com/a2n5D.jpg) The KMC website suggests using a [MissingLink 7/8R 7.1mm](http://www....
36,787,793
I have 2 tables User\_places where I can see for each user their home location defined by 2 separate attributes: longitude and latitude. And I have second table Neighborhoods with attribute 'Area', that defines each neighborhood as polygon - jsonb format - "[{"latitude":XXXXX,"longitude":YYYYY},{"latitude":ZZZZZ,"longi...
2016/04/22
[ "https://Stackoverflow.com/questions/36787793", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5735692/" ]
``` SELECT user_id, ST_Contains( ST_GeomFromText( (select replace(replace(replace(replace(replace(area::text,']','))'),'[','POLYGON(('),'}', ''),',"longitude":',' '),'{"latitude":','') from neighbourhoods limit 1), 4326) (ST_SetSRID(ST_MakePoint(latitude, longitude),4326)) ) as polygon_check from user_...
I will assume you have [Postgis](http://postgis.net/) installed on your copy of postgresql? As this has all the Geometry and geographical function extensions to postgresql. You could use [ST\_Contains](http://postgis.refractions.net/documentation/manual-1.4/ST_Contains.html) to check if a point is contained in a given...
41,987
I'm trying to find an application that can generate waveform and sine waves of whatever audio file I input. I require this application for my college project, it is a research on sound and mathematical patterns. It'd be great if you guys can help me out! I've been looking for some time but can't find any. I apologi...
2017/09/01
[ "https://sound.stackexchange.com/questions/41987", "https://sound.stackexchange.com", "https://sound.stackexchange.com/users/22861/" ]
I am an engineering student my self and I use Audacity to generate Sine, Sawtooth, Square waves. It's easy as pie. 1. Download Audacity from [here](http://www.audacityteam.org/download/). 2. Open Audacity and click on Generate from the Toolbar on top. 3. Select the waveform you need, the frequency, the amplitude and d...
You can use Sony Sound Forge, there's a waveform generator inside of it. Best for you could be Audacity which is free see the [doc](http://manual.audacityteam.org/man/generate_menu.html). You could also use a synth in a DAW to generate sines even squares etc...
41,987
I'm trying to find an application that can generate waveform and sine waves of whatever audio file I input. I require this application for my college project, it is a research on sound and mathematical patterns. It'd be great if you guys can help me out! I've been looking for some time but can't find any. I apologi...
2017/09/01
[ "https://sound.stackexchange.com/questions/41987", "https://sound.stackexchange.com", "https://sound.stackexchange.com/users/22861/" ]
I am an engineering student my self and I use Audacity to generate Sine, Sawtooth, Square waves. It's easy as pie. 1. Download Audacity from [here](http://www.audacityteam.org/download/). 2. Open Audacity and click on Generate from the Toolbar on top. 3. Select the waveform you need, the frequency, the amplitude and d...
Any DAW (digital audio workstation) or even most video editing software will display a waveform for the audio in a particular file. You can not, however, make a "sine wave of whatever audio file" because the file doesn't contain a sine wave. A sine wave is a very particular type of fixed frequency oscillation. You wou...
41,987
I'm trying to find an application that can generate waveform and sine waves of whatever audio file I input. I require this application for my college project, it is a research on sound and mathematical patterns. It'd be great if you guys can help me out! I've been looking for some time but can't find any. I apologi...
2017/09/01
[ "https://sound.stackexchange.com/questions/41987", "https://sound.stackexchange.com", "https://sound.stackexchange.com/users/22861/" ]
I am an engineering student my self and I use Audacity to generate Sine, Sawtooth, Square waves. It's easy as pie. 1. Download Audacity from [here](http://www.audacityteam.org/download/). 2. Open Audacity and click on Generate from the Toolbar on top. 3. Select the waveform you need, the frequency, the amplitude and d...
You may want to check out [SPEAR](http://www.klingbeil.com/spear/). From the website: * SPEAR is an application for audio analysis, editing and synthesis. The analysis procedure (which is based on the traditional McAulay-Quatieri technique) attempts to represent a sound with many individual sinusoidal tracks (partials...
6,986,928
Simple problem here (I think). I have a form with a checkbox at the bottom where the user must agree to the terms and conditions. If the user doesn't check the box, I'd like an error message to be displayed in my validation summary along with the other form errors. I added this to my view model: ``` [Required] [Rang...
2011/08/08
[ "https://Stackoverflow.com/questions/6986928", "https://Stackoverflow.com", "https://Stackoverflow.com/users/295302/" ]
``` using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Threading.Tasks; using System.Web.Mvc; namespace Checked.Entitites { public class BooleanRequiredAttribute : ValidationAttribute, IClientValidatable { public override bool IsValid(object value) { ...
You can write a custom validation attribute which has already been mentioned. You will need to write custom javascript to enable the unobtrusive validation functionality to pick it up if you are doing client side validation. e.g. if you are using jQuery: ``` // extend jquery unobtrusive validation (function ($) { /...
6,986,928
Simple problem here (I think). I have a form with a checkbox at the bottom where the user must agree to the terms and conditions. If the user doesn't check the box, I'd like an error message to be displayed in my validation summary along with the other form errors. I added this to my view model: ``` [Required] [Rang...
2011/08/08
[ "https://Stackoverflow.com/questions/6986928", "https://Stackoverflow.com", "https://Stackoverflow.com/users/295302/" ]
``` using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Threading.Tasks; using System.Web.Mvc; namespace Checked.Entitites { public class BooleanRequiredAttribute : ValidationAttribute, IClientValidatable { public override bool IsValid(object value) { ...
There's actually a way to make it work with DataAnnotations. The following way: ``` [Required] [Range(typeof(bool), "true", "true")] public bool AcceptTerms { get; set; } ```
6,986,928
Simple problem here (I think). I have a form with a checkbox at the bottom where the user must agree to the terms and conditions. If the user doesn't check the box, I'd like an error message to be displayed in my validation summary along with the other form errors. I added this to my view model: ``` [Required] [Rang...
2011/08/08
[ "https://Stackoverflow.com/questions/6986928", "https://Stackoverflow.com", "https://Stackoverflow.com/users/295302/" ]
``` using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Threading.Tasks; using System.Web.Mvc; namespace Checked.Entitites { public class BooleanRequiredAttribute : ValidationAttribute, IClientValidatable { public override bool IsValid(object value) { ...
ASP.Net Core 3.1 I know this is a very old question but for asp.net core the `IClientValidatable` does not exist and i wanted a solution that works with `jQuery Unobtrusive Validation` as well as on server validation so with the help of this SO question [Link](https://stackoverflow.com/questions/36566836/asp-net-core-...
6,986,928
Simple problem here (I think). I have a form with a checkbox at the bottom where the user must agree to the terms and conditions. If the user doesn't check the box, I'd like an error message to be displayed in my validation summary along with the other form errors. I added this to my view model: ``` [Required] [Rang...
2011/08/08
[ "https://Stackoverflow.com/questions/6986928", "https://Stackoverflow.com", "https://Stackoverflow.com/users/295302/" ]
You can write a custom validation attribute which has already been mentioned. You will need to write custom javascript to enable the unobtrusive validation functionality to pick it up if you are doing client side validation. e.g. if you are using jQuery: ``` // extend jquery unobtrusive validation (function ($) { /...
ASP.Net Core 3.1 I know this is a very old question but for asp.net core the `IClientValidatable` does not exist and i wanted a solution that works with `jQuery Unobtrusive Validation` as well as on server validation so with the help of this SO question [Link](https://stackoverflow.com/questions/36566836/asp-net-core-...
6,986,928
Simple problem here (I think). I have a form with a checkbox at the bottom where the user must agree to the terms and conditions. If the user doesn't check the box, I'd like an error message to be displayed in my validation summary along with the other form errors. I added this to my view model: ``` [Required] [Rang...
2011/08/08
[ "https://Stackoverflow.com/questions/6986928", "https://Stackoverflow.com", "https://Stackoverflow.com/users/295302/" ]
There's actually a way to make it work with DataAnnotations. The following way: ``` [Required] [Range(typeof(bool), "true", "true")] public bool AcceptTerms { get; set; } ```
ASP.Net Core 3.1 I know this is a very old question but for asp.net core the `IClientValidatable` does not exist and i wanted a solution that works with `jQuery Unobtrusive Validation` as well as on server validation so with the help of this SO question [Link](https://stackoverflow.com/questions/36566836/asp-net-core-...
777
I have a very large `SparseArray` called `A`. What is the most efficient way to update say element `{i,j}` with value `x` to the value `f[x]` ? I worry about **memory usage and code speed** if I need to make a very large number of updates. I've seen [Leonid's comment here](https://mathematica.stackexchange.com/question...
2012/01/26
[ "https://mathematica.stackexchange.com/questions/777", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/13/" ]
If you need a batch update, then the answer is in my comment you linked. If you need element-by-element, then there are two cases: * Most of values you update are non-zero (or, generally, not equal to default element). In this case, I believe the answer of @Mr. Wizard is optimal, and you should expect update of a sin...
I believe that `Part` works quite well. ``` sa = SparseArray[RandomInteger[{1, 10000}, {5000, 2}] -> 1]; new = RandomInteger[{1, 7000}, {5000, 3}]; (sa[[#, #2]] = #3) & @@@ new; // Timing ``` > > > ``` > {0.078, Null} > > ``` > > Notice that this is being done one element at a time with `@@@` and it is still...
10,550,637
I want to require/include a content from database record, but require/include only accepts files. This thing is related to caching, so I dont want to write anything to file (collisions etc). How to dodge it?
2012/05/11
[ "https://Stackoverflow.com/questions/10550637", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1043342/" ]
Are you fetching PHP code from a database? If so, you're probably doing it wrong. Ideally you should only store data inside a database, not code. If you're fetching a PHP structure from the database, consider using a `serialize()`'d version of it (or `json_encode()`'d). Maybe I have missed the exact purpose of what y...
This is very dangerous, especially if the database content was contributed from a user, but anyway you could use this : ``` eval($your_database_content); ``` [Manual](http://us3.php.net/manual/en/function.eval.php)
10,550,637
I want to require/include a content from database record, but require/include only accepts files. This thing is related to caching, so I dont want to write anything to file (collisions etc). How to dodge it?
2012/05/11
[ "https://Stackoverflow.com/questions/10550637", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1043342/" ]
Since others have covered `eval()` and the fact that this is a bad idea, I will touch on the topic of writing this "content" to a file. Use [`tempnam`](http://php.net/manual/en/function.tempnam.php). This will give you the name of a just-created unique filename with 0600 permissions. You can then open it, write your co...
This is very dangerous, especially if the database content was contributed from a user, but anyway you could use this : ``` eval($your_database_content); ``` [Manual](http://us3.php.net/manual/en/function.eval.php)
10,550,637
I want to require/include a content from database record, but require/include only accepts files. This thing is related to caching, so I dont want to write anything to file (collisions etc). How to dodge it?
2012/05/11
[ "https://Stackoverflow.com/questions/10550637", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1043342/" ]
Are you fetching PHP code from a database? If so, you're probably doing it wrong. Ideally you should only store data inside a database, not code. If you're fetching a PHP structure from the database, consider using a `serialize()`'d version of it (or `json_encode()`'d). Maybe I have missed the exact purpose of what y...
If it is code, you need to use `eval()`, though there are many anti-patterns that involve `eval()` The manual says: > > Caution The eval() language construct is very dangerous because it > allows execution of arbitrary PHP code. Its use thus is discouraged. > If you have carefully verified that there is no other o...
10,550,637
I want to require/include a content from database record, but require/include only accepts files. This thing is related to caching, so I dont want to write anything to file (collisions etc). How to dodge it?
2012/05/11
[ "https://Stackoverflow.com/questions/10550637", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1043342/" ]
Since others have covered `eval()` and the fact that this is a bad idea, I will touch on the topic of writing this "content" to a file. Use [`tempnam`](http://php.net/manual/en/function.tempnam.php). This will give you the name of a just-created unique filename with 0600 permissions. You can then open it, write your co...
If it is code, you need to use `eval()`, though there are many anti-patterns that involve `eval()` The manual says: > > Caution The eval() language construct is very dangerous because it > allows execution of arbitrary PHP code. Its use thus is discouraged. > If you have carefully verified that there is no other o...
7,414,811
Inside my Shell Script , i have this line present ``` RUN_CMD="$JAVA_HOME/bin/java -cp $CLASSPATH com/mypack/BalanceRunner ``` Could anybody please tell me , what is meant by this command RUN\_CMD and where can i see this RUN\_CMD defined Thanks for reading
2011/09/14
[ "https://Stackoverflow.com/questions/7414811", "https://Stackoverflow.com", "https://Stackoverflow.com/users/784597/" ]
That's defining an environment variable `RUN_CMD` (looks like a quote omitted at the end, though). It's shorthand for running that Java command (which defines where to find some classes and then specifies which class to run - `BalanceRunner`) The variable is in scope for the current process (a shell, or shell script, ...
You set the value of an environment variable. As to the title of your question: ``` echo $ENV_VAR_NAME ``` will print the value of a defined environment variable to the console
7,414,811
Inside my Shell Script , i have this line present ``` RUN_CMD="$JAVA_HOME/bin/java -cp $CLASSPATH com/mypack/BalanceRunner ``` Could anybody please tell me , what is meant by this command RUN\_CMD and where can i see this RUN\_CMD defined Thanks for reading
2011/09/14
[ "https://Stackoverflow.com/questions/7414811", "https://Stackoverflow.com", "https://Stackoverflow.com/users/784597/" ]
That's defining an environment variable `RUN_CMD` (looks like a quote omitted at the end, though). It's shorthand for running that Java command (which defines where to find some classes and then specifies which class to run - `BalanceRunner`) The variable is in scope for the current process (a shell, or shell script, ...
The line you quote *is* the assignment. As Brian said, it's only in scope for the current process. When you run a script (say with `./<script>` or `bash <script>`), a *new* shell is created in which the script is executed. As such, once the script finishes and you're returned to the prompt, all the variables assigned...
7,414,811
Inside my Shell Script , i have this line present ``` RUN_CMD="$JAVA_HOME/bin/java -cp $CLASSPATH com/mypack/BalanceRunner ``` Could anybody please tell me , what is meant by this command RUN\_CMD and where can i see this RUN\_CMD defined Thanks for reading
2011/09/14
[ "https://Stackoverflow.com/questions/7414811", "https://Stackoverflow.com", "https://Stackoverflow.com/users/784597/" ]
The line you quote *is* the assignment. As Brian said, it's only in scope for the current process. When you run a script (say with `./<script>` or `bash <script>`), a *new* shell is created in which the script is executed. As such, once the script finishes and you're returned to the prompt, all the variables assigned...
You set the value of an environment variable. As to the title of your question: ``` echo $ENV_VAR_NAME ``` will print the value of a defined environment variable to the console
35,356,956
I have a problem using the std::map, specifically when using find. I have the following code. ``` class MyClass { update(const QVariant&); QVariant m_itemInfo; std::map<QVariant, int> m_testMap; } void update(const QVariant& itemInfo) { if(m_itemInfo != itemInfo) { // The items are not eq...
2016/02/12
[ "https://Stackoverflow.com/questions/35356956", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1479628/" ]
I guess the problem that the first and second `QVariant`s that you pass to your Update method have different type (for example, `bool` and `uint`). `std::map::find` doesn't use !=operator to compare keys, it uses operator < (less) by default. If two compared `QVariant` values have different types operators != and < may...
A more paradigmatic solution is to use `QMap` which correctly implements the comparison of most `QVariant` types. It won't do `userTypes()` out of the box, but this still might suit your application. A cleaner version of the solution proposed by Володин Андрей, that builds, might look like: ``` struct QVariantLessCom...
51,396,490
I’m using this character, double sharp `''` which unicode is 0x1d12a. If I use it in a string, I can’t get the correct string length: ``` str = "F" str.length // returns 3, even though there are 2 characters! ``` How do I get the function to return the correct answer, whether or not I’m using special unicode or n...
2018/07/18
[ "https://Stackoverflow.com/questions/51396490", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7329561/" ]
``` String.prototype.codes = function() { return [...this].length }; String.prototype.chars = function() { let GraphemeSplitter = require('grapheme-splitter'); return (new GraphemeSplitter()).countGraphemes(this); } console.log("F".codes()); // 2 console.log("‍❤️‍‍".codes()); // 8 console.log("❤️".code...
To sumarize my comments: That's just the lenght of that string. Some chars involve other chars as well, even if it looks like a single character. `"̉mủt̉ả̉̉̉t̉ẻd̉W̉ỏ̉r̉̉d̉̉".length == 24` From [this (great) blog post](https://blog.jonnew.com/posts/poo-dot-length-equals-two), they have a function that will return cor...
51,396,490
I’m using this character, double sharp `''` which unicode is 0x1d12a. If I use it in a string, I can’t get the correct string length: ``` str = "F" str.length // returns 3, even though there are 2 characters! ``` How do I get the function to return the correct answer, whether or not I’m using special unicode or n...
2018/07/18
[ "https://Stackoverflow.com/questions/51396490", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7329561/" ]
To sumarize my comments: That's just the lenght of that string. Some chars involve other chars as well, even if it looks like a single character. `"̉mủt̉ả̉̉̉t̉ẻd̉W̉ỏ̉r̉̉d̉̉".length == 24` From [this (great) blog post](https://blog.jonnew.com/posts/poo-dot-length-equals-two), they have a function that will return cor...
Javascript (and Java) strings use UTF-16 encoding. Unicode codepoint U+0046 (`F`) is encoded in UTF-16 using 1 codeunit: `0x0046` Unicode codepoint U+1D12A () is encoded in UTF-16 using 2 codeunits (known as a "surrogate pair"): `0xD834 0xDD2A` That is why you are getting a `length` of 3, not 2. The `length` counts ...
51,396,490
I’m using this character, double sharp `''` which unicode is 0x1d12a. If I use it in a string, I can’t get the correct string length: ``` str = "F" str.length // returns 3, even though there are 2 characters! ``` How do I get the function to return the correct answer, whether or not I’m using special unicode or n...
2018/07/18
[ "https://Stackoverflow.com/questions/51396490", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7329561/" ]
``` String.prototype.codes = function() { return [...this].length }; String.prototype.chars = function() { let GraphemeSplitter = require('grapheme-splitter'); return (new GraphemeSplitter()).countGraphemes(this); } console.log("F".codes()); // 2 console.log("‍❤️‍‍".codes()); // 8 console.log("❤️".code...
Javascript (and Java) strings use UTF-16 encoding. Unicode codepoint U+0046 (`F`) is encoded in UTF-16 using 1 codeunit: `0x0046` Unicode codepoint U+1D12A () is encoded in UTF-16 using 2 codeunits (known as a "surrogate pair"): `0xD834 0xDD2A` That is why you are getting a `length` of 3, not 2. The `length` counts ...
51,396,490
I’m using this character, double sharp `''` which unicode is 0x1d12a. If I use it in a string, I can’t get the correct string length: ``` str = "F" str.length // returns 3, even though there are 2 characters! ``` How do I get the function to return the correct answer, whether or not I’m using special unicode or n...
2018/07/18
[ "https://Stackoverflow.com/questions/51396490", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7329561/" ]
``` String.prototype.codes = function() { return [...this].length }; String.prototype.chars = function() { let GraphemeSplitter = require('grapheme-splitter'); return (new GraphemeSplitter()).countGraphemes(this); } console.log("F".codes()); // 2 console.log("‍❤️‍‍".codes()); // 8 console.log("❤️".code...
That's the function I wrote to get string length in codepoint length ``` function nbUnicodeLength(string){ var stringIndex = 0; var unicodeIndex = 0; var length = string.length; var second; var first; while (stringIndex < length) { first = string.charCodeAt(stringIndex); // returns an...
51,396,490
I’m using this character, double sharp `''` which unicode is 0x1d12a. If I use it in a string, I can’t get the correct string length: ``` str = "F" str.length // returns 3, even though there are 2 characters! ``` How do I get the function to return the correct answer, whether or not I’m using special unicode or n...
2018/07/18
[ "https://Stackoverflow.com/questions/51396490", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7329561/" ]
That's the function I wrote to get string length in codepoint length ``` function nbUnicodeLength(string){ var stringIndex = 0; var unicodeIndex = 0; var length = string.length; var second; var first; while (stringIndex < length) { first = string.charCodeAt(stringIndex); // returns an...
Javascript (and Java) strings use UTF-16 encoding. Unicode codepoint U+0046 (`F`) is encoded in UTF-16 using 1 codeunit: `0x0046` Unicode codepoint U+1D12A () is encoded in UTF-16 using 2 codeunits (known as a "surrogate pair"): `0xD834 0xDD2A` That is why you are getting a `length` of 3, not 2. The `length` counts ...
243,263
I need to make my dropdown menu apprear over the top of a flash movie, how is this done cross browser? It can be done, IBM do it: <http://www.ibm.com/us/> so do GE: <http://www.ge.com/> Setting the the WMODE to transparent doesn't work for Firefox Putting it into an Iframe doesnt work below IE7 Any one know the bes...
2008/10/28
[ "https://Stackoverflow.com/questions/243263", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Set the wmode to transparent and if necessary, use z-index as you would on any other element, that really should work for Firefox too.
Firefox for linux shows flash on top of everything. Regardles of wmode or z-index. EDIT: I just found out that the Linux issue described above can be "fixed". You need to add an iframe with a z-index between the swf and the layer you want to put on top of it. The iframe needs to have style="display:none" initially an...
243,263
I need to make my dropdown menu apprear over the top of a flash movie, how is this done cross browser? It can be done, IBM do it: <http://www.ibm.com/us/> so do GE: <http://www.ge.com/> Setting the the WMODE to transparent doesn't work for Firefox Putting it into an Iframe doesnt work below IE7 Any one know the bes...
2008/10/28
[ "https://Stackoverflow.com/questions/243263", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
here is an example with all three modes: opaque, transparent and no wmode at all <http://www.communitymx.com/content/source/E5141/wmodeopaque.htm> use transparent if you have something under the flash movie that you want visible, opaque if you don't want to show what's underneath and set a higher z-index for menu th...
Firefox for linux shows flash on top of everything. Regardles of wmode or z-index. EDIT: I just found out that the Linux issue described above can be "fixed". You need to add an iframe with a z-index between the swf and the layer you want to put on top of it. The iframe needs to have style="display:none" initially an...
36,260,631
Actually I am getting an error: ``` Exception in thread "main" java.lang.NoClassDefFoundError:sun/io/CharToByteConverter ``` This is because in Java 8, the CharToByteConverter class has been removed as it was deprecated. Now I want to know of any alternative which would replace this package/class and provide its fu...
2016/03/28
[ "https://Stackoverflow.com/questions/36260631", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3520291/" ]
This is an old issue, but WAS an issue for me until today as well. So maybe others may benefit from the information, that Oracle has a bug #21315718 for that, containing the solution: "Translator.jar and runtime12.jar were not compatible with JDK 8. The issue is reported in unpublished Bug 21315718 - sqlj translator do...
The javadoc comment says it all: > > Deprecated! Replaced - by java.nio.charset > > > Look for a replacement class/method in the java.nio.charset package. Note that using classes in the JDK that are not part of the officially documented API is a bad idea in the first place
14,378,837
I have a problem with the UIImagePickerController component. Currently in my app the user can pick an image from the saved photos library with the picker, no problems there. However, it seems that if I crop and save a photo *in Photos.app* before picking the image, UIImagePickerController gives me the original uncropp...
2013/01/17
[ "https://Stackoverflow.com/questions/14378837", "https://Stackoverflow.com", "https://Stackoverflow.com/users/438807/" ]
The solution was simple; I was using `UIImagePickerControllerSourceTypeSavedPhotosAlbum` instead of `UIImagePickerControllerSourceTypePhotoLibrary`.
What is your ``` -(void)imagePickerController:(UIImagePickerController *)pickr didFinishPickingMediaWithInfo; ``` method like? Have you tried to do something like ``` -(void)imagePickerController:(UIImagePickerController *)pickr didFinishPickingMediaWithInfo:(NSDictionary *)info{ UIImage *image = [info object...
19,516
I am using OBS to stream on facebook. I could connect to facebook with OBS and see preview at facebook (audio and video is streaming in preview mode at facebook). When I go live it stop working. What can be the issue? Thanks
2016/10/06
[ "https://avp.stackexchange.com/questions/19516", "https://avp.stackexchange.com", "https://avp.stackexchange.com/users/16846/" ]
If you're designing source artwork in Illustrator, take advantage of the fact you can bring your .ai files straight in AE. On the layer in AE that you put the AI vector, click the 'continuously rasterize' button and you'll get your crisp vector edges back. [![After Effects Timeline option](https://i.stack.imgur.com/2...
OK, so the asset is sharp when it's 956×956, but you then put it in your comp and scale it down to 50% meaning that it is now 478×478. It looks softer than it did at full resolution. Yes, *what did you expect to happen?* It has lost 75% of the pixels it originally had, it's going to look softer, end of story. Export fr...
6,112,883
I have a background image used as tooltip container's background. The image is shown below: ![enter image description here](https://i.stack.imgur.com/lqrxP.png) It is used like this: ``` .tooltip { display:none; background:url(images/black_arrow_big.png); height:163px; padding:40px 30px 10px 30px; ...
2011/05/24
[ "https://Stackoverflow.com/questions/6112883", "https://Stackoverflow.com", "https://Stackoverflow.com/users/66580/" ]
**Update** this can be done using pure CSS. [Example](http://nicolasgallagher.com/pure-css-speech-bubbles/). Good question. Right now, it looks like your drop shadow is part of the PNG image, and that's not resizable, as you know. You can use CSS3 drop shadows, which will adapt to the size of the container. The proble...
Try CSS Arrows: <http://cssarrowplease.com/>
38,258,489
So I have a web app that login to Instagram. Works fine for months. No code changes, and suddenly I'm getting ``` {"code": 400, "error_type": "OAuthException", "error_message": "Matching code was not found or was already used."} ``` Logging out of instagram.com on my browser and using my web app to login with instag...
2016/07/08
[ "https://Stackoverflow.com/questions/38258489", "https://Stackoverflow.com", "https://Stackoverflow.com/users/136558/" ]
``` document.getElementsByTagName('header') ``` will store all the header which is in the page in array. ```js var test = document.getElementsByTagName("header"); alert(test[0].innerHTML); alert(test[1].innerHTML); ``` ```html <header>first test</header> <header>second test</header> ``` Reference link [here](h...
If you don't want to assign id or class names and want to use tag name. Then it is also fine with or without html5. ``` var test = document.getElementsByTagName("header") ; ``` You are not able to get value as test is array here , notice method name is getElementsByTagName instead of getElementByTagName. So for ge...
42,908,846
I'm trying to write values to my VideoFlag list when the pixel intensity difference is higher than a predefined threshold. On output however my output 'flag.txt' file is empty, and I'm not sure why. Does anyone know in what way my code is wrong? Thanks! ``` import cv2 import tkinter as tk from tkinter.filedialog impo...
2017/03/20
[ "https://Stackoverflow.com/questions/42908846", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6614782/" ]
Replacing ``` with open((selectedvideo + 'flag' + '.txt'), 'w') as f: for item in VideoFlag: f.write(str(item)) ``` with ``` # Note that you need to append('a') data to the file instead of writing('w') to it for each iteration. # The last line will be empty string and that is what contains finally. wi...
I think I've solved my problem - so for whatever reason it wasn't running due to my types in my append method - I'd forgotten to convert one of my integers to a string I think, I've reworked it and I think that's solved my issue! Cheers for the input guys! ``` import cv2 import tkinter as tk from tkinter.filedialog im...
55,471,965
I have this code in c language, it does check if a number written in a certain numeric base, decimal, octal, ..etc is correct, means that it is using characters which belongs to this certain base, for example, an octal number should only use characters [0, 1, 2, 3, 4, 5, 6, 7], it checks all the bases between 2 and 36....
2019/04/02
[ "https://Stackoverflow.com/questions/55471965", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1583266/" ]
> > ISO C90 forbids variable length array 'base\_symbols' > > > There's nothing wrong with the code, you get error this because you are using an old, obsolete compiler. You need to get a modern one such as gcc. Please note that older versions of gcc did support newer versions of the language if you compiled corr...
use `char *index;` then `index = strchr(all_symbols, toupper ( num[k]));` to see if the character is in the set if `index` is in the set it will have a larger address. subtract the smaller address from the larger address to get a positive result then `if ( index && index - all_symbols < base)` then num[k] is v...
55,471,965
I have this code in c language, it does check if a number written in a certain numeric base, decimal, octal, ..etc is correct, means that it is using characters which belongs to this certain base, for example, an octal number should only use characters [0, 1, 2, 3, 4, 5, 6, 7], it checks all the bases between 2 and 36....
2019/04/02
[ "https://Stackoverflow.com/questions/55471965", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1583266/" ]
One simple solution would be to truncate the string ``` char all_symbols[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; // length corrected if(base > 36) return 0; all_symbols[base] = 0; //.. as before ```
use `char *index;` then `index = strchr(all_symbols, toupper ( num[k]));` to see if the character is in the set if `index` is in the set it will have a larger address. subtract the smaller address from the larger address to get a positive result then `if ( index && index - all_symbols < base)` then num[k] is v...
55,471,965
I have this code in c language, it does check if a number written in a certain numeric base, decimal, octal, ..etc is correct, means that it is using characters which belongs to this certain base, for example, an octal number should only use characters [0, 1, 2, 3, 4, 5, 6, 7], it checks all the bases between 2 and 36....
2019/04/02
[ "https://Stackoverflow.com/questions/55471965", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1583266/" ]
One simple solution would be to truncate the string ``` char all_symbols[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; // length corrected if(base > 36) return 0; all_symbols[base] = 0; //.. as before ```
> > ISO C90 forbids variable length array 'base\_symbols' > > > There's nothing wrong with the code, you get error this because you are using an old, obsolete compiler. You need to get a modern one such as gcc. Please note that older versions of gcc did support newer versions of the language if you compiled corr...
55,471,965
I have this code in c language, it does check if a number written in a certain numeric base, decimal, octal, ..etc is correct, means that it is using characters which belongs to this certain base, for example, an octal number should only use characters [0, 1, 2, 3, 4, 5, 6, 7], it checks all the bases between 2 and 36....
2019/04/02
[ "https://Stackoverflow.com/questions/55471965", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1583266/" ]
> > ISO C90 forbids variable length array 'base\_symbols' > > > There's nothing wrong with the code, you get error this because you are using an old, obsolete compiler. You need to get a modern one such as gcc. Please note that older versions of gcc did support newer versions of the language if you compiled corr...
The solution by @WeatherVane (i.e. <https://stackoverflow.com/a/55472654/4386427>) is a very good solution for the code posted by OP. The solution below shows an alternative approach that doesn't use string functions. ``` // Calculate the minimum base that allows use of char c int requiredBase(char c) { if (c >= '...
55,471,965
I have this code in c language, it does check if a number written in a certain numeric base, decimal, octal, ..etc is correct, means that it is using characters which belongs to this certain base, for example, an octal number should only use characters [0, 1, 2, 3, 4, 5, 6, 7], it checks all the bases between 2 and 36....
2019/04/02
[ "https://Stackoverflow.com/questions/55471965", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1583266/" ]
One simple solution would be to truncate the string ``` char all_symbols[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; // length corrected if(base > 36) return 0; all_symbols[base] = 0; //.. as before ```
The solution by @WeatherVane (i.e. <https://stackoverflow.com/a/55472654/4386427>) is a very good solution for the code posted by OP. The solution below shows an alternative approach that doesn't use string functions. ``` // Calculate the minimum base that allows use of char c int requiredBase(char c) { if (c >= '...
130,974
My whole life, I've heard that large accelerations cause damage to humans (e.g. g-forces in space movies). However, after reading about general relativity, it seems to me that a strong force which affected a body uniformly (such as a very massive object a good distance away) would cause no stresses whatsoever on the h...
2014/08/14
[ "https://physics.stackexchange.com/questions/130974", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/16371/" ]
If you experience such a uniform force, e.g. when an astronaut on a space walk near the ISS (just earth's gravity), you don't experience any forces at all. That's freefall. Even with 10G, you'd experience a rapid freefall, but that is still harmless. It's the hitting the ground which kills you - that's not a uniform ...
You are correct. The concern over accelerations is with respect to a force applied on the surface of your body. Even with something like a uniform fluid to apply nearly even pressure across the body, your interior will always have density differences. Any density differences will create internal forces when the outside...
130,974
My whole life, I've heard that large accelerations cause damage to humans (e.g. g-forces in space movies). However, after reading about general relativity, it seems to me that a strong force which affected a body uniformly (such as a very massive object a good distance away) would cause no stresses whatsoever on the h...
2014/08/14
[ "https://physics.stackexchange.com/questions/130974", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/16371/" ]
If you experience such a uniform force, e.g. when an astronaut on a space walk near the ISS (just earth's gravity), you don't experience any forces at all. That's freefall. Even with 10G, you'd experience a rapid freefall, but that is still harmless. It's the hitting the ground which kills you - that's not a uniform ...
Basically, it appears that, according to the opinions expressed in the answers in this page, there is a difference between acceleration by a distant gravity field, and acceleration, say, against a wall as we crash with our car. Let me restate the opinions expressed here in this form: we lock a person inside a windowl...
130,974
My whole life, I've heard that large accelerations cause damage to humans (e.g. g-forces in space movies). However, after reading about general relativity, it seems to me that a strong force which affected a body uniformly (such as a very massive object a good distance away) would cause no stresses whatsoever on the h...
2014/08/14
[ "https://physics.stackexchange.com/questions/130974", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/16371/" ]
In short, you're correct: it's not the fall (uniform acceleration) that kills you, but the sudden stop at the bottom (large contact acceleration). But just for fun I'll point out that it's not clear what "uniform acceleration" even means. To operationally define (i.e., measure) acceleration you need an accelerometer. ...
You will answer your question if you understand *inertia*: mass tend to oppose resistance to movement. *Example*: In a lift going upwards e.g., your feet are lifted while your head "wants" to remain at the same place (in a galilean reference frame). In the frame of the lift, everything happens as if a force ($m\_\tex...
130,974
My whole life, I've heard that large accelerations cause damage to humans (e.g. g-forces in space movies). However, after reading about general relativity, it seems to me that a strong force which affected a body uniformly (such as a very massive object a good distance away) would cause no stresses whatsoever on the h...
2014/08/14
[ "https://physics.stackexchange.com/questions/130974", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/16371/" ]
I have a feeling, that you may be asking whether gravity is a force or an acceleration? In the confines of Newtonian mechanics, it's much better to talk about gravity in terms of acceleration, because point-like, free falling test masses responding to a large, gravitating body do not experience any actual forces acting...
You will answer your question if you understand *inertia*: mass tend to oppose resistance to movement. *Example*: In a lift going upwards e.g., your feet are lifted while your head "wants" to remain at the same place (in a galilean reference frame). In the frame of the lift, everything happens as if a force ($m\_\tex...
130,974
My whole life, I've heard that large accelerations cause damage to humans (e.g. g-forces in space movies). However, after reading about general relativity, it seems to me that a strong force which affected a body uniformly (such as a very massive object a good distance away) would cause no stresses whatsoever on the h...
2014/08/14
[ "https://physics.stackexchange.com/questions/130974", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/16371/" ]
I have a feeling, that you may be asking whether gravity is a force or an acceleration? In the confines of Newtonian mechanics, it's much better to talk about gravity in terms of acceleration, because point-like, free falling test masses responding to a large, gravitating body do not experience any actual forces acting...
Basically, it appears that, according to the opinions expressed in the answers in this page, there is a difference between acceleration by a distant gravity field, and acceleration, say, against a wall as we crash with our car. Let me restate the opinions expressed here in this form: we lock a person inside a windowl...
130,974
My whole life, I've heard that large accelerations cause damage to humans (e.g. g-forces in space movies). However, after reading about general relativity, it seems to me that a strong force which affected a body uniformly (such as a very massive object a good distance away) would cause no stresses whatsoever on the h...
2014/08/14
[ "https://physics.stackexchange.com/questions/130974", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/16371/" ]
You are correct. The concern over accelerations is with respect to a force applied on the surface of your body. Even with something like a uniform fluid to apply nearly even pressure across the body, your interior will always have density differences. Any density differences will create internal forces when the outside...
You will answer your question if you understand *inertia*: mass tend to oppose resistance to movement. *Example*: In a lift going upwards e.g., your feet are lifted while your head "wants" to remain at the same place (in a galilean reference frame). In the frame of the lift, everything happens as if a force ($m\_\tex...
130,974
My whole life, I've heard that large accelerations cause damage to humans (e.g. g-forces in space movies). However, after reading about general relativity, it seems to me that a strong force which affected a body uniformly (such as a very massive object a good distance away) would cause no stresses whatsoever on the h...
2014/08/14
[ "https://physics.stackexchange.com/questions/130974", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/16371/" ]
In short, you're correct: it's not the fall (uniform acceleration) that kills you, but the sudden stop at the bottom (large contact acceleration). But just for fun I'll point out that it's not clear what "uniform acceleration" even means. To operationally define (i.e., measure) acceleration you need an accelerometer. ...
Basically, it appears that, according to the opinions expressed in the answers in this page, there is a difference between acceleration by a distant gravity field, and acceleration, say, against a wall as we crash with our car. Let me restate the opinions expressed here in this form: we lock a person inside a windowl...
130,974
My whole life, I've heard that large accelerations cause damage to humans (e.g. g-forces in space movies). However, after reading about general relativity, it seems to me that a strong force which affected a body uniformly (such as a very massive object a good distance away) would cause no stresses whatsoever on the h...
2014/08/14
[ "https://physics.stackexchange.com/questions/130974", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/16371/" ]
If you experience such a uniform force, e.g. when an astronaut on a space walk near the ISS (just earth's gravity), you don't experience any forces at all. That's freefall. Even with 10G, you'd experience a rapid freefall, but that is still harmless. It's the hitting the ground which kills you - that's not a uniform ...
You will answer your question if you understand *inertia*: mass tend to oppose resistance to movement. *Example*: In a lift going upwards e.g., your feet are lifted while your head "wants" to remain at the same place (in a galilean reference frame). In the frame of the lift, everything happens as if a force ($m\_\tex...
130,974
My whole life, I've heard that large accelerations cause damage to humans (e.g. g-forces in space movies). However, after reading about general relativity, it seems to me that a strong force which affected a body uniformly (such as a very massive object a good distance away) would cause no stresses whatsoever on the h...
2014/08/14
[ "https://physics.stackexchange.com/questions/130974", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/16371/" ]
If you experience such a uniform force, e.g. when an astronaut on a space walk near the ISS (just earth's gravity), you don't experience any forces at all. That's freefall. Even with 10G, you'd experience a rapid freefall, but that is still harmless. It's the hitting the ground which kills you - that's not a uniform ...
In short, you're correct: it's not the fall (uniform acceleration) that kills you, but the sudden stop at the bottom (large contact acceleration). But just for fun I'll point out that it's not clear what "uniform acceleration" even means. To operationally define (i.e., measure) acceleration you need an accelerometer. ...
130,974
My whole life, I've heard that large accelerations cause damage to humans (e.g. g-forces in space movies). However, after reading about general relativity, it seems to me that a strong force which affected a body uniformly (such as a very massive object a good distance away) would cause no stresses whatsoever on the h...
2014/08/14
[ "https://physics.stackexchange.com/questions/130974", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/16371/" ]
You are correct. The concern over accelerations is with respect to a force applied on the surface of your body. Even with something like a uniform fluid to apply nearly even pressure across the body, your interior will always have density differences. Any density differences will create internal forces when the outside...
Basically, it appears that, according to the opinions expressed in the answers in this page, there is a difference between acceleration by a distant gravity field, and acceleration, say, against a wall as we crash with our car. Let me restate the opinions expressed here in this form: we lock a person inside a windowl...
69,514,919
I have this error in javascript code : (JavaScript error (Uncaught SyntaxError: Unexpected end of input)) I saw many questions same as this, but could not solve my error, so now ask help My code is so simple as follows; ``` const playBtn = document.querySelector('.play') const audio = new Audio('/sounds/1M.mp4') func...
2021/10/10
[ "https://Stackoverflow.com/questions/69514919", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13957027/" ]
Got Kibana working with plugins by using a custom container image dockerfile ``` FROM docker.elastic.co/kibana/kibana:7.11.2 RUN /usr/share/kibana/bin/kibana-plugin install https://github.com/fbaligand/kibana-enhanced-table/releases/download/v1.11.2/enhanced-table-1.11.2_7.11.2.zip RUN /usr/share/kibana/bin/kibana --...
Building you own image would sure work, though it could be avoided in that case. Your initContainer is pretty much what you were looking for. With one exception: you need to add some emptyDir volume. Mount it to both your initContainer and regular kibana container, sharing the plugins you would install during init. ...
19,055,539
``` $galleryData = []; foreach($input['gallery'] as $galleryImg) { } ``` I want to push in the galleryData array, a keyed array. How can I do this? I've tried: ``` $galleryData[] = ['name'=>$galleryImg['file']['name'], 'comment'=> $galleryImg['file']['comment'], 'youtube'=> $galleryImg['file']['youtube']]; ```...
2013/09/27
[ "https://Stackoverflow.com/questions/19055539", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1013512/" ]
``` $galleryData[] = array( 'name'=>$galleryImg['file']['name'], 'comment'=> $galleryImg['file']['comment'], 'youtube'=> $galleryImg['file']['youtube'] ); ``` should work
Try this: ``` $galleryData = array_map(function($a) {return $a['file'];},$input['gallery']); ``` If there are other keys, try this variant: ``` $allowedKeys = array("name","comment","youtube"); $galleryData = array_map(function($a) use ($allowedKeys) { return array_intersect_key($a['file'],array_flip($allowedKe...
17,151,709
I have a package on my TeamCity NuGet feed, built by TeamCity, but a dependent TC project cannot see it during package restore. > > [14:05:02][Exec] E:\TeamCity-BuildAgent\work\62023563850993a7\Web.nuget\nuget.targets(88, 9): Unable to find version '1.0.17.0' of package 'MarkLogicManager40'. > > > [14:05:02][Exec] ...
2013/06/17
[ "https://Stackoverflow.com/questions/17151709", "https://Stackoverflow.com", "https://Stackoverflow.com/users/107783/" ]
As of today, NuGet.targets has the following way to specify custom feed(s): ``` <ItemGroup Condition=" '$(PackageSources)' == '' "> <!-- Package sources used to restore packages. By default, registered sources under %APPDATA%\NuGet\NuGet.Config will be used --> <!-- The official NuGet package source (https://n...
Apparently NuGet custom feeds are set not via anything in the solution or project files, or nuget.config in the solution, but in the nuget.config in the developer's profile. Over on TeamCity, there's no check by the agent of this config file, or writing to it, to ensure it contains the feed for the TeamCity server its...
54,315
Is there any relationship between salesforce Reports and Folder objects, to determine the content of the folder or find the residing folder of a particular report ?
2014/10/27
[ "https://salesforce.stackexchange.com/questions/54315", "https://salesforce.stackexchange.com", "https://salesforce.stackexchange.com/users/10578/" ]
The [Report object](http://www.salesforce.com/developer/docs/api/Content/sforce_api_objects_report.htm) does not have a **FolderId** field like **Dashboard**, **Document** and **EmailTemplate** objects. But as you can see from this their does exist a **child relationship** between **[Folder](http://www.salesforce.com/d...
Reports can be created in public folders or in personal folders. It all depends on whether you want to make them available for others to use. For more details on the subject, you might want to look at [Using the Reports Tab](https://developer.salesforce.com/docs/atlas.en-us.salesforce_reports_enhanced_reports_tab_tipsh...
54,315
Is there any relationship between salesforce Reports and Folder objects, to determine the content of the folder or find the residing folder of a particular report ?
2014/10/27
[ "https://salesforce.stackexchange.com/questions/54315", "https://salesforce.stackexchange.com", "https://salesforce.stackexchange.com/users/10578/" ]
The [Report object](http://www.salesforce.com/developer/docs/api/Content/sforce_api_objects_report.htm) does not have a **FolderId** field like **Dashboard**, **Document** and **EmailTemplate** objects. But as you can see from this their does exist a **child relationship** between **[Folder](http://www.salesforce.com/d...
you could create a custom report type on report object and by editing its layout, using folder lookup relationship pull any folder fields needed. Creating a report using this report type will show folder details along with report's.
54,315
Is there any relationship between salesforce Reports and Folder objects, to determine the content of the folder or find the residing folder of a particular report ?
2014/10/27
[ "https://salesforce.stackexchange.com/questions/54315", "https://salesforce.stackexchange.com", "https://salesforce.stackexchange.com/users/10578/" ]
The [Report object](http://www.salesforce.com/developer/docs/api/Content/sforce_api_objects_report.htm) does not have a **FolderId** field like **Dashboard**, **Document** and **EmailTemplate** objects. But as you can see from this their does exist a **child relationship** between **[Folder](http://www.salesforce.com/d...
If you don't need to access Reports or Folders in code then you can simply use the 'Reports' administrative Report Type, to view all public reports and any in your My Personal Reports folder, along with the folders that they're contained in. You'll need the 'View Setup and Configuration' permission in order to access ...
122,056
On the Am/G: Is this an Am with 2nd inversion and an alternative bass note G? On the C/G: Is this a C with an alternative bass note G? [![enter image description here](https://i.stack.imgur.com/UErN3.png)](https://i.stack.imgur.com/UErN3.png)
2022/03/26
[ "https://music.stackexchange.com/questions/122056", "https://music.stackexchange.com", "https://music.stackexchange.com/users/69074/" ]
Inversions are always named from which note is *lowest*. Since in the Am bar, the lowest note is G (signified by the slash G), it actually makes an Am7 chord, and, since the G is lowest, that inversion is called 3rd. With C/G, the lowest note is G, under a C major chord. That gives it the name 2nd inversion. It matte...
C/G = CEG over G = G,C,E ...yes! (0 2nd inversion -> 5th = basstone Am/G= ACE above G = G,A,C,E. This is the 3rd inversion of Am7 Am7 root-position = A,C,E,G 1st inversion = C,E,G,A (basstone = 3rd) 2nd inversion = E,G,A,C (basstone = 5th) 3rd inversion = G,A,C,E (basstone = 7th)
122,056
On the Am/G: Is this an Am with 2nd inversion and an alternative bass note G? On the C/G: Is this a C with an alternative bass note G? [![enter image description here](https://i.stack.imgur.com/UErN3.png)](https://i.stack.imgur.com/UErN3.png)
2022/03/26
[ "https://music.stackexchange.com/questions/122056", "https://music.stackexchange.com", "https://music.stackexchange.com/users/69074/" ]
Am/G is an Am chord over the bass note G. It differs from a last-inversion Am7 chord in that the 7th, G, is specifically NOT included anywhere except as the lowest note. There's no such complication with C/G. G is part of a C major triad, so C/G is simply a second inversion C major chord.
C/G = CEG over G = G,C,E ...yes! (0 2nd inversion -> 5th = basstone Am/G= ACE above G = G,A,C,E. This is the 3rd inversion of Am7 Am7 root-position = A,C,E,G 1st inversion = C,E,G,A (basstone = 3rd) 2nd inversion = E,G,A,C (basstone = 5th) 3rd inversion = G,A,C,E (basstone = 7th)
27,584,004
I have a number n, let's say n = 5. I've calculated n! like this: 1\*2\*3\*4\*5 = 1\*2\*3\*20 = 1\*2\*60 = 1\*120 = 120; ``` int factorial(int y){ int z1 = 0; if (y != 0) goto L1; goto L7; L1: z1 = equals(y); z1 = z1 - 1; if (z1 != 0) goto L5; goto L7; L5: y = multiplication(y, z1); L2: z1 = z...
2014/12/20
[ "https://Stackoverflow.com/questions/27584004", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4016912/" ]
Linear. Your obfuscating use of labels and `goto` can be directly translated into: ``` int factorial(int y){ int z1 = 0; if (y == 0) return 1; z1 = equals(y); z1 = z1 - 1; if (z1 == 0) return 1; y = multiplication(y, z1); z1 = z1 - 1; if (z1 == 0) return y; do { y = m...
``` int factorial(int n){ if(n==1 || n==0) return 1; return n*(factorial(n-1)); ``` } This implementation has T(n)=O(n). I think that also your implementation has the same complexity because the "do while" cycle is done n times.
64,265,606
I am passing multiple values in a list and I want to filter my queryset with this values. I know about Q object but I don't know how to add filters together. I thought of something like: ``` categories = ['1','3','4'] for category in categories: Q+= Q(id = category) ``` and after that I would filter my queryset...
2020/10/08
[ "https://Stackoverflow.com/questions/64265606", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13534726/" ]
Use the following `xpath` to find the element. ``` driver.find_element_by_xpath('//td[@class="datepickerSelected"]/a[./span[text()="8"]]').click() ```
To get today's date, you can use `datetime`. See [the docs](https://docs.python.org/3/library/datetime.html) for more info. Once you have it, you can insert the day into the locator and click the element. There are a couple problems with your locator vs the HTML that you posted. ``` //td[@class="datepickerSelected"]/...
43,571,622
First attempts at getting firebase push notifications to work isn't going so well. I have followed the tutorial listed [here](https://www.codementor.io/flame3/send-push-notifications-to-android-with-firebase-du10860kb) to set it up, but whenever I try and send a notification, the app "closes unexpecedly", and the logic...
2017/04/23
[ "https://Stackoverflow.com/questions/43571622", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2901545/" ]
I haven't tested it, but I suspect that your services cannot be inner classes of `MainActivity`. It would be safer, and may be required, to declare them as non-nested classes, as is done in the sample project: [MyFirebaseInstanceIDService](https://github.com/firebase/quickstart-android/blob/master/messaging/app/src/ma...
You need to add the empty constructor in the class `MyFirebaseMessagingService` ``` public MyFirebaseMessagingService() { super("MyFirebaseMessagingService"); } ``` For explanation, you can see the details [here](https://developer.android.com/reference/android/app/IntentService.html#IntentService(java.lang.Strin...
43,571,622
First attempts at getting firebase push notifications to work isn't going so well. I have followed the tutorial listed [here](https://www.codementor.io/flame3/send-push-notifications-to-android-with-firebase-du10860kb) to set it up, but whenever I try and send a notification, the app "closes unexpecedly", and the logic...
2017/04/23
[ "https://Stackoverflow.com/questions/43571622", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2901545/" ]
You need to add the empty constructor in the class `MyFirebaseMessagingService` ``` public MyFirebaseMessagingService() { super("MyFirebaseMessagingService"); } ``` For explanation, you can see the details [here](https://developer.android.com/reference/android/app/IntentService.html#IntentService(java.lang.Strin...
check if you have different version with dependency implementation ``` implementation 'com.google.android.gms:play-services-gcm:+' implementation 'com.google.firebase:firebase-core:+' implementation 'com.google.firebase:firebase-messaging:+' ```
43,571,622
First attempts at getting firebase push notifications to work isn't going so well. I have followed the tutorial listed [here](https://www.codementor.io/flame3/send-push-notifications-to-android-with-firebase-du10860kb) to set it up, but whenever I try and send a notification, the app "closes unexpecedly", and the logic...
2017/04/23
[ "https://Stackoverflow.com/questions/43571622", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2901545/" ]
I haven't tested it, but I suspect that your services cannot be inner classes of `MainActivity`. It would be safer, and may be required, to declare them as non-nested classes, as is done in the sample project: [MyFirebaseInstanceIDService](https://github.com/firebase/quickstart-android/blob/master/messaging/app/src/ma...
check if you have different version with dependency implementation ``` implementation 'com.google.android.gms:play-services-gcm:+' implementation 'com.google.firebase:firebase-core:+' implementation 'com.google.firebase:firebase-messaging:+' ```
2,947,019
I am having weird scrolling issues in my pretty simple GridView. Each item in the Grid is simply an ImageView and a TextView. The activity itself is simply an application selector. It looks like a rough version of the basic App Tray in Android. The issue is that after spending some times scrolling through my view, it ...
2010/06/01
[ "https://Stackoverflow.com/questions/2947019", "https://Stackoverflow.com", "https://Stackoverflow.com/users/355016/" ]
i have solved it: in the link [GridView cannot show image](https://stackoverflow.com/questions/5944250/gridview-cannot-show-image/5958097#5958097) you can try
It seems that if you scroll off the bottom of the GridView and back again very fast a couple of times, you eventually will notice that the elements of the view get shifted one place to the "left" from where they originally were. When this happens, you then can scroll all the way off the top of the GridView. When you do...
2,947,019
I am having weird scrolling issues in my pretty simple GridView. Each item in the Grid is simply an ImageView and a TextView. The activity itself is simply an application selector. It looks like a rough version of the basic App Tray in Android. The issue is that after spending some times scrolling through my view, it ...
2010/06/01
[ "https://Stackoverflow.com/questions/2947019", "https://Stackoverflow.com", "https://Stackoverflow.com/users/355016/" ]
I had same problem, but I post to `GridView` only `ImageView`'s so pengwang's answer didn't help me. I found explanation for this bug <https://code.google.com/p/android/issues/detail?id=16218> > > The problem is that GridView does not currently handle items with differing heights. > > > My solution is to use exac...
It seems that if you scroll off the bottom of the GridView and back again very fast a couple of times, you eventually will notice that the elements of the view get shifted one place to the "left" from where they originally were. When this happens, you then can scroll all the way off the top of the GridView. When you do...
2,947,019
I am having weird scrolling issues in my pretty simple GridView. Each item in the Grid is simply an ImageView and a TextView. The activity itself is simply an application selector. It looks like a rough version of the basic App Tray in Android. The issue is that after spending some times scrolling through my view, it ...
2010/06/01
[ "https://Stackoverflow.com/questions/2947019", "https://Stackoverflow.com", "https://Stackoverflow.com/users/355016/" ]
It seems that if you scroll off the bottom of the GridView and back again very fast a couple of times, you eventually will notice that the elements of the view get shifted one place to the "left" from where they originally were. When this happens, you then can scroll all the way off the top of the GridView. When you do...
I just ran into this exact same issue myself -- I have a grid of images that have different heights. After reading the Android developer's doc on GridView, GridView.LayoutParams and GridLayout, I did two things that fix my issue: 1. find the tallest image in each row, and store the height in a map of row -> rowHeight....
2,947,019
I am having weird scrolling issues in my pretty simple GridView. Each item in the Grid is simply an ImageView and a TextView. The activity itself is simply an application selector. It looks like a rough version of the basic App Tray in Android. The issue is that after spending some times scrolling through my view, it ...
2010/06/01
[ "https://Stackoverflow.com/questions/2947019", "https://Stackoverflow.com", "https://Stackoverflow.com/users/355016/" ]
It seems that if you scroll off the bottom of the GridView and back again very fast a couple of times, you eventually will notice that the elements of the view get shifted one place to the "left" from where they originally were. When this happens, you then can scroll all the way off the top of the GridView. When you do...
I had a similar, but probably less common problem, where just scrolling a little bit would scroll the gridview to the end and I was not able to scroll up at all. This only occurred when the gridview was smaller, for example when the keyboard was visible. The problem was that I used: ``` android:paddingBottom="400d...
2,947,019
I am having weird scrolling issues in my pretty simple GridView. Each item in the Grid is simply an ImageView and a TextView. The activity itself is simply an application selector. It looks like a rough version of the basic App Tray in Android. The issue is that after spending some times scrolling through my view, it ...
2010/06/01
[ "https://Stackoverflow.com/questions/2947019", "https://Stackoverflow.com", "https://Stackoverflow.com/users/355016/" ]
i have solved it: in the link [GridView cannot show image](https://stackoverflow.com/questions/5944250/gridview-cannot-show-image/5958097#5958097) you can try
I had same problem, but I post to `GridView` only `ImageView`'s so pengwang's answer didn't help me. I found explanation for this bug <https://code.google.com/p/android/issues/detail?id=16218> > > The problem is that GridView does not currently handle items with differing heights. > > > My solution is to use exac...
2,947,019
I am having weird scrolling issues in my pretty simple GridView. Each item in the Grid is simply an ImageView and a TextView. The activity itself is simply an application selector. It looks like a rough version of the basic App Tray in Android. The issue is that after spending some times scrolling through my view, it ...
2010/06/01
[ "https://Stackoverflow.com/questions/2947019", "https://Stackoverflow.com", "https://Stackoverflow.com/users/355016/" ]
i have solved it: in the link [GridView cannot show image](https://stackoverflow.com/questions/5944250/gridview-cannot-show-image/5958097#5958097) you can try
I just ran into this exact same issue myself -- I have a grid of images that have different heights. After reading the Android developer's doc on GridView, GridView.LayoutParams and GridLayout, I did two things that fix my issue: 1. find the tallest image in each row, and store the height in a map of row -> rowHeight....
2,947,019
I am having weird scrolling issues in my pretty simple GridView. Each item in the Grid is simply an ImageView and a TextView. The activity itself is simply an application selector. It looks like a rough version of the basic App Tray in Android. The issue is that after spending some times scrolling through my view, it ...
2010/06/01
[ "https://Stackoverflow.com/questions/2947019", "https://Stackoverflow.com", "https://Stackoverflow.com/users/355016/" ]
i have solved it: in the link [GridView cannot show image](https://stackoverflow.com/questions/5944250/gridview-cannot-show-image/5958097#5958097) you can try
I had a similar, but probably less common problem, where just scrolling a little bit would scroll the gridview to the end and I was not able to scroll up at all. This only occurred when the gridview was smaller, for example when the keyboard was visible. The problem was that I used: ``` android:paddingBottom="400d...
2,947,019
I am having weird scrolling issues in my pretty simple GridView. Each item in the Grid is simply an ImageView and a TextView. The activity itself is simply an application selector. It looks like a rough version of the basic App Tray in Android. The issue is that after spending some times scrolling through my view, it ...
2010/06/01
[ "https://Stackoverflow.com/questions/2947019", "https://Stackoverflow.com", "https://Stackoverflow.com/users/355016/" ]
I had same problem, but I post to `GridView` only `ImageView`'s so pengwang's answer didn't help me. I found explanation for this bug <https://code.google.com/p/android/issues/detail?id=16218> > > The problem is that GridView does not currently handle items with differing heights. > > > My solution is to use exac...
I just ran into this exact same issue myself -- I have a grid of images that have different heights. After reading the Android developer's doc on GridView, GridView.LayoutParams and GridLayout, I did two things that fix my issue: 1. find the tallest image in each row, and store the height in a map of row -> rowHeight....
2,947,019
I am having weird scrolling issues in my pretty simple GridView. Each item in the Grid is simply an ImageView and a TextView. The activity itself is simply an application selector. It looks like a rough version of the basic App Tray in Android. The issue is that after spending some times scrolling through my view, it ...
2010/06/01
[ "https://Stackoverflow.com/questions/2947019", "https://Stackoverflow.com", "https://Stackoverflow.com/users/355016/" ]
I had same problem, but I post to `GridView` only `ImageView`'s so pengwang's answer didn't help me. I found explanation for this bug <https://code.google.com/p/android/issues/detail?id=16218> > > The problem is that GridView does not currently handle items with differing heights. > > > My solution is to use exac...
I had a similar, but probably less common problem, where just scrolling a little bit would scroll the gridview to the end and I was not able to scroll up at all. This only occurred when the gridview was smaller, for example when the keyboard was visible. The problem was that I used: ``` android:paddingBottom="400d...