date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/07
343
1,234
<issue_start>username_0: I am creating a loop in Python that runs through all files in specific directory using `fnmatch.filter()`. Currently I am going through all .csv files in specific folder as following: ``` for file_source in fnmatch.filter(os.listdir(source_dir), "*.csv") ``` What I would like to do is exclud...
2018/03/07
1,120
3,655
<issue_start>username_0: Really puzzled by this so help would be great Im trying to view JSON data from a job search API Query Below ( access key had to be removed ) ``` $.ajax({ type: "GET", url: "https://www.cv-library.co.uk/search-jobs-json?", key: '', query: 'Support', geo: 'London', distance: 200, tempperm: ['P...
2018/03/07
627
2,136
<issue_start>username_0: A Ruby spec defines 3 instance\_doubles: ``` let(:doub1) { instance_double(Foo) } let(:doub2) { instance_double(Foo) } let(:doub3) { instance_double(Foo) } ``` A shared\_example seeks to ensure a collaborator is used with any of the instance\_doubles: ``` shared_examples :a_consumer_of_bars...
2018/03/07
538
1,773
<issue_start>username_0: I want to capture color rgb data from a text box with (r,g,b,a) format And create: ``` QColor mColor = QColor(r,g,b,a); ``` Is any way to read text and execute that such a code command? For example If we assume that `execute` does this :D: ``` mColor = execute ("QColor"+"(r,g,b,a)"); ```...
2018/03/07
826
2,831
<issue_start>username_0: I am not so much familiar with python and got this code from a friend of mine and need some community help here to solve this issue.I'm getting "list index out of range" error from the following line. > > days = list(zip(Leave\_type.objects.filter(type=leavetype).values\_list('max\_days', fla...
2018/03/07
376
1,444
<issue_start>username_0: I've been browsing answers here as well as books on database structure, but I suspect my lack of success finding the answer is due to lack of proper terminology. I am making a table called **Genres** in my database. It has an **ID** and a relation to another table: **Books**. However, I want t...
2018/03/07
339
1,244
<issue_start>username_0: So i have this XAML in a Window and have named the control `MyBrowser`: ``` ``` In the code behind im passing the Uri to be displayed. ``` public partial class AuthWindow2 : Window { public AuthWindow2(Uri uri) { InitializeComponent(); this.MyBrowser.Url = uri; ...
2018/03/07
465
1,742
<issue_start>username_0: I want to get the certificate hash. But I have no idea how to get the server peer certificate. Either in the request or response. The server I send the request to sets the `Connection close` header, so the retrieving the original ssl socket in the response doesn't work.<issue_comment>username_1...
2018/03/07
798
2,245
<issue_start>username_0: My Java code produce csv file. when I open this CSV file as Notepad, I can not seen new line. I see all data just one line. Because of this reason , I can not add this file SQL database. How can I solve this problem? For example, test.csv file : ``` TerminalSerialNo IMEI Site-Ref 77E...
2018/03/07
567
2,185
<issue_start>username_0: I have a solution with many projects, about a dozen of which have Octopack installed and packages are being produced correctly when TeamCity runs `msbuild /p:RunOctoPack=true /p:OctoPackEnforceAddingFiles=true`. As you can probably tell from the `p:/OctoPackEnforceAddingFiles` flag, each projec...
2018/03/07
751
2,641
<issue_start>username_0: I am getting the following error: ``` [error] ignite - Got exception while starting (will rollback startup routine). java.lang.NoSuchMethodError: com.google.common.util.concurrent.MoreExecutors.sameThreadExecutor()Lcom/google/common/util/concurrent/ListeningExecutorService; at org.apache.c...
2018/03/07
386
1,344
<issue_start>username_0: I have an input which is always a *String*. The string can contain an integer or text: ``` intputString = "1"; ``` or ``` inputString = "hey"; ``` I would like to convert to a *Number* only those inputs that contain integers. Otherwise, the inputs need to remain the same. For example, if...
2018/03/07
364
1,150
<issue_start>username_0: Actually the image is 450\*450pixels (both height and width is 15.88cm) so i want to adjust them in equally to screen please see my screen shot and as you see the name also came in the bottom of each image the name should not so much big and small too it just fit with the image ![the image is...
2018/03/07
338
1,262
<issue_start>username_0: So, I have been using my own CSS class named `myclass` and Bootstrap built-in class `container`. My question is while declaring a with both classes. Should I use ``` some code ``` this format, or: ``` some code ``` Does both work in the same way? Or these two are different?<issue_comme...
2018/03/07
860
3,302
<issue_start>username_0: I am using mockito for my unit tests. Consider the following snippet ``` ThirdPartyClass tpo = mock(ThirdPartyClass.class); doNothing().when(tpo).someMethod(); ``` `ThirdPartyClass` is from a third party jar, lets say `tp.jar`. Now `tp.jar` is not an uber jar. Here is what `ThirdPartyClass` ...
2018/03/07
816
3,112
<issue_start>username_0: I keep getting Undefined variable: cars when loading the page in Laravel. I have the following code: web.php ``` Route::get('/cars', function () { $cars= Car::select('brand')->get(); return view('test.cars')->with(compact($cars)); }); ``` If I put `dd(cars);` before return view...
2018/03/07
331
1,033
<issue_start>username_0: I am using Laravel 5.5, and when I am trying to export data from another DB, i use: ``` $fname = DB::connection('smallplanet')->table('pilots')->where('id', Auth::user()->id)->get(['fname']); echo $fname; ``` and this is the output: ``` [{"fname":"Aidas1"}] ``` how do i change the output ...
2018/03/07
896
3,170
<issue_start>username_0: I'm looking to only return .xls files that were created today from a folder containing multiple files and a range of dates. I'm trying this: ``` FBD.SelectedPath = @"\\USMCO\Test\"; string[] files = Directory.GetFiles(FBD.SelectedPath, "*.xls") .Where(file => new FileInfo(file)...
2018/03/07
308
1,144
<issue_start>username_0: I have a Go Application that needs to consume a GraphQL service, now the documentation of graphQL is more oriented to the GraphQL server and not as a client. How can I do that? I checked [this example](https://github.com/graphql-go/graphql/blob/master/examples/hello-world/main.go) but some th...
2018/03/07
708
1,997
<issue_start>username_0: I have a column user\_id with the different user ID. From there I want to choose certain user IDs and create another column to identify those selected user IDs belong to which group. For e.g user IDs "attamm1, attbmm1" belong to "Vendor ABC" of another newly created column that matched the use...
2018/03/07
2,067
6,787
<issue_start>username_0: I've been trying to write c programs for finding the union, intersection and difference between two arrays, and while the first two worked out fine, I'm having some trouble finding the difference between two arrays. With difference I mean each element that is in array1, that is not in array2. ...
2018/03/07
964
4,140
<issue_start>username_0: How can I make my Spring Rest HelloWorld app work without using Spring Boot? When running this project in tomcat 8.5 within eclipse, I expect the url "localhost:8080/hello" to show "HelloWorld", but instead it shows 404 src/main/java/com.package/HelloController.java ``` @RestController publi...
2018/03/07
1,443
5,395
<issue_start>username_0: Massive edits: So, I have refactored an ASP.NET code behind into a Presenter to unit test. After finishing this up, I have noticed that the wrappers I have made to allow this have a lot of duplication that I would like to eliminate. My idea was to use class inheritance to abstract that duplica...
2018/03/07
399
1,081
<issue_start>username_0: I'm wondering if there's a way to have a side of a `div` completely faded out (opacity 0) while still having the faded out color bleed through like it does on Sketch or Illustrator. Something like this: [![Bottom black, faded out color pink](https://i.stack.imgur.com/84dtJ.png)](https://i.stac...
2018/03/07
733
2,426
<issue_start>username_0: Is there a way to have Lodash terminate early such that this returns true instead of throwing exception? ``` _.chain([i => 'a', 0]) .reduce((prev, curr) => prev.concat(curr()), []) .some(i => i == 'a') .value() ```<issue_comment>username_1: First of all your code is really hard to read and th...
2018/03/07
946
3,206
<issue_start>username_0: I have placed an image in my theme HTML and it looks great in desktop view. What I would like is to have the image hidden in the mobile view. This is because the image is in the correct Div for larger screen sizes but incorrect for the smaller ones. I believe the following may be the way for...
2018/03/07
769
2,610
<issue_start>username_0: I'm new at C. I need to define an integer variable with a limited range of values. In the specific case I need to define an int variable that can only assume the values from 0 to 5, so 0, 1, 2, 3, 4, 5. No less, and no more. What have I to add to `int var` to define it as described before? Or...
2018/03/07
1,076
3,640
<issue_start>username_0: I want to find all lines (in a SQL script) which don't have the `dbo.` or `[dbo].` prefix (where it should normally appear to fully qualify names). For example, in the below file: ``` ALTER TABLE [dbo].[mo_scenario_em] DROP CONSTRAINT [mo_scenario_em_scenario_id] ALTER TABLE [team_assoc] ...
2018/03/07
1,217
4,035
<issue_start>username_0: I have a pandas dataframe like ``` ACCOUNT AMOUNT STATUS 1 -2 1 2 2 0 2 -1 0 1 2 1 1 2 1 ``` This is would like to get converted into an dataframe like ``` ACCOUNT STATUS COUNT>0 COUNT<0 AMOUNT>0 AMOUNT<0 1 1...
2018/03/07
2,822
7,753
<issue_start>username_0: I want to create a virtual environment using conda and yml file. Command: ``` conda env create -n ex3 -f env.yml ``` Type ENTER it gives following message: ``` ResolvePackageNotFound: - gst-plugins-base==1.8.0=0 - dbus==1.10.20=0 - opencv3==3.2.0=np111py35_0 - qt==5.6.2=5 - libxcb==1...
2018/03/07
2,212
6,798
<issue_start>username_0: I have the following function: ``` v <- function(r){ for(i in 2:length(df$v1)){ df$v1[i] <- 1/((1+r)^(i-1)) } for(i in 3:length(df$v2)){ df$v2[i] <- 1/((1+r)^(i-2)) } df } ``` When I run the function (i=.25) for a predefined data.frame 'df' with two columns of length 9 ...
2018/03/07
731
2,568
<issue_start>username_0: I want to find if there are whitespaces in my string, and if there are, print if there are whitespaces, and if there are, print the longest word in the string. What i've done so far is : ``` private static void stringFunc() { String s = new String("Crying to be heard"); String rts = ...
2018/03/07
1,175
3,888
<issue_start>username_0: I'm trying to find a solution that would allow me to do nice rendering + editing SQL within an Angular 5/6 CLI application. Are there any known components or solutions/approaches for implementing this?<issue_comment>username_1: You could try <https://www.npmjs.com/package/ng2-ace-editor>. > ...
2018/03/07
1,279
4,139
<issue_start>username_0: I'm using TYPO3 v6.2 and inside the footer I have links to my social networks : [![enter image description here](https://i.stack.imgur.com/83pvL.png)](https://i.stack.imgur.com/83pvL.png) As you can see, it is "Link to external URL". Problem: TYPO3 creates new URL [www.mycompany.com/twitter]...
2018/03/07
337
992
<issue_start>username_0: I would like to close all the previously created tasks in the `nidaqmx-python` module. How can I do this? In example, I have a number of previously opened tasks: ``` for i in range(10): nidaqmx.Task() ``` which I did not close. However, I want to close them now.<issue_comment>username_...
2018/03/07
637
2,062
<issue_start>username_0: I want to make two values of a value from a table, and any value that has been selected will fall into a separate variable. For example: ``` SELECT id,username FROM New_Table WHERE (MONTH(date_en) = 01) AS month1 WHERE (MONTH(date_en) = 02) AS month2 ``` I w...
2018/03/07
526
1,707
<issue_start>username_0: I'm trying to get autocomplete text from rest api, the below code is not working. How can I embed it inside ``` $(function() { $.getJSON("http://localhost:8080/restapiResult/states", function(data) { $("#name").autocomplete({ source: data }); }); }); ```<issue_...
2018/03/07
1,670
5,482
<issue_start>username_0: I am using python-3.x and I have tow loops first one which is number of runs (3 times) the second one to generate solutions (2 times) what I want to do is: Collect the best solution from the second loop and append it to an array or list. The next run which is the first loop will run the second...
2018/03/07
878
2,149
<issue_start>username_0: Consider this simple example ``` library(dplyr) library(purrr) mydata <- dplyr::data_frame('value' = c(1,2,3)) > mydata # A tibble: 3 x 1 value 1 1. 2 2. 3 3. ``` I have a function that takes the `dataframe` and a `number` as arguments, and I would like to modify the dataframe in place a...
2018/03/07
1,114
4,249
<issue_start>username_0: I have come across a need to let users of my app to rate the app. I would have liked to give a popup with actions - either to 'Rate Now' or 'Remind Later'. My app is written using Objective-C so I was looking for related articles. However, I came across [SKStoreReviewController API](https://de...
2018/03/07
1,058
3,843
<issue_start>username_0: Im using prebuilt android native library: `libcrypto.a`. Library is compiled for `armeabi, armeabi-v7a and x86`. Structure: ``` -app - CMakeLists.txt - libs - armeabi - armeabi-v7a - x86 ``` Each folder (`armeabi, armeabi-v7a and x86`) contains folders `lib`(contains `libcryp...
2018/03/07
967
3,221
<issue_start>username_0: I will use the gapminder data as an example. Let's say I create this animation: ``` library(gapminder) library(ggplot2) theme_set(theme_bw()) p <- ggplot(gapminder, aes(gdpPercap, lifeExp, size = pop, color = continent, frame = year)) + geom_point() + scale_x_log10() library(gganimate) ...
2018/03/07
327
1,238
<issue_start>username_0: I am getting this error in angular's autocomplete example. Here is the code: ``` ngOnInit() { this.filteredOptions = this.myControl.valueChanges .pipe( startWith(''), map(val => this.filter(val)) ); } ``` The error is spawn on startWith. I am...
2018/03/07
990
1,991
<issue_start>username_0: For a data frame which the columns `A`, `B`, `C`, and `D` I'd like to extract that value of `B` where `A` is closest to e.g. 1 and `C` is `string1` and `D` is `string2`. I was trying to using the pipe operator `%>%` to achieve that by ``` opt.B <- df %>% filter(C == 'string1') %>% filte...
2018/03/07
940
2,588
<issue_start>username_0: I want get the first record of every 1000 items in laravel. Also sorted by `updated_at` desc **Example Data:** (id: 1000 & updated\_at: 2017) (id: 1001 & updated\_at: 2018) (id: 1002 & updated\_at: 2016) ... more records ... (id: 2000 & updated\_at: 2017) (id: 2001 & updated\_at: 2018)...
2018/03/07
491
1,726
<issue_start>username_0: I'm aware of the already hundreds of questions that exist on this topic, but after close review of dozens of questions they're all including script tags in the wrong order. Mine is correct. [As per the documentation](https://owlcarousel2.github.io/OwlCarousel2/docs/started-installation.html):...
2018/03/07
637
2,479
<issue_start>username_0: I've been using the implementation of uniq shown [here](https://stackoverflow.com/questions/7651/how-do-i-remove-duplicate-items-from-an-array-in-perl) for a couple of years in various scripts, and I just realized I don't understand how it's *returning* an array. That implementation is as fol...
2018/03/07
644
2,546
<issue_start>username_0: in the current project, we use a common module. I have changed one method's return type to it's subtype. This is not breaking the build or anything but somehow I don't feel comfortable with this. Let me give an example. ``` class Child extends Parent{ ... } ``` in another file, let's say...
2018/03/07
1,601
4,653
<issue_start>username_0: I am a bit puzzled by the rendering of google tiles with Cartopy. The map looks extremely poor compared to the standard google map look. Example (code from <https://ocefpaf.github.io/python4oceanographers/blog/2015/06/22/osm/>): ``` import matplotlib.pyplot as plt import cartopy.crs as ccrs ...
2018/03/07
259
1,023
<issue_start>username_0: I didn't find any answers to the following question: Is there a way to print the trained model accuracy, total model loss and model evaluation accuracy after loading the saved trained Keras model? ``` from keras.models import load_model m = load_model.load("lstm_model_01.hd5") ``` I checke...
2018/03/07
686
2,025
<issue_start>username_0: I was trying to make a program that if the user entered the exactly same data with the given tuple, it will print ('available'), else, if not, it will append the new data. But my program doesn't print 'available' even though I entered the exactly same data too. ``` data = ['Karma', 19, 'e', '...
2018/03/07
446
1,474
<issue_start>username_0: I use [vue-select](https://github.com/sagalbot/vue-select) for multiple values. Here is an example: <https://codepen.io/sagalbot/pen/opMGro> I have the following code: ``` ``` And JS: ``` Vue.component('v-select', VueSelect.VueSelect) new Vue({ el: '#app', data: { selected: ['foo'...
2018/03/07
406
1,419
<issue_start>username_0: Can anybody please verify this code in pure ionic-2 format. Since I am bit confuse to check properly. If This is not good format then What it could be? ``` ` Vision Logistica ---------------- --- ### Ciao, inserisci i tuoi dati peraccedere --- ##### oppure Username Password ...
2018/03/07
1,419
3,721
<issue_start>username_0: I have an environment variable called `GOOGLE_MAPS_DIRECTIONS_API_KEY`, populated by a Kubernetes secret `YAML`: ``` apiVersion: v1 kind: Secret metadata: name: google-maps-directions-api-secret type: Opaque data: GOOGLE_MAPS_DIRECTIONS_API_KEY: <KEY> ``` The secret was created by copy-...
2018/03/07
788
3,357
<issue_start>username_0: I've been using tensorflow for a while now. At first I had stuff like this: ``` def myModel(training): with tf.scope_variables('model', reuse=not training): do model return model training_model = myModel(True) validation_model = myModel(False) ``` Mostly because I starte...
2018/03/07
505
2,141
<issue_start>username_0: I'm quite new to Laravel, but have recently taken over a project from someone and trying to get the mail blade templates to render but I am having problems. The code used for the enquiry email template is as follows: ``` @component('mail::message') #New customer enquiry We have recei...
2018/03/07
314
1,284
<issue_start>username_0: Basically I want to stop a function but not by terminating the script. ``` While True: do function A() do function B() if ( condition ): function B.stop() ``` What I mean is when the condition is met, the while loop still runs but in the next iteration of the while loop, it only do...
2018/03/07
474
1,601
<issue_start>username_0: I have a html form on every page and I need to be able to show in the receiver email from which page the visitor submitted the form. How can I achieve this in PHP? I have tried using `$_SERVER['REQUEST_URI']` whatsoever, but it just simply doesn't output anything. I'm using Wordpress. ``` php ...
2018/03/07
637
2,373
<issue_start>username_0: I have the following XML that I'd like to deserialize to Java POJO. ``` MESSAGE1 MESSAGE2 MESSAGE3 ``` I have the following Java classes ``` public class TestData { @JacksonXmlProperty(localName = "foo") private Foo foo; public Foo getFoo() { return foo; } ...
2018/03/07
1,271
3,012
<issue_start>username_0: I have a str like: ``` -110-108 -95 -92 -88 -87 -85 -75 -73 -69 -67 -59 -51 -49 -47 -42 -39 -35 -36 -36 -32 -27 -29 -32 ``` **I need to split it into a list so that I get all the 24 elements like:** ``` ["-110", "-108", "-95" ....] ``` I tried `line.split(" ")` but this doesn't work as ...
2018/03/07
978
3,140
<issue_start>username_0: I have to generate an pdf from data from an database. In the screenshot is an example, every entry (begins with the consentId) is an array within objects like: ``` const data = [ {key: 'Consent ID:', entry: 5711}, {key: 'Version:', entry: '1.0.1'}, {key: 'Status:', entry: 'gegeben'...
2018/03/07
712
2,275
<issue_start>username_0: Consider following records in a dns server: ``` ;; ANSWER SECTION: test.example.com 3600 IN TXT "line1" test.example.com 3600 IN TXT "line2" ``` Is it possible to delete 1 of the records and leave the other one? When performing the delete with: ``` name = 'test.exampl...
2018/03/07
1,861
5,603
<issue_start>username_0: I am trying to set up [greenlock-express](https://github.com/Daplie/greenlock-express "greenlock-express") to run behind nginx proxy. Here is my nginx config ``` ... # redirect server { listen 80; listen [::]:80; server_name mydomain.com; location / { return 301 https...
2018/03/07
382
1,459
<issue_start>username_0: I have implemented the angular material slide-toggle that all seems to work except for some reason it isn't binding the value to the relevant variable for some reason? ``` // other irrevelant imports above.. import {MatDialog, MatDialogRef, MAT_DIALOG_DATA} from '@angular/material'; @Componen...
2018/03/07
692
1,709
<issue_start>username_0: Say I have a dataframe: ``` date ID times value 1 B048669 1 41 2 B048669 1 29 3 B048669 1 37 4 B048669 1 31 5 B048669 1 NA 6 B048669 1 23 1 Y2929021 1 43 2 Y2929021 1 10 3 Y2929021 1 NA 4 Y2929021 1 NA 5 Y2929021 1...
2018/03/07
566
2,220
<issue_start>username_0: I configured a gitlab runner as explained here: <https://docs.gitlab.com/runner/install/windows.html> Unfortunately, when I push to my repository, my pipeline fails: ``` Running with gitlab-runner 10.5.0 (80b03db9) on windows runner 79cb4019 Using Shell executor... Running on WINSTD-45-13.....
2018/03/07
547
1,823
<issue_start>username_0: I want to create a function, read in a txt file, remove leading space and trailing space for each line, then write to a file, default to overwrite the file I read in, but with option to write to a new file. Here is my code. ``` def cleanfile(inputfile, outputfile = inputfile): file1 = open...
2018/03/07
853
2,823
<issue_start>username_0: I have installed Team Foundation Server 2018 Update 1 and I want to install and configure automated generated builds for the team. In Team Foundation Management Console, there is an entry "Build and release" but there a only informations and links that are not clickable. ![TFS Managment Conso...
2018/03/07
2,169
7,492
<issue_start>username_0: I am interacting with an external Java API which looks like this: ``` val obj: SomeBigJavaObj = { val _obj = new SomeBigJavaObj(p1, p2) _obj.setFoo(p3) _obj.setBar(p4) val somethingElse = { val _obj2 = new SomethingElse(p5) _obj2.setBar(p6) _obj2 } _obj.setSomethingEls...
2018/03/07
1,197
4,723
<issue_start>username_0: I have type a code using classes and without using classes but i cant find why classes are useful.Both give the same output.Please help Here are the codes ; 1) ``` class Hero: def __init__(self,name,health,p,s): self.name=name self.health=health self.p=int(p) ...
2018/03/07
5,160
20,109
<issue_start>username_0: We have our Spring Boot services behind an API Gateway. With an earlier version of Springfox - 2.1.2 we had no issues in loading the `swagger-ui.html` page. This worked with Spring Boot 1.4.3.RELEASE. From then, we have upgraded to Boot 1.5.7 and upgraded Springfox to 2.8.0. Now if we load the...
2018/03/07
592
1,957
<issue_start>username_0: I have a table like this in SQL called *Balance* ``` +----+-----------+-------+------+ | id | accountId | Date | Type | +----+-----------+-------+------+ | PK | FK | Date | Int | +----+-----------+-------+------+ ``` I need to find the *accountId*s that has bal...
2018/03/07
401
1,323
<issue_start>username_0: I have 2 servers hadoop one is the namenode and the other the secondary namenode. both are datanode and currently when I want to read a file using the port of the namenode 8020 it works, but all the network load goes to that node, is there no way to divide the network load to take advantage of ...
2018/03/07
393
1,336
<issue_start>username_0: I need to create an Angular web app and I need to log some performance time related data: * time between the button click and API call is fired * time between the API call is fired and the API returns the response * time between the API returns the response and data is render How should I ach...
2018/03/07
1,386
5,017
<issue_start>username_0: I'm pretty new to the whole react-native / redux world, so maybe this question will sound dumb :) I know that for an API call, or stuff like that, the convention is to use middleware, but is it always necessary? (It adds a lot of boilerplate). I succefully added an async method in a reducer ...
2018/03/07
1,210
4,411
<issue_start>username_0: In the Xamarin plugin [Connectivity (Xam.Plugin.Connectivity)](https://github.com/jamesmontemagno/ConnectivityPlugin), there is an easy way from the PCL to detect network connectivity changes, like: ``` CrossConnectivity.Current.ConnectivityChanged += (sender, args) => { page.DisplayAlert(...
2018/03/07
507
1,460
<issue_start>username_0: I have 2 Counters (Counter from collections), and I want to append one to the other, while the overlapping keys from the first counter would be ignored. Like the [dic.update](https://stackoverflow.com/a/8930969/7252805) (python dictionaries update) For example: ``` from collections import Cou...
2018/03/07
762
2,825
<issue_start>username_0: I've been trying to get select2 plugin to work, which worked fine on another pages, but when i tried to run it inside a while only gave me some headeches because it only worked on the last row. Here's my code "minimized": =========================== ``` php include("setting.php"); $pdosys=con...
2018/03/07
522
1,761
<issue_start>username_0: I am new in Vue.js i don't know how can i pass data from parent component to child component on click. I tried with props but it did not worked. So i have a modal and i wanna pass data to it when i open it on click. Button ``` ``` Parent script ``` import ContactModalCreate from './Conta...
2018/03/07
573
2,677
<issue_start>username_0: I have ViewPager, and it shows fragments, one of them contains edittext. When user clicks on edittext and then swipes to another page, keyboard hides half of a screen. How can I hide keyboard, when page is changed? I tried something like this, but it doesn't work: ``` mFragmentsViewPager.setAd...
2018/03/07
602
1,827
<issue_start>username_0: I am trying to send a silent notification (I mean a notification that will not be shown in the tray) using [this API](https://openapi.appcenter.ms/#/push/Push_Send): but when I do not set the body key I get this Error: ``` { "error": { "code": 400, "message": "body parameter is inv...
2018/03/07
750
2,242
<issue_start>username_0: I have a **tickets** table as this: ``` tickets: id integer primary key home_org varchar ``` There is a **homeorgs** table that holds all the home organizations and includes a division code as this: ``` homeorgs: home_org varchar division_code varchar ``` I want to be able to s...
2018/03/07
538
1,590
<issue_start>username_0: I need to get 2 attributes with jQuery and change a value in it depending on the state of the application. ``` $(this).attr('id', function (i, val) { return val.replace('More', 'Less'); }); ``` That code above works perfect, it does what I need. But I need something like this: ``` $(thi...
2018/03/07
495
1,438
<issue_start>username_0: How would I use a batch file like so: `restart.bat explorer.exe` What variable would "explorer.exe" be held in? The batch file, for example, would look like this: ``` @echo off taskkill /f /im %VARIABLE% start %VARIABLE% color b echo COMPLETE timeout /t 10 exit ``` Thanks for your help.<i...
2018/03/07
932
3,262
<issue_start>username_0: I use `Anaconda3@windows` to import `scipy(v1.0.0)` but I have an error when compiling. I have checked other similar cases online but found no solution, does anyone have any idea? ```py import numpy as np import scipy ``` **The error msg** ```none ImportError Traceback (most recent call las...
2018/03/07
2,149
6,537
<issue_start>username_0: This might strike as something very simple, and I too thought it'd be, but it apparently isn't. I must've spent a week trying to make this work, but I for the love of me can't manage to do so. **What I need** I need to render any given string (only containing standard characters) with any giv...
2018/03/07
1,559
3,591
<issue_start>username_0: I have a large dataset, i would like to sum 1 column by others using lapply function. But i have problem, the others columns disapeared.. I would like to keep them. I have an exemple for you :) **Exemple :** I have this **dataset**: ``` X Y Z date columnSum 1: A a1 z1 2018...
2018/03/07
1,887
5,515
<issue_start>username_0: I want an h2 element, with a double border. Currently I have this snippet, HTML+CSS: ```css h2.titulo { width: 100%; margin: 10px 0; padding: 10px 0; text-transform: uppercase; font-weight: 400; font-size: 30px; display: block; color: #8c2638; border-bottom: 1px soli...
2018/03/07
465
1,746
<issue_start>username_0: I need to place delete link at the show page of the object. This show page is to rendered at two different controllers. In which I need to redirect to the index page from which the request came from. The URL would be localhost:3000/users (index page) which will have link to books (show page)...
2018/03/07
2,321
9,551
<issue_start>username_0: We have a Spring Cloud Config setup, using Vault database backends (MySQL and RabbitMQ), which gives us the ability to inject generated credentials into properties such as: * `spring.rabbitmq.username` * `spring.rabbitmq.password` When our app starts up we have a fresh set of Rabbit credentia...
2018/03/07
1,549
6,628
<issue_start>username_0: I'm trying to run a custom SQL query in entity framework and bring the results in a specific class. Unfortunately the object inside comes null. Here is what i tried. I've declared the class that describes the object. ``` public class reportReservationReport { public string Code...
2018/03/07
2,519
5,230
<issue_start>username_0: I have a bunch of insert queries in one text file retrieved from, let's say Oracle DB1. Now I have to execute the insert SQLs in another database,let's say Oracle DB2. Now the problem is the decimal separator in DB1 was "," but in DB2, it is ".". So I am getting error in DB2 during insertion as...
2018/03/07
958
3,442
<issue_start>username_0: if I run this link on my browser, I get the proper XML formatted response: <http://old.lb.lt/webservices/FxRates/FxRates.asmx/getCurrentFxRates?tp=EU> Now if I am running a POST request for the same link using cURL and when I dump the response I get only a string. If I make ``` curl_setopt($...
2018/03/07
258
1,044
<issue_start>username_0: I am coming to you with a seemingly simple question. Yet I was not able to find a suitable solution. I have an Image- and a TextView inside a RelativeLayout inside a LinearLayout. ``` ``` [![enter image description here](https://i.stack.imgur.com/ufYoo.png)](https://i.stack.imgur.com/ufYoo.p...
2018/03/07
695
2,571
<issue_start>username_0: I am able to convert `List>` to `byte[]`, But when I convert `byte[]` back to `List>` it gives only first object(key, value pair) How do I iterate through byte array or ObjectOutputStream? However, I tried `while (ObjectOutputStream#available() > 0 )` but `ois.available()` returns `0` ``...
2018/03/07
779
2,247
<issue_start>username_0: I want to create a subplot plot in matplotlib with, say, 2 rows and 2 columns, but I only have 3 things to plot and want to keep the **lower left** subplot empty. However, I still want there to be a y-axis label at that position, which is supposed to refer to the whole second row. This is my c...
2018/03/07
794
2,399
<issue_start>username_0: I have a `student` class that takes attributes and has getter and setter methods and a function called `getTheFirstInClass()` that takes a list of grades and returns the highest grade. But the system display this error: > > File "C:\Users\test\student.py", line 30, in > > std1.getTheFir...
2018/03/07
456
1,340
<issue_start>username_0: if I have a list containing str like: ``` mylist = ['hello how', 'are', 'you'] ``` How could I iterate through `mylist` so that I get: ``` newlist = ['hello', 'how', 'are', 'you'] ``` I've tried regularly looping through but it won't work since there are 2 words in a single element of the...
2018/03/07
575
1,937
<issue_start>username_0: I've looked at a couple pages on here that I thought would have the answer and they either don't, or I'm not understanding, so here goes. Very simply, I have an application. Within this application, I have several different "Overview" paths. One such path is for products, which end on a produc...
2018/03/07
698
2,545
<issue_start>username_0: I definitely have a factory ``` $factory->define(Modules\Brokerquotes\Entities\Insuree::class,.... ``` And in a DatabaseSeeder I have ``` factory("Modules\\Brokerquotes\\Entities\\Insuree", 5)->create()-> ...... ``` But when I try to call the seeder class directly using `php artisan db:se...