date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/09 | 1,565 | 6,390 | <issue_start>username_0: I'm new a kotlin dev. please teach me to use httpRequest in Kotlin.
Question
- If I want to request to API service and I must to send request body with json object by use post method, How I write??
Thank for help.<issue_comment>username_1: Here I'm posting my code
>
> Async Task Function
>... |
2018/03/09 | 1,232 | 4,460 | <issue_start>username_0: my xamarin android app, which was working fine, started to crash on each launch with this exception.
The app is built from appcenter's build service, as it always has. If i build it locally in Debug or Release mode, it launches fine. Using a device with Android 7.
Did anyone encountered this ... |
2018/03/09 | 252 | 745 | <issue_start>username_0: I would liket to use javaScript to generate random number with 3 decimals.
using the following code:
${\_\_javaScript((Math.random() \* (40) - 20).toFixed(3) \* 1,)}
it generate the value -7.829999999999999, but I want the value -7.830.
Anyone knows how do I get what I want? thank you in adva... |
2018/03/09 | 1,236 | 4,217 | <issue_start>username_0: I have a VPS with directadmin and few other websites on it, i want to install gitlab without damaging other sites. currently tried but it will show up on all domains. it seems `external_url` is ignored completely.<issue_comment>username_1: it took me a day to figure out how to do it and i'm gon... |
2018/03/09 | 1,681 | 5,740 | <issue_start>username_0: I'm a newbie to Java. I am given 3 times, in the "HH:mm:ss" format. I'm supposed to take an input(in integers(and must be in minutes)) add it to the 3rd time. If the sum of time is less than the 1st and 2nd time(1st time <=2nd time), it must print 1. If it is only less than the 2nd time, it sho... |
2018/03/09 | 1,620 | 5,556 | <issue_start>username_0: I've been parsing this Url with Html Agility Pack:
<http://www.cmegroup.com/trading/energy/crude-oil/light-sweet-crude_quotes_settlements_options.html>"
The default table displayed is always the closest contract date and the current date.
I have no problem parsing the complete page above but... |
2018/03/09 | 1,492 | 5,294 | <issue_start>username_0: I have a python `class` called student that includes variables and methods.
Each student has a name, age, and a list of grades.
I have a method `AVGofGrades()` that takes the list of grades and returns the average.
I do not know how to create a function that will take this list of grades fro... |
2018/03/09 | 329 | 1,051 | <issue_start>username_0: excuse me, but why python saving only part of animation as mpeg4, how to save the full animation? (this example from matplotlib library)
Please Visit <https://matplotlib.org/gallery/animation/animate_decay.html>
```
ani = animation.FuncAnimation(fig, run, data_gen, blit=False, interval=10, re... |
2018/03/09 | 246 | 831 | <issue_start>username_0: I need to run small query ( eg: `select * from` ) and have its results emailed to me (in the form of attachment) when I run that. What is the easiest way?
This is a report I need to generate on a monthly basis<issue_comment>username_1: You should try to install FFmpeg and set the environmental... |
2018/03/09 | 403 | 1,483 | <issue_start>username_0: I'm trying to run a python script using PowerShell. In that python script I try to use a command line argument which includes double quotes and whitespace, which does not work properly. I suspect it to be an issue with PowerShell.
The (simplified) python script looks like this:
```
import sys... |
2018/03/09 | 408 | 1,866 | <issue_start>username_0: Im trying to register a onClick event Listener to every dynamically created img element. When im trying to pass argument to the eventHandler function , the event gets fired or the handler function gets called when page loads and it does not work after that but it works fine when i don't pass ar... |
2018/03/09 | 803 | 2,274 | <issue_start>username_0: I have a table :
```
ID1 ID2 ID3 DATE VALUE
1 1 1 APR-18 5
```
I want to get the rows for the missing months :
Suppose I am considering the year 2018 ,
so my output should look like this :
```
ID1 ID2 ID3 DATE VALUE
1 1 1 JAN-18 0
1 1 ... |
2018/03/09 | 631 | 2,005 | <issue_start>username_0: I am trying to run "hadoop wordcount in python" by following [this](http://dogdogfish.com/hadoop/hadoop-wordcount-in-python/) tutorial. As in the tutorial, when I run this command `/usr/local/hadoop/bin/hadoop fs -put ~/count_of_monte_cristo.txt /input`, it says `-bash: cd: hadoop: Not a direct... |
2018/03/09 | 631 | 2,080 | <issue_start>username_0: We dont want to hit ajax again and again that slow down the POS other process
so now we want ajax only hit when user enter some data from front end site
like we have a cart in POS and hitting ajax again and again slow down the POS other process
we want that if user add the food item from fro... |
2018/03/09 | 2,001 | 8,014 | <issue_start>username_0: I Want to change **RecyclerView** list data by fragment in **TabLayout**.
I want to remove old data and i want to put my own data into app,
I am new so i do not know how to reomove and how to put new data
**MainActivity :**
```
package baleli.urdupoetrybytariq;
import android.os.Bundle;
impo... |
2018/03/09 | 369 | 1,282 | <issue_start>username_0: For some reason my tbody appears above thead section. Can't figure out why
```html
| <NAME> |
| --- |
|
demo1
demo2
demo3
| |
```<issue_comment>username_1: Here you are using `loop` to insert data into your `ArrayList`.
Change your below code to my code :
**DummyFragment.java :**
... |
2018/03/09 | 443 | 1,560 | <issue_start>username_0: Assume I have a controller with the route template `/users/{userId}/profilePhoto`
Say one user visits `/users/123/profilePhoto` and another visits `/users/444/profilePhoto`.
Is there any way I can find the route template (`/users/{userId}/profilePhoto`) that was used to resolve that request?... |
2018/03/09 | 666 | 2,550 | <issue_start>username_0: ```
```
This makes the file selection dialog default to only allowing JPG files, however there's also a dropdown menu for selecting All Files: `All Files (*.*)`. How can I make it **ONLY** allow JPG files and not to have the option to select All Files in the dropdown?<issue_comment>username_1... |
2018/03/09 | 1,993 | 8,653 | <issue_start>username_0: Android, Using a Registration form linked to a Firebase db.How do i make all the Edittext fields mandatory?
Using a few edit Text fields, submit button should either be not visible /not functional until all the fields are filled,and User should also be not created.
Here's the code segment
... |
2018/03/09 | 387 | 1,180 | <issue_start>username_0: I have this element within :
```html
Bau- und Möbelschreiner Mustermann
```
but on Google it's displayed as
```none
und Möbelschreiner Mustermann: Bau
```
Additionally I added a `description` meta tag which is displayed correctly:
```html
```
Am I doing something wrong here? The websit... |
2018/03/09 | 1,671 | 5,314 | <issue_start>username_0: I'm writing a code where I access a website whith some elements defined by some ID. Depending on some parameters this elements have a different id.
For example I have a blue web and a red web. All have the same elements, but the id in one is "title\_red", and in other is "title\_blue".
I can... |
2018/03/09 | 2,051 | 6,563 | <issue_start>username_0: I have a dataframe that consist of hundreds of columns, and I need to see all column names.
What I did:
```
In[37]:
data_all2.columns
```
The output is:
```
Out[37]:
Index(['customer_id', 'incoming', 'outgoing', 'awan', 'bank', 'family', 'food',
'government', 'internet', 'isipulsa',... |
2018/03/09 | 1,912 | 6,232 | <issue_start>username_0: I am trying to access my data warehouse azure, fetch some data in mlstudio-attached-notebook in python. Simple connection says driver not found.
[01000] [unixODBC][Driver Manager]Can't open lib 'ODBC Driver 13 for SQL Server' : file not found (0) (SQLDriverConnect).
Now, I need to know, is it... |
2018/03/09 | 888 | 2,188 | <issue_start>username_0: **Short version:**
How to preview a column in the pyspark shell?
I have an object `a` of the type `pyspark.sql.column.Column` and when I do `a.show()`, I get `TypeError: 'Column' object is not callable`.
Wondering if there's a pyspark equivalent of pandas [to\_frame()](https://pandas.pydata... |
2018/03/09 | 2,074 | 6,290 | <issue_start>username_0: I have several template functions whose template parameters always belong to the same enum, and would like to call the various instantiations based on the run-time value of a variable from that enum:
```
#include
enum Number {One, Two};
template
void g(int m) {
std::cout << N << " " << m <... |
2018/03/09 | 1,087 | 3,460 | <issue_start>username_0: I have a square container `div` with `width & height` set to `200px`. I will receive a `number (e.g. 3, 10, 20, 30)` and need to create that number of rectangular or square `divs` within the `container div` to fill up the space.
**Question:**
How can I find the `width & height` of these inne... |
2018/03/09 | 461 | 1,732 | <issue_start>username_0: Can someone explain why does this code snippet returns result as "false"
```
function f(){ return f; }
new f() instanceof f;
```
As per my understanding instanceof checks the current object and returns true if the object is of the specified object type.
So "new f()" should act as a current ... |
2018/03/09 | 502 | 2,121 | <issue_start>username_0: Using chrome debugger I am often whisked away to different files such as JQuery or Google Ad Manager, which is quite frustrating when I am trying to debug a single file.
If I'm not interested in how these libraries are affecting the script I am trying to debug, is there a way to prevent them f... |
2018/03/09 | 726 | 2,492 | <issue_start>username_0: I want to optimize following code:
```
List numbers = Arrays.asList(5, 3, 2, 8);
// sorted Array of all numbers>2
Arrays.asList(sortWithCondition(numbers, i -> i > 2)).forEach(
data -> System.out.println("MM=" + data));
public static Integer[] sortWithCondition(List numbers,
Predicate predi... |
2018/03/09 | 523 | 1,815 | <issue_start>username_0: Not sure if it is the best way to do it, but here's what I am trying:
**Example Code:**
```
$("#someElement").mouseout(function() {
var firstLoop = setTimeout(function() {
//do something
}, 2000);
setTimeout(function() {
//do something else
}, 4000);
var ... |
2018/03/09 | 1,290 | 2,630 | <issue_start>username_0: suppose that I have a Dataframe like this:
```
data = pd.DataFrame({'stcode': ['001', '002', '001', '002', '001', '002', '001', '002', '001', '002'],
'trade_dt': ['20170101', '20170101', '20170102', '20170102', '20170103', '20170103', '20170104', '20170104', '20170105', '20170105'],
... |
2018/03/09 | 539 | 2,004 | <issue_start>username_0: My project is running on Node with an Express backend.
I'm trying to query my Arango database clientside with Arangojs. ArangoDB is running on Docker on Digital Ocean. I have no issues querying my database serverside, however I get the following error on page load:
>
> Failed to load
> <htt... |
2018/03/09 | 349 | 1,383 | <issue_start>username_0: I want to be able to run 3 instances of Cassandra via docker with volumes mapped on host machine.
I tried to use it via this docker-compose.yml by running *docker-compose up --scale cassandra=3* but it is not starting them correctly and showing errors as I am mapping one volume to all instance... |
2018/03/09 | 2,998 | 11,807 | <issue_start>username_0: In my project I have multiple types of `UITableview` cell each containing `UICollectionview`.
Initially I loaded 2 `tableViewcell` in 2 sections of `UITableview`. At first it loads fine without any problem. If I scroll the first section it scrolls nice but when I try to scroll the second sect... |
2018/03/09 | 664 | 1,981 | <issue_start>username_0: I am trying to compare two set of column ranges in Excel.
i am aware of the standard comparison formula :
Eg. `=(A1=E1)`
What I am looking for is a replacement for the following formula
`=AND(A1=E1,B1=F1,C1=G1)`
since the number of columns is large I was thinking if it is possible to use a ... |
2018/03/09 | 1,073 | 2,802 | <issue_start>username_0: I wonder if I could generate a combined corrplot for two groups of data? That is to say, the upper triangular for one group, and the lower triangular for another group. I give an example as follows:
```
library(corrplot)
mydata <- replicate(5, rnorm(20))
colnames(mydata) <- c('x1','x2','x3',... |
2018/03/09 | 389 | 1,361 | <issue_start>username_0: I did a bit of research and it seems that this is the correct code according to Django documentations but for some reason it returns.
```
AttributeError: 'tuple' object has no attribute 'permissions'. DJango groups.
```
Here is the code.
```
admin_group = Group.objects.get_or_create... |
2018/03/09 | 505 | 1,716 | <issue_start>username_0: I have a simple class with one ID and multiple other properties
```
public class Item
{
public int ID { get; set; }
public string Prop1 { get; set; }
public string Prop2 { get; set; }
}
```
now I have a `List` with lots of these Items
```
List items = new List()
{
new Item() { ... |
2018/03/09 | 475 | 1,684 | <issue_start>username_0: I have this url `www.sample.com/news-center/details/idparameter` and
I want to redirect it to the this url `www.sample.com/news-center/details.html/idparameter`
I have a news-center folder and a `details.html` file, the rules below goes inside a details folder. How do I rewrite it so it wil... |
2018/03/09 | 288 | 821 | <issue_start>username_0: I have a dataframe **df** with one column and 500k rows (df with first 5 elements is given below). I want to add new data in the existing column. The new data is a matrix of 200k rows and 1 column. How can I do it? Also I want add a new column named **op**.
```
X098_DE_time
0.046104 ... |
2018/03/09 | 737 | 2,820 | <issue_start>username_0: I am trying to get data from MySQL database to my android app using **where** condition. I already create a method for get data. This method give me all data as a string array from a single column.
Look the bellow method :
```
String adress = "http://myserver_link/get_data.php";
InputStream in... |
2018/03/09 | 932 | 3,594 | <issue_start>username_0: I am updating font in my application by using the support library. Font is not getting updated on AppCompatCheckBox at runtime but in layout preview it is working fine. There are two styles.xml files in my application and I applied AppBaseTheme to all my activities.
default styles.xml
```
<... |
2018/03/09 | 931 | 3,265 | <issue_start>username_0: I'd like to change the way Jupyter displays the so called *heading cells*. By default, heading levels are only differentiated through a different font size.
I'd like jupyter to display hierarchical numbered titles so that :
```
# Heading 1
# Heading 2
## Sub Heading
# Heading 3
```
would... |
2018/03/09 | 949 | 3,464 | <issue_start>username_0: Can this be done with any of the popular multiplatform native app development tools? React Native, Angular with Nativescript, etc. Is there another approach you would suggest?
I'd like it to be a first class keyboard for Android and ios and an inapp keyboard for web.
Basically I have an idea... |
2018/03/09 | 912 | 2,376 | <issue_start>username_0: I would like to count the number of occurrence of sequence of value in column Act for each Id.
dataframe:
```
a = {'id': [1, 1, 1, 1, 2, 2, 2, 2],
'Act': ['A', 'B', 'A', 'A', 'B', 'B', 'A', 'B']}
```
The output would be counted the sequence for each different id:
Seq | Count
A - A | ... |
2018/03/09 | 417 | 1,505 | <issue_start>username_0: I need to render two items "clientcalendarscreenred" and "nutritiondata" in a FlatList
PS: I am getting the two data "clientcalendarscreenred" and "nutritiondata" from a reducer through mapStateToProps
---
```
```
===========
GETTING The DATA
===============
```
const mapStateToProps =... |
2018/03/09 | 718 | 2,613 | <issue_start>username_0: When defining javascript objects that behave like classes that have state and functions that manipulate that state is it better to define functions when defining the object like so:
```
function MyNewClass(){
//State
this.value = ""
this.otherValue = ""
//Functions
this.someFun... |
2018/03/09 | 1,110 | 4,703 | <issue_start>username_0: I want to create a wkwebview in my iOS app, and I want to add an activity indicator to it. I want when we click all the button or part in the webview, it will appear the activity indicator. Can you give me some code to do this? Here's my code right now. It only show the indicator when start loa... |
2018/03/09 | 3,510 | 9,666 | <issue_start>username_0: In our code base we have a lot of operation like j\*ω\*X where j is the imaginary unit, ω is real and X is complex. Actually a lot of loops could look like:
```
#include
#include
void mult\_jomega(std::vector > &vec, double omega){
std::complex jomega(0.0, omega);
for (auto &x : vec){
x\... |
2018/03/09 | 2,882 | 8,106 | <issue_start>username_0: I am trying to serve Flask app from IIS Web Application under Default Web Site, but am not able to get it working. Here are the details:
```
OS: Windows Server 2016 DataCenter Edition
IIS: Installed with all options including CGI
IIS Rewrite Module: Version 2 installed
```
Steps I've taken:
... |
2018/03/09 | 3,210 | 10,206 | <issue_start>username_0: I'm a `C` beginner and decided to participate in a small online contest in order to practice.
In the current problem I'm asked to write a queue with a `struct` that responds to the commands `PushBack` and `PopFront`.
The input consists of
* A number `n` (`n <= 1000000`) indicating the number... |
2018/03/09 | 292 | 744 | <issue_start>username_0: I have a line:
`Allowed VLAN: 1(t), 30(t), 228(t), 296(t), 303(t), 387(t) 401(t),`
Can I write a regular expression to find 7 matches of a number, followed by `(t)` ?
My expression `(?mi)^\s+allowed\svlan:(\s\d+(?=\(t\)))` finds only 1 occurrence, and I want to find all the subsequent ones t... |
2018/03/09 | 948 | 3,451 | <issue_start>username_0: I have a script that checks for dupe values in db and loops through the result and echoes the value using json. However, it is only displaying 1 record instead of 3 which is being sent to php. I would be grateful if someone could point out my error. Thanks
```
$boxitems = mysqli_real_escape_st... |
2018/03/09 | 813 | 2,766 | <issue_start>username_0: I'm building a single page application and using node (v7.7.1) for server and express for routing and building the API.
My frontend is packaged into a folder called `/client` (so all you JS, css, img and html are there). And my API has for root url `/api`.
Any other queries that are not files... |
2018/03/09 | 1,253 | 3,915 | <issue_start>username_0: I have a database of units which have expiry dates. Some of the units are top level units and have sub-assemblies attached. Sub-assemblies also have expiry dates. I'm trying to create a listing that lists the top-level units ordered by their expiration dates and list all relevant sub-assemblies... |
2018/03/09 | 531 | 2,216 | <issue_start>username_0: I use Fetch in ReactJs to send a request to api Moleculer like this :
```
var data ={
'ordername' : 'PUG',
'receivername' : 'AnSama'
}
fetch(url,{
method: 'POST',
header: {
'Accept': 'application/jso... |
2018/03/09 | 938 | 3,848 | <issue_start>username_0: I am trying to start an exe that is located in C:/Program Files (x86)/App from UWP app. How can I do this.
I can start exe file by using Windows Desktop extension for UWP, add
Hide Copy Code
```
```
to Package.appmanifest and call this
```
await FullTrustProcessLauncher.LaunchFullTrustPro... |
2018/03/09 | 1,135 | 4,464 | <issue_start>username_0: I needed a new field "json" for my extension, so I've added the new field "json" (mediumtext) to the database, then I've added the following code to my Model:
```
/**
* json
*
* @var string
*/
protected $json = '';
/**
* Returns the json
*
* @return string $json
*/
public function get... |
2018/03/09 | 969 | 4,038 | <issue_start>username_0: I am replacing ForEach to Parallel.ForEach. ForEach is working fine and gives result as expected where as Parallel.ForEach is giving unexpected result.
```
string[] ids= { };
string input="AA;AA;111;T#BB;BB;222;T#CC;CC;333;F";
string typeId, type, value;
... |
2018/03/09 | 1,107 | 3,016 | <issue_start>username_0: I have an array:
```
var arr = [
{price: 5, amount: 100},
{price: 3, amount: 50},
{price: 10, amount: 20},
{price: 3, amount: 75},
{price: 7, amount: 15},
{price: 3, amount: 65},
{price: 2, amount: 34}
]
```
I want to remove the duplicates which has the same price, and only kee... |
2018/03/09 | 1,487 | 4,624 | <issue_start>username_0: I'm running into a situation where giving a neural network extra data reduces accuracy, and I can't see how that's possible.
Suppose you train a neural network - just a binary classifier - on a set of examples that have, say, 10 variables each. And it learns to classify both training and tests... |
2018/03/09 | 1,012 | 2,832 | <issue_start>username_0: I want to know what's the meaning of below code.
```js
abcd
adfffff
```
```css
.cls1 {
background-color: yellow;
}
/*sample1
.cls1.cls2 {
color: red;
}
*/
/*sample2*/
.cls1 .cls2 {
color: red;
}
```
The two class of sample1 don't have an extra space.
The sample2 do ha... |
2018/03/09 | 1,088 | 3,846 | <issue_start>username_0: In my Django project I have a `user_manage` app.
I create a model named `UserManage` in my `user_manage` app's model.py:
```
from django.db import models
from django.contrib.auth.models import AbstractUser
class UserManage(AbstractUser):
username = models.CharField(max_length=12)
```
T... |
2018/03/09 | 297 | 1,090 | <issue_start>username_0: I have a DB dump, I want to convert a particular table (table name: blogentry) records in that DB to be converted into markdown and .rst files. And want to create a static site with them? Is it possible help me out!
Thanks in advance<issue_comment>username_1: You can use the [Sphinx](http://ww... |
2018/03/09 | 1,201 | 3,528 | <issue_start>username_0: Let say this is an output of Windows `ipconfig` command.
```
c:\>ipconfig
Windows IP Configuration
Wireless LAN adapter Wireless Network Connection:
Connection-specific DNS Suffix . :
IPv4 Address. . . . . . . . . . . : 192.168.1.10
Subnet Mask . . . . . . . . . . . : 255.255.255.... |
2018/03/09 | 803 | 3,256 | <issue_start>username_0: I have a **custom user** for authentication and want to create a serializer class for it my custom user's model is like this :
```
class User (AbstractUser):
bio = models.TextField(max_length=500, blank=True)
birth_date = models.DateField(null=True, blank=True)
image=mo... |
2018/03/09 | 453 | 1,902 | <issue_start>username_0: the h2o DKV dose not have persisting to disk support, if the cluster crashed it cannot restore the frames and data, so why they use it, is it possible to replace the DKV to redis?<issue_comment>username_1: The first part of the question is very subjective (work on H2O started when Redis was ver... |
2018/03/09 | 933 | 3,596 | <issue_start>username_0: I got some (old, old) console-apps which work on big databases and process some data.
While processing the data, exceptions are thrown and caught. Unfortunately this is intended in some cases, if a record is invalid.
I would like to measure if the count of exceptions is in a acceptable range.
... |
2018/03/09 | 874 | 2,934 | <issue_start>username_0: I read that the `padding` is `same` or `avlid` in convolution layers in Keras, and I think zeros are padded.
Is there any way to do a symmetrically padding in Keras?
It seems that this can be done with TensorFlow's [tf.pad](https://www.tensorflow.org/api_docs/python/tf/pad). `tf.pad(t, paddin... |
2018/03/09 | 932 | 3,101 | <issue_start>username_0: I have a class that has the value of total
```
0
```
and a class of a radio button
```
class="radio-livraison element-radio-input" disabled="disabled"
```
is is possible to disable the radio button and enable it only if total is more than 28;
example you can't check the radio button if ... |
2018/03/09 | 614 | 2,383 | <issue_start>username_0: I have this function which is supposed to get all files ending with .bak in a folder and its subfolder, but when I debug it it says it has a depth of one which I guess means it does have sub folders? But nextstage says null and it only get the files in the localPath but not the ones in the sub ... |
2018/03/09 | 464 | 1,761 | <issue_start>username_0: I have a text field in French with pronouns (le, la, les) and I would like to search all rows starting with a pronoun followed by space, but I can't get it to work.
```
SELECT field, type
FROM my_search_table
WHERE UPPER(field) LIKE UPPER('le ' || '%' )
AND (ROWNUM <= 6);
```
The query ... |
2018/03/09 | 722 | 1,926 | <issue_start>username_0: During the interview, I was given a piece of Python code:
```
"".join([x for x in "\x63\x6c\x75\x62"])
```
The interviewer asked me: Can you make this piece of code faster with just a tiny tweak to the existing code? The output should stay exactly the same.
Enough to say, I failed this ques... |
2018/03/09 | 445 | 1,179 | <issue_start>username_0: I would like to know if it's possible to target all classes that starts with `col-` and ends with `12` only?
For example classes like:
```
.col-sm-12
.col-md-12
.col-lg-12
```
but **not** classes like:
```
.col-sm-8
.col-lg-6
```
I tried with something like this which is not working:
``... |
2018/03/09 | 510 | 2,011 | <issue_start>username_0: I am using a library that has a large interface
```
interface IOrder{
cutomerId: number;
deliveryAddress1: string;
// and lots of properties...
}
```
And I want to implement a class extending it.
Just want to confirm that it is necessary to re-declare all the properties.
```
cl... |
2018/03/09 | 448 | 1,734 | <issue_start>username_0: Is there a way to check if a Laravel model is retrieved from DB or created with `new` command in its constructor?
I've tried with `$this->exists` but in the `__construct` it always returns `false`...
This is the code:
```
function __construct($attributes = array())
{
parent::__construct(... |
2018/03/09 | 581 | 2,147 | <issue_start>username_0: A VS2017 solution illustrating this issue: <https://github.com/ShannonZ/playground.git>
**IDataErrorInfo**
I implemented IDataErrorInfo in my ViewModel class.
ViewModel only has two props X & Y and X+Y should not be larger than 10.
**ValidatesOnDataErrors=True**
All TextBox binding to X/Y wer... |
2018/03/09 | 680 | 1,787 | <issue_start>username_0: I need to display a list with this exact format:
`1. First item
1.1. Subitem
1.1.1. Sub-subitem
1.1.2. Sub-subitem
1.2. Subitem
2. Second item
...`
Is there a way to achieve this using asciidoc?
The closer way I found is using horizontal labeled lists, but the rendering differs from a no... |
2018/03/09 | 728 | 1,920 | <issue_start>username_0: This is my sample angular code, when i try to run it it says
```
Module 'myApp1' is not available! You either misspelled the module name or forgot to load it.
```
My code:
```
(function() {
angular.module('myApp1',[]).controller('myCtrl1', [ '$scope', '$timeout',
function( $scope, $timeou... |
2018/03/09 | 851 | 2,522 | <issue_start>username_0: My requirement is to Sync my database record to Dynamic 365 and also to authenticate the user.
I am trying with this code but it is not helping me out, Please help me to connect and resolve it
```
string api = "https://ujwl.api.crm8.dynamics.com/api/data/v9.0";
AuthenticationParameters ap = ... |
2018/03/09 | 1,000 | 4,426 | <issue_start>username_0: I am working on ColdFusion scopes but I am not sure if my syntax is correct.
```
```
In the above line, I have converted to API calls and I have scoped it as the variable here. Is this correct? Is variable a valid ColdFusion scope?<issue_comment>username_1: The scope is actually `variables` ... |
2018/03/09 | 798 | 2,919 | <issue_start>username_0: I am trying to create a style for datagridcell. But the text value is not displayed.Data grid was populated by the Observable collection of type Student. Please find my xaml code below.
```
StdCollection = new ObservableCollection()
{
new Student(){Name="Ram",StudID=01,Total=88},
new Studen... |
2018/03/09 | 1,031 | 3,044 | <issue_start>username_0: I've tried a bunch of previous solutions (see below) but something must be wrong with my environment...
When trying any variant of the following:
```
mvn -v
mvn -version
mvn --version
mvn3 -version
mvn3 --version
```
All produce `~bash: mvn: command not found`
Confirming my PATH includes t... |
2018/03/09 | 628 | 2,499 | <issue_start>username_0: .env files are very handy with docker, kubernetes, etc
But what if I have simple nginx server without any orchestration and a pack of cron workers and a pack of daemons(systemd/supervisord/etc)?
I can write these env variables to nginx server section, but I have to set up hundreds of env va... |
2018/03/09 | 953 | 3,305 | <issue_start>username_0: I have a string that is looks like this
```
`[{"day": 0, "open":"12:00", "closed":"1:00"},
{"day": 1, "open":"12:00", "closed":"1:00"},
{"day": 2, "open":"12:00", "closed":"1:00"},
{"day": 3, "open":"12:00", "closed":"1:00"},
{"day": 4, "open":"12:00", "closed":"1:00"},
{"day": 5, "open"... |
2018/03/09 | 571 | 2,261 | <issue_start>username_0: I created a function. Firstly I declared a variable When a result return I want to return variable result but I get an error. How can I solve?
Error
>
> ERROR: column "exist-user" does not exist
>
>
>
```
CREATE OR REPLACE FUNCTION savepromotionadmin(
IN p_first_name character varyi... |
2018/03/09 | 612 | 2,196 | <issue_start>username_0: I've got a homework assignment that I have no idea how to even start. The instructions are to have an input .txt file with text that contains some mistakes. I have to fix that in the output .txt file, meaning, only 1 space between words, no space before a comma/punctuation and exactly 1 space a... |
2018/03/09 | 253 | 833 | <issue_start>username_0: I'm trying to get the values of the pixels of a jpg in unity, how can I do it? I'm seeing lots of methods but I do not know why they do not work for me. I hope you can help me.<issue_comment>username_1: Drag your jpg to projects, and assign it to the jpg property in your MonoScript
```
public ... |
2018/03/09 | 1,026 | 4,074 | <issue_start>username_0: I want to develop a framework(for QA testing purpose) that validates a machine learning model. I had a lot of discussions with my peers and read articles from the google.
Most of the discussions or articles are telling machine learning model will evolve with the test data that we provide. corr... |
2018/03/09 | 1,423 | 3,978 | <issue_start>username_0: While running one single (but complicated) query using Entity Framework, I saw that there are multiples processes that have been created with `program_name` = `EntityFramework` by using this query:
```
SELECT DB_NAME(dbid) as DBName,
hostname, *
FROM sys.sysprocesses
WHERE dbid >... |
2018/03/09 | 931 | 3,958 | <issue_start>username_0: When i try to impliment collapsingbar in fragment it's not collapsing, but when i try the same code in a simple activity it works fine, and i want the same design in a fragment(ProfileFragment), there is no error occurs it just simply displayed but its not collapsing, and i want to make it work... |
2018/03/09 | 864 | 3,131 | <issue_start>username_0: Is there a way to add multiple environment variables in IntelliJ? When one sends me a list of variables I can add them one by one by clicking `+` in this window
[](https://i.stack.imgur.com/z1Ihm.png)
But it's quite annoying ... |
2018/03/09 | 749 | 2,726 | <issue_start>username_0: I am currently working on a web application that makes use of :
1. JQuery
2. AngularJS
3. Kendo framework
In particular, I need to implement an auto-complete function using kendo on an input text.
So, my first option, was to select that input text using jquery and then apply the auto-comple... |
2018/03/09 | 412 | 1,630 | <issue_start>username_0: I have raw monochrome data in the form of a byte array (one byte per pixel).
What is the lowest-latency method of taking this data and display it as an image on-screen?
(It needs to be quick enough to display 720x480 frames as 30fps video.)
This is not a dup of [conversion of byte array to i... |
2018/03/09 | 1,171 | 3,774 | <issue_start>username_0: I have a dataset that has the following appearence.
```
A 1
A 2
A 3
B 1
B 2
B 3
B 4
```
Which is a result from using the following command
```
select
connect_by_root id as root,
level lvl
from
dbset
start with id in ('A','B')
connect by nocycle child = prior parent)
```
I w... |
2018/03/09 | 885 | 3,337 | <issue_start>username_0: I have the following code which represents the results of a paged query.
```
public class Page : IEnumerable
{
public IEnumerable Source { get; }
public int PageNumber { get; }
public int PageSize { get; }
public int TotalCount { get; }
public int TotalPages => TotalCount / PageSize + (T... |
2018/03/09 | 601 | 2,088 | <issue_start>username_0: I have the following code in a VBA macro:
```
Option Explicit
Sub WriteFormula()
Dim rng As Range
Set rng = Range("A1:B2")
' Works
rng.Formula = "=ROUNDUP(1, 1)"
' Doesn't work
rng.Formula = "=ROUNDUP(1)"
End Sub
```
The second write contains an invalid formula and... |
2018/03/09 | 1,786 | 6,203 | <issue_start>username_0: I am writing a VBA program that needs to wait until a specific window is open.
I tried `FindFindow` from the user32.dll.
Even if I set the two parameters of the function to Null, I get a negative return, although in that case all windows should match.
Basically I don't get a result diffe... |
2018/03/09 | 557 | 2,054 | <issue_start>username_0: I have this page and it has user.master page. on the user master page I have Cart button and SignIn button.
I cannot redirect to the mentioned pages without filling the Form, Is it possible to make redirection without filling the form?
please advice, I couldn't find any explanation on the web.
... |
2018/03/09 | 429 | 1,551 | <issue_start>username_0: I have array name `$main_array`
```
$main_array = [
[
'product_id' => '1',
'values' => '1"'
],
[
'product_id' => '4',
'values' => '1"'
],
[
'prod... |