date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/19
1,103
3,199
<issue_start>username_0: Is someone can explain me this behavior ? ``` const object1 = { a: { d : 1, e : 4 }, b: 2, c: 3 }; const object2 = Object.assign({}, object1); console.log('object1 :', object1); console.log('object2 :', object2); delete object2.a; console.log('object1 :', object1); console.log...
2018/03/19
775
2,531
<issue_start>username_0: I'm trying to extract the degree rate from the CSS transform property, ``` transform = "rotate(33.8753deg) translateZ(0px)" ``` with a regular expression. So far I've succeeded to get almost the exact number: ``` const re = new RegExp('.*rotate( *(.*?) *deg).*', 'm'); let degRate = transfor...
2018/03/19
858
3,027
<issue_start>username_0: I'm using SoundPlayer object to play audio on my web application in c# now. But when I tried to play .mp3 file it wasn't successful. How can I play mp3 file on a c# web application from a url? I'm having the url of the audio to be played. This is the code I'm using to play .wav audio file, but...
2018/03/19
1,318
5,081
<issue_start>username_0: I'm developing a simple search box in my application, and I want to highlight multiple words in one sentence. I use [SpannableString](https://developer.android.com/reference/android/text/SpannableString.html) to add multiple span in one sentence. Here the function a wrote ``` private CharSequ...
2018/03/19
1,844
4,993
<issue_start>username_0: Suppose I have a vector as follows ``` std::vector v = {3, 9, 7, 7, 2}; ``` I would like to sort this vector of elements so that the vector will be stored as 77932. So first, we store the common elements (7), then we sort the remaining elements from the highest to the lowest. If I have a v...
2018/03/19
1,484
5,148
<issue_start>username_0: I have written a script to convert a text file into dictionary.. script.py ``` l=[] d={} count=0 f=open('/home/asha/Desktop/test.txt','r') for row in f: rowcount+=1 if row[0] == ' ' in row: l.append(row) else: if count == 0: temp = row coun...
2018/03/19
1,302
4,457
<issue_start>username_0: Can someone help on the below error ``` npm install nightwatch --save ERR! code EPROTO npm ERR! errno EPROTO npm ERR! request to https://registry.npmjs.org/nightwatch failed, reason: write EPROTO 101057795:error:14077419:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert access denied:openssl...
2018/03/19
725
2,873
<issue_start>username_0: I came across this bug in some code running on a Blackfin 533 processor. The first time `Func()` runs, `fooStruct` will contain garbage, but in the next iteration, the old value that was returned by `getFoo()` will by chance still be in `fooStruct.foo`. ``` FooStruct { double foo; do...
2018/03/19
242
841
<issue_start>username_0: I’m working on a project which is an online shop, I want to show in a page the most sold items, So my sql is ``` Select (*), Count(Product_ID) as n from Order_Details order by n desc. ``` But it doesn’t work. Can someone help?<issue_comment>username_1: You need to aggregate the data first, t...
2018/03/19
654
2,366
<issue_start>username_0: I already asked a question about this 2 days ago, here are the links [Got "password authentication failed for user" but in pgAdmin 3 its working](https://stackoverflow.com/questions/49332711/got-password-authentication-failed-for-user-but-in-pgadmin-3-its-working) But I still didn't get an ans...
2018/03/19
248
1,000
<issue_start>username_0: I want to do something like this: **HTML code:** ``` [Click Me](#) ``` **JavaScript code:** ``` function myfun(event) { event.preventDefault(); alert("OK"); } ``` **I know we can code like below :** ``` document.getElementById("myAnchor").addEventListener("click", function(eve...
2018/03/19
325
1,267
<issue_start>username_0: I've just reinstalled VS 2017 15.6.2 using web installer and tried to create new empty Asp.net core 2.0 project. But when i open it i got error: > > Project file is incomplete. Expected imports are missing. > > > My version of SDK is 2.1.101, which was installed with visual studio. I...
2018/03/19
349
1,267
<issue_start>username_0: I have some crystal reports on a website. They are working fine on my local machine. I'm using `Crystal Reports version 13.0.3500.0` The test environment it is on another server, `Windows 2008 R2`, 64 bit operating system. The problem is that when on the test environment I want to use a crsyt...
2018/03/19
464
1,767
<issue_start>username_0: I have a DAL project with this ApplicationContext.cs ``` [DbConfigurationType(typeof(MyConfiguration))] public class ApplicationDbContext : IdentityDbContext { public ApplicationDbContext() : base("DefaultConnection", throwIfV1Schema: false) { } ... } ``` but when I instance it in an other...
2018/03/19
689
2,614
<issue_start>username_0: [![enter image description here](https://i.stack.imgur.com/VMu1X.png)](https://i.stack.imgur.com/VMu1X.png)I am using bitmap.But after capturing image I am trying to save image in External storage it is getting blured.Please give me solution. This is my code - ``` public void saveImageToExtern...
2018/03/19
1,339
4,485
<issue_start>username_0: I'm busy on an angular/nativescript project but I can't get the application running on the iOS emulator. The build itself is successful but the deployment fails. ``` Unable to apply changes on device: B1F01CA0-AEC5-452A-9D85-957B8BC398E3. Error is: Unable to get application path on device.. `...
2018/03/19
387
1,524
<issue_start>username_0: I need to load an item when the CheckBox is selected and if it is selected it should disappear because something else will be loaded. Where did I make a mistake in this case? XAML: ``` Load linek [kN/m] ``` NegatingConverter ``` [ValueConversion(typeof(bool), typeof(bool))] public c...
2018/03/19
1,033
3,039
<issue_start>username_0: I'm trying to set up CI with AWS ECS and docker. I use Codeship as a CI tool, but that should not really matter much. I do the following steps in a shell script: * build an image with my Dockerfile, * push the image to ECS repository, * push a task-definition.json to ECS `aws ecs register-tas...
2018/03/19
622
1,781
<issue_start>username_0: i have a table mark\_summery, Here is my table structure ![](https://i.stack.imgur.com/qfopO.png) now i just want to sum the "obt\_marks" and "total\_marks" of specific student with multiple exams (maximum four). "multiple exams mean summation of four exams " how can i sql it. any idea.?<issu...
2018/03/19
1,911
4,257
<issue_start>username_0: I would like to write the outputs of the following code in a text file. It gives this error: `for x in zip(c(), R1): TypeError: zip argument #1 must support iteration` I could not find any solution. Any help please? ``` import numpy as np from math import * from scipy.integrate import quad f...
2018/03/19
1,194
4,140
<issue_start>username_0: I'm trying to follow the examples found [here](https://learn.microsoft.com/en-US/dynamics365/customer-engagement/developer/clientapi/reference/xrm-navigation/openform "here") that explain how to use `Xrm.Navigation.openForm` method to open a CRM form for a new entity. My target entity has mult...
2018/03/19
401
1,349
<issue_start>username_0: ``` void slpEnableService (void) { STATUS status; slp_task_msg_t msg; int slpEventBuf = 1; msg.id = SLP_MSG_ENABLE; status = msgQSend(slp_msg_queue, (char *)&msg, sizeof(slp_task_msg_t), NO_WAIT, MSG_PRI_NORMAL); assert(status == OK); write(slp_fifo_wr_...
2018/03/19
1,050
3,682
<issue_start>username_0: I faced a little trouble. I just wrote a simple shell script to show a few dependencies of maven in files. It works fine. But the only problem. During the process, I show an information about this process progress and so on (I described that in the example below). And one of the lines I display...
2018/03/19
300
1,036
<issue_start>username_0: I use python 3.6.4 and my OS is macOS High Sierra. So I've installed `pynput`. I can import it well on terminal, however, not on Python IDLE. ![enter image description here](https://i.stack.imgur.com/5XuHw.png) I've used `sys.version` & `sys.path` and they're the same. I only have python 3.6 ...
2018/03/19
405
1,372
<issue_start>username_0: As you can see below. The first photo works fine when ``` this.state.blabal ``` is NOT inside the ``` map(a, b){blabla} ``` but like as photo2, when i move the working-fine block inside the ``` map(a, b){`here!!`} {Object.keys(newsProviderID_Name_Dic).map(function(key, index){ ...
2018/03/19
631
2,531
<issue_start>username_0: After a button click, I want to create an Intent for browsing files and selecting a directory. Then I want to store a path for this directory in shared preferences. Later I want to use this path as an argument for a File object, so I can, for example, get a parent directory of a directory I pic...
2018/03/19
748
1,905
<issue_start>username_0: Hello, everybody, I have this task: I have an array [4,7,3,6,9] and I have to make an array like this: ``` [4,7,3,6,9] [9,4,7,3,6] [6,9,4,7,3] [3,6,9,4,7] [7,3,6,9,4] ``` I have to make a program where array is rotating even if I add a new item to an array it should change accordingly. I am ...
2018/03/19
787
2,074
<issue_start>username_0: Is it possible to do this? Here is my code: ``` $sponsor1 = "Sponsor 1"; $sponsor2 = "Sponsor 2"; $sponsor3 = "Sponsor 3"; $sponsor4 = "Sponsor 4"; $sponsor5 = "Sponsor 5"; for($i=1;$i<=5;$i++) { if($sponsor.$i){ echo $sponsor.$i; echo " "; }} ``` I want the above loop can display like thi...
2018/03/19
902
2,671
<issue_start>username_0: The Unit test code from the simplegraph-core testsuite below displays the region count of airports but it is not ordered as I would have expected. The result starts with: ``` NZ-BOP= 3 MZ-A= 1 MZ-B= 1 IN-TN= 5 MZ-N= 1 PW-004= 1 MZ-I= 2 BS-FP= 1 IN-TR= 1 MZ-T= 1 BJ-AQ= 1 GB-ENG= 27 ...
2018/03/19
2,121
8,390
<issue_start>username_0: I've got the following route: ``` public void configure() throws Exception { from(ftpEndpoint) .routeId("import-lib-files") .log(INFO, "Processing file: '${headers.CamelFileName}' from Libri-FTP") .choice() .when(method(isFilenameAlreadyImported)) ...
2018/03/19
526
1,683
<issue_start>username_0: In css, I have class 'current-cat-parent' and class 'hide-it'. One is on the top of page and 2nd is in mid of page. Now the thing is, I want to make appear 'hide-it' class's content only if class 'current-cat-parent' exist somewhere in the page, otherwise hide that content. Please let me...
2018/03/19
221
902
<issue_start>username_0: I have a problem with my account in windows. It disappeared and I can't find a way to recover it. So I can't access my data on comp and my jobs are not up in the cloud. Is any chance that I can recover my jobs with my talend account? Thank you!<issue_comment>username_1: if your disk (hdd) not ...
2018/03/19
1,113
3,374
<issue_start>username_0: Is there any easy way to find out what's the trend of the list? For example: * `[5.0, 6.0, 9.0, 4.0, 10.0]`. On the whole, its elements are increasing over time. * `[6.0, 4.0, 5.0, 4.0, 3.0]`. Its elements are decreasing over time. Ideally, I want a Boolean result from these kinds of lists. ...
2018/03/19
1,778
6,211
<issue_start>username_0: I am writing Unit test cases for my application. There is one function which is written in Utils section and Used in all files. I wanted to mock this Utils function whenever I need but I am unable to do so. Here is my code setup: Utils.js ``` > const getData = (name) => "Hello !!! " + name; ...
2018/03/19
724
2,854
<issue_start>username_0: I am wondering how does Keras compute a metric (a custom one or not). For example, suppose I have the following metric which yields the maximal error between the prediction and the ground truth: ``` def max_error(y_true, y_pred): import keras.backend as K return K.max(K.abs(y_true-y...
2018/03/19
1,600
4,585
<issue_start>username_0: I have PHP code below that will check for two associative arrays. My problem is that, this code perform many loops and I don't want it cause it affects the performance of my application. Is there any way or function in PHP that will automatically detect for duplicate? And result with the same a...
2018/03/19
702
2,386
<issue_start>username_0: I have the following service... ``` apiVersion: v1 kind: Service metadata: name: mongo labels: app: mongo spec: ports: - name: mongo port: 27017 clusterIP: None selector: app: mongo ``` And the following stateful set... ``` apiVersion: apps/v1 kind: StatefulSet met...
2018/03/19
708
2,708
<issue_start>username_0: I have this program which I am working into. Then when I started to debug it, it seems perfectly running smooth. But then it just stops and then a note popped up > > System.Data.SqlClient.SqlException Incorrect syntax near '`'.' > > > Here is my code. ``` public void searchData(string va...
2018/03/19
521
2,023
<issue_start>username_0: I want to expand the grid view by clicking pus image on the gridview. But my below code is not working. How can i do this? Code :<issue_comment>username_1: The params in the concat function are surrounded by quotes, which doesnt make sense. Those have to be the column names. Change your query...
2018/03/19
1,058
3,855
<issue_start>username_0: I have a little specific case here and I'm struggling with it. I'm trying to insert in information into database, but the situation is slightly different from the other cases I've watched. The things I have to do is: 1. Create a HTML form, and the values should come with `$_POST` request fro...
2018/03/19
348
789
<issue_start>username_0: I have an array `a=[2,4,5,'Flag',3,7,'Flag',2,5]`. Want to break this up into `b[0]=[2,4,5]`,`b[1]=[3,7]`,`b[2]=[2,5]` How do I do this? Can use numpy.<issue_comment>username_1: You could use [`itertools.groupby()`](https://docs.python.org/3/library/itertools.html#itertools.groupby): ``` >>>...
2018/03/19
927
3,035
<issue_start>username_0: I am looking to import an excel workbook into R with multiple sheets. However, I can't seem to quite make this work. The code I have been using is the following: ``` library(XLConnect) # Read Excel Sheet excel <- loadWorkbook("C:/Users/rawlingsd/Downloads/17-18 Prem Stats.xlsx") # get sheet na...
2018/03/19
1,622
5,037
<issue_start>username_0: Hello everybody I have a script that loops an array that put data in a CSV file, i need to count the rows with same ID. this is my scritpt that loops the array and put it in a csv file for export. ``` public function fputToFile($file, $allexportfields, $object, $ae) { if($allexportfields...
2018/03/19
845
2,736
<issue_start>username_0: I have an input time in UTC and want to convert it to the device's local time. I want to use the TryParse method to avoid exceptions. The input time is 7 PM. Expected `out DateTime date` parameter is 20:00. Instead it becomes 21:00. My time zone is GMT+1 Central European Time. It is not curre...
2018/03/19
566
2,161
<issue_start>username_0: I get crash with GCD once point at ``` + (instancetype)sharedInstance { static TabBarViewController *_sharedInstance = nil; static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ _sharedInstance = [[TabBarViewController alloc] init]; }); return _sharedInst...
2018/03/19
569
1,743
<issue_start>username_0: I have `If Not` statement with 2 `or` but the code runs still like it is regular `If` statement. Moncol is an integer variable that equales 13 and the if statement should go to End If, and it is not. This code should delete columns just when `Moncol` not equals 12 or 13 or 14. ``` With NewPayW...
2018/03/19
564
2,042
<issue_start>username_0: I have my sidebar menus located in the `main.scala.html` as a default and put all the other contents in separate `*.scala.html` pages. I realized that I need to put `user id` on sidebar menu and it has to appear all the time. Is it possible to put other parameters in `main.scala.html` page wh...
2018/03/19
612
2,298
<issue_start>username_0: I used python to get a json response from a website ,the json file is as follows: ``` { "term":"albany", "moresuggestions":490, "autoSuggestInstance":null, "suggestions":[ { "group":"CITY_GROUP", "entities":[ { "geoId":"1000000000000000355", ...
2018/03/19
1,464
5,428
<issue_start>username_0: Trying to do a redirect depending on user status in my app (logged in or not), but it won't work as I want it to as I am not sure how to get the BuildContext inside the method. ``` import 'dart:async'; import 'package:flutter/material.dart'; import 'package:shared_preferences/shared_preference...
2018/03/19
408
1,393
<issue_start>username_0: I have read the forums to find a solution for my issue but I am stuck with a MySQL error when I use the query. I want to extract part of a field, everything that is after `\\nt4\applications\prod\hde\atn\` in the FILE\_NAME column Here is the query: ``` SELECT FILE_NAME, REPLACE (FILE_NAME,'\...
2018/03/19
2,019
7,658
<issue_start>username_0: I have a PowerShell script to backup a database. But today it has stoped working with next error: ``` Backup-SqlDatabase : The term 'Backup-SqlDatabase' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was incl...
2018/03/19
881
3,640
<issue_start>username_0: I would like to run Python scripts in various stages of Jenkins (pipeline) jobs, abroad a wide range of agents. I want the same Python environment for all of these, so I'm considering using Docker for this purpose. I'm considering using Docker to build an image that contains the Python environ...
2018/03/19
135
575
<issue_start>username_0: How I can retrieve pagination result when trying to call spring data JPA stored procedure.<issue_comment>username_1: There is no explicit support for this. Therefore all you can really do is create a wrapper method, that takes pageable, uses it to pass the required parameters to the stored pro...
2018/03/19
257
813
<issue_start>username_0: I have a huge file structured : ``` >ABC_123|XX|YY|ID CNHGYDGHA >BBC_153|XX|YY|ID ACGFDRER ``` I need to split this file by based on first value on line ``` File1: ABC_123 -> should contain >ABC_123|XX|YY|ID CNHGYDGHA File2: BBC_153 -> should contain >BBC_153...
2018/03/19
6,588
18,415
<issue_start>username_0: So Im working on **opengl** project from learnopengl and I am a beginner in C++ so I have little problem with it. It is a VS2017 project. I have problem with `main.cpp`, when I compile it it shows this error: > > name followed by '::' must be a class or namespace > > > * it is in (FileS...
2018/03/19
916
2,835
<issue_start>username_0: I want to extract Vimeo Id from its URL. I have tried to many solutions but not found what I exactly want for swift. I refer to many questions and found one solution in JAVA. I want same behaviour in iOS swift so I can extract the ID from matched group array. [Using Regular Expressions to Extr...
2018/03/19
2,466
6,384
<issue_start>username_0: I have a question in which I can't find answer or don't know how to search for answer. I don't know how to position text above image in a way that I want them to align. The following image will clarify what I am asking. [![Example](https://i.stack.imgur.com/NqZQk.jpg)](https://i.stack.imgur....
2018/03/19
1,239
3,807
<issue_start>username_0: To avoid conflicts, I want to use a defined range of subnets for the `docker0` bridge and all interfaces dynamically created by the docker deamon when a new container is started. After a quick look in the docker documentation I found the promising **fixed-cidr** option. I added this option to ...
2018/03/19
309
1,121
<issue_start>username_0: I have a strange issue about using Retrofit2 in my android project. I got the issue about the server error since the request is something like that. <https://www.example.com/api/v1/skills?q=Good%00> Since the invalid value "%00" is not acceptable in our server, so it showed error on my activi...
2018/03/19
499
1,744
<issue_start>username_0: I can't seem to find the best answer to my question SO. I have this code that is "OK" but not idea ``` func mapView(_ mapView: MKMapView, regionDidChangeAnimated animated: Bool) { print(mapView.camera.altitude) if mapView.camera.altitude < 800.00 && !modifyingMap { ...
2018/03/19
252
865
<issue_start>username_0: I am trying to download the pdf using "download" attribute in an tag: ``` ``` But it is only opening in the next tab not downloading.<issue_comment>username_1: For reactjs, `download` att need value: ``` [your link]({fileUrl}) ``` fileUrl must be the same origin with the page Upvotes: 2 ...
2018/03/19
580
2,077
<issue_start>username_0: I have set constraint for my text field in story board. I want to create a table view under the text field with the following code. Setting the width similar to the `textfield.frame.size.width` brings the tableView all the way out of the screen, why? Please help. ``` -(void)cofigureAutoComTabl...
2018/03/19
507
1,812
<issue_start>username_0: I have 2 databases from which I have deleted rows in a specific table in order to decrease the size of the database. After deleting, the size of `DB.mdf` does not change. I also tried to rebuild the index and used `cleantable`, but to no effect! ``` ALTER INDEX ALL ON dbo.'Tablename' REBUILD...
2018/03/19
353
1,116
<issue_start>username_0: Here I'm trying to get the names of the checked items. For example I want to get the Name **Milk** and display it. Here it is the code: ```js var ckboxes=document.getElementsByClassName("ckbox"); for(i=0;i ``` ```html Milk ```<issue_comment>username_1: You can get the [next sibling no...
2018/03/19
1,314
4,397
<issue_start>username_0: ``` //Code 1 log.info undefined ``` When we run the code 1 , we get below error in soapui/readyapi as [![enter image description here](https://i.stack.imgur.com/gmX8h.png)](https://i.stack.imgur.com/gmX8h.png) **please note :-** Line number is visible in error message However to avo...
2018/03/19
841
2,721
<issue_start>username_0: [Similar to this unsolved question](https://stackoverflow.com/questions/24520950/json-numeric-check-and-phone-numbers) My PHP output requires `JSON_NUMERIC_CHECK` enabled, however there is one string **nick** column in my database that needs to be returned originally as a string. Values in tha...
2018/03/19
867
2,786
<issue_start>username_0: I am trying to filter out items by date. I want to get one item that has the dateFrom equel or bigger to today and dateTo equel or less then today. This is my query and reformat date function. In SharePoint Online I have the date set to `only date`. by default sharePoint sets the time part to 2...
2018/03/19
577
1,901
<issue_start>username_0: It used to work, but somehow it doesn't anymore and I cannot figure out why. I want to vertically and horizontally center an image inside a div frame. Right now it's horizontally centered, but not vertically, and instead on the top of the div. I have tried an inline-box which worked before. I'm...
2018/03/19
654
2,326
<issue_start>username_0: I have an Angular 5 application and I need to redirect all the traffic to Https when it's not already the case. I only have access to .htaccess to do that. At first, i had that configuration : ``` RewriteEngine On RewriteBase / RewriteRule ^index\.html$ - [L] RewriteCond %{REQUEST\_FILEN...
2018/03/19
507
1,572
<issue_start>username_0: Stuck in this Numpy Problem ``` country=['India','USA'] ​gdp=[22,33] import numpy as np a=np.column_stack((country,gdp)) array([['India', '22'], ['USA', '33']], dtype=' ``` I have an NDArray and I want to find the maximum of the 2nd column. I tried the below ``` print(a.max(axis=1)...
2018/03/19
1,106
4,452
<issue_start>username_0: I am studying Angular's change detection and I came across the following query: Let's take as base the following code: ``` @Component({ template: ` {{item}} ======== Change ` }) class MyApp { item:string = 'cheese'; changeModel() { this.item = 'bread'; } } ``` Once w...
2018/03/19
661
1,800
<issue_start>username_0: I have below mentioned tables: Table\_1 ``` ID Var1 Var2 1 123 10 2 456 12 3 789 11 4 112 14 ``` Table\_2 ``` ID Value2 Freq 1 123 5 2 555 4 3 779 7 4 112 8 ``` I want those `Var1` which are not present i...
2018/03/19
696
2,221
<issue_start>username_0: If we have a module name like this: ``` Module.V1.CountryTest ``` I can convert it to String like this: ``` Module.V1.CountryTest |> to_string ``` Now there are some interesting results I am getting on `iex` ``` module = Module.V1.CountryTest |> to_string "Elixir.Module.V...
2018/03/19
664
2,411
<issue_start>username_0: I have an email attribute in my database. I stored it in the `TINYTEXT`. But now I decided to encrypt it using `AES_ENCRYPT` and store it encrypted. With what type and size for the email should I go to avoid any problems whatsoever? From [the](https://dev.mysql.com/doc/refman/5.5/en/encryption...
2018/03/19
318
1,244
<issue_start>username_0: I was trying to commit the changes to my dev branch in Gitlab, but whenever i try to commit changes it shows the errors of ESLint and the commit gets aborted. I tried cloning the repository from dev branch and made changes and installed dependencies using '**npm install**' and the errors seem...
2018/03/19
271
922
<issue_start>username_0: I am a newbie in React and Node. I have two folders: 1. Client, hosted on 3000 2. Server, express on 3001 Registration worked fine form me, but after authentication `successRedirect:` to `http://localhost:3001/login` How to redirect it to client at `http://localhost:3000/login` ``` passport...
2018/03/19
1,434
4,551
<issue_start>username_0: in airflow, I would like to run a dag each monday at 8am (the execution\_date should be of course "current day monday 8 am"). The relevant parameters to set up for this workflow are : * `start_date` : "2018-03-19" * `schedule_interval` : "0 8 \* \* MON" I expect to see a dag run every monday ...
2018/03/19
985
3,392
<issue_start>username_0: I have a terminal command I run to download all URLs included in a supplied JSON file: ``` egrep -o 'https:[^\"]*png' file-name.json | xargs -n 1 curl -O ``` This works as expected, but some of the URL's are in different "sub-folders", e.g.: <https://website.com/a-folder-name/display/image....
2018/03/19
457
1,584
<issue_start>username_0: I am loading all assets and `js` & `css` from next page and store them in an `Array` but I forEach loop through the document and store the javascript link seperatly now so like this: ``` 0:{images: Array(61)} 1:{js: script} 2:{js: script} 3:{js: script} 4:{js: script} 5:{js: script} 6:{js: scr...
2018/03/19
330
1,111
<issue_start>username_0: Can the "IN" be used in an other clause than "WHERE"? For instance in an iif: ``` iif((([Date] IS NOT NULL) AND ([Result] in ('PassedWithHonors', 'Passed')), 'Passed', 'Failed))) ``` Thank you.<issue_comment>username_1: Try this: ``` case when [Date] IS NOT NULL AND [Result] in ('PassedWith...
2018/03/19
316
1,123
<issue_start>username_0: I have a WebView into which I'm loading a web page. I want to allow the user to zoom in on the web page in a similar fashion as they would with the web browser. Any ideas how to enable this? Thanks in advance<issue_comment>username_1: Try this: ``` case when [Date] IS NOT NULL AND [Result] in ...
2018/03/19
476
1,674
<issue_start>username_0: I have table in which I store the evauation results of customer. Evaluation can be triggered multiple times. Below is the sample data ``` CUSTOMER_EVAL_RESULTS: SEQ CUSTOMER_ID STATUS RESULT 1 100 C XYZ 3 100 C XYZ 7 10...
2018/03/19
860
2,704
<issue_start>username_0: I cannot debug the following code. I would like to update chart data (not add on top; delete current data and add completely new dataset). (Not)Working example on codepen: <https://codepen.io/anon/pen/bvBxpr> ``` var config = { type: 'line', data: { labels: ["January", "February", "Ma...
2018/03/19
659
2,367
<issue_start>username_0: I created simple test class for form `SearchForm.js` ``` import React from 'react'; import ReactDOM from 'react-dom'; const formContainer = document.querySelector('.form-container') class SeacrhForm extends React.Component { constructor(props) { super(props) this.state = { ...
2018/03/19
158
648
<issue_start>username_0: I want to prevent the autofocus on the first input element when open the PrimeNG dialog. ``` ``` Is there a possibility to prevent the autofocus?<issue_comment>username_1: Not sure if you're still looking for an answer but there is a `focusOnShow` attribute for p-dialog which defaults to `tr...
2018/03/19
386
1,362
<issue_start>username_0: I read about create variable for increment in select in this post [select increment counter in mysql](https://stackoverflow.com/questions/13566695/select-increment-counter-in-mysql) I need some addition to this query.. I need to reset the increment based on user\_id. Sample data : ``` id use...
2018/03/19
590
1,689
<issue_start>username_0: For Example: ``` var arr = ["tag1, tag2"] ``` I want to have the above array in `JSON` format as follows: ``` var arr = [ {"name": "tag1"}, {"name": "tag2"} ] ``` Can someone please help me out to solve this problem.<issue_comment>username_1: ``` var obj = { "name":"John", "age":...
2018/03/19
872
2,578
<issue_start>username_0: Is there a way I can add weight-age to specific fields in Mongo-db without indexing? Document Format: ``` { "_id" : "55b3551164518e48", "item" : "Item A", "price": 400, "added_date": "2015-07-22", "seller": "Seller A" },{ "_id" : "55b3551164518e49", "item" : "Item ...
2018/03/19
942
2,452
<issue_start>username_0: I tried to solve **problem set 16** in **projecteuler.net**. I am trying to find `2^1000` for which I had written a code in C with a function named `power()`.The problem here is that if i place `printf()` inside `power()` to get the result value, the answer is `107150860718626732094842504906000...
2018/03/19
628
2,027
<issue_start>username_0: I am working with 2 object types array in C#, One of my array is populated from MS Access and other in being filled from MySql. ``` object[] Product = [{123, "Tea"},{234, "Coffee"},{345, "Drinks"}]; // from MySql object[] ProductDetails = [{123, "T", 23.00},{234, "C", 25.02},{345, "D", 11.88...
2018/03/19
1,605
4,980
<issue_start>username_0: I refer to [Quick Start Guide - Leaflet - a JavaScript library for interactive maps](http://leafletjs.com/examples/quick-start/) to implement show marker on the map. I want to show all popups of all the markers,and if I click on the map,it still keep the popups. The bottleNeck is 1.How to ...
2018/03/19
1,217
4,144
<issue_start>username_0: Just recently started programming in bash and came across GNU Parallel, which is exactly, what I need for my project. Have a basic loop script, which is meant to loop through the list of ip's and ping each, one time. The list with the ip's is constantly updated with the new ones, driven by the ...
2018/03/19
1,683
5,578
<issue_start>username_0: THIS IS THE ORIGINAL, EDITED IN MY NEXT ANSWER BELOW: I have sent the original code in next answer with very few changes. Ask me for changes or clarifications if i missed something. What I want to do: A scoring system that connects to a database, gives some choices for the user, eg age, educat...
2018/03/19
1,050
3,498
<issue_start>username_0: I have a issue with css and ng2-completer. I try to align the dropdown part and the input. There is no example on the demo page to focus element with css and when i try to select the class .completer-dropdown-holder i have no result. [![enter image description here](https://i.stack.imgur.com/...
2018/03/19
1,218
5,008
<issue_start>username_0: I am using consumer group with just one consumer, just one broker ( docker wurstmeister image ). It's decided in a code to commit offset or not - if code returns error then message is not commited. I need to ensure that system does not lose any message - even if that means retrying same msg for...
2018/03/19
547
1,769
<issue_start>username_0: I was wondering how I can store values in an Array, because I can just `echo` the `$row['Name']`, but if I want to store multiple values in array I get nothing. ``` $conn = mysqli_connect($db_host, $db_user, $db_pass, $db_name); if (!$conn) { die ('Failed to connect to MySQL: ' . mysqli_c...
2018/03/19
850
2,188
<issue_start>username_0: I have a table (Table\_Marks) it contains value as described below: - ``` CLASS | STD | NAME | SUBJECT | PT1_M | PTB1_M | PT2_M | PTB2_M | 1 | ST1 | NITYA | ENG | 12 | 15 | 30 | 9 | 1 | ST1 | NITYA | HIN | 2 | 22 | 25 | 6 | 1 | ST1 | NIT...
2018/03/19
1,654
5,720
<issue_start>username_0: ![enter image description here](https://i.stack.imgur.com/4ffLn.png) I have sheet named "raw" and I want to filter it using button function. in "raw" sheet, there this table which have random header. what I want to do is that when I click the button, then new sheet "filter" will be generate wi...
2018/03/19
1,178
4,556
<issue_start>username_0: I am using rendertron as a solution for server side rendering, below is index.js file. How to execute index.js and where to execute. I have setup my own instance of redertron using docker on my server and my angular app build is within dist folder how to render complete html of my angular app u...
2018/03/19
505
1,431
<issue_start>username_0: I'm trying to print a number in binary with these two approaches: Approach 1: ``` int input; scanf("%d", &input); for(int i = sizeof(int)*CHAR_BIT - 1; i >= 0; i--) printf("%u",(input & (1<> i); ``` Approach 2: ``` int input; scanf("%d", &input); for(int i = sizeof(int)*CHAR_BIT - 1; i >...