date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/17 | 214 | 755 | <issue_start>username_0: Hi I have a table containing records of status of each member of an organization. I would like to find out who among the members are still active based on the latest status provided in the table.Hee is a sample of records in the table:
[](https://i... |
2018/03/17 | 336 | 1,106 | <issue_start>username_0: React native documentation says python2 is required but what if python3 is installed?
will I get errors in react native app if python3 is installed?
I am using windows 10 and I am going to run it on Android.
also, I read python is necessary from [this question](https://stackoverflow.com/que... |
2018/03/17 | 411 | 1,114 | <issue_start>username_0: I have the next list:
```
abclist = ['a', 'b', 'c', 'd', 'e']
```
With the above list I how to create the next one?
```
Reversed_part = ['c', 'b', 'a', 'd', 'e']
```
Only the first 3 items are reversed and the last two stay in the same order.<issue_comment>username_1: This is one way.
``... |
2018/03/17 | 675 | 2,568 | <issue_start>username_0: I have a class named "Ciudad". When I want to add a migration to create the datatable, EF uses the name "dbo.Ciudads". I actually wanted the name to be "Ciudades" (with an additional 'e') so I changed it manually.
After updating the databse the table dbo.Ciudades was created successfully. I ev... |
2018/03/17 | 645 | 2,110 | <issue_start>username_0: in Controller
```
public function index(Request $request)
{
$search_cons = $request->all();
$search_con = $search_cons->name; //error place
return $search_cons.$search_con;
}
```
`->name` this place has the error
Trying to get property of non-object
Or in ... |
2018/03/17 | 580 | 2,297 | <issue_start>username_0: I am able to successfully retrieve a document in Firebase Firestore in JavaScript. But would like to validate that document against a user's entry in order to auth that individual into the page.
Using console log I see that I have retrieved the record but it is not matching it against the text... |
2018/03/17 | 1,152 | 4,630 | <issue_start>username_0: I am using the Forms provided by Laravel Collective and it is correctly installed.
What I'm trying to do is to validate the Form in `PictureController.php`
Just like this:
```html
php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Picture;
use DB;
class PictureCon... |
2018/03/17 | 830 | 2,532 | <issue_start>username_0: I have the following file that contains 2 columns :
```
A:B:IP:80 apples
C:D:IP2:82 oranges
E:F:IP3:84 grapes
```
How is possible to split the file in 2 other files, each column in a file like this:
File1
```
A:B:IP:80
C:D:IP2:82... |
2018/03/17 | 895 | 2,990 | <issue_start>username_0: I have a directory on my server that I need to clear out using PHP. I need to delete all files and folders inside this directory, however, I do not want to delete the main directory itself. Everything I have read, examples I have found, they all seem to delete everything inside the directory gi... |
2018/03/17 | 916 | 3,497 | <issue_start>username_0: I've tried this many different ways... don't know why this is redirecting still. I suppose in the past I've always used a button instead of a submit input and as such I never ran into this issue. However, I think it's time to get to the bottom of this!
HTML FORM
```
Contact
-------
Use th... |
2018/03/17 | 955 | 3,250 | <issue_start>username_0: please help me with the question below, I'm a beginner at programming trying to get my head around it
```
public class LandVille {
private int[][] land;
private boolean hasHouse;
public static void main(String args[]) {
LandVille landVille = new LandVille(3, 4);
landVille.displayLand... |
2018/03/17 | 467 | 1,736 | <issue_start>username_0: I changing HTML near the top of my website using JS and its not working I was having a similar problem earlier because the quotations were messing it up but i tried to fix it with that method but it still isn't working.
```js
document.getElementById("accTabs").innerHTML = "SIGN IN";
```<issue_... |
2018/03/17 | 675 | 2,661 | <issue_start>username_0: I have enabled `CTRL`+`ALT`+`DELETE` secure attention sequence (SAS) for windows logon using local security policy. (secpol.msc , Security Settings->Local Policies->Security Options->Interactive Logon: Do not require `CTRL`+`ALT`+`DEL` -> Disabled )
Currently the machine is using a facial base... |
2018/03/17 | 1,553 | 5,679 | <issue_start>username_0: I am processing a large directory every night. It accumulates around 1 million files each night, half of which are `.txt` files that I need to move to a different directory according to their contents.
Each `.txt` file is pipe-delimited and contains only 20 records. Record 6 is the one that co... |
2018/03/17 | 2,394 | 9,757 | <issue_start>username_0: I'm unit testing to see if a method is called.
```
[Fact]
public void Can_Save_Project_Changes()
{
//Arrange
var user = new AppUser() { UserName = "JohnDoe", Id = "1" };
Mock mockRepo = new Mock();
Mock> userMgr = GetMockUserManager();
user... |
2018/03/17 | 2,056 | 8,603 | <issue_start>username_0: suppose i have an object like this:
```
user = {
Fullname: "name",
password: "<PASSWORD>",
confirm: "anonymous"
}
```
so i want to check value of this object is empty or not and password have to be at least 6 character and maximum 30 character. Thank you for advanced
and here my cod... |
2018/03/17 | 1,241 | 5,543 | <issue_start>username_0: Lets say I have three models and tables i.e. Schools, Class and students.
The School and Class are in one to many relation and Class and students are also in one to many relationship. Now I am creating a RESTFUL API to send all these data at once in this JSON format:
```
[{
"1": {
... |
2018/03/17 | 444 | 1,423 | <issue_start>username_0: I'm trying to log in to: <https://localhost:5500/em/login>
First, I entered my credentials at the bottom right area. Then, I clicked the button.
After that, a pop-up appeared at the top of the page.
Why is it asking me this?
What should I input?
I tried putting the same values, but I still c... |
2018/03/17 | 701 | 1,833 | <issue_start>username_0: A point represents a coordinate in an x-y plane. It is supported by the following functions:
```
Point * make_point(double x, double y)
double x_of(Point *p)
double y_of(Point *p)
void print_point(Point *p)
```
A function `Point * mid_point` that accepts two points as arguments and returns a... |
2018/03/17 | 626 | 1,989 | <issue_start>username_0: this code will be used for Full Calendar JS :)
This is my PHP Loop, I got the data with my 'events' table on mysql db.
```
$query = "SELECT * FROM events";
$listEvents = mysqli_query($DB, $query);
while($row = mysqli_fetch_array($listEvents))
{
$id = $row['event_id'] ;
$title ... |
2018/03/17 | 548 | 1,776 | <issue_start>username_0: I'm trying to create a Like/Unlike button with jQuery! Here's what I did,
Here's the HTML,
```
{% if request.user in likes.all %}Unlike{% else %}Like{% endif %}
```
Here's the jQuery,
```
$('.like-button').click(function(){
var x = $(this);
x.toggleClass('like-button');
if(x.ha... |
2018/03/17 | 914 | 2,694 | <issue_start>username_0: I had this simple code which uses python re module's placeholder..
```
(?P...)
```
My goal is to get the value(number) just before the "/" character. The value's length can range from 4 and so on...
I have written this code below.
```
import re
s = "hello world 1234/book"
x = r"^h.*(?P[0... |
2018/03/17 | 821 | 2,756 | <issue_start>username_0: I am using the following function in my model:
```
function uploadsinglepicture($uploadpath){
$config['upload_path'] =$uploadpath;
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size'] = '';
$config['max_width'] = '';
$config['max_height'] = '';
$this->load->... |
2018/03/17 | 1,113 | 4,010 | <issue_start>username_0: Let's say I want to design a naive application, which has the following three tables:
[](https://i.stack.imgur.com/GLsjm.png)
There are two many-to-many relationship:
1. A customer may has many favourite avatars, an avatar may be used by many cus... |
2018/03/17 | 814 | 3,268 | <issue_start>username_0: I'm submitting this question for two reasons: I'm having difficulties using `DBreeze` database engine running under `Mono`, but I've found a workaround, it may help others resolving this exact problem (I post the workaround as an answer), and if anyone else knows a better solution I'd be thankf... |
2018/03/17 | 1,540 | 7,098 | <issue_start>username_0: I want to do something like this:
```
statusReady: boolean = false;
jobsReady: boolean = false;
ready() {
return Promise.all([statusReady, jobsReady]);
}
```
...and the idea is basically so later I can do this:
```
this.ready().then(() => {
// Do stuff here when we're all ready
});
``... |
2018/03/17 | 697 | 2,595 | <issue_start>username_0: I'm currently using Twilio for an SMS to email integration.
The code Twilio provided needs to live on a public URL in order for the integration to work. There's no reason any human would need to access this URL.
Unfortunately, the code living on a public URL means that random web crawlers can... |
2018/03/17 | 573 | 1,958 | <issue_start>username_0: I want to get data from multiple api in django using `request.get()` method. Normally we fetched data like this:
```
response = requests.get('http://freegeoip.net/json/')
```
Is it possible to get data from 3 different api like this.
```
response=requests.get('http://freegeoip.net/json/','h... |
2018/03/17 | 654 | 2,124 | <issue_start>username_0: I have a usecase that I would like to split. Below is the output of a program in a txt file. I need the VALUE part alone to be written in another txt file to be read by another process.
**OUTPUT: "Id": "/Name/VALUE",**
I tried
```
$text.split('/')[1].split(' ')
```
but it resulted in... |
2018/03/17 | 668 | 2,237 | <issue_start>username_0: When I import a module in a app.ts script, the '.js' file extension is missing in the import line of the compiled js file.
app.ts `import {ModuleA} from './ModuleA'`
compiled app.js `import {ModuleA} from './ModuleA';`
I include it in the html file like this
But the browser can't find the ... |
2018/03/17 | 662 | 1,842 | <issue_start>username_0: While trying to configure odoo 10 with Pycharm, I receive the following error. However running it from terminal works fine.
My openerp-server.conf file:
```
[options]
; This is the password that allows database operations:
admin_passwd = <PASSWORD>
db_host =False
db_port =False
db_user = odo... |
2018/03/17 | 1,159 | 4,036 | <issue_start>username_0: I have two tables in MySQL where one is referencing another.
The first one is the `users` table
[](https://i.stack.imgur.com/hlpWz.jpg)
The second table is the `event` table which contains the `creator_id` referencing the ... |
2018/03/17 | 1,272 | 4,894 | <issue_start>username_0: I've been really digging [FastJsonAPI](https://github.com/Netflix/fast_jsonapi). Works great.
Is it possible to set the `set_type` [serializer definition](https://github.com/Netflix/fast_jsonapi#serializer-definition) on a per-object basis?
i.e. I'm using Rails STI (single table inheritance).... |
2018/03/17 | 565 | 1,979 | <issue_start>username_0: I have a markdown (MD) page on GitHub in a public repository that I want to add some additional information when someone clicks on a hyperlink. Ideally something similair to [Bootstrap's Popover](https://getbootstrap.com/docs/3.3/javascript/#popovers).
Is this possible and if so how?<issue_com... |
2018/03/17 | 840 | 2,824 | <issue_start>username_0: I have this bit of code to check if my MongoClient is already connected:
```
connect(): Promise {
const self = this;
if (this.client && this.client.isConnected()) {
return Promise.resolve(null);
}
return MongoClient.connect(this.uri).then(function (client) {
const db = client.db('loca... |
2018/03/17 | 2,082 | 6,822 | <issue_start>username_0: I have a simple box for a project image, title, and description. On desktop, I have some jquery that brings up the project description on mouse enter. On mobile, I want this to just be a block of text that is always visible instead. What I've tried so far is to just "cancel" the javascript on m... |
2018/03/17 | 418 | 1,607 | <issue_start>username_0: When I run this cpp code in devC++:
```
#include
using namespace std;
#include
void getdata();
void dis();
void getdata()
{
int radius;
cout<<"\n enter radius of circle:-";
cin>>radius;
}
void dis()
{
int rad;
cout<<"\n num is "<
```
My output shows:
```
enter radius of circle:-... |
2018/03/17 | 909 | 2,729 | <issue_start>username_0: So im trying to accept input of an RGB color values,which means they have to be integers within 0-255,such as:
>
> 123,245,230
>
>
>
but i want to make sure that they have formatted it correctly, so i'm taking the input as a string and im trying to force it into a list.
my original soluti... |
2018/03/17 | 782 | 2,403 | <issue_start>username_0: I would like to download Wikidata for a single entity. I know I can achieve using the URL, for example:
`https://www.wikidata.org/wiki/Special:EntityData/Q42.rdf`
Will give me Wikidata for **<NAME>** in RDF format.
But this data is fully, meaning complete with meta-data such as qualifiers an... |
2018/03/17 | 506 | 1,502 | <issue_start>username_0: I have following data in my table
```
column1 count1
1 2
2 3
2 5
3 4
3 1
4 3
5 4
6 7
7 3
8 0
9 2
10 1
```
Following is the output I want:
```
id sum(count1)
1 2
2 8
3+ 25
```
Following is the query I am using for this :
```
SELECT column1 AS id,sum(count1) F... |
2018/03/17 | 1,613 | 6,108 | <issue_start>username_0: In Java Precisely 3rd Ed., there's the following code snippet:
```
BiConsumer> arraySorter = Arrays::sort;
```
However, I noticed that even when I leave out after `::`, the method reference is still valid (which makes sense due to type parameters for `BiConsumer`).
However, I'm pretty conf... |
2018/03/17 | 657 | 2,092 | <issue_start>username_0: I have a process `MYPID=18686` that I am monitoring with top.
```
top -b -n 1000 -d 5 -p $MYPID | tail -1 > log.txt
```
When the process dies, the output file is empty.
My end goal is just to record cpu usage over the lifetime of that process. Specifying `-n 1000 -d 5` is a cheap workaroun... |
2018/03/17 | 1,303 | 4,390 | <issue_start>username_0: I just started learning android,
trying an app which has a button , on click of `button`
>
> (MainActivity)
>
>
>
, a second activity
>
> (SecondActivity)
>
>
>
loads which has cardview image, on clicking it another activity
>
> activity\_swami
>
>
>
opens up which has to lo... |
2018/03/17 | 193 | 617 | <issue_start>username_0: [](https://i.stack.imgur.com/P1dr1.png)
[](https://i.stack.imgur.com/ktmB3.png)
**after page Refresh Permissions are empty**
How to avoid deleting of permiss... |
2018/03/17 | 740 | 2,635 | <issue_start>username_0: I am trying to update the quantity of the `Products` table via a stored procedure.
I am using an Oracle database in SQL Developer.
```
create or replace procedure alter_products
(
pid in number :=''
,qty in number :=''
)
as
begin
UPDATE PRODUCTS
SET P_QUANTITY = (select P_QUANT... |
2018/03/17 | 1,335 | 4,440 | <issue_start>username_0: I'm confused on how would i get the checkbox value so i get the "amount" and the "total" values. The computation is pretty simple. The checkbox value is 1.20 or 20%. The amount is (quantity \* price) / checkbox value, if the checkbox value have a check on it. And the total value is only (quanti... |
2018/03/17 | 627 | 2,094 | <issue_start>username_0: I want to click an add to cart button in an ecommerce website, my problem is every item has a different button id. and i notice that the id is located in the div.
i try to select a wild card since every item has a different id.
```
addcart = driver.find_elements_by_css_selector("div[id*=\"add... |
2018/03/17 | 825 | 2,811 | <issue_start>username_0: ```js
function CalcVolume() {
var radiusvalue = document.getElementById("radius").value
if (radiusvalue) {
if (isNaN(radiusvalue)) {
alert("Provide a number")
return;
}
volumevalue = 4 * 3.14 * radiusvalue * radiusvalue * radiusvalue
document.getElementB... |
2018/03/17 | 678 | 2,252 | <issue_start>username_0: [how to make like this one top and bottom with bootstrap](https://i.stack.imgur.com/RhZ6Y.png)
[how to float text-center with background color with bootstrap](https://i.stack.imgur.com/tDMi4.png)<issue_comment>username_1: The `form` gets submitted.
You can add `onsubmit="return false;"` to
... |
2018/03/17 | 567 | 2,047 | <issue_start>username_0: I have an API method where the user can pass in their own query. The field in the collection is simply ns, so the user might pass something like:
```
v.search = function(query: Object){
// query => {ns:{$in:['foo','bar',baz]}} // valid!
// query => {ns:{$in:{}}} // invalid!
// qu... |
2018/03/17 | 662 | 2,465 | <issue_start>username_0: I'm writing a Django application and building the form manually.
```
{% csrf\_token %}
Value 1
```
my `models.py` contains
```
class TeachingLanguage(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
category = models.ForeignKey(Category, ... |
2018/03/17 | 3,020 | 10,087 | <issue_start>username_0: I'm building a simple neural network that takes 3 values and gives 2 outputs.
I'm getting an accuracy of 67.5% and an average cost of 0.05
I have a training dataset of 1000 examples and 500 testing examples. I plan on making a larger dataset in the near future.
A little while ago I managed t... |
2018/03/17 | 2,358 | 8,165 | <issue_start>username_0: I want to remove duplicate values for states in chartDataResults2 array:
```
for (i = 0; i < dataResults.length; i++) {
function groupBy(array, f) {
var groups = {};
array.forEach(function(o) {
var group = JSON.stringify(f(o));
groups[group] = groups[group] || [];
g... |
2018/03/17 | 747 | 2,811 | <issue_start>username_0: I am running excel 2003 and trying to call a couple of different macros, based on the cell value (all in the current worksheet). My macro doesn't work and I am having trouble to understand why - here is the macro:
```
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Tar... |
2018/03/17 | 591 | 2,099 | <issue_start>username_0: There is a new option for the End User in Windows 10 Creator's Update Edition. The End User can change properties for an EXE on the compatibility tab to "Override High DPI Scaling Behavior" and set it to System (Enhanced). I tested it and it works well for some classic win32 apps.
I want to to... |
2018/03/17 | 658 | 2,156 | <issue_start>username_0: I have a pattern which looks like:
```
abc*_def(##)
```
and i want to look if this matches for some strings.
E.x. it matches for:
```
abc1_def23
abc10_def99
```
but does not match for:
```
abc9_def9
```
So the \* stands for a number which can have one or more digits.
The # stands for a... |
2018/03/17 | 524 | 1,787 | <issue_start>username_0: Here is a snippet of code that is used so a textbox ("TxtInput1") has only one decimal in it and only numbers in it:
```
private void TxtInput1_TextChanged(object sender, KeyPressEventArgs e)
{
if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar) && (e.KeyChar != '.'))
{
... |
2018/03/17 | 1,226 | 3,418 | <issue_start>username_0: I am using **sqlsrv database** connection in my project as I need to connect to Microsoft SQL Database.
I have successfully installed the **sqlsrv driver** because I can connect to the Database to retrieve data.
But when I try to do the Laravel Migration, it shows an error:
```
Illuminate\Da... |
2018/03/17 | 812 | 2,733 | <issue_start>username_0: I am using Retrofit 2 on Android Studio to get list string no names from WORDSAPI SYNONYMS.
I got JSON from
>
> <https://wordsapiv1.p.mashape.com/words/go/synonyms?mashape-key=>{my-key}
>
>
>
----JSON----------
```
{
"word": "go",
"synonyms": [
"proceed",
"run",... |
2018/03/17 | 1,750 | 4,982 | <issue_start>username_0: I want to use the tr command to map chars to new chars, for example:
>
> `echo "hello" | tr '[a-z]' '[b-za-b]'` Will output: `ifmmp`
>
>
>
(where each letter in the lower-case alphabet is shifted over one to the right)
See below the mapping to new chars for `'[b-za-b]'`:
>
> `[a b c d ... |
2018/03/17 | 893 | 3,361 | <issue_start>username_0: I'm having a weird issue with `asyncio.Queue` - instead of returning an item as soon as it available, the queue waits until it is full before returning anything. I realized that while using a queue to store frames collected from `cv2.VideoCapture`, the larger the `maxsize` of the queue was, the... |
2018/03/17 | 1,024 | 3,770 | <issue_start>username_0: I am working on a task with different modules.
I require a common mongodb connection for each and every module..
How can I write in some module and use in this because the db connection is also required in some other modules...
```
var MongoClient = require('mongodb').MongoClient;
var url = ... |
2018/03/17 | 704 | 2,606 | <issue_start>username_0: [TinyDb class is here](https://github.com/kcochibili/TinyDB--Android-Shared-Preferences-Turbo)
im using it simply by default codes like : `TinyDB tinyDB = new TinyDB(MyActivity.this);` and `tinyDB.putInt("hadi" , 10);`
but im getting an error that i cant understand . it say tinyDB is null obj... |
2018/03/17 | 990 | 3,249 | <issue_start>username_0: Just confused as to why when hover with border-bottom the border plays well with the content but when changed to border-top it pushes down the content.
Here's the code...
```css
ul {
list-style-type: none;
margin: 0;
padding: 0;
width: 15%;
position: fixed;
background-co... |
2018/03/17 | 691 | 2,195 | <issue_start>username_0: For a bit of a practice assignment, my professor challenged the lecture to write up some code that removes HTML tags from a string of text. He mentioned a specific command that we would learn later on that would do this for us, but he wants us to do so manually.
Here's what I have so far:
```... |
2018/03/17 | 5,239 | 19,909 | <issue_start>username_0: I've made a very simple Android puzzle app with a ViewPager that lets the user swipe through an array of puzzles. I'm seeing an error in production that I don't know how to reproduce or debug:
```
java.lang.IllegalStateException:
at android.support.v4.view.ViewPager.a (ViewPager.java:204)
... |
2018/03/17 | 520 | 1,762 | <issue_start>username_0: I want to define length for some particular columns in select statement and i want to concatenate the two columns i.e `sponsor id` and `sponsor` like "ABC-123" in SAS proc sql . Please help
here is the code
```
proc sql;
select
project_id,
sponsor_id,
empl_country,
region,
... |
2018/03/17 | 1,040 | 4,044 | <issue_start>username_0: I have an activity which let user click on any mood he is in. I have created a gridView and inflated it with relative layout containing an imageView and a textView. I have set a customAdaptor to it. I have set onItemClickListener on gridView but it is not responding.
Java class and adaptor cla... |
2018/03/17 | 1,243 | 3,571 | <issue_start>username_0: I have a binary image of cells. I want to use python to separate these cells individually. Each cell will save in an image. For example, I have 1000 cells, then the output will be 1000 images, each image contains 1 cell. Currently, I am using two ways to obtain it but the output is wrong
```
f... |
2018/03/17 | 958 | 3,774 | <issue_start>username_0: I have an interesting problem, maybe I'm approaching this problem wrong but I feel that I'm on the right track. I am trying to make a superclass that my subclasses can reference. So I have most of the code setup but can't figure out the default constructor here is the error I'm getting:
>
> C... |
2018/03/17 | 648 | 1,765 | <issue_start>username_0: In the following data frame, I need to take the mean of all values in `a, b , c`
```
values <- data.frame(value = c("a", "a", "a", "a", "a",
"b", "b", "b",
"c", "c", "c", "c"), i = c(1,2,3,4,5,6,7,8,9,10,11,12))
```
To achieve this, I t... |
2018/03/17 | 400 | 996 | <issue_start>username_0: Code to receive message like "hi i am man" and convert it to upper case "HI I AM MAN".
```
n = read(newsockfd, buffer, 255);
printf("Here is the message: %s\n", buffer);
```<issue_comment>username_1: Here is another easy solution using `dplyr`:
```
library(dplyr)
values %>%
group_by(valu... |
2018/03/17 | 460 | 1,284 | <issue_start>username_0: I am trying to save data (images) in firebase datadase.
```
StorageReference storageReference;
```
But I got error
in this code of line.
`storageReference = FirebaseDatabase.getInstance().getReference();`
it keep saying that it's an incompitible types
```
Required: com.google.firebase... |
2018/03/17 | 893 | 2,713 | <issue_start>username_0: Can someone please provide a regular expression that allows:
* Up to 18 digits before the decimal point
* Two digits after decimal point
Valid Values: 18.50, 5556.50
Invalid Values: 18.555, 5879.5877 etc.<issue_comment>username_1: I would do this:
```
\b\d{1,18}\.\d{1,2}\b
```
* `\b` capt... |
2018/03/17 | 989 | 3,129 | <issue_start>username_0: Hello all i try to override unlink method of sale order line. Function called but raise UserError validation not removed.
**Odoo default function:**
```py
@api.multi
def unlink(self):
if self.filtered(lambda x: x.state in ('sale', 'done')):
raise UserError(_('You can not remove a... |
2018/03/17 | 623 | 1,991 | <issue_start>username_0: I want to create a leaflet marker cluster group and I want to add all the markers, and for that I have written the below-mentioned code. But I am getting the error `TypeError: L.markerClusterGroup is not a constructor`
I am not getting that there is an error in the scripting or in the code tha... |
2018/03/17 | 563 | 1,989 | <issue_start>username_0: I am developing an Angular 4 application with Laravel (Restful API). I have tested the API with Postman. It's working fine but when I call the API from Angular 4 I am getting this error:
[](https://i.stack.imgur.com/brybR.jpg)... |
2018/03/17 | 882 | 2,844 | <issue_start>username_0: Hi I am doing a unit test for QuickSort algorithm (ie sort random numbers in random number to ascending order). However I could not declare a array of numbers in Collection. Could you help. Thank you.
Also there is syntax error in this line
>
> this.arrayIn[]= arrayIn;
>
>
>
Am I testin... |
2018/03/17 | 322 | 1,148 | <issue_start>username_0: i using croper.js for to crop and store a image. following function i use croped blob to convert image format. that function not working properly.
```
cropper.getCroppedCanvas().toBlob(function (blob) {
var formData = new FormData();
var creimag = document.createElement('i... |
2018/03/17 | 1,018 | 3,317 | <issue_start>username_0: I am creating a tree from a list `["abc", "abd", "aec", "add", "adcf"]` using anytree package of python3. In this tree first character of each list element - `a` is a root, and subsequently, other characters are added as their children. When I render tree it looks like:
```
a
├── b
│ ├── c
│... |
2018/03/17 | 726 | 1,793 | <issue_start>username_0: How can I enable immediate light night setting in Windows 10 via a command?
This is the setting from inside the "Night light settings" inside "Display" settings, and not the one from "Display" which only enable the general timed setting.
Also a command to set the temperature will be useful.<iss... |
2018/03/17 | 906 | 2,818 | <issue_start>username_0: I am trying to change my bool vector, items[0] to true in game.cpp/.hpp via DeerPark.cpp. However, I cannot figure out why Xcode is throwing this error message. Thank you all for your time and assistance.
This is my error message,
```
No viable overloaded '='
```
and it take place in DeerPa... |
2018/03/17 | 683 | 2,436 | <issue_start>username_0: This is a hackerrank problem "to insert a node in the nth position of a linked list". From the problem's description, we are supposed to insert 10 at position 1.
`3 > 5 > 4 > 2 > Null` is an existing linked list and we have to insert 10 at index one. The output should look like this `3 >10 > ... |
2018/03/17 | 1,367 | 4,243 | <issue_start>username_0: I have the following dictionary
```
{'a':{'se':3, 'op':2}, 'b':{'se':4, 'op':3}}
```
I need to convert it as follows:
```
{'se':{'a':3, 'b': 4}, 'op':{'a':2,'b':3}}
```
This is the following code I could come up with:
```
from collections import defaultdict
a = {'a':{'se':3, 'op':2}, 'b... |
2018/03/17 | 1,392 | 4,280 | <issue_start>username_0: I just want to recover the table to the original structure. However, it has an error and I don't know how to debug it.
```
rm(list=ls())
Mytable<-function(mytable){
rows<-dim(mytable)[1]
cols<-dim(mytable)[2]
datatable<-NULL
for(i in 1:rows){
for(j in 1:mytable$N[i])
... |
2018/03/17 | 294 | 903 | <issue_start>username_0: ```
<!--
function PopUp() {
var TheURL = "http://www.widgetsu.com/";
var PopWidth = "1000";
var PopHeight = "1000";
var PosTop = "";
var PosLeft = "";
var SettingS = "toolbar=no,menubar=no,scrollbars=no,resizable=yes,width=" + PopWidth + ",height=" + PopHeight + ",top=" + PosTop + ",left="... |
2018/03/17 | 196 | 704 | <issue_start>username_0: I want to change the hint property of an `edittext` field from my activity layout in a function I created in mainActivity.kt. The previous value of hint was from `string.xml` in `resources -> values -> string.xml` file.
How do I access `string` in main and change its value to something else?<... |
2018/03/17 | 234 | 756 | <issue_start>username_0: I have a variable that comes from the "file\_get\_contents()" function. Using this variable with an if function always gives false.
```
$content = file_get_contents($url);
echo $content; // Echos 1
if ($content == "1") {
// It doesn't matter if I use 1, '1' or "1"
echo "True";
}
else {... |
2018/03/17 | 1,131 | 4,038 | <issue_start>username_0: According to [cppreference](http://en.cppreference.com/w/cpp/container/unordered_set/emplace),
>
> Rehashing occurs only if the new number of elements is greater than `max_load_factor()*bucket_count()`.
>
>
>
In addition, [[unord.req]/15](http://www.eel.is/c++draft/unord.req#15) has simi... |
2018/03/17 | 1,158 | 4,437 | <issue_start>username_0: I want to set local storage value in bellow script code.
```
```
I want to set file path which is stored/saved in **local storage**.
I Want to do like this
```
```<issue_comment>username_1: You can use [HTMLScriptElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement)... |
2018/03/17 | 320 | 1,073 | <issue_start>username_0: I have sorted customer name in alphabetical order and displayed as checkbox list in a page by below mysql query,
```
SELECT * FROM customer_details WHERE customer_status ='1' order by customer_name ASC
```
But this query result the output "A.G.S Stores" after "Z Mart" wrongly as below,
```
... |
2018/03/17 | 543 | 2,085 | <issue_start>username_0: I am trying to read from a mongo source and apply some transformation on it. But when I try to apply any transformation or even do a `df.count()`. I get the following error.
```
MongoTypeConversionException: Cannot cast DATE_TIME into a NullType
```
So I understand a column has a mixed data ... |
2018/03/17 | 370 | 1,486 | <issue_start>username_0: Can we add plugin Rotate features in Buildfire mobile app..?
Right now buildfire mobile app showing in vertical mobile app, landscape / page rotating feature is not enabled.
Is it available this features or not..?<issue_comment>username_1: Please import Java SQL Date, it will resolve the issu... |
2018/03/17 | 512 | 1,733 | <issue_start>username_0: I have HTML structured like that:
```
###
title
Posted on 15 March 2018
lorem ipsum, bla, bla, bla
```
If there is any way to capture.
>
> lorem ipsum, bla, bla, bla
>
>
>
part without "touching" or changing anything else `.in-featuredlisting`?
I tried `.in-featuredlisting p ... |
2018/03/17 | 790 | 2,425 | <issue_start>username_0: the following code is a representation of a hashmap.
I am trying to update the values of 2 keys in this has map one by one, but on the second update both the keys are getting updated (please see the code comments to understand). I am not understanding what am i doing wrong here.
```
public c... |
2018/03/17 | 1,031 | 4,338 | <issue_start>username_0: I'm using NativeScript's [`push-plugin`](https://github.com/NativeScript/push-plugin) to receive notifications [sent from Firebase Cloud Messaging (FCM)](https://fcm.googleapis.com/fcm/send):
```
public constructor(
private _services: PushService,
) {
const settings = {
senderI... |
2018/03/17 | 651 | 2,668 | <issue_start>username_0: I'm currently using the latest Spring Tool Suite (running on jdk 1.8) and I've downloaded the source code from the tutorial in this link: [accessing-data-mysql](https://spring.io/guides/gs/accessing-data-mysql/)
I tried running it using Tomcat and it shows `INFO: Server startup in 4581 ms` but... |
2018/03/17 | 574 | 2,039 | <issue_start>username_0: I am currently obtaining `HTML` data format from the server via `AJAX`. The JQuery code looks like this, where the data obtained from server `result` is a bunch of `HTML`.
**JQuery**
```
$.ajax({
url: "/home",
type: "POST",
contentType: "application/json",
data: JSON.s... |
2018/03/17 | 530 | 1,549 | <issue_start>username_0: So i know that `f(n)=n^n` has a bigger growth compared to `g(n)=n!` and `t(n)=2^n` has a less growth
but i can't find any function that has the same order as n! and is not a factorial function
do we have such a function which is Θ(n!) and is not factorial? if we do have such functions then c... |
2018/03/17 | 636 | 2,063 | <issue_start>username_0: ```
OleDbConnection con;
OleDbDataReader read;
OleDbCommand cmd;
private void btn_clicked(Object sender, EventArgs e)
{
con = new OleDbConnection(WindowsFormsApplication2.Properties.Settings.Default.DBConString);
con.Open();
cmd = new OleDbCommand( " SELECT * FROM tbPeople WHERE c... |