date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/02/24
908
3,212
<issue_start>username_0: I am new to logic apps and am trying to build an Auth request workflow to obtain a token for re-use in subsequent requests. The API I am connecting to requires that I first sign-in using a username and password in the body of the initial request. Assuming authentication is successful, it will ...
2018/02/24
573
1,937
<issue_start>username_0: How to convert `println` to format tnx? ``` int[] number = new int[5]; for (int i = 0; i < number.length; i++) { System.out.println("enter number :"); number[i]=input.nextInt(); } for (int i = 0; i < number.length; i++) { System.out.println("number ["+i+"]=" + number[i]+"")...
2018/02/24
819
3,051
<issue_start>username_0: I'm just learning javascript and ran into a problem. I'm trying to target the closest class and change the value, but I just keep getting Cannot read property 'innerText' of null at HTMLUListElement. Is this not possible or is there another way I should look into? Any help or guidance ...
2018/02/24
732
2,439
<issue_start>username_0: I created a tiny Go program on my computer: ``` package main import ( "fmt" "log" "net/http" ) func handler(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "Hi there, I love %s!", r.URL.Path[1:]) } func main() { http.HandleFunc("/", handler) log.Fatal(http.ListenAndServ...
2018/02/24
836
2,977
<issue_start>username_0: I have a window where I need to fire a specific method when this window closing, I did: ``` public FooWindow() { Closing += (x, y) => Exit(); } private void Exit() { if (someVariable) { Environment.Exit(1); } else { Close(); } ``` } when the Exit event is...
2018/02/24
346
1,278
<issue_start>username_0: I'm planning on doing a Jump and Run, so I need a moving pictureBox if I press W / A / S / D or something like that. I'm currently using the source code down there. The Problem I have right now is, that I've got a lot of Buttons, other Picture Frames, text boxes etc in my current Form1 and if...
2018/02/24
578
1,749
<issue_start>username_0: I write an optimization problem in Python that I will solve with Gurobi. However I do have a problem with one expression and I have no idea why it doesn´t work. My decision variable `x[i,j]` is binary. I have a parameter `a[j]` which is a dictionary and contains keys of string names of `j` an...
2018/02/24
188
636
<issue_start>username_0: In Linux there is folder `~/.gems` in my home. I want to move it to `/opt/Ruby`. How can I do that ?<issue_comment>username_1: You should set the `KeyPreview` property of the `form` to `true`, so you will get the key strokes *before* they reach the controls. ``` this.KeyPreview = true; ``` ...
2018/02/24
492
1,060
<issue_start>username_0: In PostgreSQL I have a two dimensional array, like: ``` SELECT ARRAY[[1,2,3],[4,5,6]] ``` and out of this array i want to retrieve the whole first ([1,2,3])array. Sadly something like: ``` SELECT (ARRAY[[1,2,3],[4,5,6]])[1] ``` doesn't work, since it returns a null. Is it possible?...
2018/02/24
863
3,482
<issue_start>username_0: I've noticed, when I try to use a realtime listener on a Collection in firestore, each time a new Document is added to the collection, the logic will be rerun, and I will download everything already in the collection right now: ``` firebase.firestore().collection("Tweets").onSnapshot(function...
2018/02/24
362
1,316
<issue_start>username_0: Basically what I need is to call `find` method each time value changes.I cant use `watch` option of VUE as I need to call same function for lot of models. `KeyPress` or `KeyDown` works almost fine except that it return the value without last char. For example if you enter `123` the `text` in `...
2018/02/24
1,070
3,410
<issue_start>username_0: I wrote an admittedly ugly program to crack by brute force a password of up to 5 alphabetical characters that is hashed by the DES-based crypt() function, but when run the program results in an infinite loop. I cannot identify the cause. Does anyone see where I'm going wrong? I'm just asking ab...
2018/02/24
915
3,266
<issue_start>username_0: I am trying to load 0xFFFFFFF9 to LR register at the end of an interrupt so that it can exit the interrupt. I am doing this as my code tampers with the LR register in the interrupt code. Simple MOV instruction seems not to work. Any suggestions on how to do it? Thanks in advance<issue_comment>u...
2018/02/24
1,883
5,279
<issue_start>username_0: [**SQL Fiddle**](http://sqlfiddle.com/#!18/5bdce/1) Background ---------- I have a table of values that some need attention: ``` | ID | AddedDate | |---------|-------------| | 1 | 2010-04-01 | | 2 | 2010-04-01 | | 3 | 2010-04-02 | | 4 | 2010-04-02 | | ...
2018/02/24
433
1,469
<issue_start>username_0: I am creating a simple php and js forget password.I have looked at other examples of this question but cannot find the answer. If someone could link an answer that is similar to mine, that would be great, alternatively, giving suggestions under this post would be great also. I have got the PHP ...
2018/02/24
1,965
5,324
<issue_start>username_0: I'm having a dataset which as the following ``` customer products Sales 1 a 10 1 a 10 2 b 20 3 c 30 ``` How can I reshape and to do that in python and pandas? I've tried with the pivot tools but since I hav...
2018/02/24
1,188
3,235
<issue_start>username_0: I am trying to retrieve only the sales records of specific 'Voucher Number' =5 by using below XML post request to tally. ``` 1 EXPORT data voucher register Headers Software Solutions Pvt Ltd Sales 5 $$SysName:XML ``` In XML Response I am receiving entire sales record from Voucher Number 1 ...
2018/02/24
775
2,897
<issue_start>username_0: I'm having trouble to create a unit test for my custom view. I try to add an attribute and test it if my custom view class get it right. Here's what my test looks like: ```java @RunWith(AndroidJUnit4.class) @SmallTest public class BaseRatingBarMinRatingTest { private Context mContext; ...
2018/02/24
635
1,792
<issue_start>username_0: I have a problem with a program. When I debug it the `fd2 is < 0` and does not get that if. Check it out. ``` printf("Enter file name: "); scanf(" %s", file_name); printf("Enter file name2: "); scanf(" %s", file_name2); fd=open(file_name, O_RDWR, S_IRWXU); fd2=open(file_name2, O_RDWR, S_IR...
2018/02/24
511
1,423
<issue_start>username_0: I would like to create a sequence of theta (1,100),(2,100),(3,100)...(100,100) `theta[1]` is `seq(from = 1 , to = 100 , length =100)` `theta[2]` is `1` How should I define theta?<issue_comment>username_1: `fd`, meaning "file descriptor", is a value returned by `open` that you can use for you...
2018/02/24
1,426
5,207
<issue_start>username_0: my objective is to eventually make a setting where the user can change the number of rows while looking at the catalog (spiritwoodart.com). I didn't even get past the first stage of fiddling when I ran into a problem. Guessing its a fundamental misunderstanding. Having trouble finding help (i.e...
2018/02/24
1,036
3,791
<issue_start>username_0: I am new to MongoDB so this is probably a basic question (hopefully). I currently have 10 million records with 410 fields loaded in a mongodb collection like so: ``` { "_id" : ObjectId("........"), "AddressID" : 123455, "IndividualId" : 1, "personfirstname" : "First...
2018/02/24
423
1,358
<issue_start>username_0: I have installed raspbian os on raspberry pi 3 model b. I have to perform a project which involves use of h5py. The os already came preinstalled with python 2.7 and 3.5 With the help of pip, I installed h5py and it was successful, for python 3.5. **ImportError: libhdf5\_serial.so.100: canno...
2018/02/24
6,447
9,187
<issue_start>username_0: I am trying to reshape this file with pivot and pivoed fonction but without any succes. Every user have two tiestamps, one at 19h and the second at 22h, every user have 3 variable and each variable has 8 index file sample : `DATA_STAMP;ID;VARIABLES;INDEX;VALUE 2018-02-19 19:15:25;6550692;cou...
2018/02/24
2,364
5,118
<issue_start>username_0: I want to use npm to run my test script in Ubuntu 16.04 LTS. However, it shows the following error: ``` npm ERR! Linux 4.4.0-116-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "test" npm ERR! node v4.2.6 npm ERR! npm v3.5.2 npm ERR! file /home/parth/Docum...
2018/02/24
847
3,147
<issue_start>username_0: These error are coming in the Login function. ``` UserInfo(v.user_name, v.user_fname, v.user_bloodGp, v.user_nationality, v.usertype, v.status, v.gender, v.usercnic, v.user_passport, v.mobilenumber); ``` `v.user_passport`, `v.mobilenumber` is underlined and these errors are showing. > > Er...
2018/02/24
416
1,545
<issue_start>username_0: I have a React project. The project was bootstraped with `create-react-app` with default configurations. I have defined an arrow function in a class in line 60: ``` handleClose = () => { this.props.history.push('/'); window.location.reload(); } ``` But on compilation, an error comes:...
2018/02/24
415
1,451
<issue_start>username_0: I would like to create a loop that goes through the range A1:A150 and sets the cell value to `=readmessage(Sheet2!A1)` with A1 changing dynamically with each cell. So with A2 it reads, Sheet2! A1. ``` function storeValue() { var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = s...
2018/02/24
681
2,467
<issue_start>username_0: I've got a table `locations`: ``` user | timestamp | state | other_data ------------------------------------- 1 100 1 some_data 1 200 1 some_data 1 300 0 some_data 1 400 0 some_data 2 100 0 some_data...
2018/02/24
1,750
5,612
<issue_start>username_0: I am using chart.js library. I am creating a graph and want to show dates in x-axis like here: <http://www.chartjs.org/samples/latest/scales/time/line.html> I have provided the same configuration (except the date format of graph data) for graph as the above example provides but my graph showin...
2018/02/24
1,599
5,277
<issue_start>username_0: I am trying to run mysql through docker and scripts. Everything works fine, it runs it creates users and database. I can connect to it using workbench, but it does not run `dump.sql` I get following error > > Access denied for user 'userxx'@'localhost' (using password: YES) > > > But if ...
2018/02/24
1,661
5,638
<issue_start>username_0: I am trying to do some text cleaning in Python for sentiment analysis. But instead of lumping all the text together and separating them, I want to clean the text by each sentence. To do that I used a `for` loop in my function but the issue is that it only returns 1 of the sentences in my datafr...
2018/02/24
684
2,584
<issue_start>username_0: I'm trying to set up a REST API server that could send push notifications using Firebase. [Google documentation](https://firebase.google.com/docs/cloud-messaging/android/topic-messaging) says this is a valid POST request, as a start : ``` POST https://fcm.googleapis.com/v1/projects/myproject-...
2018/02/24
759
2,501
<issue_start>username_0: im intend to return i.e an id where it doesn't exist in other table.(e.g. transactions), with additional condition users table ![users table](https://i.stack.imgur.com/zJyAh.png) transactions table ![transactions table](https://i.stack.imgur.com/aeHBc.png) aim was return id and name from u...
2018/02/24
606
2,175
<issue_start>username_0: I have created a custom menu on Google Sheets with two options: ``` function onOpen(e) { var menu = SpreadsheetApp.getUi().createMenu('Custom') menu.addItem('Add new store', 'openForm') menu.addItem('Update Database', 'replacebackenddatabase') } ``` When a user selects "Update Database" I...
2018/02/24
655
2,267
<issue_start>username_0: Using angular 4, I am redirecting the route with an empty path to *navbar* component. So I have added `pathMatch: full` and I placed this entry at the top in routes array. But I still get the following error: > > zone.js:522 Unhandled Promise rejection: > > **Invalid configuration of rout...
2018/02/24
736
3,312
<issue_start>username_0: I use NotificationManager, NotificationChannel and NotificationCompat.Builder to display a push notification when an event is triggered, no online Firebase. The push notification appears when my app is in foreground and background, but it only should appear when my app in the background. I h...
2018/02/24
720
2,944
<issue_start>username_0: Getting an error trying to run my Rails app. I think it might be a data issue based on a similar error I researched in Stack Overflow. Below is the output from the Command Line: ``` ActionView::Template::Error ('nil' is not an ActiveModel-compatible object. It must implement :to_partial_path.)...
2018/02/24
207
657
<issue_start>username_0: When I echo my path: ``` echo __DIR__ . '\..\functions\sanitize.php'; ``` I get this: ``` C:\xampp\htdocs\website\php\core\..\functions\sanitize.php ``` But it has to be like this: ``` C:\xampp\htdocs\website\php\functions\sanitize.php ``` Why doesn't my path go one step back? It doesn...
2018/02/24
597
1,853
<issue_start>username_0: After create a new display layer, how to set colour attribute to that layer? ``` sel = cmds.ls(selection=True,fl=True) coneGroup = cmds.group(empty=True,name="cones_#") dGroup = cmds.createDisplayLayer(coneGroup, n = "cones_cam") cmds.color(dGroup, (0,0,0)) ```<issue_comment>username_1: U...
2018/02/24
1,520
4,528
<issue_start>username_0: I am learning VueJS and using it with laravel 5.4. I am familiar with laravel. The problem I am having is displaying data from database in Vue components. Data is being retrieved successfully from the server. I cannot see this when I print retrieved data in the browser console. But it cannot be...
2018/02/24
350
1,192
<issue_start>username_0: I was trying to achieve something like this using lambdas. However, "i" has to be final. ``` int i = 1; for (Object obj : list) { if (something) { i++; } } ``` **edit:** But what if I wanted to add, let's say, a value that is different from object to object? ``` int i = 1; for (Object...
2018/02/24
877
3,094
<issue_start>username_0: Lets say we are extending a parent class A as ``` extension A { struct S { var x = "" } } ``` and we have another class that inherits class A e.g. ``` class B: A { } ``` As struct/enum are static members we can only call the struct S using class name A as: ``` A.S().x `...
2018/02/24
2,084
7,090
<issue_start>username_0: There is an app that uses play games service, but by some reason it stops working. it looks some times i can login successfully but usually - no. if i checked API traffic there is about 10% got response code = 200, and others - 404. methods that get 404: * games.applications.played * games.e...
2018/02/24
792
2,900
<issue_start>username_0: So I'm trying to use React Native's FlatList renderItem property, but something very strange is happening. The `data` property is set to an array which has elements which are not undefined, but then, in the `renderItem` function, it gives me an error saying that the argument of the function is...
2018/02/24
786
2,627
<issue_start>username_0: how can you print the first column then second column if the columns existed so basically `arr[0][0]` to `arr[0 to 7][0]` then `arr[0,2,3,5][1]` then `arr[2,5][2]` then `arr[2][3]` but in dynamic way as the length in every execution will be different ``` String[][] arr = new String [...
2018/02/24
1,168
4,867
<issue_start>username_0: Is it possible to implement 'batch fetching' in cloudkit, so that i can call a method to pull the next X records? Currently, according to [CloudKit Batch Fetches?](https://stackoverflow.com/questions/27134258/cloudkit-batch-fetches) cloudkit handles this implicitly, but I would like to somehow ...
2018/02/24
1,221
3,940
<issue_start>username_0: A couple of days ago I was working OK and committing stuff to GitHub without any issues. Yesterday I started to receive this on "git push": > > Warning: Permanently added 'github.com,192.168.127.12' (RSA) to the > list of known hosts. Permission denied (publickey). fatal: Could not > read...
2018/02/24
944
2,484
<issue_start>username_0: I tried to use the answer of [this](https://stackoverflow.com/questions/45823162/how-to-convert-string-array-to-int-array-in-kotlin) question to concert a string of items separated by `,` into list of Int, so I made this code: ``` fun main(args: Array) { val regex = "," val lines = "30,21,29...
2018/02/24
885
3,330
<issue_start>username_0: I am currently trying to understand the jhipster sample app at <https://github.com/jhipster/jhipster-sample-app> What I dont see how it is prevented that a user deletes a bank account that he doesnt own. In jhipster-sample-app/src/main/java/io/github/jhipster/sample/web/rest/BankAccountResourc...
2018/02/24
455
1,827
<issue_start>username_0: I'm want to remove from my view model's creating of view's I wrote WinodwsService class to creating a new window: ``` public class WindowService : IWindowService { public void ShowWindow(object viewModel) { //var win = new DXWindowCloasable(viewModel); var win = new DX...
2018/02/24
1,100
4,025
<issue_start>username_0: I have a schema through mongoose: ``` const mongoose = require('mongoose'); const recipeSchema = mongoose.Schema({ title: String, chef: String, updated: {type: Date, default: Date.now}, region: String, ingredients: [String], instructions: [String] }, { collection: 'recipes' }) module.export...
2018/02/24
3,847
15,085
<issue_start>username_0: I have a `Fragment` containing `ListView`. I'm adding some values to the database with a dialog and I want to update this `ListView` after dialog is dismissed. Also, when I change the tab, the `ListView` is not updated but when the application is turned on and off, the `ListView` is updated. ...
2018/02/24
730
2,558
<issue_start>username_0: I built a program to copy sheet one from all books in a directory, and paste them into the active workbook. I have roughly 1200 books in the directory, and without fail each time I run it excel reboots after around #125. No error messages. Anyway of getting around this? ``` Sub GetSheets() Pat...
2018/02/24
2,501
7,273
<issue_start>username_0: Finishing up a Photo Tagging practice widget and all I have left is a bit of a problem where the "x" boxes to close previously made tags can't be selected. I made sure that the code to close them works already, but due to how I'm using a layered div that follows the cursor I'm probably never ac...
2018/02/24
319
1,000
<issue_start>username_0: I've this code: ``` const eventNames = ['ready', 'click'] const node = ReactDOM.findDOMNode(mapRef) const mapConfig = { streetViewControl: false } this.map = new maps.Map(node, mapConfig) eventNames.forEach(e => { this.listeners[e] = this.map.addListener(e, this.handleEvent(e)) }) ``` And...
2018/02/24
864
3,029
<issue_start>username_0: When I try to build the following (simple) NGINX docker container <https://github.com/MarvAmBass/docker-nginx-ssl-secure>, it always fails with the following error: `stat /var/lib/docker/tmp/docker-builder00Whatever/basic.conf: no such file or directory` My directory looks like this: ``` ├── ...
2018/02/24
1,082
4,701
<issue_start>username_0: I am creating a locationrequest object of the LocationRequest class whose methods are used to determine the level of location accuracy my app needs. ``` private LocationRequest mLocationRequest; mLocationRequest = new LocationRequest(); mLocationRequest.setInterval(2000); mLocationRequest.setF...
2018/02/24
915
2,896
<issue_start>username_0: I want to implement a polymorphic quicksort. I would like to specify that type a in `IArray UArray a => [a] -> [a]` and `ST s (STUArray s Int a)` are the same type. How can I do that ? ``` {-# LANGUAGE FlexibleContexts #-} module Quicksort where import Control.Monad.ST (ST) import Data.Array....
2018/02/24
1,171
3,855
<issue_start>username_0: I've taken on project based on Visual Studio 2012. There the path to signtool.exe is found the following way: ``` $(WindowsSDK80Path)bin\x86\signtool.exe $(WindowsSDK80Path)bin\x64\signtool.exe ``` Now i want to port the project to Visual Studio 2017. With this installed this way to get the...
2018/02/24
1,418
4,688
<issue_start>username_0: I have created database in localhost ``` Illuminate\Database\QueryException : SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES (SQL: select * from information_schema.tables where table_schema = laravel5 and table_name = migrations) at F:\full stack\larav...
2018/02/24
1,927
6,847
<issue_start>username_0: I have a semi-dynamic HTML webpage which displays some data (i.e. a typical stock market quote) at regular frequency of Half hour. Currently I manually create a new version of my HTML page with new data and deploy it in my server (Amazon AWS). With this approach, User needs to manually refresh...
2018/02/24
343
1,097
<issue_start>username_0: ``` select * from text_mining where NOT EXISTS (select 1 from history where text_mining.Noun = history.Noun and text_mining.Adjective = history.Adjective) ``` can someone tell me what is wrong with this this are my errors Thanks > > Unrecognized keywor...
2018/02/24
5,517
14,814
<issue_start>username_0: When I try to restore my app from background it crashes as a result of irregular sequence of starting of fragments. But in case when app running from the scratch everything is ok. Fragments structure and logs please see below. I'm currently using regular fragments, but with support fragments s...
2018/02/24
735
2,667
<issue_start>username_0: In React I have state variable name1. Is there any difference between. Is there any difference between ``` this.state.name1 = value; ``` And ``` this.setState({name : value}); ```<issue_comment>username_1: You will usually set the initial state like this: ``` this.state = {name1: value...
2018/02/24
565
2,008
<issue_start>username_0: How to fix Line Length Violation? Relevant part of alert message that isn't allowed due to Line Length Violation: `message: NSLocalizedString("\nYou will be requested to Use %@ to Sign In. %@ doesn't share any information about you. The permission is required to post your Live Video.",` **⚠ Li...
2018/02/24
2,126
7,648
<issue_start>username_0: I am trying to build an API using API Gateway, Lambda, and RDS. So you type in the URL and get the specific rows from RDS back in a JSON format. **So this is what I would like to achieve.** * /production/myfootballapi?table=football -> all rows in the table should be returned (not working) *...
2018/02/24
4,050
16,178
<issue_start>username_0: Is there something special about the name `GameManager` in Unity that causes the designer to act differently? I have a class named `GameManager` that is derived from `ScriptableObject`, and the designer is doing a few things differently for that class versus my other `ScriptableObject` derived ...
2018/02/24
1,316
3,668
<issue_start>username_0: Is there a way to declare that simple graph in networkx : ``` simple_graph = { 'A': ['B'], 'B': ['A', 'C', 'D'], 'C': ['A'], 'D': ['E', 'A', ''], 'E': ['B', ''] } ``` in a easier way (more compact) than this : ``` g.add_edges_from([('A', 'B'), ('B', 'A'), ('B', 'C'),...
2018/02/24
497
1,931
<issue_start>username_0: I have multiple cubic curve that form shape I want to convert this shape to a polygon without loosing the curvatures of the curves they. I have a start point ,end point and two controls for each curve. Is there any algorithm or a way to convert this set of curves into polygon of multiple points...
2018/02/24
713
2,659
<issue_start>username_0: i'm building a website in nodejs with expressjs and i'm using express-sessions for handling the users sessions. here is my code. on app.js file from where the app starts. ``` app.use(express.static(path.join(__dirname, 'public'))); app.use(favicon(path.join(__dirname, 'public', 'favicon.ico')...
2018/02/24
394
1,629
<issue_start>username_0: I change my authentication table to "students" table with column name on my database "Password" and also change password field name on register blade to "Password" and same thing for email, its "Email" instead of "email" for both database and form field, everything was okay before i add validat...
2018/02/24
557
2,161
<issue_start>username_0: In the standard `public static void main(String[] args)`, I have noticed that (at least in Dr. Java), you can use other words besides `args`, but I have never seen any code that does deviate from this name. My questions are * Will using other words work in all versions of Java and development...
2018/02/24
676
2,435
<issue_start>username_0: Here's my problem: Write a program that generates integers between 1 and 100 and stores 25 even integers into an integer array named intList then displays the array on the screen AND a data file called evenIntegers.txt. Here's what I have so far: ``` #include #include using namespace...
2018/02/24
529
1,984
<issue_start>username_0: I have a root node "products" which stores various sub nodes such as sub\_product1, sub\_product2 etc. Each sub\_product node contains two or more objects ( of same class "Product"). I want to retrieve only 1 object from every sub\_product node and display it in recyclerview. Following is the d...
2018/02/24
486
1,761
<issue_start>username_0: Is there a way in Google spreadsheets to reach a url with just one click? right Now you need 2 clicks. The first click gives you the option to edit or to goto the link. I want for certain users it goes directly to the link. ``` =HYPERLINK(A3;"Uren registratie (PZ) ") ```<issue_comment>usernam...
2018/02/24
227
777
<issue_start>username_0: I'm making an app with ionic v3 and I wanna create a link that take you to the play store to download the app, I'm trying this: "<http://play.google.com/store/apps/details?id=packagename>" but how can I get the package name from Ionic v3 ? or exist another way to do this. I appreciate your hel...
2018/02/24
293
931
<issue_start>username_0: `:%s/foo/bar/g` This vim command has saved me lots of time. But today I accidentally typed `:%s/foo/bar` without the global (g) ending and it worked anyway! I was very confused. What's going on? Is it better to use the `/g` and why?<issue_comment>username_1: It does work even if you dont spe...
2018/02/24
707
2,746
<issue_start>username_0: I'm trying to look for a way to add monitoring targets and alerts to Prometheus programmatically via an API like Zabbix. For example, when my cloud orchestrator software deploys 3 new virtual machines, I will also add them as monitoring targets to Prometheus servers with some pre-defined rules...
2018/02/24
816
2,498
<issue_start>username_0: I have to find all the records have leading or trailing spaces as well as records having underscore(\_) with leading or trailing spaces in between the string from a table having a column as shown below:- Note:- \* is representing an space. ``` place_id place_name ----------- --------------...
2018/02/24
820
2,316
<issue_start>username_0: I am trying to write a function which accepts `Var1` and `Var2` from user and run the `t.test` and return the mean for female classification. But I am getting an error for the calc line. If I run the program without the paste and `as.formula` functions and run with `t.test(dat[[Var2]]~dat[[Var1...
2018/02/24
645
2,239
<issue_start>username_0: See this code: ```js var arr = []; arr.foo = 'bar'; console.log(arr.foo); ``` Now, we see that `arr.foo` doesnt throw an error and works, but technically it should throw an error so why doesn't it? Also, how is the above represented in memory, considering array blocks are mostly allocated ...
2018/02/24
566
2,067
<issue_start>username_0: My localhost (hosted in IIS) was working just fine including internal .net (C#) service endpoint. Recently I upgraded angular 4 to 5, I tested my endpoint from postman and it works. If I debug from visual studio instead of IIS , it sometime works and sometime not (you may be thinking weird here...
2018/02/24
695
2,187
<issue_start>username_0: This is my code in python ``` import tweepy import csv consumer_key = "?" consumer_secret = "?" access_token = "?" access_token_secret = "?" auth = tweepy.OAuthHandler(consumer_key, consumer_secret) auth.set_access_token(access_token, access_token_secret) api = tweepy.API(auth) search_twee...
2018/02/24
3,827
14,187
<issue_start>username_0: The [python documentation](https://docs.python.org/2/reference/datamodel.html#new-style-special-lookup) states that `__getattribute__` may be bypassed when looking up special methods. This is the result of implicit invocation via language syntax or built-in functions. For example, ``` elem =...
2018/02/24
2,389
9,807
<issue_start>username_0: I have a project with the following hierarchy : ``` Tharwa |_tharwa-backend |_tharwa-web |_tharwa-mobile ``` Each is subfolder is a repository in its own; I want to create the repository Tharwa that puts everything together. I have the following constraints however : * I don't want to ...
2018/02/24
2,835
12,823
<issue_start>username_0: See the following boarder of the each items (Border Spacing) [![enter image description here](https://i.stack.imgur.com/A9rC9.png)](https://i.stack.imgur.com/A9rC9.png) With collection view Header I am able to achieve the following out put but stuck at how to put separator inside the uicollec...
2018/02/24
2,761
12,499
<issue_start>username_0: I have a simple CSV text file called "allMaps.txt". It contains the following: ``` cat, dog, fish ``` How can I take the file name "allMaps" and use it as a key, along with the contents being values? I wish to achieve this format: ``` {"allMaps": "cat", "dog", "fish"} ``` **I have a ran...
2018/02/24
521
1,720
<issue_start>username_0: I'm using headless chrome to generate a long pdf document with Python/Django. Is there a way to remove header with date and footer with url and pages count from pages? Tried to use ``` @page{ margin: 0; size: auto; } ``` but with this css there are no margins, which i need. tried ...
2018/02/24
888
3,699
<issue_start>username_0: Simply speaking, `thread-safe` means that it is safe when more than one `thread` access the same resource and I know `Asyncio` use a single `thread` fundamentally. However, more than one `Asyncio Task` could access a resource multiple time at a time like `multi-threading`. For example DB con...
2018/02/24
703
2,693
<issue_start>username_0: I am no expert in how Python lists are implemented but from what I understand, they are implemented as dynamic arrays rather than linked lists. My question is therefore, if python lists are implemented as arrays, why are they called 'lists' and not 'arrays'. Is this just a semantic issue or i...
2018/02/24
949
3,926
<issue_start>username_0: I've searched all over the related questions on SO, tried basically all of their solutions, and have gotten nowhere. I want to have a bottom sheet modal dialog with a a few `EditText` and other components in it, using `BottomSheetDialogFragment`, which is easy enough. The problem I am having i...
2018/02/24
605
2,378
<issue_start>username_0: i'm using angular 4 and i'm using ng2-jalali-date-picker and this is the html code: ``` ``` i want to save the value ad Date in database. but i get string as the type. how can i get it as Date?<issue_comment>username_1: Please try adding below line in your manifest activity ``` android:wind...
2018/02/24
996
2,717
<issue_start>username_0: I have 2 different rectangles, I want the same size like 'Máscara'. I know that the image have different size. For that reason I want the same rectangle independently the image size. [![enter image description here](https://i.stack.imgur.com/z6QXD.png)](https://i.stack.imgur.com/z6QXD.png) T...
2018/02/24
665
2,525
<issue_start>username_0: ``` private void MailGonder(string to, string from, string password, string subject, string body, HttpPostedFile ektekidosya) { using (MailMessage mm = new MailMessage(from, to)) { mm.Subject = subject; mm.Body = body; mm.IsBodyHtml = false; SmtpClient...
2018/02/24
1,870
6,218
<issue_start>username_0: I am trying to add an external embed code to my Gatsby page. I currently use ``` import React from 'react' import Link from 'gatsby-link' let test =" (function(d, s) { var useSSL = 'https:' == document.location.protocol; var js, where = d.getElementsByTagName(s)[0], js = d.createElement(s...
2018/02/24
2,464
6,047
<issue_start>username_0: from given numpy array [1,2,3,4] and window wz=2 (two elements before and two elements after every element) I have to get pairs *(central el, el from window)*. Pairs with unexisting elements could be skipped or substituted by zero. So on this example I have to get this: ``` [[1., 0.] [2., 1.]...
2018/02/24
2,236
5,744
<issue_start>username_0: I have a question regarding promises in nodeJS when using Rethindb. This code will give me the results from db first time anything changes, not more. Lets say I start the script and add a row to the db, the new data will be printed in cmd. But if I add another one, nothing are shown. Something...
2018/02/24
3,886
12,514
<issue_start>username_0: One quickly learns commands, say in C, of the form ``` printf("%d", x); ``` or ``` printf("%lu", x); ``` But no analog of **%lu** or **%d** exists for binary representations of **x**. My question is firstly, why is this so, and secondly, at what point - at which level of abstraction - ...
2018/02/24
2,619
6,509
<issue_start>username_0: I have dataframe that has 6000 locations. For each location, I have 36 years daily data of rainfall in wide format. A sample data: ``` set.seed(123) mat <- matrix(round(rnorm(6000*36*365), digits = 2),nrow = 6000*36, ncol = 365) dat <- data.table(mat) names(dat) <- re...