date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/02/27
677
2,593
<issue_start>username_0: I have a controller (call it "A") where I get a value from the webserver. When I get this value, I store it in a Service. In another controller (call it "B") I have to get this value from the service everytime it is stored in the service. And this value must appear in the view (updated). My u...
2018/02/27
807
2,913
<issue_start>username_0: I was wondering if there is any way that i can remove my cron which got created through puppet. It works fine when i add `"ensure => absent"` to my manifest. But the challenge for me is, I have to wait an hour to run my puppet agent on my clients since agent is configured to run on every hour. ...
2018/02/27
694
2,535
<issue_start>username_0: I am including a stand-alone build module which uses .scss (SASS) into an existing Angular app set up with plain CSS. Is it possible to have these both next to each other and does it need any custom configuration for example in the `angular-cli.json` defaults section: ``` "defaults": { "styl...
2018/02/27
799
2,925
<issue_start>username_0: my GetField or GetProprety function returns null and I don't understand why So this is a small code which returns this problem ``` private void Application_WindowSelectionChange(MSProject.Window Window, MSProject.Selection sel, object selType) { MSProject.Task task; string FieldName...
2018/02/27
289
1,106
<issue_start>username_0: I need to define the same instance variables: ``` @note = Note.new @notes = current_user.notes.all ``` In multiple controllers: ``` UsersController#home NotesController#create NotesController#update ``` Where would be an appropriate place to house a class/function that ``` def createNote...
2018/02/27
258
745
<issue_start>username_0: ### How to indentify angular version from angular js source file I have found different source file version at <https://code.angularjs.org/> like 1.6.X ,1.5.x, 1.4.x, 1.3.x and 1.2.x but how to identify which version of angular (1,2 or 4) is used ? Thanks & Regards <NAME><issue_comment>userna...
2018/02/27
1,560
5,721
<issue_start>username_0: I need to execute JMeter tests on an offline server. Currently, I have a Maven project which executes JMeter tests with the plugin "jmeter-maven-plugin" on my workstation. Now I want to package this Maven project to deploy it on my offline server. I would like to be able to use the "maven ver...
2018/02/27
934
3,387
<issue_start>username_0: I wrote the proc below, and it's working fine, except that I would like to check if the recordset is empty or not. However, `rs.EoF` and `rs.BoF` always return `False`, even if there is no data. What is the trick to make this work ? ``` Sub PrepData() Dim ws As Worksheet, wb As Workbook ...
2018/02/27
1,335
4,971
<issue_start>username_0: So I have a script which does the following: ``` for ($i = $start;$i<=$end;$i++){ shell_exec("php /home/mysql_box/script.php phrases $i {$argv[3]} > /dev/null 2>&1 &"); } ``` On one of my servers I would like this script to run 400 times. As part of the call it connects to a Mysql server...
2018/02/27
733
2,235
<issue_start>username_0: FindAll doesn't find the class I need. However I was able to find the class above that one, but the data structure is not that well organized. * Do you know what can we do to get the data or organize the output from the class above which has all the data together ? Please see the HTML below ...
2018/02/27
1,539
6,281
<issue_start>username_0: I try to make visible a calendar with datas extracted from a database. I'm using Laravel 5.5 and I made a function which is a SQL request ... ``` public function jsonListesSessions () { $listSessions = DB::table('sessions') ->join('typesessions', 'typesessions.id', '=', 'sessions...
2018/02/27
575
2,178
<issue_start>username_0: I am building an Android(Kotlin) app which gets data from an API. Part of that data is an Image or more like a reference to an Image inside the Android app. Sadly Android does not accept names as arguments for images, so I have to send IDs(numbers). The Problem is that these IDs are changing wh...
2018/02/27
609
2,167
<issue_start>username_0: I have a Google Spreadsheet with two sheets. In sheet "Source" I have a series of countries, cities and landmarks - these are,respectively, in columns A, B and C. In sheet "Sheet for Query", there are two columns: (A) Country, which has a list of unique country names; and (B) Top 3 cities by L...
2018/02/27
582
2,333
<issue_start>username_0: I´d like to change the text of a `TextBlock` during a `Button_Click` in WPF. I tried this but it did not work: ``` private void Button_Click(object sender, RoutedEventArgs e) { myTextBlock.Text = "Status: Not ready"; //Do Something myTextBlock.Text = "Status: Ready"; } ```<issu...
2018/02/27
610
2,493
<issue_start>username_0: So I have been working abit with multiprocessing and finally got it to work with multiprocessing - Basically now I got it to run so every tasks runs now depending on how many tasks I enter. ``` def main(): user_input = 0 while True: try: user_input = int(input(Fore...
2018/02/27
258
833
<issue_start>username_0: I am struggling to read a picture from certain directory. ``` img = cv2.imread('/Users/myname/Desktop/traindog.8011.jpg', cv2.IMREAD_COLOR) print (img) ``` I just simplified my code to make sure the issue and understand above. And even when I put the full path of the picture, it always retu...
2018/02/27
349
1,238
<issue_start>username_0: I'm having an issue with Deep Linking. when I go to safari, In the url i enter `myapp://` and press Enter. it redirects me to the app. However none of the function in the AppDelegate is getting called. I need to take the parameters from the URL. ``` func application(_ application: UIApplica...
2018/02/27
568
2,243
<issue_start>username_0: I have an application that will install a shortcut to Start Menu folder. It is working perfectly in Win7. But shortcut is not coming when I install the application in Windows 10 machine. The shortcut entry in my WIX file is given below. ``` ```<issue_comment>username_1: It could be permission...
2018/02/27
680
2,543
<issue_start>username_0: I would like to apply the tolerations on the Jenkins slave pod that are dynamically spinned by the Kubernetes Plugin. I see that the Kubernetes Plugin does not provide any option on the Jenkins UI to add the tolerations, as shown in the image below. Could anyone tell me, how can I add the toler...
2018/02/27
924
3,141
<issue_start>username_0: I don't understand why if I want to run Flask application I need ``` (venv) $ export FLASK_APP=microblog.py (venv) $ flask run ``` But if I want to run Django application I only ``` (venv) $ python manage.py runserver ``` without `export DJANGO_APP=microblog.py` Why? Why I need the e...
2018/02/27
1,548
6,587
<issue_start>username_0: I am exposing a rest service using "CamelHttpTransportServlet" that receive orders and place in jms queue. The code works fine on happy path and returns 200 response. I have written Processor to validate the input JSON, and set http\_response\_code based on the input. The issue is - for inval...
2018/02/27
766
3,046
<issue_start>username_0: Basically, I need to check the type of data of which a variable is storing before replacing the data stored in the variable with the new data. For example, how to check if the variable is storing a string data or an integer data? Source Code: ``` class Toy: #Toy Class Constructor def...
2018/02/27
1,233
5,278
<issue_start>username_0: I am using fullcalendar plugin for our users to set their available times. Now everything works fine when reloading the page and when user adds one event, but when they add another event or start selecting, the page almost frozes. I tried all the solutions I found out on Stack but nothing. I t...
2018/02/27
1,052
2,526
<issue_start>username_0: I have two files each with a column forming ranges. File 1 > > 23241-24234 > > 10023-12300 > > 75432-82324 > > > File 2 > > 16722-17234 > > 92000-94532 > > 23600-25000 > > > I am looking for ranges that overlap with a certain % (e.g. 50%) between the two files I...
2018/02/27
401
1,052
<issue_start>username_0: I am using Google-sheets. I have a Data-table like: ``` x|A | B | C 1|date |randomNumber| 2| 20.02.2018 | 1243 | 3| 18.01.2018 | 2 | 4| 17.01.2018 | 1 | ``` and a overview table: ``` x|A | B | C 1|date |randomNumbe...
2018/02/27
478
1,460
<issue_start>username_0: This is my first time posting in this forum, I am doing some selenium webdriver testing, I collected some data from an html UI, put it in an array: ``` consents = $driver.find_elements(:xpath,"//*[@id='main-display']/div[2]/div[2]/div/table/tbody/tr/td[7]//i") ``` , then I processed the arra...
2018/02/27
1,551
4,998
<issue_start>username_0: I am learning pyspark, and trying to connect to a mysql database. But i am getting a `java.lang.ClassNotFoundException: com.mysql.jdbc.Driver` Exception while running the code. I have spent a whole day trying to fix it, any help would be appreciated :) I am using pycharm community edition wit...
2018/02/27
892
3,457
<issue_start>username_0: When doing a Full Process on a tabular model to an Azure Analysis Service model I get the following error after 10 minutes into the processing: ``` Failed to save modifications to the server. Error returned: 'Microsoft SQL: Execution Timeout Expired. The timeout period elapsed prior to comple...
2018/02/27
528
2,077
<issue_start>username_0: I have the following exported JS class for a WebGL program: ``` export default class MyClass extends EventTarget { constructor(gl) { super(); // more code here } } ``` Babel (`babel-preset-es2015`) generates the following code in the webpack JS bundle: ``` var MyClass = function...
2018/02/27
491
1,705
<issue_start>username_0: Is there any possible way to not sending value from form to server? I have update Request and in this function I don't want to send hospital.name (I tried to set it to null but it's doesn't work as I want.) Is there any way to Ignore this value? ``` update(hospital: Hospital): Promise ...
2018/02/27
443
1,577
<issue_start>username_0: I’m trying to download images from a website which is secured with SSL. Downloading images is successful when I run the App on API 23(Android 6.0) or above, but when the App runs on lower APIs, I get **SSLHandshakeException** with the **“java.security.cert.CertPathValidatorException: Trust anch...
2018/02/27
985
3,545
<issue_start>username_0: When two colour pickers used side by side using *splitLayout*, colour map gets hidden. It might be easily fixed using `tags$style...HTML()`, any ideas? * Link to *colourpicker* package: [CRAN](https://CRAN.R-project.org/package=colourpicker) and [GitHub](https://github.com/daattali/colourpicke...
2018/02/27
693
2,169
<issue_start>username_0: I have a Dockerfile that creates an image for a GIT server. In this Dockerfile there are three lines important for me: ``` RUN mkdir -p /root/repository WORKDIR /root/repository RUN git init --bare ``` First two lines are working correctly, but the last line seems not to work properly. It g...
2018/02/27
979
3,139
<issue_start>username_0: I want to boot the Linux kernel in full system (FS) mode with a lightweight CPU to save time, make a checkpoint after boot finishes, and then restore the checkpoint with a more detailed CPU to study a benchmark, as mentioned at: <http://gem5.org/Checkpoints> However, when I tried to use `-r 1 ...
2018/02/27
583
2,013
<issue_start>username_0: I have a html code which sends the input to the PHP where the php redirect to a login page. But when i do the post request as bellow, it gives a response back to the javascript; with the forwarding index.html code without redirect to the index.html. ``` function Sendmeaway() { var item\_i ...
2018/02/27
655
2,111
<issue_start>username_0: I found that I cant easely write bounding box using 4 points (x, y, w, h) using opencv. Where x, y is top left corner and w=width, h=height. `cv2.rectangle(img,(x,y),(x+w,y+h),(255,0,0),15)` But How is it possible to write bounding box using opencv having only **xmax xmin ymax ymin** points? ...
2018/02/27
408
1,474
<issue_start>username_0: My app preview image looks like this: [![enter image description here](https://i.stack.imgur.com/L8bmc.png)](https://i.stack.imgur.com/L8bmc.png) How can I make it look like the WhatsApp Chat preview, small with shadow. Also other apps in my phone use the same type of preview. My widget xml: ...
2018/02/27
349
1,118
<issue_start>username_0: I want to add an a href link `[Go Back]( )` I want to bind the value from rows, which is an array: ``` rows: [["href": "href.com", "id"=>"10"], ["href":"href.com", "id"=>"20"]] ``` href value its the same on each array, so how can I get href without doing `v-for="row in rows"`<issue_comment...
2018/02/27
1,752
4,473
<issue_start>username_0: I have a vehicle registration table laid out as follows: ``` CREATE TABLE [registrations] ( [VIN] int, [Name] nvarchar(255), [Action] nvarchar(255), [Date] DateTime ); INSERT INTO registrations VALUES (1, 'John', 'Add', '2017-01-01'), (1, '', 'Remove', '2017-01-16'), (1, 'Fre...
2018/02/27
1,171
4,757
<issue_start>username_0: I have a `UITableView` with 3D Touch [Peek and Pop](https://developer.apple.com/documentation/uikit/peek_and_pop) enabled. I would like to be able to detect whenever the user peeks the view and whenever the user stops peeking the view without popping. I know that [previewingGestureRecognizerFor...
2018/02/27
978
3,872
<issue_start>username_0: I have a Canvas setup inside an ItemsControl, which I am populating with buttons. Each button has an X and Y position property which is used to position the button on the canvas. What im trying to do is make the item positions relative to the size of the canvas. My problem is when I resize the...
2018/02/27
1,389
5,352
<issue_start>username_0: I am loading single jpg image from drawable folder set file provider permission in manifest but when i share image on whatsapp i got error sharing failed please try again.When i share text it works fine but when i tried to share image it gives me error.Here is following files **Fullscreenadapt...
2018/02/27
925
2,796
<issue_start>username_0: I have this following XML file called "test.xml" how can I get "Agent-name-8181818" value from "ragent-name" tag into a variable within a batch file? ``` ragent log\_warning . log\_warning false Automatic Agent-name-8181818 site ```<issue_comment>username_1: ``` xmlstarlet sel -t...
2018/02/27
1,223
4,657
<issue_start>username_0: Im' newbie using Angular HttpClient (and writting english too) I have a problem, I'm trying sending HTTP request with POST method in order to negociate OAuth token obtenction but angular sends OPTIONS request: *Service:* ``` login(username: string, password: string) { const body = `username=...
2018/02/27
1,344
4,623
<issue_start>username_0: I'm trying to install an .MSI using splatting: ``` $InstallerArgs @{ "DATABASENAME" = "my_database"; "LOCALIP" = "127.0.0.1"; "USERNAME" = "username1"; "/i" = "C:\Files\Installer.msi"; } ``` I then call `Start-Process:` ``` Start-Process -FilePath msiexec.exe -ArgumentList @...
2018/02/27
615
2,581
<issue_start>username_0: During the app runtime, I sometimes change `active` property of some constraints that were set up in the storyboard to hide/show some views. Everything works fine but if app transition from one size to another (changes traits for example when the user resizes the app on iPad splitview (two app...
2018/02/27
1,284
4,209
<issue_start>username_0: I'm trying to install the nuget [Xamarin.Firebase.Messaging](https://www.nuget.org/packages/Xamarin.Firebase.Messaging/) package on a clean empty project with [xamarin.forms.maps](https://www.nuget.org/packages/Xamarin.Forms.Maps/) which fails because of version conflict by `Xamarin.GooglePlayS...
2018/02/27
739
2,909
<issue_start>username_0: How do I setup up https endpoint in service fabric for ASP .Net **Core 2** running on **windows 2016 server**. So for I have added the endpoint in ServiceManifest.xml ``` ``` and also in ApplicationManifest.xml I added ``` ``` When I deploy it does not create the endpoint for https. Is ...
2018/02/27
2,987
9,691
<issue_start>username_0: I can't seem to work out how to convert from an fopen to open. I don't have much c experience, so this is quite overwhelming for me. Here is what it is on its own: In the cache\_reader.c file (just the open and close functions): ``` void cr_close(cr_file* f){ free(f->buffer); fclose(f->file)...
2018/02/27
797
2,491
<issue_start>username_0: Of course, UI components are already wrapped enough conveniently. But, I want to reuse some components with custom options. Especially, I want to reuse [data tables component](https://vuetifyjs.com/ja/components/data-tables). If all views have completely same header and data, it's no problem....
2018/02/27
342
1,076
<issue_start>username_0: I have an Eigen matrix: ``` Eigen::Matrix my\_matrix(num\_vectors, VECTOR\_SIZE); ``` And I have a double array with `VECTOR_SIZE` elements: ``` double my_vector_data[VECTOR_SIZE]; ``` I want to copy the data from the array `my_vector_data` into some row in `my_matrix`. How can assign su...
2018/02/27
838
2,954
<issue_start>username_0: After reading the XProc question below: [XSLT with XProc - parameter binding in the required type](https://stackoverflow.com/questions/17861633/xslt-with-xproc-parameter-binding-in-the-required-type) [Passing document() parameter to an xslt in XProc pipeline](https://stackoverflow.com/questio...
2018/02/27
2,463
10,165
<issue_start>username_0: I am designing a new microprocessor instruction set ([www.forwardcom.info](http://www.forwardcom.info)) and I want to use NAN propagation for tracing errors. However, there are a number of oddities in the IEEE 754 floating point standard that prevent this. First, the reason why I want to use N...
2018/02/27
652
1,778
<issue_start>username_0: I want to set `background-image` property using JavaScript. The problem is, I got image links like: ``` https://cdn.vox-cdn.com/thumbor/Pkmq1nm3skO0-j693JTMd7RL0Zk=/0x0:2012x1341/1200x800/filters:focal(0x0:2012x1341)/cdn.vox-cdn.com/uploads/chorus_image/image/47070706/google2.0.0.jpg ``` W...
2018/02/27
381
1,468
<issue_start>username_0: I want to make the button rotate forever, right after pressing it. But it doesn't work ``` protected void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); button2 = (Button) findViewById(R.id.button2); button2.se...
2018/02/27
944
2,821
<issue_start>username_0: I have following MySQL db table filled with data: ``` |id|parentId|position |20|NULL |1 |21|NULL |2 |22|NULL |3 |23|21 |1 |24|21 |2 ``` As you may notice, position inside parent starts from 1 as well. So if I query table: ``` SELECT * FROM myTable ORDER BY IFNULL(parentI...
2018/02/27
613
2,201
<issue_start>username_0: My question today is simple but hard for excel novice like me. I have two worksheets called Sales and Pipeline which has same headings so the range is same, i want to convert the numbers stored as text as values simultaneously in both the sheets, the numbers as text are present in Column I and ...
2018/02/27
946
3,207
<issue_start>username_0: I was posting the values, using the CodeIgniter framework and stored them as array. I need those array values in the next page. How can I achieve that (without storing in database) ? ``` function next() { if(isset($_POST) && count($_POST) > 0) { $data...
2018/02/27
622
2,600
<issue_start>username_0: Currently, building a serverless app that use DynamoDb and Elasticsearch is quite easy Using serverless, you just declare everything in serverless.yml and you are good to go Problems (quickly) arise when you need to use RDS or Elasticache because you have all kind of troubles with VPCs...whic...
2018/02/27
442
1,863
<issue_start>username_0: I have a table in DB2 with column type BLOB, I would like to convert this to a CLOB type. My approach here is to create a new column with CLOB type, copy all the data from BLOB column to CLOB column, drop the BLOB column and rename the CLOB column. However, I am not sure how to do the second st...
2018/02/27
507
1,673
<issue_start>username_0: I want to check a file exist in folder. Below code is while i'm trying to many times is not working. ``` function Start() { var path = "X:\ApplicationFiles\Journals\TandF\RJHR\Vol00000\180008\ML\IProof\TF-RJHR180008.xml"; if (File.Exists(path)) { document.getElementById("Stage").innerHTML = "...
2018/02/27
423
1,638
<issue_start>username_0: Need help with a query to returns each individuals most recent order, date of the order, number of products in the order and the total amount. I am kind of stuck trying to get the number of products and total. Here are the table diagrams Not sure if I should be using multiple joins or subquer...
2018/02/27
403
1,562
<issue_start>username_0: I got a Problem, cause I'm totally new to sql and have to kinda learn it in an internship. So I had to import huge txt files into a database in phpmyadmin (took me for ever but managed it with load data infile). Now my task is to find a way to control if the data of the tables is the same as th...
2018/02/27
451
1,751
<issue_start>username_0: In my `MainWindow` constructor I ovverided the `Closing` event because I need to call another method that perform some task, like: ``` public MainWindow() { InitializeComponent(); Closing += (x, y) => { y.Cancel = true; _discard = true; ...
2018/02/27
355
1,397
<issue_start>username_0: I'd like to update my project with the latest version of the Forge Viewer. I haven't previously been using versioning this far. How would I update the Forge Viewer to the latest version in my code?<issue_comment>username_1: This wont work because your browser does not have access to your file s...
2018/02/27
489
1,422
<issue_start>username_0: I want to check a string true or false under these conditions: ``` 1. the string must be 5 charecters long 2. 3rd charecter should be 'b' 3. the string must contain special charecter like '?' or '@' and '$' ``` I can't figure what to do still I've done: ``` System.out.println("//b//b//b?//b...
2018/02/27
443
1,442
<issue_start>username_0: Running custom keyboard and touchpad modifications, I want to to activate 2 finger scrolling using: ``` xinput --set-prop id "Synaptics Two-Finger Scrolling" 1 1 ``` where id is the device id found using ``` xinput --list ``` The id whoever changes after restart. Preferably one would use ...
2018/02/27
867
3,130
<issue_start>username_0: I am a beginner to Java. I have successfully exported user data input to a .txt file using a loop, but I would like to remove the last comma per every line of the file. I have tried using a delimiter but cannot get the replaceAll to successfully remove the last comma of every line. My current...
2018/02/27
1,272
3,728
<issue_start>username_0: very new to this so sorry if I'm missing something incredibly simple. I've been trying to write something which will return a list of the property number, the names of the property and all property values for an object, formatted as: ``` "n property - property value" ``` I'm sure I've gone ...
2018/02/27
1,839
5,375
<issue_start>username_0: Suppose I have the following dataframe: ``` Category = c("blue", "red", "red", "blue", "blue", "blue", "red", "red", "red","blue", "red", "red","blue","blue","red","blue","red") Purchase = c(0,1,1,0,0,0,1,1,1,0,1,1,0,0,1,0,1) Number = c(1,1,1,1,2,2,2,2,2,1,1,2,2,2,2,2,2) Id = c("a","a","a",...
2018/02/27
831
2,872
<issue_start>username_0: I'm looking for advice on breaking up a very large string into many smaller strings. As an example, I have a string of 5000 characters. I have to split that string up into a sequential array of variables no larger than 450 characters. Would the following be the most efficient way to do it? ```...
2018/02/27
573
2,017
<issue_start>username_0: I have a datepicker and want to get only date in format YYYY-MM-DD. The default datetime format is: ``` Tue Feb 06 2018 00:00:00 GMT+0200 (FLE Standard Time) ``` How can to format this datepicker ? Also how can I change the color of the field to another color, ie the field on which the date...
2018/02/27
1,265
3,155
<issue_start>username_0: I would like to create a first place column where a person lived based on the year column. I have the data in the following format ``` year<- c(2008, 2009, 2010, 2009, 2010, 2011) person<- c('John', 'John', 'John', 'Brian', 'Brian','Vickey') location<- c('London','Paris', 'Newyork','Paris','Pa...
2018/02/27
912
2,789
<issue_start>username_0: I am working on a page with some star ratings and I'm using the rateYo plugin (<http://rateyo.fundoocode.ninja>) for this. Everything works fine if I use one star rating, but I'll need to use it dynamically with numerous instances on this page that will be getting product data from a database. ...
2018/02/27
714
2,623
<issue_start>username_0: I am a little new to akka world, so my domain of knowledge is a bit small. I am creating an https server and handling it using akka streams and http, for a specific url, i need to send a file back to client. How can i achieve that using akka streams and avoiding the akka routes. ``` def handle...
2018/02/27
2,107
6,970
<issue_start>username_0: I'm working on a Flask API which works fine. I'm now trying to replace the Flask development server with uWSGI but everything breaks. I'm trying to solve this since 2 days, went through tutorials and searched here but couldn't find a solution to the problem. This is the code: **app.py** ``` im...
2018/02/27
174
606
<issue_start>username_0: A simple question: does anybody knows if a tool similar to sonarqube exists for R code? or a sonarqube library? I mean, a tool for analyzing technically quality of the code, not only highlighting or sintax formating. thanks in advance!<issue_comment>username_1: You can use `lintr` and upload th...
2018/02/27
904
2,892
<issue_start>username_0: Using the `System.Net.Mail.MailMessage` class I created an email. The email was in german and needed to contain the umlaut *ü*. For this reason I declared the `SubjectEncoding` property of the object as `Encoding.UTF8`. On receiving the email I noticed that the *ü* had been subsituted by two [s...
2018/02/27
1,207
3,791
<issue_start>username_0: We need to upload a document to a SharePoint Online list and then add some searchable attributes to the document. We are uploading the document using Microsoft Graph. Since we need to be able to search for the document against different criteria, we are uploading the document to a List. Her...
2018/02/27
749
2,374
<issue_start>username_0: What is wrong with this code? Receitas.java ``` // File Receitas.java public class Receitas extends Application { ArrayList mReceitas; ArrayList mTipoReceitas; @Override public void onCreate() { super.onCreate(); mReceitas = new ArrayList<>(); mTipoReceitas = new ArrayList<>(); ...
2018/02/27
646
2,080
<issue_start>username_0: I have the following custom user control: ``` ``` I'm using this usercontrol like this: ``` ``` the binding is fired only when i lose focus even tough i set it to propertychanged, i know that it's because the custom user control's UpdateSourceTrigger is default. How can i make the Update...
2018/02/27
1,230
4,554
<issue_start>username_0: How can I programmatically set focus to "Address" input after clicking "Next" button on step one, so after going form step 1 ("Fill out your name") to step 2 ("Fill out your address"). <https://stackblitz.com/angular/onnbkqrydrg?file=app%2Fstepper-overview-example.ts> <https://material.angular...
2018/02/27
2,351
6,926
<issue_start>username_0: My web application returns a date as a 13 digit number, such as `1475166540000`. How to format it into a proper date to be returned in the JSON response. In my function it just returns the whole DTO.<issue_comment>username_1: If you are using Java 8 you can use [`java.time`](https://docs.oracl...
2018/02/27
441
1,336
<issue_start>username_0: Hi this code is not working I get error concat is not a function: how can I fix it? ```html var o=[{r:[3,8]},{r:[2,3,4]}]; undefined var R=o.reduce(function(x,y,z){ return x.concat(y.r);}) VM200964:1 Uncaught TypeError: x.concat is not a function ```<issue_comment>username_1: `reduce()` ite...
2018/02/27
1,003
2,317
<issue_start>username_0: I have the following regex: ``` ((?i:EUR)( ?)(([0-9]{1,3}(,[0-9]{3})*(\.[0-9]+)?)|([0-9]{1,3}(\.[0-9]{3})*(,[0-9]+)?)|((\d+)((\.|,)\d+)?))( ?)(?i:Mio|Million|Billion)?) ``` With the regex I want so search for all kinds of numbers. Numbers could contain thousand seperators in english with a "...
2018/02/27
1,017
3,190
<issue_start>username_0: ``` apply plugin: 'com.android.application' ``` apply plugin: 'realm-android' android { compileSdkVersion 24 buildToolsVersion '26.0.2' ``` defaultConfig { applicationId "com.kolhapur.news" minSdkVersion 14 targetSdkVersion 24 versionCode 1 versionName "1.0" } buildTyp...
2018/02/27
290
1,177
<issue_start>username_0: I've got some text files in one path and I want to find folders with the name of the text files in a different path and if they exist get their full path to a variable. I've done something like this ``` var files=Directory.GetFiles(@"D:\C#\Sample files","*.txt",SearchOption.AllDirectories); fo...
2018/02/27
528
1,839
<issue_start>username_0: Does anyone know why the same piece of code, executed twice, seems to be executed faster the first time than the second time? I tried the code bellow about 20 times, every time the first execution was faster than the second one. ``` #include #include void add(int\* var) {(\*var)++;} int m...
2018/02/27
934
3,113
<issue_start>username_0: I am still learning JavaScript, so I apologize in advance if this seems a remedial question. I am receiving data from an API call in the form of an array, like so: ``` arr = ['topic1',497,'topic2',591,'topic3',17,'topic4',980] ``` Though it's not evident from that array, the number followin...
2018/02/27
1,086
3,550
<issue_start>username_0: I'm trying to predict the profit each film made on IMDb. My dataframe and features are as follows: ``` Actor1 Actor2 Actor3 Actor4 Day Director Genre1 Genre2 Genre3 \ 0 0 0 0 0 19.0 0 0 0 0 1 1 1 1 1 ...
2018/02/27
502
1,900
<issue_start>username_0: I have simplified my form for this question. This is my example ``` {{csrf\_field()}} ``` In my route a just *dd* the request as follow: ``` dd(request('test')); ``` Now I would expect an array with a file (UploadedFile type) and the *random-value*, instead, I'm getting only the file. ...
2018/02/27
5,483
9,996
<issue_start>username_0: I am experimenting with saving project data (images, parameters etc) in a save file. The way I found is to incorporate all the data in XML file, so I decided to convert image to Base64 string. The obstacle here is that I don't know how to get the image back from string. ``` File file = new Fi...
2018/02/27
486
1,719
<issue_start>username_0: Here is my table. I am trying to get distinct person distinct fruit based on maximum number of fruits he has. **`persons | fruits`** `David apple` `David apple` `David apple` `David banana` `David orange` `Sam apple` `Sam banana` `Sam orange` `Sam orange` `Sam or...
2018/02/27
488
1,652
<issue_start>username_0: Based on [the documentation](http://www.st.com/content/ccc/resource/technical/document/reference_manual/3d/6d/5a/66/b4/99/40/d4/DM00031020.pdf/files/DM00031020.pdf/jcr:content/translations/en.DM00031020.pdf "the documentation") I'm pretty sure the answer to this question is "You can't.", but it...
2018/02/27
380
1,413
<issue_start>username_0: I need to convert list like this `["a","b","c"]` to this `['a','b','c']`. The thing is i used ``` splitOn ``` function which gave me `[[Char]]` from `[Char]`. Is there a way to convert this list of string to list of char? Assuming strings are length of 1 of course.<issue_comment>username_1:...
2018/02/27
1,393
4,802
<issue_start>username_0: My code resembles this: ``` router.post("/", (req, res, next) => { foo() .then((result) => { res.send(result) }) .catch((error) => { cosnole.log(error) }) //I only want the bar() function and everything below it to run if the first promise is rejected and the first .catch function ran ...
2018/02/27
1,281
4,534
<issue_start>username_0: I am integrating carrier service API for shopify store. I have partner account and also i have created development store. After installed my app in my store and subscribed carrier service. But in store shipping settings page i got an error > > There are no available services for the countries...
2018/02/27
220
836
<issue_start>username_0: I want to execute an update\_all query to update a datetime column adding 1 day to the current value of this column on all rows. I could achieve that using .each and .update, but it would be more efficient to perform in a single query. Is it possible to achieve that using Rails and PostgreSQL...
2018/02/27
384
1,287
<issue_start>username_0: I want to concatenate \_BAR to the results of a Query. One of my first attempts is this: ``` SELECT lhs.f||rhs.f as concat_bar FROM ( SELECT 'FOO' as f FROM DUAL) lhs LEFT JOIN ( SELECT '_BAR' as f FROM DUAL) rhs ON ('' != rhs.f) ; ``` but I got no results. I was expecting `ON ('' != ...
2018/02/27
1,073
3,582
<issue_start>username_0: Having a string (any string). It may not contain numbers; How can I store the integers contained in that array into an ArrayList. Tried to ``` public ArrayList toList() { String stringToList; ArrayList l = new ArrayList<>(); stringToList = this.toString(); // I am just copying the string ...