date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/03
1,196
5,151
<issue_start>username_0: I try to implement a simple shopping list swift application for iOS as a personal project. I did follow a guide for iOS on [youtube](https://www.youtube.com/watch?v=XwXEsKRYUXU). My question is how do I parse the `Item` object from firebase to my `ShoppingListItem` swift object? If I execute t...
2018/03/03
173
629
<issue_start>username_0: How can I call this event `private void panel1_Paint(object sender, PaintEventArgs e){.....}` from like button click function or something? I've tried `panel1.Paint += new PaintEventHandler(panel1_Paint);` and couple more but they did not seem to work.<issue_comment>username_1: try this: ``` ...
2018/03/03
16,234
26,065
<issue_start>username_0: Following is error log file content, anybody help me?thanks --- ``` # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006e7ea1be, pid=17964, tid=0x00000000000046d8 # # JRE version: Java(TM) SE Runtime Environment (8...
2018/03/03
459
1,400
<issue_start>username_0: I am new in Python and i was wondering if there is a more elegant way to express the following if condition: ``` a=0 b=0 c=0 d=0 e=0 f=0 if a!=0 and c!=0 and b==0 and d==0 and e==0 and f==0: print("Hello World!") ``` This is a simple toy example but in practice i have more than 6 letter...
2018/03/03
1,101
3,878
<issue_start>username_0: I want to use the default django.contrib.auth.views for resetting passwords with email confirmation. All this code is on urls.py : ``` from django.conf.urls import url from . import views from django.contrib.auth import views as auth_views app_name = 'houses' urlpatterns = [ # Root and ...
2018/03/03
622
1,827
<issue_start>username_0: I have many lists. Say for short `[[1,2],[3,4]]`. I need to generate all changes of signs of each element. Thus, for the short example, the result would be ``` [[1,2],[3,4],[-1,2],[1,-2],[-1,-2],[-3,4],[3,-4],[-3,-4]] ``` Is there a package to perform such an operation ? Otherwise what alg...
2018/03/03
1,652
5,438
<issue_start>username_0: I have this JavaScript array: ``` let a = [ [0, "**Lorem Ipsum** is simply dummy text of "], [1, "**"], [0, "the"], [1, "**"], [0, " printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of...
2018/03/03
1,157
3,767
<issue_start>username_0: The function `fib()` below taken from [chapter 4.6 in The Python Tutorial](https://docs.python.org/3/tutorial/controlflow.html#defining-functions) includes at the end of the definition a line containing `print()` with no apparent reason since the same function without that line -`fib0()`- produ...
2018/03/03
794
2,926
<issue_start>username_0: I installed the Nuget package. hooked it through the "using" . The package classes work in another solution, and in my project they do not work screenshots: [neolux](https://i.stack.imgur.com/WKyI1.jpg)<issue_comment>username_1: I'm with Scott... I think there must be a better way of doing wha...
2018/03/03
822
2,909
<issue_start>username_0: I have a list `l=[[[1,2,3],[4,5,6]],[[7,8,9],[9,1,2]]]` How do I get the list `[[[1,2],[4,5]],[[7,8],[9,1]]]` using just slicing? I tried `l[:][:][:2]` but it gave me the entire 3d list.<issue_comment>username_1: I'm with Scott... I think there must be a better way of doing what you want to do....
2018/03/03
1,147
3,614
<issue_start>username_0: Supposing I have a text file. I want to replace every nth occurrence of a string in the text file using `sed`. If I have a string: `is this just real life or is this just fantasy or is it just me` For every 3rd occurrence of 'is', replacing with 'hat', would give the output `is this just r...
2018/03/03
497
1,709
<issue_start>username_0: I am trying to push parameters into an array with a jquery button (on click), but the console returns 'undefined'. Not sure why the input value isn't being referenced. Here is my code.. ``` //JAVASCRIPT let garage = []; class Car{ constructor( year, make, model ){ this.year = year; ...
2018/03/03
1,995
7,965
<issue_start>username_0: I am using Laravel 5.6 with spatie/laravel-permission version 2.9 also using Laravel Passport as auth driver with `$guard = 'api'`. When I am trying to assign an array of permission like `['edit_project', 'add_project' 'delete_project']` to a role with help of this function ``` public functi...
2018/03/03
1,399
5,507
<issue_start>username_0: I am trying to use Karma and Jasmine to test my Angular5 that uses Firestore. However when I do "ng test", I get an error saying "NullInjectorError: No provider for AngularFirestore/AngularFireAuth/AuthService!". Following the post at [NullInjectorError: No provider for AngularFirestore](https:...
2018/03/03
517
2,052
<issue_start>username_0: I have the following case to determine the user's turn 90 degrees or more with only using Apple Watch. I wanted to do this with `CLLocationManager` and `startUpdatingHeading`, but [Heading](https://developer.apple.com/documentation/corelocation/cllocationmanager/1620558-startupdatingheading) d...
2018/03/03
445
1,661
<issue_start>username_0: I got a problem regarding `Components` and `Services` in `Angular 4`. So I got the `CustomerComponent`: ``` @Component({ selector: 'app-customer', templateUrl: './customer.component.html', styleUrls: ['./customer.component.css'] }) export class CustomerComponent implements OnInit { customers:...
2018/03/03
316
1,225
<issue_start>username_0: I have a helper to show my alerts ``` import UIKit class AlertDialog { class func showAlert(_ title: String, message: String, viewController: UIViewController) { let alertController = UIAlertController(title: title, message: message, preferredStyle: .alert) let OKAction = ...
2018/03/03
380
1,426
<issue_start>username_0: I'm using Angular CLI in a small project and Fontawesome 5 via CDN for icon styling. Came across this issue when I was applying fontawesome 'styling' classes to some buttons and links. , or elements have different behaviours when they have Fontawesome classes applied to them. ``` ``` Onl...
2018/03/03
727
2,762
<issue_start>username_0: I'm trying to validate my signup form using JavaScript. I submit the form and the default action is prevented but none of my error handler classes show up, nor do I get any errors in my error log. if anyone can show me what I'm doing wrong, it would greatly appreciated. I'm trying to show a red...
2018/03/03
412
1,431
<issue_start>username_0: I want to find the coordinates of the location where i am living right now. I tried using a code like this: ``` send_url = 'http://freegeoip.net/json' r = requests.get(send_url) j = json.loads(r.text) lat = j['latitude'] lon = j['longitude'] ``` It is giving me the city coordinates. But i wa...
2018/03/03
732
2,582
<issue_start>username_0: i try to build an Cordova/Phonegap application using vue.js and the Framework7. I find out how to use functions like "onClick" using the "v-on:click="OnClick" attribute in an html element. Framework7 has jquery already implemented in the dom. But there is one question. How can i access the dom...
2018/03/03
1,180
3,715
<issue_start>username_0: I'm creating a module in odoo and i wanna use a many2one as a selection field, the problem is on the name of the city 'ville en francais' the dropdown works and it saves the id of the city(from database) but the name is like obj.ville,1 (it shows the name of the module,id instead of the name of...
2018/03/03
1,090
3,986
<issue_start>username_0: Using this script: <https://github.com/byterogues/powershell-bittrex-api> which I call from another script. e.g. ``` $order = .\bittrex-api.ps1 -action buylimit -market BTC-TX -quantity 1 -rate 0.00011300 ``` bittrex-api.ps1 catches an error and shows this on screen *BITTREX ERROR: API Que...
2018/03/03
3,539
12,566
<issue_start>username_0: I wrote a program that takes in entry some points, expressed in 3D coordinates and that must be drawn in a 2D canvas. I use perspective projection, homogeneous coordinates and similar triangles to do that. However, my program does not work and I actually don't know why. I followed two tutorial...
2018/03/03
2,169
8,456
<issue_start>username_0: Looking more into OOP and classes, I have an extremely large user class which is becoming increasingly large to manage. The total code is in excess of 950 lines and completely dismisses the Single Responsibility principle. A few ways i thought to make this smaller is to create completely sepe...
2018/03/03
1,173
4,595
<issue_start>username_0: I'm developing drop down list in polymer. Currently I have problem with CSS. Here you can find example: [jsfiddle example](https://jsfiddle.net/9ayyzudh/5/) ``` Select value very long label with dots at the end ▼ ``` I need to create the following drop down list, but I have problem with ...
2018/03/03
491
2,086
<issue_start>username_0: I am building a mobile iOS app for a web backend. I retrieve the JSON response using the following code: ``` NSError *error; NSString *url_string = [NSString stringWithFormat: @"https://myURL"]; NSData *data = [NSData dataWithContentsOfURL: [NSURL URLWithString:url_string]]; NSDictionary *json...
2018/03/03
531
2,042
<issue_start>username_0: Is it possible to put a row ID in `header()`? I tried to put `header()` inside an `if` statement but I always got a message of: > > Parse error: syntax error, unexpected '' (T\_ENCAPSED\_AND\_WHITESPACE), expecting identifier (T\_STRING) or variable (T\_VARIABLE) or number (T\_NUM\_STRING) >...
2018/03/03
800
2,479
<issue_start>username_0: I have the following mongodb document structure and I have a few questions about it: ``` [{ "_id" : ObjectId("5a9ad6935625732968b720a6"), "customer" : { "_id" : ObjectId("5a9ab4b6acf09dde448e0348"), "email" : "...", }, "pType" : {...
2018/03/03
1,510
4,726
<issue_start>username_0: I want to split a string into chunks, each of which is within a maximum character count, say 2000 and does not split a word. I have tried doing as below: ``` text.chars.each_slice(2000).map(&:join) ``` but sometimes, words are split. I have tried some regex: ``` text.scan(/.{1,2000}\b|.{1,...
2018/03/03
327
1,120
<issue_start>username_0: I trying to add a getter method to String so that it can be called like so: ``` 'make me bold'.bold ``` Without parentheses. Here is how I'm trying to define the function, as described [here](https://stackoverflow.com/a/35949617/929321). ``` String.prototype.defineProperty(window, 'bold', ...
2018/03/03
512
1,470
<issue_start>username_0: I’m trying to concatenate reviews from multiple paragraphs into one— i’m trying it like this: ``` for x in docs: with open(fp) as data_file: data_item = json.load(data_file) b = data_item['reviews'] for item in b: name = '000' + str(counter) + '.txt' file = op...
2018/03/03
455
1,557
<issue_start>username_0: I have an email field that's optional. The regex works fine accepting the empty string (^$) but now the issue is that the empty string is considered a unique entry. It will only allow one user to register without entering an email address. I know I have to set it to null, but not sure how. Som...
2018/03/03
1,436
4,340
<issue_start>username_0: I construct an object by filtering the keys based on some allowed keys: ``` const configObject = { key1: 'value1', key2: 'value2', key3: 'value3', key4: 'value4' }; const allowed = ['key1', 'key3']; const filtered = Object.keys(configObject) .filter(key => allowed.includes(key)) .reduc...
2018/03/03
155
512
<issue_start>username_0: The directory I'm working in is ``` C:\xampp\htdocs\example\profile\john_doe ``` I want to know how I'd echo `john_doe` using this? I'm using PHP<issue_comment>username_1: Try basename function. ``` echo(basename('C:\xampp\htdocs\example\profile\john_doe')); ``` This should echo 'john\_do...
2018/03/03
611
2,377
<issue_start>username_0: I started noticing that post requests sent to our application server are getting stalled for around 7 seconds on the browser side for no discernible reason. Environment : * Angular 1.4 * Play Framework * Chrome 64.\* * Server sent events (SSE) * POST request The number of TCP connections, ...
2018/03/03
758
2,859
<issue_start>username_0: In spectre vulnerability describing [paper](https://spectreattack.com/spectre.pdf), we can see that it talks about this specific vulnerability ``` if (x < array1_size) y = array2[array1[x] * 256]; ``` In spectre vulnerability, according to the paper, they first pass many legal values for...
2018/03/03
645
2,278
<issue_start>username_0: How to remove this warning? > > `warning: format '%d' expects argument of type ' int', but argument 2 has type 'int *' [-Wformat=] printf(“%d”,p1->j);` > > > Here's the code, everything works fine except for the warning. ``` void main() { struct s1 { int *j; }; s...
2018/03/03
876
3,269
<issue_start>username_0: If I run apt, I can update the package cache: ``` apt: name: postgresql state: present update_cache: yes ``` I'm now trying to use the generic `package` command, but I don't see a way to do this. ``` package: name: postgresql state: present ``` Do I have to run an explicit comm...
2018/03/03
831
3,140
<issue_start>username_0: I have number which can be strict number or can take this kind of format **12,314.00** (comma will separate long number and dot is used for decimal. How can I prevent the **must be a number** error when the number is formatted this way?<issue_comment>username_1: This is not possible. The modu...
2018/03/03
2,074
5,727
<issue_start>username_0: I have a problem with the shared memory between parent and child processes generated by a fork. I know how to use shared memory with primitive type as described [here](https://www.ibm.com/developerworks/aix/library/au-spunix_sharedmemory/). While I do not know how to share struct that contain...
2018/03/03
653
1,525
<issue_start>username_0: So I have the following string array : ``` amount = ['60 million', '1 million', '', '1.15 million', '1 million', '','2.48 million', '', '', '75 million', '1.25 million', '3 million', '67,000', '4 million', '', '63 million', '5.9 million', '170,000', '5 million', '22 million', '15.75 mill...
2018/03/03
636
1,725
<issue_start>username_0: I am on XCode 9.3, objective-c, OSX not iOS. I use an NSPredicateEditor in my app which works fine so far. However i have a view that shall update its content with the predicates set in the editor (basically the view shows filtered arrays). Currently i have a "Refresh" button the user needs ...
2018/03/03
388
1,474
<issue_start>username_0: I am trying to show/hide a `QLineEdit` (or some other widget) using `QCheckBox` or `QComboBox`.<issue_comment>username_1: You need to connect the `stateChanged` signal (for `QCheckBox`; emitted every time you check/uncheck the box) or `currentIndexChanged` signal (for `QComboBox`; emitted every...
2018/03/03
1,326
3,470
<issue_start>username_0: I have three arrays of same size (can be very long upto 5000). I have to look up for pair of values (this will always be unique) in the first two arrays, for ex,(2,3) and accordingly fetch the value from third array at the same index. What is the fastest way to do this or any simple python inbu...
2018/03/03
1,379
3,843
<issue_start>username_0: I am trying to import a csv file into the jupyter notebook using the following syntax ``` time_taken=pd.read_csv("C:\Users\intarvo\Desktop\complaints_data.csv") ``` But whenever I use this syntax there is an error message occurring ``` File "", line 1 time\_taken=pd.read\_csv("C:\Users\inta...
2018/03/03
3,738
11,840
<issue_start>username_0: The `WKInterfaceDevice.current().model` property does not give a model number: > > For Apple Watch, the value of this string is *Apple Watch*. > > > How can the exact Apple Watch model be determined from iOS? [![Watch app screenshot, image credits https://support.apple.com/en-us/HT204507...
2018/03/03
1,478
4,708
<issue_start>username_0: I'm simply trying to print a DateTime in its UTC equivalent time format. What am I doing wrong? ``` var utcEpoch = DateTime.Parse("1970-01-01", CultureInfo.InvariantCulture, DateTimeStyles.AssumeUniversal); //This specifies the time I provided is in UTC Console.WriteLine(utcEpoch.ToString("yyy...
2018/03/03
1,053
4,114
<issue_start>username_0: I have the following server.js get route ``` app.get('/', function(req, res) { var url; var final_res = []; endpoints.forEach(function(url){ request(url, function(error,response,body){ if(!error && response.statusCode == 200){ final_res.push(url.url); consol...
2018/03/03
1,107
3,483
<issue_start>username_0: Consider a class `A`, how can I write a template having the same behaviour as ``` A& pretty(A& x) { /* make x pretty */ return x; } A pretty(A&& x) { /* make x pretty */ return x; } ``` Knowing that I want to: 1. modify the argument (`x`) in the exact same way, independentl...
2018/03/03
872
2,713
<issue_start>username_0: I would like to show the average production cost of games that were produced between 2010 and 2015 and were rated higher than 7. My SQL query: ``` SELECT avg(production_cost) FROM games GROUP BY games.production_year, games.rating HAVING games.production_year between 2010 AND 2015 AND games.r...
2018/03/03
1,324
3,894
<issue_start>username_0: ``` CREATE OR REPLACE TABLE `tmp` ( `ord` int(5) unsigned NOT NULL DEFAULT 10000, `val` varchar(50) CHARACTER SET utf8 COLLATE utf8_estonian_ci NOT NULL DEFAULT '' ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO `tmp` (`ord`, `val`) VALUES (1,'foo'), (2,'baz'), (3,'baz'), (4,'foo'); ```...
2018/03/03
1,553
5,671
<issue_start>username_0: I have a program that takes students' names and grades as user input and then performs some operations on them, which are irrelevant for the scope of the question. The code is as follows: ``` import java.io.*; import java.util.Arrays; import java.util.Scanner; public class Student { // Four a...
2018/03/03
702
2,584
<issue_start>username_0: How do we make a command line options like this: [![enter image description here](https://i.stack.imgur.com/6Q4Ni.png)](https://i.stack.imgur.com/6Q4Ni.png) I would image the code would look like this ``` options = Hash.new() options['Monolithic'] = 'Monolithic application' options['Microserv...
2018/03/03
364
1,186
<issue_start>username_0: I dont get it - I cannot align the `RelativeLayout` in the `ListView` - that is I want to center the `RelativeLayout` that holds and image and some textviews. The `RelativeLayout` is still on the lefthand-side of the screen, though the listview-width should match the parent. What could be wron...
2018/03/03
1,361
5,448
<issue_start>username_0: I'm learning how to use dotnet-cli with VSCode. I've seen many commands on how to create solution, projects, add reference to projects... but I don't see anywhere in the documentation how to add a file. If remember, in RubyOnRails it was possible to add file from the command line. Thanks for ...
2018/03/03
414
1,471
<issue_start>username_0: I have a query that is updating a field in my table. It could be the case that that column to be updated can be `NULL` if that's the case i'd like to add `1` to that cell. Otherwise i'd like to add `1` to the current value of that field. ``` UPDATE SET Scheduled = Scheduled + 1 ``` Would wor...
2018/03/03
514
1,524
<issue_start>username_0: I'm making a javascript in order to open several links in a quick way of some html page (not mine). My code is this: ``` var a,b,c,d; a=document.getElementsByClassName("btn"); b=a.length; console.log(b); for (c = 1; c < b-1; c++) {tempo();abrir();} function tempo() {d=a[c].href;} function ab...
2018/03/03
650
1,950
<issue_start>username_0: I'm kind of confused on `d.items()` and `d.keys()`. My textbook said that they return view objects that are tuples but they can be changed? For instance, my code is this ``` d = {"Bob":27, "Frank":75} for key, value in d.items(): if d[key] == 27: d[key] = 20 print(d) ``` ...
2018/03/03
948
3,043
<issue_start>username_0: ``` polls/urls/py from django.conf.urls import url from . import views urlpatterns = [ url('', views.index, name='index'), url('/', views.detail, name='detail'), # ex: /polls/5/results/ url('/results/', views.results, name='results'), # ex: /polls/5/vote/ url('/vote/', views.vote, name='vot...
2018/03/03
559
1,959
<issue_start>username_0: I am trying to take out *url* from the table **users** and insert it into *url* of a table **images** from the current user logged in. This code is not able to insert the *url* in the **images** table. ``` $uploaduser = $_SESSION["username"]; $selectuser = mysqli_query("SELECT * FROM users WHE...
2018/03/03
457
1,575
<issue_start>username_0: Let's say I have two classes, object1 and object2. I want to add a object1 instance to the end of a linked list in an instance of object2 (that is, the method to add object1 to the linked list is in the object2 class). Supposing the linked list already has one object, why would the following no...
2018/03/03
1,198
2,954
<issue_start>username_0: I have a RSA Public Key in this format: ``` OpenSSLRSAPublicKey{modulus=9ee9f82dd8429d9fa7f091c1d375b9c289bcf2c39ec57e175a2998b4bdd083465ef0fe6c7955c821b7e883929d017a9164a60290f1622f664a72096f5d2ffda7c7825c3d657c2d13d177445fa6cdd5d68b96346006a96040f5b09baae56d0c3efeaa77d57602f69018f5cefd60cb5c...
2018/03/03
611
2,304
<issue_start>username_0: I have added two custom message handlers in my web api 2 application as shown here <https://learn.microsoft.com/en-us/aspnet/web-api/overview/advanced/http-message-handlers> Then registeted them in Register method as, ``` config.MessageHandlers.Add(new LogHandler()); config.MessageHandlers.A...
2018/03/03
524
2,022
<issue_start>username_0: So I want to make different versions of my website (color wise) with only html and css if possible. How do I make it so if someone clicks an icon the color of the page will change Website: ibrepository.com<issue_comment>username_1: After searching for hours I realised this happened due to addi...
2018/03/03
447
1,562
<issue_start>username_0: I'm using Gravity PDF and have a Nested field from Gravity Perks. I can view fields in the normal exploded results just fine, but am having trouble when I want to display the Nested field in a particular location using the PHP option. To be clear, I can get the normal $form\_data['field'] and ...
2018/03/03
222
644
<issue_start>username_0: how can i write this C expression in c++ using cout ? is this a valid statement in C++ too? ``` printf("%c",65+y); ```<issue_comment>username_1: Yes, you can use it the C way as long as you keep `#include` . A modern solution would be: ``` #include int main(){ int y = 5; std::cout << s...
2018/03/03
646
2,281
<issue_start>username_0: If someone could help me figure out how to search if a word exists in a file, I would greatly appreciate it. I do know how to read an entire text file though. And this is what I have so far: ``` public static void main(String[] args) throws IOException { File file = new File("words.txt")...
2018/03/03
700
2,596
<issue_start>username_0: I have the following code in C that allocate an AudioBufferList with the appropriate length. ``` UInt32 bufferSizeBytes = bufferSizeFrames * sizeof(Float32); propertySize = offsetof(AudioBufferList, mBuffers[0]) + (sizeof(AudioBuffer) * mRecordSBD.mChannelsPerFrame); mBufferList = (Aud...
2018/03/03
663
2,344
<issue_start>username_0: How do I implement a sliding window aggregation (or transformation) with a fixed-size count-based window? For e.g: If I have stream data like the following ``` input stream = 1,2,3,4,5,6,7,8... ``` Assume that time is not relevant here. And say my aggregate function is AVERAGE and window s...
2018/03/03
806
2,987
<issue_start>username_0: `Timer.periodic()` is great to have a function repeatedly execute, but is it possible to have the the timer cancel itself if an arbitrary condition is reached outside the function being executed by the timer?<issue_comment>username_1: One solution I found is to pass a function in to the timer t...
2018/03/03
1,287
5,074
<issue_start>username_0: ### What I'm Doing: I'm making a PyQt app that allows users to select a script file from their machine, the app then executes it using `exec()` on a separate `QThread` then shows them the results. I've already implemented all that, and now I'm trying to add a "Stop Executing" button. ### The ...
2018/03/03
981
3,808
<issue_start>username_0: This is the struct I have: ``` type Resource struct { Name string `json:"name"` Ranges struct { Range []struct { Begin int `json:"begin"` End int `json:"end"` } `json:"range"` } `json:"ranges,omitempty"` Role string `json:"role,omitempt...
2018/03/03
1,233
3,902
<issue_start>username_0: When I run the code below I do not get an error but the bottom frame doesn't appear in the window please can you tell me why and how I can make it appear (using the pack method NOT GRID please). I am using Python 3.5.0 ``` import tkinter from tkinter import * root = tkinter.Tk() root.geometry...
2018/03/03
1,118
3,706
<issue_start>username_0: I am using the virtual scrollbar of Angular 4 on a web page(in virtual scrollbar the list is loaded at runtime), but `ctrl+f` functionality is not working on the data that is not present in the DOM at some particular point of time. So to make `ctrl+f` work, the idea is to grab the input stri...
2018/03/03
791
2,776
<issue_start>username_0: ### issue I have two `ListViews` rendering inside of a `TabBarView` using a `TabController`. How do I preserve state (for lack of a better word) between each `ListView` so that: 1.) the Widgets don't rebuild and 2.) the `ListView` position is remembered between tabs. ### relevant code ``` c...
2018/03/03
516
2,068
<issue_start>username_0: A user tried to login to my app using Facebook login and they encountered the following error after being redirected to their native Facebook app: "Application Unavailable: The application you're trying to use is either no longer available or access is restricted". I'm not able to reproduce it...
2018/03/03
528
1,780
<issue_start>username_0: If I have the following example: ``` X-FileName: pallen (Non-Privileged).pst Here is our forecast Message-ID: <15464986.1075855378456.<EMAIL>> ``` How can I select the text ``` Here is our forecast ``` after "X-FileName .... \n" until "Message-ID" execluded? I read about lookahead ...
2018/03/03
761
2,507
<issue_start>username_0: Having trouble writing a power function inStandard Ml. Im trying to write a function called `exp` of type `int -> int -> int`. The application `exp b e`, for non-negative `e`, should return `b^e`. For example, `exp 3 2` should return 9. `exp` must be implemented with the function `compound`...
2018/03/03
655
2,673
<issue_start>username_0: I am building a simple app that has a PickerView with 3 selections that should link to 3 viewControllers each named FirstViewController, SecondViewController and ThirdViewController. But I am getting this error ``` > NSInvalidArgumentException', reason: 'Receiver () has no segue with ident...
2018/03/03
1,290
4,296
<issue_start>username_0: I have to extract text from PDF pages as it is with the indentation into a CSV file. Index page from PDF text book: ![](https://i.stack.imgur.com/WNdtb.jpg) I should split the text into class and subclass type hierarchy along with the page numbers. For example in the image, ***Application ser...
2018/03/03
268
851
<issue_start>username_0: I have a .json file like this: ``` import single from 'file.json' { "id": 4, "code": 4508099576, "important": [ { "id": 4, "name": "services" } ] } ``` I want to access "services" for render it. But the following syntax doesn´t work: ...
2018/03/03
565
1,859
<issue_start>username_0: I am trying to put a "col-sm-6" inside a row with checking a condition . But when null value is coming it is returning a blank div with ".col-sm-6" class, I need to hide that class when value is null. ``` {attribute.attributeValues.map((list, index) => {list.isSelected === 1 ? {list.tag\...
2018/03/03
2,655
7,813
<issue_start>username_0: I am aware this is a brute force and non optimal approach to solving the 3Sum problem. It does the job of detecting the triplets which sum up to zero. But I am looking for ways to detect duplicate triplets. I am not able to come up with the logic to look for similar triplet combinations which h...
2018/03/03
1,081
3,969
<issue_start>username_0: I'm trying to create a small code that asks a user to enter a number between 1 and 100. However my Else statement will not output when entering a string. I want my Else statement to print a message if the user enters an input other than an integer or float. Here is my code. ``` def between():...
2018/03/03
538
1,892
<issue_start>username_0: how can i update the contents of a dynamically created div as i type into an input field that was also created dynamically. First i have an input that requests the number of code blocks i want: ``` $("#count-trigger").click(function(){ var count = $("#slide-count").val(); if (count !=...
2018/03/03
349
1,458
<issue_start>username_0: ``` "ConnectionStrings": { "DefaultConnection": "Server=(localdb)\\mssqllocaldb; Database=ABC; Trusted_Connection=True; MultipleActiveResultSets=true"} ``` I am working with ASP.NET Core MVC. I have this connection string in my appsettings.json file but it doesn't seem to work. While running ...
2018/03/03
659
2,128
<issue_start>username_0: Is there a way ( How ) to implement a library that simplifies the use of switch, I mean instead of it : ``` switch (value) { case 0: case 1: console.log('0 Or 1'); break; case 2: case 3: console.log('2 Or 3'); break; default: conso...
2018/03/03
388
1,350
<issue_start>username_0: I want to disable `select` in Angular 4. I wrote code like below but `select` is not disabled. In the component: ``` import { FormBuilder, Validators, FormGroup } from '@angular/forms'; this.eventForm = this.formBuilder.group({ // ... some codes ... 'state': [true, Validators.req...
2018/03/03
4,766
14,557
<issue_start>username_0: I am using Kali linux and I am having difficulty installing the laravel framework. I havelooked up in different links like [this](https://stackoverflow.com/questions/40357524/cant-install-laravel-on-kali-linux) one and manyothers but nothing seems to work. For every this I do. It keeps bringing...
2018/03/03
712
2,997
<issue_start>username_0: I am trying to call private login: `LoginComponent`, however, my website wont load when I add private login: `LoginComponent`. My website load and runs fine before I add Login to the Constructor. What am I doing wrong? Can I not call private login: `LoginComponent`? I have attached class `Login...
2018/03/03
440
1,572
<issue_start>username_0: I am using `FriendlyId` across a bunch of different model. For a particular use-case with usernames, I can't use `FriendlyId` but still want to make sure the username is not being used as a slug in any of those models. Currently, I have a `.exists` query for each model using FriendlyId. It doe...
2018/03/03
792
3,076
<issue_start>username_0: When configuring OpenGL with glTexParamteri(GL\_Texture\_2D, GL\_TEXTURE\_MAG\_FILTER, ...) and glTexParamteri(GL\_Texture\_2D, GL\_TEXTURE\_MIN\_FILTER, ...) how does OpenGL decide which filter to use when accessing a texture in shader with texture(...)? My only guess it's that it is calculat...
2018/03/03
1,884
4,628
<issue_start>username_0: ``` localhost/index.php?proof_xml=%3CAuthProof%3E%3CTime%3E2018+Mar+03+16%3A42%3A06%3C%2FTime%3E%3CVEReqProof%3E%3CMessage+id%3D%22c12Wrq0yBXr3nLA2d3u1%22%3E%3CVEReq%3E%3Cversion%3E1.0.2%3C%2Fversion%3E%3CMerchant%3E%3CacqBIN%3E518670%3C%2FacqBIN%3E%3CmerID%3E5586000012131%3C%2FmerID%3E%3C%2FMe...
2018/03/03
787
2,437
<issue_start>username_0: I'm trying to implement the bubble sorting algorithm to an array of integers, the function which sorts the array takes an array as a parameter and suppose to return the sorted array. Here is the code: ``` #include using namespace std; int\* BubbleSort(int data[]){ for(int i=0; idata[j]){ ...
2018/03/03
603
2,004
<issue_start>username_0: I have an id in input box containing a division sign. How can I select this this element? ``` ```<issue_comment>username_1: You must pass in the size of the array because an array it `decays` to the pointer to its first element (element 0). ``` void BubbleSort(int data[], int size){ for...
2018/03/03
1,570
6,367
<issue_start>username_0: In my project, have a data provider, which provides data in every 2 milli seconds. Following is the delegate method in which the data is getting. ``` func measurementUpdated(_ measurement: Double) { measurements.append(measurement) guard measurements.count >= 300 else { return } e...
2018/03/03
333
1,023
<issue_start>username_0: In this program, I want to search for a `Number` from a list. When I search a number that is in the list, it works correctly. But if I search a number that it is not in list, it gives me this Error: `Traceback (most recent call last): File "fourth.py", line 12, in if(AranaElemean==liste[i])...
2018/03/03
2,076
4,712
<issue_start>username_0: Sorry if this question has been formulated before, but I am totalyy new and I tried what was suggested in other post here with no result. For example I tried: ``` do.call("rbind", lapply(MET1, as.data.frame)) ``` But it said: > > Error in as.data.frame.default(X[[i]], ...) : cannot coerce ...
2018/03/03
956
3,161
<issue_start>username_0: I am trying to log into a website. When I look at print(g.text) I am not getting back the web page I expect but instead a cloudflare page that says 'Checking your browser before accessing' ``` import requests import time s = requests.Session() s.get('https://www.off---white.com/en/GB/') head...