date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/21
776
2,565
<issue_start>username_0: I would like to query all models of a hasMany relationship that also have a pivoted relationship with a specified other model. Example: ``` Customer: belongsToMany -> Entry EntryGroup: hasMany -> Entry Entry: belongsToMany -> Customer belongsTo -> EntryGroup ``` The belongsToMany re...
2018/03/21
1,831
6,151
<issue_start>username_0: I tried to display Values on `TextView` but if I want to populate my `TextViews` on `PostExecute` I get a `NullPointerException`. I already checked if the `LIST>` is empty with `Log` but it is populated. My code: ``` public class DBResult extends MainActivity { //Erstellen eines JSON Par...
2018/03/21
1,093
3,417
<issue_start>username_0: I am having a problem getting my head around how to group data based upon when a zero appears in a column to start a new group. Whilst there are numerous solutions I've not managed to get any of them to fit. One of the problems is currently my largest set has 178 zeros and so repeat iterations...
2018/03/21
837
3,198
<issue_start>username_0: I have a problem with showing progress on ProgressBar. I have function that calls my server with Volley, when return result I have implemented a Callback that return data to my activity. Something like: ``` public static void saveData(Data data, final VolleyCallbackJsonObject callback){ .....
2018/03/21
432
1,728
<issue_start>username_0: Can anyone guide me on if we can scan an error alert in TOSCA which appears on the screen only for few seconds. Is there any way to do it after the element has disappeared.<issue_comment>username_1: Try to postDelay the method 'callFunctionForShowAndUpdateProgress' in the method 'onSuccessRespo...
2018/03/21
742
2,464
<issue_start>username_0: I got HTML classes like With javascript I am trying to unhide all elements one by one to create animation. As you can see, my js code doesn't work and after few hours of trying a decided to ask because I am lost. EDIT: I forgot to append my project -> <https://codepen.io/r8w9/pen/ZxePML><issu...
2018/03/21
821
2,551
<issue_start>username_0: I have a atom: ``` (def data (atom[ {:orderid 0 :productid 0 :description "A" :amount 2} {:orderid 1 :productid 1 :description "A" :amount 2}])) ``` and my swap function: ``` (defn edit-order [params] (filter #(and (= (:orderid %) (:orderid params))) @data (swap! data...
2018/03/21
465
1,833
<issue_start>username_0: I have 3 nodes in kubernetes cluster. I create a `daemonset` and deployed it in all the 3 devices. This `daemonset` created 3 pods and they were successfully running. But for some reasons, one of the pod failed. I need to know how can we restart this pod without affecting other pods in the da...
2018/03/21
528
1,899
<issue_start>username_0: What is checklist for android GO? I want to update my android app for android GO operating System. how to check my App is compatible Android GO?<issue_comment>username_1: Please find the requirements to be Android go ready below 1. Runs on device with **512MB RAM** 2. APK installed size **≤ 4...
2018/03/21
633
2,354
<issue_start>username_0: I'm developing an application which acts as an **Http-Proxy** for serving files from an external resource. It actually downloads the file from the external resource, checks for **viruses** and if the file is not infected, returns the file to the client. My problem is, **in case of the file is ...
2018/03/21
874
2,805
<issue_start>username_0: I needed it for a socket buffer that I'm making (reading and writing...), this is more a trick than anything else so I would like to know if there is a better way of doing it with the current c++ features/standards? I'm sure of it. ``` enum e_Types { Type_64 , Type_32 , Type_16 , ...
2018/03/21
712
2,401
<issue_start>username_0: This is my first question on here and I'm not very experienced with vba. I have an Excel worksheet called Log with formulas in cells AK2:AQ500 that are capturing information. When the document is saved, I would like to convert any non-blank cells in that range to values, whilst leaving the form...
2018/03/21
559
1,550
<issue_start>username_0: I have the following structure/code: ```css .navbar__brand, .navcontainer { float:left; } .navbar__brand img { vertical-align:middle;} .navbar__menu { display:inline-block; } .navbar__menu li { display:inline-block; list-style: none; } ``` ```html [![](../img/logo.png)](#...
2018/03/21
565
1,731
<issue_start>username_0: How I can make a `select` tag display the value from mysql table but still have the other options below. ``` Yes No ``` I want to see the selected value from the mysql table first instead of the first option.<issue_comment>username_1: I think you're looking for this: ``` php echo $row...
2018/03/21
569
1,762
<issue_start>username_0: I am trying to store an image in a json object and display it on a html page with the rest of the data in the object. The image is stored locally in a folder called images. I have some code, but it doesnt seem to work... Can anyone please advise?<issue_comment>username_1: I think you're looking...
2018/03/21
584
1,864
<issue_start>username_0: I have an XML file that was written from a powershell "Export-Clixml" call and it appears quite strange to me. Here's a very simple sample: ``` PS C:\> Get-Date | Export-Clixml sample.xml PS C:\> cat .\sample.xml 2018-03-21T08:05:39.5085956-04:00 Microsoft.PowerShell.Commands.DisplayHintT...
2018/03/21
1,743
6,100
<issue_start>username_0: The example is as follows: I have a `Box` that needs to be filled with some `Thing`s. I'm interested only in weight of each thing. Also, beside weight, I need to correctly identify the thing that I'm measuring. Each thing type has different Id type. In this case I have toys and fruits, which ha...
2018/03/21
1,488
5,705
<issue_start>username_0: I have a Vue.js project, when I check the console I found this issue below: > > Refused to apply style from 'http://localhost:8080/dist/cropper.min.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. > > > --- `[![enter i...
2018/03/21
831
3,058
<issue_start>username_0: I'm trying to create tables in my database (postgresql 9.6) and when I launch my python script to do so, it returns me an error of the following type: "Section postgresql not found in the $FILEDIR/database.ini file" It seems like the parser cannot read the section, but I don't understand why....
2018/03/21
815
2,685
<issue_start>username_0: JAVA I want to parse every element of JSON file (using gson will be the best) to Array. I searched for two days and I still can't figure out how to do it correctly. My JSON file looks like this: ``` { "spawn1": { "x": 336.4962312645427, "y": 81.0, "z": -259.029426052796 }, "...
2018/03/21
555
1,743
<issue_start>username_0: Say I have two sizable arrays, `a` and `b`. I want to have `b=a+b`, but I don't really need `a` afterwards, and would much rather have the memory saved, in order to avoid swapping. I have thought about simply using: ``` b.unshift( *a.slice!(0..-1) ) ``` But the above has the downside of st...
2018/03/21
614
2,285
<issue_start>username_0: I want to make the following work, but I don't know how to mock forEach behavior properly. (The code is taken from a related question [Testing Java enhanced for behavior with Mockito](https://stackoverflow.com/questions/6379308/testing-java-enhanced-for-behavior-with-mockito) ) ``` @Test publi...
2018/03/21
604
2,011
<issue_start>username_0: How to achieve method overloading UDFs in Spark2 using Spark Session. ```scala scala> spark.udf.register("func",(a:String)=>a.length) scala> spark.udf.register("func",(a:Int)=>a*1000) ``` Following is my Hive table named 'orc' and its description ```scala scala> spark.sql("desc orc").co...
2018/03/21
778
2,199
<issue_start>username_0: On java 8 giving JVM a command line options ``` -XX:+PrintGCDateStamps and -XX:+PrintGCDetails ``` results in the JVM printing exactly on line per each GC operation, like this: ``` 2018-03-21T01:35:39.624-0700: [GC (Allocation Failure) [PSYoungGen: 328192K->23443K(382464K)] 328192K->23459K(1...
2018/03/21
682
2,303
<issue_start>username_0: When I do: ``` console.log(JSON) ``` it will display in JSON syntax in the console: ``` [ { test1: 'data', test2: 'data', test3: 'data' } ] ``` When I do: ``` console.log(`JSON Data\n\n${JSON}`) ``` it will display `[object Object]` so I do: ``` console.log(`JSON Data\n\n${JS...
2018/03/21
1,637
5,358
<issue_start>username_0: I'm using angular 4 and ionic 3. Now when i run "ionic cordova run android" It gives me the following error: ``` "more than one library with package name 'com.google.android.gms.license'" ``` My project.property file: ``` target=android-26 android.library.reference.1=CordovaLib c...
2018/03/21
1,092
3,621
<issue_start>username_0: I'm using the pvclust package in R to perform bootstrapped hierarchical clustering. The output is then plotted as a hclust object with a few extra features (different default title, p-values at nodes). [I've attached a link to one of the plots here.](https://i.stack.imgur.com/FNdGv.png) This p...
2018/03/21
656
2,632
<issue_start>username_0: Here I have an abstract class Person and multiple subclasses: ``` public abstract class Person { public String name; public Person(String name) { this.name = name; } } public class ComputerScientist extends Person { public String job; public ComputerScientist(S...
2018/03/21
1,211
3,575
<issue_start>username_0: How to avoid multiple nested for-loops when one nested for-loop has range up to the current iteration of the outer for-loop? For example, consider the following code: This program returns a triplet from a list arr such that `arr[i] - arr[j] = arr[j] - arr[k] = d` and `i.` ``` d =3 arr = [1, 2,...
2018/03/21
1,425
2,615
<issue_start>username_0: Hi so i got this array: ``` var locations = [ ['<NAME>', -33.890542, 151.274856, 4], ['Coogee Beach', -33.923036, 151.259052, 5], ['Cronulla Beach', -34.028249, 151.157507, 3], ['Manly Beach', -33.80010128657071, 151.28747820854187, 2], ['Maroubra Beach', -33.950198, 151.259302, 1]...
2018/03/21
610
2,116
<issue_start>username_0: I have a containing a tags and further divs: ``` some content ``` Im trying to select the data attribute on the anchor tag with jquery so that i can display the the tags in which have the same ID (if that makes sense?). So far i've been able to identify the data id with `$(".group.po...
2018/03/21
447
1,458
<issue_start>username_0: Following is a part of my whole xml of constraint Layout. ``` ``` What I am trying to do is get the text view on exact centre on the right side of image view. In linear layout we achieve it mostly by gravity. Here I am using `marginTop` to achieve the same . So can I do the same by using any...
2018/03/21
543
1,759
<issue_start>username_0: I'm trying to copy a MAT image loaded in from a file to a specific address location. I have the following code ``` int main() { cv::Mat inImg = cv::imread("M6_traffic.jpg"); //Data point copy unsigned char * pData = (unsigned char *)inImg.data; unsigned char * Dest = (un...
2018/03/21
979
3,327
<issue_start>username_0: I'm having some trouble with jQuery overwriting the elements of a particular parent class. For instance, I have two classes that have the same name but I am looking only to use the first instance for a particular purpose and then the others for something else, but the data inside keeps being ov...
2018/03/21
875
2,817
<issue_start>username_0: I have a BAT file that parses out the header of a CSV file and replaces spaces with underscores, then merges a series of CSV files [here](https://stackoverflow.com/a/49395485/6779756). The problem is, my header file is very long and is being truncated at 1024 characters. Does anyone have a sugg...
2018/03/21
307
1,061
<issue_start>username_0: I tried a lot of combinations, but somehow I don't get it. The id for the text I want to show is generated. **I need to write a variable here instead of a concrete id**. So not: ``` getString(R.string.id_1) ``` But something like: ``` var myId = ... getString(R.string."$myId") ``` D...
2018/03/21
278
1,183
<issue_start>username_0: I'm using Chrome 65 on Mac. I have set up a workspace in Chrome under the 'Sources > Filesystem' tab. I'm able to edit files and Chrome will save these changes to the actual file on my disk. But I would like to use the live editing capabilities of the 'Elements' tab to alter HTML & CSS and let ...
2018/03/21
1,316
4,493
<issue_start>username_0: I am working with an API right now and I am using `details[5].Value` to target information in the following format: ``` details: "value":[ { "ID": "6", "Name": "Links", "Value": "URL" }, { "ID": "7", "Nam...
2018/03/21
539
2,087
<issue_start>username_0: I have 60 servers, VMs to be particular. And I have a local admin username and password. Instead of logging on to 60 servers using these local admin creds, it would be better if there is a script to check if I could log on to these servers as a local admin using the local admin creds. To be pre...
2018/03/21
1,355
2,323
<issue_start>username_0: I have a dataset as follows: ``` ts Out[227]: Sales Month Jan 1808 Feb 1251 Mar 3023 Apr 4857 May 2506 Jun 2453 Jul 1180 Aug 4239 Sep 1759 Oct 2539 Nov 3923 Dec 2999 ``` After taking a moving average of window=2, the output is: ...
2018/03/21
1,004
3,953
<issue_start>username_0: i have kind of wired requirement for converting JSON to xml. we have an API that returns the JSON response as below. ``` { "status":"Error", "errorMessages":{ "1001":"Schema validation Error" } } ``` We want to convert this JSON to XML as below using c# ``` ERROR 1001 Sc...
2018/03/21
2,036
7,855
<issue_start>username_0: I am trying to validate my form and I have no validation errors, yet my form is not getting submitted. I have used FormGroup controls. I believe it would be very trivial issue but some how I am not able to understand where did I go wrong. This is my HTML ``` Full Name: Please enter a val...
2018/03/21
1,079
3,592
<issue_start>username_0: I am using a json array in AngularJS `ng-repeat`. I observed that it orders the input that overrides what I have in my html. Is there any way to prevent this ordering to happen? Here is my code (See it in [Plunkr](https://plnkr.co/edit/af1TsBBA3CtSZq8eAx5R?p=preview)): ``` **project ABC is...
2018/03/21
1,188
4,160
<issue_start>username_0: I am having an issue resetting the errorText to it's original state. Every time the form is submitted with an error(s) it adds all of the errors to the end even if they are from a previous submit. **1st click on blank form** // I expect this result every time. "Errors: Email is invalid. Passw...
2018/03/21
587
1,611
<issue_start>username_0: I have a Dataframe with one column where each cell in the column is a JSON object. ``` players 0 {"name": "tony", "age": 57} 1 {"name": "peter", age": 46} ``` I want to convert this to a data frame as: ``` name age tony 57 peter 46 ``` Any ideas how I do this? Note...
2018/03/21
708
2,273
<issue_start>username_0: I wrote a method in unity but I think it is wrong. I want to do if some sorted letters matching to any word, then it will say true. I mean 10 columns and 20 rows char array. the method will check the letters up to down or left to right(like scrabble game). e.g. there is a word in char array ...
2018/03/21
653
1,850
<issue_start>username_0: I have a class which contains references, like: ``` class A { A(B &b) : b(b) {} // constructor B &b } ``` Sometimes b must be read-only, sometimes it is writeable. When I make a `const A a(b);` object, it's obvious that I want to protect the data inside it as `const`. But - by accident - i...
2018/03/21
807
1,791
<issue_start>username_0: I have two data.tables A: ``` contract.name contract.start contract.end price Q1-2019 2019-01-01 2019-04-01 10 Q2-2019 2019-04-01 2019-07-01 12 Q3-2019 2019-07-01 2019-10-01 11 Q4-2019 2019-10-01 2020-01-01 13 ``` and B: ``` contract del...
2018/03/21
1,252
3,995
<issue_start>username_0: I am writing some code to calculate the total of each row in the array. ``` public static int sum(int[][] array) { int total = 0; for (int i = 0; i < array.length; i++) { for (int k = 0; k < array[i].length; k++) { total = total + array[i][k]; } } ...
2018/03/21
1,193
3,797
<issue_start>username_0: I see a lot of npm modules that require a build/compilation step have a `dist/` folder in their repo. Do the authors run the build step before committing manually or is this automated on commit, if so how? Example repos: <https://github.com/se-panfilov/vue-notifications> <https://github.com/...
2018/03/21
1,161
3,773
<issue_start>username_0: I am using my own customrenderer for Webviews it has always worked but since I upgraded Xamarin Forms nuget package to version 2.5 it crashes because it seems like the member method OnElementChanged is called with null Native control and null thisActivity. any idea how to fix it? this is the e...
2018/03/21
877
3,422
<issue_start>username_0: I'm building an Android media player application that I intend to use to play media (videos, pictures, etc.) on a TV while connected via an HDMI cable. I want to have the media player app pause when the TV's power status is OFF and want it to play when the TV is turned ON. How do I detect th...
2018/03/21
2,857
9,212
<issue_start>username_0: So I am trying to remove all parentheses and the content of them on this wikipedia page. I try using `.replace(/(.*)/g, '')`. The result of that is an empty string. So I tried not using the `g` part. I then lost a big part of the start of the text. I also tried replacing the parentheses with a ...
2018/03/21
2,350
8,668
<issue_start>username_0: All the examples I've seen of the new Context API in React are in a single file, e.g. <https://github.com/wesbos/React-Context>. When I try to get it working across multiple files, I'm clearly missing something. I'm hoping to make a `GlobalConfiguration` component (the `MyProvider` below) cre...
2018/03/21
1,034
3,417
<issue_start>username_0: I am wondering whether it is possible to get the angular multi-providers from (ideally) all ancestors. Lets say that I have a `INJECTION_TOKEN` `X` and I have a component structure like this: ``` ``` `comp-a` providers: `providers: {provide: X, useValue: "A", multi: true}` `comp-b` provide...
2018/03/21
492
1,709
<issue_start>username_0: I was trying to get the config for one of the kafka clusters we have. After doing a config change through puppet, I want to know if kafka has reloaded the config, or if we need to restart the service for that. I have tried with `./kafka-configs.sh --describe --zookeeper my-zookeeper:2181 --ent...
2018/03/21
1,195
3,377
<issue_start>username_0: I wrote a serial program to generate 2 random matrices, multiply them and display the result. I wrote functions for each of the tasks, i.e. generating random matrix, multiplying the matrices and displaying the results. I cannot figure out why both the generated matrices are the same. ``` #incl...
2018/03/21
9,913
16,613
<issue_start>username_0: I have a query to get Stock-items with it's Balance and Its receiving Transactions cods with its quantity Ordered By date, And i Want to create a column which has only the proportion Balance of every RS Code according to First in First Out Principle. As An Example in the attached sample [![ent...
2018/03/21
1,067
4,214
<issue_start>username_0: I have the follow trouble, in my base controller i do dependency injection. And i have a class child with implementation of base controller and i need pass the constructor. So my doubt is, my way to implementation of dependency injection is correctly? If no, what is the best way to do this? I...
2018/03/21
821
3,193
<issue_start>username_0: I have a div as follows: ``` | some content here | content 2 here | ``` css: ``` .section{ //style here } .info{ //another style here } ``` In this case, i don't want to apply the *section* style in the in *info*. How to do that?<issue_comment>username_1: You don't need to define...
2018/03/21
1,039
4,122
<issue_start>username_0: ``` # stack_depth is initialised to 0 def find_in_tree(node, find_condition, stack_depth): assert (stack_depth < max_stack_depth), 'Deeper than max depth' stack_depth += 1 result = [] if find_condition(node): result += [node] for child_node in node.children: ...
2018/03/21
1,227
4,602
<issue_start>username_0: Context ======= I have a question about my App context path configuration. I have an Angular App that I include in a WAR (using plugin com.github.eirslett.frontend-maven-plugin) so that I can deploy it to the Jboss server of my company. In local mode, no problem, I can access my app at <http:...
2018/03/21
1,071
2,465
<issue_start>username_0: I have a df column "days" of 1000 row of records. If the days less than 7.0 days (0-7) group as "1-6 days" If the days more than 7.1 but less than 14.0 days (7.1 - 14.0) group as "7-14 days" If the days more or equal to 15 days group as "> 14 days" How can i create a new column "Days\_Grou...
2018/03/21
349
928
<issue_start>username_0: I have string in the bellow format: > > let str = "url(#123456)"; > > > My string have only number contain in it. It can be any where. I want to extract the number `123456` from the above string. I am using es6.<issue_comment>username_1: `str.replace(/[^0-9]/g, '')` ```js let str = "url...
2018/03/21
242
845
<issue_start>username_0: How to flush all of the cached contents of Docker container memcached from command line without restarting memcached?<issue_comment>username_1: `docker exec -it $MEMCACHE_CONTAINER_ID bash -c "echo flush_all > /dev/tcp/localhost/11211"` Upvotes: 4 [selected_answer]<issue_comment>username_2: Ass...
2018/03/21
1,008
3,469
<issue_start>username_0: Overview ======== I would like to use switch statement by matching array type. I have the following classes. Class: ====== ``` class A {} class B : A {} ``` Switch on single value works: ============================= ``` let a : A = B() switch a { case let b as B: print("b = \(b)...
2018/03/21
2,977
7,020
<issue_start>username_0: I have a file, called `ETHBTC.json`: ``` [{ "open": "0.06252000", "high": "0.06264700", "low": "0.06239800", "close": "0.06254100", "volume": "681.69300000", "timestamp": 1521575400000 }, { "open": "0.06253500", "high": "0.06270000", "low": "0.06242800", ...
2018/03/21
2,613
6,305
<issue_start>username_0: I have date column like this ``` DEC07 SEP2007 SEP2008 JUN10 JUN09 ``` how can I can convert this into MM/YYYY assuming DEC07 is 12/2007?<issue_comment>username_1: Just iterate over the object and sum the total ```js var data = [{ "open": "0.06252000", "high": "0.06264700", ...
2018/03/21
1,582
4,527
<issue_start>username_0: Here I am having 3 table using I have to take the count > > trip\_details > > > ``` id allocationId tripId 1 7637 aIz2o 2 7626 osseC 3 7536 01LEC 4 7536 78w2w 5 7640 S60zF 6 ...
2018/03/21
798
2,715
<issue_start>username_0: I am trying to open a file based on a name that is only partially complete in VBA. Here is an example: I want to pull a file with the name: "MMM B2 06222018" The file will always be located in "C:\Myfile\" However, these two files are saved in "C:\Myfile\": "MMM B2 06222018 Updated" - Updat...
2018/03/21
2,018
6,586
<issue_start>username_0: I've got some strange issue. I have following setup: one docker-host running traefik as LB serving multiple sites. sites are most php/apache. HTTPS is managed by traefik. Each site is started using a docker-compose YAML containing the following: ``` version: '2.3' services: redis: image:...
2018/03/21
202
612
<issue_start>username_0: please advice on how to check if a string ends with any integer at all in javascript. Not a specific integer. e.g `aahdhs7; //Returns true` `assa4; //also returns true` Thank you<issue_comment>username_1: Regex to detect if last value is an integer: ``` ^.*(\d)$ ``` Example here - <https:...
2018/03/21
344
1,325
<issue_start>username_0: I have a problem when building a default project created by NetBeans when Maven-Java Web application is created. When I add Spring MVC dependency under Properties->Framework category and build a project I get this error: ``` Failure to find org.springframework:spring-framework-bom:jar:4.0.1.RE...
2018/03/21
947
3,529
<issue_start>username_0: I received this crash report in Google Play Console which I myself never experience. ``` java.lang.IllegalArgumentException: at android.widget.ListPopupWindow.setHeight (ListPopupWindow.java:541) at android.widget.AutoCompleteTextView.setDropDownHeight (AutoCompleteTextView.java:414) at...
2018/03/21
458
1,573
<issue_start>username_0: I'm new to Plone 5 and I'm actually following the plone training. However, I'm not used to the way that all is build. I would like to do simple things but I don't know where to start. For example: * How can I move the search bar from the header to the navbar menu? * How can I add an image to t...
2018/03/21
932
3,758
<issue_start>username_0: I try to migrate my app from spring boot 1.5 to 2.0 The problem is that I cannot find EmbeddedServletContainerCustomizer. Any ideas how to make it through? ``` @Bean public EmbeddedServletContainerCustomizer customizer() { return container -> container.addErrorPages(new ErrorPage(HttpStatu...
2018/03/21
567
2,252
<issue_start>username_0: I have a button that when clicked calls a function that sorts the products by case amount. I am updating the products array so I assumed this would trigger a re-render of the products being mapped in the code below but it is not. Does anyone know how to get this to trigger the products.map to b...
2018/03/21
443
1,470
<issue_start>username_0: I have a function that takes as many "data vector" inputs as desired, and performs operations on all of them together. So following works: ``` myFunction( df[,1], df[,2], df[,3], ..up to the number of columns.. ) ``` I would like to split a data frame (or matrix) into different column vector...
2018/03/21
534
1,782
<issue_start>username_0: I have a computed property witch looks inside a `items: {}` array, this array have 26 objects inside. The property only "read" the first 23 objects, the 24 and the next ones looks out of the filter range. Before this conclusion i think the problem is because the **24** object have an special c...
2018/03/21
437
1,524
<issue_start>username_0: I'm reading through test classes that use Assertj to verify results. Occasionally, I've spotted an assertThat without assertions. ``` assertThat(object.getField()); ``` Is it possible to identify these classes somewhere in the development cycle? My first guess would be to use a custom Sona...
2018/03/21
540
1,962
<issue_start>username_0: I have an application using SpringBoot2 with mongodb and I am trying to test json serialization of some DTOS by making tests like: ``` @JsonTest @RunWith(SpringRunner.class) public class SomeDTOTest { @Autowired JacksonTester < SomeDTO > json; @Test public void someTest() {} ...
2018/03/21
1,204
3,376
<issue_start>username_0: I have JSON object that I want to convert to C# object. To create class in C# I use <http://json2csharp.com/> page. But the converter doesn't do well. My JSON object: ``` { "data": { "krs_podmioty.data_sprawdzenia": "2016-12-22T05:36:21", "krs_podmioty.regon": "0", "krs_podmiot...
2018/03/21
1,236
4,366
<issue_start>username_0: When I type `M-;`, this invokes `comment-dwim` which, on a line containing text and with no active region, I believe ultimately invokes `comment-indent` to add an in-line or end-of-line comment. In this custom major-mode, `comment-start` is set to `"# "` (and `comment-style` is `'plain`) but t...
2018/03/21
997
3,246
<issue_start>username_0: I've successfully created a PWA for my site, but after I've added it to my home screen and I open up the app, the icon on the splash screen remains extremely small. My manifest has both a 192x192 and 512x512 icon, but as I've read from here (<https://developers.google.com/web/updates/2015/10/s...
2018/03/21
714
2,848
<issue_start>username_0: I have a SOAP message as as string which looks like: ``` String testMsg = "Some Header stuffSome Body Stuff"; ``` Then it goes to XPath but can't find a node (came as null) to set text value ``` Document doc = convertStringToDocument(testMsg); XPath xpath = XPathFactory.newInstance...
2018/03/21
516
1,959
<issue_start>username_0: I need that when the user returns to the home the color of the navigation bar becomes transparent so that the background of the view is appreciated in full screen I found an example page with the desired effect: <https://angular.io/> I need to do this but in react [here my project code](https...
2018/03/21
1,526
5,506
<issue_start>username_0: I'm trying to configure an installer to conditionally install certain components only when certain versions of a 3rd party application are installed. It should be noted there is a 1:1 correspondence between the 3rd party software version and ours.. are there are dozens of such releases of the ...
2018/03/21
832
3,365
<issue_start>username_0: How should I choose between `new ScheduledThreadPoolExecutor(1).scheduleWithFixedDelay` or `Handler.postDelayed()`? Are they same? What are the differences between them? ``` Future scheduledFuture = scheduledExecutor.scheduleWithFixedDelay(runnable, 0, delay, TimeUnit.MILLISECONDS); ``` --...
2018/03/21
880
3,418
<issue_start>username_0: what i need ``` select column1,column2,column3 from table where condition ``` output should be > > select column1 from table where condition > > > i try to use explode ``` print_r (explode(",",$str)); ``` Output i need Array ``` [0] => SELECT column1 [1] => from [2] => t...
2018/03/21
963
3,777
<issue_start>username_0: In my php script i have the following query: ``` SELECT inv as INVOICE, shpdate as SHIPDATE FROM table1 WHERE to_date(char(shpdate), 'YYYYMMDD') >= '2018-01-01' ``` which returns records successfully. This is taking a packed value and returning it to match the YYYY-MM-DD for...
2018/03/21
780
2,804
<issue_start>username_0: I am using the Azure IoT Device Client SDK for .NET Core (1.17.0-preview-001 but also tried 1.7.0-stable). When calling `deviceClient.GetTwinAsync()`all fields are `NULL`except for the `Properties`(Desired as well as Reported are there): [![enter image description here](https://i.stack.imgur.co...
2018/03/21
873
3,116
<issue_start>username_0: I read about char\*, that it should be used and instead of it I should use just char[]. Does it concern also function types? I paste below this what I read and my code below. > > will place "Hello world" in the read-only parts of the memory, and making s a pointer to that makes any writing op...
2018/03/21
644
1,971
<issue_start>username_0: I have a some data stored in $cache[], there are some number in it. How do I remove duplicate values in a printed output? : ``` #mysql connect mysql_connect($host,$user,$pass) or die(mysql_error()); mysql_select_db($name) or die(mysql_error()); function get_numerics ($str) { preg_match_a...
2018/03/21
825
2,942
<issue_start>username_0: I am trying to use Golang as a REST API. I have managed to get handlers to work and queries as well. But not got a query inside a handler to work. When the query resides within the main() it works: ``` func handleRequests() { http.HandleFunc("/getuser", Getuser) } ---> this handler gets...
2018/03/21
742
2,852
<issue_start>username_0: Hello my code looks okay but I don't know why its visible without scrolling the page. ``` jQuery(document).ready(function($){ //Check to see if the window is top if not then display button $(window).scroll(function(){ if ($(this).scrollTop() > 100) { $('.TopButton')...
2018/03/21
486
1,672
<issue_start>username_0: ``` import React, { Component } from 'react'; import axios from 'axios'; import './App.css'; class App extends Component { state = {user:[]} componentDidMount(){ axios.get('http://a99d12de.ngrok.io/api/Docs') .then(res => { const user = res.data; this.setState({...
2018/03/21
1,362
4,040
<issue_start>username_0: I have a table with detail rows. We want to make transactions for aggregated values from this table. There might be situations, where one row is positive and the another one negative. The aggregate is 0. I want to remove those rows. Here is my example: ``` DECLARE @tmp TABLE ( orderid INT , ...
2018/03/21
752
2,281
<issue_start>username_0: I have written the following code, when you click on the button the whole style will be changed. ```js $(".Button1").click(function() { $(this).toggleClass('Button1Changed'); }); ``` ```css .Button1 { background-color:#000000; color:#ffffff; } .Button1Changed { background-colo...
2018/03/21
604
1,926
<issue_start>username_0: i am trying to call a function on right click on the select box which has disabled attribute. but i am unable to call a function.if i remove disabled attribute, then the right click is working. ```js function hello() { alert('clicked'); window.event.returnValue = false; } ``` ```css #t...
2018/03/21
660
3,081
<issue_start>username_0: I have created the following alert dialog with a simple view comprising of a `TextView`, `EditText` and `Button`: ``` alert { customView { verticalLayout { textView { text = getString(R.string.enter_quantity) ...