date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/02/27
459
1,466
<issue_start>username_0: I want to store 1 billion record in single table and perform search operation frequently with very limited number of users. table format **Registration ID(unique) | Name | Age | Gender | Address** ABC/12/XY/34 | ABC | 25 M | some address goes gere **Question:** -Can i use mysql to store 1 ...
2018/02/27
406
1,640
<issue_start>username_0: When I run `git status`, I can see that certain files have been modified, but that get no more information. Is there any way to see the total number of lines changed/deleted/added in these files, even if they are unstaged/uncommitted? This would be helpful because I sometimes make major change...
2018/02/27
1,043
3,660
<issue_start>username_0: This code is really simple, but I just can't get it to work. It keeps saying the array goes out of bounds at line 8 (the while loop) and I have no idea why, cause `u` gets reset every time. Any ideas? It's probably a simple solution but thanks for the help. ``` public class potato { public...
2018/02/27
639
2,145
<issue_start>username_0: I have lua code to call microservices. Now I use ``` local requestId = ngx.req.get_headers()['X-Request-Id'] local host = ngx.req.get_headers()['Host'] local xForwardedProto = ngx.req.get_headers()['X-Forwarded-Proto'] local xForwardedPort = ngx.req.get_headers()['X-Forwarded-Port'] local xFor...
2018/02/27
1,526
5,099
<issue_start>username_0: I had an assignment that required us to generate a three digit number twice so a student can add them together and then check their work. I am still very, very new to C++ and my class regretfully provided no information on how to even do this. He provided no videos, articles, or anything on ran...
2018/02/27
951
3,574
<issue_start>username_0: below is my code and i want do not want Storyid whose value is 0 to be included in taskbugsworkitem. but story id value i am checking while selecting.i am still learning linq need help ``` var taskbugsworkitem = (from w in workItemcollectionList where (w.Type.Name == "Task") ...
2018/02/27
431
1,603
<issue_start>username_0: Quick question to Laravel and mysql expert, I have three queries as follow:- ``` // Only Can use slug here $post = Post::whereSlug($slug)->with(['category', 'author'])->first(); $prevPost = Post::where('id', '<', $post->id) ->select('id', 'title', 'slug') ->orderBy('id...
2018/02/27
363
1,359
<issue_start>username_0: i need to know the difference between this two input ? ``` ``` What is the difference ! both of them represent a numeric field ...! Is the only difference is how they display in the browser ? range = represented using a slider or dial control number = a numeric input with steppe...
2018/02/27
826
3,185
<issue_start>username_0: I need to upload a file using an API. I tried REST CLIENT and didn't find any options. Tried with HTTP POST and that responded with 415. Please suggest how to accomplish this<issue_comment>username_1: Error 415 is “Unsupported media type”. You may need to change the media type of the reques...
2018/02/27
887
3,424
<issue_start>username_0: I have created a simple table in MySQL with circular integrity . But It violates the circular integrity. It Shows successful Query execution but when tried to insert data , even though it violates the constraints its inserted. [Here is the screenshot of m mysql console](https://i.stack.imgur.co...
2018/02/27
513
1,785
<issue_start>username_0: I'm trying to parse an Json object and it has this data: ``` "ingredients":["White bread","Bratwurst","Onions","Tomato ketchup","Mustard","Curry powder"] ``` When I return the value, the textview prints this : ``` [White bread,Bratwurst,Onions,Tomato ketchup,Mustard,Curry powder] ``` I wa...
2018/02/27
3,641
11,481
<issue_start>username_0: Been trying to test out a simple ISA Option Rom program compiled with either FASM or NASM that just prints out a simple 'Hello World' message. Problem is instead of the string being printed I get a couple unexpected characters when testing it out in QEMU. The attributes work however and change...
2018/02/27
1,240
3,600
<issue_start>username_0: ``` Showing Recent Errors Only PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/sachinsr/Library/Developer/Xcode/DerivedData/ALL-IPO-News-ckurymjqzzhvlyaqgwdggoahngej/Build/Intermediates.noindex/ArchiveIntermediates/ALL-IPO-News/IntermediateBuildFilesPath/ALL-IPO-News.build/Release-iph...
2018/02/27
1,376
5,259
<issue_start>username_0: I'm launching a process using ProcessBuilder like so: ``` val pb = ProcessBuilder("/path/to/process") pb.redirectErrorStream(true) val proc = pb.start() ``` I'd like to do 2 things with the stdout of the process: 1. Continually monitor its most recent line of output 2. Log all lines to a fi...
2018/02/27
1,482
4,858
<issue_start>username_0: The code below was written for Linux and uses open, read, write and close. I am working on a Windows computer where I normally use fopen, fgets, fputs, fclose. Right now I get a no prototype error for open, read, write and close. Is there a header file I can include to make this work on a Windo...
2018/02/27
1,169
3,656
<issue_start>username_0: I have installed gdb 8.1 with brew. I have codesign gdb also and .gdbinit as below: `set startup-with-shell off`. I have disabled SIP feature: ``` $ csrutil status System Integrity Protection status: disabled. ``` But gdb still doesn't work: ``` #include using namespace std; int main(...
2018/02/27
475
1,775
<issue_start>username_0: I am getting "undefined" when making an HTTP get request, but only the first time I make the request. The second time and on the code seems to work perfectly fine. Below is my code: ``` let myData = ""; let dataTest = ""; $(document).ready(function(){ $("button").click(function(){ $.get...
2018/02/27
366
1,413
<issue_start>username_0: I need to retrieve data from SQL Server based on a checkbox list in VB.Net. When I check an item, all rows which contain that item must be displayed in a DataGridView. How do I make this happen?<issue_comment>username_1: Put the assignment into the `innerHTML` in the `get` asynchronous request'...
2018/02/27
790
2,889
<issue_start>username_0: Hello I am trying to implement an auth logic to my page. The issue I am having, after updating the state of my page, it doesn't remove the authenticated stuffs. How, do I clear the elements? I am trying to use a ternary operator, it does work. However it doesn't update when the user login or l...
2018/02/27
692
2,845
<issue_start>username_0: So, I'm trying to do something pretty simple. Basically, I am suppose to add a subscriber to a list of subscribers. If the subscriber is already there, I don't add it, if the subscriber isn't already there, I add it. And another option to remove an existing subscriber. I was able to get this to...
2018/02/27
537
2,028
<issue_start>username_0: I'm having problem with getting code coverage in Xcode. It was working at some point of time, however after sometime it has just stopped showing coverage. I've checked both the schemes and test coverage plane for the appropriate settings. This is how my scheme looks like: [![enter image descri...
2018/02/27
372
1,345
<issue_start>username_0: Is there a neater/more elegant way to cast `day` as the appropriate type, rather than `(<{P: string}>day).P` without resorting to the `any` type in this instance where I receive a `day` object from underscore.js via the findWhere command? If I just write `let period of day.P` it results in thi...
2018/02/27
417
1,389
<issue_start>username_0: I want to add new API to ASP.NET Boilerplate's template for ASP.NET Core. I've tried to make it, but I always get response code 500 on Swagger. How can I add new API? ![Error 500 on Swagger](https://i.stack.imgur.com/NXHGA.png) Update ====== > > Mvc.ExceptionHandling.AbpExceptionFilter - C...
2018/02/27
512
1,551
<issue_start>username_0: I have generated express application with `express-generator` ,everything works fine until i deleted the `node_modules` folder. after reinstall the node-modules `nodemon` is not starting the application. > > [nodemon] starting `node app.js` [nodemon] clean exit - waiting for > changes befor...
2018/02/27
6,824
19,115
<issue_start>username_0: I use Django-Rest-Framework, but get bellow error when I open the DRF APIs: The styles and Scripts can not load: ``` GET http://localhost:8000/static/rest_framework/css/bootstrap.min.css net::ERR_ABORTED localhost/:20 GET http://localhost:8000/static/rest_framework/css/bootstrap-tweaks.css ne...
2018/02/27
572
2,013
<issue_start>username_0: I am a new Android developer. I am working on a small project that works with sensors and services. I want to detect of the user is moving in the room or is stationary. in order to do this do I need to use accelerometer or GPS.<issue_comment>username_1: Try a fresh install. Make sure you are u...
2018/02/27
731
2,311
<issue_start>username_0: Need some light on the following: I have the following CSV data: ``` 0007,X1B2,"John,Jerome, Michelle", Kentucky,"Lawyer,Physician, Cardiologist",765468 ``` The data consists of multiple values within "". I'm having challenges in reformatting the data into the following format: ``` 0007,X1...
2018/02/27
1,786
6,021
<issue_start>username_0: I am trying to create a 5x5 mean filter to remove some salt and pepper noise from an image. I read the image into a numpy array. And tried making some changes to calculate the average value of a pixel's neighbors. The result I got is quite bad and I can't seem to figure out why there are gaps i...
2018/02/27
1,023
2,982
<issue_start>username_0: I am writing a code for a programming class that takes in a list of years and then displays whether or not they are leap years or not. When I run the code, after entering a list of years and hitting return, the file crashes. ``` #include #include #include int main(void) { std::vec...
2018/02/27
936
3,475
<issue_start>username_0: I have a data structure like ``` /Split // Collection {authid} // Document /SentIvitation //Collection {auto-id} //Documnet amount //array 0:10 1:10 2:10 Phonenumbers//array 0:987654...
2018/02/27
1,450
3,782
<issue_start>username_0: I have a 2D matrix that is, say, 4x3, i.e. 4 rows by 3 columns. ``` A = matrix([[1,2,3], [4,5,6], [7,8,9], [-1,-2,-3]]) ``` I have also a column matrix that is 4x1: ``` M = matrix([[1], [1], [1], [0]]) ``` I would like t...
2018/02/27
537
2,265
<issue_start>username_0: I have spent days trying to resolve this.. So I have a fragment layout. When I click a button, that fragment will show. Fragment has recycler(top) view and edittext(bottom) in it. So what i want is to show only the edittext layout will go up not including the recycler view layout,when I click t...
2018/02/27
2,483
8,408
<issue_start>username_0: I am unable to access a Google Compute Engine (GCE) VM (`$GCE_INSTANCE_NAME`) with the Google Cloud SDK (`gcloud`): ```sh gcloud compute \ --project=$GCP_PROJECT_ID \ ssh \ --zone=$GCE_INSTANCE_ZONE \ $GCE_INSTANCE_NAME #=> Permission denied (publickey). ERROR: (gcloud.compute.ssh) [/usr/bin...
2018/02/27
866
3,294
<issue_start>username_0: My react native application has the following nested navigation structure [![enter image description here](https://i.stack.imgur.com/P5l5a.png)](https://i.stack.imgur.com/P5l5a.png) e.g. [![enter image description here](https://i.stack.imgur.com/2JREe.png)](https://i.stack.imgur.com/2JREe.pn...
2018/02/27
718
2,603
<issue_start>username_0: I have file field like this: ``` ``` it works correctly when i click and choose file but it accept all type of files when i drag and drop files into it. Any idea ? FYI : i have fixed this issue by adding a server side validation.<issue_comment>username_1: The *accept* parameter is used to ...
2018/02/27
715
2,921
<issue_start>username_0: Is it possible to set-up and generate usage reports for Google Cloud Coldline Bucket? I am looking to track items like: Filename, Filesize, Download URL, Requester IP, Requester GEO, Download Status, etc.<issue_comment>username_1: You can definitely track some of the things you've mentioned, l...
2018/02/27
1,686
4,686
<issue_start>username_0: I have a problem I can't seem to understand how to do in R. I'll try and write it in pseudocode. 1. take contents from one cell of matrix$column 2. transform() group character i.e. "RA FG+ FZFG BR" using if statement, ie RA = 1, FG+ 3, FZ = 1, FG = 2, BR = 2" 3. sum total for each cell 4. repe...
2018/02/27
384
1,228
<issue_start>username_0: how to perform "like" action on a particular from a list of cards. **.html** ``` ![](img/marty-avatar.png) <NAME> ----------- November 5, 1955 ![](img/advance-card-bttf.png) Wait a minute. Wait a minute, Doc. Uhhh... Are you telling me that you built a time machine... out of a DeLor...
2018/02/27
702
2,261
<issue_start>username_0: I am using the spray json library for json formatting in scala. I followed the instruction [here](https://github.com/spray/spray-json#providing-jsonformats-for-other-types) to build a jsonformatter with custom types like this: ``` class Listing(val attr1:String, val attr2:String,...
2018/02/27
723
2,477
<issue_start>username_0: I am very new to Cognito. I have just successfully setup a signUp system using the examples provided and can use my iOS app to signUp users. I require the users to verify an email during the signup. Their data appears on the Cognito console and prior to selecting the link in the verification...
2018/02/27
400
1,468
<issue_start>username_0: I am loading JSON data from a Webpage into my React Native app, and would like to store the data in Redux. I'm currently using Fetch like so: ``` fetch('https://foo.com/product-data/product1.json') .then((response) => response.json()) .then((responseData) => this.state.productLoad(responseData...
2018/02/27
510
1,895
<issue_start>username_0: I am trying to workaround with **STL** stack where in I wish to display stack elements. But I don't find any efficient approach to display without popping each element.<issue_comment>username_1: `stack` is a container adapter and you can't access underlying container in a portable way. If you ...
2018/02/27
776
2,471
<issue_start>username_0: I am new to JSON data manipulation and I would like some help. I have a JSON file that looks like the below: ``` [ { "plannification": { "Data": 1, "DataType": "GB", "InclusionOption1": ".", "Default": false, "PropositionId": "GBT13456", "EssentialLin...
2018/02/27
2,111
6,680
<issue_start>username_0: New to Node and Typescript. I am getting an error that mongoose.connect is not a function when I run tsc. I have the following code: ``` import express = require('express'); import * as mongoose from "mongoose"; /** Routes for the app */ import apiUserRouter from "./api/user" class App{ ...
2018/02/27
322
1,185
<issue_start>username_0: I have a situation where i need to get the dates between specific dates and also get the dates which are not thr (meaning which are empty) Below is the way of query that am presuming to work like, please help me get corrected. ``` EvaluationTraining.find({ mnguser: userid, evalDate: "...
2018/02/27
737
2,711
<issue_start>username_0: I have `class car` and I use car as an attribute in `class App`. ``` class Car{ private: string color; public: //setter getter void setColor(string c){ color = c; } string getColor(){ return color; } } ``` and ``` class App(){ private: Car car; public: App():car(...
2018/02/27
727
2,656
<issue_start>username_0: I have a list that contains words, numbers & some random characters.I want to remove elements that contain other than UPPERCASE, Punctuation & Digits. ``` list_of_words = ['S I NGHVI', '', 'MGANPAT', '/', '', '', 'q', 'gq6', '14', 'A -_'] for i in list_of_words: for j in i: if ord...
2018/02/27
1,030
3,938
<issue_start>username_0: I'm decoding csv-file from base64 string: ``` byte[] input; using (var ms = new MemoryStream()) using (var cs = new CryptoStream(ms, new FromBase64Transform(), CryptoStreamMode.Write)) using (var tr = new StreamWriter(cs)) { tr.Write(data); tr.Flush(); input = ms.ToArray(); } ``` ...
2018/02/27
455
1,443
<issue_start>username_0: I have and array of arrays: ``` $initial_array = Array ( [0] => Array ( [Site Name] => Sydney [Product Name] => Admission [Total Sales Value] => 3989.98 [Total Sales Quantity] => 570 ) [1] => Array ( [Site Name] => Sydney [Product Name] => Admission Comp [Total Sales Value] => 0.00 [Total Sale...
2018/02/27
737
2,796
<issue_start>username_0: I have recently started developing an application with flutter using a plugin with android studio on windows 10. I was able to run app on android phone by connecting a phone with usb debugging mode. What are the steps to run the flutter app on my iphone? I have never built an app before for ios...
2018/02/27
1,569
5,707
<issue_start>username_0: I have 2 Linq Queries, 1st Linq Query returns 1148 records and 2nd returns 6667 records. They take 8 minutes in execution. Is there any way to make them faster while running parallel? ``` var productbacklogworkitem = (from w in workItemcollectionList where w.Type.Name == "Produc...
2018/02/27
261
1,082
<issue_start>username_0: I was tasked with moving a website from one domain to another, so i copied the file of the original website which was domain.com and moved it to domain.net went ahead and renamed all files and all contents accordingly (just took out .com and put .net instead using ctrl+F) the website is up but ...
2018/02/27
994
3,673
<issue_start>username_0: I am trying to get rid of violation og rule 16.1 from my code. Sample code: ``` switch (cmd) { case ADD: result = add(op1, op2); break; case SUB: if (!flag) { // Problem here! break; } //Fallthrough case ALU_CMD_SUB: ...
2018/02/27
514
1,787
<issue_start>username_0: This is the string I want to copy into clipboard: ``` mail from: ``` I tried ``` echo mail from:^ | clip ``` It gives me that "The syntax of the command is incorrect." but when I tried ``` echo mail from:^ ``` It shows the correct result. So I am wondering how should I modify the co...
2018/02/27
368
1,556
<issue_start>username_0: In the console.log, the var damage is undefined. What am I missing? I have defined damage in the prototype and still no go. Any ideas? Basically just want a random number generated and then subtract that number from the players health and display the remaining balance as the amount of damage ta...
2018/02/27
737
2,507
<issue_start>username_0: I can't seem to get the function addDetails to return a specific item in list newDetails that is created from appending the inputs from entry boxes I created from a loop. Please help. ``` import tkinter as tk from tkinter import* from tkinter import ttk import csv win...
2018/02/27
468
1,485
<issue_start>username_0: I have following sample data from text file ``` l1 l2 Start : a1 a2 a3 -} l3 l4 l5 Start : a4 a5 a6 -} ``` I want to extract lines between two tages "Start : " and -} I tried to extract details with regexp but output was coming in one line. I want output with newline Pl help.<issue_comment...
2018/02/27
813
2,937
<issue_start>username_0: According to the example given below , i don't want Class B or any other classes which extends `A` be able to override `funcA`. Can this be done in TypeScript ? If yes then, How ? ``` export class A { protected funcA(){ } } export class B extends A { //Not able to override fun...
2018/02/27
409
1,384
<issue_start>username_0: I am trying to come up with regex to validate iOS app's bundle id. This [link](https://help.apple.com/xcode/mac/current/#/deve21d0239c) was quite helpful. However I also need to validate length of supplied bundleid as well as length of strings between dots (here I am assuming there would be suc...
2018/02/27
618
2,049
<issue_start>username_0: I am wondering if it is possible to get arguments being passed to a map function in python if a condition matches. Take this code as an example: ``` from requests import get for res in map(get, ['https://google.com', 'https://bing.com']): if 'google' in res.text: # print 'https://...
2018/02/27
2,081
6,509
<issue_start>username_0: I came across a problem when i used android studio to import a project.More details below : ``` ``` Error:Execution failed for task ':app:transformClassesWithDexForArmDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.proce...
2018/02/27
572
2,052
<issue_start>username_0: Do we have any option/way to download a docker image using wget or curl. My docker image is present in Jfrog artifactory.<issue_comment>username_1: First, any curl command to an Artifactory repo would need the API key of your account. See "[How to use docker registry API with Artifactory Docker...
2018/02/27
2,012
7,895
<issue_start>username_0: Aren't modern compilers smart enough to be able to generate a code that is fast and safe at the same time? Look at the code below: ``` std::vector a(100); for (int i = 0; i < 50; i++) { a.at(i) = i; } ... ``` It's obvious that the out of range error will never happen here, and a smart comp...
2018/02/27
1,236
5,301
<issue_start>username_0: how can i set domain redirect on another domain that has SSL security certificate? i tried for redirect properly. i used htaccess code, i wrote all type code but i could't. please help me.my primary domain has SSL security certificate, so i can't redirect another domain on this domain.i could'...
2018/02/27
1,218
5,200
<issue_start>username_0: I have two packages named client and worker. I want to share same ssdb, mysql and redis connection with both the packages. One more similar problem that i am facing to share auth between these two packages. ``` app -> client pkg -> worker pkg main.go (contains auth as global variable) `...
2018/02/27
1,319
5,103
<issue_start>username_0: I have a UIButton in UICollectionViewCell. UIButton has a target on touch up inside event. How do I make sure that this target method is called on tap of button and not the UICollectionView delegate method?<issue_comment>username_1: Please try this code. On viewDidLoad method, here CollectionC...
2018/02/27
1,231
4,460
<issue_start>username_0: I am using sap.m.table with mode "SingleSelectLeft" and with Aggregation ColumnListItem of type "Navigation". On clicking of any of the items from the table, I want to show another page in split-app(detail page). I have put the routing code in the press event of ColumnListItem but this is lead...
2018/02/27
862
3,296
<issue_start>username_0: We know `\f` was used in C as form feed in earlier times. Still the escape sequence is for form feed. How does it behave in (modern) terminals now? It looks same as vertical space `\v` (rather than new line `\n` which we naturally expect). * Is `\f` the same as `\v` now when printed on screens...
2018/02/27
347
1,390
<issue_start>username_0: As the title says: If we cannot use access-protected modifiers within an interface then what can we use in c#? The only answer found is to use an abstract class?<issue_comment>username_1: Interface members are required to be public. If you need members with access modifiers that you are req...
2018/02/27
1,225
3,258
<issue_start>username_0: I have a query ``` $getitreult = ("select distinct Project_Name,meetings.Start_date as Mdate, meeting_next.meetingDate as M1date, time from meetings left join meeting_next on meetings.m_id=meeting_next.fk_m_id where meetings.Start_date BETWEEN '27-Feb-2018' and '28-Feb-2018...
2018/02/27
965
3,039
<issue_start>username_0: Im trying to evaluate Formula array to find a value from sheet with multiple criteria. The sheet name is Holiday\_master So in another sheet `Temp_data` I tried to exceute the following code to set that value in that cell using formula array ``` Public Function getCostMultiplier(dt As Date, w...
2018/02/27
325
1,276
<issue_start>username_0: If I want to run another version of tensorflow or keras, then I can install the same with specific version. But after that I want to rollback to latest version, and install tensorflow again with latest version say 1.6.0rc, it is installing, but when I check the version again, it is still pointi...
2018/02/27
1,555
3,751
<issue_start>username_0: > > Code: > > > ``` var cspaObj = {}; var associatedCspaList = responseData.data.associatedCspaList; responseData.data.associatedCspaList = []; angular.forEach(associatedCspaList, function (value, key) { cspaObj.clientId = value.slice(0, 4); cspaObj.systemId = value.slice(4, 8); cspa...
2018/02/27
985
2,964
<issue_start>username_0: I'm trying to make a simple subscription form, which consists of two elements: 1. Textbox - Floated left, fills up remaining space. 2. Button - Floated right, 100px width. The problem is I can't get the textbox to fill up the remaining width. ```css .container { width: 100%; } .input-...
2018/02/27
250
847
<issue_start>username_0: I'm facing the following error message when running my code > > permission denied: ./batch-represent/main.lua > > > I already installed torch at home/anskush/torch. and my main.lua ``` #!/home/ankush/torch th require 'torch' require 'optim' ```<issue_comment>username_1: On Unix-like s...
2018/02/27
741
2,467
<issue_start>username_0: I track several files in my project using `git lfs`. After that I `add` and `commit` them successfully. But pushing files to gitlab server using `git lfs push origin develop --all` command got the following error. `batch response: Access forbidden. Check your access level.` **Server configura...
2018/02/27
1,097
4,148
<issue_start>username_0: I have CI application which has change password functionality but somehow its returning nothing. Below is code which I have written: **Controller** ``` php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Password extends CI_Controller { public function __const...
2018/02/27
515
1,691
<issue_start>username_0: all. I am trying to create an array where I can change the color of the fonts within them. ``` Array Font Colors var colors= new Array("Black", "White", "Yellow"); for(var a=0; a<colors.length; a++){ document.write(colors[a]+ "<br>"); } ``` The above is what I have that makes the arr...
2018/02/27
2,683
8,230
<issue_start>username_0: Is there any possible way to achieve a non-lazy left to right invocation of operations on a list in Python? E.g. Scala: ```scala val a = ((1 to 50) .map(_ * 4) .filter( _ <= 170) .filter(_.toString.length == 2) .filter (_ % 20 == 0) .zipWithIndex .map{ case(x,n) => s"Result[$n]=$...
2018/02/27
724
2,561
<issue_start>username_0: I would like to view a summary of my total number of commits and total number of lines of code which I have committed to a particular repository on GitHub. Is there any way to do this using either: GitHub, Git Shell on Windows, or another tool which easily works on Windows or in a web browser? ...
2018/02/27
548
1,900
<issue_start>username_0: Need to connect to Windows 10 through BLE device. The problem is Windows 10 does not have support for BLE and I need to run a browser application(chrome/mozilla) which can connect and communicate with BLE device. I researched on google bluetooth web API but it works in linux well but not in win...
2018/02/27
637
2,114
<issue_start>username_0: Here is the query I tried, ```js $result = "INSERT INTO task_assign(assigned_to,assigned_by,end_on,task_title,task_desc,priority,task_status,history_assigned) VALUES('$assignTo','$assignBy','$endOn','$title','$description','$priority','$status','$assignTo')"; mysql_query("INSERT INTO notifica...
2018/02/27
672
2,063
<issue_start>username_0: If I have following JSON object: ``` let jsonObject = {a: {b: "c"}}; ``` and `if x = "a",` I know I can do ``` console.log(jsonObject[x]) // which prints {b: "c"} ``` But if I have x = "a.b", How can I do equivalent of `console.log(jsonObject.a.b) // prints "c";` I tried doing `conso...
2018/02/27
613
1,900
<issue_start>username_0: I've a timestamp which print date and time(24 hours format) ``` String timeStamp = new SimpleDateFormat("ddMMMyyyyHHmm").format(Calendar.getInstance().getTime()); ``` When I print timeStamp the output is ``` 27Feb20180051 ``` but I want something like this ``` 27Feb20180051EST ``` Any ...
2018/02/27
963
3,687
<issue_start>username_0: I have the following query that works as expected, but I'm needing to change it slightly. I have a @SearchType parameter that can have one of the following values: * ALL * FirstName * LastName * VerificationCode * IdentifierValue Depending on what is passed it should only do the below part o...
2018/02/27
1,070
3,214
<issue_start>username_0: Here below, I have a main DIV inside of which, three child div is present. My objective is to let the child divs equally share and fill up the height of the parent container. Additionally, I would like to add the fourth div so, that it will again occupy the equal and shared height of the parent...
2018/02/27
417
1,384
<issue_start>username_0: Right now with the code below, when i try to call the method, `Console.WriteLine(ss[0])` returns `System.IO.ReadLinesIterator` and `Console.WriteLine(ss[1])` returns this error: `System.IndexOutOfRangeException: 'Index was outside the bounds of the array.'` here's my code ``` static Stack Loa...
2018/02/27
455
1,599
<issue_start>username_0: How to redirect to different URLs when we click on each row in the table i.e, click on each row element must redirect to different URLs? I am working on Mustache Spring MVC framework where the entire data from MOngodb is retrieved onto a placeholder in the view page.So, now I need to be make t...
2018/02/27
885
2,965
<issue_start>username_0: How do I make my sidebar fixed? I am using Angular and the `router-outlet` is the component for the page and I want the sidebar and header to not move. What should I add in my css? Here is my code ```html ### Attendance Management System User Attendance Record Timestamp Cebu ``` >...
2018/02/27
533
1,897
<issue_start>username_0: As per this [stack overflow](https://stackoverflow.com/questions/29310828/use-custom-font-in-react-native) solution custom font can be used by calling it in each and every `Text` component. But we may happen to miss the same font family when we have some thousands of `Text` components in our Ap...
2018/02/27
1,423
4,941
<issue_start>username_0: ( Related Question: [PuTTY configuration equivalent to OpenSSH ProxyCommand](https://stackoverflow.com/questions/28926612/putty-configuration-equivalent-to-openssh-proxycommand?rq=1) but it is for a single ppk/pem file... my problem is slightly different.) I am trying to use PuTTY to get an S...
2018/02/27
450
1,789
<issue_start>username_0: My controller `PagesController` located to `vendor/dovstone/symfony-blog-admin/src/Controller` contains this code: ``` php //... class PagesController extends Controller { private $em; public function __construct(EntityManagerInterface $em) { $this-em = $em; d...
2018/02/27
796
2,261
<issue_start>username_0: ``` string nums; int main() { int cases; scanf("%d", &cases); while (cases--) { cin.ignore(); getline(cin, nums); cout << nums << endl; } } ``` input example ``` 3 1 2 1 2 1 2 3 4 1 2 5 10 50 3 50 3 5 2 7 1 7 5 2 8 9 1 25 15 8 3 1 38 45 8 1 ``` I expect right result...
2018/02/27
1,500
4,475
<issue_start>username_0: I have a MyDate(datatype DATE) column in My\_Table ``` MyDate 2016-11-01 0001-01-01 2016-08-01 ``` When i execute the following query ``` SELECT ISDATE(MyDate),* FROM My_Table ``` I am getting the following error > > Msg 8116, Level 16, State 1, Line 2 Argument data type date is invali...
2018/02/27
1,332
4,075
<issue_start>username_0: I have a table field with the actually size of an apartment, like 55.74, 66.27, 80.43 ... In the search for a suitable record I want to get a list of records that are ordered by closest to that value. If the user enter in the search field e.g. 65, then the order of the records would be: 66.27 ...
2018/02/27
1,293
3,997
<issue_start>username_0: I need to assign people to groups based on the preferences they set for each other. a’s preferences: b, d, c b’s preferences: a, c, d c’s preferences: a, b, d d’s preferences: a, b, c The correct answer would be {a, b} and {c, d} How would the algorithm to do this work? Would ...
2018/02/27
1,564
4,842
<issue_start>username_0: I have two data frames each of one column. One data frame is "contained" in the other in the sense that the index values and corresponding data are included in the other. In a way, the sub-data frame is just filtered data from the first. I want to take the data from the sub-data frame and appe...
2018/02/27
1,373
4,383
<issue_start>username_0: I know that this question is asked many times and have plenty of answers on here but my issue is not resolving with any of the answer provided. The issue is I am using datatables for one of my table and I have loaded my jquery in the exact same format as it is in datatables docs but still getti...
2018/02/27
1,457
4,529
<issue_start>username_0: I am trying to learn local module setup in my express js application. `test-module` folder is created in my project folder and it contains two files 1)index.js ``` module.exports = { indexfunc:function(){ console.log('ok from index'); } } ``` 2)hello.js. ``` module...
2018/02/27
639
2,187
<issue_start>username_0: ```js var range = document.createRange(); var root_node = document.getElementById("test"); // Start at the `hello` element. range.setStart(root_node.childNodes[0], 2); // End in the `world` node range.setEnd(root_node.childNodes[1], 2); range.selectNodeContents(root_node); let sel = w...