date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/02/28
1,157
4,437
<issue_start>username_0: I use WebDriver with Chrome Driver 2.35 with Selenium. I have a dual monitor setup in which I run my test cases. I do run my cases headlessly most of the times but sometimes, when I want to debug, I run it with the browser. The window opens, I drag it to my second monitor and continue worki...
2018/02/28
3,029
10,954
<issue_start>username_0: I'm using the Android Studio with NDK and [JNI](https://en.wikipedia.org/wiki/Java_Native_Interface) in a project with a large amount of C++ files. When I make changes in a single C++ file **it won't apply in the code unless I rebuild the whole project** and refresh the entire C++ files so they...
2018/02/28
2,028
6,835
<issue_start>username_0: I am trying to add a `BottomNavigationView` in my UI but I get the exception below: ``` java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appeaser.sublimepicker/com.appeaser.sublimepicker.MainActivity}: android.view.InflateException: Binary XML file line #0: Bina...
2018/02/28
503
1,324
<issue_start>username_0: I need to check the given or selected time is in between start and end time, For Example Given time is 10:12(AM) and in database we have 06:00 to 14:00 [![My sample records ](https://i.stack.imgur.com/qlmHC.png)](https://i.stack.imgur.com/qlmHC.png) And my query is ``` SELECT * FROM erp_shi...
2018/02/28
418
1,242
<issue_start>username_0: I am just beginning to learn PL SQL Developer. I created a simple database schema and am adding a row into one of the tables. When I hover with the mouse over the "V" button, it shows "Post changes". When I click on that button and then issue `rollback`, the added row disappears. However, that ...
2018/02/28
1,075
3,151
<issue_start>username_0: When i try to install web3.js i get this error: My system config is: windows 7 node: v6.11.0 npm: 3.10.10 `npm i ethereum/web3.js --save` `npm WARN addRemoteGit Error: Command failed: git -c core.longpaths=true config --get remote.origin.url npm WARN addRemoteGit npm WARN addRemoteGit at...
2018/02/28
904
3,123
<issue_start>username_0: I am quite new to coding and have the following issue: I want to write a macro, that goes to the website: <https://displaypurposes.com/> inserts a keyword and copy the results into my excel sheet. This is how my code looks at the moment: ``` Sub DisplayPurposes() Dim objIE As InternetExplore...
2018/02/28
531
1,781
<issue_start>username_0: Hello guys I need your help, I want to push list from provider to other pages. This is my sample code. ``` db.executeSql("SELECT * FROM user_login") for(var i = 0; i < data.rows.length; i++) { this.user_login_list = data.rows.item(i); return this.user_login_list.push({ user_id: data.row...
2018/02/28
697
2,563
<issue_start>username_0: I know i'm repeating the question, I've went through some of the similar solutions but i'm looking for a different one. I want to read value of a custom defined attribute. I have below piece of code that does it for me, but i don't want to hard code the class name and/or method name, because t...
2018/02/28
462
1,420
<issue_start>username_0: i want remove all inline style from `[Contnent]` in **MSSQLSERVER** clean everything from style="\*" **for ex:** `test *2*` TO: `test *2*`<issue_comment>username_1: i found this function but it remove STYLE tag ``` create FUNCTION [dbo].CleanHTML(@HTMLText varchar(MAX)) RETURNS varch...
2018/02/28
1,122
3,907
<issue_start>username_0: I run command `docker system prune` yesterday, it took some time and then my SSH session was disconnected from different reason. Unfortunately I am getting now: `Error response from daemon: a prune operation is already running`. Obviously there is a lock and prune command is not running anym...
2018/02/28
745
2,458
<issue_start>username_0: I have a very strange case where mariaDB (mysql) inserts (or updates) a different decimal value. In the example below I want to insert the value '387507.65' but in mysql it is registered as '387507.66'. If I use a different amount, say without the '3', then it is registered fine. As an example...
2018/02/28
453
1,623
<issue_start>username_0: In python-docx there is a [Paragraph method](http://python-docx.readthedocs.io/en/latest/api/text.html#paragraph-objects) for inserting a paragraph before another one: ``` p2 = p.insert_paragraph_before("hello", style='Normal') ``` Supposing the case we already have a saved docx document wit...
2018/02/28
342
1,342
<issue_start>username_0: I would like to create a package of my python code. My folder structure is like below: ``` sing*(this is a folder)* --ml*(this is a folder)* ----regression*(this is a folder)* ------linear.py*(this is a class file with functions in it)* ----classification*(this is a folder)* ------logistic.py...
2018/02/28
807
2,893
<issue_start>username_0: Am playing a bit around with java and am learning step by step. To not write my whole life story, here it comes. I am making a text game with some stats, a player, enemies, etc. For this I am using classes. Lately, I came accross the "extends" function and am trying to implement it. I made a c...
2018/02/28
859
2,835
<issue_start>username_0: I'm using `Gtk.TextView` to display text, like this: [![TextView with wrapping](https://i.stack.imgur.com/B6IKd.png)](https://i.stack.imgur.com/B6IKd.png) My goal is to programmatically move the cursor to the start of the next **display** line (not the start of a buffer line, but instead the ...
2018/02/28
880
3,505
<issue_start>username_0: I have a question about generics in c# i want to create command class that can be called with generic type and without it something like: ``` public class Command : ICommand { private readonly Action execute; private readonly Predicate canExecute; private readonly Action tExecute; pr...
2018/02/28
491
1,810
<issue_start>username_0: I am trying to pass the values of selected items from multiComboBox to another view to bind it in a table. I am getting the selected values as ```js selectedItems = oEvent.getParameter("selectedItems"); ``` routing code: ```js { "pattern": "data/{value}", "name": "page2", "t...
2018/02/28
504
1,920
<issue_start>username_0: I have a war file from an Eclipse+Maven webapp/Jersey Service project, i.e., myapp.war. manually deploy it in webapp folder works just fine. the uri would be <http://mydomain/myapp> I would like to create/deploy the same myapp.war as another app in the same tomcat, I thought by renaming it to ...
2018/02/28
1,042
2,858
<issue_start>username_0: I'm working with this WNBA dataset [here](https://www.kaggle.com/jinxbe/wnba-player-stats-2017). I'm analyzing the `Height` variable, and below is a table showing frequency, cumulative percentage, and cumulative frequency for each height value recorded: ![img](https://s18.postimg.org/mqm8jea09...
2018/02/28
453
1,412
<issue_start>username_0: i have contorller ``` function showDetail($sono,$opnamedate,$warehouse,$stocktypeid){ $data['detail'] = $this->M_stock_opname->tampil_showDetail($sono,$opnamedate,$warehouse,$stocktypeid); $data['bincard'] = $this->M_stock_opname->tampil_showBincard($year,$month,$data['detail']); ...
2018/02/28
426
1,381
<issue_start>username_0: Code works perfectly fine, when module is imported directly to the workbook. Trying to launch VBA code from Personal.xlsb - gives an error. > > Run-time error '5' > > Invalid procedure call or argument.) > > > `Debug.Print ThisWorkbook.PivotCaches.Count` gives zero, meaning there is...
2018/02/28
1,376
4,410
<issue_start>username_0: I know there are many questions on this, but I tried the solutions of most of them and neither of them worked. I have an app in which I have imported a module. When I try to run the app, I am getting **Unable to merge dex** exception. **build.gradle (app module)** ``` apply plugin: 'com.andr...
2018/02/28
623
2,375
<issue_start>username_0: I am trying to make this code return each employees name. ```js var company = { employees: [ { name: "doug" }, { name: "AJ" } ], getName: function(employee){ return employee.name }, getNames: functi...
2018/02/28
617
2,206
<issue_start>username_0: I have an input dataframe "testdata" like this: ``` valX valY id 1 2 NA 4 5 NA 7 8 1 ``` If I do: ``` aggregate(data.frame(testdata$valX, testdata$valY), by = list(id = testdata$id), FUN = mean) ``` I get only the row where the id is not NA. Does anyone know a way to al...
2018/02/28
1,488
6,016
<issue_start>username_0: I've worked on Symfony 3.3 project in production mode in localhost. I would like to deploy it in development mode on remote server. So how can proceed to do that? Can someone help me ? thank you in advance !<issue_comment>username_1: Warning first, as username_2 said in the comments, using ...
2018/02/28
672
2,193
<issue_start>username_0: I'm facing a funny issue for you ! Using JQuery I want to get the name attribute of the select type and the value of the selected option. in this example I want this result ``` var selectTypeName = "cars" var selectedOption = "volvo" ``` thanks ! ```js $( "select" ) .change(function() ...
2018/02/28
1,432
4,995
<issue_start>username_0: I'm trying to remove folder which is not empty in Nodejs file system. All folder inside root folder was removed, but the root folder was not removed. I try again with empty folder, it success! ``` const rmDir = (dirPath) => { try { var files = fs.readdirSync(dirPath); } catch(e) { retu...
2018/02/28
1,317
4,542
<issue_start>username_0: Is it possible to cast the selenium/webdriver "By" object to sting, e.g.: ``` By locator1 = By.xpath("//a[contains(text(),'" + button2press + "')]"); By locator2 = By.cssSelector("input[class='image'][checked='checked']"); ``` I need something like: ``` String str1 = "//a[contains(text(),'"...
2018/02/28
1,350
4,755
<issue_start>username_0: I want to be able to dynamically set a window's size in WPF, and then create as many columns and rows in a grid as I want. I've created a method for it but it does not seem to work. I also added a border in XAML to see if there are columns and rows but I only see one square. Also, it throws n...
2018/02/28
724
2,469
<issue_start>username_0: I wanted to ask this question. I've been trying to code a program that does this efficiently for ages but have a hard time getting anywhere. Essentially I have a string stored in a dictionary as such: ``` dic = {"a" : "Blue Jacket with buttons", "b" : "Green Jacket with a buttons", "c" :...
2018/02/28
334
1,330
<issue_start>username_0: I am trying to clone a private repository using the Terminal, but it fails stating the following errors: 1. The repository does not exist. 2. Failure connecting with credentials. I can successfully clone the same repo using xCode & Source Tree. I've added & verified SSH key & tried HTTP & SS...
2018/02/28
325
1,227
<issue_start>username_0: My table look like as ``` Id Name Gener Lan1 Lan2 lan3 ------------------------------------------ 1 xyz M Null c c# 2 lmn M c# java jquery ``` Here how can i write query who knows morethan 2 lanuguage<issue_comment>username_1: After many atte...
2018/02/28
496
1,981
<issue_start>username_0: I am trying to create a project that calculates the sum and average of a series of numbers input into a text field (separated by spaces). So in a single text box a user would enter "1 2 3" and what should happen is that I take the input, separate the numbers by the spaces and put the numbers in...
2018/02/28
713
2,549
<issue_start>username_0: At first below is my shard cluster I create by Ops Manager: ![](https://i.stack.imgur.com/Ar4M2.png) I have 2 Mongos and 2 Shard (each shard configure replicates set). I not configure any shard key, I mean not sharded collections esxit in my cluster. When I use mongos to insert a database fo...
2018/02/28
1,120
4,545
<issue_start>username_0: I am new to android development and I am using `Fragment` with the `addOnBackStackChangedListener` to track my back stack change but it is not listening. Here is my complete code, every button works. Just it does not capture the back stack change event ``` package com.practice.personal.fragdem...
2018/02/28
342
1,230
<issue_start>username_0: I have a html form with 5 fields. 1. Code 2. Qty 3. Details 4. Rate 5. Subtotal I want to get values for Details, Rate from sql DB without submitting or refreshing the form/page. And also get subtotal values as I enters code and qty. Any help would be appreciated.<issue_comment>username_1: ...
2018/02/28
537
1,609
<issue_start>username_0: The following question has helped me solving the problem of executing multiple SQL Scripts located in file. [Run all SQL files in a directory](https://stackoverflow.com/questions/2583517/run-all-sql-files-in-a-directory) However, I did not get how to redirect the output into a separate log file...
2018/02/28
672
1,964
<issue_start>username_0: This is my code. ``` List tst = driver.findElements(By.xpath(".//\*@id='container']/div/div[2]/div/div/div")); System.out.println(tst.size()); Thread.sleep(2000); for (int i = 1; i<=tst.size(); i=i+1) { System.out.println(tst.get(i).getText()); Thread.sleep(1000); ``` But getting b...
2018/02/28
1,304
2,682
<issue_start>username_0: I have a table with a userId and timestamp. For every user, I'd like to get for each day the first and the last timestamp. I'm using SQL Server. How it looks like: ``` |User| Date | ---------------------------- | 1 | 2015-01-08 07:31:40 | | 1 | 2015-01-08 18:35:40 | | 1 | 201...
2018/02/28
582
2,647
<issue_start>username_0: Im trying to call service from controller which gives me below error.. *Provider 'loginService' must return a value from $get factory method.* Below is my code.What is that im doing wrong. **CONTROLLLER CODE** ``` app.controller('loginController', ['$scope', '$http', 'loginService', functio...
2018/02/28
782
2,853
<issue_start>username_0: I have 2 instances each running its own postgres database. One is for production usage. The other is a read-only database that performs replication from the production database. Both instances run the same django 1.11 application codebase. When I attempt to login to the django read-only vers...
2018/02/28
958
3,515
<issue_start>username_0: I've recently been getting into bare metal development for the Raspberry Pi 2, and having some success. Admittedly I've hesitated to buy an actual physical device until I feel I can do something useful with it, for the time being I've been emulating the device using qemu 2.11.0. So far I've dev...
2018/02/28
249
960
<issue_start>username_0: ``` class Node: def __init__(self,data): self.data=data self.next=None def traversal(head): current = head while current is not None: print(current.data) current = current.next print("End") ``` This is the normal node printing function. How can...
2018/02/28
670
1,930
<issue_start>username_0: There is a file which contains data in a `'n*1'` format: ``` 1 2 3 4 5 6 ``` Is there any way to convert it to a `'n*3'` format like: ``` 1,2,3 4,5,6 ``` via `awk` rather than using `for loop` ? Really no idea about this..Any help or key word is appreciated.<issue_comment>username_1: F...
2018/02/28
994
3,188
<issue_start>username_0: I'm trying for the first time to webscrape a website and i would like to create a csv file from webscraping of a japanese animation website with title, gender, studio and duration of anime. I only managed to collect the data of the titles of the first page with that code : ``` import requests...
2018/02/28
833
2,745
<issue_start>username_0: I'm trying to obtain playback video streams from some Axis and Hikvision cameras, using Onvif. I'm doing this in a C# application, and the resulted stream is played in VLC. Using the FindRecordings/GetRecordingSearchResult calls and then GetReplayUri I can obtain the playback stream (RTSP/H26...
2018/02/28
1,605
6,561
<issue_start>username_0: I wanted to create a LoggingInterceptor for my current Stack: * Tomcat 8.5.24 * Weld 2.4.5-Final * JSF 2.3.3 Here is the Annotation to mark methods or types for interception. ``` import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.Reten...
2018/02/28
234
843
<issue_start>username_0: i am using `User.Identity.Name` to get User Name. But in stead of User Name I am getting DomainName\UserID. I am using Windows Authentication. Can anybody please suggest any way to get User Name instaed of UserID in windows authentication. C#. Thank you....<issue_comment>username_1: I think...
2018/02/28
494
1,660
<issue_start>username_0: ``` public class Node { private int data; public int getData() { return data; } private Node left; private Node right; public Node(int d, Node l, Node r) { data = d; left = l; right = r; } // Deep copy constructor public Node(Node o) { if (o == null) return; this.dat...
2018/02/28
1,085
4,322
<issue_start>username_0: **The situation, I'm starting with:** I compiled Paraview on my development PC without problems. I then compiled some small plugin for it - again with out problems. If I run Paraview (either my compiled version or the binaries from the webpage) on that PC, I can load and use the plugin. **The...
2018/02/28
808
3,177
<issue_start>username_0: I've put `asm INT 3 end;` in the very first line of my main procedure. ``` program Project1; uses Forms, Unit1 in 'Unit1.pas' {Form1}; {$R *.res} begin asm INT 3 end; Application.Initialize; Application.CreateForm(TForm1, Form1); Application.Run; end. ``` Yet, the SysInit.\_I...
2018/02/28
1,827
5,956
<issue_start>username_0: I am new in working with parquet files, I want to develop a mapreduce job that reads many input parquet files with the following shcema: ``` { optional int96 dropoff_datetime; optional float dropoff_latitude; optional float dropoff_longitude; optional int32 dropoff_taxizone_id; opti...
2018/02/28
708
2,479
<issue_start>username_0: We observe a rare IllegalStateException inside JobScheduler implementation when JobScheduler is accessed within Application.onCreate() method. I wonder if this is a platform flaw? We are observing this crash on our users devices. Almost all of them are Android 5 and 5.1, but one crash happened...
2018/02/28
302
1,094
<issue_start>username_0: How can i hide my webpage for other browsers and make it viewable for Chrome only? **HTML:** ``` Hide me on all browsers except for Chrome! ``` I want the content class to be viewable for Chrome only and not for other browsers like Firefox and Safari<issue_comment>username_1: Framework J...
2018/02/28
782
2,463
<issue_start>username_0: I want to convert string such as '2-12-2018' to Feb. 12, 2018. I have tried many things but still is not showing me the month in format mmm.<issue_comment>username_1: You can do this by using [momentjs](https://momentjs.com/) ``` var res = moment("2-12-2018").format("DD/MM/YYYY") var now = mo...
2018/02/28
1,363
4,419
<issue_start>username_0: I want to extract text from a `value` tag, my xml code fragment and tries are as given below: ``` "Envelopes" "Labels" "Pens & Art Supplies" "Rubber Bands" "Scissors, Rulers and Trimmers" ``` MY try: ``` root = 'myxmlfile.xml' valuelist = [] for i in root.findall('./datas/data/column/...
2018/02/28
1,445
4,855
<issue_start>username_0: I have an ClassLibrary project who I need to attach to an external application (console app). ***I found some solutions here explaining exactly to do this what I'm doing, but in my case it's not working running from vs, looks like I need some delay to VS (AutoAttach) to the executable*** I tr...
2018/02/28
1,063
3,150
<issue_start>username_0: After the whole afternoon yesterday and some hours this morning I keep got the issue. I updated all the packages needed. I send POST with PostMan, using a **header Content-Type:application/json** and **body (Key=id) and (Value=32)** ( please check the screenshot below). Code used : ```js con...
2018/02/28
388
1,305
<issue_start>username_0: [![enter image description here](https://i.stack.imgur.com/PPUQZ.png)](https://i.stack.imgur.com/PPUQZ.png) How can I draw four sector DIVs (forming a circle) in HTML5 and CSS3 like the above figure and each div is clickable on its own area (not covering others)?<issue_comment>username_1: `req...
2018/02/28
467
1,711
<issue_start>username_0: I have recently been trying to create a functional telegram BOT using the official API but I have some issues. The BOT's goal is to forward all the messages received from person x to group y. The BOT checks "<https://api.telegram.org/bot>{}/getUpdates".format(TOKEN) for its latest received me...
2018/02/28
2,524
7,064
<issue_start>username_0: I am trying to install mysqlclient in virtrualenv on OSX high sierra, with python 3. And got the following error: ``` Failed building wheel for mysqlclient Running setup.py clean for mysqlclient Failed to build mysqlclient Installing collected packages: mysqlclient, coverage, django-covera...
2018/02/28
180
732
<issue_start>username_0: When my user adds an event for a specific client I get the following error: ``` ORA-12953: The request exceeds the maximum allowed database size of 11 GB ``` Any other client works fine.<issue_comment>username_1: As far as I can tell, you hit the limit of Oracle 11g Express Edition, which li...
2018/02/28
636
2,250
<issue_start>username_0: How to display loop value in another class? **Class B** ``` public class Runner { public static void main(String[] args) { WelcomePage welcome = new WelcomePage(); String a = welcome.run(); System.out.println("The output " + a); } } ``` **Class WelcomePage**...
2018/02/28
868
3,116
<issue_start>username_0: When I try to Import xml file, it returns an error: > > xmlParseCharRef: invalid xmlChar value `4"` because of `$amp;` in xml `NAME="ABC & Glass" RESERVEDNAME="">` > > > Here is code I'm using to read xml file data ``` function add_product_type() { print_r($_FILES); if (isset($_...
2018/02/28
1,518
5,693
<issue_start>username_0: ### What I want to do In a `BottomSheetDialogFragment`, I want to inflate a view that always stick at the bottom of the screen, no matter what [state (collapsed / expanded)](https://developer.android.com/reference/android/support/design/widget/BottomSheetBehavior.html) the `BottomSheetBehavior...
2018/02/28
2,087
5,837
<issue_start>username_0: **These are the instructions my professor gave me for a Lab in C** **--SOLVED--** ``` struct singlecard { int cardnum; char face; char suit; }; ``` Your program must have the functions named as follows: Main() - Calls "LoadDeck()" and "DealCards()." LoadDeck() will fill just the "ca...
2018/02/28
1,311
5,077
<issue_start>username_0: I am trying to display image in a horizontal row. The image appears but only three of the image is shown instead of the five images. Below is my snippet. ``` ``` Please how can make the images display horizontally and if the width is full let is flow to the next row<issue_comment>username_1:...
2018/02/28
1,099
2,285
<issue_start>username_0: I have a dataframe in which I need to create two (or more) new columns both of which are initialized to zero. This is what I am doing to reach there - ``` import pandas as pd df = pd.DataFrame({'value': {0: 0.6, 1: 0.5, 2: -0.7, 3: 0.6, 4: 0.7, 5: -0.7, 6: 0.9, 7: 0.5, 8: -0.6, 9: 0.5, 10: 0....
2018/02/28
1,616
5,533
<issue_start>username_0: First sorry for my english( it is not my main language ). I am new in CodeIgniter3 and i like it. Lets say this is my model: ``` function login($uname, $upassword) { $this->db->where('uname', $uname); $this->db->where('upassword', $upassword); $query = $this->db->...
2018/02/28
842
2,465
<issue_start>username_0: how to save click event to local storage to hide popup from user. He need to click accept once. If he ll click cancel the popup should opens again <https://jsfiddle.net/npdqq2dt/5/> ``` blablabla accept cancel #overlay { position: fixed; top: 0; left: 0; display: block; ...
2018/02/28
611
1,927
<issue_start>username_0: My problem is removing an item from a list and replacing it with a new value. For example, if I had the list `'(F J (N R D A))`, and I wanted to replace it with a brand new list such as `'(F J (M G E Q F))`. So I would be removing the innermost list and replacing it with a new one. Any advice?<...
2018/02/28
701
2,580
<issue_start>username_0: I was wondering if there is a way to use environment variables taken from the host where the container is deployed, instead of the ones taken from where the `docker stack deploy` command is executed. For example imagine the following `docker-compose.yml` launched on three node Docker Swarm clus...
2018/02/28
352
1,079
<issue_start>username_0: I find Android's web view behaviour strange when handling with css properties: When displaying a web page that contains the following css properties: `font-size` and `line-height`set to: ``` font-size: 20px; line-height: 35px; ``` Android's webview changes the properties to: ``` font-size:...
2018/02/28
685
2,853
<issue_start>username_0: I am attempting to publish my demo IdentityServer4 app to Azure web app service for testing. Everything works beautifully including the app load. However, no logs are being generated so i got suspicious and checked the diagnostics and found this: ``` 2018-02-28 08:54:21.626 +00:00 [Critical] ...
2018/02/28
1,984
7,322
<issue_start>username_0: I'm trying to find a way to bind array of objects within Vue select-element. The case is somewhat as follows: ``` data: { ideas: [ { id: 1, code: "01A", text: "option 1", props: [] }, { id: 2, code: "02A", text: "option 2 , props: [{ details: "something" }]} ]}, currentForm: { ...
2018/02/28
1,709
6,468
<issue_start>username_0: I am working with several Custom Fields which are "allocated" to Custom Post Types. For some odd reason one Custom Field needs to be created over and over again. I cannot seem to find a solution that this specific Custom Field is saved onto my Wordpress Database for future use. The Custom Fiel...
2018/02/28
4,536
10,077
<issue_start>username_0: I have a dataset with id ,Status and date range of employees. The input dataset given below are the details of one employee. The date ranges in the records are continuous(in exact order) such that startdate of second row will be the next date of enddate of first row. If an employee takes...
2018/02/28
964
4,123
<issue_start>username_0: We currently have an identity server built using Identityserver4 2.0. We are in the process of adding some policy guidelines to our API. I have been reading a number of tutorials mainly this one [Policy-Based Authorization in ASP.NET Core](https://stormpath.com/blog/tutorial-policy-based-author...
2018/02/28
1,420
4,193
<issue_start>username_0: I have a list called clients\_list full of dictionaries such as this: ``` clients_list = [ {'<NAME>': [28, '03171992', 'Student']}, {'<NAME>': [22, '02181982', 'Student']}, {'<NAME>': [18, '06291998', 'Student']}, ] ``` How would I check to see...
2018/02/28
1,411
4,298
<issue_start>username_0: When I am trying to execute few reports in **ReportManager** its throwing error. ``` The attempt to connect to the report server failed.Check your connection information and that the report server is a compatible version. There is an error in XML document(1,134206). '',hexadecimal value 0x0C, ...
2018/02/28
595
1,914
<issue_start>username_0: Is there better way to write such loops when I use dataframe? a,b are dataframes(4, 1096) ``` c = pd.DataFrame(np.zeros((4, 1096))) for j in range(0, 4): for i in range(0, 1096): c[i][j]=abs((a[i][j]-b[i][j]))/(a[i][j]+b[i][j]) ```<issue_comment>username_1: I think you can do so...
2018/02/28
543
1,680
<issue_start>username_0: This is my video [![enter image description here](https://i.stack.imgur.com/su2nl.png)](https://i.stack.imgur.com/su2nl.png) This is the script to find fps: ``` import cv2 if __name__ == '__main__' : video = cv2.VideoCapture("test.mp4"); # Find OpenCV version (major_ver, minor_...
2018/02/28
506
1,480
<issue_start>username_0: I have an JSON object like ``` [{"schedule_time_id":1},{"schedule_time_id":2}] ``` I want to convert this JSON object into the following format ``` [1,2] ``` I have used already `(array) $object` to convert it but doesn't get the targeted format.<issue_comment>username_1: There are plenty...
2018/02/28
992
3,905
<issue_start>username_0: I saw some http handler function declarations are varied. Two of them I found are the standard function and the one returning anonymous function inside the handler. For example: Using standard way: ``` func helloworld(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "Hello World...
2018/02/28
1,042
3,054
<issue_start>username_0: I've a file that contains info that I'm retrieving such way Command ``` cat 2018_02_15_09_01_08_result.tsv | grep -o [A-Z]\\*[0-9]*:[0-9]* | sort | uniq | sed -e 's/^/HLA-/' |tr '\n' ',' | sed '$ s/.$//' ``` Output ``` HLA-A*30:02,HLA-B*18:01,HLA-C*05:01 ``` But I'm trying to save this...
2018/02/28
683
2,576
<issue_start>username_0: I want to make a bot that send a message to new comer at the channel. I'm using discord.py. ------------next day------------------- Firstly, Thank you three people!(sorry for bad English). I studied a lot. But unfortunately, I've found "member.server.defaul\_channel"(which must have been thi...
2018/02/28
498
1,994
<issue_start>username_0: I have a single solution which contains 3 forms so far(will be more in the future). The first form(main one) is a simple drop down list which shows available applications and opens selected form. Now, I need to notify a user(on start up of the application) that there is a newer version of sp...
2018/02/28
2,130
7,201
<issue_start>username_0: My Env: ``` Qt 5.3.1 Windows 10 ``` I need to find the path of mounted USB storage devices. Through the path, I can copy the files via Qt. I know there is a cross-platform `libusb`. But want to know any simple solution.<issue_comment>username_1: First you need to get removable drives: ``` v...
2018/02/28
3,359
11,694
<issue_start>username_0: I try to create a family instance using CreateAdaptiveComponentInstance and try to host it on a reference point, that's also a control point of a CurveByPoints (spline). The family links properly to the reference point, but the rotation of the reference point's workplane is totally ignored. Tr...
2018/02/28
717
2,197
<issue_start>username_0: I want to get format like ``` [{"1":"6"},{"1":"7"},{"2":"8"}] ) ``` But this code shows like this: ``` [{"cateid":"6"},{"cateid":"7"},{"cateid":"8"}] ) ``` How can I replace `cateid` with integer value? ``` var seleusrv = []; $('.catechk:checked').each(function(){ var cateid = $(t...
2018/02/28
546
1,866
<issue_start>username_0: I have a composer package A and B. A is for non-Laravel projects, while B slightly extends A with some Laravel specific files (configs, facades, etc). 1. How should B require A? Would it be "^1.1" or "1.\*"? As the minor version should not break anything, the second one may be better, as I wou...
2018/02/28
1,232
4,606
<issue_start>username_0: I have worked on a couple of Angular applications already, but all of those were using one layout for the entire application. I am now converting an application built with AngularJS + UI-Router to Angular 5. Using AngularJS + UI-Router it is quite easy to have the "master-page" independent fro...
2018/02/28
638
2,242
<issue_start>username_0: I'm sending a JSON object through PUT from angularJS to c#, which has a property name and a value. I'm trying to loop for each property and read both name and the value, but it fails. I have succeed to read only the name or only the value though with the below code: ``` Newtonsoft.Json.Linq.J...
2018/02/28
345
1,215
<issue_start>username_0: I created a new react-native app with `react-native init ProjectName`. I then removed `android.permission.INTERNET` and `android.permission.SYSTEM_ALERT_WINDOW` from the `AndroidManifest.xml`. With `cd android && ./gradlew assembleRelease` I created a new APK. Then I analyzed it with `aapt d...
2018/02/28
2,685
7,429
<issue_start>username_0: I'm trying to cross compile busy box V 1.27.2 for my embedded Linux device. I set share library build and cross compiler prefix and Sysroot to my compiler destinations. Compiler after trying to compile most library files is unable to link them.I received this: ``` Trying libraries: crypt m Fai...
2018/02/28
1,182
3,543
<issue_start>username_0: I am relatively new to log4j2. I am trying to create a log file using log4j2 but it is not getting created. Any help is appreciated. Thanks in advance. **log4j.xml Configuration File(below):** ``` xml version="1.0" encoding="UTF-8"? ../resources/logs ``` **Project Folder Structure(below)...
2018/02/28
753
2,765
<issue_start>username_0: I have a different `settings.py` for my local project and my live project (Bitbucket repo). So I have added `settings.py` to my `.gitignore` so when I make changes to either file, they don't get sent to the other repo when my git is pulled or pushed. However, I just did a `git pull` from my l...
2018/02/28
222
798
<issue_start>username_0: i need to send tomcat Catalina.out log content by Syslog-ng but but after restarting Syslog service ,it gets permission denied error so how can i give a read access to Syslog-ng for read from CATALINA.out ? "tomcat directory belongs to specific user and specific group so cannot be change."<i...
2018/02/28
218
758
<issue_start>username_0: I want to convert a string to a Python statement. 1. Taking string input from a text file e.g. `'dataframe['Column_name'].sum()'` 2. Executing the string as a Python statement e.g. `dataframe['Column_name'].sum()` 3. Storing the result in some variable<issue_comment>username_1: it's possible t...