date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/22
1,007
3,453
<issue_start>username_0: I am trying to remove a div element with javascript.I have following code but for some reason it is not working HTML: ``` ![]({% static 'images/car.png' %})- ![]({% static 'images/abc.png' %})- ![]({% static 'images/bat.png' %})- ![]({% static 'images/dog.png' %})- ``` my JS ``` functi...
2018/03/22
905
3,210
<issue_start>username_0: I integrated Fire-base Notification CRUL Code with Codeigniter. sometimes I am getting an error but not all the times. I have integrated below code to the controller Controller Code ``` $newDate=Date('m-d-Y H:i:s'); $test_str=$user->us_name. ' Clocked at '.$newDate; $res = array(); $res['d...
2018/03/22
590
2,239
<issue_start>username_0: Open File This is my gradle file: ``` apply plugin: 'com.android.application' android { compileSdkVersion 27 buildToolsVersion "27.0.1" defaultConfig { applicationId "com.landdrops.cricketfantacy.androidbottom" minSdkVersion 21 ...
2018/03/22
636
2,412
<issue_start>username_0: I am working with `RecyclerView`, the adapter and XML is the same for `RecyclerView` in 3 activities. The issue is in `getItemCount()` because 3 different types of `ArrayList` is populated within the same adapter. How can I use different types of `ArrayList` with the same adapter?<issue_commen...
2018/03/22
643
2,320
<issue_start>username_0: on click of a button I am trying to find the closest class containing a string. The HTML looks like: ``` Click me ``` and my JavaScript is ``` $('.clickme').on('mouseup', function(event) { var description = $(this).closest('div[class*=:contains(feature)]').attr('class'); console.log(...
2018/03/22
952
3,259
<issue_start>username_0: What is the difference between skipWhile and filter operators? ``` const source = interval(1000); const example = source.pipe(skipWhile(val => val < 5)); const subscribe = example.subscribe(val => console.log(val)); const source = interval(1000); const example = source.pipe(filter(val => val ...
2018/03/22
2,492
10,836
<issue_start>username_0: I've been struggling with the new `NotificationChannels` which is introduced in API 26 and up. I'm developing an app with an option to choose whether to be notified in four cases: 1. Sound and Vibrate. 2. Sound only. 3. Vibrate only. 4. No sound or vibrate, just a pop-up. In all cases, my ap...
2018/03/22
2,145
9,307
<issue_start>username_0: I'm using Entity Framework Core in context of a ASP.Net Core MVC application. A snippet of the data model looks like that: ``` public class Seminar { public int ID { get; set; } public string Name { get; set; } public Person Teacher { get; set; } public int TeacherID { get; ...
2018/03/22
931
3,113
<issue_start>username_0: I am using a bunch class to transform a dict to an object. ``` class Bunch(object): """ Transform a dict to an object """ def __init__(self, kwargs): self.__dict__.update(kwargs) ``` The problem is , i have a key with a dot in its name({'test.this':True}). So when i call: `...
2018/03/22
441
1,980
<issue_start>username_0: I am making an app in which I want to have a page where I show a language selection page. So far I've included English, Hindi, and Marathi, with English set as the default. My question is: 1. how to change the whole application language in Selected Language? 2. After choose the language when...
2018/03/22
820
3,453
<issue_start>username_0: I am developing a web page using react with typescript in visual studio 2017 and am very new to it. I am having some trouble accessing the parameters passed to a component and making a parameter optional. Below is my code:- routes.tsx: ``` export const routes = //<= this works, but i want...
2018/03/22
877
3,204
<issue_start>username_0: My AngularJS client passes the date value in epoch milliseconds to my server which uses C#.NET. My client and server resides in different time zones. I am passing the date value from client side as following which returns the epoch milliseconds: ``` var date = $scope.date.getTime() ``` If I ...
2018/03/22
1,095
3,655
<issue_start>username_0: An old question recently reoccurred: What is the correct way of setting `CMAKE_MODULE_PATH`? But this applies to pretty much any list. However there might be a difference for general text, but IMO only when that text might contain semicolons. Precondition: That variable might be unset, empty, ...
2018/03/22
648
2,421
<issue_start>username_0: I am trying to run my first program on Android Studio 3.0.1. However when i fire up the emulator, it comes transparent and nothing shows up on it. [![enter image description here](https://i.stack.imgur.com/IyUMv.png)](https://i.stack.imgur.com/IyUMv.png)<issue_comment>username_1: i am able to ...
2018/03/22
809
2,876
<issue_start>username_0: I am facing some problem to parse the date format `dd-m-y` with `SimpleDateFormat` class in Java. So is there any date formatter for this date format type (`12-oct-14`)?<issue_comment>username_1: ``` SimpleDateFormat sdf = new SimpleDateFormat("dd-MMM-yy") ``` If you are using Java 8 or 9, t...
2018/03/22
996
3,552
<issue_start>username_0: <https://codepen.io/evie4411/pen/geWzNM> I would like to have control of how wide my text is. And both < hr > elements, I would like to extend and retract depending on the width of the text within them. Right now, the text spreads right across the screen and I would like it to fit within the ...
2018/03/22
2,430
6,725
<issue_start>username_0: I have a `Datatable` in my C# code ``` DataTable dtDetails; ``` My Datatable how following records; ``` id | tid | code | pNameLocal | qty | price ------------------------------------------------- 1 |101 | 101 | some_local_name | 2 |20.36 2 |102 | 202 | some_local_name |...
2018/03/22
942
2,758
<issue_start>username_0: I wanted to answer to [this question](https://stackoverflow.com/questions/49385950/haskell-removing-adjacent-duplicates-from-a-list) using `until`. But that does not work and I've concluded that I don't understand `until`. So I take the function given by the OP, verbatim: ``` removeAdjDups :...
2018/03/22
1,285
4,072
<issue_start>username_0: i have this kind of table ``` +----+------------+-------+------------+ | id | company_id | price | periods | +----+------------+-------+------------+ | 1 | A1 | 500 | 2016-07-12 | | 2 | A2 | 540 | 2018-01-21 | | 3 | A1 | 440 | 2017-01-19 | | 4 | A2 ...
2018/03/22
6,960
24,682
<issue_start>username_0: All of a sudden, I am getting this error while building APK ``` Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDevDebug'. > More than one file was found with OS independent path 'META-INF/android.arch.lifecycle_runtime.version' ``` I went through a lot of StackOv...
2018/03/22
388
1,577
<issue_start>username_0: In the vendor bills, when a customer invoice has been created,there will be a message\_ids field which creates and sends messages to the concerned persons who are all listed in the followers list. By default,this works like when an invoice is created and a message is entered, after that while c...
2018/03/22
1,075
4,425
<issue_start>username_0: What is [`git request-pull`](https://git-scm.com/docs/git-request-pull) and how does it compare to making a `pull request`, e.g. [on github](https://help.github.com/articles/creating-a-pull-request/)? **1.** How is it supposed to be used? **2.** Can it be used as replacement for pull request...
2018/03/22
583
1,871
<issue_start>username_0: If I have the following: ``` public enum Attribute { ONE, TWO, THREE } private Map mAttributesMap = new HashMap<>(); mAttributesMap.put(Attribute.ONE.name(), 5); mAttributesMap.put(Attribute.TWO.name(), 5); ``` So how can I get the key of `mAttibutesMap`? And how to increment it?<issu...
2018/03/22
277
1,149
<issue_start>username_0: I'm using angular google maps module for my Angular application (5.x.x) every things working fine except for the point that satellite toggle button is not showing which is default feature of google maps API. I saw on google official documentation screen there's an option to disable satellite vi...
2018/03/22
2,083
6,896
<issue_start>username_0: I am trying to use Google Charts and populate it using external JSON file, which I have created in PHP via json\_encode(). So I got google charts working, with static random data from example, which is: ``` function drawChart() { var data = google.visualization.arrayToDataTable([ ['...
2018/03/22
353
1,351
<issue_start>username_0: I have project that was created in another IDE that is build for a specific microcontroler. In the code `far`is used quite often and it is comprehended by the IDE and compiler. I would like to use eclipse to edit the code, because it is more convinient to use. But it generates a lot of warning...
2018/03/22
521
1,794
<issue_start>username_0: Is it possible to fetch a webpack envvar outside the node / js scope? I'm developing with vueJS and TYPO3 and want to load the JS files from node server, when it runs. Otherwise, I want to load the built JS files from the project folder. TYPO3 has conditions for file loading, in dependence o...
2018/03/22
793
2,610
<issue_start>username_0: I've seen it mentioned in docs, etc the vue.config.js file. And also noted previously these are handled in the webpack config file, etc in 2.0. But I can't find either file in my project folder created with vue cli 3.0... Where is the config files and why isn't it anywhere in the top level fold...
2018/03/22
2,047
7,024
<issue_start>username_0: I have created the below procedure which ran just fine before I added the bold code. Now it's inserting 100 records at a time. It's been more than a hour and it has inserted only 4000 records. There are 2 million records to be inserted. Is there any way I can fasten the execution? ``` create o...
2018/03/22
907
3,215
<issue_start>username_0: I want to add **web pack** **provided Plugins** to use JQuery globally. Some articles says > > You need to put it in webpack.config.js under plugins:[] > > > But when I look at my `webpack.config.js` there is no such `plugins` object. Then I create `plugins` object manually under the `mod...
2018/03/22
1,603
7,112
<issue_start>username_0: is it possible to bind an UWP `CommandBar` to something like a `ObservableCollection` or so? What i want to achieve ist to bind my `CommandBar` of my `NavigationView` to an Object of a specific `Page` so that the `AppBarButton` change dynamicaly depending on the current `Page` What i tryed: ...
2018/03/22
729
2,564
<issue_start>username_0: The name `attribute_name:"position"` is very rare and I want to check that if the property exists I want to push it to the new array. However, every time I try to add a condition it gives me errors. `[0].attribute_name` inside the `for` loop is giving me trouble. There may or may not be two ar...
2018/03/22
827
3,029
<issue_start>username_0: I have a generic list manager class ListManager which I use to store Animal objects in the AnimalManager subclass to the list manager. In the Animal class I have added the IComparer interface and added a Compare method. For some reason i get an error in the ListManager in the sort method se c...
2018/03/22
847
3,015
<issue_start>username_0: I am trying to sent my form data to node js and retrieve at there.But I am failed to do it with form data object. ``` handleSubmit(data) { console.log(data); const forms=new FormData(); forms.append('fname','pranab'); let promise=fetch('http://localhost:8080/reactTest', { ...
2018/03/22
913
3,155
<issue_start>username_0: I get unexpected token error for spread operator, how can I do it build the bundle without removing the code ? Here is my webpack config file ``` Unexpected token (85:32) 83 | console.log( 84 | 'return value 1 ' + > 85 | JSON.stringify({ value: { ...this.value(), ...newState...
2018/03/22
512
1,801
<issue_start>username_0: I have a simple form like this: ``` Name: ``` And some vanilla JS code to detect when the form is submitted: ``` document.addEventListener('submit', doFancyThings); ``` But the `doFancyThings` function is only triggered if I click the submit button, not if I press the enter key on my key...
2018/03/22
885
3,222
<issue_start>username_0: I am confused about the Express built-in error handler. I don't provide a custom error handler, but I do pass error via `next(err)` like the documentation says, Express just log a `[object object]` string. Here are some simplified code: ``` var express = require('express'); var app = express...
2018/03/22
2,476
8,816
<issue_start>username_0: To identify a thread, we must do the following: 1) Get and save its id. 2) Within a function running in the thread, get the thread's id again and compare it with the saved id. Eg: <http://coliru.stacked-crooked.com/a/8f608dff835f96d0> (The program is from Josuttis' book "The C++ Stand...
2018/03/22
1,887
6,902
<issue_start>username_0: I'd like to build a wrapper class, that does something before and after each emitted value of an Observable. Here's what I came up with: ``` class Wrapper { wrapped$: Observable; \_dataSubject = new Subject(); data$ = this.\_dataSubject.pipe( tap(\_ => console.log("BEFORE"), // // map(...
2018/03/22
1,832
6,659
<issue_start>username_0: I have checkboxes on my page: ``` ``` I also have links to select and deselect all checkboxes: ``` * [Select all](#) * [Deselect all](#) ``` This code selects and deselects the checkboxes: ``` $('#select-all-list').on('click', function() { $('.select-doc').prop('checked', true); }); ...
2018/03/22
781
3,104
<issue_start>username_0: I have 3 activities, that connect like this: A -> B -> C. On A you input a text that will be used in C, then B opens and you input another text to be used in C. But when C opens, produces null errors. I came up with a solution, to start A then go directly to C and onCreate of C, start B as ...
2018/03/22
739
3,009
<issue_start>username_0: I have an online JSON file that shows the latest country earthquakes, the listView adapter in my app receives data from this JSON file and the refresh is manually by user`s swipe, but now I am adding an automatic and timely basis refresh mode to my list, the questions is: **How can I create a s...
2018/03/22
849
3,232
<issue_start>username_0: using the code below ``` $matchs = DiraChatLog::where('status','=','Match')->whereBetween('date_access', [$request->from, $request->to])->get(); foreach ($matchs as $key => $match) { $array[] = [ $match->status => $match->date_access, ]; } dd($array); ``` i get the output [![...
2018/03/22
1,165
3,550
<issue_start>username_0: Given a set of consecutive numbers from `1` to `n`, I'm trying to find the number of subsets that do not contain consecutive numbers. E.g., for the set `[1, 2, 3]`, some possible subsets are `[1, 2]` and `[1, 3]`. The former would not be counted while the latter would be, since 1 and 3 are not...
2018/03/22
2,352
7,307
<issue_start>username_0: I need help with a little css. I have two clickable text areas (like in the code pen below). If i click the first one the first text and img need to be shown and if i click the second textfield the second text and img need to be show. I didn't get it. I´m too stupid. I prefer css only. If ...
2018/03/22
1,706
4,902
<issue_start>username_0: If I have a vector `(def v [1 2 3])`, I can replace the first element with `(assoc v 0 666)`, obtaining `[666 2 3]` But if I try to do the same after mapping over the vector: ``` (def v (map inc [1 2 3])) (assoc v 0 666) ``` the following exception is thrown: ``` ClassCastException clojur...
2018/03/22
726
2,767
<issue_start>username_0: I have created 3 div having the same class in a parent , and on the child element i am adding the active class and on click of second child adding the active class again but this time i want to remove the active state for first element. How can i remove it in effective way? Here is my code ``...
2018/03/22
697
2,222
<issue_start>username_0: I want to get **navbar** but I m not getting it after many failed attempts I came here for help. ```html Portofolio Toggle navigation [Brand](#) * [Link (current)](#) * [Link](#) * [Dropdown](#) + [Action](#) + [Another action](#) + [Something else here](#) + + [Separated lin...
2018/03/22
1,608
6,370
<issue_start>username_0: We are facing one issue in our project i.e. Data verification issue. The project is about Replication of data from Sybase to oracle DBs. The table structures for Table A across Sybase, Oracle is same. Same column and primary key combination across all the databases. e.g. If Sybase has Table A ...
2018/03/22
483
1,334
<issue_start>username_0: I'm writing simple function which returns maskable array of zeros and ones to array of numbers. If number is a power of two maskable index will be one if not then zero. It works fine without passing my simple function isPower() , but when I do pass it. weird things happen. I want my code wor...
2018/03/22
350
1,114
<issue_start>username_0: How to use `bs4` with `find_all` with the class tag with space? ``` container = containers[0] product_container = container.find_all('div',{'class': 's-item-container'}) product_name = product_container.find_all('div', {'class': 'a-fixed-left-grid-col'}) print (product_name) ``` the div clas...
2018/03/22
1,009
2,491
<issue_start>username_0: Code: ``` x <- c(1, 1, 3, 2, 3, 5) x[x < 3] <- x[x < 3] * 100 x ``` Output: ``` [1] 100 100 3 200 3 5 ``` I expected to get the output “`[1] 100 100 200`”. How does R remember the indexes where `x < 3?` Because when running `x[x < 3]`, you get the output “`1,1,2`” (and...
2018/03/22
1,540
3,829
<issue_start>username_0: I have a dataframe that is generated by the following code ``` l_ids = c(1, 1, 1, 2, 2, 2, 2) l_months = c(5, 5, 5, 88, 88, 88, 88) l_calWeek = c(201708, 201709, 201710, 201741, 201742, 201743, 201744) value = c(5, 6, 3, 99, 100, 1001, 1002) dat <- setNames(data.frame(cbind(l_ids, l_months, l...
2018/03/22
1,345
5,021
<issue_start>username_0: When i want to get some records with joined data from the referenced tables, Sequelize adds the reference columns twice: the normal one and a copy of them, written just a little bit different. This is my model: ``` module.exports = function(sequelize, DataTypes) { return sequelize.define('res...
2018/03/22
760
3,002
<issue_start>username_0: I used selenium 2.53.1 and tried invoking browser but browser throws Windows authentication pop up. Once Windows authentication pop up comes driver.get() will throw exception in selenium 2.42 but the same scenario is not working in 2.53. Driver is not throwing any exception and stays idle for l...
2018/03/22
722
2,837
<issue_start>username_0: *I am new user to ruby on rails. I have some question please give the answer as early as possible* **What is the Best way to Create a Database For Your Projects in Rails?** > > 1.Scaffold generator > > > 2.Manually Design Database​ > > ><issue_comment>username_1: After installing the Rai...
2018/03/22
1,216
4,803
<issue_start>username_0: I'm working on a project at the moment which requires me to set up a distributed network simulator, I had it working with taking output from a file and parsing through each line with a buffered reader as you can see below but I want to now use a predefined array and make my bufferedReader take ...
2018/03/22
1,493
5,256
<issue_start>username_0: I'm trying to create a program having the following steps: 1) Get all xml files from a user given path 2) Open each of the files (if any) and search for nodes where it is in the format `...` 3) Get the value of the nodes and search the exact value in the [database xml](https://codeshare.io...
2018/03/22
1,385
4,588
<issue_start>username_0: I have the following pandas dataframe: ``` DB Table Column Format Retail Orders ID INTEGER Retail Orders Place STRING Dept Sales ID INTEGER Dept Sales Name STRING ``` I want to loop on the Tables, while generating a SQL for creating the tables. e.g. ``...
2018/03/22
9,516
34,265
<issue_start>username_0: I have a input like ``` string input = "14 + 2 * 32 / 60 + 43 - 7 + 3 - 1 + 0 * 7 + 87 - 32 / 34"; // up to 10MB string size int result = Calc(input); // 11 ``` * the calculation is from left to right, number by number * the numbers are 0 to 99 * multiplication before addition is ignored s...
2018/03/22
442
1,599
<issue_start>username_0: Is there a way to retrieve all data in local storage in one single call? Without using specific key (getItem('key'). What I like is to load all data and then check them for a certain prefix.<issue_comment>username_1: This will give you all the keys ``` var local = localStorage; for (var key ...
2018/03/22
223
715
<issue_start>username_0: I want to make video responsive in html.For that i'm using video tag. Following is the code i've tried. ``` ``` Now when i opened the website which contains the video in mobile phone , what i'm getting is there will be a play button , but can't play anything.Please help..<issue_comment>usern...
2018/03/22
252
851
<issue_start>username_0: Hi I am trying to build a long term Excel sheet for my church scheduling. I want to be able to format a cell fill if that cell has contents. eg. I want it to go green if I have entered the name of the preacher for a particular day. Alternatively colour red if there is no entry. It doesn't have ...
2018/03/22
312
1,069
<issue_start>username_0: I am trying to change the memory\_limit in php.ini, the php.ini is saving fine with new memory size, but i keep getting the same memory size issue?? I am using Laravel 5.5 with Homestead. Would appreciate if someone could help me out. Thanks! Here is the code m trying to run (importing data f...
2018/03/22
465
1,414
<issue_start>username_0: I'm trying to get the coordinates from a scanned QR-code using the pyzbar module. If I use the following code below to do this: ``` test = decode(img) print(test) ``` I get the following result: [Decoded(data=b'Part4', type='QRCODE', rect=Rect(left=172, top=332, width=75, height=76)...
2018/03/22
425
1,269
<issue_start>username_0: I am making a homework in LaTeX. I need to use the fractions. And here I have a problem. First fraction is displayed fine, code: ``` \rho = \frac{m}{V}, \hfill (1) ``` Its looks like it should. The problem is with next fractions. All are displayed in one denominator. This is badly displa...
2018/03/22
1,523
4,847
<issue_start>username_0: I'm trying to remove the duplicates in the results of a query involving listagg. I'm using this syntax: ``` REGEXP_REPLACE (LISTAGG (PR.NAME, ',' ) WITHIN GROUP (ORDER BY 1), '([^,]+)(,\1)+', '\1') AS PRODUCERS ``` However, occurrences including chinese cha...
2018/03/22
731
2,589
<issue_start>username_0: What is the difference between this two implementations of Singleton. Does creating of variable \_instance in parent class make it work differently from the second class? ``` class SingletonA(object): _instance = None def __new__(cls, *args, **kwargs): if not cls._instance: ...
2018/03/22
1,637
6,270
<issue_start>username_0: The actual JSON,that I need to parse in swift4 is, ``` { "class": { "semester1": [ { "name": "Kal" }, { "name": "Jack" }, { "name": "Igor" } ], "s...
2018/03/22
388
1,661
<issue_start>username_0: I'm using bootstrap modal for login and register. I want to open register modal in after closing login modal on same button. Now register modal is opening on click of button on login pop up. After clicking on overlay the both pop going close but overlay is not hiding. So for hiding first moda...
2018/03/22
1,002
3,628
<issue_start>username_0: I've just started to learn c++ and I have some example code right here that shows a problem with a local variable and a pointer. ``` #include using namespace std; int\* f1 (int n) { int\* p = &n return p; }//f1 void f2 (int na) { int nb = na; }//f2 int main () { int\* nn = f1 (101); f...
2018/03/22
1,073
3,849
<issue_start>username_0: I have a http post request which returns ID. I then try to pass that ID into another function. However, inside the next function I have a timeout that will loop the function to check the status. The ID returns undefined each time inside the timeout function. **First Function** Here I have 're...
2018/03/22
365
1,287
<issue_start>username_0: I'm writing a WordPress plugin and have a checkbox in a form. If the checkbox is checked it saves the value to the database and shows up checked in the form. However if the checkbox is checked it outputs `checked='checked'` in the form. So the checkbox works like it needs to work but I cant s...
2018/03/22
410
1,278
<issue_start>username_0: I try to achieve ion segment button with icon and text like tab bar but getting differently. what i have tried so far ``` Heizöl Diesel <NAME> <NAME> <NAME> ``` [![enter image description here](https://i.stack.imgur.com/CChOh.png)](https://i.stack.imgur.com/CChOh.png) I have try t...
2018/03/22
1,704
5,870
<issue_start>username_0: i have this array of banned characters in VB.NET how can i convert it? Original VB.NET Banned Characters: ``` Public BannedChars() As String = New String() {" ", ",", ".", ";", "/", "\", "!", """", "(", ")", "£", "$", "%", "^", "&", "*", "{", "}", "[", "]", "@", "#", "'", "~", "<", ">", "?", ...
2018/03/22
588
1,747
<issue_start>username_0: So, in jQuery I can find the total number of a type of element with .find('selector').length, but how do I find out what n of the total the element is? ie: How can I get back the information (n) that I've clicked on the first or second (or nth) button? eg: ``` | | | | --- | --- | | ... ...
2018/03/22
904
3,641
<issue_start>username_0: I have ten projects in SVN which are independent on one another. Now i want to migrate to git. In order to maintain all the projects in git, what is the best approach for doing that. All the ten projects in SVN are not dependent on one another and all are in different languages like Java, C#,.....
2018/03/22
1,462
7,093
<issue_start>username_0: I'm trying to let my Android Wear watch face determine the current location of the device. This has worked before but after uninstalling and reinstalling the package, it just fails. I think I did everything right and it has already worked like that. I have no idea what the issue is or even how ...
2018/03/22
402
1,330
<issue_start>username_0: I can not run in the single `.js` file, if there is the `import xxx from xxx`. `[![enter image description here](https://i.stack.imgur.com/AR5nu.jpg)](https://i.stack.imgur.com/AR5nu.jpg)` I use the single file to debug the imported `ts_config`, how can I do this in WebStorm? --- **EDIT-1*...
2018/03/22
369
1,416
<issue_start>username_0: I currently have a situation where templates for the cells of a DataGrid are created at runtime because the property names are dynamic and not known at design time. For example the "ColumnName" is used here (from a DataColumn) as the path for the Binding to get a colour to fill an ellipse: ```...
2018/03/22
1,198
3,955
<issue_start>username_0: I have a window tool named "**Run Dashboard**" in Project A, but I can't activate this window in Project B. Does anyone know how to solve this? This feature appeared in IntelliJ IDEA version 2017.3. This is what I see in Project A: ![long menu of run-related buttons with ](https://i.stack.imgu...
2018/03/22
461
1,650
<issue_start>username_0: I just recently incurred a lot of problem with selenium, especially with clicking the button and switch to the dialog box. The main problem is that I can run it in my own laptop the Dell E7250 with is 12.5", but when I moved it to another computer which is also Dell but 14", the button cannot...
2018/03/22
398
1,251
<issue_start>username_0: I was wondering if there is a way to switch a column under an other one using a function. Basically if I have a dataframe as follow: ``` a <- data.frame("A" = 1:5, "B" = 2:6) A B 1 1 2 2 2 3 3 3 4 4 4 5 5 5 6 ``` I would like to get something like: ``` A 1 1 2 2 3 3 4 4 5 5 6 ...
2018/03/22
359
1,342
<issue_start>username_0: I want to do a word embedding + BLSTM in keras using a functional model. I have to declare the input as: ``` inputs = Input(shape=(X,)) ``` Which should be the value of `X` here? Since the inputs will be sentences, I am not very sure what I should put in there.<issue_comment>username_1: Well...
2018/03/22
1,336
2,692
<issue_start>username_0: I have three matrices: ``` A = [1 2 3; 4 5 6; 7 8 9] B = [10 11 12; 13 14 15; 16 17 18; 19 20 21; 22 23 24; 25 26 27] C = [28 29 30; 31 32 33; 34 35 36; 37 38 39; 40 41 42; 43 44 45; 46 47 48; 49 50 51; ...
2018/03/22
393
1,559
<issue_start>username_0: When I want to refresh my tableView from the Main Thread it gives me this error: Thread 1: fatal error unexpectedly found nil while unwrapping an optional value which meant that the tableView doesn't have an outlet to the ViewController. But the tableView is linked to the ViewController. What a...
2018/03/22
709
2,090
<issue_start>username_0: I know next to nothing about SQL I am trying to make an SQL Query in Microsoft SQL Server Management Studio where the records are received from within a dynamic period (`24th of last month - 23rd of this month`). Currently I need to edit the dates manually or add them in via an excel VBA macro ...
2018/03/22
595
1,990
<issue_start>username_0: When checking out the length property on a string I made a mistake and forgot the quotes around `length`. Instead of an error, one of the characters appeared from the string. ``` const string = 'name' s[length] >> "a" ``` I have done other combinations and usually get the second letter retur...
2018/03/22
472
1,621
<issue_start>username_0: I have custom structure url for wordpress permalinks. How to setup the permalinks like /blog/%category%/%postname%. but this permalink structure is not working. For example blog url should be: ``` /blog/categoryname/postname ```<issue_comment>username_1: In the default scope, length will ev...
2018/03/22
684
2,382
<issue_start>username_0: I'm trying to seed my database. And currently, I'm trying to get the price of a product that has the ID of `$index`. My seeder looks like this. ``` foreach(range(1,25) as $index) { DB::table('orderitems')->insert([ 'order_id' => rand(1, 25), 'product_id' =...
2018/03/22
1,014
2,694
<issue_start>username_0: I have 2 for loops: ``` for (int i = n; i >= 1; i -= 2) { .... } for(int i = 3; i <= n; i += 2) { .... } ``` which goes like, if `n = 7`, then `i` will get the values (in that order): ``` 7, 5, 3, 1, 3, 5, 7 ``` the code is the same is the for ...
2018/03/22
817
3,058
<issue_start>username_0: Here is how I can set selects using pure JS. Plain, simple and effective: ``` 1 2 $("#mySelect").value = '1' ``` Not with React. This approach for some reason doesn't work in React. Select values are not updated. Why? How can I do in React? I have a usual DOM with a `[reset]` button. O...
2018/03/22
1,057
3,298
<issue_start>username_0: After reading and talking about Java 10s new reserved type name **`var`** ([JEP 286: Local-Variable Type Inference](http://openjdk.java.net/jeps/286)), one question arose in the discussion. When using it with literals like: ``` var number = 42; ``` is `number` now an `int` or an `Integer`? ...
2018/03/22
1,607
4,543
<issue_start>username_0: Having the 2 following arrays: ``` [ {"id":1,"value":40}, {"id":2,"value":30} ] ``` And: ``` [ {"userId":1,"worth":20}, {"userId":2,"worth":10} ] ``` What I want to have in the end, is the following result: ``` [ {"id":1,"value":20}, {"id":2,"value":10} ] ``` So...
2018/03/22
730
2,644
<issue_start>username_0: I want to protect a high-level risk feature with 2FA. Historically, we use 2FA SMS. I want to propose the same feature but ideally, I wish to be able to integrate also native Keycloak OTP authenticator (more secure). That' s why based on keycloak-sms-authenticator-sns https://github.com/nickpa...
2018/03/22
1,545
5,617
<issue_start>username_0: This is a question I got in an interview. It is little hard to explain, please bear with me. Imagine a Railway Ticketing Counter. * Initially there are 3 counters. * There is a security guard who keeps a check on the people so that no one breaks the line. * Each counter has 2 people waiting ...
2018/03/22
867
3,029
<issue_start>username_0: I am using jquery 3.2.1 with .NET framework 4.5.2 MVC. I have an jquery ajax call to an mvc controller. If the action is successful, the return is ``` return new HttpStatusCodeResult(200, "success message"); ``` and when it fails, ``` return new HttpStatusCodeResult(400, "failure message")...
2018/03/22
784
2,619
<issue_start>username_0: I am trying to transform an input list into a palindrome. For instance: ``` Input: [1,2,3] Output: [1,2,3,3,2,1] ``` Basically I need to add a reversed list. My problem lies in the following: ``` palindrize::[a]->[a] palindrize list | null list = [] palindrize (x:xs)=(x:xs)++revert(x:xs) w...
2018/03/22
2,984
11,989
<issue_start>username_0: We are planning a migration from an on-premises TFS to VSTS very shortly. Ahead of the migration, I've run the pre-requisite Validation task and obtained a warning that the current TPC database size exceeds the maximum DacPac limit. A snippet of the database validation is provided below: ``` ...
2018/03/22
1,653
6,583
<issue_start>username_0: I have declared some static variables in my solution as below, ``` using System; using System.Collections.Generic; using System.Configuration; namespace SSPWAS.Utilities { public class Constants { public static string ApproverlevelL1 = "M23"; public static string Appr...