date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/13
621
2,207
<issue_start>username_0: Is it possible to use `PropertyChanged` instead of `TextChanged` on TextBox in WPF ? How to know if `PropertyChanged` triggered or not ? I have TextBox like this: ``` ``` I would prefer to avoid `TextChanged` event, because I change `kodpTxt` binding from database and it's length is not al...
2018/03/13
586
2,018
<issue_start>username_0: help me fix this problem please... this is my code: ``` private void textBox9_TextChanged(object sender, EventArgs e) { if (Convert.ToInt32(textBox9.Text) > 17) //error here in this line { groupBox1.Enabled = false; } else { ...
2018/03/13
779
2,465
<issue_start>username_0: I have an object like this: ``` layers = {a: false, b: false, c: false, d: false, e: false}; setLayer = (val) => { // set val to true and every other to false } ``` I will call setLayer function on onClick event. Like this: ``` hello // this will set layers like this: {a: false, b: false...
2018/03/13
517
1,890
<issue_start>username_0: Say i have a count down latch like with count=1 Suppose i have two threads(T1, T2) waiting on latch. Say T1 came first and called latch.await() and later came T2 When latch is count down is there is guarantee that T1 will be executed first and later T2<issue_comment>username_1: This might va...
2018/03/13
631
2,328
<issue_start>username_0: Project on laravel. I have search input with AJAX in internet shop, which send requests after type any symbol. I need save 5 last **full** user's requests. [requests](https://i.stack.imgur.com/IIuXD.png). I was tried with request->input(), but it isn`t work and i have this [result](https://i.st...
2018/03/13
538
1,684
<issue_start>username_0: Currently I have setup a piece of code to use for A/B testing based on 50/50. But now I want to rebuild it to a 50/25/25 setup. What is the best way to define the Math.random numbers? ``` // Launch A/B test surveys if (/GB|CA|MY|EG|US|Global/i.test(_satellite.getVar("dlCountry")) && /EN/i.test...
2018/03/13
219
611
<issue_start>username_0: Example: ``` pw = input("enter your password:") ``` Input: ``` "bikash413SSS" ``` How can I know when there is integer, capital letter, etc?<issue_comment>username_1: Just setup your points like such ``` var variant = Math.random(); if (variant < 0.5) { // A Code } else if (variant ...
2018/03/13
2,225
6,650
<issue_start>username_0: I am trying to find a way to make this code faster. Nagumo1 is the function that calculates the value of the two derivatives at time t. ``` function x = nagumo(t, y, f) Iapp = f(t); e = 0.1; F = 2/(1+exp(-5*y(1))); n0 = 0; x = zeros(2, 1); z(1) = y(1) - (y(1).^3)/3 - y(2).^2 + Iapp; %z(1...
2018/03/13
932
3,283
<issue_start>username_0: I am doing some "experiments" with move semantics in order to fully understand it. I have reached a point that I don't understand completely. This is because it seems that there is a conflict with a constructor like `A::A(B b)` and `A::A(B &&b)` when using `std::move`. Below is the code that ex...
2018/03/13
646
2,480
<issue_start>username_0: I am trying to implement a tensor (multi-dimensional arrays) in a numerical processing library. The signature of the Tensor implementation is something as shown (cutting down on irrelevant parts of the signature): ``` final class Tensor[V](val data: Array[V], val shape: IndexedSeq[Int]) ``` ...
2018/03/13
793
2,839
<issue_start>username_0: I tried to read a 2+ gb file in two ways, the first: ``` var file = File.ReadAllBytes(filepath); ``` returns an exception, file over 2gb. Second way: ``` var file = ReadAllBytes(filepath); public byte[] ReadAllBytes(string fileName) { byte[] buffer = null; using (FileStream fs = ...
2018/03/13
448
1,570
<issue_start>username_0: ``` { "title": { "de-DE": "German", "fr-FR": "French", "en-CA": "English" }, "image": "/tile.jpg", "url": "/url/to/version" } ``` I have this JSON that i request and my model looks like this: ``` export class ThisIsMyModel { title: string; imag...
2018/03/13
391
1,597
<issue_start>username_0: I have written program similar to below mention program. ``` public class UploadingService extends Service { public UploadingService() { } @Override public int onStartCommand(Intent intent, int flags, int startId) { for(int i = 0; i < mArrayUri.size(); i++){ ...
2018/03/13
1,316
5,073
<issue_start>username_0: I am new to ios development. I want to load large amount of data in tableview using pagination.when new page is loaded i am appending data to "myMainList" and reloading the tableview , but it seems not a good way of loading more data.I could not be able to find a good solution in swift. I got ...
2018/03/13
866
2,526
<issue_start>username_0: Suppose, we have a `A = [3 4 5; 7 1 4]`. I want to make it as `[0 0 1; 1 0 0]`. I tried this: `maxa = max(A(:)); A(A==maxa) = 1`; This is replacing only maximum value of matrix by one. I need maximum value of each row replaced by one and other values by zero.<issue_comment>username_1: The co...
2018/03/13
993
3,059
<issue_start>username_0: I've created on my dataset a tableadapter with the next select command ``` select count(*) as cuenta from table1. ``` But, on the runtime, I need to compose different selects with variable number of clauses. I'd like to use the same tableadapter but I'm not able to change the select command....
2018/03/13
927
2,809
<issue_start>username_0: ``` var obj = $(".yt-simple-endpoint.inline-block.style-scope.ytd-thumbnail") console.log("slicing obj " + obj[0].slice(32, 43)); ``` obj is a array that contains youtube links. It includes around 32 youtube links if you are at youtube.com main page. So what I am trying to do here is,...
2018/03/13
519
1,665
<issue_start>username_0: I'm running the following code: ``` from flask import Flask, jsonify from flask_cors import CORS app = Flask(__name__) CORS(app) @app.route('/test', methods=['POST']) def test(): return jsonify({'result': 'hello'}), 201 if __name__ == '__main__': app.run(debug=True, host='0.0.0.0') ...
2018/03/13
635
2,256
<issue_start>username_0: I have a class to parse data from some online dictionaries, it reads info about word from json and then executes methods as json tells to. An example of json: ``` { "functions": [ { "name": "find_translations", "properties": { "only_first": false } }...
2018/03/13
609
2,017
<issue_start>username_0: I have an object which have array of objects I want to get a new array with the values of inner objects value. ``` "vals": [{ "vals_OwnGeneratingStation": [ ["Hydel Power Station", "0.000"], ["Thermal Power Station", "0.000"], ["Small...
2018/03/13
426
1,609
<issue_start>username_0: We have got new work for e-commerce website which is built in Shopify framework.We have a custom requirement on this website.the client wants to change the functionality of search box section in the header.Since we have not more idea about **Shopify** framework but we have worked in Ruby on Rai...
2018/03/13
394
1,347
<issue_start>username_0: I am wondering what exactly is the difference of the JavaDoc tags `@link` and `@linkplain`. They both seem to generate the same html code.<issue_comment>username_1: It produces different formatting in javadoc you can try it in IDE: `{@link #method()}` - monospaced formatting (code) `{@linkpl...
2018/03/13
700
2,252
<issue_start>username_0: Here's my query: ``` SELECT TRANS_MSTR.branch_id FROM TRANS_MSTR, BRANCH_MSTR WHERE BRANCH_MSTR.branch_type_desc = 'ATM ONLY' And ( SELECT SUM(TRANS_MSTR.trans_amount) FROM TRANS_MSTR WHERE TRANS_MSTR.trans_yyyymm = '201511' GROUP BY TRANS_MSTR.branch_id)...
2018/03/13
783
2,690
<issue_start>username_0: I'm working on a Angular 5 project and I can't seem to get array copies that aren't memory pointers. Or rather I can, but sometimes. and there's no distinguishing factor in my eyes to why one would work and another no. Here's one that doesn't : ``` detailsOriginal = [ {title: 's ', value:...
2018/03/13
525
1,854
<issue_start>username_0: I'm busy with this for two days now. I have the following setup in Wordpress: Permalinks: ``` /%category%/%postname%/ ``` Files (among others): category-blog category-podcast category-ebooks Created categories: blog (standard) podcast ebooks The links site.com/blog, site.com/podcast and s...
2018/03/13
1,184
3,725
<issue_start>username_0: I wrote a function to hide and show a tab when clicked using JavaScript. As I am adding tabs, I also add function to perform the task. I am sure there is a way to narrow this down so I don't have to create a new function each time and reuse the one I have. Here is my JS (<https://jsfiddle.net/...
2018/03/13
489
1,730
<issue_start>username_0: Given the following HTML: ``` - EnerBurn ``` produces this URL: > > <https://localhost:44356/Product/Products/0> > > > But in this controller action, the selected variable is always 0. Why isn't the controller action picking up the id from the URL route? This is the `HttpGet` controll...
2018/03/13
553
1,950
<issue_start>username_0: My question may be basic, but I am wondering how the pipe operator works in the following contexts in Android : We can set multiple input types in layout: ``` android:inputType = "textAutoCorrect|textAutoComplete" ``` We can set multiple flags to an intent as follows: ``` intent.setFlags(I...
2018/03/13
1,088
4,012
<issue_start>username_0: Say I have a method `MyKlass#do_thing` that I want to call exactly once in a test (because it might change a state), and that should return `true` on successful state change and `false` otherwise. I want to write a spec that looks something like this: ``` it "Updates myvalue if condition is me...
2018/03/13
2,088
7,518
<issue_start>username_0: I am trying to update the products price and total cost based on any products quantity getting changed which is done via a text field which has minimum and maximum quantities.Sp when the quantity changes,i will get the updated quantity and price for that product on the backend and update it app...
2018/03/13
585
2,212
<issue_start>username_0: ``` function checkValue() { var id=$('#testValue').val(); if(id < 10){ $('#bb').text("value is LESS than 10. Disable Submit button please!"); $('#submitBtn').disabled = true; }else{ $('#bb').text("value is MORE than 10. Enable submit button please!"); $('#submitBtn').disabled = false;...
2018/03/13
693
2,700
<issue_start>username_0: I am writing an azure function that communicates with and manipulates my Azure table. However, the CloudTable.Execute function is missing, and I cannot find a way around it. I've installed the recommended packages: * WindowsAzure.Storage v9.1.0 * Microsoft.Azure.Management.Storage v7.1.0 * Mi...
2018/03/13
1,004
3,470
<issue_start>username_0: I am building a plugin where users can only see Media files from categories which are accessible by User role assigned to him. I have been able to filter out the result in **media list view mode**, when it first loads by hooking a function to `pre_get_posts` action, but don't know how to do th...
2018/03/13
449
1,493
<issue_start>username_0: when I try to build my Ionic project for Android with [Crosswalk](https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview/issues) I get following error. Without Crosswalk everything works fine.. > > platforms/android/build/intermediates/res/merged/armv7/debug/values/values.xml:2...
2018/03/13
756
2,753
<issue_start>username_0: I am trying to delete a file (a temporary file that I create if my import command fails), which is located under `storage/framework/cache/`. I tried to use `unlink` but always I get an error `Text file busy` (as I searched, this error is displayed because the file is in use). I tried also...
2018/03/13
803
2,844
<issue_start>username_0: In Bolt CMS, I have a field defined like so: *contenttypes.yaml* ``` details: # thats my new content type name: (...) (...) fields: (...) contentblocks: type: block label: Content fields: freetext: label: Formatted Text fields: ...
2018/03/13
728
3,066
<issue_start>username_0: I've written web job as .NET Core Console Application (exe), that has appsettings.json. How do I configure the WebJob in Azure? Basically I want to share some settings like connection string with the web app, that is configured trough App Service's Application Settings.<issue_comment>username_...
2018/03/13
570
2,150
<issue_start>username_0: I just started learning Airflow and I'm trying to create a small airflow script to send a notification to slack but somehow it fails to call for Slack API. First task works fine. Here is the code I use: ``` from airflow import DAG from airflow.contrib.operators.bigquery_check_operator import ...
2018/03/13
359
1,486
<issue_start>username_0: I following my teacher but i have some confused. This is a interface extends CrudRepository from Spring data ``` import org.springframework.data.repository.CrudRepository; public interface TaskRepository extends CrudRepository{ } ``` and this is class Service use that interface: ``` @Servi...
2018/03/13
751
2,684
<issue_start>username_0: I am trying to load the stylesheet in my Assets folder following the instruction giving on this page: <https://symfony.com/doc/current/best_practices/web-assets.html> But I fail to navigate from the base.html.twig to the folder using: ``` ``` my file structure looks like this: ``` templ...
2018/03/13
808
2,601
<issue_start>username_0: I have this situation: 2 columns ``` score date -1 09/02/2018 -1 08/02/2018 -1 07/02/2018 2 06/02/2018 2 05/02/2018 2 04/02/2018 -1 02/02/2018 -1 01/02/2018 ``` how can I get the min date of the last time the score was `-1`? I need to get the date...
2018/03/13
691
2,151
<issue_start>username_0: I have two tables. **Customer :** ``` id | custname | phone --------------------- 1 | abc | 123 2 | xyz | 456 3 | qwe | 786 4 | asd | 1234 ``` **Register :** ``` id | regname | status |Desc ----------------------------------- 1 | abc | 1 | text here 2 ...
2018/03/13
1,088
4,575
<issue_start>username_0: I am trying to pass a value which I am getting in response to calling REST service from my controller to my view(which is in HTML). But it says "vm is not defined at errorCallback (configuration.controller.js?c133:21)". Below is my code snippet. What am I missing? Here is my Controller ``` ...
2018/03/13
887
3,779
<issue_start>username_0: I understand the benefits of async on the frontend (some kind of UI). With async the UI does not block and the user can "click" on other things while waiting for another operation to execute. But what is the benefit of async programming on the backend?<issue_comment>username_1: problem is in l...
2018/03/13
698
2,890
<issue_start>username_0: I want to put the output of this for loop inside a string and print it at the end. however, it concatenating the old string value with the new one. How can I prevent this issue? help, please! ``` while (tupleQueryResult.hasNext()) { BindingSet bindingSet = tupleQueryResult.next(); for ...
2018/03/13
712
2,799
<issue_start>username_0: After I've included "echarts-for-react" library to my project, I've started getting **Cannot read property 'requestAnimationFrame' of undefined** error. The interesting part is that I'm only getting this error on **Windows 10**. When I open the project on **OS X**, everything works as expected...
2018/03/13
663
2,286
<issue_start>username_0: So I have a String i would want to check if I should split into two, or return some default value. Like this: ``` val myString = "firstPart-secondPart" val (first, second) = when (myString.contains("-")) { true -> myString.split('-', limit = 2) else -> ?? <-- How would i return...
2018/03/13
609
2,288
<issue_start>username_0: Do you know about some drawing tool that supports the **Graphical Notation** described in the OPC UA standard Part 3 Annex D? The notation is similar to UML but has some extra elements that map nicely to the OPC UA information model (like different types of references). This is an example of t...
2018/03/13
619
2,147
<issue_start>username_0: I added a label and an image to the navigation item title view, like this - <https://stackoverflow.com/a/38548905/1373592> And I added these three lines of code, to make the title clickable. ``` .... let recognizer = UITapGestureRecognizer(target: self, action: #selector(MyViewControl...
2018/03/13
512
2,070
<issue_start>username_0: For a project at work I'm creating an API in Laravel. I wanted to use MongoDB as database driver which is new to me. So I want to use Eloquent with MySQL in the beginning and when I'm confident enough switch to MongoDB. I was reading some tutorials about the repository pattern in Laravel and s...
2018/03/13
1,950
6,533
<issue_start>username_0: I'm wanting to change the global variable below throughout the page ``` Vue.prototype.$color = 'green'; ``` I tried using the code below but it only changes within the component I created ``` watch: { cor(newValue, oldVlue) { this.$color = newValue; } } ``` is it possible for...
2018/03/13
562
1,826
<issue_start>username_0: I have a requirement where I have a large string. For Example: `abc,def,ghi` I would want to split these strings and put them in a collection. Required Output: ``` ExampleCollection abc def ghi ``` How to do this in VBA.<issue_comment>username_1: Something like: ``` Sub marine() Dim ...
2018/03/13
2,158
6,724
<issue_start>username_0: I need to get statistics for a quarter. Example: today is February 10th 2018, I need to retrieve data from December 2017, from 1st to 31st, then from January 2018, from 1st to 30th and from February 1st to current date. How can I achieve this using Java `Date`?<issue_comment>username_1: Try s...
2018/03/13
1,369
4,054
<issue_start>username_0: I have follow dependency part in package.json: ``` "dependencies": { "bootstrap": "*", "bootstrap-datepicker": "^1.7.1", "bower": "^1.8.2", "chosen-js": "^1.8.2", "datatables.net-dt": "^1.10.16", "jQuery-QueryBuilder": "^2.4.5", "jquery": "^1.4", "jquery-tagit"...
2018/03/13
672
2,438
<issue_start>username_0: I understand that plumber is more suitable to build an API than a full fledged website, this said I am trying to display the dynamic data from the db (mongo) in HTML. All works fine but the way I use (heavily inspired from a titanic example) might not be the best one. Here is an example of my h...
2018/03/13
474
1,571
<issue_start>username_0: The code below is finding the `,-MI` and `,-AL` characters within `$l` and partially replace them with `Michigan` and `Alabama`. So if we have `$l = Montgomery,-AL` the code below returns `Montgomery,-Alabama` value for `$l`. But how to change this code to replace `Michigan` and `Alabama` with ...
2018/03/13
359
1,418
<issue_start>username_0: I want to ask about behavior for next situation: 1. Request has come and routed to some action 2. Action handler changes session, do part of its job and encounter exception 3. The error page is rendered 4. The page is refreshed (`CTRL+F5`) to repeat the request. So question: Will repeated ...
2018/03/13
1,072
2,913
<issue_start>username_0: How can I return a 2d array of constant values from a function? I need to return something like this: ``` //I don't even know if this is the best way to do 2d arrays in c++. const int matrix[4][2] = { {10,11}, {12,13}, {14,15}, {16,17} }; ``` Here what i tried: ``` #include ...
2018/03/13
1,115
3,942
<issue_start>username_0: I want to make a simple program in which I can create an Outlook Task. User fills in data and clicks the create button. I found the following code online and it should work, but it doesn't. No task is added in my Outlook, but no error is shown either. I have the feeling it somehow goes wrong w...
2018/03/13
1,373
4,138
<issue_start>username_0: First, my SQL skils are really bad. Here is my tables : ``` Message : id | title | arrayusers 1 |Title1 | a:2:{i:1;i:1;i:5;i:5;} 2 |Title2 | a:2:{i:1;i:1;i:5;i:5;} 3 |Title3 | a:2:{i:1;i:1;i:5;i:5;} 4 |Title4 | a:2:{i:1;i:1;i:5;i:5;} 5 |Title5 | a:2:{i:1;i:1;i:5;i:5;} 6 |Title6 | a:2:{i:...
2018/03/13
1,503
4,923
<issue_start>username_0: I have searched for a solution to my issue for quite some time, but cannot seem to find an answer that works. I have a table that contains influx of cases to the different lawyers based on date and casetype. Keep in mind that I'm a rookie when it comes to VBA and SQL **What I'm trying to do:**...
2018/03/13
759
2,483
<issue_start>username_0: I'm using dplyrs left join function in order to match two dataframes. I have a panel data set A which consists of 4708 rows and 2 columns ID and Name: ``` ID Name 1 Option1 1 Option2 1 Option3 2 Option2 2 Option3 3 Option1 3 Option4 ``` My dataset B consists of single definitions and...
2018/03/13
940
3,753
<issue_start>username_0: I am currently very confused about when should we use arrow function and when we should not. I did the search about this but still I'm not clear. For example, I create a button to count clicks, the code is like below: ``` class Counter extends React.Component { constructor(props) { supe...
2018/03/13
410
1,533
<issue_start>username_0: I have tried the following code: ``` ``` I have tried many things but not getting any solution. I want to disable the autoplay on the video and don't want to use tag so its possible without tag?<issue_comment>username_1: iframe does not support this by default. Why do you not want to use ...
2018/03/13
1,707
6,241
<issue_start>username_0: I am using PDFBOX as a utility in my selenium automation for export testing . We are comparing actual exported pdf file with the expected ones using pdfbox and then pass/fail test accordingly. This works pretty much smoothly . However recently I came across actual exported file , which looks as...
2018/03/13
562
1,932
<issue_start>username_0: I am trying to access a DOM element with Vue, using the `$refs` functionality, but I am having trouble getting it to work. My element looks like so below. The plateId is generated dynamically, so it will not always be the same number: ``` ``` My Vue function looks like so: ``` /* This does...
2018/03/13
519
1,870
<issue_start>username_0: Why isn't this working? The while loop won't end even when the value of `answer` is `"Y"` or `"N"` (I checked in the debugger) and I keep getting the **Invalid Input** message. ``` Console.Write("\nYes or No(Y or N): "); string answer = Console.ReadLine(); while(!answ...
2018/03/13
565
2,340
<issue_start>username_0: In Oracle you can grant system privileges like ``` GRANT CREATE TRIGGER TO MY_USER; ``` But you can as well grant privileges this way ``` GRANT CREATE ANY TRIGGER TO MY_USER; ``` As system privileges are system-wide, where is the difference between the 2 statements above. Does the additio...
2018/03/13
565
1,861
<issue_start>username_0: I have a mapbox map inside a bootstrap-3 tab like so: ``` Resize map * [Tab-1](#tab-87) * [Tab-2](#tab-1034) Some other content ``` The problem is that when I click on the 2nd tab (where the map is, the map does not have the right dimensions). I can add a button to trigger resize as...
2018/03/13
779
3,012
<issue_start>username_0: I have service which as the following code: ``` private caseListSource = new BehaviorSubject({}); caseList$ = this.caseListSource.asObservable(); loadCaseList() { return this._httpClient.get(environment.api\_url +'/cases').do(data =>{ this.caseListSource.next(data); }); ``` In my com...
2018/03/13
531
2,065
<issue_start>username_0: I'm working on a project where I **need to get the name of windows which is being closed**. I'm **using C# Automation events** for this. I've pasted below the code that I'm using: ``` Automation.AddAutomationEventHandler(WindowPattern.WindowClosedEvent, AutomationElement.RootElement, TreeScop...
2018/03/13
1,595
3,816
<issue_start>username_0: I have split the below query in 15 minute interval on the basis of Start datetime but this query is not providing the exact result set as i am expecting. Below is the example of query i want to execute. ``` select Date_Stamp, Case when substring(convert(char(8),starttime,114), 1, 8) between ...
2018/03/13
1,268
4,091
<issue_start>username_0: I am using ADFS in Windows Server 2012 with SAML 2.0 to implement SSO for an MVC application. I started to get this error which I am unable to find a way to solve. What am I doing wrong? ``` The Federation Service could not authorize token issuance for caller 'xxx\xxxx '. The caller is not aut...
2018/03/13
766
1,627
<issue_start>username_0: I have an array with 7 dates. ``` $dates = array( '2018-03-07', //Wednesday '2018-03-08', //Thursday '2018-03-09', //Friday '2018-03-10', //Saturday '2018-03-11', //Sunday '2018-03-12', //Monday '2018-03-13', //Tuesday ); ``` I want to sort the above array by day wise (Sunday to Saturday or...
2018/03/13
861
3,346
<issue_start>username_0: I have an alert in which I have used table view to show some data. User can select any item from the table view data. Now when I'm trying to select any item in `didSelectRow` method it isn't selecting an item. I have used breakpoints also but it isn't catching the breakpoints also. I have...
2018/03/13
805
3,392
<issue_start>username_0: I know there are a lot of questions regarding volatile here but I haven't found anything specific to this case. I am working with a microcontroller. I know I have to use the volatile qualifier when I modify a global variable inside an ISR and read it inside my main function. I also feel quite ...
2018/03/13
379
1,336
<issue_start>username_0: I have the following structure of the form. **Note:** its dynamic(from jquery) and the same fields are coming multiple times so i have to use `[]` for the field names to get an array. ``` Select users : Select Duration : OR : OR : ``` The `user_id` is important and can't be left blank, T...
2018/03/13
413
1,520
<issue_start>username_0: For one project I maintain a file `notes.txt` in which I document my progress. The project, including `notes.txt`, is maintained under git. Today I search for a string expecting many occurences, but I find only a handful. I'm concerned that in a bout of Emacs keystrokes, I mistyped a character...
2018/03/13
688
2,514
<issue_start>username_0: So i have created server which collect data and write it into db in never ending loop. ``` server.listen(3001, () => { doFullScan(); }); async function doFullScan() { while (true) { await collectAllData(); } } ``` `collectAllData()` is a method which check for available proj...
2018/03/13
571
1,954
<issue_start>username_0: In my Firebase database, I have a data structure similar to this: [![firebaseDatabase](https://i.stack.imgur.com/ggOUb.png)](https://i.stack.imgur.com/ggOUb.png) The post ID (1a3b3c4d5e) is generated by the `ChildByAutoId()` function. The user ID (fn394nf9u3) is the UID of the user. In my app...
2018/03/13
348
1,381
<issue_start>username_0: My dad is customer of the hosting provider [combell](https://www.combell.com/nl/) Where he has the default package now I am wondering if I can put the Angular 5 application I am making on there. I called their support and they say it's not possible but what do I need then? Is it so special to ...
2018/03/13
817
3,035
<issue_start>username_0: Let's have `n` values. All values are `false` and can be changed to `true`. I want 3 operations on these values with certain time complexities: * `val(i)` -> returns value at index `i`. Time complexity - **O(1)**. * `change(i)` -> change value at index `i` to true. Time complexity - **amortiz...
2018/03/13
1,162
3,896
<issue_start>username_0: I encountered this issue while creating a page in tango\_with\_django\_project. ``` Page not found (404) Request Method: GET Request URL: http://127.0.0.1:8000/rango/category//add_page/ Using the URLconf defined in tango_with_django_project.urls, Django tried these URL patterns, in this ord...
2018/03/13
1,195
3,501
<issue_start>username_0: My professor gave me some exercises in C language... In one of them I have to pass a string as an argument to a function, this function will verify the existence of lower case letters in the array and convert it into upper case letter; Actually there's a function to do such a thing, but I can'...
2018/03/13
1,980
7,576
<issue_start>username_0: When multiple users are requesting the same resource method from a service class, how will requests be handled at the server? How will a rest service execute for each request? How different the execution life cycle of rest service from the servlet execution? For example, if below is the Reso...
2018/03/13
770
2,669
<issue_start>username_0: Is it possible to safely cast between two function pointer in C++, given that the arguments as polymorphicly equivalent i.e. (example only) ``` class Base {} class A : Base {} class B : Base {} class C : Base {} template using FPTR = void (\*)(const T&, const U&); using index = std::pair; st...
2018/03/13
1,449
5,496
<issue_start>username_0: I've seen that in many cases inheritance in js can be implemented like so ``` function Organism(age) { this.age = age; } Organism.prototype.growOlder = function(){ this.age = this.age + 1} var org = new Organism("1000"); function Human(name,age){ Organism.call(this,age); //this sets...
2018/03/13
1,357
5,100
<issue_start>username_0: I have been stuck on this error for a long time. I have reviewed the trend on this topic and tried to open the project in .xcworkspace and still no luck. ld: file not found: /Users/xxxx/Library/Developer/Xcode/DerivedData/Txxx-butxfnudrokzxihekswcjwgejvzd/Build/Products/Debug-iphoneos/xxxxx.ap...
2018/03/13
987
3,489
<issue_start>username_0: In the code sample below, I use regex to extract the subdomain name from a given URL. This sample works, but I don't think I've done it correctly at the point where I compile the regex, mainly where I insert the 'virtualHost' variable. Any suggestions? ``` package main import ( "fmt" ...
2018/03/13
509
1,545
<issue_start>username_0: I am trying add a new tags, but I want that they change their background-colors .. how can I do that? ``` Enviar {{ i }} ``` --- ``` select: string items = [] randomcolor: any addItem(item){ this.items.push(item) console.log(this.getRandomColor()) } getRandomColor(){ var letters...
2018/03/13
1,022
2,349
<issue_start>username_0: I have the following data : ``` > data Type value 1 aromatics.aromatics 0.974489796 2 aromatics.charged 0.005102041 3 aromatics.polar 0.005102041 4 aromatics.unpolar 0.015306122 5 charged.aromatics 0.008620690 6 charged.charged 0.982758621 7 c...
2018/03/13
461
1,223
<issue_start>username_0: ``` #include int main(void) { int i,j,n,m; printf("enter the numbr of rows : "); scanf("%d",&n); m=(2\*n)+1; printf("%d, %d",n,m); for(i=0;i<=m;i++) { for(j=0;j=m) break; printf("\*"); } printf("\n"); } return 0; } ``` My code is not running properly not printing all the ro...
2018/03/13
2,431
6,650
<issue_start>username_0: i've a small problem with my slide menu. The slide is fadin in from down to up. This also is working fine. But now I want to set the position a bit more to the left side, so that i get a line with the main menu. Maybe someone can help me. This is my sample... ``` This is my code... [Menu][1...
2018/03/13
859
3,334
<issue_start>username_0: How can I fetch only one data and write it to Header ? I am using firebase and react-redux. firebase structure i try to write "**organization**": inovanka: ![firebase structure i try to write ](https://i.stack.imgur.com/NOUmW.png) Action File Codes: ``` import firebase from 'firebase'; im...
2018/03/13
702
2,456
<issue_start>username_0: I am not so into SQL and I have the following problem. I am using MySql I have a table named **Market\_Commodity\_Price\_Series** and I have to delete some records from this table using a query output as WHERE condition, so I have done something like this: ``` DELETE FROM Market_Commodity_Pri...
2018/03/13
483
1,797
<issue_start>username_0: Is there a way i can use the system timer (unix) in KDB? I understand `.z.ts` & `\t` can be used to setup a timer function and timer frequency respectively . However there is always a risk of overwriting the `.z.ts` unintentionally. I can create a generic function which internally have a list ...
2018/03/13
691
2,358
<issue_start>username_0: [For example please open this](https://i.stack.imgur.com/TxiWf.jpg)If there is N\*N matrix as R(row) is given. So the program will find the minimum value in Rth row and then replace that particular column with 9999. I am getting #value error. How to rectify this? I think there is some error in ...
2018/03/13
1,240
2,681
<issue_start>username_0: I have following data that represents sequence of person's choice between four values (f1,f2,c1,c2) : ``` df=structure(list(combi = structure(c(24L, 8L, 3L, 19L, 4L, 23L, 15L, 12L, 14L, 22L, 5L, 13L, 18L, 9L, 2L, 25L, 11L, 7L, 21L, 10L, 6L, 17L, 20L, 16L), .Label = c("", "c1-c2-f1-f2", "c1-c...
2018/03/13
525
1,574
<issue_start>username_0: Similar to [this](https://stackoverflow.com/questions/26125474/count-multiple-patterns-using-the-str-count-function-in-r) case, i would like to count the number of occurrences of multiple words and numbers that occur in a vector of sentences with str\_count of the stringr package. But I notice...
2018/03/13
499
1,780
<issue_start>username_0: I have an `img` element inside a `div` element as below: ``` ![](/img/sample.png) ``` Here i am trying to fit the loaded large image into division element completely from an existing image using canvas, which works fine. Now i am trying to get the image dimensions as rendered in the browse...