date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/09 | 840 | 3,012 | <issue_start>username_0: I need to run java command from python flask application which is deployed using cf. How can we make java runtime available to this python flask app.
I tried using multi-buildpack, but java\_buildpack expects some jar or war to be executed while deploying the application.
Any approach that wo... |
2018/03/09 | 880 | 3,073 | <issue_start>username_0: On using below JavaScript Event code :
```
JavascriptExecutor jsExecutor = (JavascriptExecutor) driver;
jsExecutor.executeScript("$(arguments[0]).change();", WebElement);
```
>
> JavaScript Error:
>
>
> A JavaScript exception occurred: Can't find variable: $' error message is displayed.
... |
2018/03/09 | 542 | 1,909 | <issue_start>username_0: I have some trouble to push my rails app to heroku.
I have the error
>
> Failed to install gems via Bundler.
> remote: ! Detected sqlite3 gem which is not supported on Heroku:
> remote: ! <https://devcenter.heroku.com/articles/sqlite3>
>
>
>
So i did follow the instructions on the li... |
2018/03/09 | 299 | 1,089 | <issue_start>username_0: I want to create new variables in a for-loop where the variable-name shall contain the index of the loop: pos\_1, pos\_2...
So I try that:
```
for(i=1; i<=slide_length;i++){
var pos_[i] = 49*i;
}
```
But that doesn't create anything. What do I do wrong here?<issue_comment>username_1: > ... |
2018/03/09 | 511 | 1,860 | <issue_start>username_0: i am implementing **PayYouMoney** payment gateway in my ionic app, for this I have to call web view pages for payment transaction, i want application back in my ionic **thankyou** and **failed** pages from webview as per **web-view** url conditions. below is my code:
```
var url = 'https://www... |
2018/03/09 | 428 | 1,627 | <issue_start>username_0: I would like to pass list of UUID in JPA.
Given below is my code
### Entity class
```
@Entity
public class MyEntity {
@Id
@Convert(converter = UUIDConverter.class)
private UUID id;
@Convert(converter = UUIDConverter.class)
private UUID someUuid;
// getters and set... |
2018/03/09 | 571 | 2,002 | <issue_start>username_0: I'm trying to append a random number to a string and then parse that as a variable name in my innerHTML.
```
var a = Math.floor((Math.random() * 3) + 1);
var description1 = "This is description 1";
var description2 = "This is description 2";
var description3 = "This is description 3";
var de... |
2018/03/09 | 599 | 2,230 | <issue_start>username_0: i have uploaded image file in my firebase. I have stored url to firebase-database. During storing process,To get url i used `Uri downloadUri = taskSnapshot.getDownloadUrl();`
Now i want to download that image file from that url when button is clicked and want to store that image file into spec... |
2018/03/09 | 2,815 | 10,463 | <issue_start>username_0: So basically, I'm trying to make a hybrid structure for an MVC project. The frontend framework will be managed by Webpack and VueJS. However, after weeks of tinkering and picking up proper Webpack knowledge together with Vue, i've been unable to achieve what I want to do so.
[![This is the str... |
2018/03/09 | 967 | 3,302 | <issue_start>username_0: I am trying to test whether a method calls another method within the same class. Example:
```
public class Foo {
public void bar(String a){
switch(a) {
case "callBaz":
baz(a);
break;
case "callBat":
bat(a);
... |
2018/03/09 | 514 | 1,769 | <issue_start>username_0: I am trying to load a json data from backend service to my angular app. I want to load/push data into an array. Below is what my data from backend looks like
```
{ "Record":[
{
"Name":"John",
"Place":"Seattle"
},
{
"Name":"AS2",
"Place":"DC"
}]}
```
Here is my a... |
2018/03/09 | 2,889 | 7,455 | <issue_start>username_0: currently I am trying to figure out a join between to historized tables, where I want to synchronize both timeline.
As an example, I have the following two tables:
```
A
ID Value FROM TO
1 5 01.01.2018 31.03.2018
1 6 31.03.2018 08.04.2018
B A_FK ... |
2018/03/09 | 486 | 1,643 | <issue_start>username_0: I have this float 98.01645 and I'm getting 98.02 with this function:
```
String lastCredit = String.format("%.2f", AppSingleton.getInstance().credit);
```
That I want is get 98.01 (only two decimals or not rounded number). I'm trying but I can't get the way to do it work.<issue_comment>u... |
2018/03/09 | 1,348 | 5,057 | <issue_start>username_0: I have flags that may be defined in multiple components. Its not possible to know if a component has already defined a flag, as such if two components Foo and Bar require flag Zed, but Foo and Bar must define flag Zed. In this case, Go's flag's will panic with an error flag redefined.
Is there... |
2018/03/09 | 1,279 | 4,619 | <issue_start>username_0: I would like to update a column row inside MYSQL by adding `50` to the last current number.Means column named `sum` was `200` and after query, it will update to `250`.
I can do this by using two query as follow:
```
$add1 = 50;
$sql = "SELECT sum FROM table_name WHERE id = '$id' ";
$result = $... |
2018/03/09 | 1,439 | 4,869 | <issue_start>username_0: I trained a model with 4 hidden layers and 2 dense layers and I have saved that model.
Now I want to load that model and want to split into two models, one with one hidden layers and another one with only dense layers.
I have splitted the model with hidden layer in the following way
```
mode... |
2018/03/09 | 1,259 | 4,178 | <issue_start>username_0: ```
var strWidth = document.getElementById("mydiv").style.width;
var strHeight = document.getElementById("mydiv").style.height;
var link = "<?php if(isset($\_GET["ggg"])) {
echo $\_GET["ggg"].".php?width=800&height=460";
} else {
echo "page1.php?width=800&height=460";
}
?>";
```
this is my s... |
2018/03/09 | 834 | 3,317 | <issue_start>username_0: I need to starts the same ajax request when it finishes. The reason why I'm doing that, is because the setInterval does not supply me, there is no guarantees that the all requests made in the first second will be completed until the second setInterval call.
I see everything, since a setInterva... |
2018/03/09 | 949 | 2,843 | <issue_start>username_0: 
I was wondering if someone knows how I can get the missing results from the 2nd column ("As-IS-Rownumber", which are yellow). As example which shows the desired outcome, I added the 1st column("To-Be - Desired").
BTW I work ... |
2018/03/09 | 818 | 2,339 | <issue_start>username_0: I got an array of objects with structure like this
```
myArr = [
{name: Test1, age: 20, info: Test2},
{name: Test2, age: 20, info: Test3},
{name: Test5, age: 28, info: Test30}
]
```
With my custom action I am adding new info to array. But before adding new obejc... |
2018/03/09 | 1,515 | 5,402 | <issue_start>username_0: I want to add count down timer to my vue component. I have found a script which is written in normal JavaScript.
this is my JavaScript file.
```
var upgradeTime = 7200;
var seconds = upgradeTime;
function timer() {
var days = Math.floor(seconds/24/60/60);
var hoursLeft = Math.f... |
2018/03/09 | 1,189 | 4,198 | <issue_start>username_0: This is my div class.
```
```
How to replace the "string" of below codes with above ng-attr-id?
```
var target = document.getElementById('string');
```<issue_comment>username_1: Better just make a CountdownTimer component out of that code.
Maybe have a look [at this post: countdown-timer-... |
2018/03/09 | 677 | 2,236 | <issue_start>username_0: From wiki document <https://github.com/SeleniumHQ/selenium/wiki/PageFactory> I found that, if script found some ement using eg.
`@FindBy(id = "q") WebElement q;`
the sentence:
```
q.sendKeys(text);
```
is equivalent to:
```
driver.findElement(By.id("q")).sendKeys(text);
```
but how ... |
2018/03/09 | 858 | 2,124 | <issue_start>username_0: Please, how can I fit a function for different groups in a data set (Soil) using R. the first column is the group i.e. Plot and the second column is the observed variable i.e. Depth
```
Plot Depth
1 12.5
1 14.5
1 15.8
1 16.1
1 18.9
1 21.2
1 23.4
1 25.7
2 13.1
2 15.0
2 15.8
2 16.3
2 17.4
2 18.6... |
2018/03/09 | 602 | 1,942 | <issue_start>username_0: I want to import Journal vouchers in Tally. For each ledger in the voucher, I need to specify multiple Cost categories and against each Cost category, I need multiple Cost centres.
Here's an example.
Ledger named **Ledger-1**
* Manufacturing **Cost Category-1**
* Cost Centre1 - Rs 500
* Cost... |
2018/03/09 | 387 | 1,339 | <issue_start>username_0: I am trying to upload files using Jenkins to Azure blob storage while uploading files AZCopy asks for confirmation which ends up in error.
```
[2018/03/09 10:11:11][WARNING] Incomplete operation with different
command line detected at the journal directory
"/var/lib/jenkins/Microsoft/Azure/A... |
2018/03/09 | 767 | 2,936 | <issue_start>username_0: I am currently programming my first shiny application and I am having some difficulty with some of the more subtle user interface features. I am using the tcltk library to import a number of simple dialog boxes for the user to select local directories and files (the application is only going to... |
2018/03/09 | 448 | 1,518 | <issue_start>username_0: before I post this thread, I search my question, but I see only how to get recipients from database or other is with only mail() function.
I want to send emails from txt file, but my code send only first email from text document.
```
php
include("msd/mail.php");
$file = fopen("emails.tx... |
2018/03/09 | 608 | 2,488 | <issue_start>username_0: Mobile mobileNumberValidator returns fine but the other two validators returns a null promise on errors. Cant identify the mistake i have done here. Please help.
Those two validators sets errors in formbuilder object as follows
errors
:
{\_\_zone\_symbol\_\_state: null, \_\_zone\_symbol\_\_val... |
2018/03/09 | 435 | 1,425 | <issue_start>username_0: I am trying to integrate react-native-image-crop-picker in react native to pick up multiple images at once but failed to do so.
It show me the following error:
>
> error: Undefined is not an object (Eveluating
> '\_react\_NativeImageCropPicker2.default.openPicker
>
>
>
[![enter image des... |
2018/03/09 | 464 | 1,442 | <issue_start>username_0: I have a table for Groups, ex:
```
[id] [name]
1 Group1
2 Group2
3 Group3
```
and another table for their shedule:
```
[id] [group_id] [date]
1 1 2018-03-03
2 1 2018-03-09
3 1 2018-03-06
4 2 ... |
2018/03/09 | 772 | 2,257 | <issue_start>username_0: I have an array of object with `dateString`(of creation) as parametere. I wanna `sort` the array of objects based on `timestamp`(of creation).
For example,
```
array = ["dateString":"2018-03-06", "dateString":"2018-03-05"]
```<issue_comment>username_1: Considering your array has the followin... |
2018/03/09 | 1,166 | 4,387 | <issue_start>username_0: I am quite new to c++, so bear with me.
I have a vector that consists of structs. They are both in a class. I am supposed to read data from a file(which works fine) and save it. But when I try to input information in any part of the struct, my program crashes.
This is in the class in the head... |
2018/03/09 | 821 | 3,223 | <issue_start>username_0: The question is how can I find all records without associations **OR** with associations that have field not equal to given string:
```
class Group < ApplicationRecord
has_many :administration_groups
has_many :administrations, through: :administration_groups
end
class AdministrationGroup ... |
2018/03/09 | 664 | 2,593 | <issue_start>username_0: Is there any way of changing the CSS of an element if another element is displayed as 'block' using pure JavaScript?
Sorry probably should have said, the display of the element is dependent on whether a button is pressed.
So button press, element1 = display: block; and element2 = opacity: 0.... |
2018/03/09 | 688 | 2,533 | <issue_start>username_0: I'm trying to build a regex that allows only strings with at least 10 alphanumeric characters that contain at least 3 digits.
For example :
```
X6JV2YUW8T => True
JN1H86LEKA => True
111JEJE134 => True
A111111111 => True
ABCDEFGHIJ => False
0123456789 => False
```
Many thanks in advance<issu... |
2018/03/09 | 779 | 2,879 | <issue_start>username_0: I have a many-to-many relationship between Part and Material models. It's working perfectly with a pivot table.
Now I just added another column to the pivot table called 'provider\_id'. What I need is when a User adds a Material to a Part he also selects which provider for that Material (becau... |
2018/03/09 | 915 | 3,008 | <issue_start>username_0: ```
public function addNewPost(Request $request)/****ADD new POST****/
{
$this->validate($request,['post_title'=>'required|min:4|max:100',
'post_description'=>'required|min:20|max:500'
]);
$user_name = Session::get('name... |
2018/03/09 | 651 | 2,490 | <issue_start>username_0: I want to remove the state of my `GlobalKTable` store.
I tried to remove the state by:
* deleting the entire Kafka topic by calling `kafka-topics.sh --zookeeper localhost:8080 --delete --topic my-topic`
* running `KafkaStreams.cleanUp()` on application startup
* producing a 'Test:null' messag... |
2018/03/09 | 665 | 2,617 | <issue_start>username_0: I have been trying to search string patterns in a large text file. I am reading line by line and checking each line which is causing a lot of time. I did try with `HashSet` and `ReadAllLines`.
`HashSet strings = new HashSet(File.ReadAllLines(@"D:\Doc\Tst.txt"));`
Now when I am trying to search... |
2018/03/09 | 1,334 | 4,540 | <issue_start>username_0: I have this ajax post, works perfectly fine so it runs the function `test` passing `data` to it.
```
$("#formID").submit(function (event) {
$('#postError').html('').hide();
$('#postInfo').html('loading results').show();
event.preventDefault();
$.ajax({
type: 'P... |
2018/03/09 | 1,257 | 4,311 | <issue_start>username_0: I have a class animal and a class cat that extends that:
```
class Animal {
protected String name;
...
}
class Cat extends Animal {
protected int livesLeft;
...
}
```
Each one has a separate `JsonSerializer`:
```
module.addSerializer(Cat.class, new CatSerializer());
module.addSerial... |
2018/03/09 | 535 | 1,919 | <issue_start>username_0: I know what OWASP is by now but I find it too vague how perform the task of checking if an app (made of React and Node) is OWASP proof. I read about [the top 10 security risks](https://www.owasp.org/index.php/Top_10-2017_Top_10) and I would like to know if there is any step-by-step guide or som... |
2018/03/09 | 541 | 2,345 | <issue_start>username_0: I have an operative table, call it `Ops`. The table gets queried by our customers via a web service every other second.
There are two processes that affect the table:
1. Deleting expired records (daily)
2. Inserting new records (weekly)
My goal is to reduce downtime to a minimum during the... |
2018/03/09 | 678 | 2,394 | <issue_start>username_0: I need to create a function that returns a value to one of my plugins [**WooCommerce Dymo Print**](https://wordpress.org/plugins/woocommerce-dymo-print/). It requires `$order_id`, `$label` and `$object`. The `$object` is the field I need to return the value to.
I created the following code:
`... |
2018/03/09 | 442 | 1,431 | <issue_start>username_0: I am trying to print object value by {{object-name}} but I am getting no response as its not printing, not sure what i am missing;
Class
-----
```
export class RadioButtonQuestion extends QuestionBase {
controlType = 'radio';
options: {key: string, value: string}[] = []; // I need to print t... |
2018/03/09 | 4,703 | 8,695 | <issue_start>username_0: I am having a first go at the CONNECT BY command, and I understand its potential to create loops with it. I was trying to create a query that generates a row for each timestamp between a starttime and an endtime, with a variable interval. When I run this query for each 'route' individually, it ... |
2018/03/09 | 1,782 | 4,271 | <issue_start>username_0: I'm trying to transform an XML file and trying to test if a node's grandparent has a certain name but i don't know how to get to the grandparent name. this is the example I'm working on. what i tried to do is to get the parent and then find the parent of the parent but it didn't work.
thanks... |
2018/03/09 | 2,068 | 4,671 | <issue_start>username_0: When using nltk package to tokenize Arabic text, the results appear as numbers! There is no problem when tokenizing English text.
>
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xd8 in position 0: ordinal not in range(128)
>
>
>
```
# -*- coding: utf-8 -*-
import nltk
from nltk.t... |
2018/03/09 | 564 | 2,010 | <issue_start>username_0: On an XPage I have a table component:
```
```
on which I want to initiate the datatables plugin on via a scriptblock component:
```
$(document).ready(function() {
var tableId = x$("#{id:tblProposals}");
$("#" + tableId.get(0).id).DataTable();
initProposals("#" + tableId.get(0).id,"getP... |
2018/03/09 | 455 | 1,631 | <issue_start>username_0: I have a traditional file system.
The data file is of size 4 GB and looks like
**ID, Name, Role, Dept**
1, Patrick, 2, 3
2, Emanuel, 1, 5
3, Mike, 1, 5
I have to transform the file into:
**ID, Name, Role, Dept**
1, Patrick, Operator, Grinding
2, Emanuel, Assistant, HR
3, Mike, Assist... |
2018/03/09 | 1,228 | 5,264 | <issue_start>username_0: I have a case to be implemented in my project.Below is a sample rest service which has to be implemented
```
@GET
@Path("/test/{id}")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public String getData(@PathParam("id") String id) {
//So... |
2018/03/09 | 1,172 | 4,582 | <issue_start>username_0: What I have: A trained recurrent neural network in Tensorflow.
What I want: A mobile application that can run this network as fast as possible (inference mode only, no training).
I believe there are multiple ways how I can accomplish my goal, but I would like you feedback/corrections and ad... |
2018/03/09 | 927 | 3,509 | <issue_start>username_0: I'm playing a sound using AVPlayer. I'm trying to let the iPhone vibrate during this sound.
I'm able to create a vibration with:
```
AudioServicesPlayAlertSound(kSystemSoundID_Vibrate)
```
But I'm having **problems trying to loop this vibration** if I use:
```
vibrationTimer = Timer.sch... |
2018/03/09 | 900 | 3,539 | <issue_start>username_0: How to read **@Value** property **outside** the class that implements the Callable interface at MuleESB? In my case the **some\_property**:
* is not null at onCall method in the MainClass (ok)
* is null at foo() methid in the ClassB (wrong)
How can I get this value in the foo() method? I don'... |
2018/03/09 | 1,937 | 7,852 | <issue_start>username_0: I am teaching myself... I cannot understand why the UI won't update when a second class is involved. I am missing something basic and I don't get it.
In the first Class:
I have two ObservableCollections bound to two WPF ListViews, which is bound correctly and works.
I have a Command bound to a... |
2018/03/09 | 522 | 1,677 | <issue_start>username_0: When I want to add
```
data1 sum1
data2 sum2
```
to database,
what is actually happening :
```
data1 data1
sum1 sum1
data2 data2
sum2 sum2
```
My form element is;
```
```
And PHP;
```
foreach ($_POST['alanlar'] as $key => $value) {
$baglanti->query(sprintf("INSERT INTO d... |
2018/03/09 | 289 | 1,052 | <issue_start>username_0: I am new to angular. I want to create a expandable tree in angular 5. I have tried to using Angular-tree-component and ngx-treeview. but the problem with them is they need a json in specif format. is there any library which reads a any type of json and creates a expandable tree ? or do I need t... |
2018/03/09 | 852 | 3,315 | <issue_start>username_0: I finally got my Files.walk working now my question is if there is any way to identify if the file collected to the list comes from a subfolder or mainfolder because there is a delete function for these files but the files from the sub folder the user should not be able to delete.
```
private... |
2018/03/09 | 2,367 | 8,913 | <issue_start>username_0: I want to move all data 5 (EditText) from activity 1 to 2
public class MainActivity extends Activity
```
private EditText fName_ET;
private EditText lName_ET;
private EditText phoneNum_ET;
private EditText eMail_ET;
private EditText deviceModel_ET;
private EditText nameD... |
2018/03/09 | 425 | 1,503 | <issue_start>username_0: Can't decode JSON to foreach
Need help
```
php
$workers = 'https://api.ethermine.org/miner/***/workers';
$workersContent = file_get_contents($workers);
$workersJson = json_decode($workersContent, true);
foreach ($workersJson['data']['worker'] as $worker) {
$output = $worker['work... |
2018/03/09 | 1,043 | 3,471 | <issue_start>username_0: Lets say I have a list such as:
```
listofpeople = [{'Jack': ['Blue', 'Red', 'Green']}, {'Barry': ['Red', 'Green', 'Orange']}]
```
If I were to go about searching for the index of 'Jack', how would I find his index if 'Jack' is a key value of a dictionary within a list?<issue_comment>usernam... |
2018/03/09 | 760 | 2,945 | <issue_start>username_0: I'm using the Typo3 form-module (sysext) with two email-finishers: EmailToReceiver vs. EmailToSender. I set up a custom mailtemplate, but
* HOW can I select different mailtemplates for this two different mails?
* OR is there another way to send two different mails?<issue_comment>username_1: Y... |
2018/03/09 | 1,212 | 4,487 | <issue_start>username_0: I wrote code to extract data from the URL a particular page.
First time I run the code it extracts data from URL to cell `C1`.
I am at a point where I want to display a `MsgBox` whenever cell value changes.
For example:
* First time I run the code `"Happy"` gets extracted to cell C1.
(Cel... |
2018/03/09 | 444 | 1,877 | <issue_start>username_0: I'm trying to present a view controller and dismiss my current modal view. I saw the answers on StackOverflow, but I don't understand it.
```
self.dismissViewControllerAnimated(true, completion: {
let vc = self.storyboard?.instantiateViewControllerWithIdentifier("myViewController")
... |
2018/03/09 | 2,509 | 4,516 | <issue_start>username_0: By grouping a data frame by multiple grouping variables `a:c` I want to divide it virtually into subsets. After that I want to add two columns, one that contains the count of the subset size, and another that is the ID of the subset.
```
set.seed(67)
n <- 1000
df1 <- data.frame(
a=rbinom(n... |
2018/03/09 | 445 | 1,386 | <issue_start>username_0: I'm using the click module.
```
pip install click
```
This gives me red text
```
import click
click.secho('Error: This error is ...xx', fg='red')
```
Now I want that only 'Error:' is shown in red. How can I do this using `click.secho`?<issue_comment>username_1: From `click` documentation ... |
2018/03/09 | 562 | 1,717 | <issue_start>username_0: How to find and filter unique values from a text file.
I tried like below, its not working.
```
val spark = SparkSession.builder().master("local").appName("distinct").getOrCreate()
var data = spark.sparkContext.textFile("text/file/opath")
val uniqueval = data.map { rec => (rec.split(",")(3).... |
2018/03/09 | 3,255 | 7,914 | <issue_start>username_0: I have two matrices: in "matrix" there are 0 and 1. In "matrix\_2" I would like to sum the cells around the single cell.
For example:
```
matrix =
[[0 0 0 0 0 1 1 0 0 0]
[0 0 0 0 0 1 1 0 0 0]
[1 1 1 0 1 1 0 1 0 0]
[0 0 1 1 1 1 0 1 0 0]
[0 0 1 1 1 1 1 0 0 0]
[0 0 0 0 1 0 0 0 0 0]]
```
And
``... |
2018/03/09 | 854 | 2,995 | <issue_start>username_0: I have 2 urls
* `/register`
* `/register?sponsor=4`
The `/register` route will give me a clean input text in which I can type everything
and the second route will bring a the same input but it has a value of 4 and it's disabled so users cannot modify it.
I managed to get params from ro... |
2018/03/09 | 175 | 558 | <issue_start>username_0: I have this simple query that is driving me crazy.
```
select current_date as "TODAY" from table
```
except that I need the date to be in mmddyy format. so If I run it today it would be 030918.
I am using DB2<issue_comment>username_1: If you want the date in a particular format, then conve... |
2018/03/09 | 683 | 3,148 | <issue_start>username_0: My new colleague incessantly insist me to count the number of times functions inside a unit test gets called when doing backend unit testing. I can see why it can be helpful at times but for most part I feel that it is redundant and unnecessary. From my perspective, it should not matter what fu... |
2018/03/09 | 832 | 3,092 | <issue_start>username_0: I have a program that seems to crash as soon as it can't find an entry in a VLookup.
To try and comply with some NDAs any identifying information will be removed.
```
LcTg = Cells(i, "K")
Bldg = Mid(LcTg, 1, 1)
Zone = Mid(LcTg, 2, 2)
Aisle = Mid(LcTg, 4, 2)
If Not (IsNumeric(Zone)) Then
A... |
2018/03/09 | 417 | 1,876 | <issue_start>username_0: Is there any way to compare only the date portion of dateTime field? I know I could use between with begin and end of day but that isn't pretty. Neither compare each field (day, month, year...);
Any suggestions?<issue_comment>username_1: Consider that you have the following method
```
public ... |
2018/03/09 | 682 | 2,767 | <issue_start>username_0: i'm trying to create a simple script that transforms all the tiff images in a directory to jpg, but I get this error:
>
> cannot write mode RGBA as JPEG
>
>
>
Here's my code:
```
import os
from PIL import Image
yourpath = os.getcwd()
for root, dirs, files in os.walk(yourpath, topdown=Fa... |
2018/03/09 | 1,435 | 5,441 | <issue_start>username_0: How to send "End" message after resolving promise? Sometimes I can send 2 "end" messages out of 4, sometimes 3. Files from FTP are being downloaded and it's ok. The only thing that doesn't work is sending "end" message after downloading a file. Do you have any idea why this code doesn't work pr... |
2018/03/09 | 657 | 2,411 | <issue_start>username_0: On my pymongo code, inserting twice the same doc raises an error :
```
document = {"auteur" : "romain",
"text" : "premier post",
"tag" : "test2",
"date" : datetime.datetime.utcnow()}
collection.insert_one(document)
collection.insert_one(document)
```
rais... |
2018/03/09 | 1,592 | 5,712 | <issue_start>username_0: I am an university student. I was given a task to write singly linked list. I started implementing it with nodes exposed([c# style](https://msdn.microsoft.com/en-us/library/wzf8sxa0(v=vs.110).aspx)), but it lead to many null checks when used. Then I made nodes private and list elements were exp... |
2018/03/09 | 914 | 3,637 | <issue_start>username_0: PostgreSQL, by default, does not allow remote connections. I know I could change the configuration to allow remote connections, but the software vendor will not support making any changes to the configuration. Since we develop add-on products for this vendor, we cannot simply ignore their wishe... |
2018/03/09 | 738 | 2,501 | <issue_start>username_0: I have something like this in index.html where each box has 2 images and I'm trying to fade between images for each box ( which has different id /item.id/ ).
Please note that I use ng-repeat and that's why I use the angular id
```
```
and I have this in the index.js
```
$(document).ready(fu... |
2018/03/09 | 679 | 2,392 | <issue_start>username_0: In a node\_module component I have a bunch of sass variables I want to override. For example, a variable in a component that has a !default rule:
`$header-bg: red !default;`
I want to override this variable in my global style sheet in my angular-cli project to blue.
Simply adding `$header-b... |
2018/03/09 | 721 | 2,663 | <issue_start>username_0: I have hibernate set up in my spring project, once the tables are created in my database it works no problem, however I want my hibernate to automatically create my tables for me. I am not using xml for the configuration I am using application.properties file and a hibernateConfig.java class.
... |
2018/03/09 | 709 | 2,325 | <issue_start>username_0: I am using a function to print numbers from 1 to N in C.But problem is that,the variables must be defined internally and there should be no use of loops.The function is being called by name.In short, function should print a digit each time it is called. I am unable to code the program since the... |
2018/03/09 | 433 | 1,426 | <issue_start>username_0: In my wordpress frontpage I'm using query\_posts to show posts from the blog.
However, I head that using query\_posts is a bad practice, so I'm rewriting the code using WP\_query. The problem is that WP\_query only returns the current page when I do this, regardless of the fact that I explicit... |
2018/03/09 | 1,016 | 2,545 | <issue_start>username_0: I have a dataframe that has got many columns.
I want to apply a function on each row that alters all the columns based on different column.
```
def mark(row):
columns = get_columns_to_alter(row['Text'])
for c in columns:
row[c] = True
```
And I was trying to use apply function
```... |
2018/03/09 | 951 | 2,349 | <issue_start>username_0: As the title says, the issue arises only when viewed on mobile.
On my pc it looks exactly as desired but when I open it up on a mobile device there is a blank space between the background image and the footer?
Site is live @
<https://claritysalonspa.com>
Any help would be appreciated!<issue... |
2018/03/09 | 988 | 3,793 | <issue_start>username_0: I am trying to use two way data binding with the radio button. It is working fine with one way like below,
`android:checked="@{registration.gender.equals(Gender.FEMALE.getValue())}"`.
But My problem is that, I need to set the value of selected radio button in my model.
```
xml version="1.0"... |
2018/03/09 | 713 | 2,694 | <issue_start>username_0: I have a feathers.js service and I need to redirect to a specific page when using post
```
class Payment {
// ..
create(data, params) {
// do some logic
// redirect to an other page with 301|302
return res.redirect('http://some-page.com');
}
}
```
>
> Is there a ... |
2018/03/09 | 813 | 3,237 | <issue_start>username_0: I am currently evaluating the framework "wolkenkit" [1] for using it in an application. Within this application I will have a user interface for tenant-based data management. Only authenticated users will have access to this application.
Additionally there should be a public REST API following... |
2018/03/09 | 1,061 | 4,139 | <issue_start>username_0: I'm building directive which should add class when element entered viewport and will also trigger custom event. I found 2 approaches to trigger the event - `EventEmitter`and `dispatchEvent()`, both works fine. Which should be used in this case and why? (Any other advices on the code appreciated... |
2018/03/09 | 1,784 | 6,304 | <issue_start>username_0: First of all: this is not a kind of a IDENTITY() field.
In QlikView, it is used to generate a number based on parameters send to function.
See its documentation here: <https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/CounterFunctions/autonumber.htm>
In sho... |
2018/03/09 | 625 | 2,363 | <issue_start>username_0: I am writing a web-app for a mobile device, what I am doing is to change dynamically the css and store that option for the user, I have been looking all night long, googling methods and way to achieve my objective but nothing worked for me.
This is the type of button that I am using, and here ... |
2018/03/09 | 423 | 1,216 | <issue_start>username_0: I would like to convert integer to words, for eg: 29 would become *TWENTY NINE* and 50 would be *FIFTY*. How can I achieve this using PHP?
Here is what I have so far but it isn't giving the desired output.
```
$fees_so = $form_data_fees['field']['4'];
$feesInWords = strval($fees_so);
echo $fe... |
2018/03/09 | 1,113 | 4,053 | <issue_start>username_0: I am trying to get some data from an API and i want to show the category name and image in the `gridview`, the code can bring the data from the server but i think i have some problem at the adapter that inflates the `gridview` itself which is why it doesn't show anything at all.
**Here's the a... |
2018/03/09 | 755 | 2,019 | <issue_start>username_0: i am new in nodejs, i want to search in big data, how can i search a document without using skip() and limit(), my database structure is
```
{
"_id" : ObjectId("5a9d1836d2596d624873c84f"),
"updatedAt" : ISODate("2018-03-05T10:13:10.248Z"),
"createdAt" : ISODate("2018-03-05T10:13:10... |
2018/03/09 | 579 | 2,050 | <issue_start>username_0: I have a method that can receive a parameter of **"month"** and another of **"year"**, you can receive both or only one of them.
In the case of *only receiving the month* I want to make a query that I look for in a field that is called **"created\_at"** just looking for the **month** of that f... |
2018/03/09 | 1,621 | 4,648 | <issue_start>username_0: I'm receiving the following error when executing the dev\_appserver.py:
```
from google.auth import app_engine
File "/google/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/ python/runtime/sandbox.py"
, line 1147, in load_module
raise ImportError('No modu... |
2018/03/09 | 903 | 3,285 | <issue_start>username_0: I'm currently test driving and I have already built a localized "Hello world" following the [tutorial](https://flutter.io/tutorials/internationalization/). However, when I tried to move my widget to a different file, I got a red screen of death with the error:
```
The following NoSuchMethodErr... |
2018/03/09 | 413 | 1,534 | <issue_start>username_0: when i try to access my object {{result}} in my view, which i send from my express js server, its only showing [object][object]
is there anyone know how to get its value in JSON format?
this is my html code
```html
console.log({{result}});
```
and this is my server code
```js
const expr... |
2018/03/09 | 426 | 1,470 | <issue_start>username_0: I am scanning a directory by its MimeTypes. So far, my code counts the total amount of existing MimiTypes in the directory:
```
File dir = new File(dirPath);
File[] files = dir.listFiles((FileFilter) HiddenFileFilter.VISIBLE);
ArrayList mimeArray = new ArrayList();
if (files.length == 0) {
... |