date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/02/26
386
1,510
<issue_start>username_0: Can someone help me to correct my code. (<https://i.stack.imgur.com/jKOvH.png>) I am trying to display realtime Count from 0 to 10 and displaying that on textView but always crash. Iam new on android but Very excited to learn.please help me explain that problem. Sorry for my bad English.<issue_...
2018/02/26
480
2,171
<issue_start>username_0: I want to show some pages in the first time app is installed, and the next time when I open the app show some other pages. I tried this code ``` protected override void OnStart() { if (Application.Current.Properties.ContainsKey("id")) { MainPage = new Navigati...
2018/02/26
608
2,389
<issue_start>username_0: I Make WinForms App for execute ssis package , and i want to make timer with datepicker so when i choose datepicker at 5pm the method will be executed at 5pm. I Have difficulty to make that happen first i tried this with do while but it will just stop executing when the statement is false and w...
2018/02/26
472
1,744
<issue_start>username_0: Does `Firebase` listeners like this take up huge heap memory? ``` ref.addListenerForSingleValueEvent(new com.google.firebase.database.ValueEventListener() { @Override public void onDataChange(com.google.firebase.database.DataSnapshot snapshot) { } }); ``` At least when the snapsh...
2018/02/26
515
1,788
<issue_start>username_0: When running my program I am currently retrieving the following Eigen assertion: > > test\_engine: /usr/include/eigen3/Eigen/src/Core/DenseStorage.h:128: Eigen::internal::plain\_array::plain\_array() [with T = double; int Size = 16; int MatrixOrArrayOptions = 0]: Assertion `(reinterpret\_cast...
2018/02/26
451
1,415
<issue_start>username_0: This is a continuation to the previous case: [Removing new lines containing spaces](https://stackoverflow.com/questions/48882786/removing-new-lines-containing-spaces) Now I have a working regular expression: ``` R^[ ]{3}$ ``` which finds new line and 3 spaces after it. In PHP I use: ``` $...
2018/02/26
1,290
4,197
<issue_start>username_0: I have to validate if a float number has maximum two digits. I've tried a lot of methods but all fails in more or lase cases. Last of them were: ``` //fails for 2638655.99 private function hasMoreThanTwoDecimals(string $number): bool { $number = abs($number); $intPart = floor($number...
2018/02/26
780
3,250
<issue_start>username_0: So let me start by explaining the view hierarchy. I'm using a normal UITableView, inside the UITableViewCell there is a collectionView which is dynamic in height. How I'm setting the datasource and delegate for UICollectionView at the willDisplay cell of UITableView: ``` func tableView(_ tab...
2018/02/26
171
832
<issue_start>username_0: If the AWS architecture was built by Terraform, does the software continue to have access to make changes or delete instances?<issue_comment>username_1: No, Terraform uses the credentials to connect and interact with the AWS API, but only has access during the Terraform run, not afterwards. Yo...
2018/02/26
647
2,466
<issue_start>username_0: I need to highlight the selected text in a div using keys and mouse. Approach for select using mouse is as follows: ``` html code: In this bug, issue no 1 explains jquery: $('#passage_response .word').bind('dblclick', function() { toggleHighlight(this); ...
2018/02/26
272
961
<issue_start>username_0: How to select data from two columns in same table in a single query. for example select name "waseem" from username if not found check in city row. ![Users Table](https://i.stack.imgur.com/Hb1Aa.png)<issue_comment>username_1: ``` select * from where name like 'waseem' or city like 'waseem'; ...
2018/02/26
1,237
6,107
<issue_start>username_0: My goal is to test AutoScaling based on memory used on my EC2 instances. To monitor my EC2 instance memory, I installed CloudWatch agent on my EC2 Instance and created and configured my CloudWatch agent configuration file, as explained here: <https://docs.aws.amazon.com/AmazonCloudWatch/latest...
2018/02/26
954
3,171
<issue_start>username_0: I am appending multiple csv files from a path using python in this format ``` A B C date 2 3 4 20180213 5 6 7 20170213 A B C date 3 4 9 20170210 3 2 1 20180211 ``` The code I am using is: ``` import os import datetime import glob import pandas as pd import csv yyyym...
2018/02/26
704
2,316
<issue_start>username_0: I am trying to hide the header and footer from a specific page on my website. I am using a theme I downloaded online. The specific page I am trying to hide is <http://ai-home.com/dsme/> I installed a custom CSS plugin so that I can customize the CSS on this page. I inspected the page element a...
2018/02/26
1,634
4,079
<issue_start>username_0: I use `laravel new test` to establish the Laravel project and move all directories into `/usr/share/nginx/html/`, the default root directory of Nginx. In order to check if the config of nginx is correct, I simply the config, trun on `autoindex`, and put index,html into `/usr/share/nginx/html/t...
2018/02/26
1,449
4,164
<issue_start>username_0: We need to send invitation email from our website hosted on an EC2 instance. Our regular email service is hosted by Google. The problem is that we are based in US East Ohio region where SES is not available. So can we change our region just for using SES? Will it impact our EC2 instance? Can't...
2018/02/26
1,130
3,926
<issue_start>username_0: I am trying to read a csv file with different file structure every time. I want to create a batch script to fetch only specific columns based on column name (not column position as it changes every time) and create a new delimited file only with those specific columns. For example we have below...
2018/02/26
559
1,950
<issue_start>username_0: ``` public class oneThread extends Thread { public void run() { System.out.println("geeks "); try { Thread.sleep(300); } catch (InterruptedException ie) { } System.out.println("forgeeks "); } public static void main(Str...
2018/02/26
348
1,123
<issue_start>username_0: I have a `data.frame` with variables `var1` `var2` (both strings) and variables `x`, `y`, and `z`. I would like to normalize variables `x`, `y` and `z` by dividing them all by their respective first element. I tried: ``` df_ %>% mutate_at(c("x", "y", "z"), funs(./.[1])) %>% head() ``` Bu...
2018/02/26
429
1,348
<issue_start>username_0: I have created something like this, but it's not working. If I assign it to `li` then it works fine. ```js function activetab() { $(".nav-tabs li a:nth-child(3)").css("color", "red"); } ``` ```html * [abcd](#) * [xyzv](#) * [xyzv](#) Click ```<issue_comment>username_1: The issue is beca...
2018/02/26
1,026
3,688
<issue_start>username_0: I have tried setting up a download server and a download client for individual files. How can I modify them to serve/download all the files from a directory? Following are my server and client codes: ``` //server.go func main() { http.HandleFunc("/dlpath", handle) err := http....
2018/02/26
333
1,174
<issue_start>username_0: Good afternoon! I want to create a Supreme Bot. I have already tried clicking the' add to basket' button, but it just doesn't work. I need some help! Source code from the Supreme side: [Screenshot from the sourcecode](https://i.stack.imgur.com/uqdOV.png) My code: ``` driver.findElement(By...
2018/02/26
435
1,544
<issue_start>username_0: I have my app running on container. I have mysql server started and having trouble to connect my app with mysql server. [This is the screenshot](https://i.stack.imgur.com/ODMGM.png) of the error my docker-compose.yml file: ``` version: '3' services: db: image: mysql environment: ...
2018/02/26
319
842
<issue_start>username_0: I want to return a date with a certain format, for the moment I'm using: ``` SELECT DATE_FORMAT(NOW(3),'%y-%m-%d %H:%i:%s.%f') ``` which returns: ``` 18-02-26 11:22:07.617000 ``` that's perfect for now, however, I want to get Milleseconds, which means only 3 characters after the seconds,...
2018/02/26
575
1,971
<issue_start>username_0: I have a `QQuickItem` class with some members used in QML, so they are declared like this : ``` Q_PROPERTY (bool myBool MEMBER _myBool NOTIFY myBoolChanged) ``` If I want to access to this member in C++ code (from another class), do I have a *free* get-accessor ? What is its syntax ? The do...
2018/02/26
424
1,499
<issue_start>username_0: I want to use below image keyboard with **".?123"**. When we enable secure text for a password in UITextField it displays below the keyboard. I want to display this keyboard without secure text in other UITextField. Let me know if anybody has a solution for this. [![enter image description ...
2018/02/26
210
731
<issue_start>username_0: I am trying to display MySQL database selected records in descending order based on the last id. but it's not working please see the SQL statement below ``` SELECT * FROM product WHERE catagory='$pro' AND id >($id) LIMIT 6 DESC ``` I want to show only 6 records at a time.<issue_comment>usern...
2018/02/26
927
3,106
<issue_start>username_0: I'm trying to make an ArrayList that contains an object of another class, a name, and turn. something similar to the python's dictionary. ``` self.user1 = {"user":user1,"name":empty,"turn":empty} ``` so I made a class that has the 3 values. ``` class User{ public userInterface user1; String...
2018/02/26
841
2,978
<issue_start>username_0: I'm writing simple User Event script (using beforeSave entry in my case) for the Sales Order which reads every item line in it and changes some values in the item line according to the given circumstances. The problem I've encountered: If some field of the item line in the Sales Order was cha...
2018/02/26
2,013
6,777
<issue_start>username_0: Here I am getting below as dynamic data ``` [ { id: 151, name: '<NAME>, Jr.', job: 'Astronaut', year_joined: 1959, missions: ['MR-3', 'Apollo 14'] }, { id: 152, name: '<NAME>', job: 'Astronaut', year_jo...
2018/02/26
784
2,521
<issue_start>username_0: I am trying to assign a custom `HeapDumpPath` when running my java app. The new path is applied, but `%p` placeholder is not replaced by a real value (process ID is expected here). Use of `%p` is described [here](https://docs.oracle.com/javase/8/docs/technotes/tools/unix/java.html) - look for ...
2018/02/26
561
2,100
<issue_start>username_0: We are using IBM discovery in a bot. We have trained the collection with relevancy and non-relevancy score. We are getting the confidence score for each document. We are using this confidence score as a threshold value to handle different user queries in our bot. The observation since the pas...
2018/02/26
444
1,641
<issue_start>username_0: I have two entities with one to many relationships: ```java public class User { @Id @GeneratedValue private Long id; private String username; private String phoneNumber; private Timestamp creationDate; @OneToMany(mappedBy = "user") private List roles; } public...
2018/02/26
1,227
4,174
<issue_start>username_0: We are currently scraping structured data from a variety of different sources. Before ingesting new data into our table, we check to see if the data\_id exists already. `IF NOT EXISTS (SELECT TOP 1 * FROM TABLE_NAME WHERE DATA_ID=@P0)` We have no indexes; however, we have a PK set for our id...
2018/02/26
519
1,933
<issue_start>username_0: IP-Geo-Locator usually give information about country, country code, region, lat & long, etc. But in some case i must define the region code (that was not served by IP-Geo-Locator in usual) in highchart (like US-AL, US-CA, US-FL). How to get that region code by ip address ? or should i defin...
2018/02/26
651
2,283
<issue_start>username_0: I'm making an RPG in Game Maker Studio Pro 1.4.1772, and I have a guy that can run around a demo room, and movement and collisions are all groovy. I just tried to make a door to move to a new room. I've followed [this example](https://youtu.be/2ux8VFqj_jk) exactly, and have some weird issues. ...
2018/02/26
1,117
4,055
<issue_start>username_0: Let's say I have a number of strings I use often throughout my program (to store state and things like that). String operations can be expensive, so whenever addressing them I'd like to use an enumeration. I've seen a couple solutions so far: ``` typedef enum { STRING_HELLO = 0, STRING...
2018/02/26
461
1,695
<issue_start>username_0: ``` const Loader = props => { const { loading, progressBarProgress=0.00250, PleaseWait, ...attributes } = props; changeProgress = () => { this.value= setInterval( () => { if(progressBarProgress <= 1) { console.info(progressBarProgress+.10) } }, 100 ); } ``` I am try to cr...
2018/02/26
1,176
6,620
<issue_start>username_0: I run in a eclipse plugin `Job` a process that performs long operations without much output. I want to be able to cancel the `Job` if users request it, but with the implementation bellow, the `Job` is not stopping unless the process prints something to the output stream. ``` Process proces...
2018/02/26
682
2,318
<issue_start>username_0: ``` import threading class MyThread(threading.Thread): def __init__(self, target, *args): self._des = target self._args = args threading.Thread.__init__(self,) self._stopper = threading.Event() def run(self): self._des(*self._args) def s...
2018/02/26
644
2,664
<issue_start>username_0: Tried sharing a bucket with a colleague Initially I added the "Storage.Object.Viewer" role, and sent the link <https://console.cloud.google.com/storage/browser/bucket_name/> However on opening the link the following error was received: > > You need the storage.objects.list permission to list ...
2018/02/26
771
2,864
<issue_start>username_0: Recently I came across a scenario related to Microsoft SQL Server locking and it looks quite simple. However I have a trouble of understanding the real concept behind one of the scenarios. I have created a table in SQL Server called `locktest` with this statement: ``` CREATE TABLE [dbo].[Lock...
2018/02/26
989
3,368
<issue_start>username_0: ``` //webpack.config.js -- shortened for convenience const ExtractTextPlugin = require("extract-text-webpack-plugin"), extractSass = new ExtractTextPlugin({ filename: "Css/[name].css", allChunks: true }), //… config: { module: { rules: [ //… { ...
2018/02/26
540
1,804
<issue_start>username_0: I want to get fluctuation in TPS using JMeter like given below * 1 TPS to 10 TPS -- 60 minutes * 2 TPS to 4 TPS -- next 60 minutes * 10 TPS to 15 TPS -- for next 60 Minutes * 1 TPS to 3 TPS -- for next 60 minutes How to achieve such various TPS with respect to time. I am using jmeter 4.0 My R...
2018/02/26
592
2,289
<issue_start>username_0: I installed the three following packages into my console application: ``` Microsoft.Build Microsoft.Build.Framework Microsoft.Build.Tasks.Core Microsoft.Build.Utilities.Core ``` And I tried to use the following method to build a project: ``` static void Build(string projectPath) ...
2018/02/26
602
2,219
<issue_start>username_0: I have a if statement inside a loop that sets a variable to a specific country name if it matches the condition, that is, if the parameter contains the country name. The parameters are a list of paths that contain a country name in different positions, i.e. `C:\\some\\path\\text_country_text.x...
2018/02/26
1,708
5,811
<issue_start>username_0: Currently, I plan to convert the following `Map` to `List` of POJO. ``` Map m = new HashMap<>(); m.put("stock\_price\_alerts", "[{\"code\":\"KO\",\"rise\_above\":7.0,\"size\":1000.89,\"price\":10,\"time\":1519625135173,\"fall\_below\":null},{\"code\":\"BRK-B\",\"rise\_above\":180,\"size\":100,...
2018/02/26
1,163
5,198
<issue_start>username_0: **Unable to access 'this' context inside addEventListener() in angular 2** In my rich text editor component, I am implementing image upload functionality. For that I have written an addEventListener event handler for 'change' in image input tag, I need to access an app service inside event l...
2018/02/26
642
2,416
<issue_start>username_0: I'm missing something on how to use async/await and probably promises methods too. Here is what I am trying to do: **login-form-component.html** ``` Sign In with Facebook ``` **login-form-component.ts** ``` async sinInWithFacebook() { const loginResponse = await this.auth.signInWithFaceb...
2018/02/26
666
2,170
<issue_start>username_0: I have the following T-SQL: ``` DECLARE @INSERTED_BOOKS table ( BookId int, Image varbinary(max), Preview varbinary(max) ) MERGE Books_Destination AS d USING Books_Source AS s ON 0 = 1 WHEN NOT MATCHED THEN INSERT (Author, BookCategoryId, Title) VALUES (s.Author, s.CategoryId, s.Title) ...
2018/02/26
1,794
4,519
<issue_start>username_0: i have a big query datatable with 512 variables as arrays with quite the long names (x\_\_x\_arrVal\_arrSlices\_0\_\_arrValues to arrSlices\_511). In each array are 360 values. the bi-tool cannot compute an array in this form. this is the reason why i want to have each value as an output. the...
2018/02/26
636
2,329
<issue_start>username_0: Since syscall emulation is much easier to setup, I'm wondering what are the advantages of using the full system emulation when running an userland program. Or in other words, what interesting aspects are modeled in the full system but not syscall emulation mode, and when are they significant? ...
2018/02/26
2,363
7,679
<issue_start>username_0: I'm trying to read data from CSV file in GCS and save it in a BigQuery table. This my csv file : ``` 1,Marc,B12,2017-03-24 2,Marc,B12,2018-01-31 3,Marc,B21,2017-03-17 4,Jeam,B12,2017-12-30 5,Jeam,B12,2017-09-02 6,Jeam,B11,2018-06-30 7,Jeam,B21,2018-03-02 8,Olivier,B20,2017-12-30 ``` And th...
2018/02/26
1,966
7,405
<issue_start>username_0: I am a beginner in Symfony, so this question might be simple for those who are more experienced in this framework. I am building forms and I have several possible types of items in forms. At this moment these are: * text * html * image However, in the future there will be many more items. Pr...
2018/02/26
321
1,110
<issue_start>username_0: Consider my element structure ``` [X](#) Lorem ipsum ``` Now on click of the anchor tag I need to hide both the elements, ``` $('body').on('click', '.close', function(){ $(this).hide(); $('.container').hide(); }); ``` How do I chain both the `hide()` statements into one?<issue_comment...
2018/02/26
569
1,550
<issue_start>username_0: I have strings like this: ``` $string1 = '35 Hose & Couplings/350902 GARDEN HOSE COUPLING, PVC, 16\/19 MM"'; $string2 = '35 Hose & Couplings/350904 GARDEN HOSE TAP CONNECTOR, PVC, 3\/4" FEMALE THREAD"'; ``` I tried to separate the string and turn it into an array like this: ``` $name1 = ex...
2018/02/26
1,386
4,818
<issue_start>username_0: I have approximately 5k raw data input files and 15k raw data test files, several GB in total. Since those are raw data files, I had to process them iteratively in Matlab in order to obtain features that I want to train my actual classifier on (CNN). As a result, I produced one HDF5 `mat` file ...
2018/02/26
514
1,838
<issue_start>username_0: This article [webpack 4: mode and optimization](https://medium.com/webpack/webpack-4-mode-and-optimization-5423a6bc597a) seems to suggest that when `mode` is set to `development` the `devtool` is set to `eval`. I was expecting this to trigger sourcemap generation but running the [webpack-4-qui...
2018/02/26
754
2,759
<issue_start>username_0: Airflow veterans please help, I was looking for a cron replacement and came across apache airflow. We have a setup where multiple users should be able to create their own DAGs and schedule their jobs. Our users are a mix of people who may not know how to write the DAG python file. Also, the...
2018/02/26
1,005
3,278
<issue_start>username_0: I'm using small jQuery script to scroll to section with id corresponding clicked a tag's href. For example, after clicking `[scroll to section1](#section1)` user window will go to target section with `id="section1"` with animation. With standard settings everything works just fine, but afte...
2018/02/26
1,200
3,732
<issue_start>username_0: I've made a code that reads files from the folder and saves their paths. ``` sample_directory = [] sample_files = [] for (dirpath, dirnames, filenames) in walk('./Samples'): sample_files.extend(filenames) break paths = [] for i in range(len(sample_files)): path = os.path.realpa...
2018/02/26
2,361
5,497
<issue_start>username_0: I have a list which contains zeros and non-zero values. I want to find the range of zeros and non-zero values in terms of tuple inside the list. I am looking for package free solution with pythonic way. E.g. ``` a = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 11, 12, 12, ...
2018/02/26
1,004
3,344
<issue_start>username_0: I have created select box like this: JS: ``` Vue.component("v-select", VueSelect.VueSelect); new Vue({ el: "#app", data: { options: [ { countryCode: "AU", countryName: "Australia" }, { countryCode: "CA", countryName: "Canada" }, { countryCode: "CN", countryName: "Chi...
2018/02/26
807
3,100
<issue_start>username_0: I am trying to create a new Kafka topic from the command line ``` $ kafka-topics --create --zookeeper localhost:2181 --topic def-test ``` I get the error ``` Missing required argument "[partitions]" ``` From the docs, I see that setting `num.partitions`, should have done the trick. I ha...
2018/02/26
840
2,450
<issue_start>username_0: I have the following xml file. I need to automate find/replace some strings in a bunch of files for different environment. I am using python 2.7. I need to pass the environment name and read the xml into a dictionary or array, which I can then use to find/replace the strings. I have tried using...
2018/02/26
531
1,851
<issue_start>username_0: I try to get result from query in Management Studio (ms sql). How can I use query result in where not exists clause like below: ``` select res.id from (select id, column1 from table1) as res where not exists (select id from res where column1 is null) ``` Query is more complicated but I want ...
2018/02/26
517
1,701
<issue_start>username_0: I have the following method to verify the presence of a file in a remote folder where I need to check the date of the file must be the current date. If I execute the below statement it seems to work ``` $Exs = Test-Path '\\srvcld\Homeware\Applications\Processed\Soc*' -NewerThan (Get-Date -U...
2018/02/26
708
2,235
<issue_start>username_0: Let's consider a simplified case: ``` SELECT (SELECT 1) + (SELECT 2); ``` , which results in 3. The following statement: ``` SELECT (SELECT 1) = (SELECT 2); ``` result is error `[42000][102] Incorrect syntax near '='.`. How to find whether `(SELECT 1)` equals to `(SELECT 2)`?<issue...
2018/02/26
803
2,806
<issue_start>username_0: Is there any way to use `puppeteer` to get the redirects with the response body (if there are any) of the request? I implemented the following code but I can't find a way to get the redirects... ``` const page = await browser.newPage() page.on('request', (data) => console.log(data)); aw...
2018/02/26
835
2,778
<issue_start>username_0: I'm learning `PHP OOP`, but now I'm stuck with an error and confused regarding the chained method. Here is my code ``` php class Car { public $tank; public function fill($float) { $this- tank += $float; return $this; } public func...
2018/02/26
2,318
9,554
<issue_start>username_0: In my hybrid Cordova Android app targeting API 23+ I want to use a custom sound for notifications. To that end I have done the following * In `plugin.xml` file for the single custom plugin I use in the app I declare `'`. Opening the APK as a zip archive I see that the mp3 file has in fact end...
2018/02/26
1,269
2,370
<issue_start>username_0: I am trying to get an output from my forecast with readable dates. The dates have no column right now and are in year.decimal format. My output looks like this: ``` Point Forecast Lo 80 Hi 80 Lo 95 Hi 95 2017.154 33 24.42807 41.57193 19.89037 46.10963 2017...
2018/02/26
463
1,786
<issue_start>username_0: In my app I am having webview to load web pages Now I want to automatically login to the website loaded in the webview eg:Facebook.Help me to solve this.I am using Android Studio to develop app. This is my code. ``` public class MainActivity extends AppCompatActivity { EditText url; Button go;...
2018/02/26
1,048
3,272
<issue_start>username_0: I've got a input sheet that contains several different variables among which names, location and job. I want to display these values on different sheet, in which I summarize the data by group. So the input is as follows ``` A B C 1 NAME CIYY WORK 2 Bart NY Plumbe...
2018/02/26
1,298
4,326
<issue_start>username_0: I have an ECS instance on which my docker containers are running. I want to mount EFS on docker container which is running on ECS. Is it possible then how? I am able to mount EFS on ECS instance but not on docker container which is running on ECS. EFS is with direct connect & able to telnet ...
2018/02/26
789
2,582
<issue_start>username_0: I've got a problems with using terminal on macOS 10.12.3 on Mac mini When I try to run any command I get the following message: ``` can't fork process: Resource temporarily unavailable. ``` I have already had such problem. Last time I was able to fix it - increase the number of process and ...
2018/02/26
716
2,587
<issue_start>username_0: I would like to get DATE format like in the title (yyyy-mm) from getdate() , in order to use it in where clause to get < and > dates from the one i formatted .So far i found almost everybody uses convert(varchar(10),getdate(),120) but that's varchar and it cant be check with < and > right ? So ...
2018/02/26
1,208
4,041
<issue_start>username_0: I'm tying to execute things async with multiple go routines. I pass in the number of "threads" to use to process the files async. The files is an array of Strings to process. ``` queue := make(chan string) threadCount := c.Int("threads") if c.Int("threads") < len(files) { threadCount = ...
2018/02/26
615
2,151
<issue_start>username_0: I have stdClass data after submitting the form: ``` "Array ( [0] => stdClass Object ( [username] => stdClass Object ( [0] => 1001037 [1] => AARONJAMES [2] => 1 [3] => ULTIMA ...
2018/02/26
371
1,257
<issue_start>username_0: I am currently trying to compile a project (DOMJudge) and the compilation fails on `cgroup_init in -lcgroup`. When I looked to the script I found that this installer was looking for the gcc lib `cgroup` called by the flag `-lcgroup`. But I don't find any information about such a lib on Linux o...
2018/02/26
7,355
23,728
<issue_start>username_0: Initialized the project using [start.spring.io](http://start.spring.io) Added **WEB,JPA,H2** dependencies then tried to run the `MainApplication.java` using `Jdk 9` and got the following **error log** ``` . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\...
2018/02/26
3,142
11,216
<issue_start>username_0: I am using QR code scanning, and search something that I don't find anywhere. I would like to scan a QR code, which scan a private key and it return me a public key. How is it feasible?<issue_comment>username_1: You need to add the JAXB dependency (as not provided any longer by default in Java...
2018/02/26
442
1,564
<issue_start>username_0: I want to create a discord bot that gives roles to members in Python. I tried this: ``` @async def on_message(message): if message.content == "give me admin" role = discord.utils.get(server.roles, name="Admin") await client.add_roles(message.author.id, role) ```<is...
2018/02/26
677
2,198
<issue_start>username_0: working with wordpress, I have created a page you can see [here](https://www.haagsehof.nl/) please do to the `Schoonmaakwerk is mensenwerk` as you can see it looks like this: [![enter image description here](https://i.stack.imgur.com/sl40o.jpg)](https://i.stack.imgur.com/sl40o.jpg) while the i...
2018/02/26
396
1,370
<issue_start>username_0: I need to fix this error exactly. Error: ![capture of run](https://i.stack.imgur.com/kEtAM.png)<issue_comment>username_1: ``` import discord from discord.utils import get client = discord.Client() @client.event async def on_message(message): if message.author == client.user: re...
2018/02/26
980
3,435
<issue_start>username_0: I am trying to install **MySql.Data** and **MySql.Data.Entity** to my class lib. Somehow there is no reference added to the project. Things I've tried: 1. `Update-Package -reinstall` (does not help) 2. `packages.config` contains the correct entries 3. `*.csproj` also has the correct entries ...
2018/02/26
249
881
<issue_start>username_0: I am trying to add ngx-bootstrap popover to my application. But it only works when I import the popover package in the module I use it. Importing the package in app.module.ts wouldn't work. So, i have to import it in all the modules i need it. Is there a work around for this, so i need not impo...
2018/02/26
1,020
2,910
<issue_start>username_0: Im new to javaScript and react.. i have an array consisting of objects. I need to display this array in a AG GRID so what im tring here to map this to array of flat obj. **NOTE: I cannot use jQuery..** below is my array (full code is in codepen, please check the link) ``` let realData = [ ...
2018/02/26
302
1,086
<issue_start>username_0: As I am new to `XCUITest`, I want to write a test case by recording actions in the simulator but can't see the recording button in `XCTestCase` class. What is the process to record a test case?<issue_comment>username_1: I think that if you are not seeing the record button is because you don't ...
2018/02/26
927
3,793
<issue_start>username_0: First of all, I'm a very newbie with Liferay. It's been some days I'm scratching my head with this, but can't find anything for that, even if it seems easy at first look. I'm creating a portlet with its own preferences for Liferay 6.2, and one of these preferences is required to be set in the...
2018/02/26
445
1,486
<issue_start>username_0: When I use Laravel blade file foreach loop, the variable is accessible after the foreach loop, whereas the scope of the variable should be only within the loop ``` @foreach($user->referral as $ref) | {{ $ref->referral\_amount }} | {{ $ref->status }} | @endforeach ``` `$ref`: This variable...
2018/02/26
427
1,334
<issue_start>username_0: Looks like something basic. But I'm unable to see why ``` (*ptr).my_data_ptr->my_data[0].b ``` works, whereas ``` *((*ptr).my_data_ptr).my_data[0].b ``` doesn't. I'm giving the relation between the various datatypes below: ``` typedef struct { int a; int b;} MY_DATA; typedef struct {...
2018/02/26
420
1,310
<issue_start>username_0: How can I insert a row in database `(Sybase SQL Anywhere 12.5)` if it does not exist, and update if it exists? I'm trying following: ``` $stmt = $conn->prepare('INSERT INTO customer_info (user_id, fname, lname) VALUES(:user_id, :fname, :lname) ON DUPLICATE KEY UPDATE fname= :fname2, lname...
2018/02/26
608
2,367
<issue_start>username_0: I was wondering if the implementation of java.util.collections has changed between Java 6 and Java 8. I have this test that works fine in Java 6 but not in Java 8 ``` Set types = new HashSet(); String result; types.add("BLA"); types.add("TEST"); ``` The result in Java 6 : [BLA, TEST] The re...
2018/02/26
728
2,770
<issue_start>username_0: I have an array that looks like this ``` [ { topic: 'Topic 1', person: { ... }, unit: 'ABC-DEF' }, { topic: 'Topic 1', person: { ... }, unit: 'ABC' }, { topic: 'Topic 1', person: { ... }, unit: 'ABC-123...
2018/02/26
1,000
3,550
<issue_start>username_0: We're developing an Android library with native part. We're mostly Java developers, not C++. Our tiny C++ experience was enough to write the native code we need but we've encountered unexpected troubles with stripping (which doesn't related to programming directly). Due to some reasons we do ne...
2018/02/26
544
1,966
<issue_start>username_0: I've got an array as below: ``` return { items: [ {active: true, text: 'text1'}, {active: true, text: 'text2'}, {active: true, text: 'text3'}, {active: true, text: 'text4'}, {active: true, text: 'text5'} ... ] } ``` I want to iterate it in the DOM us...
2018/02/26
1,048
3,821
<issue_start>username_0: I have a problem, ``` local searchkey=@searchkey local blockKeys = redis.call('keys', searchkey) local table = {} for i = 0, #blockKeys, 1 do local seats = redis.call('HVALS', blockKeys[i]) table[i] = seats end return table ``` I want parse this table data for .net obj I used `StackE...
2018/02/26
1,213
4,055
<issue_start>username_0: I wanna to open a php file and replace the content I tried this code but it didn't work, ``` $fh = fopen("c/".$file."/underbaba.php", 'w'); $file = file_get_contents($fh); $file = str_replace('error":4,', 'error":0,', $file); ``` This system open my file and delete all the code in file under...
2018/02/26
649
2,259
<issue_start>username_0: I have added below dependencies in gradle: [![enter image description here](https://i.stack.imgur.com/ZP5Vd.png)](https://i.stack.imgur.com/ZP5Vd.png) But still ActivityTestRule can not be imported, showing error [![enter image description here](https://i.stack.imgur.com/5I7xB.png)](https://i...