question_id
int64
37.6M
73.2M
input_text
stringlengths
88
52.4k
output_text
stringlengths
37
35.6k
title
stringlengths
15
150
tags
stringlengths
1
107
q_score
int64
-19
397
view_count
int64
3
879k
answer_count
int64
1
21
accepted_answer_id
int64
37.6M
73.8M
answer_id
int64
37.6M
73.8M
a_score
int64
-5
1.29k
is_accepted
bool
1 class
creation_date
stringlengths
20
24
input_text_instruct
stringlengths
251
52.6k
53,528,894
read large file in blogdown post<p>I have a file large file of 400MB that I want to read in my blogdown post using Hugo. The problem is that I have netlify linked to the github repository of the website, but github places a maximum of 100MB per file, so I cannot upload the file. Is there anyway to read the file in the ...
<p>You could host the file elsewhere like in Dropbox. Let's say it's a <code>csv</code> file then you could get the Dropbox link to this file, say </p> <p><code>https://www.dropbox.com/s/RANDOMLETTERS/YOURFILE.csv?dl=0</code></p> <p>then the key is to change the <code>dl=0</code> to <code>dl=1</code> and read it in l...
read large file in blogdown post
blogdown
0
29
1
53,530,692
53,530,692
0
true
2018-11-28T22:12:26.987Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: read large file in blogdown post<p>I have a file large file of 400MB that I want to read in my blogdown post using Hugo. The problem is that I have netlify l...
53,530,581
Writing Dynamic JQuery<p>I am looking for a way to write dynamic codes in Jquery.</p> <p>Please take a look at these codes below and here is its <a href="http://jsfiddle.net/g9o21j05/" rel="nofollow noreferrer">jsfiddle</a></p> <p>Everything works as expected, but Jquery codes repeats and kind of long! Is there any w...
<p>Here's my take, based on <em>not</em> changing your html structure. This could be done better with a change to html structure. </p> <p><a href="http://jsfiddle.net/Ldfqhm1k/" rel="nofollow noreferrer">http://jsfiddle.net/Ldfqhm1k/</a></p> <p><strong>HTML</strong></p> <pre><code>&lt;div class="tabs" id="tab-part1...
Writing Dynamic JQuery
jquery|html
0
60
2
53,530,712
53,530,712
0
true
2018-11-29T01:30:10.273Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Writing Dynamic JQuery<p>I am looking for a way to write dynamic codes in Jquery.</p> <p>Please take a look at these codes below and here is its <a href="ht...
53,386,110
The size of dynamic response body is over the limit<p>I'm trying to create temporary download link. </p> <p>The main problem is that the download always stop when file reach 1Go. When i use <code>tail</code> on the downloaded file I get this error :</p> <p><code>The size of dynamic response body is over the limit, re...
<p>After a bit more search i found that the server wasn't using Apache but LiteSpeed, To correct this error you must change the <code>Max Dynamic Response Body Size</code> configuration with web admin wich default port is <code>:7080</code></p>
The size of dynamic response body is over the limit
php|apache|download|litespeed|force-download
0
2,818
1
53,531,156
53,531,156
0
true
2018-11-20T04:12:32.037Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: The size of dynamic response body is over the limit<p>I'm trying to create temporary download link. </p> <p>The main problem is that the download always sto...
53,529,463
With statement with two variables<p>How would I combine a <code>with</code> with a <code>firstof</code> in the django template? For example:</p> <pre><code>{% firstof item.item.master_id item.tracktitle.master_id %} {% with ^^ above as master_id %} </code></pre>
<p>The <a href="https://docs.djangoproject.com/en/stable/ref/templates/builtins/#firstof" rel="nofollow noreferrer">documentation</a> for <code>firstof</code> explains how to do this:</p> <blockquote> <p>You can use the syntax <code>{% firstof var1 var2 var3 as value %}</code> to store the output inside a variable.<...
With statement with two variables
python|django
0
46
1
53,531,242
53,531,242
0
true
2018-11-28T23:06:57.273Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: With statement with two variables<p>How would I combine a <code>with</code> with a <code>firstof</code> in the django template? For example:</p> <pre><code>...
53,513,958
SSL Not working with apache and cloudflare<p>I have Create SSL certificate using "Let's Encrypt" in Ubantu 18.10 .i follow below documentation to create SSL certificate.</p> <p><a href="https://www.linode.com/docs/security/ssl/install-lets-encrypt-to-create-ssl-certificates/" rel="nofollow noreferrer">https://www.lino...
<p>I found solution. there is issue with apache config file.I have change port "443" in apache config file and its working fine.</p> <p>Thanks</p>
SSL Not working with apache and cloudflare
apache|ssl|ssl-certificate|cloudflare
0
273
1
53,531,344
53,531,344
0
true
2018-11-28T07:09:39.980Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SSL Not working with apache and cloudflare<p>I have Create SSL certificate using "Let's Encrypt" in Ubantu 18.10 .i follow below documentation to create SSL ...
53,440,564
Database insert causes docker container to crash?<p>I'm using Zend Framework 2. When I make a request that involves making an INSERT query into the database, the request hangs with no response or error thrown, and running <code>docker ps</code> takes a while and returns this error:</p> <p><code>Error response from dae...
<p>As a reference for others who will encounter this in the future, the cause for me was referencing a column name with a trailing whitespace (which it should not have), and trying to insert a <code>NULL</code> value into a <code>NOT NULL</code> field.</p>
Database insert causes docker container to crash?
mysql|docker|zend-framework2
0
316
1
53,531,362
53,531,362
0
true
2018-11-23T04:11:48.743Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Database insert causes docker container to crash?<p>I'm using Zend Framework 2. When I make a request that involves making an INSERT query into the database,...
53,531,147
How to specy ECS service name<p>It seems like taskDefiinition is used for service name. I currently have taskDefinition for old names. Does it mean that I need to deregister this definitions first? This should be automated via ecs-cli</p>
<p><code>--project-name</code> in ecs cli service up works</p> <blockquote> <p>Specifies the project name to use. If the COMPOSE_PROJECT_NAME environment variable is set when ecs-cli compose is run, then the project name is set to the value of that environment variable.</p> <p>Type: String</p> <p>Defau...
How to specy ECS service name
amazon-web-services|amazon-ecs
0
71
1
53,531,616
53,531,616
0
true
2018-11-29T02:51:24.970Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to specy ECS service name<p>It seems like taskDefiinition is used for service name. I currently have taskDefinition for old names. Does it mean that I ne...
53,531,753
Django testing in creating a user with email address which is from session input, assertRedirects is not working<p>The user creation is using an email address as <code>USERNAME_FIELD</code> and it is extracted from session and save in the form <code>save()</code>. It seems it is not going further down to the redirectio...
<p>Your response may be a 500, not a 302, which would mean there is no Location header.</p> <p>The call for request.session.get('email') will likely throw a KeyError, as your test does not appear to set the session['email'] field, and there is no default.</p> <p>Note that when using a session in a test case, you need...
Django testing in creating a user with email address which is from session input, assertRedirects is not working
python|django|redirect|testing
0
61
1
53,532,121
53,532,121
0
true
2018-11-29T04:16:34.280Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Django testing in creating a user with email address which is from session input, assertRedirects is not working<p>The user creation is using an email addres...
53,529,574
ALTER ROLE SET settings location<p>I have been going through the documentation about setting PG parameters. I understand the behavior of <code>postgresql.conf</code> and <code>postgresql.auto.conf</code>, especially with <code>ALTER SYSTEM</code> variants and the <code>SUPERUSER</code> requirements for these cluster-wi...
<p>This information is kept in the <a href="https://www.postgresql.org/docs/current/catalog-pg-db-role-setting.html" rel="nofollow noreferrer"><code>pg_db_role_setting</code></a> catalog.</p> <p>Consequently, these changes are persistent.</p> <p><code>pg_settings</code> will show the <code>source</code> as <code>user...
ALTER ROLE SET settings location
postgresql|psql|postgresql-10|postgresql-11
0
56
1
53,532,394
53,532,394
0
true
2018-11-28T23:18:59.373Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ALTER ROLE SET settings location<p>I have been going through the documentation about setting PG parameters. I understand the behavior of <code>postgresql.con...
53,521,990
How to make image upload not just from camera?<p>I have three buttons in my application. One is for a camera, second is for a gallery and the third one is to upload. I changed my upload method from web server to googles firebase. Currently, I am only able to upload from my camera button. If I try to upload from gallery...
<p>Added an else if statement. Stupid me</p>
How to make image upload not just from camera?
android|firebase
0
27
1
53,533,194
53,533,194
0
true
2018-11-28T14:42:24.617Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to make image upload not just from camera?<p>I have three buttons in my application. One is for a camera, second is for a gallery and the third one is to...
53,532,075
Cassandra Data distribution<p>@here: i have a question related to cassandra partitioning , if i create below tables 2 tables below 2 tables we will be querying based on group_id, hence created partitioning on group_id with same values of group_id in different tables, will the data for these tables will go to same cassa...
<p>As long as tables have same replication factor, keyspace and partition key, they stored on the same node.</p>
Cassandra Data distribution
cassandra|cassandra-3.0
0
39
1
53,533,249
53,533,249
0
true
2018-11-29T04:54:11.073Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cassandra Data distribution<p>@here: i have a question related to cassandra partitioning , if i create below tables 2 tables below 2 tables we will be queryi...
53,533,323
jq having issues escaping hypens in top level key<p>This is my json that i am trying to just jq to parse:</p> <pre><code>{ "aaa-bbb-ccc": { "derp": blah } } </code></pre> <p>Getting error this error:</p> <pre><code>cat myjson | jq -r .'aaa-bbb-ccc' jq: error: aaa/0 is not defined at &lt;top-level&g...
<p>Using the basic form for accessing a key's value, you'd write:</p> <pre><code>jq -r '.["KEYNAME"]' </code></pre> <p>except that at a Windows prompt, you'd have to fiddle with the quotation marks (or put the filter in a file).</p> <p>In modern versions of jq, the basic form can be abbreviated to just <code>."KEYNA...
jq having issues escaping hypens in top level key
json|key|jq
0
56
1
53,533,541
53,533,541
0
true
2018-11-29T06:49:03.390Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: jq having issues escaping hypens in top level key<p>This is my json that i am trying to just jq to parse:</p> <pre><code>{ "aaa-bbb-ccc": { "der...
53,533,944
Launch Android email client in Unity, specifying recipient, subject, and body as intent extras... getting NoSuchFieldError<p>I'm attempting to launch Android's email client (well, technically, whatever the user decides to pick when prompted, but really... the email client) from within Unity Player to allow the user to ...
<p>You said that the NoSuchFieldError errror is happening here:</p> <pre><code>intentObject.Call&lt;AndroidJavaObject&gt;("putExtra", intentClass.GetStatic&lt;string[]&gt;("EXTRA_EMAIL"), recipient); </code></pre> <p>It can't find <code>EXTRA_EMAIL</code> because on the <a href="https://developer.android.com/referenc...
Launch Android email client in Unity, specifying recipient, subject, and body as intent extras... getting NoSuchFieldError
c#|android|unity3d
0
323
1
53,534,604
53,534,604
0
true
2018-11-29T07:35:09.253Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Launch Android email client in Unity, specifying recipient, subject, and body as intent extras... getting NoSuchFieldError<p>I'm attempting to launch Android...
53,503,469
Having trouble deleting rows and changing data in WPF DataGrid (using MySQL)<p>I'm trying to make a WPF application centered around a datagrid. I have the following MySQL Table:</p> <pre><code>+-------------+-----------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Defau...
<p>I managed to fix my problem. I added the following to my Init code:</p> <pre><code>DataContext = this; receptenDg.BeginInit(); db.CreateTable(); receptenDg.SetBinding(ItemsControl.ItemsSourceProperty, new Binding { Source = db.dt.Tables[0] }); receptenDg.AutoGenerateColumns = true; receptenDg.CanUserAddRows = fals...
Having trouble deleting rows and changing data in WPF DataGrid (using MySQL)
c#|mysql|wpf
0
60
1
53,535,199
53,535,199
0
true
2018-11-27T15:56:38.730Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Having trouble deleting rows and changing data in WPF DataGrid (using MySQL)<p>I'm trying to make a WPF application centered around a datagrid. I have the fo...
53,535,777
Compare the previous row with the current one<p>I am trying to compare the previous row's value with the current one and depending on the comparison record a comment. This is my dataset excerpt: </p> <pre><code>+-----------------------------------+---- | depth |col1| fomration| +-----------------------...
<p>You want to look into <a href="https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.shift.html" rel="nofollow noreferrer"><code>shift</code></a> and <a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.where.html" rel="nofollow noreferrer"><code>np.where()</code></a>. Toy example:</...
Compare the previous row with the current one
python|csv
0
43
1
53,535,955
53,535,955
0
true
2018-11-29T09:32:11.173Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Compare the previous row with the current one<p>I am trying to compare the previous row's value with the current one and depending on the comparison record a...
53,525,526
Saving a Canvas as an image in UWP<p>I found <a href="https://social.msdn.microsoft.com/Forums/en-US/cf8c17dc-68d4-4777-951f-bb7f0665bd06/saving-a-canvas-as-an-image-in-windows-8?forum=winappswithhtml5" rel="nofollow noreferrer">this documentation</a> for exporting and saving a Canvas as a png. It gives the following c...
<p>I found a different way to save the canvas, still didn't solve my initial problem</p> <p>I can turn the canvas into a blob stream and save that to a png file</p> <pre><code>function saveCanvasAsImage(canvasElement) { var picker = new Windows.Storage.Pickers.FileSavePicker(); picker.suggestedStartLocation =...
Saving a Canvas as an image in UWP
javascript|uwp|winjs
0
782
2
53,536,413
53,536,413
0
true
2018-11-28T18:04:49.780Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Saving a Canvas as an image in UWP<p>I found <a href="https://social.msdn.microsoft.com/Forums/en-US/cf8c17dc-68d4-4777-951f-bb7f0665bd06/saving-a-canvas-as-...
53,518,733
Get image via ctx.drawImage and convert to base64<p>I would like to get image from faviconkit.com in base64. <code>Fetch</code> &amp; <code>XHR</code> does not work due to Cors. The only think which works is <code>ctx.drawImage</code>. Any other JS based methods could help too. Thanks</p> <p>Here is what I have so far...
<p>First, you need to call <code>canvas.toDataURL()</code> after loading the image. Second, without <code>Access-Control-Allow-Origin: *</code> you won’t be able to convert remote image to data URI.</p> <p>Therefore, you have some ways to solve your problem:</p> <ul> <li>Load images via a local Web proxy or a remote ...
Get image via ctx.drawImage and convert to base64
javascript|xmlhttprequest|fetch
0
273
1
53,536,722
53,536,722
0
true
2018-11-28T11:46:41.947Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Get image via ctx.drawImage and convert to base64<p>I would like to get image from faviconkit.com in base64. <code>Fetch</code> &amp; <code>XHR</code> does n...
53,523,361
Why does my ConsumerTemplate not read any messages from ActiveMQ Topic?<p>I'm trying to consume messages as a polling consumer, from time to time, from an ActiveMQ topic using a durable subscriber endpoint.</p> <p>In my bean, I have a ConsumerTemplate from which I am trying to receive exchanges, and send to another UR...
<p>Having noted @pcoates answer, and tried extending the timeout for testing purposes, it became obvious that the issue was that the durable subscription option on the URI wasn't being acted on, and as there were no new messages on the topic during the 1 second wait, nothing happened.</p> <p>The answer to <a href="htt...
Why does my ConsumerTemplate not read any messages from ActiveMQ Topic?
apache-camel|activemq
0
276
2
53,536,849
53,536,849
0
true
2018-11-28T15:53:08.273Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why does my ConsumerTemplate not read any messages from ActiveMQ Topic?<p>I'm trying to consume messages as a polling consumer, from time to time, from an Ac...
53,536,121
Logging in with FireBase facebook authentication, getCurrentUser() keeps returning null<p>I am struggling right now to pass on the CurrentUser when I am logging in with Facebook (with firebase authentication). It has been working before, but as I log into my application now, the currentuser keeps returning null.</p> <...
<p>Okay I fixed my problem.</p> <p>So I tried to add the currentUser to actually be apart of my updateUi() method. Then it seemed my problem was, that I updated the UI in my facebookCallback(), which seemed to change the activity before actually handling the login.</p> <p>So now my code looks the following:</p> <pre...
Logging in with FireBase facebook authentication, getCurrentUser() keeps returning null
android|facebook|firebase|firebase-authentication|facebook-authentication
0
66
1
53,536,940
53,536,940
0
true
2018-11-29T09:50:13.607Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Logging in with FireBase facebook authentication, getCurrentUser() keeps returning null<p>I am struggling right now to pass on the CurrentUser when I am logg...
53,532,987
docker-compose as a production environment without internet<p>I'm a beginner with docker and I created a docker-compose file that can provide our production environment and I want to use it for our client servers for production environment also I want to use it locally and without internet. Now, I have binaries of dock...
<p>Install docker with package <code>sudo dpkg -i /path/to/package.deb</code> that you can download from <a href="https://download.docker.com/linux/ubuntu/dists/" rel="nofollow noreferrer">https://download.docker.com/linux/ubuntu/dists/</a>.</p> <p>Then do post install, <code>sudo systemctl enable docker</code>. This ...
docker-compose as a production environment without internet
docker|docker-compose
0
573
2
53,536,955
53,536,955
0
true
2018-11-29T06:23:12.587Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: docker-compose as a production environment without internet<p>I'm a beginner with docker and I created a docker-compose file that can provide our production ...
53,392,359
Loopback doesn't create rest api for container<p>Following docs here <a href="https://loopback.io/doc/en/lb2/Storage-component.html#using-javascript" rel="nofollow noreferrer">https://loopback.io/doc/en/lb2/Storage-component.html#using-javascript</a></p> <p>I added the file storage component.</p> <p>Here is <code>ser...
<p>I was able to create the model with <code>lb model</code> selecting the datasource for storage.</p> <p>Then the rest apis are provided.</p>
Loopback doesn't create rest api for container
loopbackjs
0
37
1
53,537,219
53,537,219
0
true
2018-11-20T11:47:56.883Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Loopback doesn't create rest api for container<p>Following docs here <a href="https://loopback.io/doc/en/lb2/Storage-component.html#using-javascript" rel="no...
53,537,124
Upload image as the new profile image in SendBird<p>Currently working on a SendBird and react-native project where the module is about changing the auto generated profile image, <code>profileUrl</code>, to a new image taken from phone camera or gallery storage. However the following code i typed in is not working and i...
<p>You should only assign the <code>response.uri</code> in the <code>profileUrl</code> not <code>{uri: response.uri}</code> as you are already specifying the <code>uri</code> while feeding the <code>source</code> with the <code>profileUrl</code> in <code>avatar</code>.</p>
Upload image as the new profile image in SendBird
javascript|react-native|sendbird
0
325
1
53,537,491
53,537,491
0
true
2018-11-29T10:41:35.540Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Upload image as the new profile image in SendBird<p>Currently working on a SendBird and react-native project where the module is about changing the auto gene...
53,536,217
What would be an appropriate syntax for selecting a radio button on a website using VBA?<p>Totally new to this and would appreciate any help regarding this. I have gotten my program to open the website and navigate, however I am stuck on the part that involves choosing a radio button. <a href="https://www.ncbi.nlm.nih....
<p>You have asked at least 3 questions there (with I suspect a 4th you would later ask). You should really only ask one per question. The very last part of saving to desktop you can research as is covered extensively on StackOverflow. I have put in a simply SendKeys in case that works but if you end up needing somethin...
What would be an appropriate syntax for selecting a radio button on a website using VBA?
html|vba|web-scraping
0
38
1
53,537,563
53,537,563
0
true
2018-11-29T09:55:52.680Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What would be an appropriate syntax for selecting a radio button on a website using VBA?<p>Totally new to this and would appreciate any help regarding this. ...
53,537,568
Python time comparison format issues with time.strptime function<p>I'm trying to verify the cert expiring in 5 days using the time &amp; datetime lib :</p> <pre><code> print("Got date is &gt;&gt;&gt;&gt;", got_date) expiry_date = time.strptime(got_date["Enddate"], "%Y/%m/%d %H") print(" Expiry date i...
<p>Use <code>datetime.datetime.strptime</code></p> <p><strong>Ex:</strong></p> <pre><code>Enddate = '2019/01/29 00' expiry_date = datetime.datetime.strptime(Enddate, "%Y/%m/%d %H") today = datetime.datetime.now() days_left = today - expiry_date print(days_left) </code></pre>
Python time comparison format issues with time.strptime function
python|python-2.7
0
38
1
53,537,715
53,537,715
0
true
2018-11-29T11:04:28.720Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python time comparison format issues with time.strptime function<p>I'm trying to verify the cert expiring in 5 days using the time &amp; datetime lib :</p> ...
53,538,357
Having Wildcard problems<p>I'm having difficulty using a wildcard in my VBA code.</p> <pre><code>Set OpenWB = Workbooks.Open("C:filename.csv", ReadOnly:=True) With OpenWB.Worksheets(1) iTotSRows = .Range("F" &amp; .Rows.Count).End(xlUp).Row oSourceR = .Range("A2:G" &amp; iTotSRows) End With OpenWB.Close False...
<p>You need to use the <code>Like</code> operator.</p> <pre><code>If (LCase(oCurR(iCC, 2)) = LCase(oSourceR(iSC, 2))) And _ (LCase(oCurR(iCC, 3)) = LCase(oSourceR(iSC, 3))) And _ (LCase(oCurR(iCC, 4)) = LCase(oSourceR(iSC, 4))) And _ (LCase(oCurR(iCC, 5)) Like "*" &amp; LCase(oSourceR(iSC, 5))) Then o...
Having Wildcard problems
excel|vba
0
59
1
53,538,421
53,538,421
0
true
2018-11-29T11:47:40.810Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Having Wildcard problems<p>I'm having difficulty using a wildcard in my VBA code.</p> <pre><code>Set OpenWB = Workbooks.Open("C:filename.csv", ReadOnly:=Tru...
53,533,442
Share UDFs in Multi hiveserver<p>In our production environment,we have multi hiveserver2 for high availibility.User create permenent UDFs by running</p> <pre><code>beeline -u "jdbc:hive2//hs1.name.com" add jar &lt;hdfs://ns:8020/path/udf.jar&gt; create function myfunc as 'com.test.udf.UDF_CLASS' using jar 'hdfs:/...
<pre><code>USE RELOAD FUNCTION; </code></pre> <p>As of HIVE-2573, creating permanent functions in one Hive CLI session may not be reflected in HiveServer2 or other Hive CLI sessions, if they were started before the function was created. Issuing RELOAD FUNCTION within a HiveServer2 or HiveCLI session will allow it to p...
Share UDFs in Multi hiveserver
hive|user-defined-functions
0
296
1
53,538,540
53,538,540
0
true
2018-11-29T06:57:42.383Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Share UDFs in Multi hiveserver<p>In our production environment,we have multi hiveserver2 for high availibility.User create permenent UDFs by running</p> <pr...
53,539,263
The CASE expression with between syntax error<p>Currently I'm working on rewriting old T-SQL procedures and today I find some difficulties.</p> <p>There is a long query set in variable.</p> <pre><code> set @Sql=' .... .... where ('+ case when @p_TypeOfDataZak = 1 then 'cdn.MS_VatToDate(TrN_VatYear, Tr...
<p>After her initialisation the <code>@Sql</code> variable is string containing :</p> <p>if <code>@p_TypeOfDataZak = 1</code> :</p> <pre><code>where ( cdn.MS_VatToDate(TrN_VatYear, TrN_VatMouth, TrN_VatDay) between cdn.MS_CDNDateToDate('+@DateFromv+') and cdn.MS_CDNDateToDate('+@DateTov+') ) </code></pre>...
The CASE expression with between syntax error
sql|sql-server|tsql
0
45
2
53,539,455
53,539,455
0
true
2018-11-29T12:38:13.607Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: The CASE expression with between syntax error<p>Currently I'm working on rewriting old T-SQL procedures and today I find some difficulties.</p> <p>There is ...
53,539,150
Search locations of strings in text file<p>I have a text file (<code>file1</code>) with <strong>rows containing string entries</strong>. The first element of each row corresponds to a label, while all the subsequent entries of each row contain strings. It is possible that same strings may feature at different locations...
<p>The output of <code>np.genfromtxt</code> is an array, so the fact that the number of columns in each row vary means you have to appropriately deal with missing values. You might consider just iterating over the file with <code>csv</code>, but another option would be to just use <code>pd.read_csv</code> like this</p...
Search locations of strings in text file
python|arrays|pandas|numpy
0
73
2
53,539,680
53,539,680
0
true
2018-11-29T12:31:31.543Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Search locations of strings in text file<p>I have a text file (<code>file1</code>) with <strong>rows containing string entries</strong>. The first element of...
53,528,325
Issue after building with importing image to React app<p>I'm importing images and add it to my react app like this:</p> <pre><code>import housePhoto from '../../images/photo/my-house1.png'; class House extends Component { constructor(props) { super(props); } render() { return ( &lt;a href='#'&gt; &...
<p>Problem solved by changing <strong>img</strong> tag:</p> <pre><code>&lt;img src={require('../../images/photo/my-house1.png')} /&gt; </code></pre>
Issue after building with importing image to React app
reactjs|image|webpack|webpack-dev-server|nodemon
0
822
1
53,539,731
53,539,731
0
true
2018-11-28T21:22:44.757Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Issue after building with importing image to React app<p>I'm importing images and add it to my react app like this:</p> <pre><code>import housePhoto from '....
53,520,689
Finding the best way to pull the last 7 days with Impala when datetime is string<p>I am trying to work with a dataset that we started pulling in and of course the "devicereceipttime" is stored as a string, and I cant convince anyone to change it right now. However the "year", "month", "day" and "hour" are broken out i...
<p>I came up with this to satisfy the query:</p> <pre><code>devicereceipttime BETWEEN concat(to_date(now() - interval 7 days), "T00:00:00.000Z") and concat(to_date(now() - interval 1 days), "T23:59:59.999Z") select w.destinationhostname,w.destinationusername, w.destinationprocessname, count(*) as count \ from winwork...
Finding the best way to pull the last 7 days with Impala when datetime is string
impala
0
834
1
53,540,005
53,540,005
0
true
2018-11-28T13:34:58.957Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Finding the best way to pull the last 7 days with Impala when datetime is string<p>I am trying to work with a dataset that we started pulling in and of cours...
53,541,833
JuMP variable declaration: MethodError<p>I'm following the <a href="http://www.juliaopt.org/JuMP.jl/0.18/quickstart.html" rel="nofollow noreferrer">quickstart guide</a> on JuMP.</p> <p>My julia version is 0.7, the code is this:</p> <pre><code>using JuMP m = Model() l = zeros(10) u = ones(10) #@variable(m, x) #@var...
<p>Argh, this is actually really easy:</p> <pre><code>l = zeros(10) u = ones(10) @variable(m, l[idx] &lt;= x[idx = 1:10] &lt;= u[idx]) </code></pre>
JuMP variable declaration: MethodError
julia|julia-jump
0
65
1
53,541,968
53,541,968
0
true
2018-11-29T14:59:25.017Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: JuMP variable declaration: MethodError<p>I'm following the <a href="http://www.juliaopt.org/JuMP.jl/0.18/quickstart.html" rel="nofollow noreferrer">quickstar...
53,497,637
Summing a formula containing a running total in Crystal 10<p>I have searched on other questions similar to this but none seem to be in the same situation. </p> <p>I have a series of transactions in which I am using a running total named <em>TranNumber</em> which resets on the change of the account number. When I sort ...
<p>Resolved this issue by using the formula above and assigning to a variable and placing a <em>counter</em> formula in the details which worked like the below</p> <pre><code>shared numbervar x; If {#TranNumber} = 1 then if {@ProcCode} startswith "1 - " then x := x + 1 </code></pre> <p>I then placed this formula in t...
Summing a formula containing a running total in Crystal 10
crystal-reports|crystal-reports-10
0
64
1
53,543,073
53,543,073
0
true
2018-11-27T10:29:55.187Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Summing a formula containing a running total in Crystal 10<p>I have searched on other questions similar to this but none seem to be in the same situation. </...
53,541,732
Converting string to datetime based on IF Statement<p>I'm trying to write a SQL Query that pulls IT Project change history out of our project management system. </p> <p>The SQL table I'm working with has 3 columns in question. All are string format.</p> <pre><code>**COLUMNNAME** **PREV_VALUE** **CURRENT_VAL...
<p>You need to cast your column prjhstdif.PREV_VALUE to a BIGINT inside your DATEDIFF. See if this query works for you.</p> <pre><code>SELECT prj.[PROJECTID], prj.[TITLE], prj.[OWNERID], prjhst.HISTORYID, prjhstdif.COLUMNNAME, prjhstdif.PREV_VALUE, CASE WHEN prjhstdif.COLUMNNAME =...
Converting string to datetime based on IF Statement
tsql
0
37
1
53,543,398
53,543,398
0
true
2018-11-29T14:54:19.717Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Converting string to datetime based on IF Statement<p>I'm trying to write a SQL Query that pulls IT Project change history out of our project management syst...
53,541,663
Android iOS deep linking, one domain, several apps<p>I'm working on several android and ios apps and I'd prefer deep links like this:<br></p> <pre><code>https://my-domain.com/app1/link1 https://my-domain.com/app1/link2 https://my-domain.com/app2/link1 https://my-domain.com/app2/link2 </code></pre> <p>instead of:<br><...
<p>You can do it the way you want, but if your apps have different database connections, your backend may become a mess.</p> <p>I'd recommend you look into subdomains, like</p> <p><code>https://app1.my-domain.com/link1</code></p>
Android iOS deep linking, one domain, several apps
android|ios|deep-linking
0
60
2
53,544,222
53,544,222
0
true
2018-11-29T14:50:11.103Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Android iOS deep linking, one domain, several apps<p>I'm working on several android and ios apps and I'd prefer deep links like this:<br></p> <pre><code>htt...
53,544,025
spring-boot: can i fix next error in spring-boot 2?<p>i have this code:</p> <pre><code>@RestController @RequestMapping("/user") public class UserController { @Autowired UserService userService; @RequestMapping(method = RequestMethod.GET,value = "/login") public ResponseEntity&lt;User&gt; getUser(@Req...
<p>It looks to me like you need to send the User object as the request body in a POST request. It's not finding the request body because you're using a GET request that's not sending a request body.</p>
spring-boot: can i fix next error in spring-boot 2?
java|mysql|database|spring-boot|get
0
31
1
53,544,273
53,544,273
0
true
2018-11-29T16:56:55.047Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: spring-boot: can i fix next error in spring-boot 2?<p>i have this code:</p> <pre><code>@RestController @RequestMapping("/user") public class UserController ...
53,542,369
How to extract sentences matching 2 words in HTML document that may not have a period<p>I have multiple URLs here that I need to extract sentences with words: <code>live</code> (variants) and <code>work</code>. (with examples of almost working formula and ideal result -- I'm having problems with rows 4, 5,&amp; 6) <a ...
<p>Found the formula: <code>(&gt;|"")[^&lt;&gt;""]*[Ll]iv(e |es|e,|ing).* work.*(?=(&lt;|\.|!|&amp;))</code></p> <p>Then filter out unwanted characters from there</p>
How to extract sentences matching 2 words in HTML document that may not have a period
javascript|regex|google-apps-script|google-sheets
0
49
1
53,544,747
53,544,747
0
true
2018-11-29T15:27:56.957Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to extract sentences matching 2 words in HTML document that may not have a period<p>I have multiple URLs here that I need to extract sentences with words...
53,540,819
Is there any way to check who execute query?<p>I have db on Azure. In Query Performance Insights every day I get same query in top 5 long running queries. It is <code>SELECT Id FROM MyTable</code> query.</p> <p>I thought it can be my code, so I have added <code>Include</code> to include records from <code>MyTable</cod...
<p>Going by <a href="https://docs.microsoft.com/en-us/sql/azure-data-studio/sql-server-profiler-extension?view=sql-server-2017" rel="nofollow noreferrer">this page</a> it seems you should be able to run a trace on Azure databases. Assuming proper filtering options it might help you out where the query comes from or at...
Is there any way to check who execute query?
c#|sql|entity-framework|azure|database-performance
0
54
1
53,544,910
53,544,910
0
true
2018-11-29T14:05:50.353Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is there any way to check who execute query?<p>I have db on Azure. In Query Performance Insights every day I get same query in top 5 long running queries. It...
53,545,199
How do I pull an extra row when pulling data from between dates?<p>I'd like to pull another row with the nearest date before the beginning of the following query from a sqlite db:</p> <p><code>select * from inv WHERE TIME BETWEEN date1 AND date2</code></p> <p>Is there a simple addition to the query or do I need to pu...
<p>Use <code>UNION</code> for the row with the maximum <code>TIME</code> that is less than <code>date1</code>:</p> <pre><code>select * from inv WHERE TIME BETWEEN date1 AND date2 UNION select * from inv WHERE TIME = (select MAX(TIME) from inv WHERE TIME &lt; date1) </code></pre> <p>If there would be more than 1 addit...
How do I pull an extra row when pulling data from between dates?
sqlite
0
23
1
53,545,289
53,545,289
0
true
2018-11-29T18:13:39.977Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I pull an extra row when pulling data from between dates?<p>I'd like to pull another row with the nearest date before the beginning of the following q...
53,527,396
in bootstrap popovers, how to obtain content from the results of a function<p>Maybe I'm not used to using functions, but I'm having trouble getting bootstrap popovers to return a string derived from a function. Can anyone help please?</p> <pre><code>$(".person").popover({ title: 'Default title value', ...
<p>I abandoned the idea of using xml and just used arrays instead:</p> <pre><code>$(".person").popover({ title: function(){ var thisID = $(this).attr('id');console.log(thisID); thisID = thisID.replace("num","");console.log(thisID); return arrNames[thisID]; }, ...
in bootstrap popovers, how to obtain content from the results of a function
function|bootstrap-popover
0
35
1
53,545,532
53,545,532
0
true
2018-11-28T20:13:49.090Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: in bootstrap popovers, how to obtain content from the results of a function<p>Maybe I'm not used to using functions, but I'm having trouble getting bootstrap...
53,537,653
Web Service Task in SSIS Error Input tab error<p>I am trying to set up a web Service Task in SSIS,However after setting up the connection properties and then clicking on the input tab to view methods i get this error <strong>(TITLE: Web Service Task Could not read the Web Services Description Language (WSDL) file. The ...
<p>The link goes to an invalid site which has no XML. I tried using it too when I was learning, the site is not there anymore.</p> <p>Use this instead: <a href="http://holidaywebservice.com/HolidayService_v2/HolidayService2.asmx?WSDL" rel="nofollow noreferrer">http://holidaywebservice.com/HolidayService_v2/HolidayServ...
Web Service Task in SSIS Error Input tab error
web-services|ssis|ssis-2012
0
329
1
53,545,592
53,545,592
0
true
2018-11-29T11:08:40.727Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Web Service Task in SSIS Error Input tab error<p>I am trying to set up a web Service Task in SSIS,However after setting up the connection properties and then...
53,542,558
How to catch ''unable to instantiate application" errors?<p>We recently encountered an error on Android API 28 devices:</p> <blockquote> <p>E/AndroidRuntime: FATAL EXCEPTION: main Process: com.my.company, PID: 18245 java.lang.RuntimeException: Unable to instantiate application com.my.company.MainApplication: jav...
<p>It appears that Google is doing this automatically and the results are viewable in the Google Play Console in the "ANRs &amp; crashes" section:<br> <a href="https://i.stack.imgur.com/VWmvE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VWmvE.png" alt="enter image description here"></a> <a href="h...
How to catch ''unable to instantiate application" errors?
android|crash-dumps
0
74
1
53,545,610
53,545,610
0
true
2018-11-29T15:37:28.767Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to catch ''unable to instantiate application" errors?<p>We recently encountered an error on Android API 28 devices:</p> <blockquote> <p>E/AndroidRunti...
53,545,360
Defining DataGridTemplateColumn.Header is causing "Specified element is already the logical child of another element. Disconnect it first" exception<p>I have an MVVM WPF application. This application has two datagrids.</p> <p>One of them has a DataGridTemplateColumn among others. This DataGridTemplateColumn is causing...
<p>I have solved it. I have changed the way to define the DataGridTemplateColumn header by changing:</p> <pre><code>&lt;dg:DataGridTemplateColumn.Header&gt; &lt;StackPanel Orientation="Horizontal" &gt; &lt;Image RenderOptions.BitmapScalingMode="NearestNeighbor" Width="32" Height="32" ...
Defining DataGridTemplateColumn.Header is causing "Specified element is already the logical child of another element. Disconnect it first" exception
c#|wpf|mvvm|visual-studio-2008|.net-3.5
0
39
1
53,545,705
53,545,705
0
true
2018-11-29T18:24:39.580Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Defining DataGridTemplateColumn.Header is causing "Specified element is already the logical child of another element. Disconnect it first" exception<p>I have...
53,532,721
PARSE Rest API curl command to get data from back4app application<p>I am trying to have an output of my installation id for a specific timeframe, but I always have <code>{"code":1,"message":"Internal server error."}</code> returned by REST API via cURL on my back4app.com app.</p> <p>I was wondering if there is somethi...
<p>Instead:</p> <pre><code>"deviceType":{"ios"}, </code></pre> <p>Try it:</p> <pre><code>"deviceType":"ios", </code></pre>
PARSE Rest API curl command to get data from back4app application
json|rest|parse-platform|back4app
0
328
1
53,546,169
53,546,169
0
true
2018-11-29T05:57:32.123Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: PARSE Rest API curl command to get data from back4app application<p>I am trying to have an output of my installation id for a specific timeframe, but I alway...
53,544,599
ifelse value specified amount less than other value then<p>Apologies all, I'm new to R and am stumped on something that I am sure is simple!</p> <p>I have this working code: <code>lr5yr$"LR_3Y_&gt;10%_over_5Y" &lt;- ifelse(lr5yr$lr &gt;= 0.65 &amp; lr5yr$lr - lr5yr$lr5 &lt; lr5yr$lr ,"Y","N")</code></p> <p>Effectivel...
<p>I'm sure that what I want could be achieved with a slight modification to my formula above, however I needed a quick fix so managed to come up with a workaround.</p> <p>I created a new column using the following <code>lr5yr$"LR_Diff" &lt;- lr5yr$lr - lr5yr$lr5</code> and then derived my require Y/N flag with the fo...
ifelse value specified amount less than other value then
if-statement|sum|equals
0
19
1
53,546,275
53,546,275
0
true
2018-11-29T17:32:13.203Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ifelse value specified amount less than other value then<p>Apologies all, I'm new to R and am stumped on something that I am sure is simple!</p> <p>I have t...
53,546,071
Alignment in line<pre><code> &lt;section class="site-hero site-hero-innerpage overlay" data-stellar-background-ratio="0.5" style="background-image: url(images/big_image_1.jpg);"&gt; &lt;div class="container"&gt; &lt;div class="row align-items-center site-hero-inner justify-content-center"&gt; ...
<p>You need another grid with in the main grid.</p> <p>Example:</p> <pre><code>&lt;!-- Main Grid --&gt; &lt;div class="row"&gt; &lt;!-- Left Box --&gt; &lt;div class="col-lg-8"&gt;[ Contents Here ]&lt;/div&gt; &lt;!-- Right Box --&gt; &lt;div class="col-lg-4"&gt; &lt;!-- Cards Rows --&gt; ...
Alignment in line
javascript|html|css|bootstrap-4
0
47
2
53,546,667
53,546,667
0
true
2018-11-29T19:16:38.330Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Alignment in line<pre><code> &lt;section class="site-hero site-hero-innerpage overlay" data-stellar-background-ratio="0.5" style="background-image: ur...
53,529,164
URL Breaks in prestashop1.6<p>I downloaded the theme. The category is added as the menu in navigation bar.</p> <p>When I click on menu. It takes The requested URL ---- was not found on this server. How to fix this.. I dont know where the htaccess file in prestashop. Please guide me to fix this. Thanks in advance</p> ...
<p>Check settings in Back Office</p> <p><a href="http://doc.prestashop.com/plugins/servlet/mobile#content/view/20578464" rel="nofollow noreferrer">http://doc.prestashop.com/plugins/servlet/mobile#content/view/20578464</a></p>
URL Breaks in prestashop1.6
prestashop-1.6
0
43
2
53,548,154
53,548,154
0
true
2018-11-28T22:38:20.827Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: URL Breaks in prestashop1.6<p>I downloaded the theme. The category is added as the menu in navigation bar.</p> <p>When I click on menu. It takes The request...
53,539,847
Append Query - Multiple Tables into Single Table<p>I have 8 queries all with the same design etc to make a new table but for different criteria's and would like to append them into one single table. </p> <p>Is there any way with VBA code or possibly UNION to do this?</p> <pre><code>SELECT tbl_SCCMQ.CONTRACT_ACCOUNT_N...
<p>your question looks like you know how to solve the problem.</p> <p>Note: queries 1 to 8 must have the same number of fields and datatypes must be consistent for each field's ordinal position (asserted in your question.)</p> <p>SQL syntax to create a new table (Data) from the queries:</p> <pre><code>select * INTO ...
Append Query - Multiple Tables into Single Table
ms-access|vba|append|ms-access-2010
0
1,795
1
53,550,371
53,550,371
0
true
2018-11-29T13:12:23.240Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Append Query - Multiple Tables into Single Table<p>I have 8 queries all with the same design etc to make a new table but for different criteria's and would l...
53,518,157
How to use sbt packageBin with multiple modules in order<p>I have a sbt project with multiple sub modules which look like this:</p> <pre><code>--\ root -- module 1 -- module 2 </code></pre> <p>Using packageBin, I can get two zip files: <strong>module1.zip</strong> and <strong>module2.zip</strong>.</p> <p>T...
<p>i just pack all sub modules' files into one zip by adding a new module named pack. </p>
How to use sbt packageBin with multiple modules in order
sbt|package
0
271
1
53,550,689
53,550,689
0
true
2018-11-28T11:14:20.197Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use sbt packageBin with multiple modules in order<p>I have a sbt project with multiple sub modules which look like this:</p> <pre><code>--\ root ...
53,550,543
How do I properly set my background position when working with a sprited image?<p>I am working on the nav element of my website and I wanted to add some images as clickable links in a vertical list that could be used as my navigation element:</p> <pre><code>&lt;nav&gt; &lt;ul style="display:inline"&gt; &lt...
<p>You need to specify <code>background-position</code> the same way as if you specify <code>left</code> and <code>top</code> for the element with <code>position: relative</code>.</p> <p>E. g. if you need to move the element up for 10px you'd set <code>top: -10px</code>.<br> The same way you move the background: </p> ...
How do I properly set my background position when working with a sprited image?
css|sprite
0
30
1
53,550,768
53,550,768
0
true
2018-11-30T01:51:16.570Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I properly set my background position when working with a sprited image?<p>I am working on the nav element of my website and I wanted to add some imag...
53,550,200
How can I use duplicated loop in React.js<p>How can I use duplicated loop in React.js?</p> <p>I have array in array and I want to use it.</p> <p>I have an array. And Objects are in the array. And the other array is in these Objects.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" dat...
<p>Use another <strong>map()</strong> inside.</p> <pre><code>const information = this.state.myInformation.map( ({name, age, interests}) =&gt; ( &lt;div&gt;{name}&lt;/div&gt; &lt;div&gt;{age}&lt;/div&gt; &lt;div&gt;{interests.map(interest =&gt; &lt;div&gt;{interest}&lt;/div&gt;)}&lt;/div&gt; ) ) </code>...
How can I use duplicated loop in React.js
javascript|reactjs|ecmascript-6
0
31
2
53,550,882
53,550,882
0
true
2018-11-30T02:03:50.830Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I use duplicated loop in React.js<p>How can I use duplicated loop in React.js?</p> <p>I have array in array and I want to use it.</p> <p>I have an ...
53,551,267
Why get post meta single parameter isn't working if key is empty<p>I wanted to get all the post meta using this code:</p> <pre><code>$metas = get_post_meta( $post_id, '', true ); </code></pre> <p>The code above will output an array that looks something like:</p> <pre><code>array( 'sample_key1' =&gt; array( ...
<p>The <a href="https://developer.wordpress.org/reference/functions/get_post_meta/#source" rel="nofollow noreferrer">get_post_meta()</a> function using <code>get_metadata()</code> function. And according to documentation <a href="https://developer.wordpress.org/reference/functions/get_metadata/#parameters" rel="nofollo...
Why get post meta single parameter isn't working if key is empty
php|wordpress|wordpress-theming
0
40
2
53,551,372
53,551,372
0
true
2018-11-30T04:29:09.217Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why get post meta single parameter isn't working if key is empty<p>I wanted to get all the post meta using this code:</p> <pre><code>$metas = get_post_meta(...
53,499,205
Passing HashTable to PowerShell Runbook<p>I think, I read all related posts, still cannot make this work. I have an Azure Runbook that needs a HashTable parameter passed to a provisioning script. This is used later by the <code>Apply-PnPTemplate</code> function.</p> <p>Parameters declared in the script as</p> <pre><c...
<p>I have experienced the same issue, seams that it always treats the input as string.</p> <p>I cannot figure out the reason, but here is a workaround: pass a fake hashtable(string type), then in the runbook, convert the string to hashtable.</p> <p>Demo code as below, hope it helps.</p> <pre><code>param([string]$mys...
Passing HashTable to PowerShell Runbook
azure-powershell|azure-automation
0
1,072
2
53,551,765
53,551,765
0
true
2018-11-27T11:59:32.190Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Passing HashTable to PowerShell Runbook<p>I think, I read all related posts, still cannot make this work. I have an Azure Runbook that needs a HashTable para...
53,537,920
Spring OAuth 1.0 support: how to verify OAuth request?<p>I have to support a legacy API that sends OAuth 1.0 POST request to my server in one-legged scenario:</p> <p>I get a request with the bunch of OAuth-parameters which I want to verify (in the first place) with a secret stored on server.</p> <p>Here is what I hav...
<p>OK, finally I found Spring's implementation of the OAuth 1.0 algorithm. Basically the job is done in <a href="https://docs.spring.io/spring-security/oauth/apidocs/org/springframework/security/oauth/provider/filter/OAuthProviderProcessingFilter.html" rel="nofollow noreferrer">OAuthProviderProcessingFilter</a></p> <p...
Spring OAuth 1.0 support: how to verify OAuth request?
java|spring|oauth
0
1,596
1
53,552,711
53,552,711
0
true
2018-11-29T11:23:27.910Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Spring OAuth 1.0 support: how to verify OAuth request?<p>I have to support a legacy API that sends OAuth 1.0 POST request to my server in one-legged scenario...
53,528,583
Pandas read and parse Excel data that shows as a datetime, but shouldn't be a datetime<p>I have a system I am reading from that implemented a time tracking function in a pretty poor way - It shows the tracked working time as [hh]:mm in the cell. Now this is problematic when attempting to read this data because when yo...
<p>Here is where I ended and it does work:</p> <pre><code>for i in range(len(df['Planned working time'])) : pwt = df['Planned working time'][i] if len(str(df['Planned working time'][i]).split(' ')) &gt; 1 : if str(str(pwt).split(' ')[0]).split('-')[0] == '1900' : workint = int(24)*int(str(s...
Pandas read and parse Excel data that shows as a datetime, but shouldn't be a datetime
python|pandas
0
523
3
53,554,160
53,554,160
0
true
2018-11-28T21:44:28.203Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pandas read and parse Excel data that shows as a datetime, but shouldn't be a datetime<p>I have a system I am reading from that implemented a time tracking f...
53,554,834
how to pass dynamic query string in SEO url<p>I'm using this query string URL for detail page "detail.php?id=860&amp;c=house&amp;t=engineer". It will redirect to "detail/860/house/engineer" using rewrite rule.</p> <p>sometimes I have to pass an extra parameter in detail page but rewrite doesn't accept those query stri...
<p>You have to use it something like this if you want to use 5th parameter, <code>detail/860/house/engineer/&lt;dynamic param&gt;/&lt;your value&gt;</code></p> <pre><code>RewriteRule ^detail/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)$ detail.php?id=$1&amp;c=$2&amp;t=$3&amp;$4=$5 [L,NC] </code></pre>
how to pass dynamic query string in SEO url
php|.htaccess|mod-rewrite
0
523
1
53,555,515
53,555,515
0
true
2018-11-30T09:38:30.103Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to pass dynamic query string in SEO url<p>I'm using this query string URL for detail page "detail.php?id=860&amp;c=house&amp;t=engineer". It will redirec...
53,546,312
How to deploy a spring boot web application on the embedded tomcat server, from the spring boot itself<p>I have a spring boot project and I want to deploy the project on the embedded spring tomcat, since the server (suse-linux) does not have an application container. How can I do this? Is a .war or un.jar used for it? ...
<p>Providing the spring-boot-starter-web package with the correct configuration (maybe check the <a href="https://spring.io/guides/gs/spring-boot/" rel="nofollow noreferrer">Basic guide</a> from Spring Boot) your application will run in an embedded Tomcat application server. When building as a jar you should be able to...
How to deploy a spring boot web application on the embedded tomcat server, from the spring boot itself
spring|spring-boot|tomcat
0
2,307
1
53,555,732
53,555,732
0
true
2018-11-29T19:35:25.897Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to deploy a spring boot web application on the embedded tomcat server, from the spring boot itself<p>I have a spring boot project and I want to deploy th...
53,555,587
JavaScript gives error while loading image to img<p>I am trying to dynamically load images from my project to img elements in a view but when I run the application, it gives me a not found (404) error. </p> <p>This is the structure of the project: <a href="https://i.stack.imgur.com/gy2ok.png" rel="nofollow noreferrer"...
<p>Following @Errorname's answer, I tried <code>..</code> instead of <code>.</code> and it worked. </p>
JavaScript gives error while loading image to img
javascript|asp.net-mvc|image
0
45
3
53,556,054
53,556,054
0
true
2018-11-30T10:23:52.737Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: JavaScript gives error while loading image to img<p>I am trying to dynamically load images from my project to img elements in a view but when I run the appli...
53,499,136
How can i share data b/w fragments using interface.i want the on button click Edit Text's data in fragment1 to be shown in the text view of fragment2<p>Main class is </p> <pre><code>public class MainActivity extends AppCompatActivity implements TabLayout.OnTabSelectedListener, MyInterface { ViewPager vp; TabL...
<p>This <a href="https://www.journaldev.com/14207/android-passing-data-between-fragments#comment-45206" rel="nofollow noreferrer">https://www.journaldev.com/14207/android-passing-data-between-fragments#comment-45206</a> helped me sort the issue.</p>
How can i share data b/w fragments using interface.i want the on button click Edit Text's data in fragment1 to be shown in the text view of fragment2
java|android|android-studio|android-fragments|interface
0
42
3
53,556,311
53,556,311
0
true
2018-11-27T11:56:04.960Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can i share data b/w fragments using interface.i want the on button click Edit Text's data in fragment1 to be shown in the text view of fragment2<p>Main ...
53,547,390
Replicating a highcharts type<p>I have included a Highcharts chart embed on my website. Now I would like to create many additional charts using other series data. However, I would like all of these additional charts have exactly the same styling and be the same type as my chart1. The only things I will have to change i...
<p>You can use <code>Highcharts.merge</code> method to extend default options (used in each chart) by particular chart options (series, subtitle). Check the demo posted below.</p> <p>HTML:</p> <pre><code>&lt;script src="https://code.highcharts.com/highcharts.js"&gt;&lt;/script&gt; &lt;div id="container1"&gt;&lt;/div&...
Replicating a highcharts type
javascript|highcharts
0
31
1
53,556,452
53,556,452
0
true
2018-11-29T20:51:46.757Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Replicating a highcharts type<p>I have included a Highcharts chart embed on my website. Now I would like to create many additional charts using other series ...
53,556,662
header and footer column width problem - joomla<p>I want to style the header after the menu to be the same as the header before the menu. </p> <p>Here is the page: <a href="https://www.nikolay100.com/en/?option=com_rspagebuilder&amp;view=page&amp;id=6" rel="nofollow noreferrer">https://www.nikolay100.com/en/?option=co...
<ul> <li>Language switcher: the class 'col-md-4' makes the width 33.33%. The html (with inline styling) will have the wanted result.</li> </ul> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint...
header and footer column width problem - joomla
html|css|responsive-design|joomla3.0
0
58
1
53,557,957
53,557,957
0
true
2018-11-30T11:28:02.503Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: header and footer column width problem - joomla<p>I want to style the header after the menu to be the same as the header before the menu. </p> <p>Here is th...
53,541,221
Print object to table onClick - doesnt print until clicked twice<p>Basically what I want to do is have the user click a button to print an object that I've gotten from a web service into a table. This works somewhat, but I have to click the button twice to make it print. More detail: The button uses <code>onClick={thi...
<p>After some digging - I found the issue to be common with so many different suggested fixes - none of which worked. </p> <p>I found that <code>this.setState</code> wasn't causing the table to actually update/render. By replacing with <code>this.forceUpdate();</code> the table now works correctly. This isn't an idea ...
Print object to table onClick - doesnt print until clicked twice
javascript|reactjs|material-ui
0
37
1
53,558,516
53,558,516
0
true
2018-11-29T14:26:47.973Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Print object to table onClick - doesnt print until clicked twice<p>Basically what I want to do is have the user click a button to print an object that I've g...
53,558,641
Adding variables to a dictionary Swift<p>I would like to define a constant string variable as a variable in class.(More precisely for both key and value).</p> <p>The example I'm working on is as follows.This code is in a class called JsonHandler.</p> <pre><code>enum JsonTcpStatus: Int { case JSON_GET = 4 } let J...
<p>Replace </p> <pre><code>let getJSON: String = { </code></pre> <p>with</p> <pre><code>lazy var getJSON: String = { </code></pre> <p>To be able to access self properties inside that String</p>
Adding variables to a dictionary Swift
swift
0
27
1
53,558,705
53,558,705
0
true
2018-11-30T13:37:03.993Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Adding variables to a dictionary Swift<p>I would like to define a constant string variable as a variable in class.(More precisely for both key and value).</p...
53,558,821
Node js PgSQL promise not return value from query<p>I've followed by PgSql Node js docs and try to use query with Promise but it's not working, but works fine with callback... How i send query</p> <pre><code>import { Pool } from 'pg'; import { dbConnectLink } from '../../config'; const pool = new Pool({ connectio...
<p>You shouldn't use brackets:</p> <pre><code>let query = (text, params) =&gt; pool.query(text, params) </code></pre> <p>The difference is explained <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions#Basic_syntax" rel="nofollow noreferrer">here</a>.</p>
Node js PgSQL promise not return value from query
node.js|postgresql
0
30
1
53,559,356
53,559,356
0
true
2018-11-30T13:49:05.920Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Node js PgSQL promise not return value from query<p>I've followed by PgSql Node js docs and try to use query with Promise but it's not working, but works fin...
53,559,563
NodeJS server no http for Redis subscription<p>I want to develop a process that only subscribes to a Redis channel and stay alive to handle received messages.</p> <p>I wrote the following code:</p> <pre><code>var redis = require("redis"); var sub = redis.createClient({host: process.env.REDIS_HOST}); console.log('sub...
<p>You're not subscribing to a channel:</p> <pre><code>sub.subscribe('channel'); </code></pre>
NodeJS server no http for Redis subscription
node.js|redis|publish-subscribe
0
36
2
53,559,953
53,559,953
0
true
2018-11-30T14:36:43.470Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: NodeJS server no http for Redis subscription<p>I want to develop a process that only subscribes to a Redis channel and stay alive to handle received messages...
53,436,918
How merge master with newBranch, without loss deleted directory on newBranch<ol> <li>did <code>git checkout -b newBranch</code> from <code>master</code></li> <li>on <code>newBranch</code> delete some redundant directory but needed on <code>master</code></li> <li>pushing some commits on <code>newBranch</code></li> <li>t...
<p>I solved this problem with hard copy/past the previously deleted directory from newBranch.</p> <ol> <li>copy deleted directory on the master</li> <li>paste it on the newBranch</li> <li>make commit on the newBranch</li> <li>checkout to master</li> <li>merge master with newBranch</li> </ol> <p>thats all.</p>
How merge master with newBranch, without loss deleted directory on newBranch
git|git-merge
0
27
1
53,559,986
53,559,986
0
true
2018-11-22T19:12:59.777Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How merge master with newBranch, without loss deleted directory on newBranch<ol> <li>did <code>git checkout -b newBranch</code> from <code>master</code></li>...
53,517,043
React styling/component not showing (MS Fabric UI)<p>I have a list that I want to style with Microsoft fabrics react "list" component as seen here:</p> <p><a href="https://developer.microsoft.com/en-us/fabric#/components/list" rel="nofollow noreferrer">https://developer.microsoft.com/en-us/fabric#/components/list</a><...
<p>In <a href="https://developer.microsoft.com/en-us/fabric#/components/list" rel="nofollow noreferrer"><em>Rendering ghost items while the list is scrolling</em> example</a> via the following reference: </p> <p><code>imports import './List.Ghosting.Example.scss';</code> </p> <p>the expected styling is applied per ...
React styling/component not showing (MS Fabric UI)
javascript|reactjs|typescript|office-ui-fabric
0
561
1
53,560,320
53,560,320
0
true
2018-11-28T10:16:05.640Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: React styling/component not showing (MS Fabric UI)<p>I have a list that I want to style with Microsoft fabrics react "list" component as seen here:</p> <p><...
53,560,177
I can't get the answer to the query correctly MongoDB - Find method<p>My JSON:</p> <pre><code> { &quot;user_id&quot; : &quot;1000&quot; , &quot;boxes&quot; : [ { &quot;box_id&quot; : &quot;12345&quot;, &quot;box_name&quot; : &quot;Box 3&quot;, &quot;items&quot; : ...
<p>According to <a href="https://docs.mongodb.com/manual/reference/operator/projection/positional/" rel="nofollow noreferrer">the documentation for the positional $ operator</a>, you can't use the $ with multiple conditions. You have to use <code>$elemMatch</code> instead to work around the limitation.</p> <blockquot...
I can't get the answer to the query correctly MongoDB - Find method
arrays|node.js|mongodb|express|mongoose
0
33
1
53,560,532
53,560,532
0
true
2018-11-30T15:15:12.787Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I can't get the answer to the query correctly MongoDB - Find method<p>My JSON:</p> <pre><code> { &quot;user_id&quot; : &quot;1000&quot; , &quot;box...
53,538,084
How (why) definition of Namespace by ServiceContract affects functionality<p>I have a ServiceContract like this:</p> <pre><code> [ServiceContract] public interface IHttpsServer { [OperationContract] [XmlSerializerFormat] void Post(SomeEvent e); } </code></pre> <p>Event defined like this:</p> <pre...
<p>Well, I suppose, I've found the reason of this behavior.</p> <p>First of all I've implemented <code>IDispatchMessageInspector</code>. This gave me possibility to trace requests from the client. Requests from client are look like this:</p> <pre><code>+ request {&lt;s:Envelope xmlns:s="http://schemas.xmlsoap....
How (why) definition of Namespace by ServiceContract affects functionality
c#|wcf|wsdl
0
43
1
53,560,741
53,560,741
0
true
2018-11-29T11:32:54.133Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How (why) definition of Namespace by ServiceContract affects functionality<p>I have a ServiceContract like this:</p> <pre><code> [ServiceContract] public...
53,559,584
How to make Unity button to change certain content in a ScrollView<p>In my training app, I have two scrollviews, one with 4 buttons and one with 16 buttons, which are also defined as sprites in my UI Manager. My question is how to make a button1 from the first scrollview on click to display only the first 4 buttons(spr...
<p>Rather than a list of 16 buttons, have 4 lists of 4 buttons. Then each button in your first panel displays the entirety of <em>one</em> list.</p> <p>Heck, you don't even need to rise the same ScrollView. You could have 4 scroll views and the buttons in the first set just enable one of those 4 secondary scroll views...
How to make Unity button to change certain content in a ScrollView
c#|unity3d
0
36
1
53,560,902
53,560,902
0
true
2018-11-30T14:38:09.063Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to make Unity button to change certain content in a ScrollView<p>In my training app, I have two scrollviews, one with 4 buttons and one with 16 buttons, ...
53,549,026
Can I have nested braces {{row.{{Columns[i].field}}}} in one *ngfor angular 6?<pre><code>&lt;*ngFor="let row of Rows; let i = index"&gt; </code></pre> <p>I have two arrays and I need to show with columns order so I will </p> <p><code>get{{Columns[i].field}} then {{row.{{Columns[i].field}}}}</code></p> <p>Is that ap...
<p>i had to make two ngfor to make it works </p> <pre><code> `&lt;tr *ngFor="let row of Rows"&gt; &lt;td *ngFor="let column of Columns"&gt; {{row[column.field]}} &lt;/td&gt; &lt;/tr&gt;` </code></pre>
Can I have nested braces {{row.{{Columns[i].field}}}} in one *ngfor angular 6?
angular|angular6|angular7
0
64
1
53,561,144
53,561,144
0
true
2018-11-29T23:19:37.117Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can I have nested braces {{row.{{Columns[i].field}}}} in one *ngfor angular 6?<pre><code>&lt;*ngFor="let row of Rows; let i = index"&gt; </code></pre> <p>I...
53,480,151
Getting the namespace name from JMS message<p>I'm using Apache camel JMS, jaxb and dozer mapping. I need an approach to get the namespace attribute name</p> <p>For instance</p> <pre><code>&lt;webrequest xmlns:service = "http:xxx/yyy/"&gt; </code></pre> <p>...</p> <p>Need to grab the term service from this JMS messa...
<p>Your question is very unclear (for example in what context you need to get the namespace value with what technology), you should check out the <a href="https://stackoverflow.com/help/how-to-ask">How-to</a> about asking questions. </p> <p>However, I give it a try to answer without any details. In general you can sel...
Getting the namespace name from JMS message
java|jaxb|apache-camel|dozer
0
65
1
53,561,196
53,561,196
0
true
2018-11-26T11:29:06.980Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Getting the namespace name from JMS message<p>I'm using Apache camel JMS, jaxb and dozer mapping. I need an approach to get the namespace attribute name</p> ...
53,561,784
A pythonic way to find all indexes of one sequence in the other one?<p>Given two lists <code>f=['a','b','c','d']</code> and <code>g=['a','c']</code>, I can produce <code>[0,2]=indexes(f,g)</code> with</p> <pre><code>def indexes(f,g): return [f.index(x) for x in g] </code></pre> <p>is there a better way?</p> <p><...
<p>You can use <a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.where.html" rel="nofollow noreferrer"><code>np.where</code></a> after <a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.in1d.html" rel="nofollow noreferrer"><code>np.1d</code></a> to get the intersecting indices:</p> ...
A pythonic way to find all indexes of one sequence in the other one?
python|pandas|numpy
0
65
1
53,561,835
53,561,835
0
true
2018-11-30T16:55:15.557Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: A pythonic way to find all indexes of one sequence in the other one?<p>Given two lists <code>f=['a','b','c','d']</code> and <code>g=['a','c']</code>, I can p...
53,562,002
How do you await each iteration of a filter loop instead of the completion of an entire loop?<p>Basically I'm trying to await each iteration of the filter loop to only get the object properties of record, newAnalyte, and userId, which all require awaited async methods that take time to process the data. </p> <p>The ot...
<p>In this case <code>filter</code> will always receive promises, which are truthy values. Option would be to use <code>Promise.all</code> and then filter by index. Of use <code>for of</code>.</p> <pre><code>Promise.all(reqs.map(async (item, k) =&gt; { // make your requests // return true or false })).then(...
How do you await each iteration of a filter loop instead of the completion of an entire loop?
javascript
0
44
1
53,562,052
53,562,052
0
true
2018-11-30T17:11:30.520Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do you await each iteration of a filter loop instead of the completion of an entire loop?<p>Basically I'm trying to await each iteration of the filter lo...
53,561,344
Calling class method nested in S3 bucket method<p>I'm working on an Angular component. In a method in the typescript file I'm accessing an AWS S3 object with the headObject() method. In that method's callback function I'd like to be able to call the outer method again if the headObject() method fails. It seems like I s...
<p>Figured it out. I used the "fat arrow" operator to reformat the callback function into a lambda function, as exemplified here: <a href="https://stackoverflow.com/a/48808669/5943974">https://stackoverflow.com/a/48808669/5943974</a></p>
Calling class method nested in S3 bucket method
angular|typescript|amazon-s3|this
0
33
1
53,562,146
53,562,146
0
true
2018-11-30T16:25:14.153Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Calling class method nested in S3 bucket method<p>I'm working on an Angular component. In a method in the typescript file I'm accessing an AWS S3 object with...
53,532,105
NFC authentication<p>I am getting the uid of a NFC tag by sending and receiving APDUs from the card. Storing them in a database. While loggin in I am comparing the logged in user tag id with the database for authentication. That works but Is this the right way of NFC authentication as per standard security policy? I a...
<p>Using the UID for authentication is not a good idea, since it is world-readable and anyone could copy it and use it to program one of the cards that allow it. Some contactless devices generate a different random UID every time they are powered up.</p> <p>There are lots of alternatives, like these two quite simplist...
NFC authentication
authentication|nfc|pki|lib-nfc
0
321
1
53,562,468
53,562,468
0
true
2018-11-29T04:57:05.300Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: NFC authentication<p>I am getting the uid of a NFC tag by sending and receiving APDUs from the card. Storing them in a database. While loggin in I am compari...
53,505,193
How can I set Microsoft Identity to respect default file names<p>I am attempting to migrate from Forms Authentication / Membership to asp.net identity.</p> <p>One issue I have encountered: If I set the LoginPath to "/account/", logged out users end up with an infinite redirect loop (not really; it keeps extending the ...
<p>Voting to close my own question as a duplicate. For reference, this can be resolved by modifying the root web.config as follows:</p> <pre><code>&lt;urlMappings&gt; &lt;add url="~/account/" mappedUrl="~/account/default.aspx"/&gt; &lt;/urlMappings&gt; </code></pre> <p>Somehow I completely failed to find <a href="...
How can I set Microsoft Identity to respect default file names
c#|webforms|asp.net-identity
0
43
1
53,563,058
53,563,058
0
true
2018-11-27T17:36:53.983Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I set Microsoft Identity to respect default file names<p>I am attempting to migrate from Forms Authentication / Membership to asp.net identity.</p> ...
53,563,204
How do you check if Python turtles overlap?<p>I made a game in Python with the turtle module. I want to stop the turtles overlapping or, if they do overlap, move one of them to a different position. How do I do this?</p>
<p>You can use:</p> <pre><code>if turtle_1.distance(turtle_2) &lt;= overlap: # your code here </code></pre> <p>where <code>overlap</code> is 1 for right on top to 10 for just touching.</p>
How do you check if Python turtles overlap?
python|turtle-graphics
0
569
1
53,563,377
53,563,377
0
true
2018-11-30T18:46:34.377Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do you check if Python turtles overlap?<p>I made a game in Python with the turtle module. I want to stop the turtles overlapping or, if they do overlap, ...
53,399,928
Arquillian DBunit Transaction<p>I am doing POC with TomEE microprofile and Arquillian DBunit. I referred the program from <a href="https://github.com/apache/tomee/blob/master/examples/arquillian-jpa/src/test/java/org/superbiz/arquillian/test/persistence/PersistenceTest.java" rel="nofollow noreferrer">https://github.co...
<p>I haven't added datasource property for testing. after adding properly . it works good. changes are in arquillian.xml</p> <pre><code>&lt;extension qualifier="persistence"&gt; &lt;property name="defaultDataSource"&gt;openejb:Resource/mpdatasource&lt;/property&gt; &lt;property name="defaultTransactionMode"&gt...
Arquillian DBunit Transaction
jakarta-ee|transactions|jboss-arquillian|apache-tomee|dbunit
0
265
1
53,563,542
53,563,542
0
true
2018-11-20T19:10:08.267Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Arquillian DBunit Transaction<p>I am doing POC with TomEE microprofile and Arquillian DBunit. I referred the program from <a href="https://github.com/apache...
53,562,129
Which sklearn mixin declares fit and transform methods?<p>I cannot find which <code>sklearn</code> mixin class declares the <code>fit</code> and <code>transform</code> methods.</p> <p><a href="https://scikit-learn.org/stable/modules/generated/sklearn.base.TransformerMixin.html" rel="nofollow noreferrer">TransformerMix...
<p>The base classes are just that, <strong>Python</strong> base classes.</p> <p>As we are in Python, we don't need to declare all the different common interfaces, but there is common code that we can factor in them:</p> <ul> <li><p><code>TransformerMixin</code> declares <code>fit_transform</code>, but it's a convenie...
Which sklearn mixin declares fit and transform methods?
scikit-learn
0
327
1
53,563,686
53,563,686
0
true
2018-11-30T17:20:52.340Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Which sklearn mixin declares fit and transform methods?<p>I cannot find which <code>sklearn</code> mixin class declares the <code>fit</code> and <code>transf...
53,563,083
Applying the rounded corners to a CardView inner element<p>I have a CardView with an inner layout which has a different background color than the CardView. I want the inner layout to be aligned to one side of the CardView and take the 2 rounded corners of that side.</p> <p><a href="https://i.stack.imgur.com/JI41G.gif"...
<p>I resolved the issue by setting a custom background to the inner layout with top &amp; bottom radius values the same as the CardView radius value.</p>
Applying the rounded corners to a CardView inner element
java|android|xml|android-cardview
0
57
1
53,563,688
53,563,688
0
true
2018-11-30T18:37:31.450Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Applying the rounded corners to a CardView inner element<p>I have a CardView with an inner layout which has a different background color than the CardView. I...
53,563,476
Nesting Data in Mongoose variable<p>How do you declare the type for a variable in a Mongoose schema which also has nested variables? If it's possible, what would be the correct way of adding data to it when creating the object.</p> <p>This schema is provided by the Mongoose Docs and I am confused about how you would a...
<p>meta is type Object. It has 2 properties, <code>votes</code>, and <code>favs</code>, both of them are numbers. If you want to create a blog post with meta, is as simple as:</p> <pre><code>new BlogPost({ title: 'new blog post', body: 'nice SEO' meta: { votes: 3, favs: 1 } }) </code></pre> <p>If you ...
Nesting Data in Mongoose variable
mongoose|mongoose-schema
0
25
1
53,563,729
53,563,729
0
true
2018-11-30T19:10:05.213Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Nesting Data in Mongoose variable<p>How do you declare the type for a variable in a Mongoose schema which also has nested variables? If it's possible, what w...
53,562,953
Dynamically including website components in JSP<p>Is there a way to use root path when refering to includes in JSP? what I mean is instead of using this method: </p> <pre><code>&lt;jsp:include page="../inc/header.jsp" /&gt; &lt;jsp:include page="../../inc/header.jsp" /&gt; </code></pre> <p>etc.<br> To just refer to ...
<p>Anybody trying to figure it out here is the answer that I came up with. For some reason intelij IDE tells me that the path cannot be resolved(liar!) looking at my project tree you can include header to any file using this piece of code in your project: </p> <pre><code>&lt;%@ include file="/jsp/inc/header.jsp" %&gt;...
Dynamically including website components in JSP
java|jsp|jsp-tags
0
33
1
53,564,612
53,564,612
0
true
2018-11-30T18:27:30.837Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Dynamically including website components in JSP<p>Is there a way to use root path when refering to includes in JSP? what I mean is instead of using this meth...
53,558,307
Can I remove Assignable attribute from an id field in ObjectBox<p>The question is about ObjectBox db version 2.2.0</p> <p>Can I remove <code>assignable = true</code> attribute from the field that is already in prod in case if we haven't put any custom numbers there and basically they are auto-assignable? Will it migra...
<p>Yes, that should work. But please do your own testing too. :)</p>
Can I remove Assignable attribute from an id field in ObjectBox
android|objectbox
0
44
1
53,564,626
53,564,626
0
true
2018-11-30T13:15:28.667Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can I remove Assignable attribute from an id field in ObjectBox<p>The question is about ObjectBox db version 2.2.0</p> <p>Can I remove <code>assignable = tr...
53,566,118
How to expand image as text overlay expands?<p>We have the following code on <a href="https://codepen.io/userrj/pen/YRdbjm" rel="nofollow noreferrer">codepen</a>. The problem we have is that we are using the <code>&lt;picture&gt;</code> attribute to render images based on <code>viewport</code>, but are not able to have...
<p>If your image is always bigger than the textbox, here's a solution</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>.item { position: relative; max-width: 100%; } ....
How to expand image as text overlay expands?
html|css|image|picturefill
0
515
2
53,566,224
53,566,224
0
true
2018-11-30T23:06:46.907Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to expand image as text overlay expands?<p>We have the following code on <a href="https://codepen.io/userrj/pen/YRdbjm" rel="nofollow noreferrer">codepen...
53,566,085
How to retrieve information through table?<p>I have SQL query that does that I need:</p> <pre><code>SELECT users.FirstName, users.Id FROM `orders` INNER JOIN orderrecipients ON orderrecipients.Orders_Id = orders.Id INNER JOIN users ON users.Id = orderrecipients.Users_Id; </code></pre> <p>I try to use Eloquent model ...
<p><code>HasManyThrough</code> is not the best choice here. Use a <code>BelongsToMany</code> relationship instead:</p> <pre class="lang-php prettyprint-override"><code>public function OrderRecipients() { return $this-&gt;belongsToMany('App\User', 'orderrecipients', 'Orders_Id', 'Users_Id'); } </code></pre>
How to retrieve information through table?
laravel|laravel-5
0
24
1
53,566,365
53,566,365
0
true
2018-11-30T23:03:05.637Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to retrieve information through table?<p>I have SQL query that does that I need:</p> <pre><code>SELECT users.FirstName, users.Id FROM `orders` INNER JO...
53,552,416
How to reload rails fixtures into database during test running<p>My legacy code is using DatabaseCleaner which wipes out database after each test being done. However it also wipes out loaded fixtures data and causes some tests which are using fixtures to fail, something like:</p> <pre><code>ActiveRecord::RecordNotFoun...
<p>Solution:</p> <p>Set <code>self.use_transactional_fixtures = false</code> at the beginning of the file before which you want to reload fixtures.</p> <p>Or use <code>use_transactional_tests</code> in Rails 5. </p> <p>Do not set it in <code>spec_helper</code> as it applies globally so conflicts with DatabaseCleane...
How to reload rails fixtures into database during test running
ruby-on-rails|rspec|fixtures|database-cleaner
0
546
1
53,567,668
53,567,668
0
true
2018-11-30T06:30:37.187Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to reload rails fixtures into database during test running<p>My legacy code is using DatabaseCleaner which wipes out database after each test being done....
53,563,854
Cannot see past relationships in before_relationship_add hook<p>For some reason when executing $bean->relation->getBeans() inside before_relationship_add hook it shows old AND new relationship.</p> <p>I just want to see the relationships that were there BEFORE..</p> <p>I tried to extract it from $bean and $arguments,...
<p>We can see what new record was added by checking <strong>$arguments['related_module']</strong> and <strong>$arguments['related_id']</strong>.</p> <p>So if we can identify what is the new record, we can determine what the old records were there prior to relationship add..</p> <p>Example: we have 3 records with IDs ...
Cannot see past relationships in before_relationship_add hook
sugarcrm|suitecrm
0
50
1
53,568,134
53,568,134
0
true
2018-11-30T19:39:01.070Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cannot see past relationships in before_relationship_add hook<p>For some reason when executing $bean->relation->getBeans() inside before_relationship_add hoo...
53,567,856
Time analysis for subsets of size k<pre><code>public static List &lt; List &lt; Integer &gt;&gt; combinations(int n, int k) { List &lt; List &lt; Integer &gt;&gt; result = new ArrayListof); directedCombinations(n, k, 1, new ArrayList &lt; Integer &gt; (), result); return result; } private static void direct...
<p>Because of this line:</p> <pre><code>result.add(new ArrayList &lt; &gt; (partialCombination)); </code></pre> <p>You've generated <code>C(n,k)</code> solutions. Now for each of them you perform array creation. This takes time proportional to its size, namely <code>O(k)</code>. So it would be more precise to say tha...
Time analysis for subsets of size k
combinations
0
20
1
53,568,138
53,568,138
0
true
2018-12-01T04:50:13.223Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Time analysis for subsets of size k<pre><code>public static List &lt; List &lt; Integer &gt;&gt; combinations(int n, int k) { List &lt; List &lt; Integer...
53,568,169
Send data from input to custom.js and make calculations on the basis of input in custom.js file<p>Send data from input to custom.js and make calculations on the basis of input in custom.js file &amp; send value of sum from custom.js to create.blade.js</p> <p>create.blade.php</p> <pre><code>&lt;div class="form-group ...
<p>You can load the custom.js using script tag in header or alike in create.blade.php and use onchange even to call the myFunction like,</p> <pre><code>&lt;input type="text" class="form-control" name="p_amount_received" id="p_amount_received" onChange="myFunction()" placeholder="Enter Amount Received" required=""&gt...
Send data from input to custom.js and make calculations on the basis of input in custom.js file
javascript|php|html|laravel
0
28
1
53,568,361
53,568,361
0
true
2018-12-01T05:55:46.523Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Send data from input to custom.js and make calculations on the basis of input in custom.js file<p>Send data from input to custom.js and make calculations on ...
53,543,810
Create Matrix from tdbc::odbc $resultset allrows -as lists<p>I have a result set that I am returning from a result set. I am wanting to turn that into a matrix object to perform in memory lookups on the data. I have never used Matrix and am stuck on getting it to work. Can anyone provide an example?</p>
<p>As far as I can see, the trip through CSV can be avoided by using the matrix's <code>add row</code> method directly.</p> <pre><code>::struct::matrix Mtrx Mtrx add columns [llength [$SQLResultSet columns]] while {[$SQLResultSet nextlist Return_Row]} { Mtrx add row $Return_Row } </code></pre>
Create Matrix from tdbc::odbc $resultset allrows -as lists
matrix|odbc|tcl|tdbc
0
52
2
53,568,799
53,568,799
0
true
2018-11-29T16:45:13.290Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Create Matrix from tdbc::odbc $resultset allrows -as lists<p>I have a result set that I am returning from a result set. I am wanting to turn that into a matr...
53,567,409
Tab UI overflow cutting element under max-width<p>I can't wrap my head around why this tab UI is cutting the titles of my mockup while being under max-width. max-width is 250px and some documents could overflow, that's ok, but my problem is that also the titles "a.html" are being cut while the width of the tab head is ...
<p>The problem is here: <code>flex: 0 0 20px;</code></p> <p>Changing that rule with: <code>flex: 1 1 auto;</code> and adding your <code>min-width</code> (i.e. 20px) all works well.</p> <p>This is your new sass file:</p> <pre><code>* { box-sizing: border-box; } div.navbar { display: flex; flex-flow: row...
Tab UI overflow cutting element under max-width
html|css|sass
0
34
1
53,569,681
53,569,681
0
true
2018-12-01T03:03:25.130Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Tab UI overflow cutting element under max-width<p>I can't wrap my head around why this tab UI is cutting the titles of my mockup while being under max-width....
53,570,088
GNU Make correct behaviour when including other makefiles<p>I have the following makefile in the root of the project:</p> <p>Makefile</p> <pre><code># Board version # Available: 3 PI ?= 3 # Kernel binaries ifeq ($(PI), 3) KERNEL_IMG := kernel8.img else ifeq ($(PI), 2) KERNEL_IMG := kernel7.img...
<p>Make's default goal is the first target in your Makefile. In your case the first target is the one defined in the included Makefile: <code>$(BUILD_DIR)/pi/3/start.S.o</code>. Either invoke <code>make all</code> or move the <code>all</code> rule in your Makefile such that it becomes the first one, or tell make that t...
GNU Make correct behaviour when including other makefiles
makefile|gnu-make
0
20
1
53,570,192
53,570,192
0
true
2018-12-01T10:56:56.697Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: GNU Make correct behaviour when including other makefiles<p>I have the following makefile in the root of the project:</p> <p>Makefile</p> <pre><code># Boar...
53,570,713
how to groupby two columns and words counts last columns in pandas(or python)<p>1) For example, I have 3 columns like below </p> <pre><code> date categories contents 2018-01 fish_tank1 Goldfish Gombessa Goosefish Gopher rockfish 2018-01 fish_tank2 Grass carp Goosefish Grayling mullet shark ...
<p>Use - </p> <pre><code>from collections import Counter df['contents2'] = df['contents'].str.split() df.groupby(['date', 'categories'])['contents2'].apply(lambda x: Counter(x.sum())) </code></pre> <p><strong>Output</strong></p> <pre><code>date categories 2018-01 fish_tank1 Goldfish 2.0 ...
how to groupby two columns and words counts last columns in pandas(or python)
python|pandas
0
37
1
53,570,931
53,570,931
0
true
2018-12-01T12:22:13.953Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to groupby two columns and words counts last columns in pandas(or python)<p>1) For example, I have 3 columns like below </p> <pre><code> date categ...
53,566,901
Intelligent routing with controller<p>There is a way automatically set routes using my controller's methods?</p> <p>Example: I have a PagesController with 'home' or 'index', 'about' and 'contact' methods. Can I set routes for every method without explictly typing them?</p> <p>Something like</p> <pre><code>Route::?('...
<p>No, it's not possible. Assuming you use standard RESTful methods like index, create, edit, store, update and destroy then yes, you can just write:</p> <pre><code>Route::resource('cars', 'CarController'); </code></pre> <p>and you will have created routes for list of cars, route for edit, create and so on</p> <p>Th...
Intelligent routing with controller
laravel|laravel-5|routing|laravel-routing|laravel-5.7
0
30
1
53,570,971
53,570,971
0
true
2018-12-01T01:11:36.883Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Intelligent routing with controller<p>There is a way automatically set routes using my controller's methods?</p> <p>Example: I have a PagesController with '...
53,571,297
Can't add button under the admob ad<p>I am trying to add Add a simple button under my admob ad but it doesn't let me</p> <p>Here's the xml code</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/...
<p>1- copy and past this xml code:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="fill_parent" android:layout_height="fill_parent" &gt; &lt;android.support....
Can't add button under the admob ad
android|android-layout|admob
0
16
1
53,571,394
53,571,394
0
true
2018-12-01T13:33:24.890Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can't add button under the admob ad<p>I am trying to add Add a simple button under my admob ad but it doesn't let me</p> <p>Here's the xml code</p> <pre><c...
53,571,655
Title of the last tab in my ViewPager doesn't show<p>Title of the last tab in my ViewPager doesn't show, <a href="https://i.stack.imgur.com/nCs0N.png" rel="nofollow noreferrer">in this case i have 4 tabs but only the first 3 tabs are shown but not the last one although I can swipe to the fourth tab</a></p> <p>Code</p>...
<p>Change this line:</p> <pre><code>for (int i = 1; i &lt; androidAdapter.getCount(); i++) </code></pre> <p>to</p> <pre><code>for (int i = 0; i &lt; androidAdapter.getCount(); i++) </code></pre> <p>You are missing 1 tab</p>
Title of the last tab in my ViewPager doesn't show
java|android|android-viewpager
0
13
1
53,571,736
53,571,736
0
true
2018-12-01T14:15:00.483Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Title of the last tab in my ViewPager doesn't show<p>Title of the last tab in my ViewPager doesn't show, <a href="https://i.stack.imgur.com/nCs0N.png" rel="n...
53,571,666
Can't fix an error occuring while using Hibernate<p>I just got started with hibernate so dont know what to do, here's the error log I did't knew what part to post so I ended up posting the whole error log :</p> <pre><code>Dec 01, 2018 7:07:51 PM org.hibernate.Version logVersion INFO: HHH000412: Hibernate Core {5.3.7.F...
<p>The problem from the stacktrace: Caused by: java.lang.ClassNotFoundException: Could not load requested class : org.h2.Driver</p> <p>This is specified as the driver setting explicitly set in your code. </p> <p>You have to provide the database driver in your class path or specify one that exists. </p>
Can't fix an error occuring while using Hibernate
java|hibernate|h2
0
1,053
2
53,571,820
53,571,820
0
true
2018-12-01T14:15:55.330Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can't fix an error occuring while using Hibernate<p>I just got started with hibernate so dont know what to do, here's the error log I did't knew what part to...
53,571,758
Iterate through ImageViews and set random drawable and visibility<p>I make a little game and have a problem iterating through ImageViews. </p> <p>I have 12 ImageViews, which should show randomly no apple, a green or a red apple.</p> <p>How can i iterate through ImageViews and set Visibility and drawable? The App cras...
<p>If you want to produce a random integer value of <code>0</code> or <code>1</code> do this:</p> <pre><code>int appleVisibility = randomAppleVisibility.nextInt(2); int appleColor = randomAppleColor.nextInt(2); </code></pre> <p>This</p> <pre><code>nextInt(0) </code></pre> <p>throws a <code>java.lang.IllegalArgumen...
Iterate through ImageViews and set random drawable and visibility
android|random|imageview|visibility
0
36
1
53,572,052
53,572,052
0
true
2018-12-01T14:28:48.237Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Iterate through ImageViews and set random drawable and visibility<p>I make a little game and have a problem iterating through ImageViews. </p> <p>I have 12 ...
53,572,223
Python missing argument<p>Where is my fault</p> <p>"this code is only part of my code I just copied part of it"</p> <pre><code>import turtle wn=turtle.Screen() wn.bgcolor("black") wn.title("Pacman") wn.setup(900,700) class Pacman(turtle.Turtle): def __init__(self): turtle.Turtle.__init__(self) se...
<p>"Pacman" is a class template, so you can't call methods on it like that. You should either create a Pacman object (like so):</p> <pre><code>new_pacman = Pacman() </code></pre> <p>And then you could run your functions like so:</p> <pre><code>new_pacman.up() </code></pre> <p>Or (if I'm not mistaken) you could try ...
Python missing argument
python|python-3.x
0
74
3
53,572,273
53,572,273
0
true
2018-12-01T15:22:07.800Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python missing argument<p>Where is my fault</p> <p>"this code is only part of my code I just copied part of it"</p> <pre><code>import turtle wn=turtle.Scr...
53,393,041
Query fired from C# driver to locally hosted Mongodb server<p>I am using C# mongodb driver 2.4.4. I want to see what query or the request my c# code is making to mongodb server. </p> <p>Is there a way I can check what all requests have come to my mongo db server in a particular time frame ?? Is there a way I can cap...
<p>The best way to do this is to enable profiling on the database, if you drop in to the mongo console and call <code>setProfilingLevel</code> setting with a parameter of <code>2</code> (all).</p> <pre><code>&gt; db.setProfilingLevel(2, 0) { "was" : 0, "slowms" : 100, "sampleRate" : 1, "ok" : 1 } </code></pre> <p>Nex...
Query fired from C# driver to locally hosted Mongodb server
c#|mongodb
0
275
1
53,572,394
53,572,394
0
true
2018-11-20T12:30:36.060Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Query fired from C# driver to locally hosted Mongodb server<p>I am using C# mongodb driver 2.4.4. I want to see what query or the request my c# code is maki...