date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/02/28
801
2,764
<issue_start>username_0: I have two images, one grayscale (Img1Gray) and one coloured (Img2RGB). The coloured image is mostly zero, with several bright coloured regions. I try to superimpose the coloured image on top of the grayscale image, such that the resulting image would look like the grayscale image everywhere wh...
2018/02/28
1,024
3,592
<issue_start>username_0: Here is what I would like to prevent: ``` class Dep; //for "dependency" class C { private: const Dep& dep_; //or std::shared_ptr if I want to guarantee proper lifetime of dependency public: C(const Dep& dep) : dep_(dep){} } Dep d(Arg arg); C obj(d); //obj can't change d d.some_n...
2018/02/28
915
3,170
<issue_start>username_0: Having a sheet name say `Sheet1`, I want to have an array of all formulas used in cells of that sheet. Something like this: ``` Excel.run(function (ctx) { var formulas = getAllFormulasOfSheet(ctx, 'Sheet1') // or getAllFormulasOfSheet(ctx, 'Sheet1').then(function(result){ v...
2018/02/28
917
3,334
<issue_start>username_0: I am using form\_login in two different firewalls, one for user, one for admin. I want this to only affect the user one. What would be the right implementation to have recaptcha on login form? Some things I'm considering: * New login form factory which extends the symfony FormLoginFactory, w...
2018/02/28
913
3,147
<issue_start>username_0: I would like to parse this string : ``` var str1 = `{ sayHello: function() { console.log('hello'); }, content: "I'm a content", }`; ``` and transform it to : ``` var str2 = { sayHello: function() { console.log('hello'); }, content: "I'm a content", }; ``` I already tes...
2018/02/28
495
1,577
<issue_start>username_0: I have a JS file that is already connected to my HTML template. And I have an input form which I want it only accept Numbers 0-9, with an exact number of characters of 5 numbers. So I placed the function: ``` function validate (input) { if($(input).attr('type') == 'text' || $(input).attr('n...
2018/02/28
302
917
<issue_start>username_0: I am following <https://www.w3schools.com/sql/sql_create_table.asp> to create new table AS and my task is to add foreign key into it. It fails and gives syntax error while I try to do it. ``` CREATE TABLE movie_genre AS SELECT movie.movie_id, movie.genres FROM movie FOREIGN KEY (movie_id) REF...
2018/02/28
1,483
5,182
<issue_start>username_0: I am using Node as backend server and Angular 4 as frontend. I am trying to send the result of query through soap protocol. The function works fine but with CORS PLUGIN installed in the browser.But how can I solve it without those plugins. I have searched for some solutions and I have installe...
2018/02/28
857
2,976
<issue_start>username_0: In one of our NaviServer/OpenACS instances we often run into the following error. After a restart, the error is gone, but will reappear (under circumstances that I have not understood yet). It seems to me as if some code would mess up the message catalog or the locale used/seen by the clock.tcl...
2018/02/28
771
2,662
<issue_start>username_0: I want to execute a transition in JIRA via Jenkins. The Jira Issue Updater is bugged with the affects version so I tried a curl. This worked out very well: ``` curl -D- -u user:pw -X POST --data {\"transition\":{\"id\":\"71\"}} -H "Content-Type: application/json" https://jira.com/rest/api/2/i...
2018/02/28
1,182
3,783
<issue_start>username_0: I use Google Colaboratory then I want to save output images in my Google Drive or SSD, HHD but its directory is "/content" ``` import os print(os.getcwd()) # "/content" ``` so is it possible to change path (HDD, SSD, googledrive)?<issue_comment>username_1: Take a look at the [example o...
2018/02/28
1,502
4,983
<issue_start>username_0: I have a dockerized GitLab and GitLab Runner installation, with following `docker-compose.yml`: ``` version: "3" services: gitlab: image: gitlab/gitlab-ee:latest container_name: gitlab restart: always hostname: gitlab ports: - "45022:22" - "45080:80" - ...
2018/02/28
335
1,232
<issue_start>username_0: Is there any way to override ctrl-s ctrl-q implementation on c ? I want to make a shell where when you press ctrl-s it freezes the program. I've seen `int tcflow(int fildes, int action);` but how can I trigger this one when someone presses ctrl-s?<issue_comment>username_1: I had the same proble...
2018/02/28
646
2,248
<issue_start>username_0: I am writing a sample python program in linux system. I am using [tmux](https://linux.die.net/man/1/tmux) to create a session and execute another script within the tmux-session. I would like to get the stdout and stderr out of the tmux session to the parent script but that somehow does not work...
2018/02/28
525
1,832
<issue_start>username_0: ``` EVENT = { 'summary': 'Dinner with friends', 'start': {'dateTime': '2015-09-15T19:00:00'}, 'end': {'dateTime': '2015-09-15T22:00:00'}, } ``` I have this dictionary. I would like the manipulate or edit the value of date time in the start list. How would i access it and chang...
2018/02/28
853
2,646
<issue_start>username_0: so i have this kind of class from my user controller ``` public function index() { $table_data = User::with('CU','pus')->select('id','id_cu','id_pus','name','username','gambar','status','created_at')->filterPaginateOrder(); return response() ->json([ ...
2018/02/28
930
3,637
<issue_start>username_0: I'm trying to get access to child class methods and fields, when creating lambda, which is used in parent class. Code explains it more easily: ``` class Parent { List> processors; private void doSmth() { for (Processor extends Parent processor : processors) { processor.doJob(this); //t...
2018/02/28
351
1,138
<issue_start>username_0: I'm trying to get the value of last `####` element of a div. I have tried with all the solution I found on web but nothing is working here. ``` #### ``` and JQuery ``` var texter = '#### ' + message + ' ' + ' '; $('#example').append(texter); //not working alert($('#example').child...
2018/02/28
708
2,616
<issue_start>username_0: I am trying to add a custom font following the "Fonts in XML" tutorial on this [site](https://developer.android.com/guide/topics/ui/look-and-feel/fonts-in-xml.html). I followed the tutorial to the letter and checked many times to find something I missed but I just can't see it. The font I added...
2018/02/28
1,063
3,942
<issue_start>username_0: I would like to be able filter through the columns of a datagrid but don't know how to fix the select statement this is as far as I could get ``` SELECT ClientID, FirstName, LastName, BirthDate, StreetName, City, State, ZipCode, CellPhone FROM dbo.Client CASE WHEN @ColumnName...
2018/02/28
1,428
6,141
<issue_start>username_0: I've gone through the docs of Provider and Resource of Django OAuth Toolkit, but all I'm able to find is `how to 'authenticate' a user`, not how to `register` a user. I'm able to set up everything on my machine, but not sure how to register a user using username & password. I know I'm missing ...
2018/02/28
637
2,467
<issue_start>username_0: I'm trying to get the current logged in user's id token for aws cognito in android. I found this example: session.getIdToken().getJWTToken() where session is a CognitoUserSession object I can't seem to figure out a way to get the current cognitousersession after the login call has been made. ...
2018/02/28
259
1,077
<issue_start>username_0: [![enter image description here](https://i.stack.imgur.com/w6D1W.jpg)](https://i.stack.imgur.com/w6D1W.jpg) Is there a way for an app **running in the background** to display/schedule this kind of alert dialog? EDIT: I know about push notifications, I'm looking for something more intrusive.<i...
2018/02/28
867
3,193
<issue_start>username_0: I using jquery library with CodeIginter, but the returned data is html code of the view. It should return the output of method in controller. Here is my ajax code: ``` $("#btn-delete").click(function() { $.ajax({ type: "POST", url: "edit_questions/delete_question", data: { ...
2018/02/28
3,989
14,415
<issue_start>username_0: I have a basic SpringBoot app. using Spring Initializer, JPA, embedded Tomcat, Thymeleaf template engine, and package as an executable JAR file. I have this method defined in a Repository that extends from ``` CrudRepository, PagingAndSortingRepository { ``` This is the method ``` List get...
2018/02/28
774
2,660
<issue_start>username_0: Having a master DocBook "book.xml", I want to include several DocBook articles, say x.xml and y.xml. (I do this by using ``` ``` Those articles x and y are generated from OxygenXML and document XSD schema (x.xsd and y.xsd). Inside the different schema, I have the same element name (say "A")...
2018/02/28
1,063
3,282
<issue_start>username_0: I'm going to use the HelixToolkit.SharpDX with VS2017 in my Windows 10 workstation, when I attempt to build the solution, it will prompt the Assertion Failed error with "No fxc.exe found". I have checked the installation option, Windows SDK has been included, nand I have downloaded and install...
2018/02/28
771
2,403
<issue_start>username_0: I have alt array like this : ``` $alt = array('chelsea', 'mu', 'arsenal'); ``` I have photoList array like this : ``` $photoList = array( array( 'id' => 1, 'name' => 'chelsea.jpg', 'alt' => '' ), array( 'id' => 2, 'name' => 'mu.j...
2018/02/28
711
2,990
<issue_start>username_0: I have an Android application that extensively uses PopupWindows. I've found that when the layouts of the contents of the PopupWindow use WRAP\_CONTENT the dialog will only grow to a specific width before it begins truncating the content. I've traced this down to a config.xml dimension: ``` 58...
2018/02/28
587
1,607
<issue_start>username_0: There are as many as 1440 files in one directory to be read with Python. File names have a pattern as ``` HMM_1_1_.csv HMM_1_2_.csv HMM_1_3_.csv HMM_1_4_.csv ... ``` and for `HMM_i_j_.csv`, `i` goes from 1 to 144 and `j` goes from 1 to 10. How can I import each of them into a variable named...
2018/02/28
484
1,768
<issue_start>username_0: I saw for example in the Dockerfile of the postgres image (<https://github.com/docker-library/postgres/blob/master/10/Dockerfile>) that at the end the startup of the container is defined like this: ``` ENTRYPOINT ["docker-entrypoint.sh"] EXPOSE 5432 CMD ["postgres"] ``` If I understand this ...
2018/02/28
475
1,576
<issue_start>username_0: im tryng to filter my array of objects so i get only objects that have filled properties, but for some reason i get undefined. This is how the array looks like [![enter image description here](https://i.stack.imgur.com/6WJ3D.png)](https://i.stack.imgur.com/6WJ3D.png) this my filter function ...
2018/02/28
7,341
15,068
<issue_start>username_0: I have two tables (they are defined below and you can use the SQL below to build them) ``` IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'ETab') DROP TABLE ETab; GO CREATE TABLE ETab ([MRN] varchar(20), [LSPEC] varchar(2), [ADT] DATETIME, [SDT] DATETIME,...
2018/02/28
1,052
3,332
<issue_start>username_0: I was working on a simple python turtle module game when I encountered a problem. The game's point was for you(a red square) to dodge an obstacle(blue circle). Every time the blue circle reached the bottom of the screen it was supposed to reset to the top. When this comes to happen, the circle ...
2018/02/28
1,122
4,846
<issue_start>username_0: I have problem when I'm trying to get httpcontext from IHttpContextAccessor field is always null in class. There is my startup.cs ``` public void ConfigureServices(IServiceCollection services) { services.AddMvc(); services.AddDistributedMemoryCache(); services.AddSingleton(); se...
2018/02/28
1,048
3,906
<issue_start>username_0: Often I'll have little functions that do something. e.g. save\_csv(), show\_plot(), and then larger functions which do a bunch of stuff and optionally call the little functions. What's a decent naming convention for this to differentiate e.g. `save_csv()` as a function, and `save_csv` as a flag...
2018/02/28
637
1,826
<issue_start>username_0: I have a file with content like below, `2018-02-28 10:00:00,A1, A2 2018-02-28 10:05:00,A3, A4 2018-02-28 10:10:00,A5, A6 2018-02-28 10:00:00,A7, A8` Now I would like get all the file content (as a different file) from date/time greater than `2018-02-28 10:05:00`? I am able to check modifi...
2018/02/28
528
1,839
<issue_start>username_0: This question is unique because the error > > ReferenceError: $ is not defined comes from the fact that javascript is called in the header but the jQuery is looking inside the parent iframe and don't find it. > > > I got this page: ``` review.php php include 'review_core.php'; ? php...
2018/02/28
317
1,161
<issue_start>username_0: I get some data externally but gets this error because the variable is "empty": > > Undefined property: stdClass::$summary in /Applications/MAMP/htdocs/jobportal/functions.php on line 68 > > > I have tried to build a function to help me: ``` $summary = convert_empty($user->summary); fun...
2018/02/28
1,986
5,292
<issue_start>username_0: I'm a teacher, teaching basic HTML and CSS in a high school. Last week we discussed and practice lists, and this week we are on the topic of div classes. I'm trying to put a list into a div, while using `*` to eliminate unwanted space within and around the div. By doing this, the lists are no l...
2018/02/28
777
2,950
<issue_start>username_0: I'm trying to cycle through objects and update a variable each time, I have a Player class that has all of the following variables: ``` Name, s1 ,s2, s3,...., s11, total ``` I want to go through each variable from the start to the end and adding the score at each go for each player (all the ...
2018/02/28
436
1,403
<issue_start>username_0: Is it possible to change the style of a vertical scrollbar? I would like to remove both arrows up and down. ``` .msg-container-base { border: 1px solid #ddd; background: white; overflow-x: hidden; } ```<issue_comment>username_1: It is not recommended to play with the style of scrollbar...
2018/02/28
965
3,749
<issue_start>username_0: I am currently learning Java programming using an Udemy course (Complete Java Masterclass by <NAME> to be exact) and am learning ArrayList. I am trying to program an app to behave like an mobile phone, in which it can contain contact numbers. Here is my main src(or what do you call it?), minu...
2018/02/28
935
2,526
<issue_start>username_0: I am currently try to use pre-defined strings in order to identify multiple column names in R. To be more explicit, I am using the `ave` function to create identification variables for subgroups of a dataframe. The twist is that I want the identification variables to be flexible, in such a mann...
2018/02/28
730
2,483
<issue_start>username_0: Can anyone explain why the copy constructor here is called two times? ``` class A { int i; public: A(){cout<<"IN constr"< ``` When i run the code out put is: ``` IN constr in copy in copy ``` I can understand one time when it copies `a` into the variable `var`, but when it ge...
2018/02/28
963
3,292
<issue_start>username_0: I would like to measure time a user needs to take a decision (or just pressing the "submit" button in this case). In the python itself I normally measure the time of code with ``` start_time = time.clock() time_diff = start_time - time.clock() ``` However, in the web application I can't wrap...
2018/02/28
888
2,938
<issue_start>username_0: I have a file with multiple occurrences of an XML element. I want to grep for a pattern *only in the first element*. I want to use `grep` because I need to use this as the condition of an `if` check in a bash script. NOTE that unfortunately, I am not guaranteed that the XML element(s) are conta...
2018/02/28
732
3,057
<issue_start>username_0: I have custom data object with predefined entries. I don't want user to delete or add any new entries from GridField's edit form. Is there a way to remove those two buttons form ModelAdmins GridField edit form? Using: Silverstripe 3.6<issue_comment>username_1: Ok, i got it my self. If you want...
2018/02/28
966
3,596
<issue_start>username_0: Is there a "best" way of doing computed fields that can be queried? For example: ``` from django.db import models class Person(models.Model): given_name = models.CharField(max_length=30) family_name = models.CharField(max_length=30) NAME_ORDER_CONVENTION_CHOICES = ( # "E...
2018/02/28
359
1,261
<issue_start>username_0: when I create solr core: ``` bin/solr create -c my_core ``` I get the following error: ``` ERROR: Solr requires authentication for http://localhost:8983/solr/admin/info/system. Please supply valid credentials. HTTP code=401 ``` even I had logged in into solr admin panel. is there any way ...
2018/02/28
383
1,289
<issue_start>username_0: One of the entries in my `config/routes.rb`: ``` get "enumerators/job_type", to: "enumerators#job_type" ``` As you can observe, the URL path and the method name that it corresponds to in the controller is the same. Does Rails provide a shorthand in such cases?<issue_comment>username_1: Yep! ...
2018/02/28
988
3,493
<issue_start>username_0: i have javascript with name something.js. in js file i have funtion like this ``` $(document).ready(function() { tampilInterval(); $('#mydata').html(); function tampilInterval() { $.ajax({ type : 'ajax', url:$("#baseurl").val(), dataType:"json", met...
2018/02/28
790
2,079
<issue_start>username_0: I have a list of identifiers saved as a character variable (uid\_car) I have a list of files (file\_list) with an identifier as the prefix to file name(eg 1000\_\*.file) uid\_car<-1000,1002,1004....len(170) file\_list<-1000\_01\_.file,1001\_02.file,1003\_02.file,1002\_01.file,1004\_01.file...l...
2018/02/28
509
1,552
<issue_start>username_0: I want to use `cv::threshold` function because it is well optimized rather than looping through the whole image myself.. however it doesn't have a thresholding to a minimum value. That the options available: [![enter image description here](https://i.stack.imgur.com/mzQ4T.png)](https://i.stack...
2018/02/28
583
1,980
<issue_start>username_0: I need to get the number of records at current page. I am using will\_paginate gem for pagination. When trying to get the collection.count I am getting total number of records? ``` @collection = User.paginate(page: params[:page], per_page: 10).all ``` when I try to get the count of collectio...
2018/02/28
900
3,090
<issue_start>username_0: I have a DataFrame `df` which has this schema: ```none root |-- person.name: string (nullable = true) |-- person: struct (nullable = true) | |-- age: long (nullable = true) | |-- name: string (nullable = true) ``` When I do `df.select("person.name")` I obviously fetch the sub-field...
2018/02/28
1,083
3,202
<issue_start>username_0: In the package shapes there is a function called ``` estcov ``` that uses some method to give mean of tensors, but this is not the point of the question. Everytime this function is called appears a plot, i want to stop it plotting without touching the code of the function,there is some tric...
2018/02/28
1,968
6,643
<issue_start>username_0: I currently want to create a installer for a VS2017 project. This project has as prerequisite vcredist\_x64. To create an installer I have installed: - ClickOnce Publishing (via VS2017 installer) - Microsoft Visual Studio 2017 Installer Projects (VS2017 Addon by Microsoft) Now I created a set...
2018/02/28
1,170
4,620
<issue_start>username_0: In EXTJS 4/5 you could create an inline function which you could then use as a grid column renderer, like this ``` function myColumnRenderer(value, metaData, record, rowIndex, colIndex, store){ //do something with the data and return return value; } ``` and in your grid's column defi...
2018/02/28
498
1,762
<issue_start>username_0: At times, `gcc` yields the following error message: ``` error: 'class X' has no member named 'Y'; did you mean 'Z'? ``` I have seen `gcc` correctly guess `Z` when `Y` contains some simple typo, *e.g. wrong lower/upper case*, but also when there are some missing/extra character(s) in the name...
2018/02/28
542
1,962
<issue_start>username_0: The if statement is as follows: ``` for line in result if result < 0 and test == 1: test = 0 print('patient result ', (TestAmount/SMAs.amount[line] - 1)) ``` There are a sequence of these but the issue is in the if statement. When I run the code I get an error saying `"V...
2018/02/28
479
1,816
<issue_start>username_0: I am able to add participant using composer-rest-api and it is possible to upload card through composer-rest-api by rest API wallet. Is it possible to create Card through composer-rest-api? I checked this answer [Hyperledger Composer Web application user authentication](https://stackoverflow....
2018/02/28
1,134
3,794
<issue_start>username_0: I have created a pipeline in Azure data factory (V1). I have a copy pipeline, that has an AzureSqlTable data set on input and AzureBlob data set as output. The AzureSqlTable data set that I use as input, is created as output of another pipeline. In this pipeline I launch a procedure that copies...
2018/02/28
569
1,553
<issue_start>username_0: I am getting a list of quoted strings back from AWS, and I would like to isolate one of them into a parameter. the command I am using is: ``` allelb=$(aws elb describe-load-balancers --query 'LoadBalancerDescriptions[].LoadBalancerName') && echo $allelb ``` And this is the output I am gett...
2018/02/28
567
2,125
<issue_start>username_0: I'm trying to create a button inside of a Microsoft Access 2016 database for inventory tracking that, on click, displays an InputBox asking for the Serial Number, UDID, and/or IMEI of the device in question. I have an SQL query embedded in the private sub, code below: ```vb Private Sub cmdInve...
2018/02/28
831
2,942
<issue_start>username_0: I want to edit this text: ``` Aenean vel sem bibendum, eleifend odio a, dictum nibh. The third word in the above line is Morbi eget est vitae quam ultricies porta vitae quis nunc. The third word in the above line is Praesent accumsan ex a laoreet cursus. The third word in the above line is ...
2018/02/28
818
3,736
<issue_start>username_0: Specifically in reference to: <https://blogs.msdn.microsoft.com/oldnewthing/20140627-00/?p=633/> I'm a new C++ programmer and I'm currently learning about undefined behavior and its effects on a program. I was linked specifically to the above blog, which says that when undefined behavior occur...
2018/02/28
1,295
3,852
<issue_start>username_0: I need to convert a program from C++ to C, i.e. I need the same program but in C. I used member functions for a class in C++ but I just know basic level C. I know this can be done using structures, but how do I implement the class functions for Structure in C? Here is the code. This is...
2018/02/28
525
1,981
<issue_start>username_0: I am trying to debug an error with tensorflow. When I import tensorflow I get the following error > > import tensorflow as tf > > > terminate called after throwing an instance of 'Xbyak::Error' > > > what(): internal error > > > Aborted (core dumped) > > > Here are the install detai...
2018/02/28
547
2,052
<issue_start>username_0: I am trying to solve this issue but I could not. I think I called the function incorrectly. Also I would like to know the difference between Custom::generate($r1, $p1, $a1) vs Custom::generate. interesting is I have this code `$c = $this->install();` in the same file but different function and...
2018/02/28
694
1,904
<issue_start>username_0: There are two arrays having same length: ``` firstArray = [22, 54, 33, 10]; secondArray = [2, 27, 11, 10]; ``` I want to get a third array as result by dividing each element of the first one to its pair in the second one, in this case the result should be: ``` resultArray = [11, 2, 3, 1]; ...
2018/02/28
639
2,463
<issue_start>username_0: Can some one tell me why when all the File attributes are printed properly why FileReader.readAsArrayBuffer() is returning undefined in the following code ``` Title of the document $( document ).ready(function() { $( "#form" ).submit(function( event ) { event.preventDefault(); var file...
2018/02/28
1,201
4,486
<issue_start>username_0: 'ls' is not recognized as an internal or external command, operable program or batch file. I get this error when I try to glance at the files of my folder. * cmd opened regularly(not as an admin). * I've recently downloaded anaconda for python.During the installation process, there was a time ...
2018/02/28
1,985
6,353
<issue_start>username_0: I want to execute Python script from PHP file. I am able to execute simple python script like: ``` print("Hello World") ``` but when I want to execute following script, nothing happens ``` from pydub import AudioSegment AudioSegment.converter = "/usr/bin/ffmpeg" sound = AudioSegment.from_f...
2018/02/28
577
2,055
<issue_start>username_0: I'm having trouble configuring mod\_wsgi with my current set up. **Redhat 2.6.32** **Installations setup as non-root user:** * Apache 2.2 (attempted to get 2.4, but without access to yum the dependencies were too much) * Python 3.6 I seem to have successfully installed mod\_wsgi into /apac...
2018/02/28
683
2,734
<issue_start>username_0: Might sound like a funny question but I couldn't find an answer elsewhere: does the order of annotations on the fields of an @Entity class matter? I'm talking about annotations like ``` @Column(name = "password") @Length(min = 5, message = "*Your password must have at least 5 characters") @N...
2018/02/28
186
671
<issue_start>username_0: How to transform(rotate) only mask path and not the background image (image fill) ? Right now I get this (image rotates along with svg transform): <https://postimg.org/image/5ifcpkco5/> My SVG below: ```html Text Pattern Fill Example ```<issue_comment>username_1: You could just rotate ...
2018/02/28
461
1,546
<issue_start>username_0: I have seen a lot of examples showing how to parse json strings with VBA-JSON, however I would like to know how to create a JSON object from scratch using this library. I have started with: ``` Set Json = JsonConverter.ParseJson("{}") Json("key") = "value" ``` And this works as expected. ...
2018/02/28
400
1,280
<issue_start>username_0: I have this variable ``` $option_value['price'] = 2 $option_value['price_prefix'] = + $this->data['price2'] = 3 ``` I have tried to make sum from it like this ``` $price = $option_value['price'].''.$option_value['price_prefix'].''.$this->data['price2']; echo $price ``` but the result is ...
2018/02/28
1,101
3,825
<issue_start>username_0: --- **IMPORTANT EDIT:** The main issue here is caused by **hidden merged cells that are causing the entirity of their active range to be selected.** Unless you know a way how to dynamically skip merged cells (in a dynamic range), the it most likely won't help. Have changed the entirity of ques...
2018/02/28
807
2,920
<issue_start>username_0: I have an API that returns JSON like this: ```js [{ "Code": "001", "Name": "xyz", "Members": [{ "FullName": "User1" }] }, { "Code": "002", "Name": "asd", "Members": [{ "FullName": "User2" }] }] ``` I want to replace Name and member in my label ...
2018/02/28
1,511
6,143
<issue_start>username_0: My original video is 10.3 seconds. I want to start cutting from sec 2.7 to sec 5.7 ``` public static void startTrim(@NonNull File src, @NonNull String dst, long startMs, long endMs, @NonNull OnTrimVideoListener callback) throws IOException { final String timeStamp = new SimpleDateFormat(...
2018/02/28
1,215
3,339
<issue_start>username_0: I want to apply a function like this: ``` s[i] = a*x[i] + (1 - a)*s[i-1] ``` where `s` and `x` are both arrays of the same length. I don't want to use a for loop as these arrays are very large (>50 mil). I have tried doing something like this ``` def f(a,x): s = [0]*len(x) s[i] = a...
2018/02/28
261
958
<issue_start>username_0: After I save a file in a z/OS ISPF it becomes like this ``` ****** ***** Top of Data *** 000100 hello ****** ***** Bottom of Data *** ``` My Question is, how do I add more lines to this ISPF editor In other words, how do I make the editor full window again where I can freely type<issue_c...
2018/02/28
1,153
4,248
<issue_start>username_0: I am sorry to bother with such a simple question, but I decided to learn CTE recursive queries and I am unable to get my query work even after scoping many sources and threads. So I am humbly asking for pointing out my mistake(s). Here is a part of table I am querying: ``` ID Container...
2018/02/28
1,065
3,895
<issue_start>username_0: I am planning to deploy an application in my kubernetes-clustering infra. I pushed image to dockerhub repo. How can I pull image from dockerhub?<issue_comment>username_1: Kubernetes run `docker pull pseudo/your-image:latest` under the hood. `image` field in Kubernetes resources is simply the do...
2018/02/28
1,212
4,306
<issue_start>username_0: I'm using macosx/Sierra, and I want to get write permissions in the `/System/Library/CoreServices` folder. I set myself to root via `sudo`, and all the directories in the tree have `drwxr-xr-x` permissions, but I still can't write in that directory. ``` % sudo -s # cd /System/Library/CoreServi...
2018/02/28
720
2,209
<issue_start>username_0: I have files with the following structure: ``` { "function": "ComAl_Set_nad_crtl_xcall_state", "timeStamp": 1488500329974, "Param1": "SIG_NAD_XCALL_ATTEMPTS_COUNT", "Value1": "2" } ``` These JSON files are created by some functions which I have in my program. But I have an is...
2018/02/28
1,773
6,604
<issue_start>username_0: In Firebase Realtime Database, it's a pretty common transactional thing that you have * "table" A - think of it as "pending" * "table" B - think of it as "results" Some state happens, and you need to "move" an item from A to B. So, I certainly mean this would likely be a cloud function doin...
2018/02/28
1,503
5,726
<issue_start>username_0: I am trying to create a VSTO in office 365. Ideally NewMailEx delegate is used to handle the incoming messages. But the event is not being fired after receiving a new email in Office 365. ``` this.Application.NewMailEx += new Outlook.ApplicationEvents_11_NewMailExEventHandler(Application_NewMa...
2018/02/28
801
3,232
<issue_start>username_0: I was having trouble using the Android emulator in Visual Studio Community 2017 and I decided to create a blank project to see if it will run. I get this error message when attempting to run it in the Live Xamarin Player: ``` Starting Android Emulator Android_Accelerated_x86_Nougat... Failed t...
2018/02/28
558
1,754
<issue_start>username_0: Is there a way to sort the keys of a JSON using `jq` but keeping keys named "id" as first descendants on all trees? It's nice to have a way to easily compare JSON files to one another and normalizing key order and formatting is a great way to ensure they are easy to match, but sometimes the "id...
2018/02/28
584
2,112
<issue_start>username_0: I want to download a file from the front end. The file is generated in the `TestFlow.generateReport` method. My code runs until the end but it doesn't download anything. It just prints the data to the `console.log`. What am I missing here? My backend controller: ```java @RequestMapping(valu...
2018/02/28
706
2,257
<issue_start>username_0: I need to get this value to my google extension popup constantly or next 10 seconds(with a loop) from a web page which is going to be the current tab. ``` 7:55:37 ``` I have got this far by now; **popup.html** ``` | Time | | --- | ``` **time.js** ``` function getTime() ...
2018/02/28
592
1,964
<issue_start>username_0: I have looked around alot with this problem. I want to get a array of my objects and the id should be the key value. I did this using the PDO::FETCH\_UNIQUE. It almost worked the way I want to. Problem here is that the ID will be removed from the object and will only show as the key value. But...
2018/02/28
668
2,507
<issue_start>username_0: I have two flavors in my app and I want a different `applicationId` for each one. This is what I have: ``` defaultConfig { applicationId "com.mycompany.app" //more stuff } ... productFlavors { firstflavor { applicationIdSuffix '.first' //more stuff } secon...
2018/02/28
851
3,315
<issue_start>username_0: I just started to learn Angular 2/4/5 after working quite some time with AngularJS. I found out Angular 5 to be much more complex (for me). Here is what happened: I wanted to create a CRUD for User. What I did is: 1. Created **app-routing.module.ts** 2. Created 4 components for Create, View, ...
2018/02/28
585
2,131
<issue_start>username_0: ``` @Entity @Audited public class Tag { @Id @GeneratedValue private Long id; private String name; // setters and getters } ``` 1: ``` List tags = sessionFactory.getCurrentSession() .createQuery("from Tag as t where t.name=:name",Tag.class) .setParameter("name", "Mr...
2018/02/28
570
2,024
<issue_start>username_0: I created a program to receive data, recently. And I want to break the loop When I receive a specific data. For example, if I receive "1" to another machine, then my system will regard it as an illegal number, then it will break the loop to stop receiving data. Here is my code in the below, ...
2018/02/28
735
2,934
<issue_start>username_0: On (<https://developer.apple.com/ios/human-interface-guidelines/overview/iphone-x>) Apple tells us that "A full-width button appearing at the bottom of the screen looks best when it has rounded corners and is aligned with the bottom of the safe area..." So I want to round the corners of my but...