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
2,359,029
I am working on an algorithm in C# to calculate a past DateTime based on an input string with the following characteristics: The string contains an integer followed by either 'D', 'M' or 'Y', such as "1D" or "90M". The output will be DateTime.Now minus the corresponding number of days, months or years. The issue I a...
2010/03/01
[ "https://Stackoverflow.com/questions/2359029", "https://Stackoverflow.com", "https://Stackoverflow.com/users/214704/" ]
[`DateTime`](http://msdn.microsoft.com/en-us/library/system.datetime.aspx) has [`AddMonths`](http://msdn.microsoft.com/en-us/library/system.datetime.addmonths.aspx), [`AddDays`](http://msdn.microsoft.com/en-us/library/system.datetime.adddays.aspx) and [`AddYears`](http://msdn.microsoft.com/en-us/library/system.datetime...
To subtract months, I create a new DateTime and just evaluate month/year. So 1/2010 - 6 months would be 6/2010... once you have the month/year established, you can look at the original datetime day component, and ensure it fits within the month. That's what I did. Year was evaluated the same way. Subtracting days is e...
2,359,029
I am working on an algorithm in C# to calculate a past DateTime based on an input string with the following characteristics: The string contains an integer followed by either 'D', 'M' or 'Y', such as "1D" or "90M". The output will be DateTime.Now minus the corresponding number of days, months or years. The issue I a...
2010/03/01
[ "https://Stackoverflow.com/questions/2359029", "https://Stackoverflow.com", "https://Stackoverflow.com/users/214704/" ]
Could you not rather try using the *AddDays/AddMonths/AddYears* but with negative numbers? From [DateTime.AddDays Method](http://msdn.microsoft.com/en-us/library/system.datetime.adddays.aspx) > > The value parameter can be **negative** or > positive. > > > And then maybe just implement a switch stament to appl...
To subtract months, I create a new DateTime and just evaluate month/year. So 1/2010 - 6 months would be 6/2010... once you have the month/year established, you can look at the original datetime day component, and ensure it fits within the month. That's what I did. Year was evaluated the same way. Subtracting days is e...
2,359,029
I am working on an algorithm in C# to calculate a past DateTime based on an input string with the following characteristics: The string contains an integer followed by either 'D', 'M' or 'Y', such as "1D" or "90M". The output will be DateTime.Now minus the corresponding number of days, months or years. The issue I a...
2010/03/01
[ "https://Stackoverflow.com/questions/2359029", "https://Stackoverflow.com", "https://Stackoverflow.com/users/214704/" ]
[`DateTime`](http://msdn.microsoft.com/en-us/library/system.datetime.aspx) has [`AddMonths`](http://msdn.microsoft.com/en-us/library/system.datetime.addmonths.aspx), [`AddDays`](http://msdn.microsoft.com/en-us/library/system.datetime.adddays.aspx) and [`AddYears`](http://msdn.microsoft.com/en-us/library/system.datetime...
Could you not rather try using the *AddDays/AddMonths/AddYears* but with negative numbers? From [DateTime.AddDays Method](http://msdn.microsoft.com/en-us/library/system.datetime.adddays.aspx) > > The value parameter can be **negative** or > positive. > > > And then maybe just implement a switch stament to appl...
2,359,029
I am working on an algorithm in C# to calculate a past DateTime based on an input string with the following characteristics: The string contains an integer followed by either 'D', 'M' or 'Y', such as "1D" or "90M". The output will be DateTime.Now minus the corresponding number of days, months or years. The issue I a...
2010/03/01
[ "https://Stackoverflow.com/questions/2359029", "https://Stackoverflow.com", "https://Stackoverflow.com/users/214704/" ]
[`DateTime`](http://msdn.microsoft.com/en-us/library/system.datetime.aspx) has [`AddMonths`](http://msdn.microsoft.com/en-us/library/system.datetime.addmonths.aspx), [`AddDays`](http://msdn.microsoft.com/en-us/library/system.datetime.adddays.aspx) and [`AddYears`](http://msdn.microsoft.com/en-us/library/system.datetime...
Remember that you can add negative amounts as well and check out [this method](http://msdn.microsoft.com/en-us/library/system.datetime.addmonths.aspx) and [this one](http://msdn.microsoft.com/en-us/library/system.datetime.addyears.aspx).
2,359,029
I am working on an algorithm in C# to calculate a past DateTime based on an input string with the following characteristics: The string contains an integer followed by either 'D', 'M' or 'Y', such as "1D" or "90M". The output will be DateTime.Now minus the corresponding number of days, months or years. The issue I a...
2010/03/01
[ "https://Stackoverflow.com/questions/2359029", "https://Stackoverflow.com", "https://Stackoverflow.com/users/214704/" ]
[`DateTime`](http://msdn.microsoft.com/en-us/library/system.datetime.aspx) has [`AddMonths`](http://msdn.microsoft.com/en-us/library/system.datetime.addmonths.aspx), [`AddDays`](http://msdn.microsoft.com/en-us/library/system.datetime.adddays.aspx) and [`AddYears`](http://msdn.microsoft.com/en-us/library/system.datetime...
<http://msdn.microsoft.com/en-us/library/3z48198e.aspx> TimeSpan.TryParse accepts very close to your string as long as you can fits its formatting OR convert from yours to its.
2,359,029
I am working on an algorithm in C# to calculate a past DateTime based on an input string with the following characteristics: The string contains an integer followed by either 'D', 'M' or 'Y', such as "1D" or "90M". The output will be DateTime.Now minus the corresponding number of days, months or years. The issue I a...
2010/03/01
[ "https://Stackoverflow.com/questions/2359029", "https://Stackoverflow.com", "https://Stackoverflow.com/users/214704/" ]
Could you not rather try using the *AddDays/AddMonths/AddYears* but with negative numbers? From [DateTime.AddDays Method](http://msdn.microsoft.com/en-us/library/system.datetime.adddays.aspx) > > The value parameter can be **negative** or > positive. > > > And then maybe just implement a switch stament to appl...
Remember that you can add negative amounts as well and check out [this method](http://msdn.microsoft.com/en-us/library/system.datetime.addmonths.aspx) and [this one](http://msdn.microsoft.com/en-us/library/system.datetime.addyears.aspx).
2,359,029
I am working on an algorithm in C# to calculate a past DateTime based on an input string with the following characteristics: The string contains an integer followed by either 'D', 'M' or 'Y', such as "1D" or "90M". The output will be DateTime.Now minus the corresponding number of days, months or years. The issue I a...
2010/03/01
[ "https://Stackoverflow.com/questions/2359029", "https://Stackoverflow.com", "https://Stackoverflow.com/users/214704/" ]
Could you not rather try using the *AddDays/AddMonths/AddYears* but with negative numbers? From [DateTime.AddDays Method](http://msdn.microsoft.com/en-us/library/system.datetime.adddays.aspx) > > The value parameter can be **negative** or > positive. > > > And then maybe just implement a switch stament to appl...
<http://msdn.microsoft.com/en-us/library/3z48198e.aspx> TimeSpan.TryParse accepts very close to your string as long as you can fits its formatting OR convert from yours to its.
146,498
Some programming languages are modeled on machine code, like assembly languages. Other languages are modeled on a natural language, the English language. Others are not modeled on either machine code or natural language. Languages such as PROLOG, for example, don't follow either model. I came across this Perl module [...
2012/04/29
[ "https://softwareengineering.stackexchange.com/questions/146498", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/36884/" ]
Unless something like this exists in documentation, I like to draw UML class and sequence diagrams to get a feel for static structure and dynamic behaviour of the code. These diagrams do not have to be formally correct, but give me something to look at when I'm having a "what is this doing again??" moment. If they ar...
I have been working on a complex code base for more than a year now. See if my insights can help you: Your insights are right, by the time you reach a different part of the code, you forget about the previous part. It can be a never ending cycle. The important lesson to take away here is that the product cannot work w...
146,498
Some programming languages are modeled on machine code, like assembly languages. Other languages are modeled on a natural language, the English language. Others are not modeled on either machine code or natural language. Languages such as PROLOG, for example, don't follow either model. I came across this Perl module [...
2012/04/29
[ "https://softwareengineering.stackexchange.com/questions/146498", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/36884/" ]
Working with the code is the best way to learn it. There is no "express" way to learn a huge code base, but there are a few things you can do. You can try modifying the code to add small features and to refactor and learn the code base in that way. Try focusing on small, localized sections of the code base, trying to ...
* I was in a similar position after I finished first year at university. Based on that experience I think that you bit more than you can chew on. The following might make your life easier, but you'll need to put in a lot of work. * Gain complete understanding of your problem domain. Talk to the business and model app...
146,498
Some programming languages are modeled on machine code, like assembly languages. Other languages are modeled on a natural language, the English language. Others are not modeled on either machine code or natural language. Languages such as PROLOG, for example, don't follow either model. I came across this Perl module [...
2012/04/29
[ "https://softwareengineering.stackexchange.com/questions/146498", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/36884/" ]
Focus on **data structures** -- that is where the rubber hits the road. Data definition (e.g. database schema, file formats) takes far less lines (of code) than application logic, but is crucial for really understanding what application is doing. Learn the data structures and relations. After that it's far more easie...
Related to [this](https://softwareengineering.stackexchange.com/questions/114316/how-should-i-go-about-learning-a-very-large-and-complex-application). But with the addition of a Lines of code component. And by the way, 46000 lines of code is a *medium* sized application in my experience.
146,498
Some programming languages are modeled on machine code, like assembly languages. Other languages are modeled on a natural language, the English language. Others are not modeled on either machine code or natural language. Languages such as PROLOG, for example, don't follow either model. I came across this Perl module [...
2012/04/29
[ "https://softwareengineering.stackexchange.com/questions/146498", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/36884/" ]
Working with the code is the best way to learn it. There is no "express" way to learn a huge code base, but there are a few things you can do. You can try modifying the code to add small features and to refactor and learn the code base in that way. Try focusing on small, localized sections of the code base, trying to ...
I have to do lot of code reviews and it includes larges and complex code base. I try to build a [mind map](http://en.wikipedia.org/wiki/Mind_map) of the component when it's possible. If I have to work or contribute on the project, something very effective I do is adding (or changing) comments in area that were not cl...
146,498
Some programming languages are modeled on machine code, like assembly languages. Other languages are modeled on a natural language, the English language. Others are not modeled on either machine code or natural language. Languages such as PROLOG, for example, don't follow either model. I came across this Perl module [...
2012/04/29
[ "https://softwareengineering.stackexchange.com/questions/146498", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/36884/" ]
I have to do lot of code reviews and it includes larges and complex code base. I try to build a [mind map](http://en.wikipedia.org/wiki/Mind_map) of the component when it's possible. If I have to work or contribute on the project, something very effective I do is adding (or changing) comments in area that were not cl...
Some strategies: * Create an inheritance diagram. There are [tools that'll do this](https://stackoverflow.com/q/1168753/643383) for you, but even drawing it by hand could be helpful. * Of the 200 classes, you'll probably find that a dozen or so are really important. These will be the classes that are close to the root...
146,498
Some programming languages are modeled on machine code, like assembly languages. Other languages are modeled on a natural language, the English language. Others are not modeled on either machine code or natural language. Languages such as PROLOG, for example, don't follow either model. I came across this Perl module [...
2012/04/29
[ "https://softwareengineering.stackexchange.com/questions/146498", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/36884/" ]
* I was in a similar position after I finished first year at university. Based on that experience I think that you bit more than you can chew on. The following might make your life easier, but you'll need to put in a lot of work. * Gain complete understanding of your problem domain. Talk to the business and model app...
tl;dr: Write docs, write tests. Turn understanding into making. Full version: Not so long ago I too got to work on existing projects for the first time at a company, and had to get up to speed quickly. I found that all projects invariably suffer from the very serious issue: insufficient documentation and testing. Th...
146,498
Some programming languages are modeled on machine code, like assembly languages. Other languages are modeled on a natural language, the English language. Others are not modeled on either machine code or natural language. Languages such as PROLOG, for example, don't follow either model. I came across this Perl module [...
2012/04/29
[ "https://softwareengineering.stackexchange.com/questions/146498", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/36884/" ]
Working with the code is the best way to learn it. There is no "express" way to learn a huge code base, but there are a few things you can do. You can try modifying the code to add small features and to refactor and learn the code base in that way. Try focusing on small, localized sections of the code base, trying to ...
Related to [this](https://softwareengineering.stackexchange.com/questions/114316/how-should-i-go-about-learning-a-very-large-and-complex-application). But with the addition of a Lines of code component. And by the way, 46000 lines of code is a *medium* sized application in my experience.
146,498
Some programming languages are modeled on machine code, like assembly languages. Other languages are modeled on a natural language, the English language. Others are not modeled on either machine code or natural language. Languages such as PROLOG, for example, don't follow either model. I came across this Perl module [...
2012/04/29
[ "https://softwareengineering.stackexchange.com/questions/146498", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/36884/" ]
* I was in a similar position after I finished first year at university. Based on that experience I think that you bit more than you can chew on. The following might make your life easier, but you'll need to put in a lot of work. * Gain complete understanding of your problem domain. Talk to the business and model app...
Focus on **data structures** -- that is where the rubber hits the road. Data definition (e.g. database schema, file formats) takes far less lines (of code) than application logic, but is crucial for really understanding what application is doing. Learn the data structures and relations. After that it's far more easie...
146,498
Some programming languages are modeled on machine code, like assembly languages. Other languages are modeled on a natural language, the English language. Others are not modeled on either machine code or natural language. Languages such as PROLOG, for example, don't follow either model. I came across this Perl module [...
2012/04/29
[ "https://softwareengineering.stackexchange.com/questions/146498", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/36884/" ]
I have to do lot of code reviews and it includes larges and complex code base. I try to build a [mind map](http://en.wikipedia.org/wiki/Mind_map) of the component when it's possible. If I have to work or contribute on the project, something very effective I do is adding (or changing) comments in area that were not cl...
Related to [this](https://softwareengineering.stackexchange.com/questions/114316/how-should-i-go-about-learning-a-very-large-and-complex-application). But with the addition of a Lines of code component. And by the way, 46000 lines of code is a *medium* sized application in my experience.
146,498
Some programming languages are modeled on machine code, like assembly languages. Other languages are modeled on a natural language, the English language. Others are not modeled on either machine code or natural language. Languages such as PROLOG, for example, don't follow either model. I came across this Perl module [...
2012/04/29
[ "https://softwareengineering.stackexchange.com/questions/146498", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/36884/" ]
Focus on **data structures** -- that is where the rubber hits the road. Data definition (e.g. database schema, file formats) takes far less lines (of code) than application logic, but is crucial for really understanding what application is doing. Learn the data structures and relations. After that it's far more easie...
Some strategies: * Create an inheritance diagram. There are [tools that'll do this](https://stackoverflow.com/q/1168753/643383) for you, but even drawing it by hand could be helpful. * Of the 200 classes, you'll probably find that a dozen or so are really important. These will be the classes that are close to the root...
6,718,718
I write a json data structure, and store it in the url as a resource ``` type FileString struct { Data string } rest.Resource("json_data", &FileString{Data : some_string}) ``` but when I load it in the java-script, as a uri ``` loader.load( { model: '/json_data/', callback: function ( geometry ) { ... } ...
2011/07/16
[ "https://Stackoverflow.com/questions/6718718", "https://Stackoverflow.com", "https://Stackoverflow.com/users/797143/" ]
Try: ``` UPDATE `example_table` SET `title` = TRIM(BOTH '"' FROM `title`) ``` This query will updated your `example_table` to remove leading and trailing double quotes from the value of the `title` column. If you don't want to update the table, but want to fetch the rows with double quotes removed, then use @Sa...
Just change that to ``` SELECT TRIM(BOTH '"' FROM title) AS trimmed_title FROM `example_table` ```
6,718,718
I write a json data structure, and store it in the url as a resource ``` type FileString struct { Data string } rest.Resource("json_data", &FileString{Data : some_string}) ``` but when I load it in the java-script, as a uri ``` loader.load( { model: '/json_data/', callback: function ( geometry ) { ... } ...
2011/07/16
[ "https://Stackoverflow.com/questions/6718718", "https://Stackoverflow.com", "https://Stackoverflow.com/users/797143/" ]
Try: ``` UPDATE `example_table` SET `title` = TRIM(BOTH '"' FROM `title`) ``` This query will updated your `example_table` to remove leading and trailing double quotes from the value of the `title` column. If you don't want to update the table, but want to fetch the rows with double quotes removed, then use @Sa...
this works for me ``` select trim(both '"' from column_name) from table_name; ```
6,718,718
I write a json data structure, and store it in the url as a resource ``` type FileString struct { Data string } rest.Resource("json_data", &FileString{Data : some_string}) ``` but when I load it in the java-script, as a uri ``` loader.load( { model: '/json_data/', callback: function ( geometry ) { ... } ...
2011/07/16
[ "https://Stackoverflow.com/questions/6718718", "https://Stackoverflow.com", "https://Stackoverflow.com/users/797143/" ]
Try: ``` UPDATE `example_table` SET `title` = TRIM(BOTH '"' FROM `title`) ``` This query will updated your `example_table` to remove leading and trailing double quotes from the value of the `title` column. If you don't want to update the table, but want to fetch the rows with double quotes removed, then use @Sa...
This solved my problem ``` UPDATE table_name SET column_name = REPLACE(column_name,'"','') ```
6,718,718
I write a json data structure, and store it in the url as a resource ``` type FileString struct { Data string } rest.Resource("json_data", &FileString{Data : some_string}) ``` but when I load it in the java-script, as a uri ``` loader.load( { model: '/json_data/', callback: function ( geometry ) { ... } ...
2011/07/16
[ "https://Stackoverflow.com/questions/6718718", "https://Stackoverflow.com", "https://Stackoverflow.com/users/797143/" ]
Just change that to ``` SELECT TRIM(BOTH '"' FROM title) AS trimmed_title FROM `example_table` ```
this works for me ``` select trim(both '"' from column_name) from table_name; ```
6,718,718
I write a json data structure, and store it in the url as a resource ``` type FileString struct { Data string } rest.Resource("json_data", &FileString{Data : some_string}) ``` but when I load it in the java-script, as a uri ``` loader.load( { model: '/json_data/', callback: function ( geometry ) { ... } ...
2011/07/16
[ "https://Stackoverflow.com/questions/6718718", "https://Stackoverflow.com", "https://Stackoverflow.com/users/797143/" ]
This solved my problem ``` UPDATE table_name SET column_name = REPLACE(column_name,'"','') ```
this works for me ``` select trim(both '"' from column_name) from table_name; ```
53,475,683
I have a grocery list with the following format: ``` { 'someUniqueId': { 'category': 'fruit', 'name': 'apple', 'checked': 'true' }, 'someUniqueId': { 'category': 'protein', 'name': 'beef', 'checked': 'true' } } ``` What I want to do is iterate through t...
2018/11/26
[ "https://Stackoverflow.com/questions/53475683", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8158632/" ]
Use `Object.keys` to get an array of all the keys from the Object. Then use array `map` and inside the callback function create the object with required key value pairs and return it ```js let obj = { 'someUniqueId': { 'category': 'fruit', 'name': 'apple', 'checked': 'true' }, 'someUniqueId1': ...
What you need to is to get object keys and values as an array using [`Object.entries`](https://www.google.co.in/search?q=object.entries&oq=Object.ent&aqs=chrome.1.69i57j0l5.4383j0j4&sourceid=chrome&ie=UTF-8) and then mapping over them ```js let obj = { 'someUniqueId': { 'category': 'fruit', 'name': 'apple...
53,475,683
I have a grocery list with the following format: ``` { 'someUniqueId': { 'category': 'fruit', 'name': 'apple', 'checked': 'true' }, 'someUniqueId': { 'category': 'protein', 'name': 'beef', 'checked': 'true' } } ``` What I want to do is iterate through t...
2018/11/26
[ "https://Stackoverflow.com/questions/53475683", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8158632/" ]
Use `Object.keys` to get an array of all the keys from the Object. Then use array `map` and inside the callback function create the object with required key value pairs and return it ```js let obj = { 'someUniqueId': { 'category': 'fruit', 'name': 'apple', 'checked': 'true' }, 'someUniqueId1': ...
There should be no need to iterate through the object, simply destructure the object inside a new array. ``` this.state = { groceryArray: [] }; const groceryObject = { 'someUniqueId': { 'category': 'fruit', 'name': 'apple', 'checked': 'true' }, 'someUniqueId': { 'categ...
53,475,683
I have a grocery list with the following format: ``` { 'someUniqueId': { 'category': 'fruit', 'name': 'apple', 'checked': 'true' }, 'someUniqueId': { 'category': 'protein', 'name': 'beef', 'checked': 'true' } } ``` What I want to do is iterate through t...
2018/11/26
[ "https://Stackoverflow.com/questions/53475683", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8158632/" ]
There should be no need to iterate through the object, simply destructure the object inside a new array. ``` this.state = { groceryArray: [] }; const groceryObject = { 'someUniqueId': { 'category': 'fruit', 'name': 'apple', 'checked': 'true' }, 'someUniqueId': { 'categ...
What you need to is to get object keys and values as an array using [`Object.entries`](https://www.google.co.in/search?q=object.entries&oq=Object.ent&aqs=chrome.1.69i57j0l5.4383j0j4&sourceid=chrome&ie=UTF-8) and then mapping over them ```js let obj = { 'someUniqueId': { 'category': 'fruit', 'name': 'apple...
42,906,094
I'm trying to check if the last character is a space within a textfield and remove it. The code below will work if it's not a " " The delegate is all setup, so it's not that. ``` func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool { var cardNu...
2017/03/20
[ "https://Stackoverflow.com/questions/42906094", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7684436/" ]
So the problem with your code is that the function will never know when the user is done typing. Furthermore, the changes that occur within the textfield, take effect AFTER that function returns true. What you should be doing is comparing the replacementString. So what I recommend is to do this check within the "textF...
Try popLast instead of dropLast ``` func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool { NumberOutlet.text?.characters.popLast() print(NumberOutlet.text) return true } ```
17,741,518
I'm developing an Android application and I have a problem with designing layouts: With this layout: ``` <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" > <TextView ...
2013/07/19
[ "https://Stackoverflow.com/questions/17741518", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1011187/" ]
Use 9 patch as background of your spinner. I think this will be interesting for you: <http://adanware.blogspot.com/2012/03/android-custom-spinner-with-custom.html>
You image seems to be the culprit. If you can't use a 9-patch png, try setting the height attribute of the spinner to a better value. Perhaps, right now, you have set it to wrap\_content. Or, may be you can try reducing the height of the image itself.
72,641,388
login credentials : ``` { "account_id":"", "password":"abdu@123" } ``` response : ``` { "account_id": [ "This field may not be blank." ] } ``` This error comes from rest\_framework.fields.CharField. I tried to override it by doing : ``` class MyField(CharField): default_error_messages = { ...
2022/06/16
[ "https://Stackoverflow.com/questions/72641388", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16469357/" ]
I'm afraid that example is broken. The second URI parameter represents where your app is listening to get the authentication result. Actually, `myapp://` is not a valid URI. You should try with something like `myapp://callback`.
Finally got to the bottom of it thanks to this old Xamarin issue: <https://github.com/xamarin/Essentials/issues/1224#issuecomment-618192336> You have to set the "CallbackPath" property in the API config like so: ``` .AddGoogle(g => { g.ClientId = "{Client ID}"; g.ClientSecret = "{Client Secret}"; g....
29,229,361
I need to execute a GAS service on behalf of a user that is logged to my system. So I have her/his access token. I would like somehow to transfer the token to the web app and without having to authorize again the user to use it for some activities. Can this be accomplished? Thank you. **EDIT:** I think I didn't explai...
2015/03/24
[ "https://Stackoverflow.com/questions/29229361", "https://Stackoverflow.com", "https://Stackoverflow.com/users/465545/" ]
I found a way! Just include the following header in the request: `Authorization: Bearer <user's_access_token>`
The hard answer is NO you can't use the built-in services of Apps Script with a service token. But if you already have the token for a user generated by a service account, access to the users data is pretty similar to any other language. All calls would be to the REST interface of the service your token is scoped for. ...
29,229,361
I need to execute a GAS service on behalf of a user that is logged to my system. So I have her/his access token. I would like somehow to transfer the token to the web app and without having to authorize again the user to use it for some activities. Can this be accomplished? Thank you. **EDIT:** I think I didn't explai...
2015/03/24
[ "https://Stackoverflow.com/questions/29229361", "https://Stackoverflow.com", "https://Stackoverflow.com/users/465545/" ]
Martin's answer worked for me in the end, but when I was making a prototype there was a major hurdle. I needed to add the following scope manually, as the "automatic scope detection system" of google apps script did not ask for it: `"https://www.googleapis.com/auth/drive.readonly"`. This resulted in `UrlFetchApp.fetc...
The hard answer is NO you can't use the built-in services of Apps Script with a service token. But if you already have the token for a user generated by a service account, access to the users data is pretty similar to any other language. All calls would be to the REST interface of the service your token is scoped for. ...
44,925
(I am writing the riddle in third person) > > For some who believe, it is a ghost > > Depending on others, it may boast. > > Its elder twin is quite selfish. > > Even the dead feel bad, especially Elvis. > > > Today, its uses are vast. > > One can decide its caste. > > one uses it all the time. > ...
2016/10/25
[ "https://puzzling.stackexchange.com/questions/44925", "https://puzzling.stackexchange.com", "https://puzzling.stackexchange.com/users/23009/" ]
This is pretty far fetched but I liked the idea : > > FM Radio > > > For some who believe, it is a ghost > > A voice without a physical person emitting it may seem like a ghost for people without the science. > > > Depending on others, it may boast. > > It could be seen as an achievement to be heard o...
I'm fairly sure this is wrong but my first thought was > > Rock and Roll > > > For some who believe, it is a ghost > > Some say "Rock and Roll is dead" > > > Depending on others, it may boast. > > Others claim "Rock and roll is here to stay" > > > It's elder twin is quite selfish. > > it's mostly ju...
44,925
(I am writing the riddle in third person) > > For some who believe, it is a ghost > > Depending on others, it may boast. > > Its elder twin is quite selfish. > > Even the dead feel bad, especially Elvis. > > > Today, its uses are vast. > > One can decide its caste. > > one uses it all the time. > ...
2016/10/25
[ "https://puzzling.stackexchange.com/questions/44925", "https://puzzling.stackexchange.com", "https://puzzling.stackexchange.com/users/23009/" ]
Is it - > > Hypertext? > > > For some who believe, it is a ghost Depending on others, it may boast. > > For the ones who know a little of programming, they know hypertext is not visible but does a lot of things. Which symbolizes to Ghost. > > > Its elder twin is quite selfish. Even the dead feel bad, esp...
Ok, I'm going to have a try... At first I thought of > > Time, age > > > But they didn't really fit some lines. So then I took a look at > > Things that happened in 1963 > > > and so came up with > > Zip Codes & weight watchers (fat elvis) > But weight watchers isn't used all the time, so... > Zip Co...
44,925
(I am writing the riddle in third person) > > For some who believe, it is a ghost > > Depending on others, it may boast. > > Its elder twin is quite selfish. > > Even the dead feel bad, especially Elvis. > > > Today, its uses are vast. > > One can decide its caste. > > one uses it all the time. > ...
2016/10/25
[ "https://puzzling.stackexchange.com/questions/44925", "https://puzzling.stackexchange.com", "https://puzzling.stackexchange.com/users/23009/" ]
Is it > > Speech? > > > For some who believe, it is a ghost Depending on others, it may boast. > > For the mute, speech is a ghost. But braggers use it to boast > > > It's elder twin is quite selfish. Even, The dead feel bad, especially Elvis. > > The twin could be thoughts, which are kept private a...
This is pretty far fetched but I liked the idea : > > FM Radio > > > For some who believe, it is a ghost > > A voice without a physical person emitting it may seem like a ghost for people without the science. > > > Depending on others, it may boast. > > It could be seen as an achievement to be heard o...
44,925
(I am writing the riddle in third person) > > For some who believe, it is a ghost > > Depending on others, it may boast. > > Its elder twin is quite selfish. > > Even the dead feel bad, especially Elvis. > > > Today, its uses are vast. > > One can decide its caste. > > one uses it all the time. > ...
2016/10/25
[ "https://puzzling.stackexchange.com/questions/44925", "https://puzzling.stackexchange.com", "https://puzzling.stackexchange.com/users/23009/" ]
Is it a... > > **Push Button Telephone** > > > ``` For some who believe, it is a ghost Depending on others, it may boast. ``` > > For younger generation, the push button telephones are dead and gone. But for others it is proud possession. > > > ``` Its elder twin is quite selfish. Even the dead feel bad,...
Could it be: > > The Global Positioning System > > > --- Tearing it down line-by-line: ``` For some who believe, it is a ghost. ``` > > You can't really see the satellites by naked eye. > > > ``` Depending on others, it may boast. ``` > > Some may see it as a power statement of US capabilities. > ...
44,925
(I am writing the riddle in third person) > > For some who believe, it is a ghost > > Depending on others, it may boast. > > Its elder twin is quite selfish. > > Even the dead feel bad, especially Elvis. > > > Today, its uses are vast. > > One can decide its caste. > > one uses it all the time. > ...
2016/10/25
[ "https://puzzling.stackexchange.com/questions/44925", "https://puzzling.stackexchange.com", "https://puzzling.stackexchange.com/users/23009/" ]
Is it a... > > **Push Button Telephone** > > > ``` For some who believe, it is a ghost Depending on others, it may boast. ``` > > For younger generation, the push button telephones are dead and gone. But for others it is proud possession. > > > ``` Its elder twin is quite selfish. Even the dead feel bad,...
I'm fairly sure this is wrong but my first thought was > > Rock and Roll > > > For some who believe, it is a ghost > > Some say "Rock and Roll is dead" > > > Depending on others, it may boast. > > Others claim "Rock and roll is here to stay" > > > It's elder twin is quite selfish. > > it's mostly ju...
44,925
(I am writing the riddle in third person) > > For some who believe, it is a ghost > > Depending on others, it may boast. > > Its elder twin is quite selfish. > > Even the dead feel bad, especially Elvis. > > > Today, its uses are vast. > > One can decide its caste. > > one uses it all the time. > ...
2016/10/25
[ "https://puzzling.stackexchange.com/questions/44925", "https://puzzling.stackexchange.com", "https://puzzling.stackexchange.com/users/23009/" ]
Is it > > Speech? > > > For some who believe, it is a ghost Depending on others, it may boast. > > For the mute, speech is a ghost. But braggers use it to boast > > > It's elder twin is quite selfish. Even, The dead feel bad, especially Elvis. > > The twin could be thoughts, which are kept private a...
It is > > Love > > > ``` For some who believe, it is a ghost Depending on others, it may boast. ``` > > It's not physical, some people in love boast? > > > ``` Its elder twin is quite selfish. Even the dead feel bad, especially Elvis. ``` > > Hate or (original) sin and heartbreak (hotel) > > > ``...
44,925
(I am writing the riddle in third person) > > For some who believe, it is a ghost > > Depending on others, it may boast. > > Its elder twin is quite selfish. > > Even the dead feel bad, especially Elvis. > > > Today, its uses are vast. > > One can decide its caste. > > one uses it all the time. > ...
2016/10/25
[ "https://puzzling.stackexchange.com/questions/44925", "https://puzzling.stackexchange.com", "https://puzzling.stackexchange.com/users/23009/" ]
The answer is > > I (the first-person pronoun) > > > But I'm having some trouble with the reasoning for almost all of the lines, so I'll make it a community wiki and maybe others can offer some insight. For some who believe, it is a ghost. > > In mathematics $i$ is the notation for an imaginary number. > > ...
Could it be: > > The Global Positioning System > > > --- Tearing it down line-by-line: ``` For some who believe, it is a ghost. ``` > > You can't really see the satellites by naked eye. > > > ``` Depending on others, it may boast. ``` > > Some may see it as a power statement of US capabilities. > ...
44,925
(I am writing the riddle in third person) > > For some who believe, it is a ghost > > Depending on others, it may boast. > > Its elder twin is quite selfish. > > Even the dead feel bad, especially Elvis. > > > Today, its uses are vast. > > One can decide its caste. > > one uses it all the time. > ...
2016/10/25
[ "https://puzzling.stackexchange.com/questions/44925", "https://puzzling.stackexchange.com", "https://puzzling.stackexchange.com/users/23009/" ]
Is it a... > > **Push Button Telephone** > > > ``` For some who believe, it is a ghost Depending on others, it may boast. ``` > > For younger generation, the push button telephones are dead and gone. But for others it is proud possession. > > > ``` Its elder twin is quite selfish. Even the dead feel bad,...
Ok, I'm going to have a try... At first I thought of > > Time, age > > > But they didn't really fit some lines. So then I took a look at > > Things that happened in 1963 > > > and so came up with > > Zip Codes & weight watchers (fat elvis) > But weight watchers isn't used all the time, so... > Zip Co...
44,925
(I am writing the riddle in third person) > > For some who believe, it is a ghost > > Depending on others, it may boast. > > Its elder twin is quite selfish. > > Even the dead feel bad, especially Elvis. > > > Today, its uses are vast. > > One can decide its caste. > > one uses it all the time. > ...
2016/10/25
[ "https://puzzling.stackexchange.com/questions/44925", "https://puzzling.stackexchange.com", "https://puzzling.stackexchange.com/users/23009/" ]
The answer is > > I (the first-person pronoun) > > > But I'm having some trouble with the reasoning for almost all of the lines, so I'll make it a community wiki and maybe others can offer some insight. For some who believe, it is a ghost. > > In mathematics $i$ is the notation for an imaginary number. > > ...
Probably I'm wrong, but I guess it's > > spirit > > > ``` For some who believe, it is a ghost Depending on others, it may boast. ``` > > The word "spirit" can mean a ghost, but also an alcoholic drink. > > > ``` Its elder twin is quite selfish. Even the dead feel bad, especially Elvis. ``` > > On tha...
44,925
(I am writing the riddle in third person) > > For some who believe, it is a ghost > > Depending on others, it may boast. > > Its elder twin is quite selfish. > > Even the dead feel bad, especially Elvis. > > > Today, its uses are vast. > > One can decide its caste. > > one uses it all the time. > ...
2016/10/25
[ "https://puzzling.stackexchange.com/questions/44925", "https://puzzling.stackexchange.com", "https://puzzling.stackexchange.com/users/23009/" ]
Is it > > Speech? > > > For some who believe, it is a ghost Depending on others, it may boast. > > For the mute, speech is a ghost. But braggers use it to boast > > > It's elder twin is quite selfish. Even, The dead feel bad, especially Elvis. > > The twin could be thoughts, which are kept private a...
Ok, I'm going to have a try... At first I thought of > > Time, age > > > But they didn't really fit some lines. So then I took a look at > > Things that happened in 1963 > > > and so came up with > > Zip Codes & weight watchers (fat elvis) > But weight watchers isn't used all the time, so... > Zip Co...
69,037,851
I am trying to run a Powershell command in my C# program but I get the error > > the term is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. > > > I even copied this same e...
2021/09/02
[ "https://Stackoverflow.com/questions/69037851", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11371276/" ]
The [`.AddCommand()`](https://learn.microsoft.com/en-US/dotnet/api/System.Management.Automation.PowerShell.AddCommand) PowerShell SDK method accepts the *name* or *file path* of a command, not an *entire command line*. In order to execute a command line as you would in an interactive PowerShell session, use the [`.Add...
Try to use cmd with Administrator rights instead of PowerShell your work can be done
116,886
I know a little about how to use message passing and shared memory, but I still don't know when to choose one or another. Can you tell me about their traits (not the implementation)?
2011/10/29
[ "https://softwareengineering.stackexchange.com/questions/116886", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/39266/" ]
The quick summary: Shared memory parallelism (e.g., OpenMP) is strictly more powerful than message passing (e.g., MPI) as you can simulate message passing with a shared memory system but not *vice versa*. However, it's also much more difficult to scale up the shared memory model (it needs very elaborate and expensive ...
From the point of view of how you actually design systems with them, they are in some sense mathematical duals, as this adage by Joe Armstrong, one of the original designers of Erlang, nicely demonstrates: > > With shared memory, you communicate by sharing data, with messaging, you share data by communicating. > > ...
61,108,105
I got an XML file : ``` <?xml version="1.0"?> <WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1"> <name>antigon</name> <SSIDConfig> <SSID> <name>antigon</name> </SSID> </SSIDConfig> <connectionType>ESS</connectionType> <connectionMode>auto</connecti...
2020/04/08
[ "https://Stackoverflow.com/questions/61108105", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13211997/" ]
Grouping by multiple fields is going to require multiple calls to [`Collectors#groupingBy`](https://docs.oracle.com/en/java/javase/14/docs/api/java.base/java/util/stream/Collectors.html#groupingBy(java.util.function.Function,java.util.stream.Collector)). Luckily, the second parameter of the overloaded [`Collectors#grou...
As I understand, you just want to do `groupBy` with `EmployeeId` and `DepartmentId` so that afterward you can uniquely identify an employee with this combined property. You can use `stream` combined with `Tuple`, code will look like this: `Map<Tuple, List<Emplyee>> map = employees.stream() .collect(groupingBy(emplo...
11,181,654
I have a code snippit I found for a autoscroll js slideshow. I pasted the script in front of the "". And also made sure I closed the div. I have a folder called images with images "case1.jpg, case2.jpg, case3.jpg, and case4.jpg" inside of it. From this, I cannot tell why the script is not working. Here is the script. ...
2012/06/24
[ "https://Stackoverflow.com/questions/11181654", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1472065/" ]
Do you know Watir has xpath support? ``` browser.element(:xpath => '//*[@id="yfncsumtab"]') ```
Look at it this way: ``` doc = Nokogiri::HTML.parse(browser.html) table = doc.at('table#yfncsumtab') # iterate through tr's table.search('tr').each do |tr| # do something with tr end ```
11,181,654
I have a code snippit I found for a autoscroll js slideshow. I pasted the script in front of the "". And also made sure I closed the div. I have a folder called images with images "case1.jpg, case2.jpg, case3.jpg, and case4.jpg" inside of it. From this, I cannot tell why the script is not working. Here is the script. ...
2012/06/24
[ "https://Stackoverflow.com/questions/11181654", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1472065/" ]
Do you know Watir has xpath support? ``` browser.element(:xpath => '//*[@id="yfncsumtab"]') ```
Try `browser.element(id: "yfncsumtab").text`
54,591,746
I have a large data frame and I want to export a new data frame that contains summary statistics of the first based on the id column. ``` library(tidyverse) set.seed(123) id = rep(c(letters[1:5]), 2) species = c("dog","dog","cat","cat","bird","bird","cat","cat","bee","bee") study = rep("UK",10) freq = rpois(10, lamb...
2019/02/08
[ "https://Stackoverflow.com/questions/54591746", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3199320/" ]
Simply adding the jar to the corresponding module does not give you access to it. Have you tried right click on the jar Add as Library... option? Edit: you could perhaps explore other options for external library usage like maven, or gradle.
One way to install the package is to use Maven. If you want to configure Maven and IntelliJ, take a look at [this tutorial](https://javacord.org/wiki/getting-started/intellij-maven/). Eventually, once you are done, you should add [this](https://mvnrepository.com/artifact/org.apache.kafka/kafka-clients/2.1.0) to the aut...
54,591,746
I have a large data frame and I want to export a new data frame that contains summary statistics of the first based on the id column. ``` library(tidyverse) set.seed(123) id = rep(c(letters[1:5]), 2) species = c("dog","dog","cat","cat","bird","bird","cat","cat","bee","bee") study = rep("UK",10) freq = rpois(10, lamb...
2019/02/08
[ "https://Stackoverflow.com/questions/54591746", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3199320/" ]
Simply adding the jar to the corresponding module does not give you access to it. Have you tried right click on the jar Add as Library... option? Edit: you could perhaps explore other options for external library usage like maven, or gradle.
As being new to Java, you'll want to understand what is the classpath. Putting JARs directly into your IDE isn't changing that Even from the command line, you'd need to explicitly specify `-cp kafka-clients.jar` There's multiple ways to modify the module classpath in Intellij, but manually downloading JARs should b...
70,344,409
I want the latest 3 months of orders where I have two tables 1. Orders Table ``` CREATE TABLE `Orders` ( `id` int NOT NULL, `OrderID` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, `shopId` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, `customerId` varchar(25...
2021/12/14
[ "https://Stackoverflow.com/questions/70344409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2738863/" ]
Try this one ``` SELECT YEAR(a.createdAt), MONTH(a.createdAt), COUNT(DISTINCT a.OrderID) total_orders, COUNT(DISTINCT b.orderId) static_product_orders FROM Orders a LEFT JOIN OrderItems b ON a.OrderID = b.orderId AND b.title = 'Static product' WHERE a.createdAt >= CURDATE() - INTERVAL 3 MONTH AND a.shopDomain = ...
``` SELECT MONTH(createdAt), year(createdAt),count(*) as total FROM Orders INNER JOIN OrderItems on Orders.OrderId = OrderItems.orderId where Orders.shopDomain = '${Domain}' AND createdAt>= DATEADD(MONTH, -3, GETDATE()) group by MONTH(createdAt),year(createdAt); ```
164,063
Given Campaign Ids, List All Contacts Under Campaign that has some Opportunities associated. And I am using the below SOQL query for it. But it gets 'Nesting of semi-join sub-selects is not supported'. How do I get around that error? I know SOQL allows upward nesting and not downward. Here is my query below. Thanks ! ...
2017/03/11
[ "https://salesforce.stackexchange.com/questions/164063", "https://salesforce.stackexchange.com", "https://salesforce.stackexchange.com/users/42836/" ]
You are going to need to create a custom button and then add a javascript to it. Below is the sample code.Modify it as per your requirement. ``` {!REQUIRESCRIPT("/soap/ajax/32.0/connection.js")} var r = confirm('Are you Sure?'); if(r == true){ if({!Account.Checkbox__c} == false) { var c = new sfo...
Thanks @Samir, I made little change i wrote alert message before the if condition and message is showing up when i click on the custom button, After that when i click on ok the field is updating [![enter image description here](https://i.stack.imgur.com/gMEkn.png)](https://i.stack.imgur.com/gMEkn.png) ``` {!REQUIRE...
308,194
While my question topic is that of mathematical writing of papers, which is a broad subject, the particular question is specific. I am writing a paper, in which we have a section called "Outline of Proof". (It's Section 2.) The outline is fairly informal, and we omit some technical details, making approximations. Amon...
2018/08/13
[ "https://mathoverflow.net/questions/308194", "https://mathoverflow.net", "https://mathoverflow.net/users/59264/" ]
There are at least two cognitive processes happen during the information transmission: * [Illusion of transparency](https://en.wikipedia.org/wiki/Illusion_of_transparency) or [curse of knowledge](https://en.wikipedia.org/wiki/Curse_of_knowledge): the author always overestimates how the readers understand their work. ...
Having that outline is very useful for editors, to see quickly whom to send the paper for reviewing. Then for referees, to see if they want to review or not the paper, and also to have a quick idea on whether they intend to make a positive/negative report. And finally, for referees again, in case they make a positi...
308,194
While my question topic is that of mathematical writing of papers, which is a broad subject, the particular question is specific. I am writing a paper, in which we have a section called "Outline of Proof". (It's Section 2.) The outline is fairly informal, and we omit some technical details, making approximations. Amon...
2018/08/13
[ "https://mathoverflow.net/questions/308194", "https://mathoverflow.net", "https://mathoverflow.net/users/59264/" ]
I don't think anyone has yet argued in favor of redundancy, so let me try it. I don't mean to just repeat things but rather to give useful reminders. If a concept was defined in Section 2 and its first use outside that outline is in Section 7, there's a good chance that the reader (even one who paid attention to the ou...
There are at least two cognitive processes happen during the information transmission: * [Illusion of transparency](https://en.wikipedia.org/wiki/Illusion_of_transparency) or [curse of knowledge](https://en.wikipedia.org/wiki/Curse_of_knowledge): the author always overestimates how the readers understand their work. ...
308,194
While my question topic is that of mathematical writing of papers, which is a broad subject, the particular question is specific. I am writing a paper, in which we have a section called "Outline of Proof". (It's Section 2.) The outline is fairly informal, and we omit some technical details, making approximations. Amon...
2018/08/13
[ "https://mathoverflow.net/questions/308194", "https://mathoverflow.net", "https://mathoverflow.net/users/59264/" ]
(a) There is no "standard" way to read a paper. (b) It is certainly common to state your main theorem precisely in the introduction or outline. For example, Theorem 0.5 in the Introduction of Wiles's paper on Fermat's Last Theorem states Fermat's Last Theorem precisely. I cannot imagine what else he could have done—no...
Having that outline is very useful for editors, to see quickly whom to send the paper for reviewing. Then for referees, to see if they want to review or not the paper, and also to have a quick idea on whether they intend to make a positive/negative report. And finally, for referees again, in case they make a positi...
308,194
While my question topic is that of mathematical writing of papers, which is a broad subject, the particular question is specific. I am writing a paper, in which we have a section called "Outline of Proof". (It's Section 2.) The outline is fairly informal, and we omit some technical details, making approximations. Amon...
2018/08/13
[ "https://mathoverflow.net/questions/308194", "https://mathoverflow.net", "https://mathoverflow.net/users/59264/" ]
I don't think anyone has yet argued in favor of redundancy, so let me try it. I don't mean to just repeat things but rather to give useful reminders. If a concept was defined in Section 2 and its first use outside that outline is in Section 7, there's a good chance that the reader (even one who paid attention to the ou...
Having that outline is very useful for editors, to see quickly whom to send the paper for reviewing. Then for referees, to see if they want to review or not the paper, and also to have a quick idea on whether they intend to make a positive/negative report. And finally, for referees again, in case they make a positi...
308,194
While my question topic is that of mathematical writing of papers, which is a broad subject, the particular question is specific. I am writing a paper, in which we have a section called "Outline of Proof". (It's Section 2.) The outline is fairly informal, and we omit some technical details, making approximations. Amon...
2018/08/13
[ "https://mathoverflow.net/questions/308194", "https://mathoverflow.net", "https://mathoverflow.net/users/59264/" ]
I am aware that my personal opinion is somewhat of an outlier, given the style of "minimalism" for many decades now in mathematical writing. But, by this time, I am unabashedly annoyed by internal references that require me to flip back to have \_any\_idea\_ of what's being referred-to. The most hilarious case of this ...
Having that outline is very useful for editors, to see quickly whom to send the paper for reviewing. Then for referees, to see if they want to review or not the paper, and also to have a quick idea on whether they intend to make a positive/negative report. And finally, for referees again, in case they make a positi...
308,194
While my question topic is that of mathematical writing of papers, which is a broad subject, the particular question is specific. I am writing a paper, in which we have a section called "Outline of Proof". (It's Section 2.) The outline is fairly informal, and we omit some technical details, making approximations. Amon...
2018/08/13
[ "https://mathoverflow.net/questions/308194", "https://mathoverflow.net", "https://mathoverflow.net/users/59264/" ]
I am aware that my personal opinion is somewhat of an outlier, given the style of "minimalism" for many decades now in mathematical writing. But, by this time, I am unabashedly annoyed by internal references that require me to flip back to have \_any\_idea\_ of what's being referred-to. The most hilarious case of this ...
* ***(a)*** I (and many others) read proof outlines carefully in order to understand the key ideas and the flow of a rigorous proof, even given the details are missing. Think of such an outline as a overview description of a trip: "I take a taxi to San Francisco Airport, then fly to Boston, then take the "T" (subway) t...
308,194
While my question topic is that of mathematical writing of papers, which is a broad subject, the particular question is specific. I am writing a paper, in which we have a section called "Outline of Proof". (It's Section 2.) The outline is fairly informal, and we omit some technical details, making approximations. Amon...
2018/08/13
[ "https://mathoverflow.net/questions/308194", "https://mathoverflow.net", "https://mathoverflow.net/users/59264/" ]
I don't think anyone has yet argued in favor of redundancy, so let me try it. I don't mean to just repeat things but rather to give useful reminders. If a concept was defined in Section 2 and its first use outside that outline is in Section 7, there's a good chance that the reader (even one who paid attention to the ou...
* ***(a)*** I (and many others) read proof outlines carefully in order to understand the key ideas and the flow of a rigorous proof, even given the details are missing. Think of such an outline as a overview description of a trip: "I take a taxi to San Francisco Airport, then fly to Boston, then take the "T" (subway) t...
308,194
While my question topic is that of mathematical writing of papers, which is a broad subject, the particular question is specific. I am writing a paper, in which we have a section called "Outline of Proof". (It's Section 2.) The outline is fairly informal, and we omit some technical details, making approximations. Amon...
2018/08/13
[ "https://mathoverflow.net/questions/308194", "https://mathoverflow.net", "https://mathoverflow.net/users/59264/" ]
(b) This is something some authors do and others don't. I lean heavily against this (I believe outlines should be fully skippable). If you end up doing this, make sure that it remains clear what is being used (e.g., label definitions and refer to them by label rather than referring to the whole outline section) and tha...
Having that outline is very useful for editors, to see quickly whom to send the paper for reviewing. Then for referees, to see if they want to review or not the paper, and also to have a quick idea on whether they intend to make a positive/negative report. And finally, for referees again, in case they make a positi...
308,194
While my question topic is that of mathematical writing of papers, which is a broad subject, the particular question is specific. I am writing a paper, in which we have a section called "Outline of Proof". (It's Section 2.) The outline is fairly informal, and we omit some technical details, making approximations. Amon...
2018/08/13
[ "https://mathoverflow.net/questions/308194", "https://mathoverflow.net", "https://mathoverflow.net/users/59264/" ]
* ***(a)*** I (and many others) read proof outlines carefully in order to understand the key ideas and the flow of a rigorous proof, even given the details are missing. Think of such an outline as a overview description of a trip: "I take a taxi to San Francisco Airport, then fly to Boston, then take the "T" (subway) t...
Having that outline is very useful for editors, to see quickly whom to send the paper for reviewing. Then for referees, to see if they want to review or not the paper, and also to have a quick idea on whether they intend to make a positive/negative report. And finally, for referees again, in case they make a positi...
308,194
While my question topic is that of mathematical writing of papers, which is a broad subject, the particular question is specific. I am writing a paper, in which we have a section called "Outline of Proof". (It's Section 2.) The outline is fairly informal, and we omit some technical details, making approximations. Amon...
2018/08/13
[ "https://mathoverflow.net/questions/308194", "https://mathoverflow.net", "https://mathoverflow.net/users/59264/" ]
(a) In my mind, the point of a proof outline is to convey the flow of the argument, when this argument may be obscured by technical details when the proof is actually being presented, or when it requires a lot of steps and there is danger of the reader "missing the forest for the trees". If the author(s) feel the need ...
Having that outline is very useful for editors, to see quickly whom to send the paper for reviewing. Then for referees, to see if they want to review or not the paper, and also to have a quick idea on whether they intend to make a positive/negative report. And finally, for referees again, in case they make a positi...
184,111
I have a VBA code that compares values in two columns (Column A & B), which runs slow. Please advise me the changes to make it run fast The below code works just fine, but is running slow. Please advise me on how to make it run fast ``` Sub compare() Dim ListA As Range Dim ListB As Range Dim c A...
2018/01/02
[ "https://codereview.stackexchange.com/questions/184111", "https://codereview.stackexchange.com", "https://codereview.stackexchange.com/users/157080/" ]
I'm sure you can further optimize the code, but this will definitely run faster. It will run faster for a number of reasons, firstly I've combined one of your loops so you only have two For Loops, the second reason is that the code won't be looking at every cell in the worksheet, but it will find the last row with da...
Using **Dynamic Ranges** (a Range that resizes to fit the actual data) will give you a huge performance boost. > > Range("A2:A1048576") ' 1048575 cells > > > Range("A2", Range("A" & Rows.Count).End(xlUp)) 'All Cells between A1 and the last non-empty cell in Column A > > > Reading and writing to an Array is fast...
184,111
I have a VBA code that compares values in two columns (Column A & B), which runs slow. Please advise me the changes to make it run fast The below code works just fine, but is running slow. Please advise me on how to make it run fast ``` Sub compare() Dim ListA As Range Dim ListB As Range Dim c A...
2018/01/02
[ "https://codereview.stackexchange.com/questions/184111", "https://codereview.stackexchange.com", "https://codereview.stackexchange.com/users/157080/" ]
I'm sure you can further optimize the code, but this will definitely run faster. It will run faster for a number of reasons, firstly I've combined one of your loops so you only have two For Loops, the second reason is that the code won't be looking at every cell in the worksheet, but it will find the last row with da...
Looping through the cells in a worksheet is slow. Better to bulk read the values into an array and process them then bulk write back to the worksheet. The worksheet MATCH is faster than COUNTIF (see [Is there a faster CountIF](https://stackoverflow.com/questions/29972016/is-there-a-faster-countif)) at counting and eve...
184,111
I have a VBA code that compares values in two columns (Column A & B), which runs slow. Please advise me the changes to make it run fast The below code works just fine, but is running slow. Please advise me on how to make it run fast ``` Sub compare() Dim ListA As Range Dim ListB As Range Dim c A...
2018/01/02
[ "https://codereview.stackexchange.com/questions/184111", "https://codereview.stackexchange.com", "https://codereview.stackexchange.com/users/157080/" ]
Using **Dynamic Ranges** (a Range that resizes to fit the actual data) will give you a huge performance boost. > > Range("A2:A1048576") ' 1048575 cells > > > Range("A2", Range("A" & Rows.Count).End(xlUp)) 'All Cells between A1 and the last non-empty cell in Column A > > > Reading and writing to an Array is fast...
Looping through the cells in a worksheet is slow. Better to bulk read the values into an array and process them then bulk write back to the worksheet. The worksheet MATCH is faster than COUNTIF (see [Is there a faster CountIF](https://stackoverflow.com/questions/29972016/is-there-a-faster-countif)) at counting and eve...
33,910,683
`Intent myIntent = new Intent(this,Q1.class);` In my app I have 1000 different activities namely Q1,Q2,Q3....Q1000. I have a button on each activity and I want when a user clicks on it, he should land on some random activity. How to achieve this ?
2015/11/25
[ "https://Stackoverflow.com/questions/33910683", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4104873/" ]
I will suggest you use a MultiButton instead of Multilist, then you can add actionEvent to individual element. You can save individual element into static variables in the actionEvent and use it in the before show of your profile form. For example: Declare this globally: ``` private static String UserName = ""; ```...
I totally agree with Diamonds answer and I think that's the best/simplest way to create a list of items. However, if you do still want to use `MultiList` you need to implement a `ListModel` or use `DefaultListModel`. From your question I assume you just used the `MultiList` and filled out the values? In that case wh...
319,356
I would like to double check with you experts. I want to change the Record type label in one of my objects. Nothing should be impacted since the RecordtypeDeveloperName is not changed right?
2020/09/10
[ "https://salesforce.stackexchange.com/questions/319356", "https://salesforce.stackexchange.com", "https://salesforce.stackexchange.com/users/77707/" ]
"Nothing" is a pretty big statement. It is certainly possible for a change in a Record Type Label to cause issues. For example, in older code that predates [`getRecordTypeInfosByDeveloperName()`](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_sobject_describe.htm), and eve...
Check to see if there are any references to the record type label in apex classes, formulas and criteria (workflows, flows, sharing rules). It's good practice to reference the developer name in those scenarios, but there's no guarantee that the label hasn't been used instead. A scan through metadata for "RecordType.Na...
51,093,125
I used zsh and when I run `Ctrl-R` to search history command, I can only get the command executed in this session, but can't search all the history commands. I know there is a `.bash_history` file in bash to store all the history commands and we can do this search in bash. Is there any way to do this in zsh?
2018/06/29
[ "https://Stackoverflow.com/questions/51093125", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4128822/" ]
You can group by B first, and then fill in the missing A values. Then proceed with what you wanted to do: ``` df_filled = df %>% group_by(variable_B) %>% mutate(variable_A = first(na.omit(variable_A))) df_filled %>% group_by(variable_A, variable_B) %>% summarise(total=sum(variable_C)) ```
You could do the missing value imputation using base R as follows: ``` ii <- which(is.na(df$variable_A)) jj <- which(df$variable_B == df$variable_B[ii]) df_filled <- df df_filled$variable_A[jj] = df$variable_A[jj][!is.na(df$variable_A[jj])] ``` Then group and summarize as planned with dplyr ``` df_filled %>% ...
49,709,222
[![page 498 of Head First Java](https://i.stack.imgur.com/giITx.jpg)](https://i.stack.imgur.com/giITx.jpg) First of all I don't know why they wrote the main method in the ThreadTestDrive class, then I went to their website downloaded this code below: ``` public class MyRunnable implements Runnable{ public void run()...
2018/04/07
[ "https://Stackoverflow.com/questions/49709222", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8846444/" ]
I have fixed the issue. The problem was in the command. Firstly I had to put ~ at the start of the path to artisan file. Second I had to enter the absolute path to the php executable. So the final command that worked for me is: ``` /usr/local/bin/php ~/public_html/fifa/artisan schedule:run >> /dev/null 2>&1 ```
I am using Laravel Forge and this works for me: ``` php /home/forge/project_directory/artisan schedule:run ``` Is /public\_html/fifa the path to your project? Try running artisan directly from your project directory: ``` php /path_to_project/artisan schedule:run ```
2,812,117
> > A Grade 11 Art class is offering students two choices for a​ project: a pottery project and a mixed media project. Of the $48$ students in the​ class, $30$ have selected to do the pottery project and $28$ have selected to do the mixed media project​ (notice some students have decided to do​ both). If two students ...
2018/06/08
[ "https://math.stackexchange.com/questions/2812117", "https://math.stackexchange.com", "https://math.stackexchange.com/users/60353/" ]
Yes, you are correct. If one project of each type is *not* shown then this can only be because both chosen students are doing just one project and their projects are the same type. The probability that the two chosen students are both doing only the pottery project is $\frac{20 \times 19}{48 \times 47}$. The probabil...
I am getting the answer 840/1128 but I could be wrong. Please do tell where I made a mistake before down-voting. [![enter image description here](https://i.stack.imgur.com/gVaB9.jpg)](https://i.stack.imgur.com/gVaB9.jpg) (Please excuse my handwriting) --- **CORRECTION #1:** The no. of ways of selecting two students...
538,592
How to use different ip address between virtual machine and laptop. For laptop, my os is mac. And within my laptop, i run a virtual machine (vbox). The os within vbox is ubuntu 11. Thank you.
2013/01/19
[ "https://superuser.com/questions/538592", "https://superuser.com", "https://superuser.com/users/191184/" ]
[SUS4 says](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cd.html#tag_20_14_05): > > When a - is used as the operand, this shall be equivalent to the command: > > > > ``` > cd "$OLDPWD" && pwd > > ``` > > which changes to the previous working directory and then writes its name. > > > So, if y...
Just redirect the stdout to black hole like this ``` cd - > /dev/null ```
538,592
How to use different ip address between virtual machine and laptop. For laptop, my os is mac. And within my laptop, i run a virtual machine (vbox). The os within vbox is ubuntu 11. Thank you.
2013/01/19
[ "https://superuser.com/questions/538592", "https://superuser.com", "https://superuser.com/users/191184/" ]
Just redirect the stdout to black hole like this ``` cd - > /dev/null ```
The simplest way is not to use it. Run the commands in a separate shell: ``` (cd /etc/; ... ) ``` This does not change the current working directory of the 'main' shell. This is typically more robust than using `OLDPWD` because you can have many `cd` commands here like ``` (cd /etc; ... ; cd /tmp; ... ) ```
538,592
How to use different ip address between virtual machine and laptop. For laptop, my os is mac. And within my laptop, i run a virtual machine (vbox). The os within vbox is ubuntu 11. Thank you.
2013/01/19
[ "https://superuser.com/questions/538592", "https://superuser.com", "https://superuser.com/users/191184/" ]
[SUS4 says](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cd.html#tag_20_14_05): > > When a - is used as the operand, this shall be equivalent to the command: > > > > ``` > cd "$OLDPWD" && pwd > > ``` > > which changes to the previous working directory and then writes its name. > > > So, if y...
The simplest way is not to use it. Run the commands in a separate shell: ``` (cd /etc/; ... ) ``` This does not change the current working directory of the 'main' shell. This is typically more robust than using `OLDPWD` because you can have many `cd` commands here like ``` (cd /etc; ... ; cd /tmp; ... ) ```
80,648
I was wondering if Node.js was suitable for making games and apart from threads and engines, a big problem is *can I port my game to Xbox or PS3/PS4?*
2014/07/21
[ "https://gamedev.stackexchange.com/questions/80648", "https://gamedev.stackexchange.com", "https://gamedev.stackexchange.com/users/49618/" ]
[Node.js runs on the V8 JavaScript engine](http://nodejs.org/): > > Node.js is a platform built on Chrome's JavaScript runtime for easily > building fast, scalable network applications. Node.js uses an > event-driven, non-blocking I/O model that makes it lightweight and > efficient, perfect for data-intensive real...
I'm pretty sure that you'll have a hard time using V8 on game consoles because it's going to need to generate code into writable executable pages, which usually isn't allowed. If you ask the developer support folks for the console you're targeting, you may be able to make a business case to make this work.
58,507,216
In Python (2 and 3). Whenever we use list slicing it returns a new object, e.g.: ``` l1 = [1,2,3,4] print(id(l1)) l2 = l1[:] print(id(l2)) ``` Output ``` >>> 140344378384464 >>> 140344378387272 ``` If the same thing is repeated with tuple, the same object is returned, e.g.: ``` t1 = (1,2,3,4) t2 = t1[:] print(id...
2019/10/22
[ "https://Stackoverflow.com/questions/58507216", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10704952/" ]
It's an implementation detail. Because lists are mutable, `l1[:]` *must* create a copy, because you wouldn't expect changes to `l2` to affect `l1`. Since a tuple is *immutable*, though, there's nothing you can do to `t2` that would affect `t1` in any visible way, so the compiler is free (but not *required*) to use the...
Not sure about this but it seems that Python provides you with a new pointer to the same object to avoid copying since the tuples are identical (and since the object is a tuple, it's immutable).
58,507,216
In Python (2 and 3). Whenever we use list slicing it returns a new object, e.g.: ``` l1 = [1,2,3,4] print(id(l1)) l2 = l1[:] print(id(l2)) ``` Output ``` >>> 140344378384464 >>> 140344378387272 ``` If the same thing is repeated with tuple, the same object is returned, e.g.: ``` t1 = (1,2,3,4) t2 = t1[:] print(id...
2019/10/22
[ "https://Stackoverflow.com/questions/58507216", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10704952/" ]
Implementations are free to return identical instances for **immutable types** (in CPython, you may sometimes see similar optimizations for strings and integers). Since the object can not be changed, there is nothing in user code that needs to care whether it holds a unique instance or just another reference to an exis...
It's an implementation detail. Because lists are mutable, `l1[:]` *must* create a copy, because you wouldn't expect changes to `l2` to affect `l1`. Since a tuple is *immutable*, though, there's nothing you can do to `t2` that would affect `t1` in any visible way, so the compiler is free (but not *required*) to use the...
58,507,216
In Python (2 and 3). Whenever we use list slicing it returns a new object, e.g.: ``` l1 = [1,2,3,4] print(id(l1)) l2 = l1[:] print(id(l2)) ``` Output ``` >>> 140344378384464 >>> 140344378387272 ``` If the same thing is repeated with tuple, the same object is returned, e.g.: ``` t1 = (1,2,3,4) t2 = t1[:] print(id...
2019/10/22
[ "https://Stackoverflow.com/questions/58507216", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10704952/" ]
It's an implementation detail. Because lists are mutable, `l1[:]` *must* create a copy, because you wouldn't expect changes to `l2` to affect `l1`. Since a tuple is *immutable*, though, there's nothing you can do to `t2` that would affect `t1` in any visible way, so the compiler is free (but not *required*) to use the...
In Python 3.\* `my_list[:]` is syntactic sugar for `type(my_list).__getitem__(mylist, slice_object)` where: `slice_object` is a slice object built from `my_list`'s attributes (length) and the expression `[:]`. Objects that behave this way are called subscriptable in the Python data model see [here](https://docs.python....
58,507,216
In Python (2 and 3). Whenever we use list slicing it returns a new object, e.g.: ``` l1 = [1,2,3,4] print(id(l1)) l2 = l1[:] print(id(l2)) ``` Output ``` >>> 140344378384464 >>> 140344378387272 ``` If the same thing is repeated with tuple, the same object is returned, e.g.: ``` t1 = (1,2,3,4) t2 = t1[:] print(id...
2019/10/22
[ "https://Stackoverflow.com/questions/58507216", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10704952/" ]
Implementations are free to return identical instances for **immutable types** (in CPython, you may sometimes see similar optimizations for strings and integers). Since the object can not be changed, there is nothing in user code that needs to care whether it holds a unique instance or just another reference to an exis...
Not sure about this but it seems that Python provides you with a new pointer to the same object to avoid copying since the tuples are identical (and since the object is a tuple, it's immutable).
58,507,216
In Python (2 and 3). Whenever we use list slicing it returns a new object, e.g.: ``` l1 = [1,2,3,4] print(id(l1)) l2 = l1[:] print(id(l2)) ``` Output ``` >>> 140344378384464 >>> 140344378387272 ``` If the same thing is repeated with tuple, the same object is returned, e.g.: ``` t1 = (1,2,3,4) t2 = t1[:] print(id...
2019/10/22
[ "https://Stackoverflow.com/questions/58507216", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10704952/" ]
In Python 3.\* `my_list[:]` is syntactic sugar for `type(my_list).__getitem__(mylist, slice_object)` where: `slice_object` is a slice object built from `my_list`'s attributes (length) and the expression `[:]`. Objects that behave this way are called subscriptable in the Python data model see [here](https://docs.python....
Not sure about this but it seems that Python provides you with a new pointer to the same object to avoid copying since the tuples are identical (and since the object is a tuple, it's immutable).
58,507,216
In Python (2 and 3). Whenever we use list slicing it returns a new object, e.g.: ``` l1 = [1,2,3,4] print(id(l1)) l2 = l1[:] print(id(l2)) ``` Output ``` >>> 140344378384464 >>> 140344378387272 ``` If the same thing is repeated with tuple, the same object is returned, e.g.: ``` t1 = (1,2,3,4) t2 = t1[:] print(id...
2019/10/22
[ "https://Stackoverflow.com/questions/58507216", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10704952/" ]
Implementations are free to return identical instances for **immutable types** (in CPython, you may sometimes see similar optimizations for strings and integers). Since the object can not be changed, there is nothing in user code that needs to care whether it holds a unique instance or just another reference to an exis...
In Python 3.\* `my_list[:]` is syntactic sugar for `type(my_list).__getitem__(mylist, slice_object)` where: `slice_object` is a slice object built from `my_list`'s attributes (length) and the expression `[:]`. Objects that behave this way are called subscriptable in the Python data model see [here](https://docs.python....
217,868
I am computing the Galois groups of quintics using the theorems from Ryan Kavanagh paper "On Irreducible Rational Quintics" using the decic resolvent ${P}\_{10} \left({x}\right) = \prod\limits\_{1 \le i < j \le 5} \left({x - \left({{\alpha}\_{i} + {\alpha}\_{j}}\right)}\right)$. The relevant part is the second part of ...
2015/09/09
[ "https://mathoverflow.net/questions/217868", "https://mathoverflow.net", "https://mathoverflow.net/users/62471/" ]
Alas, I have insufficient reputation to comment, so I'll submit my comment as an answer. Thanks to everybody for the feedback; I'll look at working it into the paper and trying to salvage it. I wrote it during my third year of undergraduate studies for my Galois theory class, and to be honest, I never expected anybody...
As pointed out by Will Sawin in the comments, the result is just wrong. However, the Monthly Paper by Dummitt (1991) Kavanagh cites (where he uses a sextic resolvent) is correct, so you might want to use that instead.
255,332
I did some small changes based on the lwc-recipes, apex series. But I am getting an error telling me e[ki] is not a function, which is obviously from some library code. And I find it hard to debug into it. That error comes from the wire function. If I remove that particular line, the issue is gone. My apex code: ``...
2019/03/26
[ "https://salesforce.stackexchange.com/questions/255332", "https://salesforce.stackexchange.com", "https://salesforce.stackexchange.com/users/4618/" ]
Whenever you use `for:each` you have to use `key` attribute in the child markup. If not it gives a compilation error. From [SF Docs](https://developer.salesforce.com/docs/component-library/documentation/lwc/migrate_iterations): > > Note that you must use a key to assign a unique value to each item in > the list. > ...
For creating select list drop down in LWC, we may also use [lightning-combobox](https://developer.salesforce.com/docs/component-library/bundle/lightning-combobox/example).
62,541,558
I am using powershell to pull basic computer information from all computers on a LAN. These computers are not, and will never be on, a domain. I have had some success in my test runs getting the output for all of the machines to save into the c:\scripts folder on the host machine. I am, however, having to use the Invok...
2020/06/23
[ "https://Stackoverflow.com/questions/62541558", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9477504/" ]
If the goal is to give yourself the option to output to multiple files on the calling system, you *could* use a hash table (`$results`) inside of your script block to store your results. Then output that table at the end of your script block. Based on those keys/values, you could output to file. ``` foreach ($computer...
You can redirect the output ``` $YourScriptBlock = { your script } $result = Invoke-Command -ScriptBlock $YourScriptBlock 4>&1 -Computer $c -Credential $c ``` Afterwards the contents are in $result ``` write-output $result ```
27,061,725
* It should say new record and then I should be able to see new data in items table * connection to database file contains: ``` $server="localhost"; $login="root"; $pass=""; $database="floweritem"; $con=mysqli_connect($server,$login,$pass,$database); if(mysqli_connect_errno()){ echo "Faile...
2014/11/21
[ "https://Stackoverflow.com/questions/27061725", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
You need to add single quotes against values. Corrected Code: ``` //no problwm with connection to table or database $sql="INSERT INTO `items`(`Name`,`Description`,`Size`,`Price`) VALUES('$Name','$Desc','$Size','$Price')"; echo $Desc; ``` Otherwise, MySQL will consider user entered values as MySQL keyw...
Try this its working : **PHP :** ``` <?php if(isset($_POST['submit'])){ $Name=mysqli_real_escape_string($con,$_POST['Name']); $Desc=mysqli_real_escape_string($con,$_POST['Desc']); $Size=mysqli_real_escape_string($con,$_POST['Size']); $Price=mysqli_real_escape_string($con,$_POST['Price']); //n...
27,061,725
* It should say new record and then I should be able to see new data in items table * connection to database file contains: ``` $server="localhost"; $login="root"; $pass=""; $database="floweritem"; $con=mysqli_connect($server,$login,$pass,$database); if(mysqli_connect_errno()){ echo "Faile...
2014/11/21
[ "https://Stackoverflow.com/questions/27061725", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
New php code should be like this ``` <?php if(isset($_POST['submit'])){ $Name=mysqli_real_escape_string($con,$_POST['Name']); $Desc=mysqli_real_escape_string($con,$_POST['Desc']); $Size=mysqli_real_escape_string($con,$_POST['Size']); $Price=mysqli_real_escape_string($con,$_POST['Price']); //no...
Try this its working : **PHP :** ``` <?php if(isset($_POST['submit'])){ $Name=mysqli_real_escape_string($con,$_POST['Name']); $Desc=mysqli_real_escape_string($con,$_POST['Desc']); $Size=mysqli_real_escape_string($con,$_POST['Size']); $Price=mysqli_real_escape_string($con,$_POST['Price']); //n...
11,221,169
I need to make something like: ``` Type CustomType = Type.GetType("instanceName"); ``` It always returns null. instanceName is a string which represents a type contained in a dll added to References (with copyLocal property set to false). I also tried: ``` Type CustomType = Type.GetType("instanceName, dllFile.dll"...
2012/06/27
[ "https://Stackoverflow.com/questions/11221169", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1474105/" ]
If the assembly is already loaded you could try this: ``` Type customType = Type.GetType("namespace.typename, assembly"); ```
If you are not deploying the assembly to the GAC and the `CopyLocal` setting is set to `false`, then where are you planning to load the assembly from? If you are planning to deploy the assemblies to a fixed location on a drive, you can use `Assembly.LoadFrom`: ``` var assembly = Assembly.LoadFrom(@"C:\Path\To\Assemb...
379,511
I am just trying to figure out the max current which i could expose my new micro JST cables to. It says [here](http://www.jst-mfg.com/product/pdf/eng/eSH.pdf) that they are rated for 1A and 50V. Converted to power that would be 50W. that sounds very high for such thin wire. Am I understanding the ratings correctly? Cou...
2018/06/12
[ "https://electronics.stackexchange.com/questions/379511", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/167893/" ]
No, your understanding is not correct and you can't increase the current at lower voltages. The current rating is the maximum current that can pass through the connector without damaging the connector. This would be limited by the inherent current-carrying ability of the conducting parts of the connector. The voltage ...
No, the current rating already defines the maximum current the cable/connector can conduct. The 50V defines the widthstand voltage or isolation voltage that can be applied between two pins safely.
48,897,274
I have 2 sources of data. 1. A service call which gets the current state of a list of items 2. A stream of updates to these items I am trying to merge them in a way that I don't lose any of the updates while making the service call. I made a simple test to experiment with that I think shows what I want ``` private...
2018/02/21
[ "https://Stackoverflow.com/questions/48897274", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7794964/" ]
According to the [MSDN](https://msdn.microsoft.com/en-us/library/office/aa223009(v=office.11).aspx): > > **List Object:** Represents a single list format that's been applied to specified paragraphs in a document. > > > So if you have more than one list with some non-bulleted paragraph(s) in the middle, the `Range...
Even before touching VBA: * Use Styles in the document. * Limit the use of Styles in the document to only those that are in the template. * Set your spacing in the Styles. If, at some stage, you change your mind and want to use `6pt` spacing, you can adjust the template and re-apply it, rather than finding all the VB...
138,808
> > Construction workers in high-rise buildings face greater risk of death on the job than office workers do. By comparing wages in risky and less risky occupations, **controlling for**, education, experience, and other determinants of wages, economists can get some sense about what value people put on their own lives...
2017/08/12
[ "https://ell.stackexchange.com/questions/138808", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/55896/" ]
When you are using statistics to understand a relationship between two things, you have to be careful that a third thing doesn't cause a problem. Suppose you want to see how human height is caused racial genetics. You measure the height of 100 randomly selected white people from around the world, and 100 randomly sele...
In your example > > **controlling for** > > > means that a particular variable is kept the same or nearly the same when comparing other variables. For example, if you were to look at risky occupations in general, there will be some people with high levels of education and some with low. When looked at separately,...
138,808
> > Construction workers in high-rise buildings face greater risk of death on the job than office workers do. By comparing wages in risky and less risky occupations, **controlling for**, education, experience, and other determinants of wages, economists can get some sense about what value people put on their own lives...
2017/08/12
[ "https://ell.stackexchange.com/questions/138808", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/55896/" ]
In your example > > **controlling for** > > > means that a particular variable is kept the same or nearly the same when comparing other variables. For example, if you were to look at risky occupations in general, there will be some people with high levels of education and some with low. When looked at separately,...
It depends on the context. In a broader sense, it also means data binning a variable you suspect is affecting the relationship between the variables you are interested in and include it into your hypothesized model. If for each bin of the controlled variable you observe the similar effect between the variables you’re i...
138,808
> > Construction workers in high-rise buildings face greater risk of death on the job than office workers do. By comparing wages in risky and less risky occupations, **controlling for**, education, experience, and other determinants of wages, economists can get some sense about what value people put on their own lives...
2017/08/12
[ "https://ell.stackexchange.com/questions/138808", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/55896/" ]
When you are using statistics to understand a relationship between two things, you have to be careful that a third thing doesn't cause a problem. Suppose you want to see how human height is caused racial genetics. You measure the height of 100 randomly selected white people from around the world, and 100 randomly sele...
It depends on the context. In a broader sense, it also means data binning a variable you suspect is affecting the relationship between the variables you are interested in and include it into your hypothesized model. If for each bin of the controlled variable you observe the similar effect between the variables you’re i...
40,692,004
My dataset has a date in NUM format 201011 which is Nov 2010. I want it converted to 2010Q4 in date format. I applied YYQ6. format but it shows results as 2510Q4. What is wrong in here? ``` data abc; date=201011; run; data abc2; set abc1; format date YYQ.; run; ```
2016/11/19
[ "https://Stackoverflow.com/questions/40692004", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5990374/" ]
We also discovered this bug a long time ago. In our case there was a problem when you set multiple positions at the same time / flush. We ended up using the complete sort order of javascript without the gedmo extension because single flushes were too expensive. Also have a look at the following bug issues which could ...
Right now (october 2019) everything works perfectly as expected, I think this "bug" does not exist anymore.
40,692,004
My dataset has a date in NUM format 201011 which is Nov 2010. I want it converted to 2010Q4 in date format. I applied YYQ6. format but it shows results as 2510Q4. What is wrong in here? ``` data abc; date=201011; run; data abc2; set abc1; format date YYQ.; run; ```
2016/11/19
[ "https://Stackoverflow.com/questions/40692004", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5990374/" ]
We also discovered this bug a long time ago. In our case there was a problem when you set multiple positions at the same time / flush. We ended up using the complete sort order of javascript without the gedmo extension because single flushes were too expensive. Also have a look at the following bug issues which could ...
I had similar problem and I have to add @Gedmo\SortableGroup to my ManyToOne column.
33,424,400
I have a select dropdown: ``` <select class="selector"> <option value="Yes">Enabled</option> <option value="No">Disabled</option> </select> ``` And an input: ``` <input type="text" class="tester" value="test"> ``` What I am trying to do is toggle the disabled property on the input when the select option chang...
2015/10/29
[ "https://Stackoverflow.com/questions/33424400", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2110294/" ]
Your selector when reading the .val() is incorrect, try this ``` $( ".selector" ) .change(function () { var selector = $(this).val(); if (selector == 'No') { $('.tester').prop( "disabled", true ); } else { $('.tester').prop( "disabled", false ); } }) .change(); ``` If it's still not working, debug i...
You should use the attribute `disabled` instead of the property. ``` $( ".selector" ) .change(function () { var selector = $(".selector").val(); if (selector == 'No') { $('.tester').attr( "disabled", "disabled" ); } else { $('.tester').removeAttr( "disabled"); } }) .change(); ``` Here you go: <https:...
33,424,400
I have a select dropdown: ``` <select class="selector"> <option value="Yes">Enabled</option> <option value="No">Disabled</option> </select> ``` And an input: ``` <input type="text" class="tester" value="test"> ``` What I am trying to do is toggle the disabled property on the input when the select option chang...
2015/10/29
[ "https://Stackoverflow.com/questions/33424400", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2110294/" ]
You're using a bad selector inside the callback function: ``` $( ".selector" ) .change(function () { var selector = $('selector').val(); // The problem is here if (selector == 'No') { $('.tester').prop( "disabled", true ); } else { $('.tester').prop( "disabled", false ); } }) .change(); ``` Try chang...
You should use the attribute `disabled` instead of the property. ``` $( ".selector" ) .change(function () { var selector = $(".selector").val(); if (selector == 'No') { $('.tester').attr( "disabled", "disabled" ); } else { $('.tester').removeAttr( "disabled"); } }) .change(); ``` Here you go: <https:...
33,424,400
I have a select dropdown: ``` <select class="selector"> <option value="Yes">Enabled</option> <option value="No">Disabled</option> </select> ``` And an input: ``` <input type="text" class="tester" value="test"> ``` What I am trying to do is toggle the disabled property on the input when the select option chang...
2015/10/29
[ "https://Stackoverflow.com/questions/33424400", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2110294/" ]
You have a problem in one of the selectors, you are using `selector` so a `.` is missing. Change it to `.selector`, `$(this)` would also work. ```js $( ".selector" ) .change(function () { var selector = $(".selector").val(); //HERE IS THE CHANGE. ALSO: $(this).... if (selector == 'No') { $('.tester').prop(...
You should use the attribute `disabled` instead of the property. ``` $( ".selector" ) .change(function () { var selector = $(".selector").val(); if (selector == 'No') { $('.tester').attr( "disabled", "disabled" ); } else { $('.tester').removeAttr( "disabled"); } }) .change(); ``` Here you go: <https:...
33,424,400
I have a select dropdown: ``` <select class="selector"> <option value="Yes">Enabled</option> <option value="No">Disabled</option> </select> ``` And an input: ``` <input type="text" class="tester" value="test"> ``` What I am trying to do is toggle the disabled property on the input when the select option chang...
2015/10/29
[ "https://Stackoverflow.com/questions/33424400", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2110294/" ]
You're using a bad selector inside the callback function: ``` $( ".selector" ) .change(function () { var selector = $('selector').val(); // The problem is here if (selector == 'No') { $('.tester').prop( "disabled", true ); } else { $('.tester').prop( "disabled", false ); } }) .change(); ``` Try chang...
Your selector when reading the .val() is incorrect, try this ``` $( ".selector" ) .change(function () { var selector = $(this).val(); if (selector == 'No') { $('.tester').prop( "disabled", true ); } else { $('.tester').prop( "disabled", false ); } }) .change(); ``` If it's still not working, debug i...
33,424,400
I have a select dropdown: ``` <select class="selector"> <option value="Yes">Enabled</option> <option value="No">Disabled</option> </select> ``` And an input: ``` <input type="text" class="tester" value="test"> ``` What I am trying to do is toggle the disabled property on the input when the select option chang...
2015/10/29
[ "https://Stackoverflow.com/questions/33424400", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2110294/" ]
Your selector when reading the .val() is incorrect, try this ``` $( ".selector" ) .change(function () { var selector = $(this).val(); if (selector == 'No') { $('.tester').prop( "disabled", true ); } else { $('.tester').prop( "disabled", false ); } }) .change(); ``` If it's still not working, debug i...
You have a problem in one of the selectors, you are using `selector` so a `.` is missing. Change it to `.selector`, `$(this)` would also work. ```js $( ".selector" ) .change(function () { var selector = $(".selector").val(); //HERE IS THE CHANGE. ALSO: $(this).... if (selector == 'No') { $('.tester').prop(...
33,424,400
I have a select dropdown: ``` <select class="selector"> <option value="Yes">Enabled</option> <option value="No">Disabled</option> </select> ``` And an input: ``` <input type="text" class="tester" value="test"> ``` What I am trying to do is toggle the disabled property on the input when the select option chang...
2015/10/29
[ "https://Stackoverflow.com/questions/33424400", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2110294/" ]
You're using a bad selector inside the callback function: ``` $( ".selector" ) .change(function () { var selector = $('selector').val(); // The problem is here if (selector == 'No') { $('.tester').prop( "disabled", true ); } else { $('.tester').prop( "disabled", false ); } }) .change(); ``` Try chang...
You have a problem in one of the selectors, you are using `selector` so a `.` is missing. Change it to `.selector`, `$(this)` would also work. ```js $( ".selector" ) .change(function () { var selector = $(".selector").val(); //HERE IS THE CHANGE. ALSO: $(this).... if (selector == 'No') { $('.tester').prop(...
36,095,141
No matter how many times I've changed my folder and file names, made sure they are relative paths, etc., I can't seem to have my background image appear in my Jumbotron. I just want it to show up behind in my Jumbotron DIV, but it's not. Here's my HTML: ``` <!DOCTYPE html> <html lang="en"> <head> <title>Mock We...
2016/03/18
[ "https://Stackoverflow.com/questions/36095141", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3385997/" ]
If you execute your application the main list will be null. When you then call `readFile()`, you will not update the list in main. You just pass the pointer by value, so that you'll update the local paramater of that function. By the way, the call to `insertFull()` has the almost the same problem: it returns the list...
the following code compiles cleanly However, it will not link because the function: `find_student()` is commented out. Examination of the code indicates it will not fully perform all the desired functionality. So you will still have to debug the execution. Suggest using a debugger, like `gdb` ``` #include <stdio.h>...
54,071,325
I should use `node.js`. I would like to use `reactjs` to render my views. but there are some questions. 1. pre-defined functions inside `reactjs` like `componentDidMount` will work? 2. I should use `redux`, is it possible? 3. which of routing I should use (`react` or `express.js` router)?
2019/01/07
[ "https://Stackoverflow.com/questions/54071325", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3369042/" ]
1) Predefined functions like componentDidMount will totally work as well as the other lifecycle events in React. 2) Yes, it's possible, Redux is great for app-state management and preserving data to be used inside the application for each instance. 3) You should make use of both React-Router and Express. You can use ...
1. Yes 2. Yes, It is possible 3. react-router is for internal App routing. Where Express.js can only route to /index.html on main source. > > Eg: myapp.com/reactapp -> done by Express, where index.html is on > /reactapp myapp.com/myapp/new/view --> here /new/view is routed by > react > > >
35,293
In Elder Scrolls: Oblivion, the player had to concern themselves with what level they chose to start and complete quests due to the quality of the reward being based on their level. Is this Level:Reward ratio still a part of the Elder Scrolls series in Skyrim?
2011/11/12
[ "https://gaming.stackexchange.com/questions/35293", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/14050/" ]
It seems to. At least, [this source](http://www.gamefaqs.com/boards/615803-the-elder-scrolls-v-skyrim/60961572) seems to believe so. It would make sense, too. Even in the last two Fallout games, the rewards were leveled.
Yes. Here is [proof](http://www.uesp.net/wiki/Skyrim:Leveled_Items) You can see that the same item at different levels of power have a minimum level to spawn, and different Item IDs.
35,293
In Elder Scrolls: Oblivion, the player had to concern themselves with what level they chose to start and complete quests due to the quality of the reward being based on their level. Is this Level:Reward ratio still a part of the Elder Scrolls series in Skyrim?
2011/11/12
[ "https://gaming.stackexchange.com/questions/35293", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/14050/" ]
It seems to. At least, [this source](http://www.gamefaqs.com/boards/615803-the-elder-scrolls-v-skyrim/60961572) seems to believe so. It would make sense, too. Even in the last two Fallout games, the rewards were leveled.
When you're in high levels, you will find stronger armor when looting. Bandits will just wear normal leather, fur, and iron armor unlike oblivion if you're in a high level. Thalmor soldiers will start to wear glass armor instead of Elven. The best way of getting these strong armors are not just to be in a high level, b...