Dataset Viewer
Auto-converted to Parquet Duplicate
Id
int64
34.6M
60.5M
Title
stringlengths
15
150
Body
stringlengths
45
36.7k
Tags
stringlengths
3
93
CreationDate
stringdate
2016-01-01 05:21:48
2020-02-29 01:25:40
Y
stringclasses
3 values
Text
stringlengths
62
36.8k
52,467,167
How C arrays are structured
<p>I have a question about how C arrays are stored in memory. But I'm having trouble formulating the question, so here's my best try to put it into words. I have trouble with English. Let's say we have a three dimensional array:</p> <pre><code>int foo[2][3][4]; </code></pre> <p>Elements can be accessed using either a...
<c><arrays>
2018-09-23 14:37:09
LQ_CLOSE
How C arrays are structured <p>I have a question about how C arrays are stored in memory. But I'm having trouble formulating the question, so here's my best try to put it into words. I have trouble with English. Let's say we have a three dimensional array:</p> <pre><code>int foo[2][3][4]; </code></pre> <p>Elements ca...
50,396,057
Cannot read property 'required' of null
<p>In the template I have a form, which one part of it has to do with rendering the list of courses:</p> <pre><code>&lt;form #f="ngForm" (ngSubmit)="submit(f)"&gt; &lt;div class="form-group"&gt; &lt;label for="courseCategory"&gt; Category &lt;/label&gt; &lt;select required ngModel name="courseCategory" #courseCat...
<angular><forms>
2018-05-17 16:10:03
HQ
Cannot read property 'required' of null <p>In the template I have a form, which one part of it has to do with rendering the list of courses:</p> <pre><code>&lt;form #f="ngForm" (ngSubmit)="submit(f)"&gt; &lt;div class="form-group"&gt; &lt;label for="courseCategory"&gt; Category &lt;/label&gt; &lt;select required ...
40,188,887
is it possible to check websites is opened in other tab of a browser in php?
<p>I have two application in php and want to check that any one of them is already opened in other tab of browser. So, is it possible if yes then how?</p>
<php><browser>
2016-10-22 06:05:07
LQ_CLOSE
is it possible to check websites is opened in other tab of a browser in php? <p>I have two application in php and want to check that any one of them is already opened in other tab of browser. So, is it possible if yes then how?</p>
57,970,255
Helm V3 - Cannot find the official repo
<p>I have been trying to install nginx ingress using helm version 3</p> <pre><code>helm install my-ingress stable/nginx-ingress </code></pre> <p>But Helm doesn't seem to be able to find it's official <code>stable</code> repo. It gives the message: </p> <blockquote> <p>Error: failed to download "stable/nginx-ingres...
<kubernetes><kubernetes-helm><kubernetes-deployment>
2019-09-17 08:26:29
HQ
Helm V3 - Cannot find the official repo <p>I have been trying to install nginx ingress using helm version 3</p> <pre><code>helm install my-ingress stable/nginx-ingress </code></pre> <p>But Helm doesn't seem to be able to find it's official <code>stable</code> repo. It gives the message: </p> <blockquote> <p>Error:...
45,832,039
How to filter English letters in String?
<p>How to filter English letters in String using Swift like this:</p> <p><code> 2017-08-23T13:00:00+08:00 </code></p> <p>Delete the 'T' in time string:</p> <p><code> 2017-08-23 13:00:00 +08:00 </code></p>
<swift><string><filter>
2017-08-23 06:21:59
LQ_CLOSE
How to filter English letters in String? <p>How to filter English letters in String using Swift like this:</p> <p><code> 2017-08-23T13:00:00+08:00 </code></p> <p>Delete the 'T' in time string:</p> <p><code> 2017-08-23 13:00:00 +08:00 </code></p>
50,200,859
I dont get rxjs 6 with angular 6 with interval, switchMap, and map
<p>I want to update my rxjs code to 6 got I don't get it.</p> <p>Before I had the below that wouth poll for new data every 5 seconds:</p> <pre><code>import { Observable, interval } from 'rxjs'; import { switchMap, map } from 'rxjs/operators'; var result = interval(5000).switchMap(() =&gt; this._authHttp.get(url)).ma...
<angular><rxjs><rxjs6>
2018-05-06 14:35:49
HQ
I dont get rxjs 6 with angular 6 with interval, switchMap, and map <p>I want to update my rxjs code to 6 got I don't get it.</p> <p>Before I had the below that wouth poll for new data every 5 seconds:</p> <pre><code>import { Observable, interval } from 'rxjs'; import { switchMap, map } from 'rxjs/operators'; var res...
44,459,554
How can I change the height of the ListView item(UWP) that is clicked? Like Mail App does
I have created a simple ListView item in XAML and I want to change height of Item that is clicked, like the Mail app does in Windows. And also please don't suggest method that require MMVM, cos I am new to devloping.
<c#><xaml><uwp>
2017-06-09 13:50:24
LQ_EDIT
How can I change the height of the ListView item(UWP) that is clicked? Like Mail App does I have created a simple ListView item in XAML and I want to change height of Item that is clicked, like the Mail app does in Windows. And also please don't suggest method that require MMVM, cos I am new to devloping.
48,635,083
is there a function to find out how to get precise numbers represented in float format?
ok, 2^32, 2^32+1, 2^32+2 isn't precise when stored as a float however, 2^64 is, is there function out that i can feed it a number and it tell me if a float will store it precisely. the only reason i am interested in floats is because i want to store very long digit numbers in...
<python>
2018-02-06 03:37:01
LQ_EDIT
is there a function to find out how to get precise numbers represented in float format? ok, 2^32, 2^32+1, 2^32+2 isn't precise when stored as a float however, 2^64 is, is there function out that i can feed it a number and it tell me if a float will store it precisely. the only reason i ...
54,449,575
don't correct out put in C#
<p>example I enter 1357 and program out 106 instead of 10</p> <pre><code> string num = Console.ReadLine(); Console.Write(Convert.ToInt32(num[1]) + Convert.ToInt32(num[3])); Console.ReadKey(); </code></pre>
<c#>
2019-01-30 21:09:27
LQ_CLOSE
don't correct out put in C# <p>example I enter 1357 and program out 106 instead of 10</p> <pre><code> string num = Console.ReadLine(); Console.Write(Convert.ToInt32(num[1]) + Convert.ToInt32(num[3])); Console.ReadKey(); </code></pre>
46,437,544
How to access non-modified variable
I have a variable that is in a package, where I can neither modify the package or that class and I need to access it is there any way I can do this. I can not modify com.archi.hello or the contents of it For Example: com.archi.hello: class obj: int j = 123; com.archi.newpackage: int jo; ...
<java>
2017-09-27 00:10:04
LQ_EDIT
How to access non-modified variable I have a variable that is in a package, where I can neither modify the package or that class and I need to access it is there any way I can do this. I can not modify com.archi.hello or the contents of it For Example: com.archi.hello: class obj: int j = 123; com.a...
40,299,602
Android calandar view not showing month and year starting from lollipop 5.0
Android calandarview not showing month and year from lollipop **I have used this code for below lollipop versions and it worked but from lollipop it is not working** try { Class<?> cvClass = calender.getClass(); Field field = cvClass.getDeclaredField("mMonthName"); ...
<android><calendar><calendarview>
2016-10-28 06:51:11
LQ_EDIT
Android calandar view not showing month and year starting from lollipop 5.0 Android calandarview not showing month and year from lollipop **I have used this code for below lollipop versions and it worked but from lollipop it is not working** try { Class<?> cvClass = calender.getCla...
50,085,748
Pass a function with parameters to a VoidCallback
<p>Is it possible to pass a Function with parameters to a VoidCallback?</p> <p>for example something like this:</p> <pre><code>class MyClass { void doSomething(int i){ } MyOtherClass myOtherClass = new MyOtherClass(doSomething); } class MyOtherClass { final VoidCallback callback(int); MyOtherClass(this...
<dart><flutter>
2018-04-29 10:50:21
HQ
Pass a function with parameters to a VoidCallback <p>Is it possible to pass a Function with parameters to a VoidCallback?</p> <p>for example something like this:</p> <pre><code>class MyClass { void doSomething(int i){ } MyOtherClass myOtherClass = new MyOtherClass(doSomething); } class MyOtherClass { fina...
56,341,103
on the click of the image it is not removing-Jquery
selecting the multiple image from the input tag after that i am previewing the selected image but when i click on that image it should delete from the input tag it does not select that picture anymore. but in my case that picture is removing only in preview not in input. And save it into database here is the code ...
<php><jquery>
2019-05-28 11:23:08
LQ_EDIT
on the click of the image it is not removing-Jquery selecting the multiple image from the input tag after that i am previewing the selected image but when i click on that image it should delete from the input tag it does not select that picture anymore. but in my case that picture is removing only in preview not in inp...
54,477,837
Deserialize from string to object
<p>I been stuck on this problem for long time now so I´m asking here.</p> <p>I´m getting following error message:</p> <pre><code>"Newtonsoft.Json.JsonSerializationException: 'Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'XXX' because the type requires a JSON object (e.g. {"name":"value"}) to des...
<c#><.net><json>
2019-02-01 10:42:57
LQ_CLOSE
Deserialize from string to object <p>I been stuck on this problem for long time now so I´m asking here.</p> <p>I´m getting following error message:</p> <pre><code>"Newtonsoft.Json.JsonSerializationException: 'Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'XXX' because the type requires a JSON obj...
48,701,290
Display the same data and summation in mysql
I want to ask and hopefully the readers can help. I have a case showing data details based on order number. the following data. + order number | item | total kg<br> 1. 99684 | CF Rice Pandan Wangi 10 kg | 50.0 kg<br> 2. 99684 | CF Rice Rojolele 10 kg | 100.0 kg<br> 3. JK14020 | CF Rice Pandan Wangi 10 kg | 20...
<php><mysql><codeigniter>
2018-02-09 08:09:43
LQ_EDIT
Display the same data and summation in mysql I want to ask and hopefully the readers can help. I have a case showing data details based on order number. the following data. + order number | item | total kg<br> 1. 99684 | CF Rice Pandan Wangi 10 kg | 50.0 kg<br> 2. 99684 | CF Rice Rojolele 10 kg | 100.0 kg<br> ...
40,267,473
game with moving balls doesn't work with javascript
<p>I created this game using javascript and sublime. In theory I should visualize two balls moving around the canvas but actually I see only one yellow ball stopped in the middle of the canvas. Why the ball doesn't move?</p> <p>This is the code:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;t...
<javascript><html><canvas>
2016-10-26 16:23:40
LQ_CLOSE
game with moving balls doesn't work with javascript <p>I created this game using javascript and sublime. In theory I should visualize two balls moving around the canvas but actually I see only one yellow ball stopped in the middle of the canvas. Why the ball doesn't move?</p> <p>This is the code:</p> <pre><code>&lt;!...
48,045,470
Portably detect __VA_OPT__ support?
<p>In C++20, the preprocessor supports <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0306r4.html" rel="noreferrer"><code>__VA_OPT__</code></a> as a way to optionally expand tokens in a variadic macro if the number of arguments is greater than zero. (This obviates the need for the <code>##__VA_ARGS__...
<c++><c-preprocessor><c++20>
2017-12-31 20:26:58
HQ
Portably detect __VA_OPT__ support? <p>In C++20, the preprocessor supports <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0306r4.html" rel="noreferrer"><code>__VA_OPT__</code></a> as a way to optionally expand tokens in a variadic macro if the number of arguments is greater than zero. (This obviates ...
51,570,928
How can I run commands in a running container in AWS ECS using Fargate
<p>If I am running container in AWS ECS using EC2, then I can access running container and execute any command.</p> <p>ie. <code>docker exec -it &lt;containerid&gt; &lt;command&gt;</code></p> <p>How can I run commands in the running container or access container in AWS ECS using Fargate?</p>
<amazon-web-services><aws-ecs><aws-fargate>
2018-07-28 11:25:44
HQ
How can I run commands in a running container in AWS ECS using Fargate <p>If I am running container in AWS ECS using EC2, then I can access running container and execute any command.</p> <p>ie. <code>docker exec -it &lt;containerid&gt; &lt;command&gt;</code></p> <p>How can I run commands in the running container or a...
46,562,908
to check a string is palindrome or not
>class palindrome >{ > public static void main(String args[]) > { > String s1=new String(); > Scanner sc= new Scanner(System.in); > System.out.println("Enter the string:"); > s1=sc.nextLine(); > StringBuffer s2=new StringBuffer(s1); > s2.reverse().toString(); > if(s1.equals(s2.toString())) > Sy...
<java>
2017-10-04 10:44:28
LQ_EDIT
to check a string is palindrome or not >class palindrome >{ > public static void main(String args[]) > { > String s1=new String(); > Scanner sc= new Scanner(System.in); > System.out.println("Enter the string:"); > s1=sc.nextLine(); > StringBuffer s2=new StringBuffer(s1); > s2.reverse().toString(); ...
54,841,168
Why does code in c# differ from code in c when i write the same algorithm?
Function in C unsigned long int ROTL(unsigned long int x, unsigned long int y) { return ((x) << (y&(32 - 1))) | ((x) >> (32 - (y&(32 - 1)))); } Function in C# uint ROTL(uint x, uint y) { return ((x) << (int)(y & (32 - 1))) | ((x) >> (int)(32- (y & (32 - 1))));...
<c#><c>
2019-02-23 11:37:03
LQ_EDIT
Why does code in c# differ from code in c when i write the same algorithm? Function in C unsigned long int ROTL(unsigned long int x, unsigned long int y) { return ((x) << (y&(32 - 1))) | ((x) >> (32 - (y&(32 - 1)))); } Function in C# uint ROTL(uint x, uint y) { ...
39,868,041
How to change port number of Appache server in ubuntu
I want to change my port number 80 to some other number of my Appache server . how it possible in ubuntu
<apache>
2016-10-05 07:38:09
LQ_EDIT
How to change port number of Appache server in ubuntu I want to change my port number 80 to some other number of my Appache server . how it possible in ubuntu
49,115,220
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '.'Admin')'
<p>When I Try to add value of role in DB it shows me this error , You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '.'Admin')' at line 1,</p> <pre><code>&lt;? $pin=$_POST['pin']; $password=$_POST['password']; $name=$_POST['name']...
<php>
2018-03-05 16:35:18
LQ_CLOSE
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '.'Admin')' <p>When I Try to add value of role in DB it shows me this error , You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for...
52,157,852
How to access JSON nested objects with ruby?
<p>so I have a JSON file that is made of nested objects that follow the following pattern : <code>parent -&gt; child -&gt; grand_child</code> and looks like the following : </p> <pre><code>//seed.json { "parent_0":[ { "child_10":[ { "grand_child_A":[], ...
<json><ruby>
2018-09-04 02:00:00
LQ_CLOSE
How to access JSON nested objects with ruby? <p>so I have a JSON file that is made of nested objects that follow the following pattern : <code>parent -&gt; child -&gt; grand_child</code> and looks like the following : </p> <pre><code>//seed.json { "parent_0":[ { "child_10":[ { ...
48,996,115
why my css code is not working in vuejs?
<p>I've got problem with css in VueJs. Sorry for poor description, but I have no idea what I'm doing wrong. </p> <p>My css in style scoped works generally fine in vuejs, I can normally address idis and classes. </p> <p>The problem is when I want to change for example value of internal css of an element of vuetify fra...
<css><vue.js><quill>
2018-02-26 19:55:12
HQ
why my css code is not working in vuejs? <p>I've got problem with css in VueJs. Sorry for poor description, but I have no idea what I'm doing wrong. </p> <p>My css in style scoped works generally fine in vuejs, I can normally address idis and classes. </p> <p>The problem is when I want to change for example value of ...
56,320,581
Which is better approach?
<p>I need to find subject, but it could be null. So have to do this without throwing exception. I have two approach and please suggest which is better?</p> <pre><code>public static String getSafeSubject(SNSEvent.SNSRecord record){ try{ return record.getSNS().getSubject(); }catch (Exception ...
<java>
2019-05-27 06:17:43
LQ_CLOSE
Which is better approach? <p>I need to find subject, but it could be null. So have to do this without throwing exception. I have two approach and please suggest which is better?</p> <pre><code>public static String getSafeSubject(SNSEvent.SNSRecord record){ try{ return record.getSNS().getSubject(); ...
46,366,929
Is there any way to remove VSTS agent without PAT?
<p>I'm trying to remove a VSTS agent from a system, but I no longer possess the Personal Access Token (PAT) originally used during setup. An answer on <a href="https://social.msdn.microsoft.com/Forums/vstudio/en-US/431f9a06-db69-49d4-8bc0-3bff9911f959/vsts-private-agent-authentication-with-pat-personal-access-tokens?fo...
<azure-devops>
2017-09-22 14:18:23
HQ
Is there any way to remove VSTS agent without PAT? <p>I'm trying to remove a VSTS agent from a system, but I no longer possess the Personal Access Token (PAT) originally used during setup. An answer on <a href="https://social.msdn.microsoft.com/Forums/vstudio/en-US/431f9a06-db69-49d4-8bc0-3bff9911f959/vsts-private-agen...
45,344,158
Multiple .dockerignore files in same directory
<p>In the same directory I have two <code>Dockerfiles</code> and I would like to add a separate <code>.dockerignore</code> for each of them.</p> <p>Currently, I have:</p> <pre><code>Dockerfile.npm Dockerfile.nginx </code></pre> <p>But can I have something like this?:</p> <pre><code>.dockerignore.npm .dockerignore.n...
<docker>
2017-07-27 07:31:47
HQ
Multiple .dockerignore files in same directory <p>In the same directory I have two <code>Dockerfiles</code> and I would like to add a separate <code>.dockerignore</code> for each of them.</p> <p>Currently, I have:</p> <pre><code>Dockerfile.npm Dockerfile.nginx </code></pre> <p>But can I have something like this?:</p...
52,173,966
What's the correct way to have Singleton class in c#
<p>I am learning Singleton design pattern in C#, and I have written below code in two ways, and I want to know Which one is the right way to create a Singleton class:</p> <pre><code>public sealed class TranslationHelper { // first way private static readonly TranslationHelper translationHelper = new Translatio...
<c#><.net><design-patterns>
2018-09-04 21:04:20
LQ_CLOSE
What's the correct way to have Singleton class in c# <p>I am learning Singleton design pattern in C#, and I have written below code in two ways, and I want to know Which one is the right way to create a Singleton class:</p> <pre><code>public sealed class TranslationHelper { // first way private static readonly...
40,846,616
Parsing a .json column in Power BI
<p>I want to parse a .json column through Power BI. I have imported the data directly from the server and have a .json column in the data along with other columns. Is there a way to parse this json column?</p> <p>Example:</p> <pre><code> Key IDNumber Module JsonResult 012 200 ...
<json><parsing><powerbi>
2016-11-28 14:24:55
HQ
Parsing a .json column in Power BI <p>I want to parse a .json column through Power BI. I have imported the data directly from the server and have a .json column in the data along with other columns. Is there a way to parse this json column?</p> <p>Example:</p> <pre><code> Key IDNumber Module JsonRe...
46,458,269
Use & to create a pointer to member
I'm trying to create a function that takes in a string, the reverses it, which is all being done in main. Here's what I have so far. #include <cstring> #include <iostream> #include <string> std::string str = "zombie"; void Reverse( std::string a) { c...
<c++><string><algorithm><reverse>
2017-09-27 22:38:40
LQ_EDIT
Use & to create a pointer to member I'm trying to create a function that takes in a string, the reverses it, which is all being done in main. Here's what I have so far. #include <cstring> #include <iostream> #include <string> std::string str = "zombie"; void Reverse( ...
46,763,842
Which part of this is a non-negative integer? (factorial error)
<p>This is the script:</p> <pre><code>n=input('Enter the number of rows: ') PT=zeros(n); row=1; col=1; while row~=n+1 for col=1:1:n PT(row, col)=(factorial(row-1)/(factorial(col-1)*factorial(row-col))); end row=row+1; col=1; end PT </code></pre> <p>When I run it, it says to enter the number of rows, so I...
<matlab><octave><factorial>
2017-10-16 06:04:28
LQ_CLOSE
Which part of this is a non-negative integer? (factorial error) <p>This is the script:</p> <pre><code>n=input('Enter the number of rows: ') PT=zeros(n); row=1; col=1; while row~=n+1 for col=1:1:n PT(row, col)=(factorial(row-1)/(factorial(col-1)*factorial(row-col))); end row=row+1; col=1; end PT </code></p...
37,077,487
Enable CORS for /health endpoint in Spring Boot Actuator
<p>We want to enable Cors for all GET requests to the <code>/health</code> endpoint provided by spring boot actuator.</p> <p>We tried adding the following bean without success</p> <pre><code>@Bean public WebMvcConfigurer corsConfigurer() { return new WebMvcConfigurerAdapter() { @Override public vo...
<spring><spring-boot><cors><spring-boot-actuator>
2016-05-06 16:42:16
HQ
Enable CORS for /health endpoint in Spring Boot Actuator <p>We want to enable Cors for all GET requests to the <code>/health</code> endpoint provided by spring boot actuator.</p> <p>We tried adding the following bean without success</p> <pre><code>@Bean public WebMvcConfigurer corsConfigurer() { return new WebMvc...
60,003,742
How to add our external js file in react
<p>Can anybody tell me that how we can external js file into our react component,or in our index.html or in body.</p> <p>Provide code if possible</p>
<reactjs>
2020-01-31 12:16:14
LQ_CLOSE
How to add our external js file in react <p>Can anybody tell me that how we can external js file into our react component,or in our index.html or in body.</p> <p>Provide code if possible</p>
55,409,574
Converting to manipulatable datetime format
<p>I have a date value <code>20130312</code> and I would like to convert it into a format like <code>2013-03-12</code> or a similar format</p> <p>I've tried looking into the <code>datetime</code> library but could not find a solution.</p> <p>Thanks in advance</p>
<python><python-3.x>
2019-03-29 02:13:38
LQ_CLOSE
Converting to manipulatable datetime format <p>I have a date value <code>20130312</code> and I would like to convert it into a format like <code>2013-03-12</code> or a similar format</p> <p>I've tried looking into the <code>datetime</code> library but could not find a solution.</p> <p>Thanks in advance</p>
37,932,686
I have a JQuery function that sets active based on hover, I want to automate this to avoid duplication of effort
<p>I have a fairly simple piece of JQuery that hides/unhides an element, based on which of the tabs are hovered over:</p> <p>HTML:</p> <pre><code> &lt;div class="row col-sm-4"&gt; &lt;ul class="text-center"&gt; &lt;li&gt;&lt;p class="chat-provider-tab tab"&gt;Chat Provider&lt;/p&gt;&lt;/li&gt; ...
<jquery><html><css><automation>
2016-06-20 22:14:39
LQ_CLOSE
I have a JQuery function that sets active based on hover, I want to automate this to avoid duplication of effort <p>I have a fairly simple piece of JQuery that hides/unhides an element, based on which of the tabs are hovered over:</p> <p>HTML:</p> <pre><code> &lt;div class="row col-sm-4"&gt; &lt;ul class="te...
41,923,289
How to make @angular/flex-layout wrap based on screensize
<p>I have 3 divs which i can make bigger or smaller based on the screen-size but cant get it to wrap like bootstrap. So for small screens i want the divs to be stacked vertically, large screen horizontally. eg <a href="https://i.stack.imgur.com/NRtXV.png" rel="noreferrer"><img src="https://i.stack.imgur.com/NRtXV.png" ...
<html><angular><responsive-design>
2017-01-29 16:40:42
HQ
How to make @angular/flex-layout wrap based on screensize <p>I have 3 divs which i can make bigger or smaller based on the screen-size but cant get it to wrap like bootstrap. So for small screens i want the divs to be stacked vertically, large screen horizontally. eg <a href="https://i.stack.imgur.com/NRtXV.png" rel="n...
39,554,583
How can I call a function in javascript that contains a period in it's name?
<p>If I have the following object:</p> <pre><code>var helloWorldFunctions = { 'hello.world': function () { return 'hello world'}, 'helloWorld' : function () { return 'hello world'} } </code></pre> <p>I can call the second 'helloWorld' fun...
<javascript>
2016-09-18 05:53:16
LQ_CLOSE
How can I call a function in javascript that contains a period in it's name? <p>If I have the following object:</p> <pre><code>var helloWorldFunctions = { 'hello.world': function () { return 'hello world'}, 'helloWorld' : function () { return 'hello world'} ...
56,472,727
Difference between Apache parquet and arrow
<p>I'm looking into a way to speed up my memory intensive frontend vis app. I saw some people recommend Apache Arrow, while I'm looking into it, I'm confused about the difference between Parquet and Arrow.</p> <p>They are both columnized data structure. Originally I thought parquet is for disk, and arrow is for in-mem...
<parquet><apache-arrow>
2019-06-06 07:25:40
HQ
Difference between Apache parquet and arrow <p>I'm looking into a way to speed up my memory intensive frontend vis app. I saw some people recommend Apache Arrow, while I'm looking into it, I'm confused about the difference between Parquet and Arrow.</p> <p>They are both columnized data structure. Originally I thought ...
46,656,083
New to Python ! reading data from txt file
def main(): file_output=open(r'C:\Users\P\Desktop\randominput.txt','r') for num in file_output: number=file_output.read() print(number) main() output: 48 85 58 16 11 82 Actual data in the txt file is 53 48 85 58 16 11 82 Why is my python program not reading the first...
<python>
2017-10-09 22:44:35
LQ_EDIT
New to Python ! reading data from txt file def main(): file_output=open(r'C:\Users\P\Desktop\randominput.txt','r') for num in file_output: number=file_output.read() print(number) main() output: 48 85 58 16 11 82 Actual data in the txt file is 53 48 85 58 16 11 82 Why...
53,187,221
Check whether CSS style is true
>HTML <div id="divtemp-sc" class="container-fluid tab-pane active tab-padding" role="tabpanel" aria-labelledby="divtemp-sc"> <div class="col-md-4"> <div class="popup-temp-entry"> <div class="entry-header">Title 1</div> <div class="entry-body">Description 1</div> <...
<javascript><jquery><html>
2018-11-07 10:03:29
LQ_EDIT
Check whether CSS style is true >HTML <div id="divtemp-sc" class="container-fluid tab-pane active tab-padding" role="tabpanel" aria-labelledby="divtemp-sc"> <div class="col-md-4"> <div class="popup-temp-entry"> <div class="entry-header">Title 1</div> <div class="entry-body">...
34,838,210
What is the differenect between spring cloud and spring cloud Netflix?
<p>Could somebody explain what the difference between spring cloud and spring cloud netflix? I am just starting to learn and the difference is not very clear for me. The spring cloud is an "interface" (or standart or base implenetation) and Netflix is another "implementation"? Or netflix provide something different thi...
<java><spring><spring-cloud><netflix>
2016-01-17 12:18:04
LQ_CLOSE
What is the differenect between spring cloud and spring cloud Netflix? <p>Could somebody explain what the difference between spring cloud and spring cloud netflix? I am just starting to learn and the difference is not very clear for me. The spring cloud is an "interface" (or standart or base implenetation) and Netflix ...
47,056,768
Create a function that return the pow b^e - is my function correct?
int function_power (int b, int e) { int power; power = pow(b,e); return power; } Is my code correct? I have to create a function that return the value of b^e. Excuse me for my noob question, I'm a beginner
<c><function><subroutine>
2017-11-01 14:06:53
LQ_EDIT
Create a function that return the pow b^e - is my function correct? int function_power (int b, int e) { int power; power = pow(b,e); return power; } Is my code correct? I have to create a function that return the value of b^e. Excuse me for my noob question, I'm a...
52,198,969
How can I solve No 'Access-Control-Allow-Origin' header is present on the requested resource in axios?
<p>My vue script like this :</p> <pre><code>&lt;script&gt; export default { ... methods : { login() { // uri -&gt; http://my-app.test/login?email=test@gmail.com&amp;password=1234 this.axios.get(uri).then((response) =&gt; { console.log(response) .....
<javascript><vue.js><vuejs2><axios><vue-component>
2018-09-06 07:44:12
LQ_CLOSE
How can I solve No 'Access-Control-Allow-Origin' header is present on the requested resource in axios? <p>My vue script like this :</p> <pre><code>&lt;script&gt; export default { ... methods : { login() { // uri -&gt; http://my-app.test/login?email=test@gmail.com&amp;password=1234 ...
46,750,071
Python - Quiz Help (:
I am a beginner to Python and having difficulties with a short quiz I am creating. I have created a short video, to show exactly what is happening: https://www.youtube.com/watch?v=aHRAr0T-i-Q&feature=youtu.be How can I have it so it comes up with the question, "Who is Conor Mcgregor?" and then print the answers...
<python>
2017-10-14 22:49:06
LQ_EDIT
Python - Quiz Help (: I am a beginner to Python and having difficulties with a short quiz I am creating. I have created a short video, to show exactly what is happening: https://www.youtube.com/watch?v=aHRAr0T-i-Q&feature=youtu.be How can I have it so it comes up with the question, "Who is Conor Mcgregor?" and ...
44,852,484
Access webcam using OpenCV (Python) in Docker?
<p>I'm trying to use Docker for one of our projects which uses OpenCV to process webcam feed (Python). But I can't seem to get access to the webcam within docker, here's the code which I use to test webcam access:</p> <pre><code>python -c "import cv2;print(cv2.VideoCapture(0).isOpened())" </code></pre> <p>And here's ...
<python><opencv><docker>
2017-06-30 18:02:41
HQ
Access webcam using OpenCV (Python) in Docker? <p>I'm trying to use Docker for one of our projects which uses OpenCV to process webcam feed (Python). But I can't seem to get access to the webcam within docker, here's the code which I use to test webcam access:</p> <pre><code>python -c "import cv2;print(cv2.VideoCaptur...
38,348,222
Check if a date is greater than specified date vb.net
I want to check if a date is greater than a specified date using vb.net. The same thing i got working in the following : http://stackoverflow.com/questions/38344471/check-if-a-date-is-greater-than-specified-date/38344660?noredirect=1#comment64104240_38344660 but the above is using javascript. I did it using...
<vbscript><asp-classic>
2016-07-13 09:51:36
LQ_EDIT
Check if a date is greater than specified date vb.net I want to check if a date is greater than a specified date using vb.net. The same thing i got working in the following : http://stackoverflow.com/questions/38344471/check-if-a-date-is-greater-than-specified-date/38344660?noredirect=1#comment64104240_38344660 ...
58,958,328
Is there any way to have text size change with window size?
<p>I need <code>font-size</code> to be relative to the windows size. Is there any way that I can do that?</p>
<javascript><html><css>
2019-11-20 15:48:06
LQ_CLOSE
Is there any way to have text size change with window size? <p>I need <code>font-size</code> to be relative to the windows size. Is there any way that I can do that?</p>
43,437,102
replace text with regex php, I got this error
<pre><code>&lt;html&gt; &lt;body&gt; &lt;form name='form' method='post' action=""&gt; Dork: &lt;input type="text" name="dork" id="dork" &gt; &lt;input type="submit" name="submit" value="Submit"&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; &lt;?php $ptn = "/(?:[a-z]{4,5}://[a-z.0-9]*\/)?([a-z.\?_=]*)([0-9]*)/"; // ...
<php><regex>
2017-04-16 12:12:31
LQ_CLOSE
replace text with regex php, I got this error <pre><code>&lt;html&gt; &lt;body&gt; &lt;form name='form' method='post' action=""&gt; Dork: &lt;input type="text" name="dork" id="dork" &gt; &lt;input type="submit" name="submit" value="Submit"&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; &lt;?php $ptn = "/(?:[a-z]{4,5}...
37,050,914
if else condition in java, android
<p>i have a TextView which is set using...</p> <pre><code>// Declare view variables private TextView mInfoText; // Assign views from layout file to cor. vars mInfoText = (TextView) findViewById(R.id.infoText); </code></pre> <p>how do i do an if else statement for the text inside it, i thought about doing it like thi...
<java><android>
2016-05-05 12:42:39
LQ_CLOSE
if else condition in java, android <p>i have a TextView which is set using...</p> <pre><code>// Declare view variables private TextView mInfoText; // Assign views from layout file to cor. vars mInfoText = (TextView) findViewById(R.id.infoText); </code></pre> <p>how do i do an if else statement for the text inside it...
36,109,941
A vector container declared in a different source file used in an "if" statement is out of scope?
I've created a source file that contains a number of data structures (maps, vector, array). Its header file is `#included` in the main-file. The main file looks like this: #include "src1.h" //Where monkey() and vector<int> bar are declared main() { monkey(bar); // Calling monkey(bar...
<c++>
2016-03-20 03:31:43
LQ_EDIT
A vector container declared in a different source file used in an "if" statement is out of scope? I've created a source file that contains a number of data structures (maps, vector, array). Its header file is `#included` in the main-file. The main file looks like this: #include "src1.h" //Where monkey() and...
41,154,721
Pyspark 'PipelinedRDD' object has no attribute 'show'
<p>I I want to find out what all the items in df which are not in df1 , also items in df1 but not in df</p> <pre><code> df =sc.parallelize([1,2,3,4 ,5 ,6,7,8,9]) df1=sc.parallelize([4 ,5 ,6,7,8,9,10]) df2 = df.subtract(df1) df2.show() df3 = df1.subtract(df) df3.show() </code></pre> <p>Just wan...
<attributes><pyspark>
2016-12-15 00:56:50
HQ
Pyspark 'PipelinedRDD' object has no attribute 'show' <p>I I want to find out what all the items in df which are not in df1 , also items in df1 but not in df</p> <pre><code> df =sc.parallelize([1,2,3,4 ,5 ,6,7,8,9]) df1=sc.parallelize([4 ,5 ,6,7,8,9,10]) df2 = df.subtract(df1) df2.show() df3 = df1....
39,514,518
Xamarin.Android Proguard - Unsupported class version number 52.0
<p>I'm trying to use Proguard in my Xamarin.Android project, yet the compilation fails with the error <code>Unsupported class version number [52.0] (maximum 51.0, Java 1.7)</code></p> <p>I saw from those <a href="https://stackoverflow.com/questions/23170502/proguard-says-unsupported-class-version-number-52-0-maximum-5...
<xamarin><xamarin.android><android-proguard>
2016-09-15 15:07:45
HQ
Xamarin.Android Proguard - Unsupported class version number 52.0 <p>I'm trying to use Proguard in my Xamarin.Android project, yet the compilation fails with the error <code>Unsupported class version number [52.0] (maximum 51.0, Java 1.7)</code></p> <p>I saw from those <a href="https://stackoverflow.com/questions/23170...
42,751,610
function in array not working
I have array like `binds= `["%ts%","%tm%","%per%"," <input value=\"gng(8,8)\"/> "];` and I have function function gng(a,b){ var c=a/b; return c; } when I loop array for table column's inner text , I just see input box value equal gng(8,8) which is unwanted .Why it is not ...
<javascript><arrays><invocation>
2017-03-12 18:48:16
LQ_EDIT
function in array not working I have array like `binds= `["%ts%","%tm%","%per%"," <input value=\"gng(8,8)\"/> "];` and I have function function gng(a,b){ var c=a/b; return c; } when I loop array for table column's inner text , I just see input box value equal gng(8,8) whic...
44,291,631
Cross origin error in jquery.load()
<p>I want to load html snippets into my html page with the following code:</p> <pre><code> &lt;div data-include="header"&gt;&lt;/div&gt; &lt;script&gt; $(function(){ var includes = $('[data-include]'); jQuery.each(includes, function(){ var file = '_HTML/' ...
<javascript><jquery><html>
2017-05-31 17:54:14
LQ_CLOSE
Cross origin error in jquery.load() <p>I want to load html snippets into my html page with the following code:</p> <pre><code> &lt;div data-include="header"&gt;&lt;/div&gt; &lt;script&gt; $(function(){ var includes = $('[data-include]'); jQuery.each(includes, function()...
40,315,451
Proxy requests to a separate backend server with vue-cli
<p>I am using <code>vue-cli</code> <code>webpack-simple</code> template to generate my projects, and I'd like to proxy requests to a separate, backend server. How can this be easily achieved? </p>
<webpack><vue.js><webpack-dev-server>
2016-10-29 02:22:15
HQ
Proxy requests to a separate backend server with vue-cli <p>I am using <code>vue-cli</code> <code>webpack-simple</code> template to generate my projects, and I'd like to proxy requests to a separate, backend server. How can this be easily achieved? </p>
42,439,341
How to reference Boolean java class from kotlin?
<p>As far as I understand <code>Boolean::class.java</code> gives me <code>Boolean.TYPE</code>, but not <code>Boolean.class</code></p>
<kotlin>
2017-02-24 13:01:53
HQ
How to reference Boolean java class from kotlin? <p>As far as I understand <code>Boolean::class.java</code> gives me <code>Boolean.TYPE</code>, but not <code>Boolean.class</code></p>
49,484,814
how to run python query directly from teamcity
I 2 machines on which I need to download Anaconda.sh and some compiler zipped files. One machine is Linux and I downloaded all zip files plus .sh files using below curl command :- curl -s -o cmake-3.4.1-Linux-x86_64.tar.gz http://ccm- XYZ/tools/cmake-3.4.1-Linux-x86_64.tar.gz As this is the linux machine,...
<python><python-3.x><scripting><continuous-integration><teamcity>
2018-03-26 05:57:18
LQ_EDIT
how to run python query directly from teamcity I 2 machines on which I need to download Anaconda.sh and some compiler zipped files. One machine is Linux and I downloaded all zip files plus .sh files using below curl command :- curl -s -o cmake-3.4.1-Linux-x86_64.tar.gz http://ccm- XYZ/tools/cmake-3.4.1-Linux...
35,260,443
How to fill in [x]% of a 2d array with the values of another array
<p>I have 2 two-dimensional arrays, one is filled and one is to be filled, both of the same size (n x m). I need to fill in [some random]% of my second array with the exact same values as my first array. So let's say</p> <pre><code>int[][] arr1 = new int[][] {{0, 1, 0, 1}, {1, 0, 1, 0}, ...
<java><arrays>
2016-02-07 23:20:07
LQ_CLOSE
How to fill in [x]% of a 2d array with the values of another array <p>I have 2 two-dimensional arrays, one is filled and one is to be filled, both of the same size (n x m). I need to fill in [some random]% of my second array with the exact same values as my first array. So let's say</p> <pre><code>int[][] arr1 = new i...
37,783,069
why cannot extract spring boot executable jar
<p>spring boot project, build as a executable jar, but I found cannot extract the executable jar, e.g.</p> <pre><code>jar xvf spring-boot-foo-0.0.1-SNAPSHOT.jar </code></pre> <p>nothing output. But when extract a normal jar, it is successful</p> <pre><code>jar xvf mysql-connector-java-5.1.38.jar created: META-INF/ i...
<jar><spring-boot>
2016-06-13 06:27:15
HQ
why cannot extract spring boot executable jar <p>spring boot project, build as a executable jar, but I found cannot extract the executable jar, e.g.</p> <pre><code>jar xvf spring-boot-foo-0.0.1-SNAPSHOT.jar </code></pre> <p>nothing output. But when extract a normal jar, it is successful</p> <pre><code>jar xvf mysql-...
42,155,159
How to extract from list of lists composed of numbers and a string in python?
<p>So, for example, with the list below. How can I extract and print just the number 408?</p> <pre><code> a = [[366, 408, 'Help'], [143, 99, 'Me'], [695, 140, 'Please']] print a[0] </code></pre>
<python><list>
2017-02-10 08:55:02
LQ_CLOSE
How to extract from list of lists composed of numbers and a string in python? <p>So, for example, with the list below. How can I extract and print just the number 408?</p> <pre><code> a = [[366, 408, 'Help'], [143, 99, 'Me'], [695, 140, 'Please']] print a[0] </code></pre>
50,948,464
Would someone please explain the used of return keyword? Thank you
const menu = { _courses : { _appatizers: [], _mains: [], _deserts: [] }, get courses() { return { appatizers: this._courses._appatizers; mains: this._courses._mains; deserts: this._courses._deserts; }; } I am more concerned of how this return is used a...
<javascript><return><language-design>
2018-06-20 12:37:37
LQ_EDIT
Would someone please explain the used of return keyword? Thank you const menu = { _courses : { _appatizers: [], _mains: [], _deserts: [] }, get courses() { return { appatizers: this._courses._appatizers; mains: this._courses._mains; deserts: this._courses._d...
45,635,928
unfortunately stopped when I click on items and open new fragments layout
I read some articles and make a nav drawer and fragments.i want to when I click on items in nav drawer, open fragments layout. but when I click on my fragments, my app crashed and unfortunaletly has stopped. can any one tell me what do I wrong? or what should I do to resolve my problem. this is my MainActivty....
<android><android-layout><android-fragments>
2017-08-11 13:03:12
LQ_EDIT
unfortunately stopped when I click on items and open new fragments layout I read some articles and make a nav drawer and fragments.i want to when I click on items in nav drawer, open fragments layout. but when I click on my fragments, my app crashed and unfortunaletly has stopped. can any one tell me what do I wr...
42,311,320
Where to store API keys on Swift?
<p>I have a bunch of API keys and secrets (Stripe, Cloudinary etc), that are currently hard coded in my app. Where is the right place to store them? Should they be in the server, and I just store the server URL at my end (so that if the keys changes, the app continues to work)? </p> <p>for example, I have this in my a...
<ios><swift><swift2><stripe-payments><api-key>
2017-02-18 05:14:21
HQ
Where to store API keys on Swift? <p>I have a bunch of API keys and secrets (Stripe, Cloudinary etc), that are currently hard coded in my app. Where is the right place to store them? Should they be in the server, and I just store the server URL at my end (so that if the keys changes, the app continues to work)? </p> <...
52,773,739
attempt to set an attribute on NULL in R
Error in data.table::rbindlist(.data, ...) : attempt to set an attribute on NULL I am getting this error at: FBInsightsExpanded <<- list.stack(list.select(FBInsightsExpanded, website_purchase_roas = website_purchase_roas$action_link_click_destination)); print(FBInsightsExpanded) This is wh...
<r><data.table>
2018-10-12 06:42:49
LQ_EDIT
attempt to set an attribute on NULL in R Error in data.table::rbindlist(.data, ...) : attempt to set an attribute on NULL I am getting this error at: FBInsightsExpanded <<- list.stack(list.select(FBInsightsExpanded, website_purchase_roas = website_purchase_roas$action_link_click_destination)); ...
46,154,599
How to use `blur` and `change` the same time : jquery
<p>According to my <code>autosave</code> function (<a href="https://stackoverflow.com/q/46152759/1620626">link here</a>). Which is triggered by something change to the element. In this case <code>blur</code> and <code>change</code> - input text and checkbox.</p> <p>I want to make the function working on both <code>typ...
<javascript><jquery>
2017-09-11 11:26:25
LQ_CLOSE
How to use `blur` and `change` the same time : jquery <p>According to my <code>autosave</code> function (<a href="https://stackoverflow.com/q/46152759/1620626">link here</a>). Which is triggered by something change to the element. In this case <code>blur</code> and <code>change</code> - input text and checkbox.</p> <p...
48,635,531
Status Bar light content doesn't work
this is not duplicated question I couldn't found answer in this website i have tried all this methods below override var preferredStatusBarStyle: UIStatusBarStyle { return .lightContent } this is my first time to face this kind of this code works in my Previous apps [i even change this in my target ][1]...
<ios><iphone><swift><statusbar><uistatusbar>
2018-02-06 04:34:17
LQ_EDIT
Status Bar light content doesn't work this is not duplicated question I couldn't found answer in this website i have tried all this methods below override var preferredStatusBarStyle: UIStatusBarStyle { return .lightContent } this is my first time to face this kind of this code works in my Previous apps ...
46,360,590
Access value in object with . in it's name
<p>So I'm playing around with creating a Facebook chatbot. In order to talk to Facebook I need to validate I have ownership of the URL I give Facebook in the Webhooks panel.</p> <p>I have an express route that looks like</p> <pre><code>app.get('/api/verification', (req, res) =&gt; { // Send back hub.challenge }); <...
<javascript><node.js><facebook><express>
2017-09-22 08:50:27
LQ_CLOSE
Access value in object with . in it's name <p>So I'm playing around with creating a Facebook chatbot. In order to talk to Facebook I need to validate I have ownership of the URL I give Facebook in the Webhooks panel.</p> <p>I have an express route that looks like</p> <pre><code>app.get('/api/verification', (req, res)...
39,568,174
Cant access value returned from PHP script
My PHP script returns response like {"message":"","response":{"key1":"value1","key2":"value2"}} How can I access/print the value of key1/key2 in Swift 2.2?
<ios><json><swift>
2016-09-19 08:04:19
LQ_EDIT
Cant access value returned from PHP script My PHP script returns response like {"message":"","response":{"key1":"value1","key2":"value2"}} How can I access/print the value of key1/key2 in Swift 2.2?
52,074,261
Getting Dynamic Constants in laravel
I am having one table named as <b>Settings</b> and fields are <b>id</b>,<b>constant_name</b>,<b>constant_value</b>,<b>Timestampsfield</b> and values are<br> constant_name &nbsp; constant_value<br> <b>sitename</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>My sitename</b> <br> How ca...
<laravel>
2018-08-29 09:39:41
LQ_EDIT
Getting Dynamic Constants in laravel I am having one table named as <b>Settings</b> and fields are <b>id</b>,<b>constant_name</b>,<b>constant_value</b>,<b>Timestampsfield</b> and values are<br> constant_name &nbsp; constant_value<br> <b>sitename</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n...
55,442,878
Organize local code in packages using Go modules
<p>I can not find a way to factor out some code from <code>main.go</code> into a local package when using Go modules (go version >= 1.11) outside of <code>$GOPATH</code>.</p> <p>I am not importing any external dependencies that need to be included into <code>go.mod</code>, I am just trying to organize locally the sour...
<go><go-modules><go-packages>
2019-03-31 16:15:06
HQ
Organize local code in packages using Go modules <p>I can not find a way to factor out some code from <code>main.go</code> into a local package when using Go modules (go version >= 1.11) outside of <code>$GOPATH</code>.</p> <p>I am not importing any external dependencies that need to be included into <code>go.mod</cod...
44,891,405
How to run multiple functions inside a foreach loop
<p>I would like to run a foreach loop with three functions inside of it but only the first function runs.</p> <p>Here is my code</p> <pre><code>function import_events() { global $wpdb; $query_name = $wpdb-&gt;prefix . 'options'; $options = $wpdb-&gt;get_results("SELECT option_name, option_value FROM $query_na...
<php>
2017-07-03 17:44:53
LQ_CLOSE
How to run multiple functions inside a foreach loop <p>I would like to run a foreach loop with three functions inside of it but only the first function runs.</p> <p>Here is my code</p> <pre><code>function import_events() { global $wpdb; $query_name = $wpdb-&gt;prefix . 'options'; $options = $wpdb-&gt;get_resu...
41,538,436
C# IoC containers
<p>I've always used C# interfaces to achieve inversion of control. But then I found this article which compares a bunch of IoC containers. What is the difference between these containers and a C# interface? </p> <p><a href="http://www.palmmedia.de/blog/2011/8/30/ioc-container-benchmark-performance-comparison" rel="nof...
<c#><containers><inversion-of-control>
2017-01-08 22:08:30
LQ_CLOSE
C# IoC containers <p>I've always used C# interfaces to achieve inversion of control. But then I found this article which compares a bunch of IoC containers. What is the difference between these containers and a C# interface? </p> <p><a href="http://www.palmmedia.de/blog/2011/8/30/ioc-container-benchmark-performance-co...
41,159,110
Restart java program
<p>I was hoping to get some help. I have a java game of battleship and wanted to give the player the option to play again when they finished, but don't really know how. Any help will be great!</p> <pre><code>public class Battle { public static void main(String[] args) throws IOException{ int[][] board = new int[...
<java><application-restart>
2016-12-15 07:58:02
LQ_CLOSE
Restart java program <p>I was hoping to get some help. I have a java game of battleship and wanted to give the player the option to play again when they finished, but don't really know how. Any help will be great!</p> <pre><code>public class Battle { public static void main(String[] args) throws IOException{ int...
41,339,488
Quickest way to turn off the delete option in swipe to delete in Xcode 8
Hello fellow programmers, I know all about the swipe to delete with table view function, but what would be the easiest way to have an image view simply swipe to delete with the delete option not opening on the side, but simply deleting right away. I have done some looking but I can't find a good answer, thanks for the ...
<ios><swift><uitableview>
2016-12-27 05:27:32
LQ_EDIT
Quickest way to turn off the delete option in swipe to delete in Xcode 8 Hello fellow programmers, I know all about the swipe to delete with table view function, but what would be the easiest way to have an image view simply swipe to delete with the delete option not opening on the side, but simply deleting right away....
53,065,394
using regular expression in python to read from string in specific format
str="RegName1,Regname2,0x00000000,0x100000" I want to use a regular expression to get this values I try this but it doesn't work. re.match(str,'\s+,\s+,\d+,\d+') Note: I want to ignore comments like "//", "#" and etc..
<python><python-3.x>
2018-10-30 13:28:07
LQ_EDIT
using regular expression in python to read from string in specific format str="RegName1,Regname2,0x00000000,0x100000" I want to use a regular expression to get this values I try this but it doesn't work. re.match(str,'\s+,\s+,\d+,\d+') Note: I want to ignore comments like "//", "#" and etc..
40,394,959
Circular dependencies in ES6/7
<p>I was surprised to find that in Babel, I could have two modules <code>import</code> each other without any issues. I have found a few places that refer to this as a known and expected behaviour in Babel. I know that this is widely considered an anti-pattern by a lot of (I'm guessing most) people, but please ignore t...
<javascript><ecmascript-6><babeljs><circular-dependency><ecmascript-7>
2016-11-03 06:15:04
HQ
Circular dependencies in ES6/7 <p>I was surprised to find that in Babel, I could have two modules <code>import</code> each other without any issues. I have found a few places that refer to this as a known and expected behaviour in Babel. I know that this is widely considered an anti-pattern by a lot of (I'm guessing mo...
57,931,494
How to know what company protect a website?
<p><a href="https://www.genecards.org" rel="nofollow noreferrer">https://www.genecards.org</a> is protected by cloudflare. But this is not clear from the HTML webpages on genecards.org. Is there a systematically to figure out this kind of information for a number of websites? Thanks.</p>
<web-scraping>
2019-09-14 00:10:11
LQ_CLOSE
How to know what company protect a website? <p><a href="https://www.genecards.org" rel="nofollow noreferrer">https://www.genecards.org</a> is protected by cloudflare. But this is not clear from the HTML webpages on genecards.org. Is there a systematically to figure out this kind of information for a number of websites?...
35,579,348
Swift 1.2 -> Swift 2
<p>I'm coding an app for my Kids. I have background in Java but havn't professionally coded in a decade. I don't thoroughly understand how the following line works but it worked in Swift 1.2:</p> <pre><code>leaderboardRequest.loadScoresWithCompletionHandler({ (scores:[AnyObject]!, error:NSError!) -&gt; Void in ...
<ios><swift>
2016-02-23 13:50:02
LQ_CLOSE
Swift 1.2 -> Swift 2 <p>I'm coding an app for my Kids. I have background in Java but havn't professionally coded in a decade. I don't thoroughly understand how the following line works but it worked in Swift 1.2:</p> <pre><code>leaderboardRequest.loadScoresWithCompletionHandler({ (scores:[AnyObject]!, error:NSError!) ...
35,739,103
Using IF in BigQuery SQL
<p><strong>Case</strong>: I have Sales table in BQ and item_num column contains values 1, -1 and 0. I want to count how many cases I have for each value.</p> <p>Tried a simple query below, but count returns exactly the same number for each case.. What I am missing?</p> <pre><code>SELECT count(if(item_num &gt; 0,1, 0...
<google-bigquery>
2016-03-02 05:22:03
HQ
Using IF in BigQuery SQL <p><strong>Case</strong>: I have Sales table in BQ and item_num column contains values 1, -1 and 0. I want to count how many cases I have for each value.</p> <p>Tried a simple query below, but count returns exactly the same number for each case.. What I am missing?</p> <pre><code>SELECT coun...
42,663,887
how to unpack a tuple in this form ('abc', [20, 20])?
<p>I want this to be unpacked in two variable for examaple. something like..</p> <pre><code>a,*b = ('abc', [20,20]) </code></pre> <p>i want a to contain 'abc' and b to hold the list [20,20].</p>
<python><list><python-3.x><tuples>
2017-03-08 05:48:14
LQ_CLOSE
how to unpack a tuple in this form ('abc', [20, 20])? <p>I want this to be unpacked in two variable for examaple. something like..</p> <pre><code>a,*b = ('abc', [20,20]) </code></pre> <p>i want a to contain 'abc' and b to hold the list [20,20].</p>
40,572,436
android java.lang.NoClassDefFoundError: org.bouncycastle.crypto.engines.AESEngine api 16
<p>I am using <code>com.nimbusds.jose.crypto</code> library in my android client for doing some jwt stuff. </p> <p>This is what i declare in my gradle file : </p> <pre><code> compile 'com.nimbusds:nimbus-jose-jwt:4.23' </code></pre> <p>Everything works fine on api >=19, but when I am running the code on api 16, I...
<java><android>
2016-11-13 09:37:02
HQ
android java.lang.NoClassDefFoundError: org.bouncycastle.crypto.engines.AESEngine api 16 <p>I am using <code>com.nimbusds.jose.crypto</code> library in my android client for doing some jwt stuff. </p> <p>This is what i declare in my gradle file : </p> <pre><code> compile 'com.nimbusds:nimbus-jose-jwt:4.23' </code>...
46,529,008
Extract the part of the String Starting from special character c#
<p>I am trying to extract a part of the string starting from the character '-' . The String looks likes this Aaron,A-5767 I need to get just the 5767, that is extracting part of the string starting from the special character.</p> <p>I understanding using the below substring function that selects from start of the stri...
<c#><string>
2017-10-02 15:46:49
LQ_CLOSE
Extract the part of the String Starting from special character c# <p>I am trying to extract a part of the string starting from the character '-' . The String looks likes this Aaron,A-5767 I need to get just the 5767, that is extracting part of the string starting from the special character.</p> <p>I understanding usin...
56,413,658
How do you load a class that is not in the classpath & is in a jar?
<p>I want to load a class that is in a jar.</p> <p>I already tried to just load the class using this code:</p> <pre class="lang-java prettyprint-override"><code>URL dirUrl = jarFile.toURL(); URLClassLoader ucl = new URLClassLoader(new URL[] {dirUrl}, getClass().getClassLoader()); Class&lt;?&gt; clazz = ucl.loadClass(...
<java>
2019-06-02 09:07:09
LQ_CLOSE
How do you load a class that is not in the classpath & is in a jar? <p>I want to load a class that is in a jar.</p> <p>I already tried to just load the class using this code:</p> <pre class="lang-java prettyprint-override"><code>URL dirUrl = jarFile.toURL(); URLClassLoader ucl = new URLClassLoader(new URL[] {dirUrl},...
54,469,902
How should I install Bootstrap?
<p>I learned two ways: Putting some links directly into your html file and installing a Bootstrap app using a terminal. What’s the difference between these two ways and witch is better?</p>
<html><twitter-bootstrap><frameworks>
2019-01-31 22:03:59
LQ_CLOSE
How should I install Bootstrap? <p>I learned two ways: Putting some links directly into your html file and installing a Bootstrap app using a terminal. What’s the difference between these two ways and witch is better?</p>
55,352,800
why regex work well in java but not working in c++?
use c++ ``` std::regex reg("[\\s\\S]*abc[\\s\\S]*:(\\S+)"); std::string src = " abc-def gg, :OK"; std::smatch match; bool flag = std::regex_search(src, match, reg); // flag is false ``` use java ``` Pattern p = Pattern.compile("[\\s\\S]*abc[\\s\\S]*:(\\S+)"); Strin...
<java><c++><regex>
2019-03-26 08:33:33
LQ_EDIT
why regex work well in java but not working in c++? use c++ ``` std::regex reg("[\\s\\S]*abc[\\s\\S]*:(\\S+)"); std::string src = " abc-def gg, :OK"; std::smatch match; bool flag = std::regex_search(src, match, reg); // flag is false ``` use java ``` Pattern p = Pattern.com...
49,846,386
Why would webpack 4 generate files named 0.js, 1.js 2.js?
<p>In my attempts to switch from webpack 3 to 4, I use a configuration that simplified looks like the following extract. The build is successful but generates some chunks that have only a number a filename and I cannot seem to understand why?</p> <pre><code>0.css 12.5 KiB 0 [emitted] 0....
<webpack>
2018-04-15 20:19:37
HQ
Why would webpack 4 generate files named 0.js, 1.js 2.js? <p>In my attempts to switch from webpack 3 to 4, I use a configuration that simplified looks like the following extract. The build is successful but generates some chunks that have only a number a filename and I cannot seem to understand why?</p> <pre><code>0.c...
59,669,922
How to format this date string format "2018-03-30T14:36:10.093" into Date in Swift
<p>I'm trying to get the Date object for this string format "2018-03-30T14:36:10.093" in Swift, but I don't get it. It is not ISO8601 because of that point after the number 10.</p> <p>Any solutions?</p>
<swift><date><dateformatter>
2020-01-09 18:13:54
LQ_CLOSE
How to format this date string format "2018-03-30T14:36:10.093" into Date in Swift <p>I'm trying to get the Date object for this string format "2018-03-30T14:36:10.093" in Swift, but I don't get it. It is not ISO8601 because of that point after the number 10.</p> <p>Any solutions?</p>
54,221,481
Remove underline from HTML
<p>I am looking for how to remove the underline from this bit of HTML </p> <p>I tried this but have no idea where to place it in this line. (I am not a developer) </p> <pre><code>&lt;a href="%%unsubscribe%%"&gt;&lt;span style="color:#15BECE;"&gt;Unsubscribe&lt;/span&gt;&lt;/a&gt; from email communications&lt;br&gt; <...
<html>
2019-01-16 16:35:54
LQ_CLOSE
Remove underline from HTML <p>I am looking for how to remove the underline from this bit of HTML </p> <p>I tried this but have no idea where to place it in this line. (I am not a developer) </p> <pre><code>&lt;a href="%%unsubscribe%%"&gt;&lt;span style="color:#15BECE;"&gt;Unsubscribe&lt;/span&gt;&lt;/a&gt; from email...
39,946,381
Binding in ViewHolder
<p>This will be theoretical question.</p> <p>As everyone we use RecyclerView in many parts of the app. Sometimes RecyclerView contains different items, not only image for example, but ads, hints etc. And that's why we can use getViewType() method in Adapter. </p> <p>But problem occurs when we have many viewTypes and ...
<android><android-recyclerview><android-viewholder>
2016-10-09 17:21:49
HQ
Binding in ViewHolder <p>This will be theoretical question.</p> <p>As everyone we use RecyclerView in many parts of the app. Sometimes RecyclerView contains different items, not only image for example, but ads, hints etc. And that's why we can use getViewType() method in Adapter. </p> <p>But problem occurs when we ha...
51,438,121
WebRtc Architecture - Are videos stored by Webrtc?
<p>I have a simple question. After peer connection is established how video is transmitted from Peer. Does the video go to some Server of webrtc for transcoding? Or is stored somewhere by webrtc temporarily/permanently? If it is stored do they use the data for any processing or share with businesses.</p>
<webrtc>
2018-07-20 08:19:33
LQ_CLOSE
WebRtc Architecture - Are videos stored by Webrtc? <p>I have a simple question. After peer connection is established how video is transmitted from Peer. Does the video go to some Server of webrtc for transcoding? Or is stored somewhere by webrtc temporarily/permanently? If it is stored do they use the data for any proc...
48,181,903
Is installing Visual studio 2015 enterprise edition sufficient to work with C++1/C++14?
I want to work with C++ 11 (if not C++ 14). I am installing visual studio 2015 enterprise edition. Is this sufficient? Regards PMJ
<c++><visual-studio><c++11>
2018-01-10 06:59:10
LQ_EDIT
Is installing Visual studio 2015 enterprise edition sufficient to work with C++1/C++14? I want to work with C++ 11 (if not C++ 14). I am installing visual studio 2015 enterprise edition. Is this sufficient? Regards PMJ
48,625,432
Creating a big pandas Dataframe
<p>My code is retrieving historical data of 365 days back from today of 50 different stocks.</p> <p>I want to store all those data in one dataframe to make it easier to analyse, here I want to filter all those data, date wise and calculate number of advancing/declining stocks at a given date.</p> <p>My code:</p> <pr...
<python-3.x><pandas><dataframe>
2018-02-05 15:02:59
LQ_CLOSE
Creating a big pandas Dataframe <p>My code is retrieving historical data of 365 days back from today of 50 different stocks.</p> <p>I want to store all those data in one dataframe to make it easier to analyse, here I want to filter all those data, date wise and calculate number of advancing/declining stocks at a given...
44,634,193
Integrating Google Maps in vue.js
<p>I've been trying to initialize a Google map on my vue.js project while including the script :</p> <pre><code>&lt;script src="https://maps.googleapis.com/maps/api/js?key="MY_API_KEY"&amp;callback=initMap" async defer&gt;&lt;/script&gt; </code></pre> <p>The problem is that my .vue files look like that : </p> <pre><...
<javascript><google-maps><vue.js>
2017-06-19 15:13:40
HQ
Integrating Google Maps in vue.js <p>I've been trying to initialize a Google map on my vue.js project while including the script :</p> <pre><code>&lt;script src="https://maps.googleapis.com/maps/api/js?key="MY_API_KEY"&amp;callback=initMap" async defer&gt;&lt;/script&gt; </code></pre> <p>The problem is that my .vue f...
53,457,474
AWS cloudformation error: Template validation error: Template error: resource NotificationsTopic does not support attribute type Arn in Fn::GetAtt
<p>I am trying to create an AWS cloudformation stack using a yaml template. The goal is to create a sns topic for some notifications. I want to output the topic arn, to be able to subscribe multiple functions to that topic by just specifying the topic arn.</p> <p>However I am getting an error when I try to create the ...
<amazon-web-services><amazon-cloudformation><amazon-sns><aws-serverless>
2018-11-24 11:04:32
HQ
AWS cloudformation error: Template validation error: Template error: resource NotificationsTopic does not support attribute type Arn in Fn::GetAtt <p>I am trying to create an AWS cloudformation stack using a yaml template. The goal is to create a sns topic for some notifications. I want to output the topic arn, to be a...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
26