date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/21
2,163
7,725
<issue_start>username_0: --- Context ------- --- I've been struggling with the following problem for the last few days and due to the very nature of a CDN and the manual review of each new rule, it takes me each time up to 4h to deploy a new rule. As described in the following topic, I currently have my Angular app...
2018/03/21
961
3,503
<issue_start>username_0: I have long int number and I want to encode it to QRCode with exactly numeric type of encoding. Now I use CIFilter(name: "CIQRCodeGenerator"), but in this case I don't know how to choose type of encoding. Is there a way to create QR code with chosen type of encoding?<issue_comment>username_1: F...
2018/03/21
476
1,825
<issue_start>username_0: In my modx revo project I have list of links to articles, if I click on the link corresponding article will shown below. Those link can be styled, and that one which referring to displayed article needs to be styled difertly. So I need to add specific html class to that link, like ```html 1s...
2018/03/21
657
2,379
<issue_start>username_0: I am using angular 5 with ionic 3. I have one interface: ``` export interface IAny { getDataSource: Observable; } ``` Components which implements this interface has method: ``` getDataSource () { return Observable.of(['Item1', 'Item2', 'Item3'] as any) }; ``` This method should...
2018/03/21
700
1,571
<issue_start>username_0: I need help From a list I would like to get the addition of characters like the example below: Start: ``` 1 1 13 5 14 4 1 5 12 7 8 9 4 18 3 20 11 17 13 ``` =============================================== Final results : ``` 9001 9001 9013 9005 9014 9004 9001 9005 9012 9007 9008 9009 9004 90...
2018/03/21
535
1,887
<issue_start>username_0: Can anybody help me to find a solution how to make this code work on my Wix-Site: ``` [Click here to opt-out of Google Analytics](javascript:gaOptout()) ``` I have this code from Google itself (At the bottom of the page see "example"): <https://developers.google.com/analytics/devguides/c...
2018/03/21
773
3,176
<issue_start>username_0: I use the Code A to create a RecyclerView with radio button based some searched sample code from website. 1、I don't know if these code is good, is there a better way to implement radio button in RecyclerView? 2、How can I set the first radio button checked default when I start the APP? You kno...
2018/03/21
592
1,925
<issue_start>username_0: I have an list of objects: ``` [class RetailerItemVariant { sku: 008884303996 isAvailable: true price: 70.0 }, class RetailerItemVariant { sku: 008884304030 isAvailable: true price: 40.0 }, ... ``` What's the best way to extract an array of the SKU's in Java 8? e.g.: ...
2018/03/21
1,160
4,782
<issue_start>username_0: I would like my users to be able to delete their own user account. I made a `SecurityController` where there is my 3 functions `login`, `logout` and `deleteUser`. When I delete the current user in database this error appears : > > You cannot refresh a user from the EntityUserProvider that doe...
2018/03/21
607
2,128
<issue_start>username_0: I have some records like below: ``` ID Val Amount 1 0 3 2 0 3 3 0 4 4 1 2 5 1 3 6 2 3 7 2 4 ``` I want to group this data by the column Val and get the sum(amount), but do not group the ones with Val = 0. The result set I need is like below: ``` Val Amount 0 3 0 3 ...
2018/03/21
758
2,579
<issue_start>username_0: I'm trying to get this to work: I've got string variable in a file called `test.js`. Depending on some values the file is created by a php script and it says something like: `var test = 'up'` or: var `test = 'down'`. Now, I would like display a certain image on my website depending on the va...
2018/03/21
803
3,033
<issue_start>username_0: I am very new to the idea of `kubernetes`. I found some good tutorials online to get my `kubernetes` cluster up & running. Right Now I want to add a `kubernetes` dashboard to my cluster so that it would be easy and good to have a page where I can watch how my pods and node's react (even do I'm...
2018/03/21
497
1,745
<issue_start>username_0: What is the difference between this(var) and this.var in JAVA.? ``` public class Clock { private long time = 0; private Clock(long time) { this.time = time; } public Clock(long time, long timeOffset) { this(time); this.time += timeOffset; } p...
2018/03/21
1,715
5,445
<issue_start>username_0: I'm trying to implement the following API : ``` geojson::position_t<> point_1{ 10, 12 }; geojson::position_t<> point_2( 11, 13 ); geojson::position_t<> point_3(std::pair(12, 14)); geojson::position\_t<> line\_1{ geojson::position\_t<>{ 100, 120 }, geojson::position\_t<>{ 110, 130 } }; ge...
2018/03/21
1,741
4,270
<issue_start>username_0: I have 2 tables, 01 is current status and 01 is finish status. I want to calculate time difference of 2 rows that have the same PO\_NO,MANAGEMENT\_NO,PROCESS\_NAME . Each PROCESS\_NAME has the STATUS (Start/Finish) ``` ID INDEXNO PO_NO ITEM_CD MANAGEMENT_NO SEQ PROCESS_NAME STATUS Ti...
2018/03/21
1,773
5,402
<issue_start>username_0: Find the bellow parent child tree object I have created. I need to find the root parent of a given child id. For example child id - 242 root parent id is 238. There are similar questions have been asked and this is the one I found very similar to my question. [Convert parent-child array to tre...
2018/03/21
908
2,629
<issue_start>username_0: I'v created a masonry grid with Flexbox. The order of the items was vertically, therefore I created a function to sort the items horizontally: Before: ``` 1 4 7 2 5 8 3 6 9 ``` After (with my function): ``` 1 2 3 4 5 6 7 8 9 ``` Function to sort the items: ``` // Function to order the ...
2018/03/21
578
2,237
<issue_start>username_0: I have a linked list like this: > > Head->A->B->C->D->Tail. > > > There can be `N (1 items in the list. The current cursor position is, cursor->B which is 2 if we think like an array. I have to perform the following operation on my list:` * insert x characters in the list at the cursor p...
2018/03/21
441
1,374
<issue_start>username_0: I get the json from API, and the json look's like : ``` "diagnosis": { "type": [], "kode": [], "PrimaryCat": [], "Location": [], "Encountrace": [], "Fracture": [], "Healing": [], } ``` Expected Result: I want to store the `keys` into array, and the result should be > > ['typ...
2018/03/21
456
1,558
<issue_start>username_0: Wonder how to resize an image inside a `TextView` xml in a `LinearLayout`. I read some solution using `setCompoundDrawablesWithIntrinsicBounds` method, but cannot get it right. Here is the image: [![enter image description here](https://i.stack.imgur.com/C6Ywx.png)](https://i.stack.imgur.com/...
2018/03/21
434
1,617
<issue_start>username_0: There are several ways my user can get privileges in a Google Cloud Platform project. Direct role and privilege assignment, act as service accounts, different group membership. So given a GCP project, how can I list the active privileges for my user?<issue_comment>username_1: Usually, in GCP, ...
2018/03/21
781
2,881
<issue_start>username_0: I have the following method that I want to decrypt. The following method Encrypts. What should I do to decrypt? **Code** ``` PlainString = "5lg3yg7Q+Y8=" func tripleDesEncrypt(PlainString: String) -> String { let keyData = "<KEY>" let PlainStringvar = PlainString guar...
2018/03/21
828
2,651
<issue_start>username_0: I have written a JAX-RS REST-API, that fetches rows from Oracle. For this I have used `JNDI` since I am using `Jetty`. But on deploying the WAR file I am getting the following error: ``` Caused by: java.lang.IllegalStateException: Nothing to bind for name jdbc/replaydev at org.ecli...
2018/03/21
593
2,023
<issue_start>username_0: I m want to extract the scene change timestamp using the scene change detection from ffmpeg. I have to run it on a few hundreds of videos , so i wanted to use a python subprocess to loop over all the content of a folder. My problem is that the command that i was using for getting these values o...
2018/03/21
852
3,220
<issue_start>username_0: I'm creating a seat selection screen but I'm confused, how can I achieve this view. I want to access all selected seats into one single Java file. Plz, help me[![enter image description here](https://i.stack.imgur.com/P8wuB.png)](https://i.stack.imgur.com/P8wuB.png) EDIT: I've tried this code ...
2018/03/21
587
1,981
<issue_start>username_0: I am trying to complete, which i thought would be simple, a `where` statement within SQL using `CurDate` instead of me having to amend dates each time i run my code, i am looking for the `where` statement to look over a 360 period, beginning today and working backwards. I have tried all of the...
2018/03/21
1,097
4,124
<issue_start>username_0: I would like to know how pass ArrayList data through intent() in gridView.setOnItemClickListener() and get it in ShowTracksActivity.java. How is possible ? **MainActivity.java** ``` ArrayListartists = new ArrayList(); // Artist 1 String[] artist\_title = new String[]{ "Title 1", "Title 2","T...
2018/03/21
2,143
7,635
<issue_start>username_0: I have some problems with pandas' `HDFStore` being far to slow and unfortunately I'm unable to put together a satisfying solution from other questions here. ### Situation I have a big DataFrame, containing mostly floats and sometimes integer columns which goes through multiple processing step...
2018/03/21
377
921
<issue_start>username_0: I've tried to find the cube root in Python but I have no idea how to find it. There was 1 line of code that worked but he wouldn't give me the full number. Example: ``` math.pow(64, 1/3) ``` This doesn't give me 4 tough but 3.99999. Does anyone know how I am supposed to fix this?<issue_comme...
2018/03/21
2,313
6,908
<issue_start>username_0: I'd like that when I open a div, all the others close himself. I've looked for around and I found only answer with jQuery and not JavaScript. This is my code: ```js function openDescription(description_id) { var x = document.getElementById(description_id); if (x.style.display === "b...
2018/03/21
1,143
4,472
<issue_start>username_0: I have multiple build types defined in my build.gradle. In variant window I selected build variant (ex debugAPI23). I expected that code in only one build type will be executed. But in Gradle Console I can see output for all build types. As you can see I am trying to remove specific file for e...
2018/03/21
592
1,906
<issue_start>username_0: ``` public static void randomSquare() { int[] array = new Random().ints(10).toArray(); for (int i=0; i ``` I currently have this method which returns random numbers. How would I modify it so it returns a stream of 10 square numbers instead?<issue_comment>username_1: If you want to sq...
2018/03/21
286
1,117
<issue_start>username_0: I have a table `category`, `profile` and `employee_belongs_to`, where `employee_belongs_to` stores profile\_id and category\_id. The `profile` table stores all the employees details. `category` table stores different category like English, math,physics ... I want to select only name from `pro...
2018/03/21
340
1,267
<issue_start>username_0: I would like to know how to disable the browser cache, using HTML5. I found this useful post ([How to control web page caching, across all browsers?](https://stackoverflow.com/questions/49547/how-to-control-web-page-caching-across-all-browsers/2068407)), but it contains the info only for HTML...
2018/03/21
668
2,443
<issue_start>username_0: I am using javascript code to select a option on body load as shown in the snippet. This works fine for me. The issue i am facing in the next step is that i am not able to call onchange event dynamically as soon as the value gets selected in selectpicker. Code what i have written to select th...
2018/03/21
740
2,425
<issue_start>username_0: in the select statement below I have 707 row ``` select detail_serial, Price from apa_invoice_detail ``` and I have another select statement which is ``` Select max(detail_serial) ,asc_item.item_name_2 ,asc_group.group_name_2 From apa_invoice_detail inner join asc_...
2018/03/21
804
2,315
<issue_start>username_0: I have GoCD instance and want to automate regular actions like scheduling pipelines and checking pipelines statuses using GoCD API. When I do GET request it works: ``` curl 'https://gocd.demo.kagarlickij.com/go/api/pipelines/frankenstein/status' \ -u 'kagarlickij:Pa$$w0rd' | jq ``` [![ente...
2018/03/21
410
1,421
<issue_start>username_0: Suppose the following code. ``` try: some_code_1 except: # will it be called twice, if an error occures in finally? some_code_2 finally: some_code_3 ``` Suppose an exception occurs in `some_code_3`. Do I need an extra try-except clause around `some_code_3` (see below) or will the...
2018/03/21
2,035
7,624
<issue_start>username_0: i know its a duplicate question for so many fellows but i have tried all possible solutions which were given by community members but none of them helped me so i am posting this question as i am stuck with this error.I urge all the members please look at my code before marking it as duplicate. ...
2018/03/21
1,225
3,429
<issue_start>username_0: I've joined up my tables such that every entry is unique and I want to get a COUNT() value for how many unique courses the teachers teach. I figured I would make a table of distinct courses then do a count based on the teacher's id, however this doesn't account for teachers who taught no course...
2018/03/21
660
2,109
<issue_start>username_0: Have this weird case when my images are being found in sources, linked correctly, src url is okay, but still not being displayed. Other images in that same folder are being loaded and displayed just fine, but my new uploaded images are not. I'm using open cart and upload images via ftp. Permiss...
2018/03/21
631
1,971
<issue_start>username_0: After publishing my MVC app, my website is giving me this error: > > Server Error in '/' Application. > > CREATE DATABASE permission denied in database 'master'. > > > I have added the connection string, both in the web.config file and in the ASP.NET settings on the domain, this is t...
2018/03/21
360
951
<issue_start>username_0: I'd like to get the two lasts octets from an IP address with PHP. I tried this : ``` substr(strrchr($ip,'.'),2); ``` But it seems I misunderstood the code, since it's not working... (eg. if my IP is 192.168.0.79, this line returns only "9"...)<issue_comment>username_1: Using your solution, j...
2018/03/21
396
1,479
<issue_start>username_0: I have a legacy code, for which the complexity of the code is higher than 20. My pipelines are failing due to this fact. This is the exact error message from the pipelines: ``` Function's cyclomatic complexity (36) exceeds allowed maximum of 20 ``` I don't have the time to refactor the code...
2018/03/21
212
819
<issue_start>username_0: i have a hybrid app. I used web-view to make a android hybrid app. I also have a native menubar above the webview. My question is, How can i disable the native menu from my web application? Is it possible? If yes please share your thoughts on this<issue_comment>username_1: The OP did not mentio...
2018/03/21
247
910
<issue_start>username_0: I have selector like follow: ``` $('#codes-datatable tbody').on('click', 'tr', function () {}); ``` And I would like not to have buttons triggering this selector. For example. I have inside the table a button: ``` Button ``` I've tried already many combination with `.not('.btn')` and `:no...
2018/03/21
275
735
<issue_start>username_0: how to convert string time to date object ``` var time_t = "09:56 AM" ; this.audit_time = new Date(time_t); //Error Invalid date ``` how do i correct it.please help me to solve this<issue_comment>username_1: try this ```js var time_t = "09:56 AM"; var timeArr = time_t.replace(" AM", ""...
2018/03/21
234
648
<issue_start>username_0: It is successful to use the command 'git push origin tagname', but The tag isn't displayed in remote<issue_comment>username_1: try this ```js var time_t = "09:56 AM"; var timeArr = time_t.replace(" AM", "").split(":"); var d = new Date(); d.setMinutes(timeArr[1]); d.setHours(timeArr[0]);...
2018/03/21
383
1,340
<issue_start>username_0: I have two custom components called Grid and FieldValue and I use the FieldValue component multiple times on a particular page. I am using a class name called `.black` for all the FieldValue components. Now, I want to use a different class name called `.blue-pointer` where the data in FieldValu...
2018/03/21
271
894
<issue_start>username_0: I am fetching data from one tag lets say 111 22222 and splitting by using space like 111 and 22222. I want to transfer the value to two different tags into different request lets say 111 for Tag1 and 22222 for Tag2<issue_comment>username_1: Use `props` from your component : ``` class FieldVa...
2018/03/21
1,259
3,836
<issue_start>username_0: I have a textbox that contains data separated by commas See pictures: [![enter image description here](https://i.stack.imgur.com/gTlzZ.png)](https://i.stack.imgur.com/gTlzZ.png) and a button to add data. The data is comma-separated: E013-007,E013-021,E013-022,E013-048,E013-049,V039-034 I ne...
2018/03/21
1,313
4,363
<issue_start>username_0: I'd like to modify part of the text in a textarea with Selenium. The textarea seems almost as if it were read-only. In this very simple example using a sample algo, it would be great to be able to change the stock id on this line: ``` context.aapl = sid(24) ``` ... to something like: ``` c...
2018/03/21
556
1,918
<issue_start>username_0: [![enter image description here](https://i.stack.imgur.com/wzIp3.png)](https://i.stack.imgur.com/wzIp3.png) I want to make the gradient area swipe-able (down to show, swipe up to hide). this is my code : ``` val scopeLayout = inflaterView.findViewById(R.id.scope\_layout) scopeLayout.setOn...
2018/03/21
382
1,548
<issue_start>username_0: My issue is simple. I have a class that manages all my viewcontroller to viewcontroller transition animations, and it takes classes from a protocol, because I want to make it portable and I usually make a baseviewcontroller with project-specific stuff. The protocol is something like this: ```...
2018/03/21
316
1,283
<issue_start>username_0: I am developing an intranet portal with spring mvc and jsp. The problem: in a jsp page, I list objects. At the click of a button, I would like to open a modal window (bootstrap) with a modification form of this object with its old information. But I can not understand the logic / technique to i...
2018/03/21
467
1,709
<issue_start>username_0: I want to get all available keys of an union type. ``` interface Foo { foo: string; } interface Bar { bar: string; } type Batz = Foo | Bar; type AvailableKeys = keyof Batz; ``` I want to have `'foo' | 'bar'` as result of `AvailableKeys` but it is `never` (as alternative I could do `k...
2018/03/21
2,308
7,317
<issue_start>username_0: I am use the .map method to return the name of an object, and ultimately populate the innerHTML of a table with that name. The problem is I can't get it to show the appropriate values. So for example, for the flavor Almond\_Divinity it would have a Table row with three table data tags. The ...
2018/03/21
1,521
5,059
<issue_start>username_0: I'm relatively inexperienced with Node and I've been asked to create a POP3 email client. The newest package I could find that handles POP3 is [node-poplib-yapc](https://www.npmjs.com/package/node-poplib-yapc) and I've been playing around with it, seeing how it works. Now the problem I've run ...
2018/03/21
279
950
<issue_start>username_0: According to [MDN](https://developer.mozilla.org/fr/docs/Web/HTML/Element/Input/datetime-local), I should use `datetime-local` type for a date and a time input: ``` ``` I can validate a date in laravel with this code (in a controller): ``` $this->validate($request, ['my_date' => 'required|d...
2018/03/21
248
941
<issue_start>username_0: I am curently developping a java/jee app in which i need to store files.I tried storing files as blob in the DB but i got a problem in size of files which must be configured in the application server so i am thinking about storing those files directly in the server disk.So i want to know what i...
2018/03/21
1,217
4,706
<issue_start>username_0: I am very new to VueJS. From what I've seen there is probably an elegant answer to this. I have a table of records. Clicking on one of them opens a modal and loads that row/record. My code looks like this (made easier to read): ### Javascript ``` app = new Vue({ el: '#app', data: { ...
2018/03/21
1,359
5,008
<issue_start>username_0: I'm awful with Async code in Javascript and have been stuck on something for a while now. I'm working with WebSql and just going through database initialization steps but one of the loops is not executing in the way I expect it to. ``` $(document).ready(function() { initdatabase(); }); f...
2018/03/21
2,720
10,154
<issue_start>username_0: Hello everybody i'm working on reactjs project here i have an issue if you want to help me thanks for advance i passed my data to my function so i can push activities and tasks into acts and tasks 'json format' ``` function StoryMap(props) { var acts = []; var taskss = []; for (var i ...
2018/03/21
621
2,269
<issue_start>username_0: [![Image that I want to be cut](https://i.stack.imgur.com/JjGVj.png)](https://i.stack.imgur.com/JjGVj.png) I want to move my `ImageView` so it will be half way out of the `ConstraintLayout` (parent one) You can imagine this as I make negative margin in my `LinearLayout` *What I have is an Ima...
2018/03/21
350
1,235
<issue_start>username_0: I use [create-react-native-app](https://github.com/react-community/create-react-native-app), and I wonder how I can get a `.ipa` file to run in my iPhone from it? I see the command `npm run eject`, but I do not know what to do next. And for some reason, I cannot use `exp` in the command line. ...
2018/03/21
341
1,570
<issue_start>username_0: Hi I am using kubernetes and now need to make a choice between traefik and nginx ingress controller for ingress expose. I have googled a lot, but seems no such big difference, especially nginx just announce support grpc now. Anyone can give a advice? Thanks very very much!<issue_comment>usernam...
2018/03/21
1,346
4,679
<issue_start>username_0: I am new in **Kotlin**. I have a view that I need to show or hide in conditional ways. How can I do this in Kotlin? **In Java:** ``` public void showHide(View view){ if (view.getVisibility() == View.VISIBLE) { view.setVisibility(View.INVISIBLE); } else { view.setVis...
2018/03/21
248
1,004
<issue_start>username_0: I am trying to create package-info.java of a package which is already being created. Eclipse have the option to create a package-info.java at the time of create of package. Is there any way to create package-ingo.java after creating package?<issue_comment>username_1: As stated in this [question...
2018/03/21
764
2,374
<issue_start>username_0: Can anyone explain why given the below code I can access myInt but not myInt2? ``` if(int.TryParse("10", out int myInt)) { //Do Something } else if(int.TryParse("100", out int myInt2)) { // Do Something else } System.Console.WriteLine(myInt); System.Console.WriteLine(myInt2); //<-- Co...
2018/03/21
517
1,405
<issue_start>username_0: Crashes on: ``` $Time = new DateTime('now', new DateTimeZone('UTC')); $DBTime = DateTime::createFromFormat('Y-m-d H:i:s.u', 2000-01-01 00:00:00, new DateTimeZone('UTC')); $Interval = $DBTime ->diff($Time); ``` > > Call to a member function diff() on boolean > > > Wrong format?<issue_com...
2018/03/21
1,419
5,350
<issue_start>username_0: Here is Repository pattern, Normally if I used **ContextDb** instead of **IdentityContextDb** ,it would have worked but i have to use Indentity for creating my Identificial things. **Core.Repository** ``` using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFramework...
2018/03/21
523
2,161
<issue_start>username_0: I am new to iOS Development.I am having problem with font size with phone screen size.For example Font size in iPhone 8 Plus looks fine but that text size is bigger in iPhone SE.I tried check Dynamic Type to Automatically Adjusts Font.And try to play with Autoshrink in StoryBoard.And i also tri...
2018/03/21
710
2,473
<issue_start>username_0: Experts! I am using a class that inherits `CWnd` to make the content visible using a horizontal scroll bar The control I want to create looks like this: [![enter image description here](https://i.stack.imgur.com/s6DWK.png)](https://i.stack.imgur.com/s6DWK.png) However, I have some problems ...
2018/03/21
582
1,838
<issue_start>username_0: I have a df with a label "S" for anywhere my numeric column is <35. I'd like to use each S position and label "S-1", "S-2", "S-3" for the 3 previous rows to S, then "S+1", "S+2" for the next 2 rows of S. like this.. ``` N S 45 56 67 S-3 47 S-2 52 S-1 28 S 89 S+1 66 S+2 55...
2018/03/21
450
1,625
<issue_start>username_0: I have a .net 2 Core web app on windows IIS. No issues with the web app. How can I successfully run: **1)** a .net core console app;and **2)** a regular windows executable? The console app is needed because of the work passed to it can take several minutes - sometimes up to 10 minutes to c...
2018/03/21
290
834
<issue_start>username_0: is there any possibility of any variable defined in a php file in WordPress, that it can be used in another file?<issue_comment>username_1: Yes you can use global var on WordPress like as usual doing on PHP like below **from.php** ``` global $id; $id = 10; ``` **to.php** ``` global $id; ec...
2018/03/21
321
958
<issue_start>username_0: How can I use a VBA code for selecting a value that is for example the first or the last value of a series, if this series is located all in one Cell of Excel? Is there a code using the right or left application that can be implemented?<issue_comment>username_1: Yes you can use global var on W...
2018/03/21
379
1,091
<issue_start>username_0: Sorry! I tried to search for the answer on Google and Stackoverflow. But can't find it. I am using NGINX and the URL I'm trying to access is `https://www.mywebsite.com/newsfeed.rss/` The above URL shows 404, But if I acces the same URL without `/` in the last of URL, Then It works. `https://...
2018/03/21
493
1,410
<issue_start>username_0: i'm trying to compare between two set of strings and want to update status column either as 'same' or 'changed' or 'change'. i have try to use strcmp and concat as below in the picture, but syntax error keep prompted out. anyone know how to use strcmp and concat at the same time like below?. ...
2018/03/21
551
2,103
<issue_start>username_0: I have a complex nested array of objects like this for which I have to return a new Array(filter) based on `attributeScore > 90`. How will I accomplish this using the javascript .filter or the lodash \_.find() or \_.some function ? ``` trucks:[ {wheels:[ {name:"xyz", ...
2018/03/21
548
1,874
<issue_start>username_0: I am trying to use AJAX to populate my dropdown list and I am returning a 404 with error message from my controller, and Ajax is not catching it... My return at the controller is ``` return Response()->json(array('error' => '404 car type not found'), 404); ``` And here is my JS ``` $('docu...
2018/03/21
2,089
6,549
<issue_start>username_0: I need to read the date with weekday. First of all, i need to read the date and weekday then calculate the total weekday, for example: ``` total Sunday :1000 total Monday :1000 ...... ``` I always get the value is 0. The input file looks like this: ``` 23/10/2005, Sunday 26/07/2016, Tuesday...
2018/03/21
535
1,967
<issue_start>username_0: Just curious about the difference between type `Any` and `AnyRef` in Scala. Why does int belongs to `AnyVal` but string belongs to `AnyRef`? For example: ``` val a: AnyVal = 3 val b: AnyRef = "1" ```<issue_comment>username_1: Any is the supertype of all types. Any has two direct subclasses: ...
2018/03/21
2,208
8,942
<issue_start>username_0: I am developing web socket application using Hazelcast to share the status of the online users. Everything works fine except one thing that is when one of the application instance goes down or restarts, all user connected to that instance get disconnected and `afterConnectionClosed` of `Messagi...
2018/03/21
696
2,492
<issue_start>username_0: I use this script below for show or hidden a few . The `selected` class in the script is associated with a `display:block` and my start with a class with a `display:none`. When the page is load all `div` are hidden. But I will like show the first of this, but I can do this? ``` $(document)....
2018/03/21
1,184
4,121
<issue_start>username_0: I've got a script that basically access email through IMAP and then finds all the .wav audio and download them into a folder locally on the server. I'm struggling to get it to access Office 365 through IMAP. Keeps saying Couldn't open stream {outlook.office365.com:993/imap/ssl/novalidate-cert...
2018/03/21
393
1,356
<issue_start>username_0: I have a popup message which is shown every time when users visit my web page. This is annoying and l want to show the pop up message only once. how to do that? ```js $(document).ready(function () { $("#popup").hide().fadeIn(1000); //close the POPUP if the button with id="close" is click...
2018/03/21
842
2,532
<issue_start>username_0: I'm trying to convert time statistics from one of our scripts to JSON format for further processing, but have failed to do so. Here's an example of what the statistics output looks like: ``` cmd ls -lah 0m1.964s cmd echo something 0m4.183s cmd setup-environment 0m0.401s ``` I would like to h...
2018/03/21
2,138
6,123
<issue_start>username_0: I transfered some data from infobright to TiDB. My php code like: ``` $sql='delete from xxx where xxx'; doQuery($sql); $sql='insert into xxx (...)'; doQuery($sql); ``` I inserted 48595 records, but sum of them is float with 8 digits. While, the field is defined as float(10,2): ``` mysql> SE...
2018/03/21
3,151
10,861
<issue_start>username_0: how to select the dropdown using md-select and md-option in selenium webdriver. Select class in not supported. ```html Filter Pending Posted Checks & eChecks Deposit Withdrawal ```<issue_comment>username_1: Suppose you want to select `Pending` from the options. You can do som...
2018/03/21
2,090
6,304
<issue_start>username_0: I'm currently trying to code a Shiny-App and close to solution, I want to reach. However, there are some issues, that I'm not able to solve... ``` if(!require(shiny)){ install.packages("shiny") require(shiny) } if(!require(tidyverse)){ install.packages("tidyverse") require(tidyverse) } i...
2018/03/21
434
1,843
<issue_start>username_0: We are using Hangfire, failing jobs should be retried. We use the following approach to specify the number of retry attempts: ``` GlobalJobFilters.Filters.Add(new AutomaticRetryAttribute { Attempts = 3 }); ``` Our question is: where do we have to configure this filter? At the program which p...
2018/03/21
799
2,411
<issue_start>username_0: I have table with this data. ``` ID IMPACT TICKETID OWNER OWNERGROUP 1 1 TICKET1001 GROUP1 2 2 TICKET1001 USER1 3 3 TICKET1001 USER1 4 4 TICKET1001 GROUP1 5 5 TICKET1001 USER2 6 6 TICKET1001 GROU...
2018/03/21
486
1,375
<issue_start>username_0: I am really dumb. Please help me out by explaining the output: ``` #include union x { int a; char b; double c; }; int main() { union x x[3] = {{1}, {'a'}, {1.2}}; int i; for(i = 0; i < 3; i++) printf("%d , %d , %lf\n", x[i].a, x[i].b, x[i].c); return 0; } ``` Output: [![enter i...
2018/03/21
504
1,491
<issue_start>username_0: What is the regular expression to be used to catch anything in the database which is **not** of the expression **MM/DD/YYYY**. (I want everything which is apart from the above mentioned format, could be dd-mon-yy or yyyy/mm/dd etc) I am using the below regexp query ``` select birth_date FROM...
2018/03/21
721
2,852
<issue_start>username_0: I know that there are limitations in Kotlin to inherit from a data class. I learn't more while going through this [discussion](https://discuss.kotlinlang.org/t/data-class-inheritance/4107). As data class in Kotlin are similar to POJO in Java. Should we not follow inheritance in Java POJO class...
2018/03/21
693
2,345
<issue_start>username_0: Firstly, I wanted to say that I am quite new to javascript, thus I would ask you not to criticise me that much. I wonder, how can I implement the dynamical update of webpage image and it should load a photo from another webpage. I was working with javascript and implemented some functionality,...
2018/03/21
1,038
3,512
<issue_start>username_0: I am new in swift.I have created simple login screen .I have two issues coming with loginviewController.swift Issue 1 # i dont know how to compare the two image that is displayed in button . I have used if checkbox.setImage(img, for: .normal) for comparing image that is displayed in side butto...
2018/03/21
359
1,232
<issue_start>username_0: I want to do a simple file rename in a gradle task. I have a jar called project-1.5.jar under the folder src and I want the jar to be renamed to just project.jar So, project/**project-1.5.jar** to project/**project.jar** using **gradle** Any ideas are much appreciated.<issue_comment>username...
2018/03/21
2,624
9,024
<issue_start>username_0: Im trying to make an image spin when you click it. The more you click it the faster it spins, and if you stop clicking it will slow down over time. The problem is that the only way to spin an object without jQuery is with the "transform" property in CSS (What I know of at least). Is there any ...