date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/15
506
1,629
<issue_start>username_0: On cppreference there is this example (<http://en.cppreference.com/w/cpp/language/user_literal>): ``` void operator"" _print ( const char* str ) { std::cout << str; } int main(){ 0x123ABC_print; } ``` Output: 0x123ABC And I fail to understand what exactly this is doing. First I th...
2018/03/15
570
2,439
<issue_start>username_0: We are using database per tenant logic for our application. We currently need to build the connection string dynamically depending on the currently logged user. We would really like to use the tenant database context as a service (DI). However, the dbcontext initialization is done in the confi...
2018/03/15
620
2,490
<issue_start>username_0: I have a custom `TableViewCell` that contain a `lablel`. I want to check the size of the `label` when the cell is displayed to determine if the text is truncated or not. I found different topic that handle this subject but nothing worked for me. I tried to check the size in `layoutSubviews` ``...
2018/03/15
283
928
<issue_start>username_0: ``` class employee: def _init__(self,name, salary): self.name = name self.salary = salary def printemp(self): print "Name:" , self.name print "Salary:", self.salary emp1=employee('pavan',29) emp1.printemp() ``` Whenever I try to execute this, I am getting the below error: >...
2018/03/15
343
1,221
<issue_start>username_0: I have a few variables ``` var itemCount = 0; var pageCount = 0; var groupCount = 0; ``` Along with those variables, I have three buttons with data attributes that match these three variables ``` ITEM PAGE GROUP ``` What I want to do is each time I click a specific button, it increments ...
2018/03/15
361
981
<issue_start>username_0: Suppose I have an R function: ``` x <- function(x) { x <- substr(x, 1, 1) return(x) } ``` If I run ``` x(abc) ``` I will get ``` [1] "a" ``` In order to allow my function to run a list, i.e. `a = list('aas', 'cvs', 'mmm')` I could use 'lapply' function ``` lapply(a, x) ``` But...
2018/03/15
1,564
5,353
<issue_start>username_0: I am trying to compare two datetime variables in a stored procedure sql server. In the below code snippet `@createdDate` is taken as user input and then comparing with a column of type datetime. I am unable to check the ''='' property ``` set @sqlquery = 'Select v.*, v...
2018/03/15
2,041
7,361
<issue_start>username_0: This is my first question on Stack overflow so thank you in advance for any help/ advice given. I am currently making a "Library Database" using only ASP.Net and C#. It is a university assignment and we are limited to this, Data must be saved and withdrawn using JSON. While i have been able t...
2018/03/15
1,093
4,645
<issue_start>username_0: I want to track how much a scroll is needed for my users in my app. So I would like to count the amount of recyclerview items that have been displayed in a user's screen before he takes some action. Is there a way to calculate this? Maybe working with visible items & scroll position? I am usi...
2018/03/15
468
2,001
<issue_start>username_0: I have a database that's running using local storage in Kubernetes. Whenever I start up the Pod with the database I would like to run a Job that can look at our backups and backfill any data that we have that isn't on the local disk. I was looking at the PostStart lifecycle hook, but that just...
2018/03/15
1,199
4,439
<issue_start>username_0: I have overloaded assignment operator for the class with a 2D array, but in order to do memory management and resizing correct I have to delete previous matrix first, then construct a new one, and only then I can start assigning. ```cpp Matrix& Matrix::operator = (const Matrix& m1){ for (i...
2018/03/15
1,205
4,854
<issue_start>username_0: Hey I am creating a java project. In which I have a insert record frame, on insert frame I have a option to enter father ID and if the user did not know the father id, so I have set a button to find the father id. when the user will click on that button, the new frame will appear and user can s...
2018/03/15
853
2,947
<issue_start>username_0: First of all, I do know about `--keep-index`. This is not what I want because it still stashes *all* changes, but leaves the staged one in the worktree. I would like to only stash the unstaged files, if possible without adding all changes again with `git stash --patch`.<issue_comment>username_1...
2018/03/15
721
2,635
<issue_start>username_0: Where can I find information about Hikari properties that can be modified at runtime? I tried to modify *connectionTimeout*. I can do it and it will be modified in the `HikariDataSource` without an exception (checked by setting and then getting the property) but it takes no effect. If I initia...
2018/03/15
1,214
3,060
<issue_start>username_0: Say I have a dataframe `df`: ``` x y z 0 1 2 3 1 4 5 6 2 7 8 9 ``` I wanna have two new columns that are x \* y and x \* z: ``` x y z xy xz 0 1 2 3 2 3 1 4 5 6 20 24 2 7 8 9 56 63 ``` So I define a function `func` (just for example) that takes either the string `'y'` or the string `...
2018/03/15
315
1,272
<issue_start>username_0: I am getting following error: `Module '".../node_modules/moment/moment"' has no exported member 'default'`when I use `import * as _moment from 'moment'; import { default as _rollupMoment } from 'moment'; const moment = _rollupMoment || _moment;`<issue_comment>username_1: That's because `momen...
2018/03/15
511
1,434
<issue_start>username_0: Wondering if a dictionary, if included in a loop, is cleared when the loop moves on. ``` for x in list: dict_1 = {} do_some_stuff_here: continue ``` Is the dictionary cleared when moving onto the next item in the list?<issue_comment>username_1: Why don't you just check it? ``` ...
2018/03/15
1,399
3,371
<issue_start>username_0: I want to filter dataframe according to the following conditions firstly (d<5) and secondly (value of col2 not equal its counterpart in col4 if value in col1 equal its counterpart in col3). If the original dataframe `DF` is as follows: ```python +----+----+----+----+---+ |col1|col2|col3|col4|...
2018/03/15
799
2,103
<issue_start>username_0: ``` --*-- -***- --*-- ``` bars are blanks ``` print('', '*', ' \n', '***', ' \n', '', '*', '') ``` This is what i made and it doesn't work...I thought ''=blank and since there's comma it's one more blank so there should be 2 blanks as a result? anyway what should i do using only one print...
2018/03/15
1,090
3,239
<issue_start>username_0: How is the boundingbox object defined that takes opencv's tracker.init() function? is it `(xcenter,ycenter,boxwidht,boxheight)` or `(xmin,ymin,xmax,ymax)` or `(ymin,xmin,ymax,xmax)` or something completely different? I am using python and OpenCV 3.3 and i basically do the following on each obj...
2018/03/15
1,220
3,523
<issue_start>username_0: I need to select only the 2018 records from the crdd and schedule date. This is my current query: ``` Select distinct t1.inbound_ship_appointment_id as ISA, t1.STANDARD_CARRIER_ALPHA_CODE as carrier_name, t1.current_appt_start as scheduled_date, t1.WAREHOUSE_ID as FC, t2.carrie...
2018/03/15
498
1,810
<issue_start>username_0: I'm struggling to find a way to execute a function in the main controller when it loads. When the main controller is loaded the first time, I can get that function executed inside `onInit`. But the issue is when user logs out and logs back in the main controller, the method `onInit` does not ge...
2018/03/15
492
1,729
<issue_start>username_0: I have a problem with an update with MongoDB. My schema look like this: ``` Project: { _id: ObjectId(pro_id) // some data dashboard_group: [ { _id: ObjectId(dgr_id) dgr_name: "My Dashboard" dgr_tasks: [ id1, ...
2018/03/15
487
1,977
<issue_start>username_0: I'm want to hide script field from new scripts. (script are shown by default by every script) [![enter image description here](https://i.stack.imgur.com/BRulS.jpg)](https://i.stack.imgur.com/BRulS.jpg) One way is writing `CustomEditor` for our script. but i want faster way do that. without w...
2018/03/15
484
1,471
<issue_start>username_0: I'm doing some comparison with dates, and when I do the following: ``` from_unixtime(unix_timestamp(a11.duedate),'dd-MM-yyyy') < from_unixtime(unix_timestamp(),'dd-MM-yyyy') ``` **returns false** The a11.duedate is 21-02-2018 and is returning false when comparing with today's date. When I...
2018/03/15
616
1,955
<issue_start>username_0: edit: After my plan changed (Bryan saying I could not use the 'select' library for TkInter) I tried using multi-threading and I've typed something which doesn't seem to work: ``` def receive_data(): try: (client_socket, address) = server_socket.accept() print client_socket....
2018/03/15
460
1,462
<issue_start>username_0: I feel like this is incredibly easy to fix, but for some reason it isn't. I want to run a program in linux that opens python file filename.py by writing: > > python3 filename arg > > > but it only works if i write: > > python3 filename.py arg > > > Is there an easy way to run it w...
2018/03/15
2,477
6,588
<issue_start>username_0: How would you solve? Macros: * 1g of protein = 4cal * 1g of carbs = 4cal * 1g of fat = 9cal Calorie limit = **1000cal** initially i get 3 input fields, 1 for each macro split like this. * input for protein value = 100g (40% of cals) * input for carbs value = 100g (40% of cals) * input for ...
2018/03/15
512
1,052
<issue_start>username_0: I have the code below: ``` binance.depth("GTOBTC", (error, depth, symbol) => { console.log(depth.bids); }) ``` This outputs: ``` '0.00003061': 481, '0.00003050': 100, '0.00003047': 330, '0.00003046': 395, '0.00003044': 1000, ``` I would like to loop through this object and store the strin...
2018/03/15
458
1,151
<issue_start>username_0: I have an array ``` myArray = ['A123000','A234000','A456000'] ``` I want to slice out the first 4 characters from each array item, so the output looks like this: ``` ['A123','A234','A456'] ``` I tried this but it doesn't like array - Am I missing an each or something? Help! ``` myArray.s...
2018/03/15
557
1,716
<issue_start>username_0: I am confusing with the "**'iter' was not declared in this scope**" error. ``` #include using std::vector; int main() { vector vec{1,2,3,4,5,6}; for(std::size\_t i,vector::iterator iter=vec.begin();iter!=vec.end();++i,++iter) { //do something } } ```<issue_comment>username_1: It can, ...
2018/03/15
508
1,668
<issue_start>username_0: Have any of you experienced this issue in Acumatica? Adding OrderBy to Select2 in PXProjection attribute has no effect. I checked the SQL query in Request Profiler and the data is sorted by key fields of the DAC.<issue_comment>username_1: It can, but both variables need to be the same type. Th...
2018/03/15
1,164
4,253
<issue_start>username_0: In another [thread](https://stackoverflow.com/a/42760021/9472937) I found a solution for an underline for a *segmented control*. The important line for my problem seems to be this one: ``` let underlineWidth: CGFloat = self.bounds.size.width / CGFloat(self.numberOfSegments) ``` It turns ou...
2018/03/15
435
1,473
<issue_start>username_0: If anyone has done anything like below please help. What I'm looking for is macro that looks at my A2 value and copy that in column D based on value B with "\_"(underscore) after it. [![enter image description here](https://i.stack.imgur.com/aytDN.png)](https://i.stack.imgur.com/aytDN.png)<iss...
2018/03/15
1,527
6,659
<issue_start>username_0: At regular times we want to clean up (delete) records from our production DB (DB2) and move them to an archive DB (also DB2 database having the same schema). To complete the story there are plenty of foreign key constraints in our DB. So if record b in table B has a foreign key to record a in ...
2018/03/15
954
3,740
<issue_start>username_0: Currently I am working on a project using Unity and the Virtual Reality Toolkit (VRTK). I want to log the times of the grabbed objects (How long the user grabs an object). So far I got this: ``` using System; using System.Linq; using System.Text; using System.IO; using System.Collections; usi...
2018/03/15
631
1,864
<issue_start>username_0: I met this problem when I was compiling the Android 7.1.2 source code after I updated my debian. I do not know what is the real problem . It seems problem from the flex. However, how can i solve it? > > FAILED: /bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 > -oout/host/linux-x86/obj...
2018/03/15
477
1,629
<issue_start>username_0: I want to use Angular Material in my MEAN stack app, but I get the following error: > > Could not find Angular Material core theme. Most Material components > may not work as expected. For more info refer to the theming guide: > <https://material.angular.io/guide/theming> > > > In my An...
2018/03/15
537
1,985
<issue_start>username_0: I want to pass an array to a function from component template, the following is the code for my toolbar: **toolbar.component.html** ```html *{{item.icon}}* ``` **toolbar.component.ts** ```js import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-toolbar', te...
2018/03/15
436
1,639
<issue_start>username_0: I'm writing a function for calling into JavaScript from Swift and would like to accept the name of a function and a list of arguments to call with. The list should be able to contain anything that I can convert into JSON. e.g. ``` callJS(function: "console.log", withArgs: [1, "Hello"]) ``` ...
2018/03/15
1,480
4,807
<issue_start>username_0: Consider the following functions, taken from [the answers](http://www.seas.upenn.edu/~cis194/fall16/sols/08-functor-applicative.hs) to this [problem set](http://www.seas.upenn.edu/~cis194/fall16/hw/08-functor-applicative.html): ``` func6 :: Monad f => f Integer -> f (Integer,Integer) func6 xs ...
2018/03/15
1,390
4,643
<issue_start>username_0: I am creating a directive in VSCode Editor which loads a html page on specifying a given path: Below is the code for same: ``` @Directive({ selector: 'html-outlet' }) export class HtmlOutlet { @Input() html: string; constructor(private vcRef: ViewContainerRef, private compiler: Compiler) {...
2018/03/15
1,994
5,392
<issue_start>username_0: I'm trying to create a circle navigation button to follow mouse movement when the cursor is inside a certain box. ```js var cer = document.getElementById('cerchio'); var pro = document.getElementById('prova'); pro.addEventListener("mouseover", function() { var e = window.event; var x = e....
2018/03/15
1,085
4,112
<issue_start>username_0: I have 2 classes: ``` import lombok.Builder; @Builder public class B extends A { } ``` and ``` import lombok.Builder; @Builder public class A { } ``` on the `@Builder` on `B` I get the message: > > The return type is incompatible with A.builder(). > > > Is this a limitation of lombo...
2018/03/15
985
3,823
<issue_start>username_0: I would like to use the `number_format()` function without to specify the number of decimals. (If 2 decimals, display 2, if 5, display 5) Is that possible? Thanks a lot<issue_comment>username_1: Without knowing the implementation details of lombok or trying it out i'd say no because the patte...
2018/03/15
1,945
8,738
<issue_start>username_0: I'm migrating our application from Spring Boot 1.5.9 to version 2.0.0. In version 1.5.9 we have successfully used mixed Annotations on several Domain Classes e.g: ```java ... @org.springframework.data.mongodb.core.mapping.Document(collection = "folder") @org.springframework.data.elasticsearch...
2018/03/15
537
1,647
<issue_start>username_0: I have 2 arrays: ``` arr1 = [1,2,3]; arr2 = [2,3,4]; ``` They have 2 common values. I want to compare them to get answer 2. Is there any `lodash` function?<issue_comment>username_1: Yes, you can use [\_.intersection](https://lodash.com/docs/4.17.5#intersection) and get common values ```j...
2018/03/15
575
1,678
<issue_start>username_0: I have encountered one interesting problem Lets say I have objects in my database likt this: ``` [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] ``` Lets consider numbers as ids of these objects If I want to get two objects after `5`, I need to use this query: ``` MyObject.objects.filter(id__gt=5).order_...
2018/03/15
364
1,521
<issue_start>username_0: I have different tables in my scheme with different columns, but I want to store data of when was the table modified or when was the data stored, so I added some columns to specify that. I realized that I had to add the same "modification\_date" and "modification\_time" columns to all my table...
2018/03/15
1,528
5,149
<issue_start>username_0: ``` def multipliers(): return [lambda x : i * x for i in range(4)] print [m(2) for m in multipliers()] ``` I partially understood(which is dangerous) the reason that `i` is same for all functions because Python’s closures are late binding. The output is `[6, 6, 6, 6]` (not `[0, 2, 4, 6]` ...
2018/03/15
352
1,391
<issue_start>username_0: I currently have three cloudformation stacks: 1. kms-stack 2. vpc-stack 3. sqs-stack They all export outputs that I can see when I describe that stack but when I run: ``` aws cloudformation list-exports ``` Only the outputs from the vpc stack are printed to the CLI.<issue_comment>username_...
2018/03/15
785
2,653
<issue_start>username_0: I have the simple following code : ``` var S = require('string'); function matchBlacklist(inputString) { var blacklist = ["facebook", "wikipedia", "search.ch", "local.ch"]; var found = false; for (var i = 0; i < blacklist.length; i++) { if (S(inputString).contains(blackl...
2018/03/15
1,134
2,730
<issue_start>username_0: I have a table with details of sold cars. Some of these cars have been resold within last 1, 2 or 3 years. The table looks like this: ``` Car_Type || Car_Reg_No || Sold_Date || Listing_No Hatch || 23789 || 2017-02-03 11:26 || X6529 Coupe || 16723 || 2016-11-07...
2018/03/15
612
2,109
<issue_start>username_0: I do not know why but I can not save my Object to FirebaseDatabase. Can someone help me? My object: ``` public class ChatEntity { public static final String ENTITY_IDENTIFIER = "chats"; private String id; private String chatTitle; private Map users; private Map administrato...
2018/03/15
745
2,165
<issue_start>username_0: Well, i tried to find online my answer but actually I didn't and I really need help.. * I have a **text file** (file.txt) that contain : > > > ``` > C:/Users/00_file/toto.odb, > dis,455, > stre,54, > stra,25, > C:/Users/00_file/tota.odb, > > ``` > > * And a TCL script that allows m...
2018/03/15
814
2,763
<issue_start>username_0: For example, if I want to detect all odd numbers in an array and set them to zero, I can use: ``` def setToZeroIfOdd(n): if n % 2 == 0: pass else: return 0 numbers = range(1,1000) numbers = map(setToZeroIfOdd, numbers) ``` which works like a charm. But when I try somethi...
2018/03/15
655
2,336
<issue_start>username_0: I'd like to reliably count the number of rows in a given excel table using excel formulas. The rough equivalent of: ``` ActiveWorkbook.Worksheets("Sheet1").Range("Table1").Rows.Count ``` Using built-in Excel formulas.<issue_comment>username_1: Try using lambda function ``` numbers = map(la...
2018/03/15
1,093
3,583
<issue_start>username_0: We are using TinyMce with image plugin. <https://www.tinymce.com/docs/plugins/image/> This plugin by default adds image file dimensions, when width and height fields are left blank. Is there any way to prevent this using config? Or do I have to hack it?<issue_comment>username_1: If you set the...
2018/03/15
811
2,315
<issue_start>username_0: I'm trying to reindex a dataframe's multiindex at one sublevel. The df in question looks like this: ``` test = pd.DataFrame({ 'day':[1,3,5], 'position':['A', 'B', 'A'], 'value':[20, 45, 3] }) test.set_index(['day', 'position']) >> value day position 1 A ...
2018/03/15
861
3,485
<issue_start>username_0: I need prioritize the project routes vs the packages routes in Laravel 5.6.12. I've read that one solution could be placing the RouteServiceProvider call before than the packages call. All right, but defaultly, when I install with composer the dependencies, all the external ServiceProviders app...
2018/03/15
595
2,266
<issue_start>username_0: I have 4 differents lines/commands (the addition is just an example) ``` one<- (1+1) two<- (2+2) three<-(3+3) four<-(4+4) ``` I need to run randomly any of this four command lines (one, two, three or four), I am no focus in the addition result. I did try with: ``` list=c("one", "two", "thr...
2018/03/15
1,146
3,945
<issue_start>username_0: Starting from Windows 10 Fall Creators Update (version 16299.15) and OneDrive build 17.3.7064.1005 the On-Demand Files are available for users (<https://support.office.com/en-us/article/learn-about-onedrive-files-on-demand-0e6860d3-d9f3-4971-b321-7092438fb38e>) Any OneDrive file now can have o...
2018/03/15
892
2,971
<issue_start>username_0: I am attempting to create an implementation of the A\* algorithm on a 2D grid and have arrived stuck at the point where I am needing to create a set of a node's neighbours. Below are the structs I am using. ``` // Holds values for x and y locations on the grid struct Coord { int x, y; }; ...
2018/03/15
1,427
6,264
<issue_start>username_0: As per subject, I updated the `Owin.Security.WsFederation` and dependent packages to version 4.0 and I get the error. I did not make any code changes other than changing ``` using Microsoft.IdentityModel.Protocols; ``` to ``` using Microsoft.IdentityModel.Protocols.WsFederation; ``` whe...
2018/03/15
285
1,083
<issue_start>username_0: I've been experimenting with Google Colab to work on Python notebooks with team members. However, the VMs that Colab runs on appear to only have ~13GB of RAM. The datasets we're working with require more (64 GB of RAM would be sufficient). Is there a way to increase the RAM available to Colab...
2018/03/15
573
2,294
<issue_start>username_0: I have an angular js module where all the routes are setup. I have defined a variable "maintenance". if this is set to true , I want the page to be redirected to maintenance page. I have setup the states using stateprovider. I am trying to redirect using the code below - ``` if(maintenance){ ...
2018/03/15
829
3,937
<issue_start>username_0: We currently have a big monolithic J2EE application (weblogic / DB2). It is a typical OLTP application. We are considering to split this application into 2 applications where each application has its own database which is not directly accessible by the other application. This also means that ea...
2018/03/15
519
1,527
<issue_start>username_0: I have code like this, where ROP is taken from excel (float numbers). After the loop val and count are float numbers and somehow Python round the result to integer. How to avoid this? ``` ROP = df['ROP fph'].values.tolist() ROP = np.array(ROP) ROPav = np.array([0]*len(ROP)) ave_...
2018/03/15
1,360
4,147
<issue_start>username_0: This code throws an error when pass the value directly, but it doesn't show any error if pass the value by using parameter. --It throws an Error ``` DECLARE @sql NVARCHAR(4000) DECLARE @ID INT=1234 SET @sql = N'select [count] FROM dbo.Table_1 AS t JOIN...
2018/03/15
875
2,738
<issue_start>username_0: I have the following trigger ``` SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER TRIGGER [dbo].[TG_LT_box_name_delete] ON [dbo].[lt_box_naming] AFTER DELETE AS Set NoCount On update a set used_customer_no = NULL -- select a.* , '' as '||||', b.* from lt_facility_ref a join LT_BOX_...
2018/03/15
665
2,369
<issue_start>username_0: I made a calendar with the [jQuery UI plugin datepicker](http://api.jqueryui.com/datepicker/). --- What I want to do is to append an element after the `tr`, where the selected day is in. In the structure below, I marked the `tr`, which I try to select with `<---- *THIS ROW*`. The structure o...
2018/03/15
924
3,472
<issue_start>username_0: Consider this property ``` @JsonProperty private Map myMap; ``` When a contained `java.util.Date` value is serialized as long, it will not be deserialized to `Date` again because the type information is not present in `Map`. How can I bypass the problem? I read answers about [this question](...
2018/03/15
1,806
5,758
<issue_start>username_0: I try to cipher and decipher a string in the simplest way but it does not work ... After few hours of research I try to post my problem here. I have reduce the problem at its minimum but it still doesn't work and I don't understand the error. Here is my code : ``` class MainActivity : AppCom...
2018/03/15
1,110
3,535
<issue_start>username_0: I've started implementing an iOS game with swift and SpriteKit. I have an object called "bubble" which basically is an SKSpriteNode (with zPosition=0, with image) that have a child (which is an SKCropNode of a person image cropped to a circle, with zPozition=1). That's ok if one bubble covers...
2018/03/15
1,505
4,056
<issue_start>username_0: I can plot a dataframe (2 "Y" values) and add vertical lines (2) to the plot, and I can specify custom legend text for either the Y values OR the vertical lines, but not both at the same time. ``` import pandas as pd import matplotlib.pyplot as plt d = {'x' : [1., 2., 3., 4.], 'y1' : [8., 6.,...
2018/03/15
481
1,964
<issue_start>username_0: PropertyInfo.GetValue() returns an object. I need to cast that object to the type returned from PropertyInfo.PropertyType. How can I do it? The only way I think is a switch on PropertyType.ToString(). Is there another way? TIA<issue_comment>username_1: var prop= PropertyInfo.getValue() as Prop...
2018/03/15
550
2,157
<issue_start>username_0: Complete long shot, but is there a method, either via API or directly in the admin console to view the the last time a user accessed either an email or attachment within the account? For example: Tammy receives an email at 3:00 PM Tammy opens the email at 3:01 PM Tammy opens the email attac...
2018/03/15
1,908
6,700
<issue_start>username_0: I'm using Spring MVC 4.3.11.RELEASE and have a vanilla resource handler for static resources. It's working fine - for resources that exist. However if not, it appears to return a 404 to the DispatcherServlet which is happy with that response since it found a handler. I've got ControllerAdvice f...
2018/03/15
325
1,290
<issue_start>username_0: I am getting some variables from a JSON file using amp-list and amp-template. One of the variables I've gathered is a number that I need to round up or down. The number would normally be displayed as {{number}}. However, I need to manipulate this number to make it a whole number. I am not sure ...
2018/03/15
1,133
4,204
<issue_start>username_0: I'm using Visual Studio 2017, and I really need a menu with useful buttons in the toolbar, now when I got into the customization menu **TOOLS** -> **Customize** -> **Commands**. [![Customize -> Commands menu](https://i.stack.imgur.com/VaLJi.png)](https://i.stack.imgur.com/VaLJi.png) I made a ...
2018/03/15
955
3,507
<issue_start>username_0: The aim of the template is to add subnets to an existing Vnet but when executing it using the powershell command ``` New-AzureRmResourceGroupDeployment -Name testing -ResourceGroupName rgname -TemplateFile C:\Test\deploy.json -TemplateParameterFile C:\Test\parameterfile.json ``` The follo...
2018/03/15
669
2,045
<issue_start>username_0: Button element doesn't stretch to full parent width with left/right zero technique. It perfectly works for `a` tag but not for `button`. What am I missing? The question is why left/right approach isn't working for button. I know that I can use wrapper, `calc()` or flexbox. But it seems strange...
2018/03/15
1,161
3,366
<issue_start>username_0: I'm learning Tkinter and am using the book `Tkinter by example`. I tried to test the example of the book, and something is wrong. ``` import Tkinter as tk class Todo(tk.Frame): def __init__(self,tasks=None): tk.Frame.__init__(self,tasks) if not tasks: self.tasks=[] else: ...
2018/03/15
734
2,666
<issue_start>username_0: I have a function with a completion handler, returning one parameter or more. In a client, when executing a completion handler, I'd like to have an `unowned` reference to `self`, as well as having access to the parameter passed. Here is the Playground example illustrating the issue and the go...
2018/03/15
765
2,728
<issue_start>username_0: What is the time complexity of the following algorithm, how can I find the best and worst case in my code: ``` boolean b = true; integer rn = 0; for(int i=1; i<=n; i++) { for(int j=1; j<=m; j++) { rn = Math.Random() // random number between j and m if(j%rn==0) b = fals...
2018/03/15
1,412
5,322
<issue_start>username_0: I am trying to parse some JSON into a class that has another class as one of it's properties. I am using Newtonsoft.Json as my JSON parser. ``` private class OrderModel { public string OrderId {get; set;} public string OrderDescription {get; set;} public List OrderItems {get; set;} // Co...
2018/03/15
1,522
5,154
<issue_start>username_0: Applying XSL in Java works on some data samples, but produces an empty result on others, where a command line processor still produces a valid result. Below is an example where i see the difference. given an XSL and an XML listed below, the command line: ``` saxonb-xslt -s:metsmods_test3.xml ...
2018/03/15
851
3,059
<issue_start>username_0: I'm implementing this [button](https://stackblitz.com/edit/angular-ypqkcf-eduhze?file=app%2Fprogress-spinner%2Fprogress-spinner.component.ts) in my app. In my button component I have: ``` @Input() callback: () => Promise; onClick() { this.spinnerService.show(); this.callback().then(() =>...
2018/03/15
268
889
<issue_start>username_0: I have a scenario where there is a list of items and each items have name and value selector side by side(so two inputs). The user selects the name (its radio button) and then selects the value. I am using `redux-form` and so far what I achieved: submitting gives value as `{item1: 1, item2: 2}...
2018/03/15
295
1,072
<issue_start>username_0: I need a PowerShell script to check for recent backup files and list any folders which DO NOT contain a recent backup. I need to search a folder and it's sub folders and only return the folder names which DO NOT contain a file `*.cfg` less than 30 days old. So far I have `(c:\backups contains ...
2018/03/15
264
900
<issue_start>username_0: I want to test a async API which accepts 2 parameters. First is a string of operation to be performed and second is callback function. I want to test the response which i get as a parameter in the callback function. ``` someApi('getName', (response) => { // I want to test the response object...
2018/03/15
394
1,418
<issue_start>username_0: It seems to list according to location but it isn't using my location instead listing from the highest point of South Africa(Polokwane) to the lowest(Cape Town). I have tried changing my location many times and it makes no difference to the results. ``` LatLng myLoc; public DistanceArrange(La...
2018/03/15
552
1,511
<issue_start>username_0: I have an array like: ``` array(4) { [0]=> array(34) { ["id"]=> int(6) ["order_reference"]=> string(9) "200123130" ["store_reference"]=> .... [1] array(34) { ["id"]=> int(6) ["order_reference"]=> string(9) "20222220" ["store_reference"]=> ... ``` ...
2018/03/15
313
1,200
<issue_start>username_0: I am trying to reupload my apk after renaming the package name. I followed the directions [here](https://stackoverflow.com/questions/16804093/android-studio-rename-package) without issue. The problem comes up when I try to upload the new apk to google play. For some reason the package name come...
2018/03/15
815
2,807
<issue_start>username_0: I have got many cells in my file whose content is of the form ``` '14.05 ``` I want to mass convert these cells, which contain text, to numbers, which I can compute with. ``` 14.05 ``` Is there a build-in function in Libre Office for such mass conversion, or do I need to fumble around wi...
2018/03/15
920
2,577
<issue_start>username_0: Given is an generic Array T[] arr. Every Quadrupel in this Array shall be rotated left, so > > "a b c d e f" --> "b c d a e f" > > > If the Arrays End isn't a complete Quadrupel, these elements shouldn't rotate. My Idea was: ``` T[] arr2; int x; T temp0 = arr[x+0]; T temp1 = arr[x+1...
2018/03/15
1,025
2,909
<issue_start>username_0: I'm trying to separate fibonacci sequence that are 2 digits long but the first digit is giving out zero's ``` int[] fib = new int[input]; int[] fib2 = new int[input]; fib[0] = 0; fib[1] = 1; fib2[0] = 0; fib2[1] = 1; for (int i = 2; i < input; i++) { ...
2018/03/15
690
2,043
<issue_start>username_0: In SAP Hybris On Premise, is it possible to create campaigns using a CSV file? If yes, then how?<issue_comment>username_1: Use `arr.length`. At every assignment, check to see if the length of the array is less than the value that you're currently at. Upvotes: 0 <issue_comment>username_2: Do the...
2018/03/15
751
2,274
<issue_start>username_0: we have 5 node ICP cluster in local env,,, and we are getting ImagepullError and ImagePullBackoff errors while deploying resources. we found Image-manager service is terminating frequently. what do to get of this prob. [![enter image description here](https://i.stack.imgur.com/cLLiN.png)](http...
2018/03/15
1,375
4,898
<issue_start>username_0: I have 24 fields in my table all of them are of nvarchar type except one of int type which is ID now I want to search in all fields for any text written by the user in textBox for example if the user will write "20" in the textBox it then should show all records that their fields have "20" .. I...