date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/19
330
1,232
<issue_start>username_0: In way to skip the need of trusting a third party and to skip the full download of the blockchain on my PC, I would like to setup a full node syncing an ethereum testnet blockchain on a local server and then connect my PC to this server, using a geth instance. Is that possible in some way? ...
2018/03/19
1,009
3,241
<issue_start>username_0: There are two out-of-order strings arrays, which contain multiple very long strings that may be repeated. How to determine if the two arrays are exactly equal? Example: ``` [“abc”, "abc", "bcd", "efg"] == ["bcd", "efg", “abc”, "abc"] ``` The easiest way I can think of is to compare two ar...
2018/03/19
1,470
5,792
<issue_start>username_0: I have seen several other questions like this, but they do not solve the issue. I used MailChimp's API to make a simple call to add a member to my mailing list when they sign up. However when I test, I get a 401 unauthorized and the API complains of no API key submitted. When I inspect the re...
2018/03/19
1,280
4,819
<issue_start>username_0: I´m installing suiteCrm version 7.10.2, license agree works fine, system check works fine but when i´m done with the database and sdmin config and hit next don´t appen anything. I check the console and get the ReferenceError: YAHOO is not defined I´m installing in my domain and not locally. In...
2018/03/19
334
952
<issue_start>username_0: I am quite new to R therefor my question might be quite basic but searching through the forum I haven't really found the write answer. I have a data.frame of 24 variables and after computing the mean for each column I would like to calculate the IQR(0.25 and 0.75) for every column. As far as I...
2018/03/19
2,004
7,159
<issue_start>username_0: I am fairly new to SQL and I can't understand why I am receiving an error when establishing foreign keys as I receive an error saying that the destination table is invalid. Below is the SQL code, any advice on how to fix would be brilliant! :) The error appears regarding tblFilms and tblCinem...
2018/03/19
567
1,894
<issue_start>username_0: In my use case I would like to add in numbers consisting of 4 digits, like in the image. The first digit should be 0 or 1. My code so far is: ``` func numberOfComponents(in weightPickerView: UIPickerView) -> Int { return 4 } func pickerView(_ pickerView: UIPickerView, numberOfRowsInComp...
2018/03/19
336
1,169
<issue_start>username_0: Opening multiple `db.xx.onSnapshot` listeners, is there a way to know how many/what active listeners from the firebase SDK? & if there is global disconnect method to all active listeners?<issue_comment>username_1: You can try ``` func pickerView(_ pickerView: UIPickerView, numberOfRowsInCompo...
2018/03/19
1,266
3,846
<issue_start>username_0: Examples of looping object creation that I find online use the new keyword and I want to use Object.create(). My attempt returns an error at line 29: <https://jsfiddle.net/ynfkev6c/2/> ``` function my_game() { var cols = 11; var rows = 11; var num = cols * rows; var size = 50; var spacing = 5...
2018/03/19
1,128
4,318
<issue_start>username_0: I have try to check an importance and reason to use W winapi vs A, (W meaning wide char, A meaning ascii right?) I have made a simple example, i receive a temp path for current user like this: ``` CHAR pszUserTempPathA[MAX_PATH] = { 0 }; WCHAR pwszUserTempPathW[MAX_PATH] = { 0 }; GetTempPath...
2018/03/19
1,013
4,120
<issue_start>username_0: I'm new to Firebase/Firestore and trying to create a Firebase Function that will delete all user data upon deletion of an Auth account. My functions is successfully called on deleting an account and I'm trying to delete a collection called links for that user and then delete the user document....
2018/03/19
1,167
3,409
<issue_start>username_0: If we have a 2D int array that looks like this: ``` 6 | 8 | 9 | 16 0 | 6 |-3 | 4 18| 2 | 1 | 11 ``` Than the expected output would be: ``` 0 | 2 |-3 | 4 6 | 6 | 1 | 11 18| 8 | 9 | 16 ``` I block when when i think of it how to sort vertically. ``` int[][] array = new int[10][10]; f...
2018/03/19
297
898
<issue_start>username_0: I would change the style of p-inputSwitch component of Primeng library I would get something like this: [![expected design](https://i.stack.imgur.com/IEQmN.png)](https://i.stack.imgur.com/IEQmN.png) Here's my code : ``` SEARCH BY Business group Borrower ``` I started by deleting l...
2018/03/19
370
1,272
<issue_start>username_0: I have Jenkins 2.46.3 LTS version that i am trying to upgrade to 2.73.3 LTS version. My current java version is 1.7. How do i install and start Jenkins with 1.8 version? I am getting the following error after i copied Jenkins war file under (`/usr/lib/Jenkins`) and restarted the service ``` $ ...
2018/03/19
1,235
3,494
<issue_start>username_0: I have a list of strings in format as below : ``` xxxxxxxxxx xxxxxxxxxxxxx 100PS xxxxxxxxxxxxxxxx xxxxxxxxx xxxxxx xxxxxxxxxx xxxxxxxxxxxxx 250PS xxxxxxxxxxx xxxxxxxxx xxxxxx xxxxxxxxxx xxxxxxxxxxxxx 350PS xxxxxxxxxxxxx xxxxxxxxx xxxx xxxxxxxxxx xxxxxxxxxxxxx 100PS xxxxxxxxxxxxx 100PS xxxxxxx ...
2018/03/19
765
3,002
<issue_start>username_0: I am unable to get the OOXML of a Header. According to the [documentation](https://dev.office.com/reference/add-ins/word/section) `getHeader`" method will return `Body` type. The [`Body`](https://dev.office.com/reference/add-ins/word/body) has a method to get OOXML. But it looks like it is not ...
2018/03/19
631
2,693
<issue_start>username_0: I want to be able to detect when the user has lost connection with the server (closed tab, lost internet connection, etc.) I am using stompjs over Sockjs on my client and spring mvc websockets on my server. How can i detect when the client has lost connection. Here is how i configure my websoc...
2018/03/19
692
1,908
<issue_start>username_0: I have a dataframe that looks like this: ``` Reference | ID | Length ref101 |123456 | 10 ref101 |123789 | 5 ref202 |654321 | 20 ref202 |653212 | 40 ``` I'm trying to determine which row for each row in the `Reference` column has the greatest length (based on the value in the `...
2018/03/19
770
2,170
<issue_start>username_0: The user in this quiz can choose a name: ``` Wie is jouw allergrootste vijand Loki Joker Two Face Red Skull Thanos Killmonger Black Adam Hela ``` I want to compare this with the names inside an array. My idea was to use the index numbers to compare this so I tried to use `.indexOf()...
2018/03/19
915
3,096
<issue_start>username_0: I have some Apache Parquet file. I know I can execute `parquet file.parquet` in my shell and view it in terminal. But I would like some GUI tool to view Parquet files in more user-friendly format. Does such kind of program exist?<issue_comment>username_1: Actually I found some Windows 10 specif...
2018/03/19
381
960
<issue_start>username_0: How can i pull random name from the Array? ``` ... $all = "$a1$b1$c1$d1$e1"; $all = print_r(explode(" ",$all)); echo $all; ---- Array ( [0] => lizzy [1] => rony [2] => ) ``` I need random text to appear in echo<issue_comment>username_1: ``` echo $input[array_rand($all)]; ``` This gets a...
2018/03/19
426
1,151
<issue_start>username_0: I have set a hover effect in my CSS, but it seems to be having no effect. What am I doing wrong? ```css .button_link { display: inline-block; border: solid black 2px; border-radius: 15px; background-color: #ddf; padding: 10px; text-decoration: none; } .button_link#hover { ...
2018/03/19
1,134
4,374
<issue_start>username_0: too many hours wasted because of this bug. I wrote a custom validation that makes sure that the "currency name" is not repeated, the custom validation function called "validateNameUniqness" is calling a http service from a laravel api. laravel must determine if the name is repeated or not: if ...
2018/03/19
1,330
4,452
<issue_start>username_0: I have a 'base' that has a `virtual int` auto implemented property called 'id'. ``` class bbase { public virtual int id { get; set; } } ``` When I inherit from this class to a 'derived' class, I get: ``` class Derived : bbase { public override int id { get { ...
2018/03/19
1,592
6,403
<issue_start>username_0: I am trying to toggle visiblity of a div in a stateless component like this: ``` const playerInfo = (props) => { let isPanelOpen = false; return ( isPanelOpen = !isPanelOpen }>Toggle {isPanelOpen && {props.children} } ); }; ``` I see that the...
2018/03/19
1,910
4,497
<issue_start>username_0: I need to test connection between a server located in my own datacenter and an Amazon RDS instance. I've tried with ``` time telnet 3306 ``` but it tracks the time since i've issued the command, until i've ended it, which is not relevant. Are there any ways of measuring this?<issue_commen...
2018/03/19
2,167
5,348
<issue_start>username_0: > > **[IS\_READ\_ONLY](https://developer.android.com/reference/android/provider/ContactsContract.DataColumns.html#IS_READ_ONLY)** > > > flag: "0" by default, "1" if the row cannot be modified or deleted > except by a sync adapter. See CALLER\_IS\_SYNCADAPTER. Type: INTEGER > Constant Value: ...
2018/03/19
894
3,063
<issue_start>username_0: I've done some time-series forecasting in R with ARIMA, which predicts a value at a future timepoint given a series of continuous values, but I'm not sure how to approach time-series prediction when dealing with categorical values. Given these simple training sequences for 5 people's morning ...
2018/03/19
1,385
5,090
<issue_start>username_0: I have the following, which works fine. It generates a unique random number for a given empty array and a Max determined by the another array (data) length. I would like to add a check that does: * when the array length is = MaxN, I want to store the last value of the array inside a variable s...
2018/03/19
1,391
5,105
<issue_start>username_0: Could somebody explain what the difference is in this example of operator overloading, `Average& operator+=(int num)` where you return a reference to `Average` versus not returning a reference to `Average` i.e. `Average operator+=(int num)`. Does returning a reference mean return a reference t...
2018/03/19
1,093
4,083
<issue_start>username_0: The title may seems weird but I'll try to explain it briefly... So In my admin section I extend a layout with a Sidebar displayed as a bootstrap list on every page. Depending on the page I'm at, I want to put an active class on a specific li but I'm not sure what's the usual method to do this ...
2018/03/19
2,374
8,311
<issue_start>username_0: I'm trying to save current logs to the catalina log with appended current date. Log4j2.xml looks like: ``` xml version="1.0" encoding="UTF-8"? ``` but is saved as `catalina.log` without current date. I have moved from log4j where I have properties which were doing that job: ``` log4j.ap...
2018/03/19
507
2,182
<issue_start>username_0: I have a server running NodeJs and expressjs. It was serving a static website through port 80 fine with the majority of the content and static files being served from a public directory. I made changes on my personal computer where I created my application (things like changing type and cop...
2018/03/19
478
1,867
<issue_start>username_0: I'm trying to get a grip on ServiceBus architecture and I am using RawRabbit 1.10.4. For this I am following an online course where RawRabbit is used. In the Registration of Command Handlers, the following Extension Method is created, where the Methoc ctx.UseConsumerConfiguration is called. Th...
2018/03/19
1,434
5,493
<issue_start>username_0: I've set up AWS API Gateway to pass through requests to a service that returns images. [![The endpoint as it appears in the AWS UI](https://i.stack.imgur.com/QWCpW.png)](https://i.stack.imgur.com/QWCpW.png) When I use the "Test" functionality in the UI, the logs show the PNG data being return...
2018/03/19
672
2,309
<issue_start>username_0: My node.js application needs to upload files to S3. Most of the time, it will upload the file to an existing bucket. But sometimes, the bucket will need to be created first. Is there a way to check whether the bucket already exists, and if not, create it before initiating the upload? Here's wha...
2018/03/19
592
2,026
<issue_start>username_0: Currently I have one simple program with 2 player and they can play some calculation card game. The player turn function currently I using is ``` int turn=0; while(!gameCheck(p1,p2)) { if(turn%2==0) { plyGame(p1);} else { plyGame(p2);} turn++; ```...
2018/03/19
1,160
3,638
<issue_start>username_0: I would like to update the `original_tbl` (url below) to look like the `update_tbl` (URL below). I am uncertain about the T-SQL for this. original table: [![enter image description here](https://i.stack.imgur.com/vyWVJ.jpg)](https://i.stack.imgur.com/vyWVJ.jpg) preferred updated table: [![ent...
2018/03/19
372
1,292
<issue_start>username_0: I want to notify users for new incoming messages when they are browsing other browser tabs. First I have to set a blinking red bot as a favicon (the problem here is that Google Chrome doesn't support GIF animations as favicon) ``` $('#favicon').attr('href','_/css/img/favicon.gif'); ``` is t...
2018/03/19
373
1,225
<issue_start>username_0: I plan to do this using only Pandas, however this is my first time using Pandas. I know that Pandas has a read\_excel function. My row in excel is the 4th row and has dates but I need these dates in a dataframe on Python in a column. Any help will be appreciated. ``` import pandas as pd fp =...
2018/03/19
1,222
3,656
<issue_start>username_0: I am new to Vue and I am trying to bind an element with a fairly complex data object using Vue with a nested component. I believe I have set this up correctly according to the documentation but I'm not seeing any examples that match my situation exactly. The error I'm getting is `vue.js:584 [...
2018/03/19
1,210
4,307
<issue_start>username_0: I try to use the same SimpleForm for creating a new object and for editing. I try to make it this way: ```xml ``` But the bindings are not in mode TwoWay. Is there a possibility to make it to TwoWay Binding?<issue_comment>username_1: I am not quite sure, if using expression binding in value...
2018/03/19
1,290
4,586
<issue_start>username_0: I would like to write a program that read characters from a file and display them with two spaces between each character. However, I am limited to 10 characters per line. How could I make the program return to a new line every 10 characters? ``` // OUTPUT CHARACTERS FROM FILE cout << "Char...
2018/03/19
1,393
4,732
<issue_start>username_0: I've created a stored procedure and I'm inserting values into 3 tables, `Users`, `Workers` and `Vets`. In the `Users` table, I have an identity column `UserID`, which is a foreign key to the `Workers` and `Vets` table. When inserting into the `Workers` and `Vets` tables, I can't seem to retri...
2018/03/19
442
1,671
<issue_start>username_0: I need to detect what is the font size for text component after a font scaling. Let's say that I have a Text component with font size 18px ``` My Text ``` The user has set a large font through the OS accessibility settings. Now my text has been rendered with a larger font size (more than 18p...
2018/03/19
621
2,558
<issue_start>username_0: Basically, I know that *RDF*, *RDFS*, and *OWL* are used to define the ontologies in order to address the semantics problem in world wide web. However, these terms make me a bit confused when studying them. This is my conclusion regarding their relationship after reading [this article](https:/...
2018/03/19
354
1,451
<issue_start>username_0: I need to download a file, but, I am wondering which is the best approach to publish my resource. Lets say I have a Document ``` http://api/documents/id ``` where I make a GET request should I receive the information of the document with that id including an extra field with the string repre...
2018/03/19
712
1,929
<issue_start>username_0: I am trying auto-increment using PHP to generate English alphabets instead numbers. I know how to do auto increment for numbers: ``` for ($i = 0; $i <= 2; $i++) { echo $i; } ``` But I want a way I can generate ABC instead 123.<issue_comment>username_1: You could just create an array of l...
2018/03/19
929
2,996
<issue_start>username_0: I have read about the `targetBinary` flag and I have also read [this](https://stackoverflow.com/questions/34869548/codepush-how-to-deploy-to-multiple-build-versions-of-the-same-deployment-config) from a member of the Microsoft team working on CodePush. I have version `5.0.1` and `5.1.0`. * T...
2018/03/19
454
1,643
<issue_start>username_0: I'm working with opencv in my last study's project. I have python 2.7 and opencv 3.4 already installed. I developed my python project in windows 8 64 bit and I converted my application from .py to .exe through Pyinstaller and it's working fine . But when I move my application to the industrial...
2018/03/19
1,419
5,214
<issue_start>username_0: ``` Android Studio 3.1 RC 2 kotlin 1.2.30 ``` The signature of the fetchMessage in Java ``` Single fetchMessage(final String Id); ``` The kotlin code ``` fun translate(Id: String): Completable { return repository.fetchMessage(Id) .flatMap { Si...
2018/03/19
516
1,899
<issue_start>username_0: I have a Django project where in the project's root folder (where `manage.py` is) I can do ``` (venv) MyName-MacBook:mydjangoproject myname$ python >>> import django >>> from django.core.mail import EmailMessage, send_mail >>> ``` However, when I create a subfolder, this doesn't work anymor...
2018/03/19
715
2,444
<issue_start>username_0: This is my controller ``` public function document(){ $file = File::paginate(6); return view('admin.document',compact('file')); } ``` and this is my view ``` @foreach ($file as $key => $value ) | {{ $no++ }} | {{$value->title}} | {{$value->file}} | {{$value->status}} | {{$value->cr...
2018/03/19
1,069
4,217
<issue_start>username_0: I am new to react and I was playing with react state and components. I made this little app that takes array elements from user and randomly changes its element's position. But when I change one state another state also chances with it. I have one state called element array that contains array ...
2018/03/19
531
1,915
<issue_start>username_0: I am hoping that someone can help me. I have the below code which is not pulling through any results. I am looking to bring through data which will match multiple criteria. Column B which is a data field Column AC which (so long as is `null`) I would like the information to display The first ...
2018/03/19
1,942
5,125
<issue_start>username_0: I have a few columns that have 3 different possible types of strings in it. 1. an empty string 2. a string with 1 number (ex: 2.05) 3. a string with 12 numbers ( ex: `'1.01, 2.02, 3.03, 4.04, 5.05, 6.06, 7.07, 8.08, 9.09, 10.10, 11.11, 12.12'` ) With that 12 number string, I need to split on...
2018/03/19
629
1,935
<issue_start>username_0: I have a form with string validation. The validation the string must contain at least two words. I am using the `split()` method ``` string.split(' ').length >= 2 ``` However, if user input Japanese string ex: > > 公開文書 > > > The result of `公開文書.split(' ').length` is `1`, and the value...
2018/03/19
613
2,292
<issue_start>username_0: My MySQL skills are very basic, so what i want to get is the name of the team 1 and the team 2 of the table matches from the table teams, in a single SELECT statement (if possible). I have a statement but I only get the name of the team 1 in team 2 I get the same name as the team 1 **Teams Tab...
2018/03/19
728
2,606
<issue_start>username_0: ```js function ajaxcall() { var namejs=document.getElementById("namejs").value; var emailjs=document.getElementById("emailjs").value; var passjs=document.getElementById("passjs").value; var selected\_gender=document.getElementById("selected\_gender").value; var div\_id=document.g...
2018/03/19
1,113
3,921
<issue_start>username_0: I'm trying to extract a single word from a line of text. As I understand it, Powershell regexes are *almost* the same as PCREs (and I have a way of easily testing PCREs). I have a file containing (amongst other things) something like... ``` ignore=thisline username=symcbean dontRead=thisEither...
2018/03/19
6,414
12,286
<issue_start>username_0: As per [this answer](https://stackoverflow.com/questions/25248766/emulating-shifts-on-32-bytes-with-avx), I've created the following test program: ``` #include #include #include #define SHIFT\_LEFT( N ) \ \ inline \_\_m256i shift\_left\_##N ( \_\_m256i A ) { \ \ if ( N == 0 ) return A;...
2018/03/19
1,065
3,700
<issue_start>username_0: I'm having issues with running pytest tests from inside PyCharm I have a file x\_tests.py inside a folder called agents\_automation\_2 in C:\Temp, the content of the file is ``` import pytest def test_mytest(): assert False ``` When I run I get the following output *C:\Python36-32\pyt...
2018/03/19
916
3,156
<issue_start>username_0: I have a model class: ``` public class mOrderSnapshot { [Display(Name = "Birthday")] [Required(ErrorMessage = "*")] [DataType(DataType.Date)] [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:d}")] public DateTime Birthday { get; set; } ``` I try to insert a date in input. ...
2018/03/19
2,023
9,319
<issue_start>username_0: I have an `activity` with several `EditTexts`. If the user clicks '`Cancel`' button and nothing has changed in these `EditTexts` then the app should go to the previous activity but if something has changed in these `EditTexts` then I want the user to see the `AlertDialog`: ``` Save changes you...
2018/03/19
685
2,168
<issue_start>username_0: Input ``` ABC - MMM ``` Expected output ``` MMM ``` Everything after `-` and a `space` Tried this `(-\s).+` But I dont get rid of - and space. <https://regex101.com/r/0W7lhD/2><issue_comment>username_1: You want to use `positive lookbehind` which means look for things after, but not in...
2018/03/19
1,302
4,564
<issue_start>username_0: ``` struct FOO{ int a; int b; int c; }; volatile struct FOO foo; int main(void) { foo.a = 10; foo.b = 10; foo.c = 10; struct FOO test = foo; return 0; } ``` This won't compile, because `struct FOO test = foo;` generates an error: > > error: binding refere...
2018/03/19
742
1,852
<issue_start>username_0: This is probably trivial, but I can't find the answer. Consider the following code: ```py from sympy import * X = Symbol('X') a=10 b=100 c=1000 d=10000 s = latex ( a*b*c*d / X ) print (s) ``` displays: ``` \frac{10000000000}{X} ``` And I would prefer ``` \frac{10^{10}}{X} ``` Is it p...
2018/03/19
1,139
2,432
<issue_start>username_0: I am trying to extract a Date and a Time from a Timestamp: ``` DateTime 31/12/2015 22:45 ``` to be: ``` Date | Time | 31/12/2015| 22:45 | ``` however when I use: ``` df['Date'] = pd.to_datetime(df['DateTime']).dt.date ``` I Get : ``` 2015-12-31 ``` Similarly with Time i...
2018/03/19
465
1,376
<issue_start>username_0: I am trying to generate an object via a for loop, the problem I am having is that the property name is not being generated instead it is just inserted as the variable name. Here is an example: ``` for (let key in person) { let obj = {key : person[key] }; console.log(obj); } ``` If ...
2018/03/19
4,365
14,832
<issue_start>username_0: I'm using this jquery timer to collect time spent while it is running. <https://github.com/walmik/timer.jquery> <http://jquerytimer.com/> In a prior Stack Overflow post we were able to Post to another page the current accumulated time using jQuery Ajax ([jQuery.timer how to get current value ...
2018/03/19
2,613
9,046
<issue_start>username_0: I'm using a rails API with a React frontend. My Scores table has a course\_id column via a foreign key ``` class CreateScores < ActiveRecord::Migration[5.1] def change create_table :scores do |t| t.integer :score t.float :differential t.references :user, foreign_key: tr...
2018/03/19
1,161
4,126
<issue_start>username_0: I'm taking a class in python and now I'm struggling to complete one of the tasks. The aim is to ask for an input, integrate through that string and print only words that start with letters > g. If the word starts with a letter larger than g, we print that word. Otherwise, we empty the word and...
2018/03/19
1,299
3,253
<issue_start>username_0: I need to convert the nested list `result = [[450, 455, 458], [452, 454, 456, 457], [451, 453]]` to a dictionary like: ``` { 0: { 450: None, 455: 450, 458: 450 }, 1: { 452: None, 454: 452, ...
2018/03/19
801
2,908
<issue_start>username_0: I have the perl code to delete the files inside the directory and later the directory. ``` find ( sub { my $file = $File::Find::name; if ( -f $file ) { push (@file_list, $file); } }, @find_dirs); for my $file (@file_list) { my @stats = stat($file); if ($now-$stats[9] > $AGE) { ...
2018/03/19
804
2,407
<issue_start>username_0: I'm trying to compare each object in the array. Let's say below is my array: ``` var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 },{ 'x': 3, 'y': 1 },{ 'x': 4, 'y': 1 }]; ``` Given two items, say `item1` and...
2018/03/19
446
1,579
<issue_start>username_0: This should be an easy question. I am using *Java 8, Hibernate 3.6* I have an `org.hibernate.Query` object and I am using it to call a stored procedure. I am calling it with `query.executeUpdate();`. How can I programatically set a timeout to this query? So that when I call the SP and ...
2018/03/19
924
1,894
<issue_start>username_0: I have a dataframe like bellow ``` ID Date 111 1.1.2018 222 5.1.2018 333 7.1.2018 444 8.1.2018 555 9.1.2018 666 13.1.2018 ``` and I would like to bin them into 5 days intervals. The output should be ``` ID Date Bin 111 1.1.2018 1 222 ...
2018/03/19
304
1,062
<issue_start>username_0: For this website I'm building, I have recently ran into a small strip of white going down the right side. I have rolled my changes back to when I know there wasn't that line, and it is still there. I am trying to find the css that is pushing it over, but I can't. And the only element that is en...
2018/03/19
967
4,091
<issue_start>username_0: I want to configure git repository so it will NOT remember the history of one long file, but still will keep its latest version. Is it possible? **P.S.** Thank you for the answers --- I am convinced now that I do not want to do that.<issue_comment>username_1: You cannot change past commits wi...
2018/03/19
1,622
5,518
<issue_start>username_0: Consider a recursive data structure like the following: ``` data Tree level = Leaf String | Node level [ Tree level ] ``` Now, if `level` is an instance of `Ord`, I would like to impose at the type level the following limitation on the data structure: a node must contain only `Tree`s...
2018/03/19
1,499
4,987
<issue_start>username_0: I'm looking for efficient and elegant solution for numbers extraction from html tags such as ``` 0.00 -0.300 -0,150 -0,150 ``` so the desired output is supposed to be ``` 0.00 -0.300 -0,150 -0,150 ``` Thanks a lot for any of your advice in forward.<issue_comment>username_1: Here's th...
2018/03/19
234
984
<issue_start>username_0: I have created my DEV environment without any problem. It's work Fine. but I'm trying to create a QA environment (or any other) and it does not work. the only difference between the two environments is the variable that refers to the backend (I have tried putting the same one and the problem ...
2018/03/19
1,773
6,983
<issue_start>username_0: I have a docker compose file with the following entries --- ``` version: '2.1' services: mysql: container_name: mysql image: mysql:latest volumes: - ./mysqldata:/var/lib/mysql environment: MYSQL_ROOT_PASSWORD: '<PASSWORD>' ports: - '3306:3306' ...
2018/03/19
1,023
2,948
<issue_start>username_0: I'm writing a recursive copystring function in c and I'm receiving a write access violation. The funcion doesn't terminate when the function reaches the final letter in the string. Here's the code: ``` #include void copy(char\*, char\*, int); int main() { char str1[10] = { 'H', 'e', ' j',...
2018/03/19
723
2,789
<issue_start>username_0: I have a problem with ionic, angular, typescript, i get lost a little ... I would like to call an external function to my file but I get the error: *"Uncaught (in promise): TypeError: undefined is not an object (evaluating 'this.alertCtrl.create') popup"* Here is my main file: ``` import { C...
2018/03/19
507
1,788
<issue_start>username_0: I have this XML file name update.xml linked in the pastebin below <https://pastebin.com/kFjX5Wka> Now I would like to make the output like: ``` Manufacturer Google: Device codename: angler Download: download tag link here from Device codename: bullhead Download: download tag link here f...
2018/03/19
380
1,243
<issue_start>username_0: I need to match a file extension for webpack rules using regex. I want to make two separate rules for targeting svg files: `*.svg` and `*.icon.svg`. These rules *must* be mutually exclusive. It's easy to caputure \*.icon.svg scenario by testing for `/\.icon.svg$/`. But what should be the expres...
2018/03/19
393
1,136
<issue_start>username_0: I am using this formula to find the last value of a list: ``` =IF(ISBLANK(A55),INDEX(A4:A55,MAX((A4:A55<>"")*(ROW(A4:A55))),A55)) ``` However this time it's not working as my cells are not "empty" they have a formula that returns either nothing ("") or a cell: ``` =IF(AND(B50>=$G$4,B50<=$...
2018/03/19
2,781
7,470
<issue_start>username_0: I have a data.table with 200 obs and 20 variables, and I need to get n-lags from those 20 variables in a loop. I was trying something like the following, but is not working properly. Please any help? > > nombresvar = names(Model\_X) > > > for (j in nombresvar) for(i in 1:3) > > >  Model...
2018/03/19
813
3,231
<issue_start>username_0: When I try to use context in my **fragment** I get the error: > > constructor Adapter in class Adapter cannot be applied to given types; > required:Context,List,OnItemClickListener > > > I have declared my context in my adapter as follows: ``` private Context mContext; ``` then i ini...
2018/03/19
1,644
5,809
<issue_start>username_0: I have a big python array that I would like to break into chunks and then perform a calculation on the chunks and then "reassembly" into one array. Below is what I have so far I'm just starting to learn threading in general and threading with Python. ``` def performCalc(binaryArray): # pe...
2018/03/19
874
2,803
<issue_start>username_0: im trying to figure out, how to add after 1st click one class called active\_img to an element and on 2nd click remove the 1st class and add class called reverse\_img one and this like place in a loop. So on every odd click, element will get class active\_img and on every even click, element wi...
2018/03/19
647
2,348
<issue_start>username_0: I am trying to validate this list of columns for the presence. So I wrote this code. It's works but can we create an array of columns for this? Example that I wrote: ``` class UserAccount < ApplicationRecord self.table_name = 'accounts' belongs_to :user with_options unless: :new_recor...
2018/03/19
570
1,821
<issue_start>username_0: I'm using CosmosDB using SQL API and I'm trying to join two collections. I saw join example within a document but not getting what actually looking. **RequestLog** ``` { "DateTimeStamp": "2018-03-16T10:56:52.1411006Z", "RequestId": "8ce80648-66e2-4357-98a8-7a71e8b65301", "IPAddress": "0.0.0.1...
2018/03/19
325
1,270
<issue_start>username_0: I'm new to Angular and it's concepts, and i'm trying to wrap my head around how to deal with this particular scenario. I'm using events from Cordova's Keyboard plugin to set a `keyboardVisible` property in my page component, and using it to show/hide the footer. ``` Footer content ``` The...
2018/03/19
382
1,460
<issue_start>username_0: In my Android app, I wrote ``` return x >= rangeStart && x <= rangeEnd ``` IntelliJ has an inspection that wants me to change this to ``` return x in rangeStart..rangeEnd ``` however, since this code is on the critical path of high-volume event handling, I can accept the transformation on...
2018/03/19
475
1,475
<issue_start>username_0: How can I find all values in an array A - where the key is not in array B ( a bit like a SQL Not In ) . I don't want to compare the whole array , just one property - but I do want to return all fields for the differences using lodash ( or simpler ) ``` const arrayA = [ { sku:"1", name:"one"...
2018/03/19
938
3,457
<issue_start>username_0: Based on some sports results data, I have a `Fixture` object which has `getHome()` and `getAway()` method. I'd like to shorten this method which I've written to only use a single lambda function (instead of creating a new list and two lambdas), is this possible? ``` private Collection fin...
2018/03/19
771
2,571
<issue_start>username_0: I would need to obtain the centroid of a queryset of points (PointField) with Django Here are my models: ``` class GroupOfCities(models.Model) geomcentroid = models.PointField(srid=4326, blank=True, null=True) class City(models.Model): centroid = models.PointField(srid=4326, blank=Tr...
2018/03/19
905
3,532
<issue_start>username_0: Here's my code ``` import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import MarkdownRenderer from 'react-markdown-renderer'; export default class Content extends Component { constructor(props) { super(props); this.state = { content: '' }; } c...