date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/14 | 1,141 | 3,234 | <issue_start>username_0: Just implemented a google map to the website but there is a very small gap maybe 1-2px between the map and the footer. I was wondering if there was anyway to make them sit flush together and not have a tiny gap. Thanks for any help or advice. Not sure how i can solve this!
Maps and footer htm... |
2018/03/14 | 690 | 2,148 | <issue_start>username_0: I've been developing a web site and I'm testing for responsiveness. Everything seems fine but one hurdle that I've been unable to overcome is the side navigation bar height not always being the size of the web site. My application displays additional components based on user selection so the he... |
2018/03/14 | 595 | 1,912 | <issue_start>username_0: I have an array of Vector3's from the polygon collider. I want to have an array of the indexes of all the Vector3's that are higher then a certain y.
```
private void Awake()
{
polygonCollider2D = GetComponent();
float lowestY = polygonCollider2D.points.Min(x => x.y);
// So in... |
2018/03/14 | 667 | 2,023 | <issue_start>username_0: I want to display a float that represents the timer and I am trying to format it like this:
>
> 00:00:00 (Minutes:Seconds:Milliseconds)
>
>
>
```
public static string ConvertToTime(float t){
TimeSpan ts = TimeSpan.FromSeconds(t);
return string.Format("{0:00}:{1:00}:{2:00}", ts.Mi... |
2018/03/14 | 584 | 1,856 | <issue_start>username_0: We have use-case where we want to partition the data frame by a column value and then write each partition into single file. I did following things to do the same:
```
val df = spark.read.format("csv").load("hdfs:///tmp/PartitionKeyedDataset.csv")
df.repartition($"_c1")
df.rdd.saveAsTextFile... |
2018/03/14 | 490 | 1,610 | <issue_start>username_0: I'm trying to bundle a NativeScript App with the snapshot flag like this:
```
tns build android --bundle --env.snapshot
```
The following error appears:
```
ERROR in NativeScriptSnapshot. Snapshot generation failed!
Target architecture: x86
# Script run failed in @736:2461
ReferenceError: ... |
2018/03/14 | 405 | 1,449 | <issue_start>username_0: I have been looking for ways to read/write to shared folders in a Windows Machine via my **Xamarin.Forms** App.
So far I found two **.Net** libraries that i thought would solve my problem: [SharpCifs](https://github.com/ume05rw/SharpCifs.Std) and [Xamarin.Android.jCIFS](https://github.com/sus... |
2018/03/14 | 866 | 2,878 | <issue_start>username_0: I needed a way to pull 10% of the files in a folder, at random, for sampling after every "run." Luckily, my current files are numbered numerically, and sequentially. So my current method is to list file names, parse the numerical portion, pull max and min values, count the number of files and m... |
2018/03/14 | 433 | 1,439 | <issue_start>username_0: I have a div that I want to style based on a condition.
If styleOne is true I want a background colour of red. If StyleTwo is true, I want the background colour to be blue. I've got half of it working with the below code.
```html
```
Is it possible to add a condition to say:
* if styleOne ... |
2018/03/14 | 823 | 3,091 | <issue_start>username_0: I'm building some test operations against an Angular application using Protractor. I'm trying to keep my locators as easy to read and maintain as possible, and was trying to use "element chaining" to do this. Based on everything that I've read here in SO and the Protractor documentation, I thin... |
2018/03/14 | 849 | 3,395 | <issue_start>username_0: When I try to load a URL in the `WebView` it only shows a blank screen. If I load <https://www.google.com> or <https://www.facebook.com> it is working fine.
```
package com.example.hp.cccapp;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebV... |
2018/03/14 | 735 | 2,873 | <issue_start>username_0: i got a problem with scroll div.
Code is like this
HTML:
```css
ul {height: 100px; overflow: scroll;}
li {height: 25px;}
```
```html
* * * * * * * * * * * * * * * *
```
All i need is auto scroll when page loaded ul#sub-menu-item to element with one of classes is li.current-menu-item.
Can... |
2018/03/14 | 749 | 3,092 | <issue_start>username_0: So i have an LDAP server that has one port that directs to LDAP consumers and an other port that directs to LDAP providers. However when i make a write request using php's `ldap_add` function the LDAP provider is throwing a `code 10 : Referral` error (this is the error that wants me to follow t... |
2018/03/14 | 648 | 2,236 | <issue_start>username_0: I installed Wireshark on macOS High Sierra and captured some network trafic while making HTTP calls to a local server using CURL.
The traffic captured in wireshark only showed TCP packets. When looking at the data whitin the TCP packets I could see the HTTP packets, but these were not recognize... |
2018/03/14 | 653 | 2,166 | <issue_start>username_0: Here's my `ProspectAPIsService`
```
import {Injectable} from "@angular/core";
import {HttpClient, HttpParams} from "@angular/common/http";
@Injectable()
export class ProspectAPIsService {
constructor(private http: HttpClient) {
}
public getOneProspect(nome) {
return this.http.get('as... |
2018/03/14 | 675 | 2,162 | <issue_start>username_0: I need to figure out the best way to put together an array where multiple keys have the same value. For example,I need to return ***LARGE*** if any of the following values are provided:
```
"lrge", "lrg", "lg"
```
I think it should be in a form of multidimensional array. Something like:
```... |
2018/03/14 | 775 | 2,141 | <issue_start>username_0: Trying to determine a sensible way to clean dates (character), then put those dates in a proper date format via `input` function, but maintain sensible variable names (and possibly even preserve the original variable names) once the char-to-number process is executed.
The dates are being clean... |
2018/03/14 | 931 | 3,048 | <issue_start>username_0: I am trying to figure out how to remove capital letters from a string using Python but without the `for` loop.
I’m trying to do this while traversing a list using a `while` loop.
So how can I remove the capital letters in a provided string?<issue_comment>username_1: You have a few options h... |
2018/03/14 | 1,363 | 4,626 | <issue_start>username_0: I created a mySQL database with phpMyAdmin in my local server. In this database I store the names and the favourite NBA teams of my friends.This is obviously a many-to-many relationship. For this a reason, I created three tables: one with the id & name of my friends, one with the id & name of t... |
2018/03/14 | 570 | 2,319 | <issue_start>username_0: Let's say I have five view controllers and I want to go to the specific view controller
RootViewController ==> FirstViewController ==> SecondViewController ==> ThirdViewController ==> FourthViewController(Modally presented having a button)
and all other controllers I connected through push m... |
2018/03/14 | 305 | 823 | <issue_start>username_0: How to get the difference between two arrays in Javascript
likeArray([1, 2, 3, 7], [3, 2, 1, 4, 5]);//[1,2,3]<issue_comment>username_1: Pretty easy if you're supporting "newer" browsers.
```
Array.prototype.diff = function (x) {
return this.filter(function (y) {
return a.indexO... |
2018/03/14 | 732 | 2,489 | <issue_start>username_0: **The Problem:**
When I access a (32-bit) `DLL` via URL like ***<http://localhost/somepath/some.dll?action>*** IIS always thinks I want to download the file (with file size 0 byte) instead of executing the dll.
**What I tried so far:**
* added an entry for this specific DLL in ISAPI- and CG... |
2018/03/14 | 1,070 | 3,477 | <issue_start>username_0: I know such questions are previously answered and I applied all the possible solutions. I defined all the variables before the foreach loop but still, it's not working. Here My code:
```
$settings_table = $wpdb->prefix."wpsp_settings";
$sel_setting = $wpdb->get_results("select * from $settings... |
2018/03/14 | 413 | 1,331 | <issue_start>username_0: ...because the row is only evaluated once and the next row is called for evaluation. But the next row is now the previous row. How do I account for this?
```
For i = 5 To Range("A" & "65536").End(xlUp).Row Step 1
If Application.WorksheetFunction.CountIf(Range("A" & i), "#N/A") = 1 Then
Range("... |
2018/03/14 | 440 | 1,561 | <issue_start>username_0: I have developed a school management system, which is connected to a database. Now, I want to take backup of tables.
My idea is to generate an SQL file of each table that will later be used for backup. I achieved this goal manually in Oracle SQL Developer (attached a screen shot), first expor... |
2018/03/14 | 489 | 1,327 | <issue_start>username_0: ```
var str1 = "Sarah";
var str2 = "Tom";
var strTable = "
| "+ str1 +" | "+ str2 +" | Age |
| --- | --- | --- |
| Jill | Smith | 50 |
";
$scope.rTable= strTable;
```
I am trying to pass HTML code in `$Scope.rTable` but instead of rendering the table it shows the HTML code as it is in the ... |
2018/03/14 | 1,061 | 3,143 | <issue_start>username_0: I have loaded my data into pandas dataframe and one of the columns in my dataframe has values like the following. I need to count each fruits count and pass on its value to a dataprovider for plotting a graph.
```
************************
Data in the Dataframe
************************
orange
a... |
2018/03/14 | 367 | 1,296 | <issue_start>username_0: This is kind of a beginners question. What I'm basically trying to do is loop different words in an HTML page's header. For instance, I would want a header that says "Paint your car the color of \_\_\_\_\_" where the empty space loops through the different words of "red", "blue", "green", "purp... |
2018/03/14 | 550 | 1,955 | <issue_start>username_0: I create a class like this
```
public class Something{
private int foo;
private int bar;
public Something(int f){
setFoo(f)
}
public int getFoo(){
return foo;
}
public void setFoo(int f){
this.foo = f;
}
public int getBar(){
retu... |
2018/03/14 | 1,616 | 4,720 | <issue_start>username_0: There are many cases online how to plot couple of lines in d3 if you add svg object only once, such as
```
svg.selectAll("line")
.data(dataset)
.enter().append("line")
.style("stroke", "black") // colour the line
.attr("x1", function(d) { console.log(d); return xScale(d.x1); }... |
2018/03/14 | 1,454 | 4,504 | <issue_start>username_0: I'm programming a simple text adventure game with Python 3 and the `cmd` module.
I need to somehow trigger the game over method but I didn't find a solution on document.
The `CMD` module got the `do_quit()` function, but that needs user input, and `quit()` or `exit()` kills the whole program... |
2018/03/14 | 1,369 | 4,120 | <issue_start>username_0: ```
# Redirecting only stderr to a pipe.
exec 3>&1 # Save current "value" of stdout.
ls -l 2>&1 >&3 3>&- | grep bad 3>&- # Close fd 3 for 'grep' (but not 'ls').
# ^^^^ ^^^^
exec 3>&- # Now close it for the remainder of ... |
2018/03/14 | 364 | 1,535 | <issue_start>username_0: I'm creating an App, with some classmates, and we want to share our Activities with others, so we don't have to do all over again. Is that possible?<issue_comment>username_1: You can copy the activity class and the XML layout of the activity from one project to another.
The activity class fil... |
2018/03/14 | 692 | 2,637 | <issue_start>username_0: Learning Redux and React, and I'm having an issue where I have the store created, and passed over to my through react-redux, but I get an empty object when logging in the console.
```
import { createStore, applyMiddleware } from 'redux';
import logger from 'redux-logger';
import thunk fro... |
2018/03/14 | 636 | 2,556 | <issue_start>username_0: I'm having problems where two Date fields are updated to the exact same date when only one should be. I'm trying to figure out why this is happening and how I can update only the one date field I want updated, and leave the other at its original value.
I'm using Hibernate with JPA on a MySQL d... |
2018/03/14 | 4,119 | 15,958 | <issue_start>username_0: I am using hibernate to connect my mysql database and perform transactions.
I am using a single SessionFactory throughout the application and i don't have other connections to the database, yet, i am receiving the exception below:
```
java.io.EOFException: Can not read response from server. E... |
2018/03/14 | 615 | 2,387 | <issue_start>username_0: I'm building a memory game using React. I have an array of cards where each card can be "matching" (the user has just clicked on it) or "matched" (the user has found both cards and they are now completely shown). My issue is that when I try to set the matching state using `setState` the state c... |
2018/03/14 | 824 | 2,711 | <issue_start>username_0: There is a loop.
```
for (int i = 0; i < n; ++i) {
//...
v[i] = o.f(i);
//...
}
```
Each `v[i] = o.f(i)` is independent of all the other `v[i] = o.f(i)`.
`n` can be any value and it may not be a multiple of the number of cores. What is the simplest way to use all the cores to... |
2018/03/14 | 754 | 2,774 | <issue_start>username_0: One annoying thing about writing js app is that nested object can caused error and break down the entire app.
```
if(result.applicant._id === null || applicant_id !== result.applicant._id.toString()){
console.log('redirect user');
}
```
Given above code, it can be dangerous, what if result.a... |
2018/03/14 | 1,065 | 3,536 | <issue_start>username_0: I have a set of div elements inside a container, `.div-to-hide` is displayed by default whilst `.div-to-show` is hidden.
When I click in .set, `.div-to-hide` should hide and `.div-to-show` should be visible. Next click should return the previous clicked element to its default state.
I need to... |
2018/03/14 | 327 | 1,177 | <issue_start>username_0: I'm learning unity and I have successfully instantiated a new game object into my scene (a cube)
Now I'm playing with the Canvas UI and I'm trying to download an asset bundle with images and show them on the UI, but I can't find examples on Google
Can someone post me an example on how to load... |
2018/03/14 | 615 | 2,524 | <issue_start>username_0: I have 2 questions regarding context creation.
When i access main context via singleton:
```
let appDelegate = UIApplication.shared.delegate as! AppDelegate
let managedContext = appDelegate.managedObjectContext
```
Is that the SAME context everytime?
And if i then create a child context li... |
2018/03/14 | 667 | 2,737 | <issue_start>username_0: My homework project is a form, which contains 3 checkboxes orginized in one groupbox. I need to know how many of these 3 checkboxes have been selected by user, because each selected checkbox should increase the price. I don't need to know the exact checkbox that has been selected, because each ... |
2018/03/14 | 424 | 1,618 | <issue_start>username_0: So I've wrote a test that logs in a user:
```
describe('Login', () => {
beforeEach(async () => {
await device.reloadReactNative()
})
it('Should grant access to a user with valid credentials', async () => {
test code
})
})
```
And now I'm writing a new spec to log out a user, ... |
2018/03/14 | 1,982 | 7,430 | <issue_start>username_0: I have written a password strength checker that dynamically checks the strength of the password keyed into a `ttk.Entry` widget. I have applied the [criteria](https://stackoverflow.com/a/32542964/5722359) by @ePi272314 and the [tutorial on adding validation](https://stackoverflow.com/a/4140988/... |
2018/03/14 | 227 | 840 | <issue_start>username_0: Would appreciate if you could answer my questions:
1) If I created a Z transaction code for maintaining a Z table that has authorization group not equals to `&NC&` and data browser/table view maint is set to `Display/Maintenance Allowed with restriction`, Does that mean the Z tcode will also b... |
2018/03/14 | 1,346 | 3,267 | <issue_start>username_0: I'm trying to aggregate from the end of a date range instead of from the beginning. Despite the fact that I would think that adding `closed='right'` to the grouper would solve the issue, it doesn't. Please let me know how I can achieve my desired output shown at the bottom, thanks.
```
import... |
2018/03/14 | 722 | 2,212 | <issue_start>username_0: I have set up my Sublime Text editor as follows:
[](https://i.stack.imgur.com/Mxkx9.png)
I have done it using `View > Groups > Max Columns: 2`
I am trying to replicate it in Visual Studio Code, but could not find any options... |
2018/03/14 | 358 | 1,419 | <issue_start>username_0: Given the following scenario:
* I have a source.xlsx file with multiple worksheets (worksheet1, worksheet2, workshToCopy, etc) and I generate the destination.xlsx based on another .xlsx template file that has different worksheets than the source.xlsx. I want to add a worksheet from the source ... |
2018/03/14 | 609 | 2,589 | <issue_start>username_0: I have 2 data sources: DB and server. When I start the application, I call the method from the repository (MyRepository):
```
public Observable> fetchMyObjs() {
Observable> localData = mLocalDataSource.fetchMyObjs();
Observable> remoteData = mRemoteDataSource.fetchMyObjs();
return Observabl... |
2018/03/14 | 426 | 1,520 | <issue_start>username_0: I have been trying to create a filter, which prefix some input. The prefix should consist of some ansible variable in my case inventory\_dir and role\_name.
I tried to implement following code:
```
from ansible import errors
def role_file(self):
try:
return inventory_dir + "/rol... |
2018/03/14 | 831 | 2,766 | <issue_start>username_0: With xdebug enabled I can reproduce an error:
```
composer create-project laravel/laravel
cd laravel
composer require proengsoft/laravel-jsvalidation
php artisan vendor:publish --provider="Proengsoft\JsValidation\JsValidationServiceProvider" --tag=public
```
Error:
```
PHP Warning: Uncaugh... |
2018/03/14 | 2,866 | 10,957 | <issue_start>username_0: I'm trying to post my data from this js
```
$.ajax({
type: 'POST',
url: '/url',
data: {
arr: tdValues
},
success: function () {
location.reload();
}
});
```
all code in controller works fine and data from js is not ... |
2018/03/14 | 468 | 1,577 | <issue_start>username_0: I'm searching for something like
```
liftPredMaybe :: (a -> Bool) -> a -> Maybe a
liftPredMaybe p a
| p a = Just a
| otherwise = Nothing
```
Is there such a function in Haskell already?<issue_comment>username_1: Not quite a ready-made solution, but with `guard` (from `Control.Monad`) and... |
2018/03/14 | 567 | 2,244 | <issue_start>username_0: I'm using NiFi to connect 2 systems:
* Source one generating events in a Kafka topic
* Destination one where I will only consider the Oracle database.
I need to reduce the JSON coming in the Kafka topic and push them in appropriate tables. No major issues in doing this but... The source syste... |
2018/03/14 | 1,008 | 3,270 | <issue_start>username_0: I have a problem with my stored procedure in SQL Server 2017 Developer. It gets file's modification date using `xp_cmdshell`, returns `varchar` into temp table and trying to convert this to date. The stored procedure is working when I execute it in SSMS manually, but fails when I put it into a ... |
2018/03/14 | 1,155 | 4,078 | <issue_start>username_0: I am doing `asp.net/c#` tabs including a button. I want to change the color of the button once clicked and after I click another button I want to change the other buttons color and the first one will have the old color, I have used a class on active but it will change it for 1 sec.
This is my ... |
2018/03/14 | 981 | 3,450 | <issue_start>username_0: I know how to set the inserted value if it is an input control.
Example :
```
```
This code will still display your inserted value after the submit button. But how should I apply it with the `dropdown` control?
I tried to do like this but it's not working :
```
php
if(!empty($genders)... |
2018/03/14 | 1,141 | 3,293 | <issue_start>username_0: So, I have a simple SQL query, which however seems to be bugged (or my `where-clause` is written wrong), as it doesn't return a value if I select on a specific field (`matflag`) with a specific value (`50`).
The query is basically a `select from table1` with a subquery on `table2` where the `w... |
2018/03/14 | 654 | 2,094 | <issue_start>username_0: I get the following error:
>
> 18/03/14 15:31:11 ERROR ApplicationMaster: User class threw exception:
> org.apache.spark.sql.AnalysisException: Table or view not found:
> products; line 1 pos 42
>
>
>
This is my code:
```
val spark = SparkSession
.builder()
... |
2018/03/14 | 1,328 | 5,212 | <issue_start>username_0: Problem
=======
I have forms that are hosted by a 3rd party service. We'll call this www.3rdpartyform.com.
I have my site, www.mysite.com.
I want to be able to track traffic using google analytics campaigns going to www.3rdpartyform.com.
My Solution
===========
I've created a landing page ... |
2018/03/14 | 785 | 2,569 | <issue_start>username_0: I have a dataframe and I am looking to calculate the mean based on store and all stores. I created code to calculate the mean but I am looking for a way that is more efficient.
DF
```
Cashier# Store# Sales Refunds
001 001 100 1
002 001 150 ... |
2018/03/14 | 846 | 3,035 | <issue_start>username_0: Updated question based on comments:
Project P, is made up of submodules/mini-projects A, B,C,D,E.
>
> Please note that A,B,C,D,E are directories which house their own
> projects, ex A: Web, B: Analytics C: Devops D:does\_somethings E :
> Extra\_features and so on. in other words each of... |
2018/03/14 | 677 | 2,725 | <issue_start>username_0: I have a panel dataset in Stata that contains payroll data for 261 employers over two years. Each agency has a unique ID variable, as does each employee. Each row of data is a pay period. I'm trying to figure out how to count the number of employees for each agency. I was easily able to count t... |
2018/03/14 | 446 | 1,634 | <issue_start>username_0: I try to reloadData on UITableView at viewWillApper.
But deselectRow Animation is not working well.
How can I do reloadData & deselectRow animation?
```
override func viewWillAppear(_ animated: Bool) {
self.tableView.reloadData()
if let indexPathForSelectedRow = tableView.indexPathFor... |
2018/03/14 | 1,856 | 3,396 | <issue_start>username_0: ```
file_location3 = "F:/python/course1_downloads/City_Zhvi_AllHomes.csv"
housing = pd.read_csv(file_location3)
housing.set_index(['State','RegionName'],inplace=True)
housing = housing.iloc[:, 49:]
housing = housing.groupby(pd.PeriodIndex(housing.columns,freq='Q'),axis=1).mean()
data = h... |
2018/03/14 | 662 | 2,509 | <issue_start>username_0: Kotlin introduces the wonderful concept of Data Classes. These classes will derive the `equals()/hashCode()`, `toString()`, `getters()/setters()`, and a `copy()` function based on the properties declared in the constructor:
`data class KotlinUser(val name: String, val age: Int)`
In Java, this... |
2018/03/14 | 459 | 1,769 | <issue_start>username_0: I just get started with Android studio but I have ran into a problem
in the beginning stage of setup.
I have created my virtual device using AVD manager but whenever i hit 'run' button, it ask me to select device to run on but the drop box(Prefer android virtual device) doesnt show mine. what... |
2018/03/14 | 982 | 2,261 | <issue_start>username_0: Hey guys I dont usually use regex so I need a bit of help to get some matches from the below string. I only want the information in bold to match the regex expression, any help or explanation would be appreciated thanks.
'"FM 2222 RD / RIVER PLACE BLVD","0:",,"18:","00","**2008-08-14**","**CRA... |
2018/03/14 | 688 | 2,746 | <issue_start>username_0: When trying to use [Microsoft Dynamics 365 SDK Core Assemblies](https://www.nuget.org/packages/Microsoft.CrmSdk.CoreAssemblies/) in a .NET Core 2.0 project, the following error occurs at runtime simply by `using Microsoft.Xrm.Sdk`:
>
> TypeLoadException: Could not load type
> 'System.Service... |
2018/03/14 | 1,117 | 3,515 | <issue_start>username_0: I am using C++ in native mode with Visual Studio 2017 and I am **trying** to compile and run the example code found at [Debugging a Parallel Application in Visual Studio](https://learn.microsoft.com/en-us/visualstudio/debugger/walkthrough-debugging-a-parallel-application).
For the record, I pro... |
2018/03/14 | 1,093 | 4,573 | <issue_start>username_0: I've configured a [spring cloud config server](https://cloud.spring.io/spring-cloud-config/single/spring-cloud-config.html#_encryption_and_decryption) to use oAuth2 for security. Everything is working well, except the encrypt end point. When I try to access `/encrypt` I get a 403 Forbidden. I a... |
2018/03/14 | 618 | 1,694 | <issue_start>username_0: Matching acronyms containing both lower and upper case letters (atleast one of more lower and capital case like reKHS) or capital case acronyms of length 3 or more (CASE, CAT) in R. Regex should match both reKHS and CASE. This regex takes care of the latter case (matching acronyms of length 3 o... |
2018/03/14 | 358 | 1,222 | <issue_start>username_0: I ran a `mvn clean install` on a big Java project that I work on, but it kept failing due to some files not having the proper license headers. Well, thats not my concern right now, how do I skip that? the actual error i am seeing is,
```
Failed to execute goal org.codehaus.mojo:license-maven-p... |
2018/03/14 | 594 | 2,262 | <issue_start>username_0: I'm new to SQL and ran into a problem. Let's say I have a database of a bank which contains a category named accounts. I have id number 1 who has 1000 dollars and id number 2 who has 700 dollars. I want to make a transaction between them in 1 go. I've tried do the following:
```
update accoun... |
2018/03/14 | 710 | 2,687 | <issue_start>username_0: I have read [this article](https://learn.microsoft.com/en-us/rest/api/storageservices/understanding-block-blobs--append-blobs--and-page-blobs), but I am still not sure whether I should store PDFs as page or block blobs in Azure Blob Storage.
The documents are just corporate documents for archi... |
2018/03/14 | 624 | 2,253 | <issue_start>username_0: I have a 1TB zpool and a 700GB volume with one clean snapshot, such as:
```
zpool1
zpool1/volume1
zpool1/volume1@snap1
```
After writing 500GB data into volume, its written property has growth to 500GB as well.
Then I tried to rollback to the snapshot and I got error with "out of space".
D... |
2018/03/14 | 540 | 1,998 | <issue_start>username_0: ```
```
plz help me guys I'm creating a website only using html. I want to know how to add a picture into the title which is shown in the browser<issue_comment>username_1: Rolling back to a snapshot requires a little space (for updating metadata), but this is very small.
From what you’ve des... |
2018/03/14 | 1,045 | 3,820 | <issue_start>username_0: Ok so my question is , is there a way to loop something until a choice of Strings are inserted ?
```
case "John":
n = 12;
break;
case "Jenny":
n = 6;
break;
default:
System.out.print("Wrong Name");
```
Le... |
2018/03/14 | 481 | 912 | <issue_start>username_0: ```
df
A
0 503.36
1 509.80
2 612.31
3 614.29
```
I want to round to nearest 5 in a new *B column*, **using numpy** if possible.
Output should be:
```
A B
0 503.36 505.00
1 509.80 510.00
2 612.31 610.00
3 614.29 615.00
```<issue_comment>username_1: You... |
2018/03/14 | 572 | 1,855 | <issue_start>username_0: I want to serialise a mongoldb cursor. For this, I want to use bson.json\_util.dumps. Code example that works:
```
>>> from bson.json_util import dumps
>>> dumps(values)
'[{...}]'
```
However, I am also want to use json.dumps in the same code. For this reason, I would like to explicitly call... |
2018/03/14 | 666 | 2,336 | <issue_start>username_0: I can't seem to pass certain items into an `item` prop if they relate to the category that I am looping through
I have a `JSON` like this:
```
{
"Categories": [
{
"Name": "Music",
},
{
"Name": "Comedy",
},
{
"Name": "Sport",
},
{
"Name": "... |
2018/03/14 | 590 | 2,227 | <issue_start>username_0: I am trying to do a left ourter join in Athena and my query looks like the following:
```
SELECT customer.name, orders.price
FROM customer LEFT OUTER JOIN order
ON customer.id = orders.customer_id
WHERE price IS NULL;
```
Where each customer could only have one order in the orders table at... |
2018/03/14 | 551 | 2,176 | <issue_start>username_0: In java, if a variable is immutable and final then should it be a static class variable?
I ask because it seems wasteful to create a new object every time an instance of the class uses it (since it is always the same anyway).
Example:
Variables created in the method each time it is called:
... |
2018/03/14 | 717 | 2,367 | <issue_start>username_0: Consider 3 versions of a code with the same effects:
Version 1:
```
int main() {
std::map x = {{0,0}, {1,1}, {2,2}};
// Do some stuff...
return 0;
}
```
Version 2:
```
int main() {
std::map x;
x[0] = 0;
x[1] = 1;
x[2] = 2;
// Do some stuff...
return 0;
}
```
Version 3:
... |
2018/03/14 | 2,554 | 7,403 | <issue_start>username_0: When create using **CloudFormation**, there is no `Scale ECS Instances` button, to scale the instance you need to find the **Auto Scaling Group** to scale the instance which is not I want.
[](https://i.stack.imgur.com/3s2MK.pn... |
2018/03/14 | 649 | 1,906 | <issue_start>username_0: Using `sed` how can I match only lines containing the exact count of two tabs in order to remove their `\n`.
### Example:
Delete `\n` in line 1 and 3 only:
**Input:**
```
foo \t bar \t foo
foo \t bar foo
foo \t bar \t foo
foo \t bar \t foo \t bar
```
**Expected output:**
```
foo \t bar \... |
2018/03/14 | 2,585 | 7,615 | <issue_start>username_0: I have a list like this:
```
mylist <- list(PP = c("PP 1", "OMITTED"),
IN01 = c("DID NOT PARTICIPATE", "PARTICIPATED", "OMITTED"),
RD1 = c("YES", "NO", "NOT REACHED", "INVALID", "OMITTED"),
RD2 = c("YES", "NO", "NOT REACHED", "NOT AN OPTION... |
2018/03/14 | 1,312 | 4,589 | <issue_start>username_0: When a thread call `pthread_cond_signal()`, Unix network programming said `pthread_cond_signal()` just would nofity just one thread, beacause it isn't `pthread_cond_broadcast()`. It means there is no race condition. However, the book does not say which thread would be notified, and how. Does th... |
2018/03/14 | 636 | 1,976 | <issue_start>username_0: Following this RailsCast : <http://railscasts.com/episodes/256-i18n-backends> but using Rails 5.2, I raise this error :
```
Redis::CommandError in Pages#home
ERR unknown command '[]'
```
**In config/initializers/i18n\_backend.rb**
`TRANSLATION_STORE = Redis.new` seems causing this proble... |
2018/03/14 | 1,044 | 3,635 | <issue_start>username_0: I am trying to format a cell based on multiple conditions. I am creating a spreadsheet to keep track of items borrowed. Let's say I am lending books. I want to have a list of books, one name in each cell. Then below that I want to have 3 columns: One column to enter the name of the book borrowe... |
2018/03/14 | 432 | 1,542 | <issue_start>username_0: i am having a php file that is saving data into database, i want the file to keep on running even if the browser is closed.
this is what i tried:
js.php file:
```
setInterval(function() {
$.get('http://localhost/cryptopiamodelp/tst.php/', function(data) {
//do something with the data
aler... |
2018/03/14 | 533 | 1,881 | <issue_start>username_0: I'm trying to grab the NS and A records for a list of domains I have in a table.
I've started to write this:
```
$domains = GetDomainsForDNS();
foreach ($domains as $domain){
$domain_id = $domain[0];
$domain = $domain[1];
$dns_records = dns_get_record($domain, DNS_NS + DNS_A);
echo ... |
2018/03/14 | 443 | 1,435 | <issue_start>username_0: I was able to manage to be notified when an event's circumstances is met.
```
Private Sub Worksheet_Change(ByVal Target As Range)
Dim c As Range
For Each c In Range("H2:H7")
If Format$(c.Value, "HH:MM:SS") = "00:15:00" Then
MsgBox "Block ends in 15 mins"
End If
Next c
```
Now... |
2018/03/14 | 1,042 | 3,708 | <issue_start>username_0: New Node & React user here. I'm following the [React tutorial](https://reactjs.org/tutorial/tutorial.html) but run into a problem on my Windows 10 machine:
```
C:\Users\Wout>create-react-app my-app
Creating a new React app in C:\Users\Wout\my-app.
Installing packages. This might take a coupl... |
2018/03/14 | 414 | 1,584 | <issue_start>username_0: I have an SSIS project where Flat File Source reads CSV file. It contains a field Order Item Id that is formatted as a string like "347262171", surrounded by quotes. I want to convert that to numeric value so I can use it as an index but everything I try gives me result:
>
> Data conversion f... |
2018/03/14 | 905 | 3,197 | <issue_start>username_0: I am new to CakePHP framework. I have been stuck on an issue for sometime now.
I am trying to make a json response work. I have read the tutorial on how to here:[JSON and XML views in CakePHP](https://book.cakephp.org/3.0/en/views/json-and-xml-views.html). However, it is still not working on ... |
2018/03/14 | 936 | 3,071 | <issue_start>username_0: I want to install carthage on my Mac OS using `brew install carthage` command. However, I get the following error:
```
touch: /usr/local/Homebrew/.git/FETCH_HEAD: Permission denied
touch: /usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask/.git/FETCH_HEAD: Permission denied
touch: /usr/loc... |
2018/03/14 | 925 | 3,064 | <issue_start>username_0: i am using following code to integrate tinymce
```
tinyMCE.init({
mode : "textareas",
theme : "advanced",
plugins : "emotions,spellchecker,advhr,insertdatetime,preview",
// Theme options - button# indicated the row# only
t... |
2018/03/14 | 407 | 1,388 | <issue_start>username_0: How can i check if user is logged in to umbraco from the view(.cshtml)?
I would also know how to check the users role.
`User.Identity.IsAuthenticated` always returns false.
```
if( User has role = "someRole" )
{
do stuff
}
```
Im using Umbraco version: 7.8.1<issue_comment>usernam... |