date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/16
607
1,831
<issue_start>username_0: So, I need to change in a code all the places which look like: ``` obj && obj.property && obj.subproperty ``` with ``` _.get(obj, 'property.subproperty') ``` I believe I can find all such occurrences with grep and some regexp. So, can somebody help me with regexp? example of an occurrenc...
2018/03/16
2,540
9,260
<issue_start>username_0: I have the following function, which is supposed to check through an array, sum up some values and then return a string with the sum (for Dialogflow/Google Assitant): ``` function howMuch(app) { return bank.getTurnovers(accessToken) .then((result) => { const { turnovers } = JSON.pa...
2018/03/16
628
1,860
<issue_start>username_0: Who knows how to obtain the id\_token with `Keycloak`? I have been working with `Keycloak` in `Java` (Spring, JEE) and postman. The basics work fine but I need the `id_token` since there are some claims that they are not present in the `access_token` but they are present in the `id_token`. U...
2018/03/16
609
1,702
<issue_start>username_0: Two tables: Price list table PRICE\_LIST: ``` ITEM PRICE MANGO 5 BANANA 2 APPLE 2.5 ORANGE 1.5 ``` Records of sale REC\_SALE (list of transactions) ``` ITEM SELLLING_PRICE MANGO 4 MANGO 3 BANANA 2 BANANA 1 ORANGE 0.5 ORANGE 4 ``` Selecting records from REC\_SAL...
2018/03/16
576
1,539
<issue_start>username_0: I've a dynamic HTML page which has a table with multiple 'tbody' elements. Now, I'm stuck with CSS as I need to show a vertical bar inside each of the 'tbody' as shown in the image attached. How could I get this done? I tried using 'tr::after' and creating a bar, but didn't help. Here's my ht...
2018/03/16
1,424
4,063
<issue_start>username_0: I am a newbie in Java. I am trying to sort array arr[] according to the values of array val[] and it should maintain the insertion order. ``` int arr[] = {2,3,2,4,5,12,2,3,3,3,12}; int val[] = {3,4,3,1,1,2,3,4,4,4,2}; ``` I am using this : ``` ArrayList al = new ArrayList () ; for(int i =...
2018/03/16
613
2,357
<issue_start>username_0: I am new to ionic application development, while searching through the net I saw a link which directed me to the **ionic creator**. Reading through it I was able to create an app. After creating it, I downloaded the source files but now I am trying to run it on my computer. On the cmd screen, ...
2018/03/16
1,156
4,030
<issue_start>username_0: I'm trying to match and group objects, based on a property on each object, and put them in their own array that I can use to sort later for some selection criteria. The sort method isn't an option for me, because I need to sort for 4 different values of the property. **How can I dynamically c...
2018/03/16
1,209
4,199
<issue_start>username_0: I'm trying to use `ThreadPoolExecutor` in Python 3.6 on Windows 7 and it seems that the exceptions are silently ignored or stop program execution. Example code: ``` #!/usr/bin/env python3 from time import sleep from concurrent.futures import ThreadPoolExecutor EXECUTOR = ThreadPoolExecutor(...
2018/03/16
972
3,465
<issue_start>username_0: I have a data frame in R that looks somewhat like this: ``` A | B 0 0 1 0 0 0 0 0 0 1 0 1 1 0 1 0 1 0 ``` I now want to replace all sequences of more than one "1" in the columns so that only the first "1" is kept and the others are replaced by "0", so that the result looks ...
2018/03/16
1,441
5,165
<issue_start>username_0: I'm trying to use a codegen tool for Go to automatically generate some code based on the contents of other go files. The codegen tool will get standard arguments which can be deduced from the name of the file its generating and the name of the file that it's parsing. If I were doing it all manu...
2018/03/16
546
1,882
<issue_start>username_0: I am wondering if react-select could show html in rendered options. For example if fetched ajax option has `**text**`, I would like to see text as bold in the dropdown menu instead of seeing `**text**`. I read the documentation and I didnt find any option for this. Thank you<issue_comment>use...
2018/03/16
626
2,057
<issue_start>username_0: I build an app, and I try of call a method in another, but it show me this error : > > (int) in MainActivity cannot be applied > > > how can I fix this? ``` public void Method1 () { alet(); //here it show the error } public void alet (int position) { rutaGE = getemployeeName(p...
2018/03/16
578
2,011
<issue_start>username_0: I'm new using IOT Hub from Azure and I am writing a connector which listen to an enterprise MQTT broker and send them back to an IOT Hub server. The problem I'm facing is that I need to create a connection per devices... Is there a way to avoid that ? Either by using the IOT Hub client SDK or ...
2018/03/16
2,239
7,168
<issue_start>username_0: I want to retain CST time always with offset -6, at present I am getting as `2018-03-15T05:08:53-05:00`. But I want to change it as with offset -6 like `2018-03-15T05:08:53-06:00` through out the year. ``` TimeZone tz= TimeZone.getdefault(); if(tz.inDayLightTime()) { getCSTDate(cal) ...
2018/03/16
483
1,583
<issue_start>username_0: I see a code that goes like this: ``` try { // code // ... } catch (e) { throw(e); } ``` That's it. There's nothing else in that `catch` block. Why would I want to do that? Isn't that exactly the same as letting the exception pass through?<issue_comment>username_1: There is no use of...
2018/03/16
448
1,901
<issue_start>username_0: Can anyone tell me: When I press Cancel in the Test Explorer window during a unit test run, is execution simply terminated there and then, or will the currently running test actually run to completion? (Or does it depend which test adapter is being used?) I'm using VS2012. Some solutions use th...
2018/03/16
904
3,328
<issue_start>username_0: I've made the following code to run multiple thread through a non thread safe object (here an `ArrayList`) : ``` import java.time.LocalDateTime; import java.util.List; import java.util.ArrayList; public class A implements Runnable { String name; static List list = new ArrayList(); ...
2018/03/16
973
2,592
<issue_start>username_0: ``` #include #include #include #include using namespace std; void print(vector v) { for (unsigned int i = 0; i < v.size(); i++) { cout << "[" << i << "] " << v[i] << "\n"; } } int main(){ vector v(5); v[0] = "Egg"; v[1] = "Milk"; v[2] = "Sugar"; v[3] = "Chocolate"; v[4] = "Flou...
2018/03/16
1,119
4,206
<issue_start>username_0: I subscribed to `ids` and `search` in the ui but i wasn't getting any results so i stepped through with the debugger and found out that the transformation is not getting triggered after the first time. So when i call `setIds` the first time `ids` gets updated but for every call after the first ...
2018/03/16
449
1,612
<issue_start>username_0: There is a variable in my PowerShell script called `$IncludeSubfolders` (either `0` or `1`) Depending on its value, I would like to call `Get-ChildItem` method either with or without the `-Recurse` option. Currently, my code looks like this: ``` if($IncludeSubfolders) { $Files = Get-Chil...
2018/03/16
788
1,950
<issue_start>username_0: I have a zig zag border on the bottom of my element. How can I move it to the border of the left side, instead? ```css .zigzag { height: 150px; width: 400px; background: linear-gradient(-135deg, #e8117f 5px, transparent 0) 0 5px, linear-gradient(135deg, #e8117f 5px, #fff 0) 0 5px; ...
2018/03/16
871
3,006
<issue_start>username_0: I'm creating a Loopback application and have created a custom user model, based on built-in User model. ``` { "name": "user", "base": "User", "idInjection": true, "properties": { "test": { "type": "string", "required": false } }, "validations": [], "acls": [],...
2018/03/16
707
2,800
<issue_start>username_0: I'm trying to build a simple Discord.js bot, but I'm having trouble adding user input to an array stored within a json file. I'd like to have a single json file that will store information the bot can draw on, including an array of quotes that is also able to be added to by users. Currently, t...
2018/03/16
1,135
3,016
<issue_start>username_0: I have metrics at the rep and client level: ``` select r.rep_month, c.client_month, count(distinct r.id) reps, count(distinct c.id) clients from clients c left join reps r on c.rep_id=r.id ``` This of course doesn't work because it gives all combinations of rep\_month/client\_month- and fro...
2018/03/16
1,159
3,224
<issue_start>username_0: Ok so I have two mysql tables, the first one is "`tbl_forum`": ``` |MSG_ID|MSG_QUERYID|MSG_ISPARENT| MSG_PARENTID 1 | 59 | 1 | 1 2 | 59 | 0 | 1 ``` The second one is "`tbl_frs`": ``` |FRS_ID|FRS_QUERYID|FRS_PARENTID | FRS_CONTENT 1 | 59 ...
2018/03/16
803
2,375
<issue_start>username_0: I have updated version 8.5.3 to 9.0.1 of the notes, and in xPages Properties has the field minimum supported release, in the version update I did not change the checked option, does anyone know what the impact of this field in the application? [configuration location](https://i.stack.imgur.com...
2018/03/16
1,099
4,315
<issue_start>username_0: I have a docker image on my local machine. When I try to run the image using the below Jenkins file. ``` agent { docker { image 'gcc/sample:latest' args "-v /etc/passwd:/etc/passwd:ro } } ``` Then I am getting the following error. ``` + docker pull gcc/sample:latest Pulling re...
2018/03/16
638
2,106
<issue_start>username_0: I have shaders kept in assets folder. name of the shader (file name) : "vertex.vs" path : assets/shaders/vertex.vs I want to access this file from a C++ file from NDK without calling Java or JNI whatever it is. From reading various resources I managed to understand that i have to use the heade...
2018/03/16
730
1,601
<issue_start>username_0: The elements of the array changed, and became some numbers which are never being input. ``` #include #include #define MAX\_SIZE 1000 int cmp(int a, int b) { return a>b; } void sort(int \*data, int n, int (\*cmp)(int, int)) { for (;n>1;n--) { int i\_max = 0; for(int i = 1;i ``` inpu...
2018/03/16
588
2,088
<issue_start>username_0: If I use something like `$('button').click(function() { alert('hi'); }` and I add the following to my : ``` ``` ..and I run it as a normal mobile site on iOS 11, there is no delay (=> expected behaviour). **However**, if I run the **exact same** code in a compiled **Cordova** hybrid app on ...
2018/03/16
676
2,235
<issue_start>username_0: I have following message on Login Failed response. The response shows Date in UTC format. I wanted to get the date and convert from UTC to Local. I tried the following but I'm still having the same date formate. Can anyone help me what I'm doing wrong here ``` var loginRes = 'Too many incorre...
2018/03/16
608
2,104
<issue_start>username_0: I'm trying to export HTML table to excel using angularJS. I went through so many sites and few blogs also, but I didn't get an appropriate answer. Any help/advice greatly appreciated. This is what I was able to achieve so far: ``` ``` Angularjs: ``` app.controller('Myctrl', function($scope...
2018/03/16
575
2,242
<issue_start>username_0: The default bootstrap modal adds a full page element that when clicking closes it. With `data-backdrop="static" data-keyboard="false"` you can disable this functionality and so that clicks outside the modal and the `esc` key do nothing. I'd like to use a bootstrap modal that allows me to click...
2018/03/16
717
2,739
<issue_start>username_0: Hello im new at C# and i want to Change the Color of a Button then play a sound and if the sound is over, then Change the text but if i Start the Program and press the Button the program is freezed and i get a sound and after the sound the color change in green... Sry for my bad english ``` pr...
2018/03/16
550
1,667
<issue_start>username_0: I'm trying to make a script (bash or python ideally, so I learn and don't just use it dumbly) that will parse a XML file that looks like this : ``` xml version="1.0" encoding="UTF-8"? ``` I'm trying to make a script that can return me the differents attributes. For example : ``` ./script ...
2018/03/16
1,299
3,689
<issue_start>username_0: I have several order-detail tables in the source database: `Order Header -> Order Line -> Shipped Line -> Received Line` I create a BQ table with two levels of nested repeated fields. Here is how some sample data looks like: ``` WITH stol as ( SELECT 1 AS stol_id, "stol-1.1" AS stol_number, 1...
2018/03/16
1,213
4,711
<issue_start>username_0: I dont know how to solve this problem i cant find my error in codes pls help me solve it :( thanks! ``` private void loadListFood() { cart = new Database(this).getCarts(); adapter = new CartAdapter(cart,this); recyclerView.setAdapter(adapter); int total = 0; for(Order o...
2018/03/16
440
1,544
<issue_start>username_0: Angular 4 application: I have a list of models that I look through to create some table rows using \*ngFor. Each model has a list that contains some strings: ``` { ..., changes: [ 'Test1', 'Test2' ] } ``` The sample table and \*ngFor is as follows: ``` | ... | ... | ---...
2018/03/16
619
2,303
<issue_start>username_0: I am unable to write array of dicts into plist file. I can write Dictionary to plist file is ok. My code is as follows; It is always not success ``` if var plistArray = NSMutableArray(contentsOfFile: path) { plistArray.add(dict) let success = plistArray.write(toFile:...
2018/03/16
2,267
5,457
<issue_start>username_0: I have a dataframe consisting of counts within 10 minute time intervals, how would I set count = 0 if the time interval doesn't exist? **DF1** ``` import pandas as pd import numpy as np df = pd.DataFrame({ 'City' : np.random.choice(['PHOENIX','ATLANTA','CHICAGO', 'MIAMI', 'DENVER'], 10000), ...
2018/03/16
207
740
<issue_start>username_0: Can I fetch the details of the user who created the instance in AWS using * instance-id * ami id * tag details * or anything? I want to contact the person who created a particular instance under a particular role. How can I achieve this?<issue_comment>username_1: You can query CloudTrail log...
2018/03/16
1,077
3,916
<issue_start>username_0: I was trying to do an exercise creating a `PhoneBook` using `HashMap`. However I see my `addPhone` method doesn't add a new phone to my `PhoneBook` `pb` i.e. `data.put(name, num);` method inside my `addPhone` doesn't put the data into the `HashMap` `data`. Can somebody explain me what is w...
2018/03/16
280
1,129
<issue_start>username_0: I can only think of doing this with two streams. Is there a better way? ``` LocalDate lastLoginOrMigrationDate = Stream.of(lastLogin, migrationdate) .filter(Objects::nonNull) .max(Comparator.comparing(LocalDate::toEpochDay)).orElse(yesterday); return Stream.of(last...
2018/03/16
364
1,543
<issue_start>username_0: In the article for creating a dataaset for the TF object detection API [[link](https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/instance_segmentation.md#materializing-data-for-instance-segmentation-materializing-instance-seg)], users are asked to store an object ...
2018/03/16
356
1,338
<issue_start>username_0: I'm trying to build an app and want to show error if someone didn't fill-up the form correctly. Can I change the style of each component in Android Studio using java to highlight the component. What I've done so far is this: **1.** in styles.xml file, I did declare a new style name errorstyle...
2018/03/16
790
2,529
<issue_start>username_0: Since the great comment and link to the great post [Never parse markup with regex](https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454) by @kjhughes in my previous question [Regex repeat expression](https://stackoverflow.com/questio...
2018/03/16
769
3,005
<issue_start>username_0: I was learning hibernate, and had encountered the exception - javax.persistence.PersistenceException But I did not understand the exact reason for this. In which scenarios is this exception thrown?<issue_comment>username_1: PersistenceException is a Runtime Exception within JPA which may be thr...
2018/03/16
1,475
5,055
<issue_start>username_0: I need to parse a field which is sometimes given as a date and sometimes as a date/time. Is it possible to use single datatype for this using Java 8 time API? Currently, I attempted to use a LocalDateTime for it, but for following invocation `LocalDateTime.parse("1986-04-08", DateTimeFormatter....
2018/03/16
1,301
4,440
<issue_start>username_0: I have a strange issue with my laptop. This issue is that when i run app or while build.gradle run it goes to sleep. The issue only occurs while android studio run. The issue is with the new version of android studio 3.0.1. previously it was working fine.<issue_comment>username_1: Just create c...
2018/03/16
2,183
8,259
<issue_start>username_0: I have been working on a solution for detecting overlapping timespans in SQL Server. This is to prevent the overlap of events, or in my case, work shifts. While there has been a lot of discussion on SO for [finding overlapping date ranges](https://stackoverflow.com/questions/325933), there is ...
2018/03/16
3,866
11,169
<issue_start>username_0: I'd like to construct my crawler using selenium on my server. Thus I had installed/download required dependencies- such as chromedriver, chromium-browser etc on my Ubuntu17.10 server However, when I run following code: ``` driver = webdriver.Chrome() ``` It returns following error: ``` --...
2018/03/16
1,175
4,833
<issue_start>username_0: I'm trying to configure an instance of SSRS, but with little success. I've installed SSRS on the server DWHFRONT. It runs under the Network Service credentials. On the Database tab of the Reporting Services Configuration Manager, I've set it up to use a database on DWHBACK, which it created su...
2018/03/16
760
2,001
<issue_start>username_0: A simple table: ``` CREATE TABLE `tbl_type_test` ( `uid` varchar(31) NOT NULL DEFAULT '0', `value` varchar(15) NOT NULL DEFAULT '', PRIMARY KEY (`uid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ``` and some records: ``` '6011656821812318924', 'a' '6011656821812318925', 'b' '601165682181...
2018/03/16
912
3,674
<issue_start>username_0: In my Symfony 3.4 application, the user is automatically logged out after a certain period of time. I want to change this behaviour and make my application never log out automatically. It should log out the session only when the user clicks on the logout link. I have read the documentation and...
2018/03/16
2,047
4,203
<issue_start>username_0: I have 2 sets of geo-codes as pandas series and I am trying to find the fastest way to get the minimum euclidean distance of points in set A from points in set B. That is: the closest point to 40.748043 & -73.992953 from the second set,and so on. Would really appreciate any suggestions/help. `...
2018/03/16
585
1,939
<issue_start>username_0: In Bootstrap 3 there were optional icons for each of the validation states. The icon would appear in the right side of the input using the `has-feedback`, `has-success`, `has-danger`, etc... classes. [![enter image description here](https://i.stack.imgur.com/ZHi1G.png)](https://i.stack.imgur.c...
2018/03/16
787
2,869
<issue_start>username_0: On Windows 7 Dev machines that have Asp.net Core 2, all our API specific routes that return data (not Views) work. A developer recently got the API setup on his new Windows 10 machine. When we run the routes in Postman or swagger, he can only get one particular `GET` route to work (extra tidbi...
2018/03/16
671
1,884
<issue_start>username_0: I have this data frame: ``` dftt <- data.frame(values = runif(11*4,0,1), col = c(rep(2,4), rep(1,4), rep(5,9*4)), x= rep(1:4, 11*4), group=rep(factor(1:11), each=4) ) > head(d...
2018/03/16
412
1,264
<issue_start>username_0: I want to hide first word(ILS) from the span by using css..I have a div which have no class and inside that div there is a span...I just want to hide this word(ILS) from the span...Please guide me where i am wrong **Text displayed like this on the site:** [![enter image description here](http...
2018/03/16
1,388
5,495
<issue_start>username_0: I have a UserControl that must respond to TouchUp events and this sits within a Viewbox which needs to be panned and scaled with pinch manipulation. Touch events on the control are handled fine. However pinch manipulations only scale the ViewPort if both pinch points are contained entirely with...
2018/03/16
727
2,542
<issue_start>username_0: I am troubleshooting a solution in which I am setting up a HA cluster. Although I know the ports needed for the application to perform failover and failback, somehow the dockerized solution is not working. I suspect that there are some ports that I do not know about yet. Currently, my `EXPOSE`...
2018/03/16
550
1,859
<issue_start>username_0: In vb.net or c# WinForms, how would you make a form topmost over the other forms in the project, but not over the windows of other applications? Using `form.topmost = True` puts the form above other applications. EDIT I am **NOT** looking for a splash screen. Below is an example of the inte...
2018/03/16
545
1,765
<issue_start>username_0: Doing the following: ``` const toto = Object.freeze({a: 1}); const tata = Object.assign({}, toto); tata.a = 3; console.log(toto, Object.isFrozen(toto)); // {a: 1} true console.log(tata, Object.isFrozen(tata)); // {a: 3} false ``` raises this error when compiling: > > error TS2540: Cannot ...
2018/03/16
1,482
4,674
<issue_start>username_0: I have centos server on which 4.8.2 gcc is installed.Now I want to install 4.8.5 gcc on same server. The requirement is I need two gcc on same server. How can I proceed to install 4.8.5 gcc on server?<issue_comment>username_1: I think the best way is to use Docker. Any other way would probably ...
2018/03/16
493
1,585
<issue_start>username_0: I need to add spaces to the end of a column I have called NPI (nvarchar(20)). NPI is always 10 digits, but the requirements for the report want the first 10 digits to be the NPI followed by 10 spaces (text file formatting issues I assume). I have tried the following: ``` cast([NPI] as nvarchar...
2018/03/16
2,299
6,996
<issue_start>username_0: I am writing a script to query the Bitbucket API and delete SNAPSHOT artifacts that have never been downloaded. This script is failing because it gets ALL snapshot artifacts, the select for the number of downloads does not appear to be working. What is wrong with my `select` statement to filte...
2018/03/16
478
1,675
<issue_start>username_0: So im fairly new to Java, anyway i have a implemented a simple Java program on IntelliJ which runs in the IntelliJ terminal, it basically ask the user to input some details and then records them along with the current time. I now want to style it out using HTML/CSS to convert it into a webpage,...
2018/03/16
474
1,679
<issue_start>username_0: I'm using the autocomplete input of materialize but I've noticed that the content is moved down when I do the search, I've try to use position absolute property but it doesn't work, it just makes the content enter on the input, what should I do? this is my code ``` Servicios Agregar ``...
2018/03/16
706
1,922
<issue_start>username_0: I have a simple dataframe: ``` df = pd.DataFrame({'id': ['a','a','a','b','b'],'value':[0,15,20,30,0]}) df id value 0 a 0 1 a 15 2 a 20 3 b 30 4 b 0 ``` And I want a pivot table with the number of values greater than zero. I tried this: ``` raw = pd.pivot_table...
2018/03/16
941
3,673
<issue_start>username_0: I am researching standard sample from Pentaho DI package: `GetXMLData - Read parent children rows`. It reads separately from same XML input `parent` rows & `children` rows. I need to do the same and update two different sheets of the same MS Excel Documents. [![GetXMLData - Read parent childre...
2018/03/16
481
1,346
<issue_start>username_0: I want to get the \_id from my database, as soon as i do ``` var test = Exemple.findOne({_id: test_id}); ``` I get undefined but when i do ``` var test = Exemple.find({}).fetch()` ``` I get all the Data of the collection,like this. ``` { _id: '17SRlRpRSzP339E41A', creationIP: 'l...
2018/03/16
502
1,787
<issue_start>username_0: I have problem with Microsoft.TeamFoundation.WorkItemTracking.WebApi.WorkItemTrackingHttpClient class. I cannot update workitem in my VSTS because the class send empty body in a http patch request. Am I doing something wrong? **Test code:** ``` private readonly WorkItemTrackingHttpClient _wor...
2018/03/16
467
1,925
<issue_start>username_0: I have following entry in `appSettings`: ``` ``` In code, I tried to convert this CSV value into list of integers as: ``` var blackList = ConfigurationManager.AppSettings["blackListedIDs"] .Split(',') .Select(n => int.Parse(n.Trim())) .ToList(...
2018/03/16
483
1,556
<issue_start>username_0: I tried to implement this simple layout using `ConstraintLayout`: ``` xml version="1.0" encoding="utf-8"? ``` This layout id then used in a `Dialog` like that: ``` val dialog = Dialog(_activity) dialog.setContentView(R.layout.dialog) dialog.show() ``` Here is what the preview renders: [...
2018/03/16
1,327
4,851
<issue_start>username_0: I'm using SQL Server 2008 to create an XML file based on a given structure. The query I'm using right now is below: ``` select 'ABC123' as SourceTradingPartner, 'ABC06EMP' as DestinationTradingPartner, right(' ' + 'E_' + cast(WorkOrderHeader.EmpNumber as varchar), ...
2018/03/16
1,305
3,624
<issue_start>username_0: I read the instruction in [Customizing Location of Subplot Using GridSpec](https://matplotlib.org/2.1.1/tutorials/intermediate/gridspec.html) and try out the following codes and got the plot layout: ``` import matplotlib.gridspec as gridspec gs = gridspec.GridSpec(3, 3) ax1 = plt.su...
2018/03/16
1,239
4,759
<issue_start>username_0: The current admin widget for ArrayField is one field, with comma as delimiter, like this (text list): [![Current admin ArrayField widget](https://i.stack.imgur.com/gSWkC.png)](https://i.stack.imgur.com/gSWkC.png) This isn't ideal because I would have longer texts (even 20 words) and contain c...
2018/03/16
720
2,304
<issue_start>username_0: I have an existing table with an NVARCHAR(8000) field. I also have a procedure that builds an audit table by examining `syscolumns` (among others) to replicate source table schema. If I run the following statement against the existing source table: ``` ALTER TABLE dbo.MyTable ALTER COLUMN MyC...
2018/03/16
720
2,925
<issue_start>username_0: Searching for a proper technology selection, preferably from MS Azure PaaS (so-called "serverless"), since this ***needs*** to run in Azure. The problem / conditions: Running a set of N completely independent tasks, whilst maximum of M tasks simultaneously. 1. Each task's start can be trigge...
2018/03/16
549
2,000
<issue_start>username_0: How to integrate FormFlow and QnA dialogs in a simple bot. I'm not able to call FormFlow context once QnA is completed. If there are any samples for the same, then please share.<issue_comment>username_1: One approach is to start of from a Luis template. Then make a specific Intent to start the...
2018/03/16
791
2,954
<issue_start>username_0: I'm looking to change a fancybox item's data attribute with this line of code. I'm using fancyBox 3. For some reason it won't let me change the data attribute. I've checked the selector which responds on i.e. `hide()`. ``` $("#line-up .interactive .btns .btn").click(function(e){ // If has...
2018/03/16
1,755
7,193
<issue_start>username_0: How to execute integration tests of spring boot application with using Hazelcast, because when run all tests got hazelcast.core.DuplicateInstanceNameException? I use Spring Boot **2.0.0.RC1** and Hazelcast **3.9.2** Use java configuration for hazelcast: ``` @Bean public Config getHazelCastS...
2018/03/16
1,683
5,995
<issue_start>username_0: We use a 3rd party COM object, one of which methods under certain conditions returns a `VARIANT` of `VT_PTR` type. That upsets the default .NET marshaler, which throws the following error: > > Managed Debugging Assistant 'InvalidVariant' : 'An invalid VARIANT was > detected during a conversi...
2018/03/16
1,604
4,696
<issue_start>username_0: I have written a script to change the java environment variables of the shell: ``` #!/bin/bash #e...
2018/03/16
1,234
4,937
<issue_start>username_0: I am trying to get a stream of updates for certain tables from my PostgreSQL database. The regular way of getting all updates looks like this: You create a logical replication slot ``` pg_create_logical_replication_slot('my_slot', 'wal2json'); ``` And either connect to it using `pg_recvlogi...
2018/03/16
682
2,044
<issue_start>username_0: I have a file (`input.txt`) with a structure similar to this: ``` abc 1 bcd a cde 1 def 4 efg a fgh 3 ``` I want to remove duplicates in column 2, in order to have only unique strings in that column (independently to what is in column 1). But the chosen line should b...
2018/03/16
840
2,192
<issue_start>username_0: I am currently trying to turn this list of dictionaries ``` [ {'<NAME>': [28, '03171992', 'Student']}, {'<NAME>': [22, '02181982', 'Student']}, {'<NAME>': [18, '06291998', 'Student']}, ] ``` into a csv file but with a header that includes Name, Age, Date of Birth, and...
2018/03/16
899
2,491
<issue_start>username_0: I am trying to create a website that has its main content on home always split (70% top and 30% bottom). I have tried using split.js but the result is still junky as whenever i go below any major breakpoint (1280, 1024, 1980px) everything breaks. This is the site - <https://lknahk.ee/> i am wo...
2018/03/16
462
1,564
<issue_start>username_0: [Edit: sorry, mixed up base & subclass initially] Given ``` class Car : public Vehicle {...} ``` I would like to declare a global variable of type Vehicle (or &Vehicle if need be), initialized as a Car instance... something like ``` Vehicle &myCar = Car(red); ``` ... except that the abov...
2018/03/16
1,079
3,633
<issue_start>username_0: I am a beginner in JS and Jquery and cant find a solution to my task. My goal is - whenever button with class='add-gold' clicked i want to add 20 to span with class='gold-vault'. And when button with class='spend-gold' clicked subtract 20 from the same span ```html Add Gold Spend Gold ...
2018/03/16
2,205
8,647
<issue_start>username_0: I am trying to populate my WebView with custom HTML string and trying to show progress when it is not loaded, and hide it when finished. Here is my code: ``` webView.settings.javaScriptEnabled = true webView.loadDataWithBaseURL(null, presentation.content, "text/html", "utf-8", null) webView....
2018/03/16
345
1,276
<issue_start>username_0: in Laravel documentation i found detach() method to detach all objects in many to many relationships. Can detach() method also be applied to one to many relationship in Laravel? if not, how can I detach all n objects in this case?<issue_comment>username_1: From the [docs](https://laravel.com/do...
2018/03/16
1,425
5,006
<issue_start>username_0: i have the following problem, i have 2 Classes FooClass and BaseClass, and multiple SubClasses of BaseClass. I want to add these various Subclasses into the same Vector in FooClass, because i am just implementing functions from baseclass, so i can access them through the vector key. In the f...
2018/03/16
475
1,912
<issue_start>username_0: I'd like to redirect the user to the general settings page, not the application settings page (with permissions, etc.). Is that possible and if so, how?<issue_comment>username_1: You need to use pointers or references. Polymorphism only works in C++ when you're using pointers. You cannot treat ...
2018/03/16
492
1,594
<issue_start>username_0: Layout for 5 players: [![](https://i.stack.imgur.com/AOVv4.jpg "source: imgur.com")](https://i.stack.imgur.com/nAscX.jpg) [![](https://i.stack.imgur.com/92g4V.jpg "source: imgur.com")](https://i.stack.imgur.com/C70bW.jpg) Layout for 6 players: [![](https://i.stack.imgur.com/KdiU2.jpg "source...
2018/03/16
1,034
4,228
<issue_start>username_0: I want to use `pytest` to check if the `argparse.ArgumentTypeError` exception is raised for an incorrect argument: ``` import argparse import os import pytest def main(argsIn): def configFile_validation(configFile): if not os.path.exists(configFile): msg = 'Configurat...
2018/03/16
745
1,922
<issue_start>username_0: I'm trying to write a postgres function that will sanitize a list of numbers into a list of comma-separated numbers. These numbers are being entered into an input field. I want to allow users to just enter a line of space-separated numbers (ex: `1 3 4 12`) and have it change it to `1,3,4,12`. ...
2018/03/16
745
2,776
<issue_start>username_0: In my React Application I am using an API which is provided at runtime as a global variable by the Browser in which the application runs. To make the Webpack compilation process work I have added this into the webpack config: ``` externals: { overwolf : 'overwolf' } ``` It is then ...
2018/03/16
321
1,432
<issue_start>username_0: I am currently testing out AppX for a customer Appx is fairly easy for small applications such as Adobe Reader and so on. does anyone have any experience in packing larger Applications with multiple MSI files and possible registry changes file changes and so on ? how do you specify multiple M...