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
114,106
**Context:** I'm currently helping out my friend, who is full on into creating his own cryptocurrencies business, by creating simple landing pages for him, installing WordPress, etc. As we are friends (not that close but still), we do not have any contract or anything written down on paper. **Problem:** Once we deci...
2018/06/15
[ "https://workplace.stackexchange.com/questions/114106", "https://workplace.stackexchange.com", "https://workplace.stackexchange.com/users/88149/" ]
Friendship stops when business is involved. His excuses don’t matter even if true. If he can’t find the money to pay you, that’s his problem, not yours. So you should insist on prompt payment, and because of the payment history ask for cash on delivery for your next bit of work. And of course he is sensitive about ...
Business is business, friendship is friendship. Don't mix them up. You do the work for him. You get paid from him. Simple as that. The things you need to do? Get him sign a contract which states the rate, how much time you work every week, when you get paid after delivery, etc. **Insist on** him signing the contract ...
12,087,152
Trying to get the results of one query into the `WHERE` statement of another: ``` $query1 = "SELECT DISTINCT company_id FROM location WHERE state = 'XX'"; $result1 = mysql_query($query1) or die(mysql_error()); while($row1 = mysql_fetch_array($result1)) { //Collect WHERE STATEMENT HERE } ``` I've tried the follow...
2012/08/23
[ "https://Stackoverflow.com/questions/12087152", "https://Stackoverflow.com", "https://Stackoverflow.com/users/987329/" ]
You could also use `IN`: ``` $x = array('16', '7'); $q1 = "SELECT company FROM company WHERE id IN(". implode(',', $x) .") ORDER BY company"; ```
use `OR` ``` $q1 = "SELECT company FROM company WHERE (id = '16' OR id = '7') ORDER BY company"; ```
12,087,152
Trying to get the results of one query into the `WHERE` statement of another: ``` $query1 = "SELECT DISTINCT company_id FROM location WHERE state = 'XX'"; $result1 = mysql_query($query1) or die(mysql_error()); while($row1 = mysql_fetch_array($result1)) { //Collect WHERE STATEMENT HERE } ``` I've tried the follow...
2012/08/23
[ "https://Stackoverflow.com/questions/12087152", "https://Stackoverflow.com", "https://Stackoverflow.com/users/987329/" ]
for a generalized code : ``` $ids = array ( [0] => 2 [1] => 4 [2] => 19 [3] => 16 ); $ids = join(',',$ids); $sql = "SELECT * FROM company WHERE id IN ($ids)"; ``` reffer : [same example](https://stackoverflow.com/questions/907806/php-mysql-using-an-array-in-where-clause)
use `OR` ``` $q1 = "SELECT company FROM company WHERE (id = '16' OR id = '7') ORDER BY company"; ```
12,087,152
Trying to get the results of one query into the `WHERE` statement of another: ``` $query1 = "SELECT DISTINCT company_id FROM location WHERE state = 'XX'"; $result1 = mysql_query($query1) or die(mysql_error()); while($row1 = mysql_fetch_array($result1)) { //Collect WHERE STATEMENT HERE } ``` I've tried the follow...
2012/08/23
[ "https://Stackoverflow.com/questions/12087152", "https://Stackoverflow.com", "https://Stackoverflow.com/users/987329/" ]
for a generalized code : ``` $ids = array ( [0] => 2 [1] => 4 [2] => 19 [3] => 16 ); $ids = join(',',$ids); $sql = "SELECT * FROM company WHERE id IN ($ids)"; ``` reffer : [same example](https://stackoverflow.com/questions/907806/php-mysql-using-an-array-in-where-clause)
You could also use `IN`: ``` $x = array('16', '7'); $q1 = "SELECT company FROM company WHERE id IN(". implode(',', $x) .") ORDER BY company"; ```
24,936,314
I am trying to import a large database into my WAMP 2.5 server phpmyadmin. After importing some tables an error occurs: > > Fatal error: Maximum execution time of 360 seconds exceeded in C:\wamp\apps\phpmyadmin4.1.14\libraries\dbi\DBIMysqli.class.php on line 285 > > > and the importing process is stopped. I have ...
2014/07/24
[ "https://Stackoverflow.com/questions/24936314", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3336980/" ]
Don't modify the `php.ini` file ! Modify the **alias of the phpMyAdmin** file : `J:\wamp\alias\phpmyadmin.conf` Before the line `</Directory>`, you can describe what you want : ``` php_admin_value upload_max_filesize 128M php_admin_value post_max_size 128M php_admin_value max_execution_time 360 php_admin_valu...
Although strongly not recommended, you can remove the maximum script run-time restriction by setting `max_execution_time` to zero: <http://php.net/manual/en/info.configuration.php#ini.max-execution-time> If there's a more reliable way for you to get the file onto the server (SFTP?) I would suggest you try that first.
24,936,314
I am trying to import a large database into my WAMP 2.5 server phpmyadmin. After importing some tables an error occurs: > > Fatal error: Maximum execution time of 360 seconds exceeded in C:\wamp\apps\phpmyadmin4.1.14\libraries\dbi\DBIMysqli.class.php on line 285 > > > and the importing process is stopped. I have ...
2014/07/24
[ "https://Stackoverflow.com/questions/24936314", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3336980/" ]
You can also forget about phpMyAdmin completely and use the `mysql console` Using the wampmanager icon menus do the following :- ``` left click wampmanager -> MySQL -> MySQL Console ``` If you have changed the password for the root userid enter that when challenged or if you have not changed it just hit enter. Mak...
Although strongly not recommended, you can remove the maximum script run-time restriction by setting `max_execution_time` to zero: <http://php.net/manual/en/info.configuration.php#ini.max-execution-time> If there's a more reliable way for you to get the file onto the server (SFTP?) I would suggest you try that first.
24,936,314
I am trying to import a large database into my WAMP 2.5 server phpmyadmin. After importing some tables an error occurs: > > Fatal error: Maximum execution time of 360 seconds exceeded in C:\wamp\apps\phpmyadmin4.1.14\libraries\dbi\DBIMysqli.class.php on line 285 > > > and the importing process is stopped. I have ...
2014/07/24
[ "https://Stackoverflow.com/questions/24936314", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3336980/" ]
Don't modify the `php.ini` file ! Modify the **alias of the phpMyAdmin** file : `J:\wamp\alias\phpmyadmin.conf` Before the line `</Directory>`, you can describe what you want : ``` php_admin_value upload_max_filesize 128M php_admin_value post_max_size 128M php_admin_value max_execution_time 360 php_admin_valu...
You can also forget about phpMyAdmin completely and use the `mysql console` Using the wampmanager icon menus do the following :- ``` left click wampmanager -> MySQL -> MySQL Console ``` If you have changed the password for the root userid enter that when challenged or if you have not changed it just hit enter. Mak...
4,382
The concept of attachment and different attachment styles has a long tradition in developmental psychology. Mary Ainsworth developed a classification for three different attachment styles that she called *secure*, *insecure-resistant* or synonymously *insecure-ambivalent* and finally *insecure-avoidant* (Main, 1996). A...
2013/08/23
[ "https://cogsci.stackexchange.com/questions/4382", "https://cogsci.stackexchange.com", "https://cogsci.stackexchange.com/users/695/" ]
**Background:** There is abundant research linking childhood attachment styles and adult attachment styles. This doesn't mean that an individual's attachment style is set in stone for life; it is a good indicator of how a child will fare as an adult. **The advent of Attachment theory:** [A Brief Overview of Adult At...
In the [introduction](http://scielo.isciii.es/scielo.php?pid=S0213-61632006000400006&script=sci_arttext) to their study, Conradi et al. (2006) give a brief and very good overview over the different approaches to classify and measure attachment styles. I encourage everyone, who is interested in the subject to read it. H...
4,382
The concept of attachment and different attachment styles has a long tradition in developmental psychology. Mary Ainsworth developed a classification for three different attachment styles that she called *secure*, *insecure-resistant* or synonymously *insecure-ambivalent* and finally *insecure-avoidant* (Main, 1996). A...
2013/08/23
[ "https://cogsci.stackexchange.com/questions/4382", "https://cogsci.stackexchange.com", "https://cogsci.stackexchange.com/users/695/" ]
**Background:** There is abundant research linking childhood attachment styles and adult attachment styles. This doesn't mean that an individual's attachment style is set in stone for life; it is a good indicator of how a child will fare as an adult. **The advent of Attachment theory:** [A Brief Overview of Adult At...
Please consider the work of Dr. Patricia Crittenden; "Dynamic-Maturational Model (DMM) of Attachment & Adaptation". Based on the theoretical work of Bowlby, as a doctoral student, Dr. Crittenden, in concert with Dr. Ainsworth, began the foundational work of the DMM. The classification system appears to address the prob...
4,382
The concept of attachment and different attachment styles has a long tradition in developmental psychology. Mary Ainsworth developed a classification for three different attachment styles that she called *secure*, *insecure-resistant* or synonymously *insecure-ambivalent* and finally *insecure-avoidant* (Main, 1996). A...
2013/08/23
[ "https://cogsci.stackexchange.com/questions/4382", "https://cogsci.stackexchange.com", "https://cogsci.stackexchange.com/users/695/" ]
In the [introduction](http://scielo.isciii.es/scielo.php?pid=S0213-61632006000400006&script=sci_arttext) to their study, Conradi et al. (2006) give a brief and very good overview over the different approaches to classify and measure attachment styles. I encourage everyone, who is interested in the subject to read it. H...
Please consider the work of Dr. Patricia Crittenden; "Dynamic-Maturational Model (DMM) of Attachment & Adaptation". Based on the theoretical work of Bowlby, as a doctoral student, Dr. Crittenden, in concert with Dr. Ainsworth, began the foundational work of the DMM. The classification system appears to address the prob...
57,323,260
Trying to push the Gradle project to Github package registry, but not working as expected. Using `io.freefair.github.package-registry-maven-publish` plugin for Gradle. Configure GitHub in `build.gradle` with data needed to publish - code below. And run the publishing task `publishAllPublicationsToGutHub`. Getting no...
2019/08/02
[ "https://Stackoverflow.com/questions/57323260", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9571426/" ]
**New answer**: GitHub has published the official guide: [Configuring Gradle for use with GitHub Packages](https://help.github.com/en/github/managing-packages-with-github-packages/configuring-gradle-for-use-with-github-packages). --- **Old answer**: It seems like the plugin [is not very stable yet](https://github.c...
I was able to publish to the Github Package Registry using the maven-publish plugin. It seems to work just fine now. My build.gradle file looks like this: ``` buildscript { repositories { mavenCentral() } } plugins { id 'java' id 'maven-publish' } group 'com.company.project' archivesBaseNam...
57,323,260
Trying to push the Gradle project to Github package registry, but not working as expected. Using `io.freefair.github.package-registry-maven-publish` plugin for Gradle. Configure GitHub in `build.gradle` with data needed to publish - code below. And run the publishing task `publishAllPublicationsToGutHub`. Getting no...
2019/08/02
[ "https://Stackoverflow.com/questions/57323260", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9571426/" ]
**New answer**: GitHub has published the official guide: [Configuring Gradle for use with GitHub Packages](https://help.github.com/en/github/managing-packages-with-github-packages/configuring-gradle-for-use-with-github-packages). --- **Old answer**: It seems like the plugin [is not very stable yet](https://github.c...
GitHub has published the official document for How to use Gradle with GitHub packager <https://help.github.com/en/github/managing-packages-with-github-packages/configuring-gradle-for-use-with-github-packages#authenticating-to-github-packages>
57,323,260
Trying to push the Gradle project to Github package registry, but not working as expected. Using `io.freefair.github.package-registry-maven-publish` plugin for Gradle. Configure GitHub in `build.gradle` with data needed to publish - code below. And run the publishing task `publishAllPublicationsToGutHub`. Getting no...
2019/08/02
[ "https://Stackoverflow.com/questions/57323260", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9571426/" ]
**New answer**: GitHub has published the official guide: [Configuring Gradle for use with GitHub Packages](https://help.github.com/en/github/managing-packages-with-github-packages/configuring-gradle-for-use-with-github-packages). --- **Old answer**: It seems like the plugin [is not very stable yet](https://github.c...
Complete those properties correctly 1. OWNER 2. REPOSITORY 3. USERNAME (or gradle property `gpr.user`) 4. PASSWORD (or gradle property `gpr.key`) @See demo 1. <https://github.com/youngerier/packagesdemo> 2. <https://help.github.com/en/github/managing-packages-with-github-packages/configuring-gradle-for-use-with-gith...
57,323,260
Trying to push the Gradle project to Github package registry, but not working as expected. Using `io.freefair.github.package-registry-maven-publish` plugin for Gradle. Configure GitHub in `build.gradle` with data needed to publish - code below. And run the publishing task `publishAllPublicationsToGutHub`. Getting no...
2019/08/02
[ "https://Stackoverflow.com/questions/57323260", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9571426/" ]
**New answer**: GitHub has published the official guide: [Configuring Gradle for use with GitHub Packages](https://help.github.com/en/github/managing-packages-with-github-packages/configuring-gradle-for-use-with-github-packages). --- **Old answer**: It seems like the plugin [is not very stable yet](https://github.c...
Also worth setting up a github action to publish to the github package repo: ``` name: Publish package to GitHub Packages on: release: types: [created] jobs: publish: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-java@v1 with: java-versio...
57,323,260
Trying to push the Gradle project to Github package registry, but not working as expected. Using `io.freefair.github.package-registry-maven-publish` plugin for Gradle. Configure GitHub in `build.gradle` with data needed to publish - code below. And run the publishing task `publishAllPublicationsToGutHub`. Getting no...
2019/08/02
[ "https://Stackoverflow.com/questions/57323260", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9571426/" ]
I was able to publish to the Github Package Registry using the maven-publish plugin. It seems to work just fine now. My build.gradle file looks like this: ``` buildscript { repositories { mavenCentral() } } plugins { id 'java' id 'maven-publish' } group 'com.company.project' archivesBaseNam...
GitHub has published the official document for How to use Gradle with GitHub packager <https://help.github.com/en/github/managing-packages-with-github-packages/configuring-gradle-for-use-with-github-packages#authenticating-to-github-packages>
57,323,260
Trying to push the Gradle project to Github package registry, but not working as expected. Using `io.freefair.github.package-registry-maven-publish` plugin for Gradle. Configure GitHub in `build.gradle` with data needed to publish - code below. And run the publishing task `publishAllPublicationsToGutHub`. Getting no...
2019/08/02
[ "https://Stackoverflow.com/questions/57323260", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9571426/" ]
I was able to publish to the Github Package Registry using the maven-publish plugin. It seems to work just fine now. My build.gradle file looks like this: ``` buildscript { repositories { mavenCentral() } } plugins { id 'java' id 'maven-publish' } group 'com.company.project' archivesBaseNam...
Complete those properties correctly 1. OWNER 2. REPOSITORY 3. USERNAME (or gradle property `gpr.user`) 4. PASSWORD (or gradle property `gpr.key`) @See demo 1. <https://github.com/youngerier/packagesdemo> 2. <https://help.github.com/en/github/managing-packages-with-github-packages/configuring-gradle-for-use-with-gith...
57,323,260
Trying to push the Gradle project to Github package registry, but not working as expected. Using `io.freefair.github.package-registry-maven-publish` plugin for Gradle. Configure GitHub in `build.gradle` with data needed to publish - code below. And run the publishing task `publishAllPublicationsToGutHub`. Getting no...
2019/08/02
[ "https://Stackoverflow.com/questions/57323260", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9571426/" ]
Also worth setting up a github action to publish to the github package repo: ``` name: Publish package to GitHub Packages on: release: types: [created] jobs: publish: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-java@v1 with: java-versio...
GitHub has published the official document for How to use Gradle with GitHub packager <https://help.github.com/en/github/managing-packages-with-github-packages/configuring-gradle-for-use-with-github-packages#authenticating-to-github-packages>
57,323,260
Trying to push the Gradle project to Github package registry, but not working as expected. Using `io.freefair.github.package-registry-maven-publish` plugin for Gradle. Configure GitHub in `build.gradle` with data needed to publish - code below. And run the publishing task `publishAllPublicationsToGutHub`. Getting no...
2019/08/02
[ "https://Stackoverflow.com/questions/57323260", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9571426/" ]
Also worth setting up a github action to publish to the github package repo: ``` name: Publish package to GitHub Packages on: release: types: [created] jobs: publish: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-java@v1 with: java-versio...
Complete those properties correctly 1. OWNER 2. REPOSITORY 3. USERNAME (or gradle property `gpr.user`) 4. PASSWORD (or gradle property `gpr.key`) @See demo 1. <https://github.com/youngerier/packagesdemo> 2. <https://help.github.com/en/github/managing-packages-with-github-packages/configuring-gradle-for-use-with-gith...
43,245,115
I have a `RecyclerView` with rows that have views that when clicked will be disabled for that row position. The problem is after I update the adapter like this: ``` adapterData.clear(); adapterData.addAll(refreshedAdapterData); notifyDataSetChanged(); ``` After refreshing the data, the disabled views at...
2017/04/06
[ "https://Stackoverflow.com/questions/43245115", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5326518/" ]
Use below code. ``` adapterData.clear(); adapterData.addAll(refreshedAdapterData); adapter.notifyDataSetChanged(); ``` OR ``` recyclerView.invalidate(); ```
When you call `notifyDataSetChanged()`, the `onBindViewHolder()` method of every view is called. So you could add something like this in the `onBindViewHolder()` of your `Adapter` method: ``` @Override public void onBindViewHolder(final RecyclerView.ViewHolder viewHolder, final int position) { if (refre...
43,245,115
I have a `RecyclerView` with rows that have views that when clicked will be disabled for that row position. The problem is after I update the adapter like this: ``` adapterData.clear(); adapterData.addAll(refreshedAdapterData); notifyDataSetChanged(); ``` After refreshing the data, the disabled views at...
2017/04/06
[ "https://Stackoverflow.com/questions/43245115", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5326518/" ]
Use below code. ``` adapterData.clear(); adapterData.addAll(refreshedAdapterData); adapter.notifyDataSetChanged(); ``` OR ``` recyclerView.invalidate(); ```
I have resolved this by putting a conditional statement inside onBindViewHolder method instructing all positions to reset the disabled views if data meets the required conditions for a refreshed data. @Christoph Mayr, thanks for your comments. It helped point me in the right direction.
43,245,115
I have a `RecyclerView` with rows that have views that when clicked will be disabled for that row position. The problem is after I update the adapter like this: ``` adapterData.clear(); adapterData.addAll(refreshedAdapterData); notifyDataSetChanged(); ``` After refreshing the data, the disabled views at...
2017/04/06
[ "https://Stackoverflow.com/questions/43245115", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5326518/" ]
Use below code. ``` adapterData.clear(); adapterData.addAll(refreshedAdapterData); adapter.notifyDataSetChanged(); ``` OR ``` recyclerView.invalidate(); ```
I cleared the data then notify change but the selected checkbox doesn't reset but just moves up one position. Let say I selected item #1 , move out of the RecyclerView, came back and it will auto select item #0. So, I created new adapter again at onResume(), i worked for me but i don't know if it's the right way to ha...
43,245,115
I have a `RecyclerView` with rows that have views that when clicked will be disabled for that row position. The problem is after I update the adapter like this: ``` adapterData.clear(); adapterData.addAll(refreshedAdapterData); notifyDataSetChanged(); ``` After refreshing the data, the disabled views at...
2017/04/06
[ "https://Stackoverflow.com/questions/43245115", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5326518/" ]
When you call `notifyDataSetChanged()`, the `onBindViewHolder()` method of every view is called. So you could add something like this in the `onBindViewHolder()` of your `Adapter` method: ``` @Override public void onBindViewHolder(final RecyclerView.ViewHolder viewHolder, final int position) { if (refre...
I have resolved this by putting a conditional statement inside onBindViewHolder method instructing all positions to reset the disabled views if data meets the required conditions for a refreshed data. @Christoph Mayr, thanks for your comments. It helped point me in the right direction.
43,245,115
I have a `RecyclerView` with rows that have views that when clicked will be disabled for that row position. The problem is after I update the adapter like this: ``` adapterData.clear(); adapterData.addAll(refreshedAdapterData); notifyDataSetChanged(); ``` After refreshing the data, the disabled views at...
2017/04/06
[ "https://Stackoverflow.com/questions/43245115", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5326518/" ]
When you call `notifyDataSetChanged()`, the `onBindViewHolder()` method of every view is called. So you could add something like this in the `onBindViewHolder()` of your `Adapter` method: ``` @Override public void onBindViewHolder(final RecyclerView.ViewHolder viewHolder, final int position) { if (refre...
I cleared the data then notify change but the selected checkbox doesn't reset but just moves up one position. Let say I selected item #1 , move out of the RecyclerView, came back and it will auto select item #0. So, I created new adapter again at onResume(), i worked for me but i don't know if it's the right way to ha...
43,245,115
I have a `RecyclerView` with rows that have views that when clicked will be disabled for that row position. The problem is after I update the adapter like this: ``` adapterData.clear(); adapterData.addAll(refreshedAdapterData); notifyDataSetChanged(); ``` After refreshing the data, the disabled views at...
2017/04/06
[ "https://Stackoverflow.com/questions/43245115", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5326518/" ]
I have resolved this by putting a conditional statement inside onBindViewHolder method instructing all positions to reset the disabled views if data meets the required conditions for a refreshed data. @Christoph Mayr, thanks for your comments. It helped point me in the right direction.
I cleared the data then notify change but the selected checkbox doesn't reset but just moves up one position. Let say I selected item #1 , move out of the RecyclerView, came back and it will auto select item #0. So, I created new adapter again at onResume(), i worked for me but i don't know if it's the right way to ha...
1,567,731
I am trying to create my first ASP.net server control derived from a Panel. For some reason, I am unable to get the .aspx page to recognize my server tag even though the application recognizes the class and namespace of my control. Here are the steps I've used: 1) I created a class CollapsablePanel that I've placed i...
2009/10/14
[ "https://Stackoverflow.com/questions/1567731", "https://Stackoverflow.com", "https://Stackoverflow.com/users/146452/" ]
seems like you may be missing the TagName attribute as ``` <%@ Register TagPrefix="webstation" TagName="CollapsiblePanel" Namespace="MyApplication.webstation.WebControls" %> ``` once you do this you should be able to access it as ``` <webstations:CollapsiblePanel id='usercontrol1" runat="server" /> ```
Check out Scott Gu's blog post on registering controls, I like registering them in the web.config file myself. <http://weblogs.asp.net/scottgu/archive/2006/11/26/tip-trick-how-to-register-user-controls-and-custom-controls-in-web-config.aspx> You need to make sure you have a fully qualified reference to the control cla...
1,567,731
I am trying to create my first ASP.net server control derived from a Panel. For some reason, I am unable to get the .aspx page to recognize my server tag even though the application recognizes the class and namespace of my control. Here are the steps I've used: 1) I created a class CollapsablePanel that I've placed i...
2009/10/14
[ "https://Stackoverflow.com/questions/1567731", "https://Stackoverflow.com", "https://Stackoverflow.com/users/146452/" ]
seems like you may be missing the TagName attribute as ``` <%@ Register TagPrefix="webstation" TagName="CollapsiblePanel" Namespace="MyApplication.webstation.WebControls" %> ``` once you do this you should be able to access it as ``` <webstations:CollapsiblePanel id='usercontrol1" runat="server" /> ```
I was able to get it work like expected once I went ahead and created a Class Library project in the same solution, built the project, copied the DLL from the bin of the Class Library and placed it in a folder of my Web Project used for holding external binaries. I also added a reference to the .dll in the project. Onc...
54,490,627
If β1= β2=0 and β3= 0 is null hypothesis. If β1= β2=0 holds and β3= 0 fails to hold, then what can you conclude? Does it mean there is a strong correlation between x1 and x2? or There is a linear relationship between the outcome variable(Y) and x3?
2019/02/02
[ "https://Stackoverflow.com/questions/54490627", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4803521/" ]
There is a linear relationship between the outcome variable(Y) and x3. Since β3=0 fails to hold, it means that x3 is a significant variable in this linear regression model. Thus, we can say that there is a linear relationship between the outcome variable (Y) and x3.
There is a linear relationship between the outcome variable(Y) and x3
54,490,627
If β1= β2=0 and β3= 0 is null hypothesis. If β1= β2=0 holds and β3= 0 fails to hold, then what can you conclude? Does it mean there is a strong correlation between x1 and x2? or There is a linear relationship between the outcome variable(Y) and x3?
2019/02/02
[ "https://Stackoverflow.com/questions/54490627", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4803521/" ]
There is a linear relationship between the outcome variable(Y) and x3. Since β3=0 fails to hold, it means that x3 is a significant variable in this linear regression model. Thus, we can say that there is a linear relationship between the outcome variable (Y) and x3.
There is no linear relationship between y and any of the three independent variables.
50,358,310
problem description =================== For a square matrix, one can obtain the SVD ``` X= USV' ``` decomposition, by using simply **numpy.linalg.svd** ``` u,s,vh = numpy.linalg.svd(X) ``` routine or **numpy.linalg.eigh**, to compute the eig decomposition on Hermitian matrix **X'X** and **XX'** Are they u...
2018/05/15
[ "https://Stackoverflow.com/questions/50358310", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5037235/" ]
Indeed, `numpy.linalg.svd` and `numpy.linalg.eigh` do not call the same routine of Lapack. On the one hand, [`numpy.linalg.eigh`](https://docs.scipy.org/doc/numpy-1.14.0/reference/generated/numpy.linalg.eigh.html) refers to LAPACK's `dsyevd()` while `numpy.linalg.svd` makes use LAPACK's `dgesdd()`. The common point b...
No they do not use the same algorithm as they do different things. They are somewhat related but also very different. Let's start with the fact that you can do SVD on `m x n` matrices, where `m` and `n` don't need to be the same. Dependent on the version of numpy, you are doing. Here are the eigenvalue routines in la...
6,059
A friend has asked me to read through a chapter of his story and give my opinion. Lets say he has two main characters **Mr John de Havilland** and **Mrs Sally de Havilland**. I've noticed that the author sometimes uses the full name, **Mr John de Havilland**; Other times he uses the short form, **John** and other tim...
2012/07/11
[ "https://writers.stackexchange.com/questions/6059", "https://writers.stackexchange.com", "https://writers.stackexchange.com/users/2754/" ]
Orson Scott Card answers your question precisely and eloquently in his excellent *Character and Viewpoint*, under the heading [One Name Per Character](http://books.google.co.il/books?id=-jehiAI0WJAC&pg=PA56&dq=%22orson+scott+card%22+%22One+Name+Per+Character%22&hl=iw&sa=X&ei=Tor-T-L_Lu-P4gTE4YWBBw&redir_esc=y#v=onepage...
It's not about "spicy," it's about not being boring. Using "John" in every single dialogue tag can grate on the inner ear. That said, don't overdo it. I would say you should use character names (or he/she) 90% of the time, and the other 10% can be "the detective," "the doctor," "the captain," "the younger woman," "her...
6,059
A friend has asked me to read through a chapter of his story and give my opinion. Lets say he has two main characters **Mr John de Havilland** and **Mrs Sally de Havilland**. I've noticed that the author sometimes uses the full name, **Mr John de Havilland**; Other times he uses the short form, **John** and other tim...
2012/07/11
[ "https://writers.stackexchange.com/questions/6059", "https://writers.stackexchange.com", "https://writers.stackexchange.com/users/2754/" ]
It's not about "spicy," it's about not being boring. Using "John" in every single dialogue tag can grate on the inner ear. That said, don't overdo it. I would say you should use character names (or he/she) 90% of the time, and the other 10% can be "the detective," "the doctor," "the captain," "the younger woman," "her...
I also dislike repeating "He" or "John" over and over again. I have a little rule that I use when it gets on my nerves. When I talk about a single character, then I use different variants, eg "the young", "the old man", "fatty", "the scholar" and so on (depending on their defining characteristics). In any other case, ...
6,059
A friend has asked me to read through a chapter of his story and give my opinion. Lets say he has two main characters **Mr John de Havilland** and **Mrs Sally de Havilland**. I've noticed that the author sometimes uses the full name, **Mr John de Havilland**; Other times he uses the short form, **John** and other tim...
2012/07/11
[ "https://writers.stackexchange.com/questions/6059", "https://writers.stackexchange.com", "https://writers.stackexchange.com/users/2754/" ]
It's not about "spicy," it's about not being boring. Using "John" in every single dialogue tag can grate on the inner ear. That said, don't overdo it. I would say you should use character names (or he/she) 90% of the time, and the other 10% can be "the detective," "the doctor," "the captain," "the younger woman," "her...
If the two Havillands are in separate scenes and which one has been established, you could use their last names, for example: Havilland threw his hands up in surrender. or: Havilland tapped her foot. I also sometimes use descriptions of appearance or personality which have already been established, for example: The bl...
6,059
A friend has asked me to read through a chapter of his story and give my opinion. Lets say he has two main characters **Mr John de Havilland** and **Mrs Sally de Havilland**. I've noticed that the author sometimes uses the full name, **Mr John de Havilland**; Other times he uses the short form, **John** and other tim...
2012/07/11
[ "https://writers.stackexchange.com/questions/6059", "https://writers.stackexchange.com", "https://writers.stackexchange.com/users/2754/" ]
Orson Scott Card answers your question precisely and eloquently in his excellent *Character and Viewpoint*, under the heading [One Name Per Character](http://books.google.co.il/books?id=-jehiAI0WJAC&pg=PA56&dq=%22orson+scott+card%22+%22One+Name+Per+Character%22&hl=iw&sa=X&ei=Tor-T-L_Lu-P4gTE4YWBBw&redir_esc=y#v=onepage...
I also dislike repeating "He" or "John" over and over again. I have a little rule that I use when it gets on my nerves. When I talk about a single character, then I use different variants, eg "the young", "the old man", "fatty", "the scholar" and so on (depending on their defining characteristics). In any other case, ...
6,059
A friend has asked me to read through a chapter of his story and give my opinion. Lets say he has two main characters **Mr John de Havilland** and **Mrs Sally de Havilland**. I've noticed that the author sometimes uses the full name, **Mr John de Havilland**; Other times he uses the short form, **John** and other tim...
2012/07/11
[ "https://writers.stackexchange.com/questions/6059", "https://writers.stackexchange.com", "https://writers.stackexchange.com/users/2754/" ]
Orson Scott Card answers your question precisely and eloquently in his excellent *Character and Viewpoint*, under the heading [One Name Per Character](http://books.google.co.il/books?id=-jehiAI0WJAC&pg=PA56&dq=%22orson+scott+card%22+%22One+Name+Per+Character%22&hl=iw&sa=X&ei=Tor-T-L_Lu-P4gTE4YWBBw&redir_esc=y#v=onepage...
If the two Havillands are in separate scenes and which one has been established, you could use their last names, for example: Havilland threw his hands up in surrender. or: Havilland tapped her foot. I also sometimes use descriptions of appearance or personality which have already been established, for example: The bl...
6,059
A friend has asked me to read through a chapter of his story and give my opinion. Lets say he has two main characters **Mr John de Havilland** and **Mrs Sally de Havilland**. I've noticed that the author sometimes uses the full name, **Mr John de Havilland**; Other times he uses the short form, **John** and other tim...
2012/07/11
[ "https://writers.stackexchange.com/questions/6059", "https://writers.stackexchange.com", "https://writers.stackexchange.com/users/2754/" ]
If the two Havillands are in separate scenes and which one has been established, you could use their last names, for example: Havilland threw his hands up in surrender. or: Havilland tapped her foot. I also sometimes use descriptions of appearance or personality which have already been established, for example: The bl...
I also dislike repeating "He" or "John" over and over again. I have a little rule that I use when it gets on my nerves. When I talk about a single character, then I use different variants, eg "the young", "the old man", "fatty", "the scholar" and so on (depending on their defining characteristics). In any other case, ...
25,286,213
I'm currently developing an Excel Add-In using the Excel-DNA library. Sadly I need to serialize the Add-In somehow into the workbook so if the workbook is opened, the Add-In's code may be executed. Before, I worked with VBA and Excel macros which've been run greatly, I could serialize the macro and upload the workbook...
2014/08/13
[ "https://Stackoverflow.com/questions/25286213", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3436418/" ]
You can include code in the Excel workbook that will install the add-in if it isn't already. You could also have it uninstall the add-in on close if you only want the add-in installed while the workbook is open. Check out JKP's Name Manager, specifically the code in the Setup Name Manager file. <http://www.jkp-ads.c...
The way I understand Add-Ins, they sit separately in a way they can't be bound together with a workbook. The way I have understood them (and used them up to this point) is, for lack of a better term, a weird 'mini-program' that sits loaded inside Excel itself, not inside your workbook - you install it, it has access to...
25,286,213
I'm currently developing an Excel Add-In using the Excel-DNA library. Sadly I need to serialize the Add-In somehow into the workbook so if the workbook is opened, the Add-In's code may be executed. Before, I worked with VBA and Excel macros which've been run greatly, I could serialize the macro and upload the workbook...
2014/08/13
[ "https://Stackoverflow.com/questions/25286213", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3436418/" ]
You can include code in the Excel workbook that will install the add-in if it isn't already. You could also have it uninstall the add-in on close if you only want the add-in installed while the workbook is open. Check out JKP's Name Manager, specifically the code in the Setup Name Manager file. <http://www.jkp-ads.c...
Where I work we have a deployment process to deliver a Start Menu entry that will open excel and the correct version of the xll. I have never heard of people embedding the addin in the workbook. But you can do the opposite, your addin can be coupled with a XLA or you can create an Addin menu with entries for the user ...
52,001,841
I am building a function that imports excel spreadsheets. I would like the function to include an argument that contains names of variables that the user is interested in seeing. The values from the argument is used in dplyr::filter() inside the function. I would like the default value of the argument to include ever...
2018/08/24
[ "https://Stackoverflow.com/questions/52001841", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6412795/" ]
You can create a simple factory for your Continents. ``` public class ContinentFactory { private Set<Continent> continents = new HashSet<>(); public Continent create(String name) { Continent continent = new Continent(name); continents.add(continent); return continent; } public...
Mabye is is easier to implement Continent as an inner class: ``` public class Earth { private static HashSet<Continent> globalContinents = new HashSet(); public Earth() { } public void addContinent(String name) { globalContinents.add(new Continent(name)); } private class Continent ...
6,471,302
Building up on [Sjoerd solution to add alignment to a manipulate object](https://stackoverflow.com/questions/6469288/adding-alignment-to-a-manipulate-ouput-in-mathematica) : Consider the following : ``` Manipulate[ Panel[Style[Row1, Bold, 20], ImageSize -> 150, Alignment -> Center] Panel[Style[Row2, Bold, 20], ...
2011/06/24
[ "https://Stackoverflow.com/questions/6471302", "https://Stackoverflow.com", "https://Stackoverflow.com/users/769551/" ]
Would something like this work? ``` Manipulate[ Grid[{{SetterBar[Dynamic[Row1], {1, 2, 3, 4, 5}], Panel[Style[Row1, Bold, 20], ImageSize -> 150, Alignment -> Center] }, {SetterBar[ Dynamic[Row2], {1, 2, 3, 4, 5}], Panel[Style[Row2, Bold, 20], ImageSize -> 150, Alignment -> Center]}}], {{Row...
You could also do: ``` Manipulate[ Column[ {Panel[Style[Row1, Bold, 20], ImageSize -> {150, 50}, Alignment -> Center] , Panel[Style[Row2, Bold, 20], ImageSize -> {150, 50}, Alignment -> Center]}], Column[ { Control@{{Row1,{},Pane["",ImageSize->{0, 50}]},Range@5,ControlType -> SetterBar}, Control@{{Row2,{},...
6,471,302
Building up on [Sjoerd solution to add alignment to a manipulate object](https://stackoverflow.com/questions/6469288/adding-alignment-to-a-manipulate-ouput-in-mathematica) : Consider the following : ``` Manipulate[ Panel[Style[Row1, Bold, 20], ImageSize -> 150, Alignment -> Center] Panel[Style[Row2, Bold, 20], ...
2011/06/24
[ "https://Stackoverflow.com/questions/6471302", "https://Stackoverflow.com", "https://Stackoverflow.com/users/769551/" ]
Would something like this work? ``` Manipulate[ Grid[{{SetterBar[Dynamic[Row1], {1, 2, 3, 4, 5}], Panel[Style[Row1, Bold, 20], ImageSize -> 150, Alignment -> Center] }, {SetterBar[ Dynamic[Row2], {1, 2, 3, 4, 5}], Panel[Style[Row2, Bold, 20], ImageSize -> 150, Alignment -> Center]}}], {{Row...
``` DynamicModule[{Row1 = 1, Row2 = 2}, Manipulate[ Grid[ { { Control[{Row1, {1, 2, 3, 4, 5}}], Panel[Style[Row1, Bold, 20], ImageSize -> 150, Alignment -> Center] }, { Control[{Row2, {1, 2, 3, 4, 5}}], Panel[Style[Row2, Bold, 20], ImageSize -> 150, Alignment -> Center]} ...
6,471,302
Building up on [Sjoerd solution to add alignment to a manipulate object](https://stackoverflow.com/questions/6469288/adding-alignment-to-a-manipulate-ouput-in-mathematica) : Consider the following : ``` Manipulate[ Panel[Style[Row1, Bold, 20], ImageSize -> 150, Alignment -> Center] Panel[Style[Row2, Bold, 20], ...
2011/06/24
[ "https://Stackoverflow.com/questions/6471302", "https://Stackoverflow.com", "https://Stackoverflow.com/users/769551/" ]
``` DynamicModule[{Row1 = 1, Row2 = 2}, Manipulate[ Grid[ { { Control[{Row1, {1, 2, 3, 4, 5}}], Panel[Style[Row1, Bold, 20], ImageSize -> 150, Alignment -> Center] }, { Control[{Row2, {1, 2, 3, 4, 5}}], Panel[Style[Row2, Bold, 20], ImageSize -> 150, Alignment -> Center]} ...
You could also do: ``` Manipulate[ Column[ {Panel[Style[Row1, Bold, 20], ImageSize -> {150, 50}, Alignment -> Center] , Panel[Style[Row2, Bold, 20], ImageSize -> {150, 50}, Alignment -> Center]}], Column[ { Control@{{Row1,{},Pane["",ImageSize->{0, 50}]},Range@5,ControlType -> SetterBar}, Control@{{Row2,{},...
12,868,546
I'm new to visual basic and have been using vb.net to create a console/text based game. I want to make my game a little bit more "smart". The idea I've had to do this is to create an array of synonyms for yes and an array of synonyms for no, and similar arrays for over words. I intended on using a case statement with t...
2012/10/12
[ "https://Stackoverflow.com/questions/12868546", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1742565/" ]
Adding a pom dependency only pulls down transitive dependencies, that is jar dependencies defined as dependencies in the pom. The pom does not get added on the classpath for obvious reasons, but the transitive dependencies reachable from pom will be added to classpath. What you ideally need to do is have dependencies ...
Personally I cannot think of any case when one would need to add `pom` type dependency. I usually use `pom` packaging for parent module in a project (specify common project configuration like plugin versions, common dependencies, like `log4j` for example, repositories, properties etc.) and for utility package module (t...
1,170
In movie *[The Reader](http://www.imdb.com/title/tt0976051/)*, **Hanna Schmitz** was sentenced to life imprisonment because of her role in the death of 300 victims. But I could not understand whether she was really responsible for that *or* whether she was **framed by her colleague** because of her illiteracy? Did she...
2012/02/03
[ "https://movies.stackexchange.com/questions/1170", "https://movies.stackexchange.com", "https://movies.stackexchange.com/users/556/" ]
Hanna Smitchz was, in a way, responsible for the the death of the 300 people. Her illiteracy does not omit her from the wrongs she had committed when she sent several people to die. Illiteracy is simply an academic disadvantage that may result to social difficulties, but would not necessarily blind her moral capabiliti...
Hanna was probably guilty but you would have to question her overall intelligence. In the film she had no understanding of right or wrong. First of all having an affair with a kid.she saw nothing wrong with this and also in court she saw nothing wrong with condemning 300 people to death. I think she was a pawn and was ...
1,170
In movie *[The Reader](http://www.imdb.com/title/tt0976051/)*, **Hanna Schmitz** was sentenced to life imprisonment because of her role in the death of 300 victims. But I could not understand whether she was really responsible for that *or* whether she was **framed by her colleague** because of her illiteracy? Did she...
2012/02/03
[ "https://movies.stackexchange.com/questions/1170", "https://movies.stackexchange.com", "https://movies.stackexchange.com/users/556/" ]
> > She denies authorship of a report on the church fire, despite pressure from the other defendants, but then admits it rather than complying with a demand to provide a handwriting sample.... she is illiterate and has concealed it her whole life. The other female guards who claim she wrote the report are lying to pla...
Hanna is a morally ambiguous character. I have read that some believe she was based on Ilsa Koch, but the crimes and cruelty that Hanna was accused of pale in comparison to the cruelty that Ilsa exhibited. Certainly Hanna was guilty of the crime at the church, but no more than the other defendants and due to her illite...
1,170
In movie *[The Reader](http://www.imdb.com/title/tt0976051/)*, **Hanna Schmitz** was sentenced to life imprisonment because of her role in the death of 300 victims. But I could not understand whether she was really responsible for that *or* whether she was **framed by her colleague** because of her illiteracy? Did she...
2012/02/03
[ "https://movies.stackexchange.com/questions/1170", "https://movies.stackexchange.com", "https://movies.stackexchange.com/users/556/" ]
> > She denies authorship of a report on the church fire, despite pressure from the other defendants, but then admits it rather than complying with a demand to provide a handwriting sample.... she is illiterate and has concealed it her whole life. The other female guards who claim she wrote the report are lying to pla...
In response to the poster above who remarks that Hanna was not intelligent and could thus not distinguish right from wrong, I would like to make a comment.Hanna was not unintelligent. Her actions had nothing to do with intelligence. Hanna's illiteracy resulted in the facts that she could not appreciate or recognize amb...
1,170
In movie *[The Reader](http://www.imdb.com/title/tt0976051/)*, **Hanna Schmitz** was sentenced to life imprisonment because of her role in the death of 300 victims. But I could not understand whether she was really responsible for that *or* whether she was **framed by her colleague** because of her illiteracy? Did she...
2012/02/03
[ "https://movies.stackexchange.com/questions/1170", "https://movies.stackexchange.com", "https://movies.stackexchange.com/users/556/" ]
> > She denies authorship of a report on the church fire, despite pressure from the other defendants, but then admits it rather than complying with a demand to provide a handwriting sample.... she is illiterate and has concealed it her whole life. The other female guards who claim she wrote the report are lying to pla...
Hanna was probably guilty but you would have to question her overall intelligence. In the film she had no understanding of right or wrong. First of all having an affair with a kid.she saw nothing wrong with this and also in court she saw nothing wrong with condemning 300 people to death. I think she was a pawn and was ...
1,170
In movie *[The Reader](http://www.imdb.com/title/tt0976051/)*, **Hanna Schmitz** was sentenced to life imprisonment because of her role in the death of 300 victims. But I could not understand whether she was really responsible for that *or* whether she was **framed by her colleague** because of her illiteracy? Did she...
2012/02/03
[ "https://movies.stackexchange.com/questions/1170", "https://movies.stackexchange.com", "https://movies.stackexchange.com/users/556/" ]
According to director [Stephen Daldry](http://www.cinemablend.com/new/Interview-The-Reader-Director-Stephen-Daldry-11178.html), the ambiguity is intentional: > > I think it's a complex story, and there is a great ambiguity. And one > of the things we work very hard to do is to maintain that ambiguity, > so people c...
Hanna was probably guilty but you would have to question her overall intelligence. In the film she had no understanding of right or wrong. First of all having an affair with a kid.she saw nothing wrong with this and also in court she saw nothing wrong with condemning 300 people to death. I think she was a pawn and was ...
1,170
In movie *[The Reader](http://www.imdb.com/title/tt0976051/)*, **Hanna Schmitz** was sentenced to life imprisonment because of her role in the death of 300 victims. But I could not understand whether she was really responsible for that *or* whether she was **framed by her colleague** because of her illiteracy? Did she...
2012/02/03
[ "https://movies.stackexchange.com/questions/1170", "https://movies.stackexchange.com", "https://movies.stackexchange.com/users/556/" ]
Hanna Smitchz was, in a way, responsible for the the death of the 300 people. Her illiteracy does not omit her from the wrongs she had committed when she sent several people to die. Illiteracy is simply an academic disadvantage that may result to social difficulties, but would not necessarily blind her moral capabiliti...
Hanna is a morally ambiguous character. I have read that some believe she was based on Ilsa Koch, but the crimes and cruelty that Hanna was accused of pale in comparison to the cruelty that Ilsa exhibited. Certainly Hanna was guilty of the crime at the church, but no more than the other defendants and due to her illite...
1,170
In movie *[The Reader](http://www.imdb.com/title/tt0976051/)*, **Hanna Schmitz** was sentenced to life imprisonment because of her role in the death of 300 victims. But I could not understand whether she was really responsible for that *or* whether she was **framed by her colleague** because of her illiteracy? Did she...
2012/02/03
[ "https://movies.stackexchange.com/questions/1170", "https://movies.stackexchange.com", "https://movies.stackexchange.com/users/556/" ]
According to director [Stephen Daldry](http://www.cinemablend.com/new/Interview-The-Reader-Director-Stephen-Daldry-11178.html), the ambiguity is intentional: > > I think it's a complex story, and there is a great ambiguity. And one > of the things we work very hard to do is to maintain that ambiguity, > so people c...
it seems to me that the whole theme of the movie was that she had decided to cover up being illiterate at all costs ------- and she proved it by agreeing to be the fall guy for all six guards
1,170
In movie *[The Reader](http://www.imdb.com/title/tt0976051/)*, **Hanna Schmitz** was sentenced to life imprisonment because of her role in the death of 300 victims. But I could not understand whether she was really responsible for that *or* whether she was **framed by her colleague** because of her illiteracy? Did she...
2012/02/03
[ "https://movies.stackexchange.com/questions/1170", "https://movies.stackexchange.com", "https://movies.stackexchange.com/users/556/" ]
Hanna Smitchz was, in a way, responsible for the the death of the 300 people. Her illiteracy does not omit her from the wrongs she had committed when she sent several people to die. Illiteracy is simply an academic disadvantage that may result to social difficulties, but would not necessarily blind her moral capabiliti...
In response to the poster above who remarks that Hanna was not intelligent and could thus not distinguish right from wrong, I would like to make a comment.Hanna was not unintelligent. Her actions had nothing to do with intelligence. Hanna's illiteracy resulted in the facts that she could not appreciate or recognize amb...
1,170
In movie *[The Reader](http://www.imdb.com/title/tt0976051/)*, **Hanna Schmitz** was sentenced to life imprisonment because of her role in the death of 300 victims. But I could not understand whether she was really responsible for that *or* whether she was **framed by her colleague** because of her illiteracy? Did she...
2012/02/03
[ "https://movies.stackexchange.com/questions/1170", "https://movies.stackexchange.com", "https://movies.stackexchange.com/users/556/" ]
According to director [Stephen Daldry](http://www.cinemablend.com/new/Interview-The-Reader-Director-Stephen-Daldry-11178.html), the ambiguity is intentional: > > I think it's a complex story, and there is a great ambiguity. And one > of the things we work very hard to do is to maintain that ambiguity, > so people c...
In response to the poster above who remarks that Hanna was not intelligent and could thus not distinguish right from wrong, I would like to make a comment.Hanna was not unintelligent. Her actions had nothing to do with intelligence. Hanna's illiteracy resulted in the facts that she could not appreciate or recognize amb...
1,170
In movie *[The Reader](http://www.imdb.com/title/tt0976051/)*, **Hanna Schmitz** was sentenced to life imprisonment because of her role in the death of 300 victims. But I could not understand whether she was really responsible for that *or* whether she was **framed by her colleague** because of her illiteracy? Did she...
2012/02/03
[ "https://movies.stackexchange.com/questions/1170", "https://movies.stackexchange.com", "https://movies.stackexchange.com/users/556/" ]
Hanna Smitchz was, in a way, responsible for the the death of the 300 people. Her illiteracy does not omit her from the wrongs she had committed when she sent several people to die. Illiteracy is simply an academic disadvantage that may result to social difficulties, but would not necessarily blind her moral capabiliti...
it seems to me that the whole theme of the movie was that she had decided to cover up being illiterate at all costs ------- and she proved it by agreeing to be the fall guy for all six guards
720,900
We wish to classify the factor group $(\mathbb{Z} \times \mathbb{Z})/\langle (2, 2) \rangle$, that is, find a group to which it is isomorphic. (According to the fundamental theorem of finitely generated abelian groups. Initially, I thought the group had but two cosets, forcing an isomorphism to $\mathbb{Z}\_2$. Obvious...
2014/03/21
[ "https://math.stackexchange.com/questions/720900", "https://math.stackexchange.com", "https://math.stackexchange.com/users/92231/" ]
Hints: * Show that $\Bbb{Z}\times\Bbb{Z}$ is generated (freely) by the elements $u=(1,0)$ and $v=(1,1)$. IOW every element $(a,b)\in\Bbb{Z}\times\Bbb{Z}$ can be written as a linear combination of $u$ and $v$ with integer coefficients in a unique way. * Show that $mu+nv$ is in the subgroup generated by $(2,2)$ if and ...
The kernel of the surjective map $\mathbb Z\times\mathbb Z\to \mathbb Z\times\mathbb Z/2\mathbb Z$ given by $(m,n)\mapsto (m-n,n)$ is $\langle(2,2)\rangle$.
26,892,023
First off im a newbie to android dev so im not 100% sure what im doing. I've a log-out button which works but the other button i have coded (the scan button) is no longer working, i did have it working before i put in the code for the log out button. In log cat when i press the scan button no errors at all come up whic...
2014/11/12
[ "https://Stackoverflow.com/questions/26892023", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4244746/" ]
Yes, it runs twice if not redirected... Do this ``` $data['review'] = $this->review_model->GetReview($data['review_type'], $data['review_id']); if (!$data['review']) { redirect(); } ```
For your question, No, once `redirect()` method called, further line not executed. But your checking is not good. you can change it is as following ``` $data['review'] = $this->review_model->GetReview($data['review_type'], $data['review_id']); if(!$data['review']){ redirect(); } ```
14,251,711
I have two apps, A and B. I want to call B by A. My code in A is as below: ``` Intent intent = new Intent(Intent.ACTION_MAIN); intent.setComponent(new ComponentName("com.example.bapp","com.example.bapp.BActivity")); intent.putExtra ("test2abc", "abctest2"); startActivity(intent); ``` And B's intent filter in ...
2013/01/10
[ "https://Stackoverflow.com/questions/14251711", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1070896/" ]
you might want to try **android:launchMode="singleInstance"** and **android:finishOnTaskLaunch="true"** while defining launcher activity. ``` <activity android:name="com.example.test.sampleMediaPlayer" android:label="@string/app_name" android:launchMode="singleInstance" android:fini...
hey i found this code snippet [Launch an application from another application on Android](https://stackoverflow.com/questions/3872063/android-launch-an-application-from-another-application) which will work for you set the address of the application which you want to launch ``` Intent LaunchIntent = getPackageManager()...
16,130
I have this sentence in my JLPT exercise book: > > 彼{かれ}は有名人{ゆうめいじん}ゆえの不自由{ふじゆう}さから逃{に}げたくなった。 > > > The translation offered is: > > He wanted to get away from the difficulties of being a celebrity. > > > What is throwing me is the `逃{に}げたくなった` part. It seems to me that the past tense form of "wanted to get...
2014/05/27
[ "https://japanese.stackexchange.com/questions/16130", "https://japanese.stackexchange.com", "https://japanese.stackexchange.com/users/119/" ]
逃げたくなった is: * 逃げる = "to flee", in its stem form (連用形) → 逃げ * ~たい = the suffix that expresses wanting to do, conjugated to ~たく (again, the 連用形) * なる = "to become", in past tense → なった So this means something to the effect of "it became the case that he wanted to get away". For the sentence as a whole, I would offer ...
逃げたくなった is the past tense form of 逃げ+たく+なる which consists of 動詞「逃げる」 + 助動詞「たい」 + 動詞「なる」. 逃げ >> 連用形(continuative form) of 逃げる >> run away たく >> 連用形(continuative form) of the volitional たい >> want to なった >> the past tense form of なる(成る) >> become So it's like "became to want to run away", i.e. "started to fee...
64,487,754
In the R session below, `summary(model)` shows the formula as `model_str`. How do I get it to show as `mpg ~ cyl + hp` while still being able to set the model formula via a string? ``` > data(mtcars) > names(mtcars) [1] "mpg" "cyl" "disp" "hp" "drat" "wt" "qsec" "vs" "am" "gear" "carb" > model_str <- 'mpg ~...
2020/10/22
[ "https://Stackoverflow.com/questions/64487754", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34935/" ]
It's a bit of a hack and so probably fragile, but modifying the `formula` element of the `call` element of the model works: ``` model$call$formula <- formula(model_str) summary(model) ## Call: ## lm(formula = mpg ~ cyl + hp, data = mtcars) ```
Use `str2lang`, then `do.call`. ``` fo <- str2lang("mpg ~ hp + am") do.call("lm", list(fo, quote(mtcars))) # # Call: # lm(formula = mpg ~ hp + am, data = mtcars) # # Coefficients: # (Intercept) hp am # 26.58491 -0.05889 5.27709 ```
64,487,754
In the R session below, `summary(model)` shows the formula as `model_str`. How do I get it to show as `mpg ~ cyl + hp` while still being able to set the model formula via a string? ``` > data(mtcars) > names(mtcars) [1] "mpg" "cyl" "disp" "hp" "drat" "wt" "qsec" "vs" "am" "gear" "carb" > model_str <- 'mpg ~...
2020/10/22
[ "https://Stackoverflow.com/questions/64487754", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34935/" ]
Use `do.call` so that `model_str` gets evaluated before being sent to `lm` but quote `mtcars` so that it is not (otherwise there would be a huge output showing the actual values in `mtcars`). ``` do.call("lm", list(as.formula(model_str), data = quote(mtcars))) ``` giving: ``` Call: lm(formula = mpg ~ cyl + hp, data...
It's a bit of a hack and so probably fragile, but modifying the `formula` element of the `call` element of the model works: ``` model$call$formula <- formula(model_str) summary(model) ## Call: ## lm(formula = mpg ~ cyl + hp, data = mtcars) ```
64,487,754
In the R session below, `summary(model)` shows the formula as `model_str`. How do I get it to show as `mpg ~ cyl + hp` while still being able to set the model formula via a string? ``` > data(mtcars) > names(mtcars) [1] "mpg" "cyl" "disp" "hp" "drat" "wt" "qsec" "vs" "am" "gear" "carb" > model_str <- 'mpg ~...
2020/10/22
[ "https://Stackoverflow.com/questions/64487754", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34935/" ]
You can build and evaluate the call directly in a single line: ```r eval(as.call(list(quote(lm), formula = model_str, data = quote(mtcars)))) #> #> Call: #> lm(formula = "mpg ~ cyl + hp", data = mtcars) #> #> Coefficients: #> (Intercept) cyl hp #> 36.90833 -2.26469 -0.01912 ```
Use `str2lang`, then `do.call`. ``` fo <- str2lang("mpg ~ hp + am") do.call("lm", list(fo, quote(mtcars))) # # Call: # lm(formula = mpg ~ hp + am, data = mtcars) # # Coefficients: # (Intercept) hp am # 26.58491 -0.05889 5.27709 ```
64,487,754
In the R session below, `summary(model)` shows the formula as `model_str`. How do I get it to show as `mpg ~ cyl + hp` while still being able to set the model formula via a string? ``` > data(mtcars) > names(mtcars) [1] "mpg" "cyl" "disp" "hp" "drat" "wt" "qsec" "vs" "am" "gear" "carb" > model_str <- 'mpg ~...
2020/10/22
[ "https://Stackoverflow.com/questions/64487754", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34935/" ]
Use `do.call` so that `model_str` gets evaluated before being sent to `lm` but quote `mtcars` so that it is not (otherwise there would be a huge output showing the actual values in `mtcars`). ``` do.call("lm", list(as.formula(model_str), data = quote(mtcars))) ``` giving: ``` Call: lm(formula = mpg ~ cyl + hp, data...
You can build and evaluate the call directly in a single line: ```r eval(as.call(list(quote(lm), formula = model_str, data = quote(mtcars)))) #> #> Call: #> lm(formula = "mpg ~ cyl + hp", data = mtcars) #> #> Coefficients: #> (Intercept) cyl hp #> 36.90833 -2.26469 -0.01912 ```
64,487,754
In the R session below, `summary(model)` shows the formula as `model_str`. How do I get it to show as `mpg ~ cyl + hp` while still being able to set the model formula via a string? ``` > data(mtcars) > names(mtcars) [1] "mpg" "cyl" "disp" "hp" "drat" "wt" "qsec" "vs" "am" "gear" "carb" > model_str <- 'mpg ~...
2020/10/22
[ "https://Stackoverflow.com/questions/64487754", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34935/" ]
Use `do.call` so that `model_str` gets evaluated before being sent to `lm` but quote `mtcars` so that it is not (otherwise there would be a huge output showing the actual values in `mtcars`). ``` do.call("lm", list(as.formula(model_str), data = quote(mtcars))) ``` giving: ``` Call: lm(formula = mpg ~ cyl + hp, data...
Use `str2lang`, then `do.call`. ``` fo <- str2lang("mpg ~ hp + am") do.call("lm", list(fo, quote(mtcars))) # # Call: # lm(formula = mpg ~ hp + am, data = mtcars) # # Coefficients: # (Intercept) hp am # 26.58491 -0.05889 5.27709 ```
593,928
I work a lot in two folders: ``` /home/valter/Dropbox/Development/git/valter /home/valter/Dropbox/Development/git/company ``` I would like to create command like: ``` $valter ``` and enter in `/home/valter/Dropbox/Development/git/valter` and ``` $company ``` and enter in `/home/valter/Dropbox/Development/gi...
2013/05/10
[ "https://superuser.com/questions/593928", "https://superuser.com", "https://superuser.com/users/101020/" ]
As requested, I'll post an answer, but `@mpy`'s suggestion would've also done the job. You'll have to re-source your ~/.bashrc using `source ~/.bashrc` **or** establish a new session (which would source that for you).
Try replacing `"`'s (quote) with `'`'s (single-quote) instead. Also, make sure you reload your `.bashrc` either by starting a new terminal emulator window, or by doing `. .bashrc` in your home folder.
31,351,533
I'm new to JavaScript and am trying to create a recursive function that checks if two DOM nodes are equivalent. This function seems to be returning true for everything and isn't checking the DOM the way I want it to for some reason. Only nodes 1 & 4 are equivalent. ``` var htmlStrings = ['<div id="one">Some<span>node ...
2015/07/10
[ "https://Stackoverflow.com/questions/31351533", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4178793/" ]
You're passing strings, not DOM elements. You need to convert the HTML to DOM elements. There are many solutions described at [Creating a new DOM element from an HTML string using built-in DOM methods or prototype](https://stackoverflow.com/questions/494143/creating-a-new-dom-element-from-an-html-string-using-built-in...
Use `document.createElement(*tagName*)` [Here](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement) is some documentation. For example, you'll want to create two elements, pass them both in and see if they're equivalent. And then you can base the same one in twice. ``` var newDiv = document.creat...
31,351,533
I'm new to JavaScript and am trying to create a recursive function that checks if two DOM nodes are equivalent. This function seems to be returning true for everything and isn't checking the DOM the way I want it to for some reason. Only nodes 1 & 4 are equivalent. ``` var htmlStrings = ['<div id="one">Some<span>node ...
2015/07/10
[ "https://Stackoverflow.com/questions/31351533", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4178793/" ]
You're passing strings, not DOM elements. You need to convert the HTML to DOM elements. There are many solutions described at [Creating a new DOM element from an HTML string using built-in DOM methods or prototype](https://stackoverflow.com/questions/494143/creating-a-new-dom-element-from-an-html-string-using-built-in...
yes, instead of comparing 2 html elements, you are simply comparing 2 strings. And your node1, node2 will always be undefined. by the way, this following has some nice examples as to how to compare 2 html elements. [How to compare two HTML elements](https://stackoverflow.com/questions/10679762/how-to-compare-two-html...
31,351,533
I'm new to JavaScript and am trying to create a recursive function that checks if two DOM nodes are equivalent. This function seems to be returning true for everything and isn't checking the DOM the way I want it to for some reason. Only nodes 1 & 4 are equivalent. ``` var htmlStrings = ['<div id="one">Some<span>node ...
2015/07/10
[ "https://Stackoverflow.com/questions/31351533", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4178793/" ]
You're passing strings, not DOM elements. You need to convert the HTML to DOM elements. There are many solutions described at [Creating a new DOM element from an HTML string using built-in DOM methods or prototype](https://stackoverflow.com/questions/494143/creating-a-new-dom-element-from-an-html-string-using-built-in...
Most of the relevant part is **innerHTML**. Most of the information is in there. If the innerHTML of the two HTML nodes are the same, than nearly everything is the same. Than the **tagName** and for `<input>` tags the **type** attribute: ``` function nodeEquivalence(node1, node2) { var equal = false; if (node1...
38,024,631
How can I get a list of all class names used inside an HTML Snippet? For example, the HTML Snippet below, ``` <div class="name"> <div class="first"></div> <div class="last"></div> </div> ``` would have output `name`, `first`, `last` or `name`, `name > first`, `name > last`. Here, I am concerned about finding al...
2016/06/25
[ "https://Stackoverflow.com/questions/38024631", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2156512/" ]
Piggybacking off of the one-liner from @user1679669 and @Nermin's answer using [Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set), you can get a list of all the classes on a page with this one-liner: ```js const allClasses = [...new Set([].concat(...[...document.querySelectorAl...
**This is HTML:** ``` <div id="oye"> <div class="pop"></div> <div class="hop"></div> <div class="bob"></div> </div> <p id="my"></p> ``` In Jquery, You will get array of all class name, Check below code ``` $(document).ready(function(){ var myclass = []; var parent = $("#oye"); var divs = parent.children()...
38,024,631
How can I get a list of all class names used inside an HTML Snippet? For example, the HTML Snippet below, ``` <div class="name"> <div class="first"></div> <div class="last"></div> </div> ``` would have output `name`, `first`, `last` or `name`, `name > first`, `name > last`. Here, I am concerned about finding al...
2016/06/25
[ "https://Stackoverflow.com/questions/38024631", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2156512/" ]
A one-liner that returns unique class names in alphabetical order, the query part based on @torazaburo's answer: ``` [].concat(...[...document.querySelectorAll('*')].map(e=>[...e.classList])).filter((d,i,a)=>a.indexOf(d)==i).sort() ```
Get all the classes & the unique ones in one dimension. ```js const allClasses = Array.from(new Set(document.querySelectorAll("*").map(el => el.classNames))); const flatClasses = Array.from(new Set(allClasses.flat(1))) ```
38,024,631
How can I get a list of all class names used inside an HTML Snippet? For example, the HTML Snippet below, ``` <div class="name"> <div class="first"></div> <div class="last"></div> </div> ``` would have output `name`, `first`, `last` or `name`, `name > first`, `name > last`. Here, I am concerned about finding al...
2016/06/25
[ "https://Stackoverflow.com/questions/38024631", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2156512/" ]
Get all the elements in the document using `querySelectorAll`, then loop through them, getting each one's class, breaking it apart on spaces, and adding new ones to an `allClasses` array: ```js var allClasses = []; var allElements = document.querySelectorAll('*'); for (var i = 0; i < allElements.length; i++) { ...
Get all the classes & the unique ones in one dimension. ```js const allClasses = Array.from(new Set(document.querySelectorAll("*").map(el => el.classNames))); const flatClasses = Array.from(new Set(allClasses.flat(1))) ```
38,024,631
How can I get a list of all class names used inside an HTML Snippet? For example, the HTML Snippet below, ``` <div class="name"> <div class="first"></div> <div class="last"></div> </div> ``` would have output `name`, `first`, `last` or `name`, `name > first`, `name > last`. Here, I am concerned about finding al...
2016/06/25
[ "https://Stackoverflow.com/questions/38024631", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2156512/" ]
Simple ES10 new Set() approach ============================== ``` const allClasses = Array.from(document.querySelectorAll('[class]')).flatMap(e => e.className.toString().split(/\s+/)) const classes = new Set() allClasses.forEach(c => classes.add(c)) console.log(classes) ``` Get all the class names and split on spa...
**This is HTML:** ``` <div id="oye"> <div class="pop"></div> <div class="hop"></div> <div class="bob"></div> </div> <p id="my"></p> ``` In Jquery, You will get array of all class name, Check below code ``` $(document).ready(function(){ var myclass = []; var parent = $("#oye"); var divs = parent.children()...
38,024,631
How can I get a list of all class names used inside an HTML Snippet? For example, the HTML Snippet below, ``` <div class="name"> <div class="first"></div> <div class="last"></div> </div> ``` would have output `name`, `first`, `last` or `name`, `name > first`, `name > last`. Here, I am concerned about finding al...
2016/06/25
[ "https://Stackoverflow.com/questions/38024631", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2156512/" ]
Get all the elements in the document using `querySelectorAll`, then loop through them, getting each one's class, breaking it apart on spaces, and adding new ones to an `allClasses` array: ```js var allClasses = []; var allElements = document.querySelectorAll('*'); for (var i = 0; i < allElements.length; i++) { ...
Simple ES10 new Set() approach ============================== ``` const allClasses = Array.from(document.querySelectorAll('[class]')).flatMap(e => e.className.toString().split(/\s+/)) const classes = new Set() allClasses.forEach(c => classes.add(c)) console.log(classes) ``` Get all the class names and split on spa...
38,024,631
How can I get a list of all class names used inside an HTML Snippet? For example, the HTML Snippet below, ``` <div class="name"> <div class="first"></div> <div class="last"></div> </div> ``` would have output `name`, `first`, `last` or `name`, `name > first`, `name > last`. Here, I am concerned about finding al...
2016/06/25
[ "https://Stackoverflow.com/questions/38024631", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2156512/" ]
Simple ES10 new Set() approach ============================== ``` const allClasses = Array.from(document.querySelectorAll('[class]')).flatMap(e => e.className.toString().split(/\s+/)) const classes = new Set() allClasses.forEach(c => classes.add(c)) console.log(classes) ``` Get all the class names and split on spa...
Get all the classes & the unique ones in one dimension. ```js const allClasses = Array.from(new Set(document.querySelectorAll("*").map(el => el.classNames))); const flatClasses = Array.from(new Set(allClasses.flat(1))) ```
38,024,631
How can I get a list of all class names used inside an HTML Snippet? For example, the HTML Snippet below, ``` <div class="name"> <div class="first"></div> <div class="last"></div> </div> ``` would have output `name`, `first`, `last` or `name`, `name > first`, `name > last`. Here, I am concerned about finding al...
2016/06/25
[ "https://Stackoverflow.com/questions/38024631", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2156512/" ]
A one-liner that returns unique class names in alphabetical order, the query part based on @torazaburo's answer: ``` [].concat(...[...document.querySelectorAll('*')].map(e=>[...e.classList])).filter((d,i,a)=>a.indexOf(d)==i).sort() ```
**This is HTML:** ``` <div id="oye"> <div class="pop"></div> <div class="hop"></div> <div class="bob"></div> </div> <p id="my"></p> ``` In Jquery, You will get array of all class name, Check below code ``` $(document).ready(function(){ var myclass = []; var parent = $("#oye"); var divs = parent.children()...
38,024,631
How can I get a list of all class names used inside an HTML Snippet? For example, the HTML Snippet below, ``` <div class="name"> <div class="first"></div> <div class="last"></div> </div> ``` would have output `name`, `first`, `last` or `name`, `name > first`, `name > last`. Here, I am concerned about finding al...
2016/06/25
[ "https://Stackoverflow.com/questions/38024631", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2156512/" ]
**This is HTML:** ``` <div id="oye"> <div class="pop"></div> <div class="hop"></div> <div class="bob"></div> </div> <p id="my"></p> ``` In Jquery, You will get array of all class name, Check below code ``` $(document).ready(function(){ var myclass = []; var parent = $("#oye"); var divs = parent.children()...
Get all the classes & the unique ones in one dimension. ```js const allClasses = Array.from(new Set(document.querySelectorAll("*").map(el => el.classNames))); const flatClasses = Array.from(new Set(allClasses.flat(1))) ```
38,024,631
How can I get a list of all class names used inside an HTML Snippet? For example, the HTML Snippet below, ``` <div class="name"> <div class="first"></div> <div class="last"></div> </div> ``` would have output `name`, `first`, `last` or `name`, `name > first`, `name > last`. Here, I am concerned about finding al...
2016/06/25
[ "https://Stackoverflow.com/questions/38024631", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2156512/" ]
A one-liner that returns unique class names in alphabetical order, the query part based on @torazaburo's answer: ``` [].concat(...[...document.querySelectorAll('*')].map(e=>[...e.classList])).filter((d,i,a)=>a.indexOf(d)==i).sort() ```
I'd do something like the snippet below, it uses jQuery but that's just easier to read imo, a Javascript version wouldn't be much harder I'd assume. Basically you want to get all of the `nodes`, then add all of the unique classes to a list.. This is **much** harder to implement if you're looking for dynamic classes w...
38,024,631
How can I get a list of all class names used inside an HTML Snippet? For example, the HTML Snippet below, ``` <div class="name"> <div class="first"></div> <div class="last"></div> </div> ``` would have output `name`, `first`, `last` or `name`, `name > first`, `name > last`. Here, I am concerned about finding al...
2016/06/25
[ "https://Stackoverflow.com/questions/38024631", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2156512/" ]
Simple ES10 new Set() approach ============================== ``` const allClasses = Array.from(document.querySelectorAll('[class]')).flatMap(e => e.className.toString().split(/\s+/)) const classes = new Set() allClasses.forEach(c => classes.add(c)) console.log(classes) ``` Get all the class names and split on spa...
I'd do something like the snippet below, it uses jQuery but that's just easier to read imo, a Javascript version wouldn't be much harder I'd assume. Basically you want to get all of the `nodes`, then add all of the unique classes to a list.. This is **much** harder to implement if you're looking for dynamic classes w...
60,074,345
I wrote the put request which works perfectly, I want to connect it with axios to make it work on frontend with `onClick` method. ``` router.put("/:name", (req, res, next) => { Papp.findOneAndUpdate({ _pappName: req.params.pappName }, req.body, { new: true }).then(function(state) { res.send(state); }); }); ``` ...
2020/02/05
[ "https://Stackoverflow.com/questions/60074345", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11907983/" ]
You can decode / encode using a different name with the `dataclasses_json` lib, from their [docs](https://lidatong.github.io/dataclasses-json/): ``` from dataclasses import dataclass, field from dataclasses_json import config, dataclass_json @dataclass_json @dataclass class Person: given_name: str = field(metada...
I found next solution for my purposes. ``` @dataclass class ExampleClass: def __post_init__(self): self.__setattr__("class", self.class_) self.__delattr__("class_") class_: str ``` It requires to set init value in `class_` attribute. Also you can't directly use this attribute like `example_...
63,196,058
How can I get values in a particular row by using Rowid in sqlite3. In my have written the python code: ``` conn = sqlite3.connect('database.db') c = conn.cursor() c.execute("SELECT rowid, * FROM aqn_data WHERE rowid = 25") ``` *This prints* [] where I want to print the values from row 25.
2020/07/31
[ "https://Stackoverflow.com/questions/63196058", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12738283/" ]
The problem on my end was arising because I was using NVM yet I had already previously installed NPM independently. All I did to solve the issue was delete the npm and npm-cache folder located here: C:\Users\your-username\AppData\Roaming. No need of doing a fresh npm install (just leave that to NVM)
Just install what is required from the official site of Node.js <https://nodejs.org/en/> No SO version or command lines required
63,196,058
How can I get values in a particular row by using Rowid in sqlite3. In my have written the python code: ``` conn = sqlite3.connect('database.db') c = conn.cursor() c.execute("SELECT rowid, * FROM aqn_data WHERE rowid = 25") ``` *This prints* [] where I want to print the values from row 25.
2020/07/31
[ "https://Stackoverflow.com/questions/63196058", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12738283/" ]
I found the work-around ! First you need to open your cmd line, and use " **npm install -g npm@latest** " you'll get the error like this ``` C:\Users\KimeruLenovo>npm install -g npm@latest npm WARN npm npm does not support Node.js v14.7.0 npm WARN npm You should probably upgrade to a newer version of node as we npm W...
I also had the same issue, Windows 10 with npm v6.4.1 and trying to upgrade node from v9 to v12.18.3. The problem seemed to be that whenever I tried to install the latest version of node, npm wasn't upgraded and npm v6.4.1 only supported node up until v11 (even though the download page says "Latest LTS Version: 12.18....
63,196,058
How can I get values in a particular row by using Rowid in sqlite3. In my have written the python code: ``` conn = sqlite3.connect('database.db') c = conn.cursor() c.execute("SELECT rowid, * FROM aqn_data WHERE rowid = 25") ``` *This prints* [] where I want to print the values from row 25.
2020/07/31
[ "https://Stackoverflow.com/questions/63196058", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12738283/" ]
I found the work-around ! First you need to open your cmd line, and use " **npm install -g npm@latest** " you'll get the error like this ``` C:\Users\KimeruLenovo>npm install -g npm@latest npm WARN npm npm does not support Node.js v14.7.0 npm WARN npm You should probably upgrade to a newer version of node as we npm W...
I had same issue. I tried to install node with `choco install -y nodejs.install`. then, `npm i` works fine. (before that, nodist was uninstalled) I used `nodist` to install node. it may be the cause I think.
63,196,058
How can I get values in a particular row by using Rowid in sqlite3. In my have written the python code: ``` conn = sqlite3.connect('database.db') c = conn.cursor() c.execute("SELECT rowid, * FROM aqn_data WHERE rowid = 25") ``` *This prints* [] where I want to print the values from row 25.
2020/07/31
[ "https://Stackoverflow.com/questions/63196058", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12738283/" ]
I found the work-around ! First you need to open your cmd line, and use " **npm install -g npm@latest** " you'll get the error like this ``` C:\Users\KimeruLenovo>npm install -g npm@latest npm WARN npm npm does not support Node.js v14.7.0 npm WARN npm You should probably upgrade to a newer version of node as we npm W...
> > Go to the path where you can find the debug log( this file is found in your npm-cache folder) C:\Users\KimeruLenovo\AppData\Roaming > > > > > Delete the NPM and NPM-Cache folder, but DO NOT reinstall node . once deleted go back to your comand line and re-use the command " npm install -g npm@latest " > > > ...
63,196,058
How can I get values in a particular row by using Rowid in sqlite3. In my have written the python code: ``` conn = sqlite3.connect('database.db') c = conn.cursor() c.execute("SELECT rowid, * FROM aqn_data WHERE rowid = 25") ``` *This prints* [] where I want to print the values from row 25.
2020/07/31
[ "https://Stackoverflow.com/questions/63196058", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12738283/" ]
I also had the same issue, Windows 10 with npm v6.4.1 and trying to upgrade node from v9 to v12.18.3. The problem seemed to be that whenever I tried to install the latest version of node, npm wasn't upgraded and npm v6.4.1 only supported node up until v11 (even though the download page says "Latest LTS Version: 12.18....
I had the same problem. Delete `node` and `npm` cache in AppData folder inside `C:` drive and install recommended version on another drive.
63,196,058
How can I get values in a particular row by using Rowid in sqlite3. In my have written the python code: ``` conn = sqlite3.connect('database.db') c = conn.cursor() c.execute("SELECT rowid, * FROM aqn_data WHERE rowid = 25") ``` *This prints* [] where I want to print the values from row 25.
2020/07/31
[ "https://Stackoverflow.com/questions/63196058", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12738283/" ]
I also had the same issue, Windows 10 with npm v6.4.1 and trying to upgrade node from v9 to v12.18.3. The problem seemed to be that whenever I tried to install the latest version of node, npm wasn't upgraded and npm v6.4.1 only supported node up until v11 (even though the download page says "Latest LTS Version: 12.18....
If none of these solutions work which happened to me just go to <https://nodejs.org/en/> and download the recommended version manually super fast!
63,196,058
How can I get values in a particular row by using Rowid in sqlite3. In my have written the python code: ``` conn = sqlite3.connect('database.db') c = conn.cursor() c.execute("SELECT rowid, * FROM aqn_data WHERE rowid = 25") ``` *This prints* [] where I want to print the values from row 25.
2020/07/31
[ "https://Stackoverflow.com/questions/63196058", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12738283/" ]
I had the same problem. Delete `node` and `npm` cache in AppData folder inside `C:` drive and install recommended version on another drive.
Use `n`. I am so glad discovered this package. if `npm` installed; ``` npm install -g n n lts ``` for other ways or more details; <https://www.npmjs.com/package/n>
63,196,058
How can I get values in a particular row by using Rowid in sqlite3. In my have written the python code: ``` conn = sqlite3.connect('database.db') c = conn.cursor() c.execute("SELECT rowid, * FROM aqn_data WHERE rowid = 25") ``` *This prints* [] where I want to print the values from row 25.
2020/07/31
[ "https://Stackoverflow.com/questions/63196058", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12738283/" ]
I found the work-around ! First you need to open your cmd line, and use " **npm install -g npm@latest** " you'll get the error like this ``` C:\Users\KimeruLenovo>npm install -g npm@latest npm WARN npm npm does not support Node.js v14.7.0 npm WARN npm You should probably upgrade to a newer version of node as we npm W...
If none of these solutions work which happened to me just go to <https://nodejs.org/en/> and download the recommended version manually super fast!
63,196,058
How can I get values in a particular row by using Rowid in sqlite3. In my have written the python code: ``` conn = sqlite3.connect('database.db') c = conn.cursor() c.execute("SELECT rowid, * FROM aqn_data WHERE rowid = 25") ``` *This prints* [] where I want to print the values from row 25.
2020/07/31
[ "https://Stackoverflow.com/questions/63196058", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12738283/" ]
Go to the path where you can find the debug log (this file is found in your npm-cache folder) C:\Users\yourname\AppData\Roaming Delete the NPM and NPM-Cache folder, but DO NOT reinstall node. Once deleted go back to your command line and re-use the command " npm install -g npm@latest "
> > Go to the path where you can find the debug log( this file is found in your npm-cache folder) C:\Users\KimeruLenovo\AppData\Roaming > > > > > Delete the NPM and NPM-Cache folder, but DO NOT reinstall node . once deleted go back to your comand line and re-use the command " npm install -g npm@latest " > > > ...
63,196,058
How can I get values in a particular row by using Rowid in sqlite3. In my have written the python code: ``` conn = sqlite3.connect('database.db') c = conn.cursor() c.execute("SELECT rowid, * FROM aqn_data WHERE rowid = 25") ``` *This prints* [] where I want to print the values from row 25.
2020/07/31
[ "https://Stackoverflow.com/questions/63196058", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12738283/" ]
I found the work-around ! First you need to open your cmd line, and use " **npm install -g npm@latest** " you'll get the error like this ``` C:\Users\KimeruLenovo>npm install -g npm@latest npm WARN npm npm does not support Node.js v14.7.0 npm WARN npm You should probably upgrade to a newer version of node as we npm W...
Use `n`. I am so glad discovered this package. if `npm` installed; ``` npm install -g n n lts ``` for other ways or more details; <https://www.npmjs.com/package/n>
1,379,507
The number of customers arriving at a bank counter is in accordance with a Poisson distribution with mean rate of 5 customers in 3 minutes. Service time at the counter follows exponential distribution with mean service rate of 6 customers in 2 minutes. If there were 20 customers waiting in the line just before opening ...
2015/07/30
[ "https://math.stackexchange.com/questions/1379507", "https://math.stackexchange.com", "https://math.stackexchange.com/users/257958/" ]
Extended Comment, not Answer. I do not believe all of the speculations in the Question and Comments are exactly correct and relevant. Here are some things I believe are correct, assuming you are dealing with an M/M/1 queue. The formula $W = \lambda/(\mu - \lambda) = \rho/(1 - \rho),$ where $\rho = \lambda/\mu$ is fo...
The 15 minutes mentioned by BrianTung is indeed the exact average time to empty, starting in an initial state of 20 jobs. Here is the explanation: The average duration of a busy period in an $M/M/1$ queue is $\overline{B} = \frac{1}{\mu-\lambda}$. This can be proven using the renewal theory identity: $$ \rho = \frac...
1,200,208
I need to compute the -5th term to the 5th term of the Laurent expansion of $(\cos(z))^2/\sin(z)$. I know that I can make this into $\csc(z)-\sin(z)$ but I wouldn't know what to do with the $\csc(z)$ in terms of a series. Also, I feel like several of these Laurent expansion coefficients would be zero. Could someone giv...
2015/03/21
[ "https://math.stackexchange.com/questions/1200208", "https://math.stackexchange.com", "https://math.stackexchange.com/users/153009/" ]
$$ \cos^2z = 1-z^2+\frac{z^4}{3}-\frac{2z^6}{45}+\cdots $$ The function $\frac{1}{\sin z}$ has a simple pole at $z=0$ and it is analytic in a punctured disc around $z=0$, so it's Laurent series is $\frac{a\_{-1}}{z}+a\_0+a\_1z + \cdots$ and it converges to $\frac{1}{\sin z}$ in a punctured disc around $z=0$. Since ...
An idea: $$\frac{\cos^2x}{\sin x}=\frac{\left(1-\frac{x^2}2+\frac{x^4}{24}-\ldots\right)^2}{x-\frac{x^3}6+\frac{x^5}{120}-\ldots}=\frac{1-x^2+\frac{x^4}3+\mathcal (x^6)}{x\left(1-\frac{x^2}6+\mathcal O(x^4)\right)}=$$ $$=\frac1x\left(1-x^2+\frac{x^4}3+\mathcal O (x^6)\right)\left(1+\frac{x^2}6+\frac{x^4}{36}+\mathcal...
52,071,277
My file "index.php" has the script below: ``` <?php $pagina = empty($_GET['p']) ? 'home' : $_GET['p']; switch ($pagina): case 'contato': $titulo = 'Contato '; $keywords = ''; $descricao = ''; break; case 'privacidade': $titulo = 'Privacidade '; $keywords = ''; $descricao = ''; brea...
2018/08/29
[ "https://Stackoverflow.com/questions/52071277", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10282450/" ]
The error your getting is because you're mixing the firebase native api & angularfire. ``` selectedUser$: AngularFirestoreDocument<any>; ``` Calling `.ref` on your `AngularFirestoreCollection` converts it to type `firebase.firestore.CollectionReference` That being said, there are 2 possibilities to solve your issu...
It will be easier to help you if you add more details about the structure of your Firestore collection and your typescript file. However, to query the collection I do the following: 1. Define a private AngularFirestore in the constructor. ``` constructor( private afStore: AngularFirestore, ) { } ``` 2. Define ...
52,071,277
My file "index.php" has the script below: ``` <?php $pagina = empty($_GET['p']) ? 'home' : $_GET['p']; switch ($pagina): case 'contato': $titulo = 'Contato '; $keywords = ''; $descricao = ''; break; case 'privacidade': $titulo = 'Privacidade '; $keywords = ''; $descricao = ''; brea...
2018/08/29
[ "https://Stackoverflow.com/questions/52071277", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10282450/" ]
This worked for me with the latest versions: 2021-July ``` this.store .collection("Products",ref=>ref.where("stock","==",10)) .get() .subscribe(data=>data.forEach(el=>console.log(el.data()))); ``` PS: I'm using get() and no event listener.
It will be easier to help you if you add more details about the structure of your Firestore collection and your typescript file. However, to query the collection I do the following: 1. Define a private AngularFirestore in the constructor. ``` constructor( private afStore: AngularFirestore, ) { } ``` 2. Define ...
52,071,277
My file "index.php" has the script below: ``` <?php $pagina = empty($_GET['p']) ? 'home' : $_GET['p']; switch ($pagina): case 'contato': $titulo = 'Contato '; $keywords = ''; $descricao = ''; break; case 'privacidade': $titulo = 'Privacidade '; $keywords = ''; $descricao = ''; brea...
2018/08/29
[ "https://Stackoverflow.com/questions/52071277", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10282450/" ]
``` this.afs.collection<User>('users', ref => ref.where('uid', '==', key).limit(1)) ); ```
It will be easier to help you if you add more details about the structure of your Firestore collection and your typescript file. However, to query the collection I do the following: 1. Define a private AngularFirestore in the constructor. ``` constructor( private afStore: AngularFirestore, ) { } ``` 2. Define ...
52,071,277
My file "index.php" has the script below: ``` <?php $pagina = empty($_GET['p']) ? 'home' : $_GET['p']; switch ($pagina): case 'contato': $titulo = 'Contato '; $keywords = ''; $descricao = ''; break; case 'privacidade': $titulo = 'Privacidade '; $keywords = ''; $descricao = ''; brea...
2018/08/29
[ "https://Stackoverflow.com/questions/52071277", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10282450/" ]
The error your getting is because you're mixing the firebase native api & angularfire. ``` selectedUser$: AngularFirestoreDocument<any>; ``` Calling `.ref` on your `AngularFirestoreCollection` converts it to type `firebase.firestore.CollectionReference` That being said, there are 2 possibilities to solve your issu...
This worked for me with the latest versions: 2021-July ``` this.store .collection("Products",ref=>ref.where("stock","==",10)) .get() .subscribe(data=>data.forEach(el=>console.log(el.data()))); ``` PS: I'm using get() and no event listener.
52,071,277
My file "index.php" has the script below: ``` <?php $pagina = empty($_GET['p']) ? 'home' : $_GET['p']; switch ($pagina): case 'contato': $titulo = 'Contato '; $keywords = ''; $descricao = ''; break; case 'privacidade': $titulo = 'Privacidade '; $keywords = ''; $descricao = ''; brea...
2018/08/29
[ "https://Stackoverflow.com/questions/52071277", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10282450/" ]
The error your getting is because you're mixing the firebase native api & angularfire. ``` selectedUser$: AngularFirestoreDocument<any>; ``` Calling `.ref` on your `AngularFirestoreCollection` converts it to type `firebase.firestore.CollectionReference` That being said, there are 2 possibilities to solve your issu...
``` this.afs.collection<User>('users', ref => ref.where('uid', '==', key).limit(1)) ); ```
52,071,277
My file "index.php" has the script below: ``` <?php $pagina = empty($_GET['p']) ? 'home' : $_GET['p']; switch ($pagina): case 'contato': $titulo = 'Contato '; $keywords = ''; $descricao = ''; break; case 'privacidade': $titulo = 'Privacidade '; $keywords = ''; $descricao = ''; brea...
2018/08/29
[ "https://Stackoverflow.com/questions/52071277", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10282450/" ]
This worked for me with the latest versions: 2021-July ``` this.store .collection("Products",ref=>ref.where("stock","==",10)) .get() .subscribe(data=>data.forEach(el=>console.log(el.data()))); ``` PS: I'm using get() and no event listener.
``` this.afs.collection<User>('users', ref => ref.where('uid', '==', key).limit(1)) ); ```
256,964
Inspired by a challenge from the [OUCC 2022 Seniors competition](https://challenge.bebras.uk/index.php?action=anon_join&grp_id=12427). ### Background Two teams are playing "capture the flag". They take turns invading each other's base and capturing their opposing team's flag in the shortest amount of time. The attack...
2023/01/21
[ "https://codegolf.stackexchange.com/questions/256964", "https://codegolf.stackexchange.com", "https://codegolf.stackexchange.com/users/114446/" ]
[Jelly](https://github.com/DennisMitchell/jelly), 8 [bytes](https://github.com/DennisMitchell/jelly/wiki/Code-page) =================================================================================================================== Employs the team identification trick from [Arnauld's JavaScript ES6 answer](https://co...
[Nim](https://nim-lang.org/), 77 bytes ====================================== ``` import math,sequtils proc c[S](s:S):int=sgn sum s.mapIt it[0]*(it[1]-3*it[2]) ``` [Attempt This Online!](https://ato.pxeger.com/run?1=m704LzN3wYKlpSVpuhY3fTNzC_KLShRyE0sydIpTC0tLMnOKuQqK8pMVkqODYzWKrYI1rTLzSmyL0_MUiktzFYr1chMLPEsUMkuiD...
256,964
Inspired by a challenge from the [OUCC 2022 Seniors competition](https://challenge.bebras.uk/index.php?action=anon_join&grp_id=12427). ### Background Two teams are playing "capture the flag". They take turns invading each other's base and capturing their opposing team's flag in the shortest amount of time. The attack...
2023/01/21
[ "https://codegolf.stackexchange.com/questions/256964", "https://codegolf.stackexchange.com", "https://codegolf.stackexchange.com/users/114446/" ]
[Japt](https://github.com/ETHproductions/japt) [`-g`](https://codegolf.meta.stackexchange.com/a/14339/), ~~16~~ 14 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1) =======================================================================================================================================================...
[Arturo](https://arturo-lang.io), 52 bytes ========================================== ```arturo $[a][n:sum map a't->t\0*t\1-t\2*3(0=n)?->0->n/abs n] ``` [Try it](http://arturo-lang.io/playground?WaFmuA) A port of my [Factor answer](https://codegolf.stackexchange.com/a/256975/97916), though it suffers from a lack of...
256,964
Inspired by a challenge from the [OUCC 2022 Seniors competition](https://challenge.bebras.uk/index.php?action=anon_join&grp_id=12427). ### Background Two teams are playing "capture the flag". They take turns invading each other's base and capturing their opposing team's flag in the shortest amount of time. The attack...
2023/01/21
[ "https://codegolf.stackexchange.com/questions/256964", "https://codegolf.stackexchange.com", "https://codegolf.stackexchange.com/users/114446/" ]
[Japt](https://github.com/ETHproductions/japt) [`-g`](https://codegolf.meta.stackexchange.com/a/14339/), 10 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1) ==============================================================================================================================================================...
[Nim](https://nim-lang.org/), 77 bytes ====================================== ``` import math,sequtils proc c[S](s:S):int=sgn sum s.mapIt it[0]*(it[1]-3*it[2]) ``` [Attempt This Online!](https://ato.pxeger.com/run?1=m704LzN3wYKlpSVpuhY3fTNzC_KLShRyE0sydIpTC0tLMnOKuQqK8pMVkqODYzWKrYI1rTLzSmyL0_MUiktzFYr1chMLPEsUMkuiD...
256,964
Inspired by a challenge from the [OUCC 2022 Seniors competition](https://challenge.bebras.uk/index.php?action=anon_join&grp_id=12427). ### Background Two teams are playing "capture the flag". They take turns invading each other's base and capturing their opposing team's flag in the shortest amount of time. The attack...
2023/01/21
[ "https://codegolf.stackexchange.com/questions/256964", "https://codegolf.stackexchange.com", "https://codegolf.stackexchange.com/users/114446/" ]
[Vyxal](https://github.com/Vyxal/Vyxal), ~~12~~ ~~10~~ 8 bytes ============================================================== ``` ƛ÷T-*;∑± ``` [Try it Online!](https://vyxal.pythonanywhere.com/#WyJBIiwiIiwixpvDt1QtKjviiJHCsSIsIiIsIltbLTEsIDEwMCwgNV0sIFsxLCA5NSwgMl1dXG5bWy0xLCAyMCwgMF0sIFstMSwgMzAsIDFdLCBbMSwgNDAsIDZ...
[Factor](https://factorcode.org/) + `math.unicode`, 33 bytes ============================================================ ```factor [ [ first3 3 * - * ] map Σ sgn ] ``` [Try it online!](https://tio.run/##ZU/LCoJAFN37FadtoYyPMSoIiiDatIlW4kJsLBepjSMR4tf0P/2S3SxxoLkMnHM5D24SxSqX7fGw22/nuEbqYlVZGucngVLcKpHFouzWKKRQ6lHIN...
256,964
Inspired by a challenge from the [OUCC 2022 Seniors competition](https://challenge.bebras.uk/index.php?action=anon_join&grp_id=12427). ### Background Two teams are playing "capture the flag". They take turns invading each other's base and capturing their opposing team's flag in the shortest amount of time. The attack...
2023/01/21
[ "https://codegolf.stackexchange.com/questions/256964", "https://codegolf.stackexchange.com", "https://codegolf.stackexchange.com/users/114446/" ]
JavaScript (ES6), 43 bytes ========================== *-2 thanks to [@l4m2](https://codegolf.stackexchange.com/users/76323/l4m2)* Expects `1` for `'A'` and `-1` for `'B'`. Returns `false`, `true` or `0` for *A wins*, *B wins* and *draw* respectively. ```javascript a=>a.map(([i,t,n])=>s+=i*=t-n*3,s=0)|s&&s>0 ``` [T...
[Nim](https://nim-lang.org/), 77 bytes ====================================== ``` import math,sequtils proc c[S](s:S):int=sgn sum s.mapIt it[0]*(it[1]-3*it[2]) ``` [Attempt This Online!](https://ato.pxeger.com/run?1=m704LzN3wYKlpSVpuhY3fTNzC_KLShRyE0sydIpTC0tLMnOKuQqK8pMVkqODYzWKrYI1rTLzSmyL0_MUiktzFYr1chMLPEsUMkuiD...
256,964
Inspired by a challenge from the [OUCC 2022 Seniors competition](https://challenge.bebras.uk/index.php?action=anon_join&grp_id=12427). ### Background Two teams are playing "capture the flag". They take turns invading each other's base and capturing their opposing team's flag in the shortest amount of time. The attack...
2023/01/21
[ "https://codegolf.stackexchange.com/questions/256964", "https://codegolf.stackexchange.com", "https://codegolf.stackexchange.com/users/114446/" ]
[Factor](https://factorcode.org/) + `math.unicode`, 33 bytes ============================================================ ```factor [ [ first3 3 * - * ] map Σ sgn ] ``` [Try it online!](https://tio.run/##ZU/LCoJAFN37FadtoYyPMSoIiiDatIlW4kJsLBepjSMR4tf0P/2S3SxxoLkMnHM5D24SxSqX7fGw22/nuEbqYlVZGucngVLcKpHFouzWKKRQ6lHIN...
awk, ~~78~~ ~~76~~ ~~71~~ 69 bytes ================================== In the following, remove newline (that's only for readability) and save one byte. 1. 79 bytes ``` {s[$1]=s[$1]+$2-(3*$3)} END{print (s["A"]>s["B"])?"A":(s["A"]<s["B"])?"B":"="} ``` 2. 77 bytes ``` {s[$1]=s[$1]+$2-(3*$3)} END{a=s["A"];b=s["B"];pr...