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
45,924,821
I am trying to sort an array of object by a property `title`. This the code snippet that I am running but it does not sort anything. The array is displayed as it is. P.S I looked at previous similar questions. This one for example [here](https://stackoverflow.com/questions/1129216/sort-array-of-objects-by-string-proper...
2017/08/28
[ "https://Stackoverflow.com/questions/45924821", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8528721/" ]
Have you tried like this? It is working as expected ``` library.sort(function(a,b) {return (a.title > b.title) ? 1 : ((b.title > a.title) ? -1 : 0);} ); ``` ```js var library = [ { author: 'Bill Gates', title: 'The Road Ahead', libraryID: 1254 }, { author: 'Steve Jo...
Can you try this FOR DESC ``` library.sort(function(a,b){return a.title < b.title;}); ``` or FOR ASC ``` library.sort(function(a,b){return a.title > b.title;}); ```
45,924,821
I am trying to sort an array of object by a property `title`. This the code snippet that I am running but it does not sort anything. The array is displayed as it is. P.S I looked at previous similar questions. This one for example [here](https://stackoverflow.com/questions/1129216/sort-array-of-objects-by-string-proper...
2017/08/28
[ "https://Stackoverflow.com/questions/45924821", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8528721/" ]
Have you tried like this? It is working as expected ``` library.sort(function(a,b) {return (a.title > b.title) ? 1 : ((b.title > a.title) ? -1 : 0);} ); ``` ```js var library = [ { author: 'Bill Gates', title: 'The Road Ahead', libraryID: 1254 }, { author: 'Steve Jo...
you can try this code from <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort> ``` library.sort(function(a, b){ var tA = a.title.toUpperCase(); var tB = b.title.toUpperCase(); if (tA < tB) { return -1; } if (tA > tB) { return 1; } return 0; }) ```
45,924,821
I am trying to sort an array of object by a property `title`. This the code snippet that I am running but it does not sort anything. The array is displayed as it is. P.S I looked at previous similar questions. This one for example [here](https://stackoverflow.com/questions/1129216/sort-array-of-objects-by-string-proper...
2017/08/28
[ "https://Stackoverflow.com/questions/45924821", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8528721/" ]
Use the < or > operator when comparing strings in your compare function. [see documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort)
Can you try this FOR DESC ``` library.sort(function(a,b){return a.title < b.title;}); ``` or FOR ASC ``` library.sort(function(a,b){return a.title > b.title;}); ```
45,924,821
I am trying to sort an array of object by a property `title`. This the code snippet that I am running but it does not sort anything. The array is displayed as it is. P.S I looked at previous similar questions. This one for example [here](https://stackoverflow.com/questions/1129216/sort-array-of-objects-by-string-proper...
2017/08/28
[ "https://Stackoverflow.com/questions/45924821", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8528721/" ]
Use the < or > operator when comparing strings in your compare function. [see documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort)
you can try this code from <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort> ``` library.sort(function(a, b){ var tA = a.title.toUpperCase(); var tB = b.title.toUpperCase(); if (tA < tB) { return -1; } if (tA > tB) { return 1; } return 0; }) ```
45,924,821
I am trying to sort an array of object by a property `title`. This the code snippet that I am running but it does not sort anything. The array is displayed as it is. P.S I looked at previous similar questions. This one for example [here](https://stackoverflow.com/questions/1129216/sort-array-of-objects-by-string-proper...
2017/08/28
[ "https://Stackoverflow.com/questions/45924821", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8528721/" ]
you can try this code from <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort> ``` library.sort(function(a, b){ var tA = a.title.toUpperCase(); var tB = b.title.toUpperCase(); if (tA < tB) { return -1; } if (tA > tB) { return 1; } return 0; }) ```
Can you try this FOR DESC ``` library.sort(function(a,b){return a.title < b.title;}); ``` or FOR ASC ``` library.sort(function(a,b){return a.title > b.title;}); ```
2,997,193
so the whole concept about inverses is a little foggy. Say you have function $f(x)=\ln(e^x-3)$ and you want to know the inverse function, then: > > $$\ln(e^x-3) = y$$ > $$e^x-3 = e^y$$ > $$e^x = e^y + 3$$ > $$x=\ln(e^y+3)$$ > $$ f^{-1}(x)=\ln(e^x+3)$$ > > > So my confusion comes here, the range of the original f...
2018/11/13
[ "https://math.stackexchange.com/questions/2997193", "https://math.stackexchange.com", "https://math.stackexchange.com/users/472288/" ]
Your right that the range of $f$ is from negative infinity to positive infinity. But $f^{-1}$ is also defined from negative to positive infinity, there is no problem in that since $e^x+3>0$ for all $x$
The function $\log$ is increasing and $\exp$ is nonnegative, hence $\log(e^x+3) > \log(3) > 0.$ Also, your original function is defined only when $e^x-3 > 0$ or $x > \log 3.$
69,108,305
I am using an `Identity Experience Framework` policy to provide a Sign-Up/Sign-In journey that is working as expected. Now, I want to build a "Profile Edit" journey that uses the SSO Session State to redirect the authenticated user to our existing website that is configured to accept the Open ID Connect request. Once ...
2021/09/08
[ "https://Stackoverflow.com/questions/69108305", "https://Stackoverflow.com", "https://Stackoverflow.com/users/97946/" ]
A `serial` column will automatically create a sequence in the background. If you want to manually call `nextval()` you can use `pg_get_serial_sequence()` to obtain the sequence name: ``` select nextval(pg_get_serial_sequence('accounts', 'id')); ``` Note that the use of `serial` is [discouraged](https://wiki.postgr...
So, as it's already been stated, a serial column will create a sequence for you. Further, that sequence will be automatically incremented if you leave out the `id` field in an INSERT query. It sounds like for your back end code, you sometimes need to get the `id` value when doing an INSERT. There are two ways I know o...
22,148,724
I have a list of integers and I want to iterate over it changing some items in place: ``` for i in xrange(len(items)): ... items[i] += step ``` I don't like this `xrange(len(items))`. I could do `for i, _ in enumerate(items)`, but this is also not perfect. What do you do in such cases?
2014/03/03
[ "https://Stackoverflow.com/questions/22148724", "https://Stackoverflow.com", "https://Stackoverflow.com/users/248296/" ]
You can use list comprehension if this is a simple change: ``` items = [x + step for x in items] ``` If you can't write it as a list comprehension, `enumerate` is the way to go: ``` for i, n in enumerate(items): ... items[i] = n + step ```
another way is to use numpy arrays. with them, it's as easy as: ``` array += step ```
4,910,963
I have found this article: <http://www.zurb.com/article/221/css3-animation-will-rock-your-world> on css3 animations. --- I am trying to create a similar effect seen on the site above but on personal site at: www.imfrom.me Where I have the state of Maine, there is the red tip box. I want to create a pulse ring by t...
2011/02/06
[ "https://Stackoverflow.com/questions/4910963", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
You have a lot of unnecessary keyframes. Don't think of keyframes as individual frames, think of them as "steps" in your animation and the computer fills in the frames between the keyframes. Here is a solution that cleans up a lot of code and makes the animation start from the center: ``` .gps_ring { border: 3px ...
Or if you want a ripple pulse effect, you could use this: <http://jsfiddle.net/Fy8vD/3041/> ``` .gps_ring { border: 2px solid #fff; -webkit-border-radius: 50%; height: 18px; width: 18px; position: absolute; left:20px; top:214px; -webkit-animation: pulsate 1s ease-out; -webkit...
74,449,178
I'm new to using axios and stripe and I'm encountering some issues. When I try to make a post request with axios I receive this error: [![This is the error I receive when making a post request](https://i.stack.imgur.com/4rFrb.png)](https://i.stack.imgur.com/4rFrb.png) Perhaps my endpoint is incorrect. I'm not sure. H...
2022/11/15
[ "https://Stackoverflow.com/questions/74449178", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18076768/" ]
I think your endpoint configuration should be ``` app.post("/payments/create", ... ``` Instead of ``` app.post("/payments/create/", ... ``` Also, your endpoint is dependent on the execution of a 3rd-party service (stripe) so you better add some error handling as well. In short: ``` app.post("/payments/create/", ...
This error is of stripe, total must be in cents (100 for $ 1 dolar) ``` const paymentIntent = await stripe.paymentIntents.create({ amount: total, currency: "usd", payment_method_types: ["card"], description: "Buy a xxxx" confirm: true, }); if (pay...
7,240,349
Should I change assignee in jira issue when I've changed it state to such that other person is supposed to work on it? What is common approach? (please provide trustworthy source of your thoughts)
2011/08/30
[ "https://Stackoverflow.com/questions/7240349", "https://Stackoverflow.com", "https://Stackoverflow.com/users/448078/" ]
It depends on what you want to achieve. If you use JIRA as an issue tracker that shows everyone what is his duty to do, you should change the assignee to the person that should work on that issue now. As assignee are only allowed person with the permission to be assigned, so there may be edge case where someone else do...
The "assignee" is a main person who is responsible for the issue. It's not necessary who should work on it, but the one who should manage progress on the issue. E.g. if developer has fixed a bug, the bug reporter should test it, but it's not always possible that the reporter is available or responsible enough (it could...
7,240,349
Should I change assignee in jira issue when I've changed it state to such that other person is supposed to work on it? What is common approach? (please provide trustworthy source of your thoughts)
2011/08/30
[ "https://Stackoverflow.com/questions/7240349", "https://Stackoverflow.com", "https://Stackoverflow.com/users/448078/" ]
It depends on what you want to achieve. If you use JIRA as an issue tracker that shows everyone what is his duty to do, you should change the assignee to the person that should work on that issue now. As assignee are only allowed person with the permission to be assigned, so there may be edge case where someone else do...
I have seen also that some users change assignee to the name of reporter, in order to ping the reporter to answer their question in a comment. I deprecate this usage. It may mean that your miss a workflow step (such as "Waiting for reporter"), or have a missing a filter condition in a gadget or board, or miss notif...
6,113,380
I have a small issue actually getting variable to show - let alone how to figure out why my images are not uploading. On my form I have the following textarea - > > `<input type="file" name="imageNew" />` > > > in the page to which this form is posted I have - > > `$imagetoshow = $_REQUEST['imageNew']; > ech...
2011/05/24
[ "https://Stackoverflow.com/questions/6113380", "https://Stackoverflow.com", "https://Stackoverflow.com/users/755539/" ]
Using the bcrypt encryptor in Devise, this is what I ended up doing with my legacy data: **In models/user.rb** ``` # Because we have some old legacy users in the database, we need to override Devises method for checking if a password is valid. # We first ask Devise if the password is valid, and if it throws an Invali...
follow Thomas Dippel instructions i have made a gist that update password: <https://gist.github.com/1578362> ``` # Because we have some old legacy users in the database, we need to override Devises method for checking if a password is valid. # We first ask Devise if the password is valid, and if it throws an Inval...
6,113,380
I have a small issue actually getting variable to show - let alone how to figure out why my images are not uploading. On my form I have the following textarea - > > `<input type="file" name="imageNew" />` > > > in the page to which this form is posted I have - > > `$imagetoshow = $_REQUEST['imageNew']; > ech...
2011/05/24
[ "https://Stackoverflow.com/questions/6113380", "https://Stackoverflow.com", "https://Stackoverflow.com/users/755539/" ]
You can let Devise do the "hard work" of encrypting the password with the new crypt scheme, as shown in <https://gist.github.com/1704632>: ``` class User < ActiveRecord::Base alias :devise_valid_password? :valid_password? def valid_password?(password) begin super(password) rescue BCrypt::Errors::Inv...
Using the bcrypt encryptor in Devise, this is what I ended up doing with my legacy data: **In models/user.rb** ``` # Because we have some old legacy users in the database, we need to override Devises method for checking if a password is valid. # We first ask Devise if the password is valid, and if it throws an Invali...
6,113,380
I have a small issue actually getting variable to show - let alone how to figure out why my images are not uploading. On my form I have the following textarea - > > `<input type="file" name="imageNew" />` > > > in the page to which this form is posted I have - > > `$imagetoshow = $_REQUEST['imageNew']; > ech...
2011/05/24
[ "https://Stackoverflow.com/questions/6113380", "https://Stackoverflow.com", "https://Stackoverflow.com/users/755539/" ]
You can let Devise do the "hard work" of encrypting the password with the new crypt scheme, as shown in <https://gist.github.com/1704632>: ``` class User < ActiveRecord::Base alias :devise_valid_password? :valid_password? def valid_password?(password) begin super(password) rescue BCrypt::Errors::Inv...
follow Thomas Dippel instructions i have made a gist that update password: <https://gist.github.com/1578362> ``` # Because we have some old legacy users in the database, we need to override Devises method for checking if a password is valid. # We first ask Devise if the password is valid, and if it throws an Inval...
6,113,380
I have a small issue actually getting variable to show - let alone how to figure out why my images are not uploading. On my form I have the following textarea - > > `<input type="file" name="imageNew" />` > > > in the page to which this form is posted I have - > > `$imagetoshow = $_REQUEST['imageNew']; > ech...
2011/05/24
[ "https://Stackoverflow.com/questions/6113380", "https://Stackoverflow.com", "https://Stackoverflow.com/users/755539/" ]
First you need to copy password\_salt and encrypted\_password to your new object model Using this because I have to export my database User to another application and old, app are using devise 1.0.x and new app using 2.1.x ``` Class User < ActiveRecord::Base alias :devise_valid_password? :valid_password? def v...
follow Thomas Dippel instructions i have made a gist that update password: <https://gist.github.com/1578362> ``` # Because we have some old legacy users in the database, we need to override Devises method for checking if a password is valid. # We first ask Devise if the password is valid, and if it throws an Inval...
6,113,380
I have a small issue actually getting variable to show - let alone how to figure out why my images are not uploading. On my form I have the following textarea - > > `<input type="file" name="imageNew" />` > > > in the page to which this form is posted I have - > > `$imagetoshow = $_REQUEST['imageNew']; > ech...
2011/05/24
[ "https://Stackoverflow.com/questions/6113380", "https://Stackoverflow.com", "https://Stackoverflow.com/users/755539/" ]
If you're moving from SHA512, the solution is a bit more involved than [moeffju's SHA1 solution](https://stackoverflow.com/a/9079088/7596): ``` def valid_password?(password) if has_legacy_password? return false unless valid_legacy_password?(password) convert_legacy_password!(password) true else sup...
follow Thomas Dippel instructions i have made a gist that update password: <https://gist.github.com/1578362> ``` # Because we have some old legacy users in the database, we need to override Devises method for checking if a password is valid. # We first ask Devise if the password is valid, and if it throws an Inval...
6,113,380
I have a small issue actually getting variable to show - let alone how to figure out why my images are not uploading. On my form I have the following textarea - > > `<input type="file" name="imageNew" />` > > > in the page to which this form is posted I have - > > `$imagetoshow = $_REQUEST['imageNew']; > ech...
2011/05/24
[ "https://Stackoverflow.com/questions/6113380", "https://Stackoverflow.com", "https://Stackoverflow.com/users/755539/" ]
You can let Devise do the "hard work" of encrypting the password with the new crypt scheme, as shown in <https://gist.github.com/1704632>: ``` class User < ActiveRecord::Base alias :devise_valid_password? :valid_password? def valid_password?(password) begin super(password) rescue BCrypt::Errors::Inv...
First you need to copy password\_salt and encrypted\_password to your new object model Using this because I have to export my database User to another application and old, app are using devise 1.0.x and new app using 2.1.x ``` Class User < ActiveRecord::Base alias :devise_valid_password? :valid_password? def v...
6,113,380
I have a small issue actually getting variable to show - let alone how to figure out why my images are not uploading. On my form I have the following textarea - > > `<input type="file" name="imageNew" />` > > > in the page to which this form is posted I have - > > `$imagetoshow = $_REQUEST['imageNew']; > ech...
2011/05/24
[ "https://Stackoverflow.com/questions/6113380", "https://Stackoverflow.com", "https://Stackoverflow.com/users/755539/" ]
You can let Devise do the "hard work" of encrypting the password with the new crypt scheme, as shown in <https://gist.github.com/1704632>: ``` class User < ActiveRecord::Base alias :devise_valid_password? :valid_password? def valid_password?(password) begin super(password) rescue BCrypt::Errors::Inv...
If you're moving from SHA512, the solution is a bit more involved than [moeffju's SHA1 solution](https://stackoverflow.com/a/9079088/7596): ``` def valid_password?(password) if has_legacy_password? return false unless valid_legacy_password?(password) convert_legacy_password!(password) true else sup...
54,147,092
I rewrite my React Project with TypeScript. now I know how to declare property interface and state interface for a Class Component, simple like this: ``` export interface ComponentProps { propName: string } interface ComponentState { stateName: number } class myComponent extends React.Component<ComponentProp...
2019/01/11
[ "https://Stackoverflow.com/questions/54147092", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5946005/" ]
Class level properties can be defined after the class declartion, They can be initialized either at the time of declartion or in constructor. Change your Class To :- ``` class Checkout extends Component<CheckoutProps, State> { customProperty:string=''; //Here,you can define your class level properties st...
You can declare it within the class: ``` class myComponent extends React.Component<ComponentProps, ComponentState> { private customProperty: string = ''; componentDidMount() { this.customProperty = 'sean'; } } ```
3,532,357
how can i generate [QR Images](http://en.wikipedia.org/wiki/QR_Code) from an URL and display them on a website? ideally in PHP but any other popular server side language would work too, as long as it is not too complicated to set up. thanks!
2010/08/20
[ "https://Stackoverflow.com/questions/3532357", "https://Stackoverflow.com", "https://Stackoverflow.com/users/97688/" ]
See [Google chart](https://developers.google.com/chart/image/docs/making_charts) and it's QR code output. NOTE that it has been **deprecated** (see <https://developers.google.com/chart/terms>). Sample QR code pointing to <https://www.google.com> of 300x300 pixels: [https://chart.googleapis.com/chart?chs=300x300&cht=qr...
<http://code.google.com/p/qrforall/> is a PHP class for automatic creation of qr code images.
3,532,357
how can i generate [QR Images](http://en.wikipedia.org/wiki/QR_Code) from an URL and display them on a website? ideally in PHP but any other popular server side language would work too, as long as it is not too complicated to set up. thanks!
2010/08/20
[ "https://Stackoverflow.com/questions/3532357", "https://Stackoverflow.com", "https://Stackoverflow.com/users/97688/" ]
See [Google chart](https://developers.google.com/chart/image/docs/making_charts) and it's QR code output. NOTE that it has been **deprecated** (see <https://developers.google.com/chart/terms>). Sample QR code pointing to <https://www.google.com> of 300x300 pixels: [https://chart.googleapis.com/chart?chs=300x300&cht=qr...
As Google chart has been deprecated since April 2012, you can use <http://phpqrcode.sourceforge.net/> instead: > > PHP QR Code is open source (LGPL) library for generating QR Code, > 2-dimensional barcode. Based on libqrencode C library, provides API > for creating QR Code barcode images (PNG, JPEG thanks to GD2). ...
3,532,357
how can i generate [QR Images](http://en.wikipedia.org/wiki/QR_Code) from an URL and display them on a website? ideally in PHP but any other popular server side language would work too, as long as it is not too complicated to set up. thanks!
2010/08/20
[ "https://Stackoverflow.com/questions/3532357", "https://Stackoverflow.com", "https://Stackoverflow.com/users/97688/" ]
<http://code.google.com/p/qrforall/> is a PHP class for automatic creation of qr code images.
As Google chart has been deprecated since April 2012, you can use <http://phpqrcode.sourceforge.net/> instead: > > PHP QR Code is open source (LGPL) library for generating QR Code, > 2-dimensional barcode. Based on libqrencode C library, provides API > for creating QR Code barcode images (PNG, JPEG thanks to GD2). ...
29,055,447
In java we can not use an `int` with `if` block like this - ``` if(5){ } ``` While compiling it shows the following error - ``` incompatible types found : int required: boolean if(5){ ^ 1 errors ``` I can understand we have to always use `boolean` here. But While browsing some c++ code I ...
2015/03/14
[ "https://Stackoverflow.com/questions/29055447", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2986537/" ]
> > Does it mean all non-zero interpreted to true in C++? > > > Yes, that's right. This is an inheritance from C which didn't have a boolean type.
In C++, ints can be used as booleans. Zero is interpreted as false, and nonzero values as true. In Java, however, booleans are booleans and ints are ints: you could achieve the same effect with ``` if(i != 0) { System.out.println("int would be true in C++"); } ```
13,906,591
I'm trying to create a div header that extends the entire length of the page, but I keep getting a small white outer border on all divs so that the entire page has a thin white border around the outside. I'd like for the divs to extend to the very edge. I've tried a few different css options but none seemed to have wo...
2012/12/16
[ "https://Stackoverflow.com/questions/13906591", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
That sounds like the default margin/padding on the body. Some browsers uses margin, some (Opera) uses padding, so set both: ``` body { margin: 0; padding: 0; } ```
In general, you should be using some form of css reset or normalization. I'd check out [this one](https://github.com/necolas/normalize.css/), because it's by the master genius of css resets himself, Paul Irish.
7,965,894
The following errors i m getting when the Map app is running in phone. I create both debug key and custom apiKey using eclipse, Right click on project->Android tools->Export signed application package and then fill the form and then using keytool i got the MD5 and then apiKey. I also replace the debug apikey with cu...
2011/11/01
[ "https://Stackoverflow.com/questions/7965894", "https://Stackoverflow.com", "https://Stackoverflow.com/users/909317/" ]
In the axes property object use hidden: true. ``` { //title: 'Size', type: 'Numeric', position: 'left', hidden: true, // <------ fields: ['sizeInBytes'], minimum: 0 } ```
Short question, short answer: Just leave the `title` for the axis empty.
7,965,894
The following errors i m getting when the Map app is running in phone. I create both debug key and custom apiKey using eclipse, Right click on project->Android tools->Export signed application package and then fill the form and then using keytool i got the MD5 and then apiKey. I also replace the debug apikey with cu...
2011/11/01
[ "https://Stackoverflow.com/questions/7965894", "https://Stackoverflow.com", "https://Stackoverflow.com/users/909317/" ]
This works for me, but it looks ugly ``` label: { renderer: function(name) { return ''; } } ```
Short question, short answer: Just leave the `title` for the axis empty.
7,965,894
The following errors i m getting when the Map app is running in phone. I create both debug key and custom apiKey using eclipse, Right click on project->Android tools->Export signed application package and then fill the form and then using keytool i got the MD5 and then apiKey. I also replace the debug apikey with cu...
2011/11/01
[ "https://Stackoverflow.com/questions/7965894", "https://Stackoverflow.com", "https://Stackoverflow.com/users/909317/" ]
In the axes property object use hidden: true. ``` { //title: 'Size', type: 'Numeric', position: 'left', hidden: true, // <------ fields: ['sizeInBytes'], minimum: 0 } ```
``` { //title: 'Size', type: 'Numeric', position: 'left', fields: ['sizeInBytes'], minimum: 0, label : { return ''; } } ```
7,965,894
The following errors i m getting when the Map app is running in phone. I create both debug key and custom apiKey using eclipse, Right click on project->Android tools->Export signed application package and then fill the form and then using keytool i got the MD5 and then apiKey. I also replace the debug apikey with cu...
2011/11/01
[ "https://Stackoverflow.com/questions/7965894", "https://Stackoverflow.com", "https://Stackoverflow.com/users/909317/" ]
In the axes property object use hidden: true. ``` { //title: 'Size', type: 'Numeric', position: 'left', hidden: true, // <------ fields: ['sizeInBytes'], minimum: 0 } ```
I think what you want to do is draw the main axis line but don't render the labels for each of the axis's steps right? this seems to work for me: ``` { type : "Category", position : "bottom", fields : ["person"], title : "", hidden : false, drawLabel: function(){ return null; } } ``` -> See [dr...
7,965,894
The following errors i m getting when the Map app is running in phone. I create both debug key and custom apiKey using eclipse, Right click on project->Android tools->Export signed application package and then fill the form and then using keytool i got the MD5 and then apiKey. I also replace the debug apikey with cu...
2011/11/01
[ "https://Stackoverflow.com/questions/7965894", "https://Stackoverflow.com", "https://Stackoverflow.com/users/909317/" ]
In the axes property object use hidden: true. ``` { //title: 'Size', type: 'Numeric', position: 'left', hidden: true, // <------ fields: ['sizeInBytes'], minimum: 0 } ```
This works for me, but it looks ugly ``` label: { renderer: function(name) { return ''; } } ```
7,965,894
The following errors i m getting when the Map app is running in phone. I create both debug key and custom apiKey using eclipse, Right click on project->Android tools->Export signed application package and then fill the form and then using keytool i got the MD5 and then apiKey. I also replace the debug apikey with cu...
2011/11/01
[ "https://Stackoverflow.com/questions/7965894", "https://Stackoverflow.com", "https://Stackoverflow.com/users/909317/" ]
This works for me, but it looks ugly ``` label: { renderer: function(name) { return ''; } } ```
``` { //title: 'Size', type: 'Numeric', position: 'left', fields: ['sizeInBytes'], minimum: 0, label : { return ''; } } ```
7,965,894
The following errors i m getting when the Map app is running in phone. I create both debug key and custom apiKey using eclipse, Right click on project->Android tools->Export signed application package and then fill the form and then using keytool i got the MD5 and then apiKey. I also replace the debug apikey with cu...
2011/11/01
[ "https://Stackoverflow.com/questions/7965894", "https://Stackoverflow.com", "https://Stackoverflow.com/users/909317/" ]
This works for me, but it looks ugly ``` label: { renderer: function(name) { return ''; } } ```
I think what you want to do is draw the main axis line but don't render the labels for each of the axis's steps right? this seems to work for me: ``` { type : "Category", position : "bottom", fields : ["person"], title : "", hidden : false, drawLabel: function(){ return null; } } ``` -> See [dr...
286,462
Nuclear fusion leads to conversion of a small amount of mass in to energy. However, no (or a few) physical phenomenon appears to convert energy into mass. As we have so many stars with large scale fusion occurring at the core. Is the net mass of the universe decreasing? --- I found a relevant note on black holes, wh...
2016/10/15
[ "https://physics.stackexchange.com/questions/286462", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/-1/" ]
Dealing with the example of an isolated star. During its life, nuclear fusion ultimately results in radiation from the photosphere that carries energy into space. As a result the mass of the star must decrease, because the total mass-energy is conserved. However, another property that is conserved is the baryon number...
> > Is the total mass of the universe decreasing? > > > No. Of course, I can't prove that, but I can say that we know of no example wherein energy is not conserved. [Conservation of energy](https://en.wikipedia.org/wiki/Conservation_of_energy) applies to every situation we know. Energy can neither be created nor d...
10,869,519
Right now, I have been facing so much issue running some parts of the Spring Framework, like I have no problems running my Appengine web app with Spring MVC however have so many issues running Spring Data on top of Appengine. I wan't to know which part of the framework have been tested to work with Appengine (AE)? ...
2012/06/03
[ "https://Stackoverflow.com/questions/10869519", "https://Stackoverflow.com", "https://Stackoverflow.com/users/785349/" ]
Not really. **TL;DR:** * You can find the names of subroutines explicitly declared or placed into the object's class's namespace. * **You can NOT distinguish which of these subroutines are object methods on your object, and which are class or non-object subs** (this is the most serious problem/limintation among thos...
DVK's answer is accurate, but a bit lengthy. The short answer is yes you can, but you won't know what was intended as a public object method and what wasn't. Private methods and functions imported from other modules may show up. Simplest way to get the list of callable, concrete (ie. non-AUTOLOAD) methods is to use th...
53,637,085
I have a following date fields ``` { tripScheduleStartDate: '2018-12-05T18:30:00.000Z', tripScheduleEndDate: '2018-12-07T18:30:00.000Z', } ``` How can i get datetime array from start to end, something like this ``` [ { date: '2018-12-05T18:30:00.000Z' }, { date: '2018-12-06T18:30:00.000Z' },{ date: '2018-12-07T18...
2018/12/05
[ "https://Stackoverflow.com/questions/53637085", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10748051/" ]
PSEUDO-CODE ``` Time start = x; Time end = y tmpTime = x; timeArray = []; While (tmpTime < y) { timeArray.Add(tmpTime) tmpTime = tmpTime.AddDays(1); } ```
You could use `eachDay` from [`date-fns`](https://date-fns.org/docs/eachDay). ``` { tripScheduleStartDate: '2018-12-05T18:30:00.000Z', tripScheduleEndDate: '2018-12-07T18:30:00.000Z', } ``` Import: `import eachDay from 'date-fns/each_day'` Usage: `eachDay(tripScheduleStartDate, tripScheduleEndDate)`
53,637,085
I have a following date fields ``` { tripScheduleStartDate: '2018-12-05T18:30:00.000Z', tripScheduleEndDate: '2018-12-07T18:30:00.000Z', } ``` How can i get datetime array from start to end, something like this ``` [ { date: '2018-12-05T18:30:00.000Z' }, { date: '2018-12-06T18:30:00.000Z' },{ date: '2018-12-07T18...
2018/12/05
[ "https://Stackoverflow.com/questions/53637085", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10748051/" ]
PSEUDO-CODE ``` Time start = x; Time end = y tmpTime = x; timeArray = []; While (tmpTime < y) { timeArray.Add(tmpTime) tmpTime = tmpTime.AddDays(1); } ```
This may help you ``` Date.prototype.addDays = function(days) { var date = new Date(this.valueOf()); date.setDate(date.getDate() + days); return date; } function gettheDates(sDate, eDate) { var dateArray = new Array(); var ctDate = sDate; while (ctDate <= eDate...
39,380,071
I have written this query and i want access my user email. The query is ``` $records = $this->projectRepository->with(['customer','provider'])->all(); dd($records); foreach($records as $record) { dd($record->provider->User->email); } ``` the result of my dd($records) is as giv...
2016/09/07
[ "https://Stackoverflow.com/questions/39380071", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6806669/" ]
Generally `php.ini` is located in `/etc`, you can check where it might be by doing the following command within Terminal: ``` php -i | grep php.ini ``` **Output:** ``` Configuration File (php.ini) Path => /etc ``` If you don't have one then I would take the advice of the instructions and create one. There is a "d...
I've worked on many projects in laravel on OSX and honestly I suggest you not to set a custom enviroinment, as suggested in documentation, for development you could use: 1) [Homestead](https://laravel.com/docs/5.3/homestead) : based on Vagrant, multiplatform (it needs virtualbox or vmware) 2) [Valet](https://laravel....
7,027
My family has won most of the Pandemic (2 or 3 player games) we've played, but we ran into one recently that I thought impossible to win due to the 2 and 3 cube infections being far from Atlanta, far from each other, and not accessible with any of the cards we were dealt or received in the first few turns. We lost very...
2012/04/02
[ "https://boardgames.stackexchange.com/questions/7027", "https://boardgames.stackexchange.com", "https://boardgames.stackexchange.com/users/2260/" ]
Yes - it's possible not to be able to win. In fact it's possible to not be able to survive until the second turn. Here's an example of someone playing a game which they lost on the first turn: <http://boardgamegeek.com/thread/373797/it-takes-talent-to-lose-on-the-first-turn> Maybe they could have done better, but if ...
While the accepted answer shows that it definitely is possible, it seems highly unlikely to encounter a situation where you can prove that no win condition is possible. "I thought impossible to win due to the 2 and 3 cube infections being far from Atlanta, far from each other, and not accessible with any of the cards...
296,561
> > The ears of a rabbit are larger than ( ) of a fox. > > > > > 1 ones. 2 it. 3. those > > > I understand “those” come in the blank. How about “ones”? Why can’t “ones” come?
2021/09/01
[ "https://ell.stackexchange.com/questions/296561", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/83926/" ]
**ones** on its own is not correct, but **the ones** would be OK, though perhaps rather informal- fine for spoken English, but less acceptable in written English. This [NGram graph](https://books.google.com/ngrams/graph?content=those%20of%20a%2C%20the%20ones%20of%20a%20&year_start=1800&year_end=2019&corpus=26&smoothin...
You would at least want "the ones of a fox". or "a fox's ones" But while that may be correct grammar, only "those of a fox" is idiomatic.
62,414,294
I'm trying to compile C++ code with python embedded in it. The compiler does not compile my code with '-fPIE' flag even though I've added it in CMakeList.txt. Here's my CMakeList: ``` cmake_minimum_required(VERSION 3.3) project(TestCython) add_executable(main main.cpp) set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDA...
2020/06/16
[ "https://Stackoverflow.com/questions/62414294", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8298496/" ]
Note that most of the time this error has nothing to do with the `PIE` flag but is rather something else screwy about your build, unfortunately it’s a bit hard to tell because your CMake config is a bit screwy. This particular error however is probably because you’re setting your properties incorrectly; Setting `CMAKE...
I had similar error when I linked my library `env2048` (having a file called `ppo_buffer`) to my bindings module `env2048bindings`: ``` [build] FAILED: python/env2048bindings.cpython-37m-x86_64-linux-gnu.so [build] : && /usr/bin/g++-7 -fPIC -g -shared -o python/env2048bindings.cpython-37m-x86_64-linux-gnu.so pytho...
4,318,632
I have some pages I'm copying Chinese text into from a Word doc. I have 2 kind of HTML documents. Some are parent pages, with a full head tag, and meta tag, where I have spec'd: ``` <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> ``` I also have some snippets that just start with `<div>` because ...
2010/11/30
[ "https://Stackoverflow.com/questions/4318632", "https://Stackoverflow.com", "https://Stackoverflow.com/users/297024/" ]
You cannot do so reliably without some sort of metadata; in HTML, that is what the `<meta>` tag is for. (Otherwise the browser will have to guess, and uses the default that the user has chosen. Which, in most cases, is anything but what one expects.)
Dreamweaver also has to determine the encoding of the files it opens, and in the absence of metadata it will presumably use the same techniques as a web browser (such as detecting byte sequences / character distributions that are only likely to appear in a specific encoding) to come up with a best guess. This is the l...
64,414,589
I'm trying to make a program that tell me if my array is sorted (ascending and descending). I created a function and if return true, the array is already sorted and if return false, the array is not sorted. Actually, always get "Is not sorted". I don't know if logic is correct, but I think yes, I don't know. Can you...
2020/10/18
[ "https://Stackoverflow.com/questions/64414589", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9405234/" ]
I have changed `isSorted()` method and added some comments. ``` import java.util.Scanner; public class SortedOrNot { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[] myArray = new int[10]; System.out.print("Enter 10 numbers: "); for (int i = 0; i < myArray.len...
the Second for should starts from i+1 and you should compare count1 and count2 with 45.
64,414,589
I'm trying to make a program that tell me if my array is sorted (ascending and descending). I created a function and if return true, the array is already sorted and if return false, the array is not sorted. Actually, always get "Is not sorted". I don't know if logic is correct, but I think yes, I don't know. Can you...
2020/10/18
[ "https://Stackoverflow.com/questions/64414589", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9405234/" ]
You can use Arrays.sort() method for this: ``` import java.util.Arrays; import java.util.Collections; public class CheckSortedArray { public static void main(String[] args) { Integer[] arr = { 1, 2, 3, 6, 9, 100 }; Integer[] arr2 = { 1, -2, 3, 6, 9, 100 }; Integer[] arr3 = { 9, 7, 0, -1, -...
the Second for should starts from i+1 and you should compare count1 and count2 with 45.
64,362,171
I need to bring that two plots together but when I use Bar graph(Primary) and then Line graphs (Secondary), it works fine. It do not work if I alter the sequence in the lines of codes as regarding the plot. ``` import matplotlib.pyplot as plt import numpy as np import pandas as pd flatui1 = ["#0C6514", "#18AB25"] fla...
2020/10/14
[ "https://Stackoverflow.com/questions/64362171", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9771547/" ]
Looks like I could inject a `TemplateBinderFactory` into my controller and create an instance of the `TemplateBinder` class. Then use the `BindValues()` method to apply the templates. I'll want to make some tweaks for my needs, but this is basically it. ```cs private readonly TemplateBinderFactory templateBinderFacto...
Before dotnet 3.0 you don't have a `TemplateBinderFactory`, so if you're bound to an earlier version (like me), see [TemplateBinderTests.cs](https://github.com/aspnet/Routing/blob/2.2.0/test/Microsoft.AspNetCore.Routing.Tests/Template/TemplateBinderTests.cs) for sample usage of `TemplateBinder`, e.g. ```cs // obtain t...
2,837,351
*NOTE: I know similar questions have already been asked [here](https://stackoverflow.com/questions/613808/is-it-possible-to-load-multiple-different-version-of-jquery-on-the-same-page) and [here](https://stackoverflow.com/questions/1117463/two-jquery-versions-on-the-same-page), but I'm looking for additional clarificati...
2010/05/14
[ "https://Stackoverflow.com/questions/2837351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/166258/" ]
You can use the jQuery [noConflict](http://api.jquery.com/jQuery.noConflict/) method to achieve this. ``` <script type="text/javascript" src="jquery-1.1.3.js"></script> <script type="text/javascript" src="jquery-1.4.2.js"></script> <script type="text/javascript"> //Here, $ refers to the most recent jquery script l...
Fix your old code to work with a recent jQuery version. Everything else is extremely hackish and will call the wrath of all developers who might have to work with your code in the future on you.
2,837,351
*NOTE: I know similar questions have already been asked [here](https://stackoverflow.com/questions/613808/is-it-possible-to-load-multiple-different-version-of-jquery-on-the-same-page) and [here](https://stackoverflow.com/questions/1117463/two-jquery-versions-on-the-same-page), but I'm looking for additional clarificati...
2010/05/14
[ "https://Stackoverflow.com/questions/2837351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/166258/" ]
You can use the jQuery [noConflict](http://api.jquery.com/jQuery.noConflict/) method to achieve this. ``` <script type="text/javascript" src="jquery-1.1.3.js"></script> <script type="text/javascript" src="jquery-1.4.2.js"></script> <script type="text/javascript"> //Here, $ refers to the most recent jquery script l...
*Possible*? Yes, in the same way that it's possible to run jQuery and another framework that uses the name `$` at the same time. Include one copy of jQuery and assign it to a new name using `noConflict`, then do the same to another copy. *A good idea*? Really **no**, in the same way that running jQuery and another fra...
2,837,351
*NOTE: I know similar questions have already been asked [here](https://stackoverflow.com/questions/613808/is-it-possible-to-load-multiple-different-version-of-jquery-on-the-same-page) and [here](https://stackoverflow.com/questions/1117463/two-jquery-versions-on-the-same-page), but I'm looking for additional clarificati...
2010/05/14
[ "https://Stackoverflow.com/questions/2837351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/166258/" ]
You can use the jQuery [noConflict](http://api.jquery.com/jQuery.noConflict/) method to achieve this. ``` <script type="text/javascript" src="jquery-1.1.3.js"></script> <script type="text/javascript" src="jquery-1.4.2.js"></script> <script type="text/javascript"> //Here, $ refers to the most recent jquery script l...
You should not do this what so ever, `$.noConflict()` won't really help you in all cases. This is because, internally, jQuery uses the alias name `jQuery` so forget about any dollar sign `$` re-assinging... if you will use any code that's using jQuery like this: `jQuery('div').doSomethingDepricated()` then it ...
2,837,351
*NOTE: I know similar questions have already been asked [here](https://stackoverflow.com/questions/613808/is-it-possible-to-load-multiple-different-version-of-jquery-on-the-same-page) and [here](https://stackoverflow.com/questions/1117463/two-jquery-versions-on-the-same-page), but I'm looking for additional clarificati...
2010/05/14
[ "https://Stackoverflow.com/questions/2837351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/166258/" ]
You can use the jQuery [noConflict](http://api.jquery.com/jQuery.noConflict/) method to achieve this. ``` <script type="text/javascript" src="jquery-1.1.3.js"></script> <script type="text/javascript" src="jquery-1.4.2.js"></script> <script type="text/javascript"> //Here, $ refers to the most recent jquery script l...
As an extension of EndangeredMassa's solution, I propose the following modification: ``` <script type="text/javascript" src="jquery-1.1.3.js"></script> <script type="text/javascript" src="jquery-1.4.2.js"></script> <script type="text/javascript"> //Here, $ refers to the most recent jquery script loaded, which is v...
2,837,351
*NOTE: I know similar questions have already been asked [here](https://stackoverflow.com/questions/613808/is-it-possible-to-load-multiple-different-version-of-jquery-on-the-same-page) and [here](https://stackoverflow.com/questions/1117463/two-jquery-versions-on-the-same-page), but I'm looking for additional clarificati...
2010/05/14
[ "https://Stackoverflow.com/questions/2837351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/166258/" ]
*Possible*? Yes, in the same way that it's possible to run jQuery and another framework that uses the name `$` at the same time. Include one copy of jQuery and assign it to a new name using `noConflict`, then do the same to another copy. *A good idea*? Really **no**, in the same way that running jQuery and another fra...
Fix your old code to work with a recent jQuery version. Everything else is extremely hackish and will call the wrath of all developers who might have to work with your code in the future on you.
2,837,351
*NOTE: I know similar questions have already been asked [here](https://stackoverflow.com/questions/613808/is-it-possible-to-load-multiple-different-version-of-jquery-on-the-same-page) and [here](https://stackoverflow.com/questions/1117463/two-jquery-versions-on-the-same-page), but I'm looking for additional clarificati...
2010/05/14
[ "https://Stackoverflow.com/questions/2837351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/166258/" ]
You should not do this what so ever, `$.noConflict()` won't really help you in all cases. This is because, internally, jQuery uses the alias name `jQuery` so forget about any dollar sign `$` re-assinging... if you will use any code that's using jQuery like this: `jQuery('div').doSomethingDepricated()` then it ...
Fix your old code to work with a recent jQuery version. Everything else is extremely hackish and will call the wrath of all developers who might have to work with your code in the future on you.
2,837,351
*NOTE: I know similar questions have already been asked [here](https://stackoverflow.com/questions/613808/is-it-possible-to-load-multiple-different-version-of-jquery-on-the-same-page) and [here](https://stackoverflow.com/questions/1117463/two-jquery-versions-on-the-same-page), but I'm looking for additional clarificati...
2010/05/14
[ "https://Stackoverflow.com/questions/2837351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/166258/" ]
As an extension of EndangeredMassa's solution, I propose the following modification: ``` <script type="text/javascript" src="jquery-1.1.3.js"></script> <script type="text/javascript" src="jquery-1.4.2.js"></script> <script type="text/javascript"> //Here, $ refers to the most recent jquery script loaded, which is v...
Fix your old code to work with a recent jQuery version. Everything else is extremely hackish and will call the wrath of all developers who might have to work with your code in the future on you.
2,837,351
*NOTE: I know similar questions have already been asked [here](https://stackoverflow.com/questions/613808/is-it-possible-to-load-multiple-different-version-of-jquery-on-the-same-page) and [here](https://stackoverflow.com/questions/1117463/two-jquery-versions-on-the-same-page), but I'm looking for additional clarificati...
2010/05/14
[ "https://Stackoverflow.com/questions/2837351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/166258/" ]
*Possible*? Yes, in the same way that it's possible to run jQuery and another framework that uses the name `$` at the same time. Include one copy of jQuery and assign it to a new name using `noConflict`, then do the same to another copy. *A good idea*? Really **no**, in the same way that running jQuery and another fra...
You should not do this what so ever, `$.noConflict()` won't really help you in all cases. This is because, internally, jQuery uses the alias name `jQuery` so forget about any dollar sign `$` re-assinging... if you will use any code that's using jQuery like this: `jQuery('div').doSomethingDepricated()` then it ...
2,837,351
*NOTE: I know similar questions have already been asked [here](https://stackoverflow.com/questions/613808/is-it-possible-to-load-multiple-different-version-of-jquery-on-the-same-page) and [here](https://stackoverflow.com/questions/1117463/two-jquery-versions-on-the-same-page), but I'm looking for additional clarificati...
2010/05/14
[ "https://Stackoverflow.com/questions/2837351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/166258/" ]
*Possible*? Yes, in the same way that it's possible to run jQuery and another framework that uses the name `$` at the same time. Include one copy of jQuery and assign it to a new name using `noConflict`, then do the same to another copy. *A good idea*? Really **no**, in the same way that running jQuery and another fra...
As an extension of EndangeredMassa's solution, I propose the following modification: ``` <script type="text/javascript" src="jquery-1.1.3.js"></script> <script type="text/javascript" src="jquery-1.4.2.js"></script> <script type="text/javascript"> //Here, $ refers to the most recent jquery script loaded, which is v...
2,837,351
*NOTE: I know similar questions have already been asked [here](https://stackoverflow.com/questions/613808/is-it-possible-to-load-multiple-different-version-of-jquery-on-the-same-page) and [here](https://stackoverflow.com/questions/1117463/two-jquery-versions-on-the-same-page), but I'm looking for additional clarificati...
2010/05/14
[ "https://Stackoverflow.com/questions/2837351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/166258/" ]
You should not do this what so ever, `$.noConflict()` won't really help you in all cases. This is because, internally, jQuery uses the alias name `jQuery` so forget about any dollar sign `$` re-assinging... if you will use any code that's using jQuery like this: `jQuery('div').doSomethingDepricated()` then it ...
As an extension of EndangeredMassa's solution, I propose the following modification: ``` <script type="text/javascript" src="jquery-1.1.3.js"></script> <script type="text/javascript" src="jquery-1.4.2.js"></script> <script type="text/javascript"> //Here, $ refers to the most recent jquery script loaded, which is v...
30,639,272
``` PROCEDURE SP_PROCESS_RATE_PLAN IS var_cursor INTEGER; prv_rp_update_sql VARCHAR2(4000); prv_rp_insert_sql VARCHAR2(4000); v_Dummy INTEGER; SQL_STATEMENT VARCHAR2(400); /* Massage the data into the Rate_Plan table */ BEGIN /...
2015/06/04
[ "https://Stackoverflow.com/questions/30639272", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4972929/" ]
The problem is that there are two object-compatible and single-argument setType methods and you call it with `null`. Or to be more precise, you don't call the method, you set the property, which results in the method call. Now before Groovy 2.4 we had no support for the overloaded case. Which method was invoked was ac...
You should probably [ask](https://github.com/membrane/soa-model/issues) SOA Membrane to edit [Element](https://github.com/membrane/soa-model/blob/master/core/src/main/groovy/com/predic8/schema/Element.groovy)'s ``` type = getTypeQName(token.getAttributeValue( null , 'type')) ``` to something like ``` type = (QName)...
30,639,272
``` PROCEDURE SP_PROCESS_RATE_PLAN IS var_cursor INTEGER; prv_rp_update_sql VARCHAR2(4000); prv_rp_insert_sql VARCHAR2(4000); v_Dummy INTEGER; SQL_STATEMENT VARCHAR2(400); /* Massage the data into the Rate_Plan table */ BEGIN /...
2015/06/04
[ "https://Stackoverflow.com/questions/30639272", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4972929/" ]
You should probably [ask](https://github.com/membrane/soa-model/issues) SOA Membrane to edit [Element](https://github.com/membrane/soa-model/blob/master/core/src/main/groovy/com/predic8/schema/Element.groovy)'s ``` type = getTypeQName(token.getAttributeValue( null , 'type')) ``` to something like ``` type = (QName)...
Upgrade to 1.6.0. E.g. for Gradle build script: ``` compile "com.predic8:soa-model-core:1.6.0" ```
30,639,272
``` PROCEDURE SP_PROCESS_RATE_PLAN IS var_cursor INTEGER; prv_rp_update_sql VARCHAR2(4000); prv_rp_insert_sql VARCHAR2(4000); v_Dummy INTEGER; SQL_STATEMENT VARCHAR2(400); /* Massage the data into the Rate_Plan table */ BEGIN /...
2015/06/04
[ "https://Stackoverflow.com/questions/30639272", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4972929/" ]
The problem is that there are two object-compatible and single-argument setType methods and you call it with `null`. Or to be more precise, you don't call the method, you set the property, which results in the method call. Now before Groovy 2.4 we had no support for the overloaded case. Which method was invoked was ac...
Upgrade to 1.6.0. E.g. for Gradle build script: ``` compile "com.predic8:soa-model-core:1.6.0" ```
112,847
I have a keypad circuit, when I press and hold a key, the signal "key\_pressed" is always high, as long as I keep the key pressed, which is normal, when I leave it, it gets low again. But I don't want this signal to be constantly high, no matter how long I press the key, I would like to be detected as a single short pr...
2014/06/02
[ "https://electronics.stackexchange.com/questions/112847", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/41153/" ]
The way I do this in firmware is to detect a change in the input (after rejecting noise and bounce) and then generate an event based on key press or an even based on key release for each key. You can then use the key press and release events, in conjunction with timers to do all the usual functions you associate with...
I'd say you're looking for a monostable multivibrator. You can make them from a 555 timer, or use a dedicated chip. For TTL, it's available as the 74xx123 component. They work by detecting an edge and outputting a programmable duration pulse. You can set the pulse parameters with external resistors and caps, if I remem...
112,847
I have a keypad circuit, when I press and hold a key, the signal "key\_pressed" is always high, as long as I keep the key pressed, which is normal, when I leave it, it gets low again. But I don't want this signal to be constantly high, no matter how long I press the key, I would like to be detected as a single short pr...
2014/06/02
[ "https://electronics.stackexchange.com/questions/112847", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/41153/" ]
You need a *rising* edge detector. This is done by generating a delayed input that is 1 clock cycle later than the actual input. For example: ``` ____ ____ ____ ____ ____ ____ ____ ____ CLock ___/ \___/ \___/ \___/ \___/ \___/ \___/ \___/ \...
I'd say you're looking for a monostable multivibrator. You can make them from a 555 timer, or use a dedicated chip. For TTL, it's available as the 74xx123 component. They work by detecting an edge and outputting a programmable duration pulse. You can set the pulse parameters with external resistors and caps, if I remem...
112,847
I have a keypad circuit, when I press and hold a key, the signal "key\_pressed" is always high, as long as I keep the key pressed, which is normal, when I leave it, it gets low again. But I don't want this signal to be constantly high, no matter how long I press the key, I would like to be detected as a single short pr...
2014/06/02
[ "https://electronics.stackexchange.com/questions/112847", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/41153/" ]
You need a *rising* edge detector. This is done by generating a delayed input that is 1 clock cycle later than the actual input. For example: ``` ____ ____ ____ ____ ____ ____ ____ ____ CLock ___/ \___/ \___/ \___/ \___/ \___/ \___/ \___/ \...
The way I do this in firmware is to detect a change in the input (after rejecting noise and bounce) and then generate an event based on key press or an even based on key release for each key. You can then use the key press and release events, in conjunction with timers to do all the usual functions you associate with...
632,541
I am trying to follow the directions in [Can Windows 7 Task scheduler start a playlist in Windows Media Player 11?](https://superuser.com/questions/479422/can-windows-7-task-scheduler-start-a-playlist-in-windows-media-player-11), but it is not working for me. It may be because * I want to play video rather than audio...
2013/08/16
[ "https://superuser.com/questions/632541", "https://superuser.com", "https://superuser.com/users/219755/" ]
Go to Control Panel Users and set the option so Control-Alt-Delete isn't required. Look at your BIOS settings for various power saving sleep states and play with those. S1 S3 S5 and all that. In Device Manager for your video card see if there are power/wake options. I know this isn't an answer, but it's a few things I'...
If the task wakes up the computer but gets stuck in the login screen ~~use the group policy to add your username into this:~~ > > Computer Configuration-->Policies-->Windows Settings-->Security > Settings-->Local Policies-->User Rights Assignment--> allow logon > locally > > > > Actually, **the task does not ...
632,541
I am trying to follow the directions in [Can Windows 7 Task scheduler start a playlist in Windows Media Player 11?](https://superuser.com/questions/479422/can-windows-7-task-scheduler-start-a-playlist-in-windows-media-player-11), but it is not working for me. It may be because * I want to play video rather than audio...
2013/08/16
[ "https://superuser.com/questions/632541", "https://superuser.com", "https://superuser.com/users/219755/" ]
What ended up working for me was disabling Windows presenting the lock screen upon waking from Sleep mode (or Hibernate mode, I imagine). I found the instructions here: <http://www.pha-tech.com/resources/computer/other_win_tutorial/How_to_Enable_or_Disable_Lock_Screen_after_Waking_Windows.php> In short, though it's: ...
If the task wakes up the computer but gets stuck in the login screen ~~use the group policy to add your username into this:~~ > > Computer Configuration-->Policies-->Windows Settings-->Security > Settings-->Local Policies-->User Rights Assignment--> allow logon > locally > > > > Actually, **the task does not ...
16,945,561
``` namespace TestApp { class Program { public Program() { var breakpoint1 = 0; } static void Main(string[] arguments) { var breakpoint2 = 0; } } } ``` 1. Why *`breakpoint 1`* is never hit , but it hits *`breakpoint 2`* always? 2. And is there a way to execute the default co...
2013/06/05
[ "https://Stackoverflow.com/questions/16945561", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1518685/" ]
You are not instantiating the class. You are running a `static Main()` method. The run time will load the class and invoke the `Main()` method .It doesn't need an instance of the class to invoke the `Main()` method. Constructor will run when you construct(instantiate) an object.
The entry point to your program is equivalent to calling `TestApp.Program.Main(args)`. The `Program` class doesn't get instantiated.
16,945,561
``` namespace TestApp { class Program { public Program() { var breakpoint1 = 0; } static void Main(string[] arguments) { var breakpoint2 = 0; } } } ``` 1. Why *`breakpoint 1`* is never hit , but it hits *`breakpoint 2`* always? 2. And is there a way to execute the default co...
2013/06/05
[ "https://Stackoverflow.com/questions/16945561", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1518685/" ]
You are not instantiating the class. You are running a `static Main()` method. The run time will load the class and invoke the `Main()` method .It doesn't need an instance of the class to invoke the `Main()` method. Constructor will run when you construct(instantiate) an object.
Your method is static: it will run without an instance of the class existing. Your constructor is not: it is only executed when you create an instance of the class (that is, when you write `new Program()`). In order to hit your breakpoint, most likely you want to change your constructor to be `static Program()` instea...
16,945,561
``` namespace TestApp { class Program { public Program() { var breakpoint1 = 0; } static void Main(string[] arguments) { var breakpoint2 = 0; } } } ``` 1. Why *`breakpoint 1`* is never hit , but it hits *`breakpoint 2`* always? 2. And is there a way to execute the default co...
2013/06/05
[ "https://Stackoverflow.com/questions/16945561", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1518685/" ]
The `Main` method is executed without an instance of the `Program` class, which is possible because it is a static method. Static methods are methods that can be called without the need to construct/instantiate an object from the class. They can be called directly on the Class itself like this: ``` Program.Main(new st...
You are not instantiating the class. You are running a `static Main()` method. The run time will load the class and invoke the `Main()` method .It doesn't need an instance of the class to invoke the `Main()` method. Constructor will run when you construct(instantiate) an object.
16,945,561
``` namespace TestApp { class Program { public Program() { var breakpoint1 = 0; } static void Main(string[] arguments) { var breakpoint2 = 0; } } } ``` 1. Why *`breakpoint 1`* is never hit , but it hits *`breakpoint 2`* always? 2. And is there a way to execute the default co...
2013/06/05
[ "https://Stackoverflow.com/questions/16945561", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1518685/" ]
Your method is static: it will run without an instance of the class existing. Your constructor is not: it is only executed when you create an instance of the class (that is, when you write `new Program()`). In order to hit your breakpoint, most likely you want to change your constructor to be `static Program()` instea...
The entry point to your program is equivalent to calling `TestApp.Program.Main(args)`. The `Program` class doesn't get instantiated.
16,945,561
``` namespace TestApp { class Program { public Program() { var breakpoint1 = 0; } static void Main(string[] arguments) { var breakpoint2 = 0; } } } ``` 1. Why *`breakpoint 1`* is never hit , but it hits *`breakpoint 2`* always? 2. And is there a way to execute the default co...
2013/06/05
[ "https://Stackoverflow.com/questions/16945561", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1518685/" ]
The `Main` method is executed without an instance of the `Program` class, which is possible because it is a static method. Static methods are methods that can be called without the need to construct/instantiate an object from the class. They can be called directly on the Class itself like this: ``` Program.Main(new st...
The entry point to your program is equivalent to calling `TestApp.Program.Main(args)`. The `Program` class doesn't get instantiated.
16,945,561
``` namespace TestApp { class Program { public Program() { var breakpoint1 = 0; } static void Main(string[] arguments) { var breakpoint2 = 0; } } } ``` 1. Why *`breakpoint 1`* is never hit , but it hits *`breakpoint 2`* always? 2. And is there a way to execute the default co...
2013/06/05
[ "https://Stackoverflow.com/questions/16945561", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1518685/" ]
The `Main` method is executed without an instance of the `Program` class, which is possible because it is a static method. Static methods are methods that can be called without the need to construct/instantiate an object from the class. They can be called directly on the Class itself like this: ``` Program.Main(new st...
Your method is static: it will run without an instance of the class existing. Your constructor is not: it is only executed when you create an instance of the class (that is, when you write `new Program()`). In order to hit your breakpoint, most likely you want to change your constructor to be `static Program()` instea...
6,201,950
I've recently launched a web app written in C#/.net 4.0 making extensive use of jQuery & jQuery UI to give the best possible user experience. However some users have reported problems when using the site through an iPhone or Android devices. **What is the best accepted method of detecting both iOS and Android?** so t...
2011/06/01
[ "https://Stackoverflow.com/questions/6201950", "https://Stackoverflow.com", "https://Stackoverflow.com/users/86218/" ]
Generically speaking, you should detect the browser server side, and then render the correct templates/viewport to the browser. Check the user agent string sent to the server, by the browser - iOS generally contains the substring, "iPhone" and Android uses "Android" followed by the version number ("Android 2.2")
Here's an ASP.NET extension that (apparently, I haven't used it) does all that for you :) <http://51degrees.codeplex.com/>
6,201,950
I've recently launched a web app written in C#/.net 4.0 making extensive use of jQuery & jQuery UI to give the best possible user experience. However some users have reported problems when using the site through an iPhone or Android devices. **What is the best accepted method of detecting both iOS and Android?** so t...
2011/06/01
[ "https://Stackoverflow.com/questions/6201950", "https://Stackoverflow.com", "https://Stackoverflow.com/users/86218/" ]
Generically speaking, you should detect the browser server side, and then render the correct templates/viewport to the browser. Check the user agent string sent to the server, by the browser - iOS generally contains the substring, "iPhone" and Android uses "Android" followed by the version number ("Android 2.2")
IsMobileDevice does not give correct response on my Android phone. Here is the code I have used. ``` <%@ Page Language="C#" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server"> protected void TextBox1_TextChanged(object...
6,201,950
I've recently launched a web app written in C#/.net 4.0 making extensive use of jQuery & jQuery UI to give the best possible user experience. However some users have reported problems when using the site through an iPhone or Android devices. **What is the best accepted method of detecting both iOS and Android?** so t...
2011/06/01
[ "https://Stackoverflow.com/questions/6201950", "https://Stackoverflow.com", "https://Stackoverflow.com/users/86218/" ]
Generically speaking, you should detect the browser server side, and then render the correct templates/viewport to the browser. Check the user agent string sent to the server, by the browser - iOS generally contains the substring, "iPhone" and Android uses "Android" followed by the version number ("Android 2.2")
I think the best solution is to try the string ``` Request.ServerVariables["HTTP_USER_AGENT"] ``` That will return the word android for android devices so far. Windows is easy to detect. Somebody help me with the other fruit. See more detailed solution at <http://www.codeproject.com/Articles/34422/Detecting-a-mobi...
6,201,950
I've recently launched a web app written in C#/.net 4.0 making extensive use of jQuery & jQuery UI to give the best possible user experience. However some users have reported problems when using the site through an iPhone or Android devices. **What is the best accepted method of detecting both iOS and Android?** so t...
2011/06/01
[ "https://Stackoverflow.com/questions/6201950", "https://Stackoverflow.com", "https://Stackoverflow.com/users/86218/" ]
Here's an ASP.NET extension that (apparently, I haven't used it) does all that for you :) <http://51degrees.codeplex.com/>
IsMobileDevice does not give correct response on my Android phone. Here is the code I have used. ``` <%@ Page Language="C#" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server"> protected void TextBox1_TextChanged(object...
6,201,950
I've recently launched a web app written in C#/.net 4.0 making extensive use of jQuery & jQuery UI to give the best possible user experience. However some users have reported problems when using the site through an iPhone or Android devices. **What is the best accepted method of detecting both iOS and Android?** so t...
2011/06/01
[ "https://Stackoverflow.com/questions/6201950", "https://Stackoverflow.com", "https://Stackoverflow.com/users/86218/" ]
I think the best solution is to try the string ``` Request.ServerVariables["HTTP_USER_AGENT"] ``` That will return the word android for android devices so far. Windows is easy to detect. Somebody help me with the other fruit. See more detailed solution at <http://www.codeproject.com/Articles/34422/Detecting-a-mobi...
Here's an ASP.NET extension that (apparently, I haven't used it) does all that for you :) <http://51degrees.codeplex.com/>
6,201,950
I've recently launched a web app written in C#/.net 4.0 making extensive use of jQuery & jQuery UI to give the best possible user experience. However some users have reported problems when using the site through an iPhone or Android devices. **What is the best accepted method of detecting both iOS and Android?** so t...
2011/06/01
[ "https://Stackoverflow.com/questions/6201950", "https://Stackoverflow.com", "https://Stackoverflow.com/users/86218/" ]
I think the best solution is to try the string ``` Request.ServerVariables["HTTP_USER_AGENT"] ``` That will return the word android for android devices so far. Windows is easy to detect. Somebody help me with the other fruit. See more detailed solution at <http://www.codeproject.com/Articles/34422/Detecting-a-mobi...
IsMobileDevice does not give correct response on my Android phone. Here is the code I have used. ``` <%@ Page Language="C#" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server"> protected void TextBox1_TextChanged(object...
4,480
Fairly new player here - I've been using an online practice game (vs AI) as a tool to start off with. In their games, if someone goes all-in before the flop and no one calls them on it, that player is then out of the game/loses all their chips. Is this true of other poker games or is it just a glitch of the practice sy...
2015/01/04
[ "https://poker.stackexchange.com/questions/4480", "https://poker.stackexchange.com", "https://poker.stackexchange.com/users/1943/" ]
That sounds like an error within the software; real poker games have nothing similar to that function.
No, that's ridiculous of course. Either you misunderstand what's happening or that software is worthless.
4,480
Fairly new player here - I've been using an online practice game (vs AI) as a tool to start off with. In their games, if someone goes all-in before the flop and no one calls them on it, that player is then out of the game/loses all their chips. Is this true of other poker games or is it just a glitch of the practice sy...
2015/01/04
[ "https://poker.stackexchange.com/questions/4480", "https://poker.stackexchange.com", "https://poker.stackexchange.com/users/1943/" ]
That sounds like an error within the software; real poker games have nothing similar to that function.
A real Normal player with there functionality won't go all in without the flop. Which game do you have played ? I really recommend Zynga Poker in facebook for begginers :)
4,480
Fairly new player here - I've been using an online practice game (vs AI) as a tool to start off with. In their games, if someone goes all-in before the flop and no one calls them on it, that player is then out of the game/loses all their chips. Is this true of other poker games or is it just a glitch of the practice sy...
2015/01/04
[ "https://poker.stackexchange.com/questions/4480", "https://poker.stackexchange.com", "https://poker.stackexchange.com/users/1943/" ]
No, that's ridiculous of course. Either you misunderstand what's happening or that software is worthless.
A real Normal player with there functionality won't go all in without the flop. Which game do you have played ? I really recommend Zynga Poker in facebook for begginers :)
465,718
I want to write notes (in HTML format) when learning Linux. When I need to note colorful terminal text output, I want the color of terminal text can be remained in my notes, e.g.: ``` Note 1: Test The output of xx command is <pre> [root@webserver ~]# ll / total 100 drwxrwxrwt. 7 root root 4096 8月 24 12:22 <span ...
2012/08/24
[ "https://superuser.com/questions/465718", "https://superuser.com", "https://superuser.com/users/79812/" ]
Use the [script](http://linux.die.net/man/1/script) utility to capture the terminal output to a file (ansi color control characters included) and then convert it to html with [ansi2html](https://github.com/pixelb/scripts/blob/master/scripts/ansi2html.sh) script. Eg: ``` inigo:tmp> script Script started, file is typesc...
After seven years and nine months, putty still don't support 'Copy as HTML' feature. I had already turned to Fedora linux as my primary operating system for work for about six years and nine months because of end-of-life of Windows XP. Now, **gnome-terminal** v3.x had added 'Copy as HTML' feature for 3 years ([git co...
21,406,320
In my asp.net application I have used JavaScript confirm box for user confirmation. Here is the code: **EDIT :** ``` <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" OnClientClick="return confirm('Are you sure you want to proceed with the delete?');"/> ``` This is working grate `Button1...
2014/01/28
[ "https://Stackoverflow.com/questions/21406320", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1296450/" ]
The Sentry docs are pretty bare bones. You can do this to get the groups belonging to a user: ``` $user = User::findOrFail($id); $user->getGroups(); foreach($user->groups as $group) { echo $group->name; } ```
According to the [sentry docs](https://cartalyst.com/manual/sentry/users/helpers#getgroups) perform the `getGroups()` Method on the user.
6,095,919
I am using the following code to get the current location namely (latitude and longitude), but I am not getting current location (latitude and longitude). Anyone knows why? ``` package com.ram.currentlocation; import android.app.Activity; import android.content.Context; import android.location.Location; import a...
2011/05/23
[ "https://Stackoverflow.com/questions/6095919", "https://Stackoverflow.com", "https://Stackoverflow.com/users/674510/" ]
You have a mistake in your manifest file. Correct one is: ``` <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> ```
In your android manifest did you set the permissions? ``` android.permission.ACCESS_FINE_LOCATION ``` As far as only getting (0,0) co-ords you're probably using the emulator. If you're using eclipse go to the emulator control and at the bottom you can send the fake co-ords to the device
6,095,919
I am using the following code to get the current location namely (latitude and longitude), but I am not getting current location (latitude and longitude). Anyone knows why? ``` package com.ram.currentlocation; import android.app.Activity; import android.content.Context; import android.location.Location; import a...
2011/05/23
[ "https://Stackoverflow.com/questions/6095919", "https://Stackoverflow.com", "https://Stackoverflow.com/users/674510/" ]
In your android manifest did you set the permissions? ``` android.permission.ACCESS_FINE_LOCATION ``` As far as only getting (0,0) co-ords you're probably using the emulator. If you're using eclipse go to the emulator control and at the bottom you can send the fake co-ords to the device
You are not using the correct permission. The correct one is: `<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />` By the way, your demand can only be fulfilled by: `<using-permission android:name="ACCESS_FINE_LOCATION" />` So there is no need for `ACCESS_COARSE_LOCATION`
6,095,919
I am using the following code to get the current location namely (latitude and longitude), but I am not getting current location (latitude and longitude). Anyone knows why? ``` package com.ram.currentlocation; import android.app.Activity; import android.content.Context; import android.location.Location; import a...
2011/05/23
[ "https://Stackoverflow.com/questions/6095919", "https://Stackoverflow.com", "https://Stackoverflow.com/users/674510/" ]
You have to send location fix to emulator,as emulator is software you need to provide with location fix. If you are using eclipse go to `Window -> Show view -> Other` Select Android tab and search for emulator control. After u see emulator control window navigate to location controls. As u see in below pic !...
In your android manifest did you set the permissions? ``` android.permission.ACCESS_FINE_LOCATION ``` As far as only getting (0,0) co-ords you're probably using the emulator. If you're using eclipse go to the emulator control and at the bottom you can send the fake co-ords to the device
6,095,919
I am using the following code to get the current location namely (latitude and longitude), but I am not getting current location (latitude and longitude). Anyone knows why? ``` package com.ram.currentlocation; import android.app.Activity; import android.content.Context; import android.location.Location; import a...
2011/05/23
[ "https://Stackoverflow.com/questions/6095919", "https://Stackoverflow.com", "https://Stackoverflow.com/users/674510/" ]
You have a mistake in your manifest file. Correct one is: ``` <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> ```
You are not using the correct permission. The correct one is: `<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />` By the way, your demand can only be fulfilled by: `<using-permission android:name="ACCESS_FINE_LOCATION" />` So there is no need for `ACCESS_COARSE_LOCATION`
6,095,919
I am using the following code to get the current location namely (latitude and longitude), but I am not getting current location (latitude and longitude). Anyone knows why? ``` package com.ram.currentlocation; import android.app.Activity; import android.content.Context; import android.location.Location; import a...
2011/05/23
[ "https://Stackoverflow.com/questions/6095919", "https://Stackoverflow.com", "https://Stackoverflow.com/users/674510/" ]
You have a mistake in your manifest file. Correct one is: ``` <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> ```
You have to send location fix to emulator,as emulator is software you need to provide with location fix. If you are using eclipse go to `Window -> Show view -> Other` Select Android tab and search for emulator control. After u see emulator control window navigate to location controls. As u see in below pic !...
6,095,919
I am using the following code to get the current location namely (latitude and longitude), but I am not getting current location (latitude and longitude). Anyone knows why? ``` package com.ram.currentlocation; import android.app.Activity; import android.content.Context; import android.location.Location; import a...
2011/05/23
[ "https://Stackoverflow.com/questions/6095919", "https://Stackoverflow.com", "https://Stackoverflow.com/users/674510/" ]
You have to send location fix to emulator,as emulator is software you need to provide with location fix. If you are using eclipse go to `Window -> Show view -> Other` Select Android tab and search for emulator control. After u see emulator control window navigate to location controls. As u see in below pic !...
You are not using the correct permission. The correct one is: `<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />` By the way, your demand can only be fulfilled by: `<using-permission android:name="ACCESS_FINE_LOCATION" />` So there is no need for `ACCESS_COARSE_LOCATION`
22,523,423
I am having one combo box in that I need value in order by alphabetic.but problem is In that list OTHER one value need to come at last. we can achieve this using value number arrange according to our need but it contain lot of value and using the key I did lot of process in java script so i take lot of changes to chan...
2014/03/20
[ "https://Stackoverflow.com/questions/22523423", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2409025/" ]
``` $("#list option").filter(function(){ return $(this).text()==='Others' }).appendTo("#list") ``` <http://jsfiddle.net/SxtnF/>
When you have created your list, like ``` <select id="mycombobox"> <option value=" selected="selected">Select</option> <option value="147">Articles Of Association</option> <option value="135">Birth Certificate</option> <option value="132">Drivers License</option> <option value="145">Memorandum Of ...
4,299,080
This was an exercice in my functional analysis course: Let $\Omega = B(0,1)\backslash \{0\} \subset \mathbb R^N, N \ge 3.$ We define on $\partial\Omega$ $$g(x) = \begin{cases} 1 & \text{if }~ x= 0,\\ 0 & \text{if }~ x \neq 0, \end{cases}$$ and I have to prove that the problem $$ \begin{cases} -\Delta u = 0 & \text{on ...
2021/11/07
[ "https://math.stackexchange.com/questions/4299080", "https://math.stackexchange.com", "https://math.stackexchange.com/users/766785/" ]
You haven't said it but I guess the exercise is to prove no solution to your problem exists. I'm also going to go ahead and assume that $u \in C^2(\Omega) \cap C(\overline{\Omega})$ - I expect that this is also probably assumed in your problem. Let us assume, for the sake of contradiction, that there exist a solution ...
Such a solution $u$ would be a harmonic function in $B(0,1)\setminus\{0\}$ satisfying $\lim\_{x\to 0}u\!\left(x\right)/\lvert x \rvert^{2-N}=0$. As we established in your [other question](https://math.stackexchange.com/questions/4299069/for-u-in-c-infty-omega-backslash-0-harmonic-with-lim-x-to0-fracu/4299167#4299167) a...
292,813
Let $(\Omega,\mathcal{F},\mathbb{P})$ be a probability space, where $\Omega=[0,1]$, $\mathcal{F}$ is a $\sigma$-algebra generated by Borel sets in $[0,1]$ and $\mathbb{P}$ is the Lebesgue measure on $\Omega$. Find $\mathbb{E}(X|Y)$, if $X(\omega)=2\omega^2,Y(\omega)=2$ for $\omega\in[0,1/2]$ and $\omega$ for $\omega\in...
2013/02/02
[ "https://math.stackexchange.com/questions/292813", "https://math.stackexchange.com", "https://math.stackexchange.com/users/58919/" ]
I think your intuition is correct. In fact, it can be easily deduced that $$ \sigma(Y)=\sigma\Big([0,\textstyle{\frac12}],\mathscr B\big((\textstyle{\frac12},1]\big)\Big) $$ where $\mathscr B$ denotes the Borel $\sigma$-algebra. Setting $Z=\mathbb E(X|Y)$, by definition $Z$ is $\sigma(Y)$-measurable, so that it is con...
To sum up, $\mathbb E(X\mid Y)=\frac16\,\mathbf 1\_{Y=2}+2Y^2\,\mathbf 1\_{Y\leqslant1}$.
51,143,390
I'm trying to `ng serve` a sample Angular project included in a third party framework. The sample project is wanting Angular v~4 judging from its `package.json` file. My global CLI version is 6.0.8. The project doesn't include a `node_modules` folder nor an `angular-cli.json` or `angular.json` file. How can I successf...
2018/07/02
[ "https://Stackoverflow.com/questions/51143390", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6647188/" ]
It may be a silly question but did you use `npm install` after getting the project to install the dependencies? Only after that will appear the folder `node_modules`.
I was able to get around this issue by running a different command: `npm run build`. This seemed to properly serve the app in its desired version.
51,143,390
I'm trying to `ng serve` a sample Angular project included in a third party framework. The sample project is wanting Angular v~4 judging from its `package.json` file. My global CLI version is 6.0.8. The project doesn't include a `node_modules` folder nor an `angular-cli.json` or `angular.json` file. How can I successf...
2018/07/02
[ "https://Stackoverflow.com/questions/51143390", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6647188/" ]
It may be a silly question but did you use `npm install` after getting the project to install the dependencies? Only after that will appear the folder `node_modules`.
In my case `npm run start` did the trick. Running *Angular 6* app while I just installed *Angular 8*. In my `package.json` I have this behind the command. ``` ... "scripts": { "build": "webpack --mode production", "start": "webpack-dev-server --mode development --open" }, ... ```
51,143,390
I'm trying to `ng serve` a sample Angular project included in a third party framework. The sample project is wanting Angular v~4 judging from its `package.json` file. My global CLI version is 6.0.8. The project doesn't include a `node_modules` folder nor an `angular-cli.json` or `angular.json` file. How can I successf...
2018/07/02
[ "https://Stackoverflow.com/questions/51143390", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6647188/" ]
In my case `npm run start` did the trick. Running *Angular 6* app while I just installed *Angular 8*. In my `package.json` I have this behind the command. ``` ... "scripts": { "build": "webpack --mode production", "start": "webpack-dev-server --mode development --open" }, ... ```
I was able to get around this issue by running a different command: `npm run build`. This seemed to properly serve the app in its desired version.
12,741,509
How can I find the controls from a panel using c#. Am using the below code to find the control. But it always return null. My partial code is here: ``` DropDownList ddl = new DropDownList(); ddl.ID = "ID" + i; ddl.DataValueField = "fld_Head"; ddl.DataTextField = "fld_Head"; ddl.DataSource = DVS; ddl.DataBind(); Panel...
2012/10/05
[ "https://Stackoverflow.com/questions/12741509", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1632324/" ]
If you add a control dynamically to another container control as a child, it will not be available at the next post back in the same containers child controls collection. So what you must do is create the same control again, assing its properties and add to child controls collection again.
``` Foreach Control c in Panel.Controls c.Name c.Id c.Whatever ```
42,615,752
I want to check how many fields of an object are null. Can I do something like: ``` int numNotNull = !!(obj.a) + !!(obj.b) + !!(obj.c) + !!(obj.d); ``` This would work if null was a pointer to the 0 address, as in C.
2017/03/06
[ "https://Stackoverflow.com/questions/42615752", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3724404/" ]
For a good understanding of what `null` is in Java, have a look at [this answer](https://stackoverflow.com/a/2707333/4822566). The major point of discussion is that as well as being a keyword referring to the `null` value, the type of that value is the nameless type 'null': > > There is also a special null type, the ...
The other answer which is already accepted now, explains what `null` means in Java. However if your original goal was to get the count of the null fields in one liner code, you can do it the following way: ``` int numNotNull = (((numNotNull = 0) == 0 && obj.a == null && ++numNotNull < 0) || (obj.b == null && ++numNot...
52,547,557
I am trying to read csv files using the code below ```js var fileInput = document.getElementById("csv"), readFile = function () { var reader = new FileReader(); reader.onload = function () { document.getElementById('out').innerHTML = reader.result; }; // start r...
2018/09/28
[ "https://Stackoverflow.com/questions/52547557", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6283073/" ]
you can read and write it into array before printing. ``` $(document).ready(function() { $.ajax({ type: "GET", url: "data.csv", dataType: "text", success: function(data) {readdata(data);} }); }); function readdata(textCsv) { var record_num = 5; // how many elements there are in each row var allCsvLi...
There is a method of file reader **readAsText** .It will work file ```js var fileInput = document.getElementById("csv"), readFile = function () { var reader = new FileReader(); reader.onload = function () { document.getElementById('out').innerHTML = reader.result; }; ...
52,547,557
I am trying to read csv files using the code below ```js var fileInput = document.getElementById("csv"), readFile = function () { var reader = new FileReader(); reader.onload = function () { document.getElementById('out').innerHTML = reader.result; }; // start r...
2018/09/28
[ "https://Stackoverflow.com/questions/52547557", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6283073/" ]
You can split the text into lines using regex and then iterate over those lines to output as you desire. The following still requires the whole file to be downloaded first (before it is parsed), but once loaded, you can parse it into lines and output it as desired (in this case line-by-line). A timeout is used to exagg...
you can read and write it into array before printing. ``` $(document).ready(function() { $.ajax({ type: "GET", url: "data.csv", dataType: "text", success: function(data) {readdata(data);} }); }); function readdata(textCsv) { var record_num = 5; // how many elements there are in each row var allCsvLi...
52,547,557
I am trying to read csv files using the code below ```js var fileInput = document.getElementById("csv"), readFile = function () { var reader = new FileReader(); reader.onload = function () { document.getElementById('out').innerHTML = reader.result; }; // start r...
2018/09/28
[ "https://Stackoverflow.com/questions/52547557", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6283073/" ]
you can read and write it into array before printing. ``` $(document).ready(function() { $.ajax({ type: "GET", url: "data.csv", dataType: "text", success: function(data) {readdata(data);} }); }); function readdata(textCsv) { var record_num = 5; // how many elements there are in each row var allCsvLi...
if you would like to do it with stream to handle very large files, then ```js // Simulate a file from input[type=file] var csv = new Blob([ `apple,1,$1.00 banana,4,$0.20 orange,3,$0.79`]) // Use a fetch-Response hack to transform a file/blob into a stream var stream = new Response(csv).body var lines = 0 var...
52,547,557
I am trying to read csv files using the code below ```js var fileInput = document.getElementById("csv"), readFile = function () { var reader = new FileReader(); reader.onload = function () { document.getElementById('out').innerHTML = reader.result; }; // start r...
2018/09/28
[ "https://Stackoverflow.com/questions/52547557", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6283073/" ]
You can split the text into lines using regex and then iterate over those lines to output as you desire. The following still requires the whole file to be downloaded first (before it is parsed), but once loaded, you can parse it into lines and output it as desired (in this case line-by-line). A timeout is used to exagg...
There is a method of file reader **readAsText** .It will work file ```js var fileInput = document.getElementById("csv"), readFile = function () { var reader = new FileReader(); reader.onload = function () { document.getElementById('out').innerHTML = reader.result; }; ...
52,547,557
I am trying to read csv files using the code below ```js var fileInput = document.getElementById("csv"), readFile = function () { var reader = new FileReader(); reader.onload = function () { document.getElementById('out').innerHTML = reader.result; }; // start r...
2018/09/28
[ "https://Stackoverflow.com/questions/52547557", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6283073/" ]
You can split the text into lines using regex and then iterate over those lines to output as you desire. The following still requires the whole file to be downloaded first (before it is parsed), but once loaded, you can parse it into lines and output it as desired (in this case line-by-line). A timeout is used to exagg...
if you would like to do it with stream to handle very large files, then ```js // Simulate a file from input[type=file] var csv = new Blob([ `apple,1,$1.00 banana,4,$0.20 orange,3,$0.79`]) // Use a fetch-Response hack to transform a file/blob into a stream var stream = new Response(csv).body var lines = 0 var...
40,759,137
I would like to split expression with mathematical comparisons, e.g. ``` unlist(strsplit("var<3", "(?=[=<>])", perl = TRUE)) unlist(strsplit("var==5", "(?=[=<>])", perl = TRUE)) unlist(strsplit("var>2", "(?=[=<>])", perl = TRUE)) ``` The results are: ``` [1] "var" "<" "3" [1] "var" "=" "=" "5" [1] "var" "...
2016/11/23
[ "https://Stackoverflow.com/questions/40759137", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2094622/" ]
You may use a PCRE regex to *match* the substrings you need: ``` ==|[<>]|(?:(?!==)[^<>])+ ``` To also support `!=`, modify it as ``` [!=]=|[<>]|(?:(?![=!]=)[^<>])+ ``` See the [regex demo](https://regex101.com/r/a397fe/2). **Details**: * `==` - 2 `=` signs * `|` - or * `[<>]` - a `<` or `>` * `|` - or * `(?:(?!...
Using words' boundaries (`\\b`) and specifying 2 possibilities for the lookaround: ``` unlist(strsplit("var==5", "(?=(\\b[^a-zA-Z0-9])|(\\b[a-zA-Z0-9]\\b))", perl = TRUE)) [1] "var" "==" "5" unlist(strsplit("var<3", "(?=(\\b[^a-zA-Z0-9])|(\\b[a-zA-Z0-9]\\b))", perl = TRUE)) [1] "var" "<" "3" unlist(strsplit("var>...
40,759,137
I would like to split expression with mathematical comparisons, e.g. ``` unlist(strsplit("var<3", "(?=[=<>])", perl = TRUE)) unlist(strsplit("var==5", "(?=[=<>])", perl = TRUE)) unlist(strsplit("var>2", "(?=[=<>])", perl = TRUE)) ``` The results are: ``` [1] "var" "<" "3" [1] "var" "=" "=" "5" [1] "var" "...
2016/11/23
[ "https://Stackoverflow.com/questions/40759137", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2094622/" ]
You may use a PCRE regex to *match* the substrings you need: ``` ==|[<>]|(?:(?!==)[^<>])+ ``` To also support `!=`, modify it as ``` [!=]=|[<>]|(?:(?![=!]=)[^<>])+ ``` See the [regex demo](https://regex101.com/r/a397fe/2). **Details**: * `==` - 2 `=` signs * `|` - or * `[<>]` - a `<` or `>` * `|` - or * `(?:(?!...
Expanding from my idea in comments, just for the formatting: ``` tests=c("var==5","var<3","var.name>5") regmatches(tests,regexec("([a-zA-Z0-9_.]+)(\\W+)([a-zA-Z0-9_.]+)",tests)) ``` `\w` is `[a-zA-Z0-9_]` and `\W` it's opposite `[^a-zA-Z0-9_]`, I expanded it after comment to include . in the character class, and as ...