date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/01
817
3,245
<issue_start>username_0: ``` var std = require("./models/stdModel"); var ss=std.find({stdId:req.body.sid}); console.log(ss.stdname); ``` model have fields stdid and stdname, i want only stdname on the base of stdid which i've entered in input field. save result in ss and then get one field from it<issue_comment>usern...
2018/03/01
762
2,381
<issue_start>username_0: I need to get an image URL from Contentful entry id. I am getting such an JSON from Contentful query ``` { "sys":{ "space":{ "sys":{ "type":"Link", "linkType":"Space", "id":"8v1e7eaw70p2" } }, "id":"1JfEwVlD9WmYikE8kS8iCA", "type":"Entry", "createdAt...
2018/03/01
342
1,420
<issue_start>username_0: I’m using [lombok @Builder](https://projectlombok.org/features/Builder). When I place `@Builder` annotation on the `MyExample` class, `@Builder` generates **public** `builder()` method. But I want to make **private** `builder()` method. Unfortunately `@Builder` annotation does not have `access`...
2018/03/01
533
1,449
<issue_start>username_0: Why does my function not print the reversed array in my console? ```js var numbers = [1, 2, 3, 4, 5, 6, 7]; function swap(array) { for (var i = 0; i < Math.floor(array / 2); i++) { var temp = array[i]; array[i] = array[array.length - 1 - i]; array[array.length - 1 - i] = te...
2018/03/01
1,857
6,070
<issue_start>username_0: I used an anonymous hash to pass value from two different subroutines to a new subroutine. But, now I'm not able to perform calculations using the passed variables. ``` use warnings; use strict; use feature 'say'; use DBI; use autodie; use Data::Dumper; use CGI; print "Enter sequence"; my $se...
2018/03/01
691
2,089
<issue_start>username_0: I've been doing JavaScript a *long* time, but just noticed something I've never seen before. Consider: ``` > +[1.5] 1.5 ``` Why does this happen? Is this a special rule to interpret arrays as numerical or is it an accident of spec alchemy? Note also that: ``` > +[1,0] NaN ``` This makes ...
2018/03/01
1,368
5,332
<issue_start>username_0: My purpose is to do quite the same thing as in the Facebook app. Here is my current code : ``` class MapFilterViewController: UIViewController, CLLocationManagerDelegate { @IBOutlet weak var mapView: MKMapView! @IBOutlet weak var distanceSlider: UISlider! @IBOutlet weak var dista...
2018/03/01
1,089
4,019
<issue_start>username_0: I have a model called Impression - which counts the views of each Card (also a model). I am trying to print a table with the cards, that has at least 10 views in the last month. So I started with - ``` cards = Card.joins(:impressions).where("impressions.created_at > ? AND impressions.created_...
2018/03/01
1,052
3,829
<issue_start>username_0: ``` case class Thing(n: Int) def ThingCreator(c:Int): Thing = { val a = 10 val b = 20 c match { case 0 => Thing(1) case a => Thing(2) case b => Thing(3) case _ => Thing(4) } } ``` What would be the output if we call ThingCreator() with inputs r...
2018/03/01
765
3,133
<issue_start>username_0: How can i configure http->https redirect in spring webflux? I need all `http` request be redirected to `https`(as i understood any `http` request should have `301` http status response with change http->https). Didn't found any information about it in [documentation](https://docs.spring.io/spri...
2018/03/01
902
3,434
<issue_start>username_0: I have a method in a React component which fetches some data from an API this.state.matches returns an empty array at first ``` loadMatches() { let matches = this.state.matches; forEach(this.state.matchIds.splice(0,5), matchid => { axios.get(url) .then(function (re...
2018/03/01
913
3,194
<issue_start>username_0: all! Can u please help me? I have a small problem. When i click button, When I click on a button, a new object should be created without reloading the page. Only one parameter is required to create an object. The problem is that when you click the object is created (the new object is displaye...
2018/03/01
1,773
5,837
<issue_start>username_0: I want to convert `2018-02-21 15:47:35` UTC to epoch UTC form. How do we do it? I am currently in PST. ``` SimpleDateFormat df = new SimpleDateFormat("YYYY-MM-DD HH:MM:SS"); df.setTimeZone(TimeZone.getTimeZone("UTC")); date = df.parse(dateString).getTime(); ``` The code above should return ...
2018/03/01
465
1,697
<issue_start>username_0: I am trying to debug the Xamarin.iOS application in Visual Studio 2017 professional, where I want to see the simulator/output on my windows machine which I am not able to see. I have checked for the option Enable remote simulator to windows in VS by going below path > > Tools => Options => X...
2018/03/01
338
1,364
<issue_start>username_0: I have uploaded my Laravel Project on the Server which CentOs 7. But after migrating the project i got the Error as shown in following screenshot: [![enter image description here](https://i.stack.imgur.com/9CFM9.png)](https://i.stack.imgur.com/9CFM9.png) I have Clear the Cache, also allow the...
2018/03/01
598
1,847
<issue_start>username_0: I have a working sed command that searches for `rm a-file`, comments it and adds another line (`rm another-file`) below it: ``` sed -e '/^rm a-file/s;^;# ;' \ -e '/# rm a-file/a rm another file' \ my.script ``` I am wondering if it is somehow possible to combine both edits...
2018/03/01
1,163
4,118
<issue_start>username_0: I am developping a C++ DLL with a C wrapper in order to use it in Python and C#. So I create on Visual Studio a project (DLL) to develop and compile it. No problem here. I even can use my DLL on Python without trouble. But, on Visual, I want to create another project in the same solution as th...
2018/03/01
216
836
<issue_start>username_0: Is there no way to get a file listing out from a Google Cloud Storage bucket that is sorted by date descending? This is *very* frustrating. I need to check the status of files that are uploaded and the bucket has thousands of objects. `gsutil ls` does not have the standard linux `-t` option. ...
2018/03/01
433
1,609
<issue_start>username_0: I am looking for a way to search columns with a LONG datatype. I know those are deprecated (and I've always hated working with them...), but for some reason Oracle themselves continue to use them in their own tables and views... Basically I want to build a query on `SYS.USER_TAB_SUBPARTITIONS...
2018/03/01
430
1,469
<issue_start>username_0: I have a document below: ``` { _id: ObjectId, name: 'String', description: 'String', articles: [ { reference: ObjectId, title: 'String', digest: 'String', content: '...' }, { reference: ObjectId, title: 'String', digest: 'String', content: '...' }, { reference: ObjectId, ti...
2018/03/01
396
1,502
<issue_start>username_0: I added Parcelable implementation for my class and get this code: ``` data class Category (val name:String, var factors:ArrayList):Parcelable { constructor(parcel: Parcel) : this( parcel.readString(), TODO("factors")) { } override fun writeToParcel(parcel: Parcel, flags: Int) { parcel.w...
2018/03/01
625
1,611
<issue_start>username_0: My Hive table currently looks like this: ``` Numbers 0 0 -0.12745098 -0.218905473 0.026011561 0.235294118 -0.028 -0.052356021 0.052753355 0.008032129 0.012768817 0.115384615 0.040816327 ``` The type is DOUBLE\_TYPE. I would like to calculate the median. I would expect the answer to be 0.0080...
2018/03/01
344
1,238
<issue_start>username_0: I have an app that uses the Python Standard Environment on App Engine. I tried, but failed, to find instructions to connect to Postgres on Cloud SQL. In the [documentation](https://cloud.google.com/sql/docs/postgres/connect-app-engine), under "App Engine standard environment to Cloud SQL", I o...
2018/03/01
386
1,382
<issue_start>username_0: In Xamarin, Is there any way to set tag to button in xaml file? I tried this, ``` ``` but Tag property doesn't supporting in xaml what property is there in xaml to support to set tag value to view<issue_comment>username_1: You can use `x:Name="MyButton"`, and then access the button in your...
2018/03/01
648
2,192
<issue_start>username_0: I'm reading in a text file. I've been doing it just fine with python2, but I decided to run my code with python3 instead. My code for reading the text file is: ``` neg_words = [] with open('negative-words.txt', 'r') as f: for word in f: neg_words.append(word) ``` When I run this...
2018/03/01
2,379
9,164
<issue_start>username_0: Two classes, S and R and a message M (implemented as a class, a delegate or whatever). **Could I satisfy the following requirements with the help of interfaces in C#? If yes, how?** 1. any object of S shall be able to send M to any object of R 2. any object of any other class X shall **not** ...
2018/03/01
684
2,055
<issue_start>username_0: I am trying to convert a snippet of MATLAB code into python, the MATLAB code is as follows: ``` M = 0; for k=1:i M = [M, M, M; M, ones(3^(k-1)), M; M, M, M]; end ``` which creates a 2d array that mimics a sierpinski carpet my python implementation is as...
2018/03/01
1,021
3,551
<issue_start>username_0: I've been following the tutorial at <http://www.django-rest-framework.org/tutorial/4-authentication-and-permissions/> (which is pretty good) but I've got to the end and I'm running the command http -a admin:password123 POST <http://127.0.0.1:8000/snippets/> code="print 789" and it gives me a...
2018/03/01
4,196
12,517
<issue_start>username_0: I have a requirement where I have nvarchar column in the database, which I need to pull in the form of row and Column from the database. My nvarchar is like ``` { "notifications": [ { "apMacAddress": "20:50:7a:09:5t:30", "associated": false, "band": "IEEE_802_11_A", ...
2018/03/01
730
2,537
<issue_start>username_0: I want to delete blank cells in a range (E1:E130). This code skips cells. ``` For Each cell In ranger If cell.Value = "" Then cell.Delete End If next cell ``` To make my objective more clear: I have a list of cells with text and empty cells in the range E1:E130 and I want to...
2018/03/01
1,093
3,572
<issue_start>username_0: I am reading scala cats book from underscore.io. It says following about Monad and Functor: > > While monads and functors are the most widely used sequencing data > types.. > > > I can see that Monad is using for sequencing data but Functor not at all. Could someone please show about seq...
2018/03/01
1,786
5,551
<issue_start>username_0: I'm trying to code a grid with bordercolored JPanels on a "bigger" JPanel. I don't know how to put these Panels in the right size and order to look like a grid. After this i want to put in an Action Listener for the Button so it places an an obeject on a specific Panel on the grid, but right no...
2018/03/01
2,221
5,078
<issue_start>username_0: I would like to concatenate words (strings) with different separator every 10-th element, such that each word is separated by a comma until every 10th word then it's separated by a comma and a line break. The ultimate purpose is for printing neatly a list of words into a table. I can write a ...
2018/03/01
1,141
3,653
<issue_start>username_0: i don't know exactly how to explain this, but i will try...Something weird is going on with the linking of a tag...Basically when i link a <**h1**> tag or anything to go to another template tag, it doesn't work...it does change the url extension but it stays on the same template... I will show...
2018/03/01
1,186
3,259
<issue_start>username_0: hi In Laravel Installation The following error occurred ``` user@user-System-Product-Name:/$ composer global require "laravel/installer" Changed current directory to /home/user/.config/composer Using version ^2.0 for laravel/installer ./composer.json has been created Loading composer reposit...
2018/03/01
528
1,992
<issue_start>username_0: I have 3 models using Django Framework: ``` class Student(models.Model): name = models.CharField() surname = models.CharField() class Group(models.Model): groupId = models.AutoField() name = models.CharField() students = models.ForeignKey(Student) class Faculty(models.Model...
2018/03/01
620
2,409
<issue_start>username_0: I have an Android application that creates and edits requisitions. All the data is going to be stored at my server. A problem is: the app should regulary get information from the server on existence of some records by generating queries. Time interval between queries towards server should be ...
2018/03/01
627
2,057
<issue_start>username_0: I'm trying to use `Codeception` to make some functional acceptance tests on project using `Symfony 4`. Project environment is built with docker containers(just simple pgsql container and php container that run `php bin/comnsole serve` and expose 8000 to different local port). I've met the probl...
2018/03/01
424
1,556
<issue_start>username_0: I'm having problems fetching data using `Model::find()` with two conditions. I want to return one record that has the given `member_id` **AND** its `role` is `guest`: ``` $member = CalendarMembers::find(["member_id" => $r->member_id, "role" => "guest"]); ``` But this isn't working. I have on...
2018/03/01
319
1,103
<issue_start>username_0: I just downloaded PhysX 3.4 on GitHub, but it seems like I can't compile PhysX.sln. I get a lot of errors like this : > > C1083 Cannot open include file: 'stddef.h': No such file or directory (compiling source file ....\SimulationController\src\ScTriggerInteraction.cpp) > > > I don't see ...
2018/03/01
536
2,030
<issue_start>username_0: I'm using protected routes in my reactjs application and I would like to know how to pass props in a protected route or if there is a more elegant way to solve my problem. The reason why I feel the need to pass a props in a protected route, is that the logout button lies within the protected c...
2018/03/01
790
2,800
<issue_start>username_0: I have three tables ``` users: +----+--------+--------------+ | id | name | user_type_id | +----+--------+--------------+ | 1 | Tawsif | 1 | | 2 | Karim | 2 | +----+--------+--------------+ transactions: +----+---------+--------+ | id | user_id | amount | +----+----...
2018/03/01
703
2,296
<issue_start>username_0: I have a dynamically generated element with `contenteditable="true"`. I need to fire an event on changing the text inside this div. I use `change()` and it is not working. But on the same time `blur()` is working for me. Is there any way to fire an event on `change()`? Unfortunately I cannot ...
2018/03/01
952
2,967
<issue_start>username_0: I recently put all my files under Microsoft OneDrive Cloud folder for backup use. But I found blogdown cannot correctly build a site under such folders. Is there anyone with such a problem?<issue_comment>username_1: In short, this is not an issue on the `blogdown` side, but an issue on the `hug...
2018/03/01
577
1,543
<issue_start>username_0: My array like this : ``` $arr = array('chelsea.jpg', 'arsenal.jpg'); ``` If I run : `echo ' ``` ';print_r($arr);echo ' ``` ';` The result : ``` Array ( [0] => chelsea.jpg [1] => arsenal.jpg ) ``` I want to change the key. So the result to be like this : ``` Array ( [cover1]...
2018/03/01
533
1,731
<issue_start>username_0: Navbar is showing my branding, but not showing menu items. Bootstrap 4 dependencies are in right order (Bootstrap 4 CSS -> Jquery -> Popper -> Bootstrap JS). Meta viewpoint referenced in . HTML: ``` ![](icon.jpg) Back to Course * [Home (current)](#) * [Link](#) * [Disabled](#) ``` CSS:...
2018/03/01
1,140
4,442
<issue_start>username_0: I want to change user status using code. I tried lots of codes but nothing worked for me. Can any one provide full working example of this. Some time i am getting this error CognitoIdentityCredentials is not authorized to perform: cognito-idp:AdminDisableUser on resource ``` var cognitoidenti...
2018/03/01
1,108
4,446
<issue_start>username_0: So, when we reference a committed page for the first time, one page in physical memory is located and those addresses (one in virtual address space and one in physical address space) are connected in page entry. Now, since every application has to use virtaul memory and go through that layer, i...
2018/03/01
1,043
4,034
<issue_start>username_0: [GIF PART 1](https://i.stack.imgur.com/xHuUW.gif) [GIF PART 2](https://i.stack.imgur.com/cuJnw.gif) Hi guys, does anyone know how to do make a bootstrap modal popup exactly like the one on the GIF image above, I tried already but it didn't work. **My JS Code:** ```js $('#abtn').click(functio...
2018/03/01
1,461
5,253
<issue_start>username_0: I'm developing my own chatbot for messenger with Dialogflow v2 and the Node.js client SDK. But I've a problem with custom payloads. When I use the console provided by Dialogflow, I have a response which looks like this : ``` { "payload": { "facebook": { "attachment": { "payload": { ... ``` B...
2018/03/01
1,548
5,695
<issue_start>username_0: I'm trying to create an system that can calculate all input given for invoice related calculating. What I'm trying to achieve is when I have multiple text fields (Yes I want to use text fields otherwise I would have used the build in validator for the number field) So when I click out of a t...
2018/03/01
1,477
5,436
<issue_start>username_0: I have been following this guide <https://www.ibm.com/support/knowledgecenter/SSBS6K_2.1.0/installing/install_containers_CE.html> to install ICP in 2 nodes. While everything is going well I get the following error: ``` TASK [master : Waiting for Etcd to start] ********************************...
2018/03/01
1,802
4,636
<issue_start>username_0: I have two (or more but if solved for two, it's solved for any number) 2-by-N matrices which represent points with an x (the first row) and y (the second row) coordinates. The points are always sorted in the increasing x coordinate. What I want to do is I want to merge these two matrices into o...
2018/03/01
675
2,236
<issue_start>username_0: There is enum: ``` enum Foo { Bar, // should cause type error Baz = 'Baz' } ``` Can a type be specified for it to make it string-only enum?<issue_comment>username_1: If you check the generated JS code for your enum, you'll see that it is equivalent to ``` enum Foo { Bar = 0, //...
2018/03/01
569
2,144
<issue_start>username_0: As part of a build process I already use `CopyWebpackPlugin` to copy some files from the source to the built directory. Whilst copying I would also like to change some file names. For example from `test.tsx.snap` to `test.js.snap`. It looks like this should be possible from the docs as they hav...
2018/03/01
424
1,354
<issue_start>username_0: I have an Interface ``` export interface IEmployee{ id: string; first_name: string; } ``` In my employee.service.ts ``` getEmployess():Observable{ return this.\_http.get(this.\_dataUrl); } ``` In my component ``` employees:Array; constructor(private \_employeeService:Employ...
2018/03/01
565
2,195
<issue_start>username_0: I'm working on an application where the concept is that you can 'select' objects before actually placing them. So what I wanted to do was have some low quality objects on a shelf or something like it. When the user selects the object he then can tap to place the high quality version of the obje...
2018/03/01
223
595
<issue_start>username_0: How can I do this with the use of `css`. [![enter image description here](https://i.stack.imgur.com/gGs02.png)](https://i.stack.imgur.com/gGs02.png) This would be the tag: ``` ₱8500 ```<issue_comment>username_1: try this ``` $ 8500 ``` Upvotes: 1 <issue_comment>username_2: You can use ...
2018/03/01
183
586
<issue_start>username_0: I noticed that in the mapping level we are creating the ODBC connection and in the Workflow level we are creating the Relational connection. What are those 2 connections needed for?<issue_comment>username_1: try this ``` $ 8500 ``` Upvotes: 1 <issue_comment>username_2: You can use html tag...
2018/03/01
430
1,657
<issue_start>username_0: I just started programming with python a couple days ago with no prior experience in programming. I've been following tutorials online and decided to challenge myself by making a hangman-esque game. I'm trying to make it so that a guess replaces the position an alphabet in the hidden word but...
2018/03/01
2,257
6,331
<issue_start>username_0: I'm implementing an authorization server with IdentityServer 4. I can protect my API already and issue id, access and refresh tokens using hybrid flow. One requirement I have for my clients is to be able to check on the background if a user is authenticated in the authorization server already o...
2018/03/01
574
2,052
<issue_start>username_0: I have YouTube video embedded on my webpage. Can I control it by using JS? I need to retrieve total length of the video and get events when user changes trackbar position (or position changed during playback).<issue_comment>username_1: When it comes to youtube embeds the Youtube Iframe Player ...
2018/03/01
528
1,890
<issue_start>username_0: Suppose you have a set of pointers (yeah...) : ``` std::set myTypeContainer; ``` Then suppose that you want to search this set from a const method of SomeType: ``` bool SomeType::IsContainered() const { return myTypeContainer.find(this) != myTypeContainer.end(); } ``` This doesn't wor...
2018/03/01
2,159
7,351
<issue_start>username_0: I'm having problems converting a grayscale array of ints (int32[,]) into BMP format in C#. I tried cycling through the array to set pixel color in the BMP, it does work but it ends up being really slow and practically unusable. I did a lot of googling but I cannot find the answer to my question...
2018/03/01
578
1,874
<issue_start>username_0: I have an array of strings `obj[] values`, but trying to use equality seems to be different than what I might expect, can someone clarify this? content of values is ["train","train"]; ``` var first = values.First(); values.Skip(1).All(v => Equals(v, first)) false values.Skip(1).All(v => v.Eq...
2018/03/01
1,617
4,329
<issue_start>username_0: I'm looking for a beauty-easy to read-smart SQL query (SQLite engine) to agregate data in column. It is more easy to explain with an example : Data table : ``` id elapsedtime httpcode 1 0.0 200 2 0.1 200 3 0.3 301 4 0.6 404 5 ...
2018/03/01
1,365
3,613
<issue_start>username_0: I’m using react native share, to share text content. The issue is multiple windows are opened over each other on clicking share button multiple times. Even I have disabled button on share click but it is of no use as well. The standard way is if share window is already open, on clicking the s...
2018/03/01
1,908
5,328
<issue_start>username_0: I'm trying to select the recipients email addresses (**column C**) with a fixed range *C6:C11*, based on a criteria (**MainR or CC**) defined in (**column D**) fixed range as well *D6:D11* which will then either add them as a main recipient or as a carbon copy recipient. I have code which wor...
2018/03/01
589
2,017
<issue_start>username_0: I'm trying to login with this code, however I always get a negative when I try it ($errorMessage). I'm basicly trying to check the Username and Password to an existing database of *vanilla forums*. I got a User with only SELECT (read) access to the specific TABLE. I don't get what exactly this ...
2018/03/01
651
1,961
<issue_start>username_0: I need my Google Firebase Database Data converted to a JSON string. [![enter image description here](https://i.stack.imgur.com/oPDTc.png)](https://i.stack.imgur.com/oPDTc.png) The desired outcome should be as follows: ``` var dataSet =[ {arr:"test",des:"DMM",eta:"17 Feb 2018 11:00",etd:"17 F...
2018/03/01
1,667
6,986
<issue_start>username_0: I'm trying to print pdf file directly on printer, which supports postscript. Unfortunately printed document is scaled (little smaller than print from adobe reader, with scaling mode - "Actual size"). Is there any way to print it without scaling? Here is a code, which I'm using to print: ``` ...
2018/03/01
835
3,206
<issue_start>username_0: Why does k8s secrets need to be base64 encoded when configmaps does not? When creating a configmap you simply do somthing like this: ``` apiVersion: v1 kind: ConfigMap metadata: name: my-configmap data: SOME_KEY: a string value ``` But when you want to create a secret you have to `echo...
2018/03/01
580
2,317
<issue_start>username_0: I have built a pipe, but I can't tell why angular can't find it. My top module is my shared.module This module is in turn integrated by browser.module or server.module. Furthermore, I have a user.module as the lowest level, where all the user's components come in. if I define my pipe in us...
2018/03/01
807
2,446
<issue_start>username_0: I have a dataframe in which a column has some missing values. I would like to replicate the rows with the missing values N times, where N is the length of a vector which contains replacements for the missing values. I first define a replacement vector, then my starting data.frame, then my desi...
2018/03/01
737
2,536
<issue_start>username_0: Existing Data. EMP001 has two records in 2017. I want to convert to 1 line where column Sum(A) and Column split into two columns. ``` EMP_NO | A | B | C --------|-----------|-----------|--------- EMP001 | 2000 | 200 | 2017A EMP001 | 3000 | 39 | ...
2018/03/01
395
1,460
<issue_start>username_0: I used ``` setTheme(R.style.Theme_AppCompat); ``` to set my app theme darker. Now I run into that issue that the selected item in my navigationbar is relativly dark, so that users can hardly see it. Is there anything that I can use in my style to get the selected navigation item in another ...
2018/03/01
625
1,759
<issue_start>username_0: I got to table need to combine into 1 ``` Table 1 : | ID | FEEDBACK_VALUE | | 1 | EMAILS | | 2 | WALK IN | | 3 | SMS BLAST | | 4 | SOCIAL MEDIA | | 5 | NEWSPAPER | | 6 | FAMILY & FRIEND | | 7 | OTHERS | Table 2 : | ID | FEEDBACK_ID | | 1 | ...
2018/03/01
465
1,841
<issue_start>username_0: As the question suggests, I need to perform Load Test on the API Gateway Resources with 1 million RPS. Apache JMeter is a very good tool for Load Testing. But I think it won't be possible to simulate such a huge load from a single machine. In that case, JMeter Clusters could be useful. But sett...
2018/03/01
487
1,922
<issue_start>username_0: In Effective Modern C++, item 17 (**Understand special member function generation**), <NAME> said that the generated special move member functions (move constructor and move assignment operator) *perform “memberwise moves” on the non-static data members of the class*. > > The move operations ...
2018/03/01
384
1,623
<issue_start>username_0: I want to build an .aar library and proguard classes, but my library proguard file doesn't work, and I can see clear classes. Here is my proguard file: ``` android { buildTypes { release { minifyEnabled true useProguard true proguardFiles getDefaultPro...
2018/03/01
653
2,442
<issue_start>username_0: I have a react component which is loaded on routing I need to access a parameter from the url inside the components constructor How do I do it? can I access it like this: ``` class CustomCoponent extends React.Component { constructor(props,{match}) { } } ```<issue_comment>username...
2018/03/01
1,356
5,044
<issue_start>username_0: I'm facing problem while initializing a third party JavaScript API (iHUB) inside RUN method of AngularJS. Currently the code is behaving in asynchronous mode. I want IHUB to first initialize and then AngularJS route/controller should get called. (Is it possible to make utilization of the callba...
2018/03/01
367
1,272
<issue_start>username_0: My situation looks like this - I'm working on postgres database, with ERP application with huge SQL queries and I can't even put this query here, but it is not the problem I only need an advice. * I have query wchich gets informations about order number, date and so on. There are to schemas g...
2018/03/01
334
1,034
<issue_start>username_0: I want to find an instance of a class, where an attribute has a certain value: ``` import numpy as np import inspect import matplotlib.pyplot as plt class Frame(): def __init__(self, img, idx): self.image = img self.idx = idx for i in range(10): img = np.random.randin...
2018/03/01
955
4,096
<issue_start>username_0: I have been locating XCUIElements using this method: ``` app.staticTexts["Full Label Text"] ``` But what if I only know part of the label text? Part of the label text is generated dynamically (e.g. "Item #1", "Item #2", etc.) so I would like to search for it by finding an element that contai...
2018/03/01
988
3,501
<issue_start>username_0: I am reading *Hackers and Painters* and am confused by a problem mentioned by the author to illustrate the power of different programming languages. The problem is: > > We want to write a function that generates accumulators—a function that takes a number *n*, and returns a function that tak...
2018/03/01
886
3,138
<issue_start>username_0: I've got a list of string values like `'123','456','789'` and so on. This list can be very long with a few thousand items. So I have to split it in blocks of max. 750 items. One idea is to write an own functoid which split in and returns a loopable list. Maybe it is a little bit easier and i...
2018/03/01
1,361
3,803
<issue_start>username_0: Context: We are in a library. We wrote two structures: Livre (book in english) with titre (title), nombre\_pages (number of pages) and statut (borrowed already or not? ) Lecteur (the reader) (nom = name; prenom = firstname; nb\_livres = number of books the reader has booked already; and a stru...
2018/03/01
550
1,825
<issue_start>username_0: I am trying to get a little test program running, but now I am stuck at a very weird point. I think it is a simple problem with the structure handling but I cannot find the reason for the error. I have marked in the short example at the bottom of the post the lines with error. main.c ``` #inc...
2018/03/01
875
3,620
<issue_start>username_0: I become crazy, I tried all possible combination of various test Runners and possibles annotation for testing, the nearest solution of my need is following : ``` @RunWith(SpringRunner.class) @SpringBootTest(classes = {MyApplication.class}) @WebAppConfiguration public class MyControllerTest { ...
2018/03/01
1,006
3,867
<issue_start>username_0: Struggling with an issue. Need to download a file from a webportal. Now i managed to do that using SSIS script task. Here comes the real issue. Now when i download the file as .xls. Downloaded file appears to be Excel 97-2003 Worksheet but actually it isn't. It's an XML Spreadsheet 2003(.xml)....
2018/03/01
696
2,554
<issue_start>username_0: What is difference between plus() and put() methods in kotlin map? I have created the map and use plus() method to add my key value pair but when I print the map, I can't find the added values. And then I have moved to put(). What is the behaviour of plus() method?<issue_comment>username_1: A...
2018/03/01
599
1,901
<issue_start>username_0: ``` $job_types = DB::table('jobs')->pluck('job_type')->unique(); ``` Upper code return a collection as below. [![enter image description here](https://i.stack.imgur.com/UZmXN.png)](https://i.stack.imgur.com/UZmXN.png) Also below Laravel Blade code make select list with upper collection. ``...
2018/03/01
3,559
8,597
<issue_start>username_0: I´m working on live search but I didn´t understand where I did mistake when I enter any key images became hidden filter its not working. I want show the searched value as a card view which I made in my `html` file. I´m working almost 1 day but I didnt get the answer as I want. ```js jQuery(doc...
2018/03/01
406
1,371
<issue_start>username_0: im use the following css code for a div container ``` /*media all*/ .rent-a-home-center { position: absolute; top: 50%; left: 50%; transform: translate( 50%, 50% ); text-align: center; } ``` The Css works for all browsers but not for Internet explorer. The div with the f...
2018/03/01
3,018
10,780
<issue_start>username_0: I get a json object with different text. I arrange the obtained pieces one by one with the following function `addText(content: number.content!, bottomAnchor: anchor!)`: ``` func addText(content: String, bottomAnchor: NSLayoutYAxisAnchor) -> NSLayoutYAxisAnchor { let shortContentPost: UIL...
2018/03/01
1,052
3,901
<issue_start>username_0: We have implemented sending emails via graph api. In microsoft app <https://apps.dev.microsoft.com> we have created application and for this application set permission 'Mail.Send'. For authentication we are using way "Get access without a user". We are receiving token via this url: <https:...
2018/03/01
1,276
5,248
<issue_start>username_0: For my Android project, I need global singleton Cache object to access data about a user through the app. A problem occurs when an app goes into the background and after some time of using other apps I try to open app variables in Cache objects are null. Everything is okay when I kill the app...
2018/03/01
1,151
3,817
<issue_start>username_0: I have installed Maven and I did all steps, but when I tried to execute it, I see in cmd this error -> Error: -classpath requires class path specification My environment variables are these: > > JAVA\_HOME C:\Program Files\Java\jdk-9.0.4 > > > M2 C:\apache-maven-3.5.2\apache-maven\src\bin ...
2018/03/01
862
3,101
<issue_start>username_0: I'm using sequelize with typescript. I have three tables, `WfProjectObject` is joined with `WfProject`, and `WfStep`, joined with `WfProject`. I want to include `WfStep` with `WfProject` , and not `WfProjectObject` ``` sequelize.models['WfProjectObject'].findOne({ where: { o...