date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/12
529
1,941
<issue_start>username_0: I have built a GUI using `PyQt5` and wanted to distribute it to other computers without `Python` installed by packageing it with `pynsist`. Unfortunately, when launching the shortcuts produced by the installer, the GUI does not open as expected and `Python` keeps crashing (even if `Python` is i...
2018/03/12
1,033
3,510
<issue_start>username_0: I am new to the angular-material libary (and material design spec in general), I have used bootstrap for years, so am not sure I am implementing mat-grid-list correctly, but I have the follwing: ```html Clocked In {{user.firstName}} {{user.lastName}} Clocked Out {{user.firstName}} {{us...
2018/03/12
859
3,122
<issue_start>username_0: Right now I'm working on Angular 5 application for our 3 clients. We have made some of needed implementation but considering layout for them there is a problem. All three clients have different demands for application colors and fonts. In my SASS file i have something like this: ``` //curren...
2018/03/12
1,749
5,824
<issue_start>username_0: Amazed (and cofused) by a [similar question](https://stackoverflow.com/a/49108009/499359) I tried myself the example that the mentioned question found in the standard: ``` template struct S; template struct S { void f() { std::cout << \_\_PRETTY\_FUNCTION\_\_ << '\n'; } }; int main() { S s...
2018/03/12
1,151
4,530
<issue_start>username_0: I followed this [article](https://www.androidhive.info/2014/01/how-to-create-rest-api-for-android-app-using-php-slim-and-mysql-day-12-2/) to build my own RESTful API server before. Now, I would like to send a POST request to my API server in android studio. I followed this [reply](https://stack...
2018/03/12
1,003
3,199
<issue_start>username_0: The code below and screenshots show the issue I'm having below. I need to have a listbox with Width set to Auto as the content size is variable. However, the number of items going into the listbox will also change, so sometimes a ScrollBar will be needed. The problem is, Auto Width doesn't se...
2018/03/12
1,610
4,524
<issue_start>username_0: I have **$student\_object\_array** which contains information about **3 students**. Then I have an array **$room** which contains room\_id,capacity and allotment. **(Note: There are 2 rooms)** ``` $room[0]->room_id=1; $room[1]->room_id=2; $room[0]->capacity=2; $room[1]->capacity=3; $room[0]...
2018/03/12
1,127
3,970
<issue_start>username_0: Consider the following code in C. ``` char *s = malloc(5); ``` I prompted the user for 4 char input and stored it in `*s`. While the program is working with the string `s` it may know that it is at the end of the string by encountering a `'\0'`. Now , my problem is: How does the compiler...
2018/03/12
1,216
4,271
<issue_start>username_0: I am using `system.net.http` to build a web service layer for my app. I started building this on an iphone simulator (as I develop for iOS first) and everything is working. I checked in my code and then started testing on other devices and nothing works... I get the same exception on a physical...
2018/03/12
4,820
11,807
<issue_start>username_0: I have a list view in one fragment and when I click on item in the `ListView` that should be navigated to another activity related to the selected option, but in my case it is not happens and also it is not throwing any error also.. it is clickable but it is not navigating. //***My Fragment Cl...
2018/03/12
1,924
4,855
<issue_start>username_0: I'm trying to set up CI on Microsoft's *[Visual Studio Team Services](https://www.visualstudio.com/team-services/)* (VSTS) that includes *[AWS CLI](https://marketplace.visualstudio.com/items?itemName=AmazonWebServices.aws-vsts-tools#user-content-run-aws-cli-commands)* task. I have some steps fo...
2018/03/12
990
3,835
<issue_start>username_0: Let's say I have 3 `ViewControllers` labeled "A","B" and "C". Right now, "A" is the `rootViewController` of the window and it presents "B" modally. When a button is tapped in "B" it is supposed to present C modally immediately and dismiss "B" automatically. How can I do that? I saw all the exam...
2018/03/12
525
1,949
<issue_start>username_0: The code below works by copying rows with "Yes" in the M column into another sheet. I'm trying to find a way to also add the criteria that this will only work if column K is not blank (ie, text needs to be in column K first). I'm struggling to incorporate Not IsBlank or Not IsEmpty into this. C...
2018/03/12
2,255
5,383
<issue_start>username_0: I have 2 numpy arrays with the same shape. Now I want to compare the values of array 1 with array 2. Finally, the sum of the matches with the condition value == 1 is to be output. array 1: ``` [1, 0, 1] [1, 1, 0] [0, 0, 1] ``` array 2: ``` [0, 1, 1] [1, 0, 0] [0, 1, 1] ``` The result sho...
2018/03/12
1,191
4,235
<issue_start>username_0: I am trying to create backup copy of workbook .xlsm and save it as .xlsx due to the same issue as here: [Run time error '1004': Copy method of worksheet class failed - Temp file issue](https://stackoverflow.com/questions/49180966/run-time-error-1004-copy-method-of-worksheet-class-failed-temp-...
2018/03/12
825
3,246
<issue_start>username_0: I am running java code in android for making credentials using oauth 2.0 in android when i run this code I'm getting issue: This is my issue: > > Caused by: java.lang.ClassNotFoundException: Didn't find class "java.awt.Desktop" on path: DexPathList[[zip file "/data/app/com.retrofitdemo-1/bas...
2018/03/12
1,179
3,639
<issue_start>username_0: My algorithm is as shown below: ``` Initialize: max_so_far = 0 max_ending_here = 0 Loop for each element of the array (a) max_ending_here = max_ending_here + a[i] (b) if(max_ending_here < 0) max_ending_here = 0 (c) if(max_so_far < max_ending_here) max_so_...
2018/03/12
410
1,852
<issue_start>username_0: Having searched for **angular universal** for many days I see there is a lack of information of how actually *ServerSideRendering* works . Let me guide you through my concerns and help me clarify some blur spots. There are pretty many guides telling you how to setup *SSR* what to be carefu...
2018/03/12
1,782
6,330
<issue_start>username_0: I have a list of int arrays. I want to group that by unique arrays. ``` int[] array1 = new int[]{1, 2, 3}; int[] array2 = new int[]{1, 2, 3}; //array1 = array2 int[] array3 = new int[]{0, 2, 3}; List test = new ArrayList<>(); test.add(array1); test.add(array2); test.add(array3); test.stre...
2018/03/12
1,914
7,293
<issue_start>username_0: I have gone through the solution provided by peter for setting system properties dynamically in multithreading with the below link [System.setProperty used by a thread impacts other thread in communication to external network elements. How to resolve it?](https://stackoverflow.com/questions/9...
2018/03/12
566
2,091
<issue_start>username_0: I'm trying to authenticate myself against an API. This API uses the raw body from the request to create the hash that it will use to authenticate against my token. For testing purposes, I'm using postman with a pre request script to create the hash. Everything works fine, with one exception: ...
2018/03/12
547
1,907
<issue_start>username_0: I need to select a specific date meeting certain conditions from a database, i declared the date as $ldate="" and diplay the selected date on screen, but the result always shows 01 jan 1970. pls help. ``` $ldate=""; while($row = $result->fetch_assoc()){ $lamt=$row['Loan_Amount']; ...
2018/03/12
1,058
3,739
<issue_start>username_0: I am developing a custom circular progress bar, but I don't know to center it to the same center of the progress label for all devices. As it is a `CAShapeLayer`, I can't use `SnapKit` neither add constraints manually, at least I couldn't do it by code, it doesn't have the constraint property. ...
2018/03/12
3,626
12,841
<issue_start>username_0: I am learning Kivy, and to make it more fun I am creating a small 2D game. For now its just a tank that can be controlled with WASD and shot projectiles with o. The problem is that the FPS degrades over time. This happens even if I do nothing in the game. I don´t have an FPS counter, but its s...
2018/03/12
597
2,075
<issue_start>username_0: I have an array inside an array, and somehow it doesn't recognize the different values as separate, so that if I try to print the 2nd value it prints me the 2nd letter of the first value. ``` var name = ["John", "Alex"]; var food = ['pizza', 'banana', "cheese", ["bmw", "tesla"], name]; documen...
2018/03/12
753
2,760
<issue_start>username_0: I have a table that I would like it to select the smallest size picture frame that could be used based on the size values, basically return the smallest frame that would fit the image. So far I have a vertical array formula that can select the smallest frame that will fit the size requirements...
2018/03/12
1,175
4,457
<issue_start>username_0: we have the following scenario: AWS Account A (application) writes data from an application to an S3 bucket owned by account B (data lake). The analysts in account C (reporting) want to proccess the data and build reports and dashboards on top of it. Account A can write data to the data lake w...
2018/03/12
822
2,385
<issue_start>username_0: Here's my data ``` No Body 1 DaTa, Analytics 2 StackOver. ``` Here's my expected output ``` No Body Vowels Consonant 1 DaTa, Analytics. 5 8 2 StackOver. 3 6 ```<issue_comment>username_1: you can count # of vowels using a ve...
2018/03/12
1,213
3,483
<issue_start>username_0: For testing, I am using a jsonstring. Later I will get this via api. The aim is to view the data in a table. The first loop with building the header works fine, but when I try to loop thrue the products, then I got an error. I am using angular 5 This is my jsonstring: ``` [{ "obm": 1234, ...
2018/03/12
280
860
<issue_start>username_0: I'm trying to create four buttons where four labels appear in a random order: ``` ``` The labels are stored under the ``` var choiceLabels = ["Hola", "Hole", "Holo", "Holu"]; ``` Then the code iterates through the choices to stick them in the buttons: ``` for (var i=0; i ``` But the tex...
2018/03/12
1,440
6,725
<issue_start>username_0: I want to add files to the database. I have 6 columns to store files. If only 1 file is uploaded, I want to upload the single file in only one column. If two files are uploaded I want to use 2 columns. What should my SQL query be to update accordingly when the files are uploaded? [![the 6 c...
2018/03/12
1,015
3,442
<issue_start>username_0: I am using [React Navigation](https://reactnavigation.org/) in a create-react-native-app. I am using the `TabNavigator` component like this (iPhone SE): [![enter image description here](https://i.stack.imgur.com/VntwT.png)](https://i.stack.imgur.com/VntwT.png) The `TabNavigator` is the dark ...
2018/03/12
522
1,966
<issue_start>username_0: Consider a code; ``` import org.apache.spark.sql.hive.orc._ import org.apache.spark.sql._ val path = ... val dataFrame:DataFramew = ... val hiveContext = new org.apache.spark.sql.hive.HiveContext(sparkContext) dataFrame.createOrReplaceTempView("my_table") val results = hiveContext.sql...
2018/03/12
562
1,722
<issue_start>username_0: We are facing issues of getting lat and long from Google map API. Actually, we are using google map api to get lat and long from address. But in some cases google map api is not giving accurate lat and long but getting accurate lat and long if we search the address into google map directly as...
2018/03/12
345
1,126
<issue_start>username_0: There is code in Laravel: ``` $product = Product::where('slug', $slug)->with('types')->with('brand')->firstOrFail(); return $product; ``` I'm retrieving array with types array and brand array. Types has boolean options "is\_active" How I can return $product with types that is\_active ex...
2018/03/12
442
1,597
<issue_start>username_0: I am using Codeception to test 3 APIs: 1. Write a post comment 2. Write a reply to the comment 3. Get all comments from a post The first API returns the ID of the comment that was just inserted into DB. I want to pass the comment Id to the second test method. In PHPUnit I would do that by re...
2018/03/12
950
2,362
<issue_start>username_0: When computing the difference between two dates using the following: ``` df_test['Difference'] = (df_test['First_Date'] - df_test['Second Date']) ``` I get a third column with "x Days". How can I convert "x Days" into int "x". e.g., "50 days" into "50"? Someone in a previous thread sugges...
2018/03/12
451
1,762
<issue_start>username_0: I've created two separate maps, each with the source from a CDM schema. I now have to create a third map, which should select the correct map to use, based on a subtype (field element in the header). For now I have created a Joint.xslt file, which would contain the logic needed to select and ...
2018/03/12
492
1,670
<issue_start>username_0: I have just updated Visual Studio 2017 and create one new project. It build successfully but giving deployment error. Application doesn't deploy on my Samsung J7 device. Before the update, it was working fine. How to resolve this? [![Error](https://i.stack.imgur.com/0N7Tz.png)](https://i.st...
2018/03/12
450
1,410
<issue_start>username_0: I am using bootstrap and following this doc: ``` Seleccionar Archivo $custom-file-text: ( en: "Browse", es: "Elegir" ); ``` The input text isnt being translated even with `lang="es"` attribute added. Here there is a codepen, what am I missing? <https://codepen.io/anon/pen/ZxGNrw><is...
2018/03/12
1,503
5,148
<issue_start>username_0: I am trying to insert date of birth of a user into a database i have the following code ``` php include("db_con.php"); $dsn = "mysql:host=localhost;dbname=user"; $username = "root"; $password = ""; $options = array(PDO::ATTR_ERRMODE = PDO::ERRMODE_EXCEPTION); $pdo = new PDO($dsn, $username, $...
2018/03/12
673
1,939
<issue_start>username_0: If we have a dataframe output of model.approxSimilarityJoin of ``` val results = model .approxSimilarityJoin(vectorizedDf, vectorizedDf, threshold) .filter("distCol != 0") .filter("distCol < 0.2") .select(col("datasetA.title").alias("idA"), col("datasetB.title").alias("idB"), col...
2018/03/12
1,346
4,617
<issue_start>username_0: This may look simple but I am not able to find the syntax to use the switch case statement. I want to give the command as below in command line: ``` dumpFile -t TYPE -c Filename dumpFile -c Filename ``` In both the cases I need '-c' option to work in different manner.Like in first case, I am...
2018/03/12
1,841
6,306
<issue_start>username_0: I have written this code to compare two time values in milliseconds. The comparison is of current time with the time defined in the database. ``` fun check_for_lecture(complete:(Boolean) -> Unit) : Int{ for (x in UpdateScheduledLecturesService.lectures) { try { val...
2018/03/12
1,602
5,363
<issue_start>username_0: I need to load a dataframe from a Hive table and for that I followed this instruction from Apache Spark 2.3 docs.(<https://spark.apache.org/docs/latest/sparkr.html>). I'm doing that by a Zeppelin notebook. Can someone please explain how to create a dataframe using SparkR? Or what I'm doing wro...
2018/03/12
856
4,109
<issue_start>username_0: I am trying to perform an AJAX request through `jquery-confirm` plugin loading the file data from a form through its ajax-load function and then updating the information to a PHP file and ultimately to a database. However, this is resulting in the following error. ``` Deprecated: Automaticall...
2018/03/12
719
2,453
<issue_start>username_0: Snippet 1: ---------- * If you run this below code, then you can't add duplicate records. ```js var app = angular.module("myShoppingList", []); app.controller("myCtrl", function($scope) { $scope.products = ["1", "2", "3"]; $scope.addItem = function() { $scope.products.push($scope....
2018/03/12
594
2,072
<issue_start>username_0: i am using a footable and i need to reload it on a button click but without appending html to the table, i need to reload it from sql as it is filled the first time, is that possible i have tried to realod the div `$("#BusList").load(location.href + " #BusList");` the data is loaded but the de...
2018/03/12
595
1,644
<issue_start>username_0: This is the payload to transform : ``` 201762133 201730800 2016419446 10208.32 10196.62 10196.62 Open Open Closed 30/03/2017 28/02/2017 30/01/2017 3 ``` So, I can't change this payload before the transformation, and I'm not managing to delivery this way: ``` 201762133,201730800,201641...
2018/03/12
506
2,153
<issue_start>username_0: I am new to iOS development. I have a task to develop an iOS app which connects to Bluetooth printer using Bluetooth and complete a printing task. I have few questions they are as follows 1) Does iOS support Bluetooth printing? 2) If my printer is AirPrint enabled but not connected to the Wi...
2018/03/12
2,649
9,125
<issue_start>username_0: Starting position for player and mobs does not work properly. When I take out the line in SPRITES, Mob (that is # in code atm) the position works with the map reader in 'new'. Atm the starting pos for player and mob is 0, 0 for some reason. I'm thinking it has something to do with pos. I have ...
2018/03/12
1,107
3,554
<issue_start>username_0: I have installed ASP.NET Core 2.1 preview 1 from [here](https://blogs.msdn.microsoft.com/dotnet/2018/02/27/announcing-net-core-2-1-preview-1/) and the latest preview of Visual Studio. Then I follow the steps: File > New Project > ASP.NET Core Web Application > Choose `API`, check `Enable Dock...
2018/03/12
597
2,362
<issue_start>username_0: I have created a bunch of Commandbuttons with my class clsComamndButtons in a Userform. Everything works so far. All these Buttons should do the same, but i don't know how can i get the Name of the Button from which i called the cmdCommandButton\_Click Method. I want to write the Path of the ch...
2018/03/12
621
1,989
<issue_start>username_0: I would like to know the significance of ERRORS=n in a control file. Can we use this option to fail the SQL loader if it crosses a particular value(101 or higher in this case)? How can I handle the exit status from the failed scenario in Unix? What happens to SQL loader when it reaches the num...
2018/03/12
419
1,476
<issue_start>username_0: In this line: `getHeroes (): Observable {}` What is the `<`variable`>`? I've been reading through the docs, and Googling it, but Google seems to think I only want arithmetic operators. Looking for ECMA notation as well, can't find it either. Or is it a typescript thing?<issue_comment>userna...
2018/03/12
1,092
4,186
<issue_start>username_0: I have an activity that have 4 fragment on top and BottomNavigationView with 4 items on bottom. It is working fine in mobile devices. When i go for tablet with LANDASCAPE i want to move that BottomNavigationView to left of the activity with vertical orientation like below. Is this achievable u...
2018/03/12
1,086
3,679
<issue_start>username_0: probably someone can help with Windows, Python, Selenium and using Chrome webdriver with ChromePortable. I've defined a new folder c:\myproject Wihtin this folder the wedriver is located: c:\myproject\driver\chromedriver.exe and also the Chrome Portable c:\myproject\chromeportable\chrome.e...
2018/03/12
2,105
7,629
<issue_start>username_0: I am trying to build a react application which saves data into database. I have the following classes: **server.js** ``` let express = require('express'); let bodyParser = require('body-parser'); let morgan = require('morgan'); let pg = require('pg'); let cors = require('cors'); const PORT =...
2018/03/12
476
1,577
<issue_start>username_0: Does anyone know how to install tesseract for python on Anaconda? I have a windows system. The anaconda website gives the installation for a linux system: ``` conda install -c auto pytesseract ``` Would there be any alterations required for a windows system?<issue_comment>username_1: Just t...
2018/03/12
1,136
4,222
<issue_start>username_0: I have multiple .html files on my local IIS Server. **For example:** * Index.htm (The default page) * page1.htm * page2.htm * page3.htm * page4.htm All the pages are connected per Hyperlinks with each other. **Like** from Index.htm to page1.htm, and from page1.htm to page3.htm etc... My pro...
2018/03/12
665
2,184
<issue_start>username_0: I need to convert a JSON response to nested div elements and append them using jquery. For example, my JSON response is something like this. ``` [ { name: "List one", arr: [ {key: "A1"}, {key: "B1"}, {key: "C1"}, {key: "D1"} ...
2018/03/12
540
1,794
<issue_start>username_0: I've retrieved the field names of a table by giving the table name directly (INS\_TEST is the name of my table). I used columns \_Field-Name, \_Data-Type of the \_Field system table and retrieved the field names and their data types. I want to use the retrieved field names and insert field val...
2018/03/12
840
3,085
<issue_start>username_0: I am new to Selenium. I am having difficulty getting the following link to click. I am getting an elemnt not visible exception: ``` org.openqa.selenium.ElementNotVisibleException: element not visible ``` For ``` driver.findElement(By.xpath("//a[@href='/Home/Members']")).click(); ``` ...
2018/03/12
957
2,733
<issue_start>username_0: I have a YAML file looks like this: ``` --- !ruby/object:Hi num: 1 --- !ruby/object:Hi num: 2 ``` and my ruby code: ``` require 'yaml' class A attr_accessor :num def initialize num @num=num end end a=A.new 1 b=A.new 2 File.open 'test.yml', 'r+' do |f| f.write YAML.dump a f.write YAML...
2018/03/12
1,561
5,679
<issue_start>username_0: Ive a scenario to do some changes in a workbook in another workbook path. But the question is I need to check whether the workbook already open or not. If not I need to get that opened instance to a workbook variable. Here is the code Im using for checking whether workbook open or not and then...
2018/03/12
1,297
4,580
<issue_start>username_0: I am new with databases so maybe my thinking is flawed, but I would like to define a table with fixed entries (=initial data) using Django for a webapp. These entries would be defined once, remain unchanged, and should be present locally and to collaborators when they pull the code. I thought i...
2018/03/12
503
2,050
<issue_start>username_0: There are 1500 pics, each 64x64 pixels, that I need to use within my Xcode Project. I will use these pictures in the TableView, but Xcode crashes when I put it directly into the Assets.xcassets directory. What is the best way to use these pictures?<issue_comment>username_1: Adding your images i...
2018/03/12
329
1,126
<issue_start>username_0: I am new to React-Native and android app development as a whole. While i try to run remote debugger in Android Emulator (Pixel 2 phone), I get the following error in the emulator: [![Error on Emulator](https://i.stack.imgur.com/aoisd.png)](https://i.stack.imgur.com/aoisd.png) Then after, even ...
2018/03/12
664
2,316
<issue_start>username_0: How in below example get NUM or CODE ``` lines = filename.split('\n') for line in lines: print("CODE is:" + ???); #CODE is: 1111 #CODE is: 2222 #CODE is: 3333 ``` file ``` ``` How get NUM and CODE from abowe example?<issue_comment>username_1: This is on...
2018/03/12
637
2,347
<issue_start>username_0: I'm trying to create ML models dealing with big datasets. My question is more related to the preprocessing of these big datasets. In this sense, I'd like to know what are the differences between doing the preprocessing with Dataprep, Dataproc or Tensorflow. Any help would be appreciated.<issue...
2018/03/12
247
864
<issue_start>username_0: Why do I get undefined if I try to access a string like this: ``` obj.prop = JSON.stringify(otherObj); ``` Yet if I access it like this: ``` prop = JSON.stringify(otherObj.propertyIwant); ``` it works and gives me the value I want ??<issue_comment>username_1: So, `stringify` will convert ...
2018/03/12
341
1,400
<issue_start>username_0: i have two spinners, city and neighborhood, when i select a city it populates neighborhoods list. but i want when i click neighborhood spinner and city is empty to show a message or an Alertdialog. i tried to use ontouchevent on the second spinner but it doesn't work. i m using custom spinner c...
2018/03/12
216
754
<issue_start>username_0: How Can I pass partial file path in the variable and access in groovy grails? For-Example- ``` String path = System.getenv("CATALINA_HOME"); File siteFile = new File("${path}/webapps/ROOT/sitemap.xml") ``` Please provide the solution so that I can Implement in my project.<issue_comment>user...
2018/03/12
510
1,905
<issue_start>username_0: I saw an interesting viewholder implementation in this tweet <https://twitter.com/AndroidDev/status/972502799496790018> ``` override fun onBindViewHolder(holder: SealedAdapterViewHolder, position: Int) { return when (holder) { is HeaderHolder -> holder.displayHeader(items[position]) ...
2018/03/12
873
2,496
<issue_start>username_0: I have two arrays: ``` firstArray = [1, 2, 3, 4]; secondArray = [5, 6, 7, 8]; ``` I must use their elements to compute another one inside a forEach. ``` _.forEach(firstArray, (data, i) => { myValue: firstArray[i] + secondArray[i] }); ``` This works fine. But I want to ignore the last elem...
2018/03/12
615
2,170
<issue_start>username_0: I know how to declare an array of other things, like strings, in this way: ``` String[] strings = { "one", "two", "tree" }; // or String[] strings = new String[] { "one", "two", "tree" }; ``` But when it comes to method references, I can't figure out how to avoid having to create a list and ...
2018/03/12
865
2,458
<issue_start>username_0: I am new Python programmer, and I want from this, ``` dic = {"word1": ["a","b","c"], "word2": ["b", "d", "e"], "word3": ["a", "f", "c"]} ``` to, this DataFrame Object. [![enter image description here](https://i.stack.imgur.com/ckK0w.png)](https://i.stack.imgur.com/ckK0w.png) I tried code ...
2018/03/12
1,714
4,770
<issue_start>username_0: I'm trying to create a website with a menubar on the left and the main content in the middle. I would like the empty space on either side of the content to be equal, even when resizing the browser. Here's a rough demo: <https://codepen.io/t-silver/pen/RMPmPW> However, currently the content ...
2018/03/12
833
2,481
<issue_start>username_0: I have a regex pattern expected to capture the *src* and *height* (which is possibly in the `height` or `style` attribute) from some `![]()` html elements. Here is my pattern: ``` /img[^\>]*(?:height="([\d]+)")?[^\>]*src="([^"]+)"[^\>]*(?:style\="height:([\d]+)px;?[^"]+")?[^\>]*/i ``` I use ...
2018/03/12
859
2,428
<issue_start>username_0: I am newbie on postgreql , and working on the xml As from the document i have used following query : ``` select xmlelement(name user,query_to_xml('select cu_fname,cu_sname,cu_id from p_customers',true,true,'')) ``` And the result is ``` Test user 66976662 Test User 60134543 Test...
2018/03/12
459
1,449
<issue_start>username_0: how do i remove object from an array in typescript? ``` "revenues":[ { "drug_id":"20", "quantity":10 }, { "drug_id":"30", "quantity":1 }] ``` so i want to remove the drug\_id from all objects. how do i achieve that? Thank You!<issue_comment>username_1: you...
2018/03/12
557
1,731
<issue_start>username_0: I am trying to add a `wrapper` class to a styled component in React. Is there any that I can implement it so that the CSS is generated as follows? ``` .test-class { color: red; font-size: 40px; } @media (max-width: 600px) { .wrapper .test-class { color: blue; font-s...
2018/03/12
738
2,287
<issue_start>username_0: I have two table **tblEsslAttendance** and **tblEnquiry** in tblDevicemember id generate 111 and tblMember id generate JE-111, I want to join that two table with this id base My table **tblEsslAttendance** are: ``` EmpDeviceCode | EmpCode | LogDate ----------------------------------- 111 ...
2018/03/12
1,159
4,869
<issue_start>username_0: I'm using selenium in python under Linux and have it setup to use a specific Firefox profile. That part is working fine. However, it is creating a copy of the profile in /tmp and not using the profile directory directly in the location I specify ('~/.mozilla/firefox/ki1relie.testprof') with web...
2018/03/12
2,053
7,598
<issue_start>username_0: I am trying to create a Python script in NiFi that: 1. Reads some attributes from an incoming flowfile 2. Read the json content of the flowfile & extract specific fields 3. Write attributes to outgoing flowfile 4. Overwrite incoming flowfile with new content that is created in the script (e.g....
2018/03/12
1,985
7,071
<issue_start>username_0: I am currently practicing my Access Skills and would appreciate any help with the below issue. The thing is that I am trying to combine 3 tables into one. I am using one of them as a Master table (Fact Table) and the other 2 tables have extra information for the fact, however the information i...
2018/03/12
1,510
5,397
<issue_start>username_0: I should achieve such effect in `ConstraintLayout` as below [![enter image description here](https://i.stack.imgur.com/DG3Qk.png)](https://i.stack.imgur.com/DG3Qk.png) I know how to create the custom `ProgressBar`, but I have no idea how to align this `view` on the border of different backgro...
2018/03/12
2,227
7,058
<issue_start>username_0: Error: > > Error: Uncaught (in promise): Error: StaticInjectorError[AddItemPage]: > StaticInjectorError[AddItemPage]: > NullInjectorError: No provider for AddItemPage! Error: StaticInjectorError[AddItemPage]: StaticInjectorError[AddItemPage]: > > > > ``` > NullInjectorError: No provider...
2018/03/12
1,635
5,990
<issue_start>username_0: I am currently running some Spark code and I need to query a data frame that is taking a long time (over 1 hour) per query. I need to query multiple times to check if the data frame is in fact correct. I am relatively new to Spark and I understand that Spark uses lazy evaluation which means th...
2018/03/12
772
2,940
<issue_start>username_0: *Note: This question is specific to Scala projects. I want to have Scala compile and run successfully from inside IntelliJ without any prior configuration.* I have created a test project containing Scala examples using IntelliJ IDEA and published it to GitHub. The project structure looks like...
2018/03/12
1,064
3,715
<issue_start>username_0: I have to create a reports in one currency. I need to do query in MySQL without using PHP process. but unable to figure it out. There is a table called currency\_exchange\_rate table as follows, (exchange rate in LKR to other currency).this table is updating like one record for each currency in...
2018/03/12
613
2,327
<issue_start>username_0: I want to bold all the line that contains Running test instead of just highlighting Running test. I don't know what comes in front so I want to highlight the line that has Running test. ```js //highlight words in the results $("p").html(function() { return $(this).html() ...
2018/03/12
1,060
3,608
<issue_start>username_0: Groovy allows definition of *extra properties* for the project in `ext`. I wanted to define Detekt's version inside groovy's extra properties. Detekt is a static code analysis tool for Kotlin lang. However when I do it in the folloing way: ``` buildscript { // testing, code-style, CI-to...
2018/03/12
914
2,994
<issue_start>username_0: I have an array of unique Ids like the following one: ``` const myIds = [2, 3, 4]; ``` I also have a database like this one: ``` +-----+------+ | id | seen | +-----+------+ | 0 | 0 | | 1 | 0 | | 2 | 0 | | 3 | 0 | | 4 | 0 | +------------+ ``` I would like to upda...
2018/03/12
754
2,693
<issue_start>username_0: **EDIT:** I found the answer. I had changed my default python to the anaconda version in my PATH, but forgot to do a reboot. After reboot, it worked. Before reboot, the default python was changed in CMD, but not in my IDE or Jupyter. If I run `CMD` and enter `python`, it returns the defaults p...
2018/03/12
483
1,445
<issue_start>username_0: I try build application android with this command: > > ionic cordova run android > > > but I have this error: > > Execution failed for task ':app:processDebugResources'. > > > this is output ionic info: > > li packages: (C:\Users\med\AppData\Roaming\npm\node\_modules) > > > `...
2018/03/12
215
903
<issue_start>username_0: I have a webview in my application where I need to open Google Play. The problem is that when I open this WebView for the first time, it asks me to sign in. It is not very convenient for users. Is there a way to make user signed in using system credentials or get credentials from default browse...
2018/03/12
1,108
3,955
<issue_start>username_0: In Cracking the Coding Interview 6th Edition there's a question (4.4) where you're suppose to find out if a binary tree is balanced, where balanced in this case means if any side is deeper than the other by more than 1. I solved this recursively like this: ```py def isBalanced(root): return...
2018/03/12
1,518
3,221
<issue_start>username_0: I’m thinking if it is possible to perform a “pairing” between two lists (so one list acts like the answer to the other). Let’s say that **LIST A** (obtained from an iteration) is like this: ``` [RESULT 1, X] [RESULT 2, Y] [RESULT 3, X, Y] [RESULT 4, Z, Y] [RESULT 5, Z] [RESULT 6, Z, X] ``` ...
2018/03/12
1,173
3,832
<issue_start>username_0: I have the following tables: ``` CREATE TABLE [Hours]( [Activity Month] [datetime], [Employee_ID] [nvarchar](10), [Activity Date] [datetime], [Hours] [float] ) CREATE TABLE [Employee_IDs]( [Month] [datetime], [Employee_ID_1] [nvarchar](10), [Employee_ID_2] [nvarc...