date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/22 | 403 | 1,627 | <issue_start>username_0: Using Foxit .NET SDK in an application to flatten a PDF. When I open the document using Phantom PDF document appears to be flattened. When the document is opened using Adobe Reader, the document appears not to be flattened and the form fields accessible. This is the code I'm currently using:
`... |
2018/03/22 | 2,129 | 8,218 | <issue_start>username_0: I want to export some data from my PLC by writing it into a text-file and saving it to an USB-Stick. I managed to create the text file, but I can't write anything.
I use functions from the TwinCAT standard-libraries in the following code:
```
PROGRAM P_WriteFile
VAR
nStateP : IN... |
2018/03/22 | 335 | 1,289 | <issue_start>username_0: I have the following code for the DropDown Selected Index Changed. But It's not firing the event as expected
```
```
I'm getting the following error in the Console
>
> Uncaught Error: Sys.WebForms.PageRequestManagerServerErrorException:
> Invalid postback or callback argument. Event valid... |
2018/03/22 | 201 | 682 | <issue_start>username_0: I have a multibyte character ''. How can I convert this into '\360\245\242\245'?
`use Devel::Peek;` gives me that information, but it only prints it to console...<issue_comment>username_1: Try Setting this property on your aspx page as:
```
EnableEventValidation="false"
```
Upvotes: 3 [select... |
2018/03/22 | 677 | 2,629 | <issue_start>username_0: I have a number of documents with selection dates and location id's. I am trying to build a pipeline that will match on documents with a selection time that falls within the last hour then run a count on those. My dates are in mm-dd-yyyy hh:mm:ss format but seem to be represented as strings in ... |
2018/03/22 | 2,000 | 7,570 | <issue_start>username_0: I'm working on a pw change form in my laravel app. I want to use the validator with custom error messages.
My code looks like this:
```
$rules = [
'username' => 'required|max:255',
'oldpassword' => 'required|max:255',
'newpassword' => 'required|min:6|max:255|alpha_num',
'new... |
2018/03/22 | 372 | 1,343 | <issue_start>username_0: I'm trying to filter an array of File objects via jQuery $.grep.
For this particular example, I'm trying to filter via the file name.
So here is what I have so far:
Step 1: Create an array of files:
```
Array.prototype.push.apply(fileBuffers, e.originalEvent.dataTransfer.files);
```
Step... |
2018/03/22 | 491 | 1,692 | <issue_start>username_0: I am trying to align vertically `TextInput` with `Icon`s and I tried various style rules, but it doesn't work. In iOS, layout is correct, but in Android elements are not aligned vertically.
```
this.setState({ searchTextInputVal: value })}
returnKeyType="search"
placeholder="Type Here..."... |
2018/03/22 | 618 | 2,454 | <issue_start>username_0: I am trying to write a function that takes the following 2 parameters:
1. A sentence as a string
2. A number of lines as an integer
So if I was to call **formatLines("My name is Gary", 2);** ...
The possible outcomes would be:
* array("My name is", "Gary");
* array("My name", "<NAME>");
* a... |
2018/03/22 | 887 | 2,895 | <issue_start>username_0: New to coding but I'm trying to reset my Rock Paper Scissors game back to zero after 10 tries.
I have this code here. When I play and one of them reaches 10, they don't reset:
```
function reset(userScore, computerScore) {
return = 0;
}
function gameEnd() {
if (userScore || computerScore... |
2018/03/22 | 569 | 1,704 | <issue_start>username_0: I'd like to create a new column to a Pandas dataframe populated with True or False based on the other values in each specific row. My approach to solve this task was to apply a function checking boolean conditions across each row in the dataframe and populate the new column with either True or ... |
2018/03/22 | 816 | 2,703 | <issue_start>username_0: How do I iterate over text files only within a directory? What I have thus far is;
```
for file in glob.glob('*'):
f = open(file)
text = f.read()
f.close()
```
This works, however I am having to store my .py file in the same directory (folder) to get it to run, and as a result th... |
2018/03/22 | 1,050 | 4,157 | <issue_start>username_0: I've come to an issue when handling concurrency.
In the example below, two users A and B edit the same invoice and make different changes to it. If both of them **click save at the same time** I would like one of them to succeed, and the other one to fail. Otherwise the resulting invoice woul... |
2018/03/22 | 584 | 2,616 | <issue_start>username_0: Below is the relevant code (JS+jQuery on the client side):
```
function getuser(username, password) {
var user = new Object();
user.constructor();
user.username = username;
user.password = <PASSWORD>;
//....
$("#a1").click(function () {
var u = getuser($("#usern... |
2018/03/22 | 759 | 2,597 | <issue_start>username_0: I have to find the last column of a row in a sheet. I am able to find the last column in the sheet, but for a particular row, I need to find the last column which will vary for every sheet in the excel, and it will vary at every run. To find the last column, I have used the below code, with ref... |
2018/03/22 | 574 | 1,850 | <issue_start>username_0: I use [vue-toasted](https://github.com/shakee93/vue-toasted). I registered `vue-toasted` in `main.js` and use it as below:
```
import Toasted from 'vue-toasted'
Vue.use(Toasted, Option)
```
And use it like this in a vue component
```
this.$toasted.error("Temperature too Hot").goAway(5000)... |
2018/03/22 | 1,751 | 6,124 | <issue_start>username_0: I am making a would you rather game, and I would like to not have character restrictions for the W.Y.R. questions. I have seen many examples here on Stack Overflow and other websites, but they use other modules and methods I don't understand how to use or want to use. So I would rather use
``... |
2018/03/22 | 289 | 1,083 | <issue_start>username_0: I need a query to see which Roles users have in DotNetNuke.
I found this query but it gives the RoleID and not the name.
What if there are more than one role associated to a user?
```
SELECT Users.FirstName, Users.LastName, Users.Email,UserRoles.RoleID
FROM UserRoles
INNER JOIN Users ON UserR... |
2018/03/22 | 502 | 1,585 | <issue_start>username_0: I think i am not moving my pop-up correctly as you can see on the picture.
[Two dialog instead of one](https://i.stack.imgur.com/TZaM9.png)
How to handle this in angular?
EDIT : if you take a look closer to the picture i sent, there are one pop-up in the center, and there are one too at th... |
2018/03/22 | 455 | 1,517 | <issue_start>username_0: Well, I was trying out convolution on grey scale images, but then when I searched for convolution on rgb images, I couldn't find satisfactory explanation. How to apply convolution to rgb images?<issue_comment>username_1: A linear combination of vectors can be computed by linearly combining corr... |
2018/03/22 | 445 | 1,412 | <issue_start>username_0: I'm using Log4j2 ver 2.3
log4j2.xml looks like:
```
xml version="1.0" encoding="UTF-8"?
```
All works fine until next day when log from a previous day is getting overwritten by some logs from current day.
Example:
catalina.2018-03-21.log yesterday (March 21st) was fine but today got overwr... |
2018/03/22 | 283 | 1,177 | <issue_start>username_0: I'm trying to learn how to use GitHub.
I managed to create a repository and update the master,
But I'm trying to understand how the branching is working.
I have created a new branch on eclipse by right clicking the master and then "Create branch..." button.
After that I double-clicked it to wo... |
2018/03/22 | 353 | 1,047 | <issue_start>username_0: ```
pic_names <- c("../img/pics/111L.jpg", NA,
"../img/pics/134L.jpg",NA,
"../img/pics/164L.jpg", NA,
"../img/pics/187L.jpg", NA)
df <- as.data.frame(pic_names)
```
I want to do two operations:
* Remove parts of the strings. The desired result... |
2018/03/22 | 1,129 | 3,498 | <issue_start>username_0: I have a DataFrame(df) in pyspark, by reading from a hive table:
```
df=spark.sql('select * from ')
+++++++++++++++++++++++++++++++++++++++++++
| Name | URL visited |
+++++++++++++++++++++++++++++++++++++++++++
| person1 | [google,msn,yahoo] |
| person2 | [fb.com,airbnb,wired.com] |
| person3... |
2018/03/22 | 230 | 822 | <issue_start>username_0: Any one please help me. I already have android studio 2.2 and i uninstalled android studio and again downloaded new version of android studio from developer site. when i wanna open the project it is showing a popup like
Cannot load project: com.intellij.ide.plugins.PluginManager$StartupAborted... |
2018/03/22 | 229 | 770 | <issue_start>username_0: my android app is calling a native c++ function which works fine using a .so library.
>
> "openDatabase(String path)"
>
>
>
The path is the sqlite database .db but i have no idea how to get this file inside my android compiled app. Right now it is located in resources folder but how can ... |
2018/03/22 | 1,991 | 7,966 | <issue_start>username_0: As documented in questions like [Entity Framework Indexing ALL foreign key columns](https://stackoverflow.com/questions/29707363/entity-framework-indexing-all-foreign-key-columns), EF Core seems to automatically generate an index for every foreign key. This is a sound default for me (let's not ... |
2018/03/22 | 1,738 | 6,982 | <issue_start>username_0: Is there anyway to change the baseUrl of CKFinder dynamically?
I need to use this kind of path: `/websitebuilder/www/user_images/$id/`. I used google to find some answer, but I didn't manage to make it works.
Can someone please give me any hint how should I do that?
I know that in config.php... |
2018/03/22 | 840 | 2,953 | <issue_start>username_0: I want to create my own signal emitter or callback storage, call it whatever you want.
Here is what I come up so far:
```
var DetonationCallback = function detonationCallback() {
detonationCallback.callbacks = [];
detonationCallback.add = function(callback) {
detonationCallbac... |
2018/03/22 | 1,451 | 4,322 | <issue_start>username_0: I'm working on creating an hmac-sha1 hash in Cerner's proprietary language, CCL. It's similar to PL/SQL and has access to native oracle functions. The idea is to mimic a hash created inside javascript. Oracle is using DBMS\_CRYPTO and javascript is using CRYPTO.JS. Below are my two implementati... |
2018/03/22 | 1,253 | 3,795 | <issue_start>username_0: I was wondering if it is possible to use a macro to execute a solver/what if analysis function while Excel focuses on a different sheet.
I set up a macro for both of these methods and they work fine for when I am currently on the sheet with the formulas and data but when I switch to a differ... |
2018/03/22 | 540 | 2,105 | <issue_start>username_0: I'd like to create a [`CompletableFuture`](https://docs.oracle.com/javase/10/docs/api/java/util/concurrent/CompletableFuture.html) that has already completed exceptionally.
Scala provides what I'm looking for via a factory method:
```
Future.failed(new RuntimeException("No Future!"))
```
Is... |
2018/03/22 | 391 | 1,221 | <issue_start>username_0: How do I format a date in React?
The date comes in the form `Thu, 22 Mar 2018 14:11:40 GMT`.
I would like to display only `22 Mar 2018`.
```
render() {
return (
{this.state.posts.map(function(item, i) {
return (
- {item.pubDate}
)
})}
)
}
```
**Edited**
After installi... |
2018/03/22 | 299 | 1,039 | <issue_start>username_0: I have a log folder `/var/www/app/logs/` in an EC2 AMI instance. My PHP aplication is writing logs there, however every day I must logon and do chmod in order to avoid the error message that the folder is not writable:
`$ sudo chmod 7777 -R /var/www/app/logs/`
For some reason the instance thi... |
2018/03/22 | 487 | 1,729 | <issue_start>username_0: Is it possible to achieve this kind of query in cassandra efficiently?
Say I have a table something
```
CREATE TABLE something(
a INT,
b INT,
c INT,
d INT,
e INT
PRIMARY KEY(a,b,c,d,e)
);
```
And I want to query this table in following way:
`SELECT * FROM someth... |
2018/03/22 | 536 | 2,092 | <issue_start>username_0: I am generating some important information on the HTML page at the end of a transaction.
```
function downloadReference(){
}
Hello! Thank you for your interest.
| | |
| --- | --- |
| **Interest Received Date:** | 22 March 2018 |
| **Confirmation Number:** | J4835K3344 |
[Download thi... |
2018/03/22 | 1,434 | 4,524 | <issue_start>username_0: let's say I have this C# class
```
public class Product
{
public Guid Id { get; set; }
public string ProductName { get; set; }
public Decimal Price { get; set; }
public int Level { get; set; }
}
```
The equivalent typescript would be something like:
```
export class Product {
... |
2018/03/22 | 1,572 | 4,799 | <issue_start>username_0: I am trying to get 2 newest dates in a date array and arrange them in order. I was ,yet, merely able to arrange them in order :
```
php
$data = array(
array(
"title" = "Another title",
"date" => "Fri, 17 Jun 2011 08:55:57 +0200"
),
array(
"title" => "Anothe... |
2018/03/22 | 556 | 1,901 | <issue_start>username_0: I know I can accomplish my objective with this process:
1. Create new column
2. Update new from old
3. Drop old
I am looking for a way to do this with one command. I know that `remane object` works at the table level. For example, I can do this:
```
rename object Test.danPatient to dimPatien... |
2018/03/22 | 694 | 2,687 | <issue_start>username_0: As an Atom user, I am used that when committing staged changes a new buffer is opened where I can edit the commit message. In particular, the advantages are:
* existing spell check is available
* I can provide a one line comment and an additional longer description
* I see a list of files to b... |
2018/03/22 | 596 | 2,016 | <issue_start>username_0: Here is a section on #include's from [Google's C++ style guide](https://google.github.io/styleguide/cppguide.html#Names_and_Order_of_Includes):
>
> In dir/foo.cc or dir/foo\_test.cc, whose main purpose is to implement
> or test the stuff in dir2/foo2.h, order your includes as follows:
>
>
... |
2018/03/22 | 322 | 919 | <issue_start>username_0: I have an array of 100 indices
```
const randomArr = [...Array(100).keys()]
```
How to return 100 array like this
```
[{index: i}, {title: `title${i}`}]
```
where `i` should be index of random array.<issue_comment>username_1: Use [`Array.from()`](https://developer.mozilla.org/en-US/docs/... |
2018/03/22 | 655 | 2,392 | <issue_start>username_0: I'm using DELPHI with ADO and SQL Server 2014.
In our database table there is a spatial column for geometrical data. We can read and write data to this field (more info is here : <https://learn.microsoft.com/de-de/sql/relational-databases/spatial/spatial-data-sql-server>).
If I display this ... |
2018/03/22 | 685 | 2,405 | <issue_start>username_0: I have a JavaScript script that makes a jQuery AJAX call, and passes a serialized javascript object in the "data" property:
>
> data: { Specific: JSON.stringify({DAY: "1", DEP: "2", CARRIER: "3",
> FLT: "4", LEGCD: "5"})
>
>
>
It is received in a C# Generic Handler thusly:
```
var Speci... |
2018/03/22 | 1,052 | 4,062 | <issue_start>username_0: I just started flutter, this is a basic question but I am not able to solve.
I created a stateful widget and I need to call the setState() method on click of a button. The button is not part of this stateful widget. The button is present in the footer of application.
complete application code:... |
2018/03/22 | 850 | 3,147 | <issue_start>username_0: Can I fetch JSON data of items from this link "/items"
```
app.get("/items", middleware.isLoggedIn, function(req, res) {
Item.findById(req.params.id, function(err, item) {
if(err){
console.log(err);
}else{
res.render("buildings/items", {item : item})... |
2018/03/22 | 410 | 1,557 | <issue_start>username_0: I was reading [Simo's blog](https://www.simoahava.com/analytics/track-non-javascript-visits-google-analytics/) trying to identify a way to track non-js-enabled hits. A solution is given at the comments by a user with the moniker Duncan. He suggests creating a new custom js variable in Google Ta... |
2018/03/22 | 474 | 1,886 | <issue_start>username_0: I am trying to import faker from jupyter notebook on mac and failed.
It complains as follows:
```
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
in ()
----> 1 from faker import Faker
Mod... |
2018/03/22 | 343 | 1,264 | <issue_start>username_0: I can replace a single quote by two quotes.
But I also need to check if a value is empty.
Following code returns:
it's: command not found
```
original="it's smth"
modified=${original:-NULL}
$modified=${modified//\'/\'\'}
echo "$modified"
```
What is wrong?<issue_comment>username_1: This is... |
2018/03/22 | 1,754 | 5,466 | <issue_start>username_0: I want a timestamp field in MySQL table, to be set only on inserts, not on updates. The table created like that:
```
CREATE TABLE `test_insert_timestamp` (
`key` integer NOT NULL,
`value` integer NOT NULL,
`insert_timestamp` timestamp DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`key`)
);
... |
2018/03/22 | 470 | 1,547 | <issue_start>username_0: Hi i'm trying to compile a C code without reordering my variables in stack but can't do it.
I've tryed using:
>
> `__attribute__((no_reorder))`
>
>
>
But doesn't work, also tryed to compile with the flag:
>
> -fno-toplevel-reorder
>
>
>
But didn't work... so i'm stuck.
Actual cod... |
2018/03/22 | 449 | 1,793 | <issue_start>username_0: I have the following textbox binded to a MVVM ViewModel
Textbox
```
```
Below is my `ImportPresenter` Which handles the input.
```
Public Class ImportPresenter : ObservableObject
{
private double _BalanceValue = 0;
public double BalanceValue
{
get
{
... |
2018/03/22 | 787 | 2,321 | <issue_start>username_0: I want to remove the first two word from multiple strings (date and month).
```js
jQuery(function($) {
/* Get the text of the element I'm after */
var niceText = $('div').text(),
openSpan = '',
closeSpan = '';
/* Make the sentence into an array */
niceText = niceText.split... |
2018/03/22 | 1,168 | 3,735 | <issue_start>username_0: I am trying to show nested data in ul/li, but nested children are not showing. See my code and please tell me what is wrong there.
Controller:
```
public ActionResult Index()
{
List allMenu = new List
{
new MenuItem {Id=1,Name="Parent 1", ParentId=0},
new MenuIt... |
2018/03/22 | 1,102 | 3,783 | <issue_start>username_0: I cannot connect to my database, i receive message "invalid user or password " even if the password is correct, what should i do anyone any idea or my code is wrong here are all my code for login form/
here is my code
```
Imports System.Data.SqlClient
Public Class LoginForm
Private Sub ... |
2018/03/22 | 1,376 | 5,021 | <issue_start>username_0: I am creating an android application. i want to have a screen that asks the user to select their preferred language. Here is my code for my listview.
```
public class LanguageSelect extends Activity {
int[] IMAGES = {R.drawable.english, R.drawable.french, R.drawable.... |
2018/03/22 | 1,547 | 5,205 | <issue_start>username_0: I'm implementing an WebAPI using dotnet core (2) and EF Core. The application uses UnitOfWork/Repository-pattern. I've come to a point where I need to implement a "Many-To-Many"-relation but I'm having some trouble. This is what I've got sofar:
**Entities:**
```
public class Team : DataEntity... |
2018/03/22 | 813 | 2,631 | <issue_start>username_0: Getting this error when trying to reset index for a simple pandas dataframe.
My input is:
`df2 = a.reset_index(drop=True)`
Output
```
TypeError Traceback (most recent call last)
in ()
----> 1 df2 = a.reset\_index(drop=True)
2 df2`
TypeError: 'bool' object is not callable
```
This do... |
2018/03/22 | 1,222 | 4,256 | <issue_start>username_0: I have a `data.frame` that arbitrarily defines parameter names and sequence boundaries:
```
dfParameterValues <- data.frame(ParameterName = character(), seqFrom = integer(), seqTo = integer(), seqBy = integer())
row1 <- data.frame(ParameterName = "parameterA", seqFrom = 1, seqTo = 2, seqBy = 1... |
2018/03/22 | 622 | 2,252 | <issue_start>username_0: I have this error, but I don't really know why:
>
> Argument 1 of Window.getComputedStyle does not implement interface Element
>
>
>
HTML:
```
```
JavaScript / jQuery:
```
var reveal = $('.reveal');
reveal.css('margin', '10px');
var resulte = window.getComputedStyle(reveal, 'margin');... |
2018/03/22 | 762 | 2,815 | <issue_start>username_0: am creating a blogging project. i want everytime a new post is created, the user doesnt have to refresh the page to see the post, it will just append to the already existing ones. this is what am doing presently
```
function postTin() {
$.ajax({
type:'POST',
url: "frextra.php",
dat... |
2018/03/22 | 580 | 2,167 | <issue_start>username_0: I want to rename file from before remote hook using context.
```
container.beforeRemote('upload', function (context, res, next) {
/////rename file
}
```
Can anyone tell me how can i access files from this?<issue_comment>username_1: `getComputedStyle()` is a JavaScript function that ex... |
2018/03/22 | 760 | 2,844 | <issue_start>username_0: I have created a directive which wraps a jQuery element, this directive is binded to an object which contains some callback functions as following:
```
vm.treeEvents = {
check_node: function(node, selected){
vm.form.$setDirty();
...
},
uncheck_node: function(node, s... |
2018/03/22 | 620 | 1,931 | <issue_start>username_0: I trying to creating a new dynamic array. I assigned one dynamic variable value to another new variable and pushing new array. But updating last array variable value.
Code
----
```
for(let i=0;i
```
My Json Value:
--------------
```
[{
"itemName" : "3 SS Finish Baskets",
"itemDesc"... |
2018/03/22 | 746 | 2,048 | <issue_start>username_0: I want to print a Code 128 barcode with a Zebra printer. But I just can't get exactly where I want because the barcode is either too small or too big for the label size of 40x20 mm. Is there anything else I can try besides using the `^BY` (Bar Code Field Default) module width and ratio?
```
^X... |
2018/03/22 | 3,183 | 12,002 | <issue_start>username_0: I wrote this code in `lib/helper.js`:
```js
var myfunction = async function(x,y) {
....
return [variableA, variableB]
}
exports.myfunction = myfunction;
```
Then I tried to use it in another file:
```js
var helper = require('./helper.js');
var start = function(a,b){
....
... |
2018/03/22 | 297 | 1,214 | <issue_start>username_0: I am using Visual Studio Code, is it possible to change a class name for instance only in the CSS file and this change is also applied in the HTML document? or vice verse, changing the class name in HTML and seeing it change in the CSS file.<issue_comment>username_1: Full disclosure, I don't us... |
2018/03/22 | 407 | 1,591 | <issue_start>username_0: I was trying to use the REST API of TeamCity but i can't find a list of all supported requests and the names of parameters. I wanted to look it up in their official documentation (<https://confluence.jetbrains.com/display/TCD10/REST+API>)
where a link to exactly this list is provided
(<ht... |
2018/03/22 | 1,091 | 3,567 | <issue_start>username_0: I'm trying to extract the CSRF token so I can log in, and be able to obtain cookies, but I'm not able to.
I'm able to get a 200 response code when accessing the URL that contains the CSRF token, and I'm able to see it on the browser and the console, but my response assertion is not able to as... |
2018/03/22 | 688 | 2,224 | <issue_start>username_0: I want to create a string vector out of a row of a data frame. without its row and column names. This is my dataframe.
```
agreement = c("Strongly Disagree"," Disagree", "Neither", "Agree", "Strongly Agree")
likelihood = c("Very unlikely","Unlikely", "Neither", "Likely", "Very Likely")
df <- ... |
2018/03/22 | 422 | 1,418 | <issue_start>username_0: I am looking for some advice, so I have some checkboxes. I would like to Add a dynamic count so that it shows the number that was selected.
So far I have
```
$('.individual').length
```
Which returns the number but how would I add it to my span:
```
- 0 of 29 records selected
- [Select A... |
2018/03/22 | 473 | 1,789 | <issue_start>username_0: I am managing quite a large website fairly complex. We are using ansible for deployments; majority of the deployments are fine we can just include the playbooks and roles in a master playbook and it works like a charm.
Master playbooks looks like something below
* Master PlayBook
+ includes... |
2018/03/22 | 392 | 1,234 | <issue_start>username_0: Why is the size of the compressed string bigger?
Doesn't the zlib need to **compress** ??
Example:
```
import zlib
import sys
str1 = "abcdefghijklmnopqrstuvwxyz"
print "size1: ", sys.getsizeof(str1)
print "size2: ", sys.getsizeof(zlib.compress(str1))
```
The output:
```
size1: 47
size... |
2018/03/22 | 3,699 | 13,564 | <issue_start>username_0: After format my computer I reinstalled Vs 2017 V 15.6.3
and install ASP.Net Core SDK from Microsoft 2.1.4
But when I create new asp core application VS failed with error
>
> "Project file is incomplete. Expected imports are missing"
>
>
>
Please, can anyone help?
[](https://i.stack.imgur.com/M1D5Y.png)
And, here's... |
2018/03/22 | 1,001 | 3,252 | <issue_start>username_0: Currently we can set all files from a local folder or files patterns using the "pattern" attribute, but we need to upload multiple files from a local folder to blob storage in single command invocation. Is it possible to do this?
For example source folder contain more files, I need to send sel... |
2018/03/22 | 865 | 3,068 | <issue_start>username_0: **Problem**:
I have a function `void myFunc(data)`
I am reading data from database using QSqlQuery:
```
QSqlQuery qry;
if (qry.exec("SELECT data, interval from table"))
{
while(qry.next())
{
// Somehow create and call function: myFunc(int data) periodically with interval = inter... |
2018/03/22 | 509 | 1,979 | <issue_start>username_0: I am trying to combine interpolation and angular-translate to retrieve lang translations from en -> fr from a couple json files. All the definitions are defined however to display the interpolated string in HTML it looks like this:
```
{{ 'this.section.in.json.' + object.param | translate}}
... |
2018/03/22 | 1,072 | 3,571 | <issue_start>username_0: I would like to search for a pattern in bunch of source files. The pattern should act as a marker. If the pattern is found, I would like to process that line by performing a substitution of another string
**For example:**
```
Private const String myTestString = @"VAL15"; // STRING—REPLACE-VAL... |
2018/03/22 | 341 | 1,202 | <issue_start>username_0: I tried to launch my Cordapp from IDE. When I make request I get following error:
>
> net.corda.core.transactions.MissingContractAttachments: Cannot find
> contract attachments for [com.example.contract.IBuildContract].
>
>
>
I read about this problem here: <https://docs.corda.net/api-co... |
2018/03/22 | 762 | 2,158 | <issue_start>username_0: I'm trying to create a network graph in NetworkX based on a defeaultdict which contains nodes and edges. When I try to add the edges, I get the following error message:
>
> add\_edge() missing 1 required positional argument: 'v\_of\_edge'
>
>
>
My code is as follows:
```
graph = { "a" : ... |
2018/03/22 | 564 | 1,561 | <issue_start>username_0: For example I have the next classes
```
abstract class X(val x: T)
data class Y(val y: String = "y") : X(x = "x")
class Holder(
val value: X
)
```
I try to serialize with gson:
```
val gson = Gson()
val x = Holder(Y())
val json = gson.toJson(x)
```
I've got `{"value":{"x":"x"}}` but I... |
2018/03/22 | 2,823 | 9,719 | <issue_start>username_0: I am in the middle of a project where I am working on a survery for the user on a website. The user can either click a "back" button, which takes him to the previous question, or a "next" button, which takes him to the next question.
All of these questions are within the same parent div, seper... |
2018/03/22 | 929 | 2,936 | <issue_start>username_0: I have created a pure `Python` project in PyCharm and imported `numpy`, `tensorflow` and `opencv` in order to test a small program.
All packages are updated to the latest version.My `Python` version is `3.6.4` and I am running on `Windows x64`. I have browsed through all the solutions on rela... |
2018/03/22 | 248 | 965 | <issue_start>username_0: I'm looking for an option to push my remote configuration to origin.
Locally I have 2 remote sources I work with. I would like to push this information to our origin so the fresh clone from origin will contain both remotes. Is that possible?
local repository my\_repo:
```
git remote add remot... |
2018/03/22 | 200 | 837 | <issue_start>username_0: My application allows users direct access to DynamoDB from their browser. They can view and edit any record for which they know the partition key (a UUID).
My problem is that users can create new records by 'editing' a non-existant partition key. Is there a way to use an IAM policy to prevent ... |
2018/03/22 | 768 | 3,207 | <issue_start>username_0: I have got code that reads the data from the array perfectly when I use a AJAX request. When I push an object to the array however, ng-repeat doesn't render the new row and I have to refresh the page to then fetch the data that was sent to server.
Why does it do this?
Thanks
Javascript
------... |
2018/03/22 | 1,346 | 5,046 | <issue_start>username_0: I am working in a program where I use `Tkinter` for the UI. I am writing a code to play an audio repeatedly. I am using `pygame.mixer.music()` for playing audio.
In the UI I created two buttons ("Start" and "Stop"). I attached a method which contains the loop structure to the start button, so ... |
2018/03/22 | 855 | 2,735 | <issue_start>username_0: I want to read data from a CSV file in Java and then put this data into a list. The data in the CSV is put into rows which looks like:
Data, 32, 4.3
Month, May2, May 5
The code I have currently only prints the [32].
```
ArrayList myList = new ArrayList();
Scanner scanner = new Scanner(new F... |
2018/03/22 | 378 | 1,466 | <issue_start>username_0: I am using NodeJS with Express and the PUG view engine.
I am attempting to check if an array contains a certain string. I have tried the builtin javascript methods such as:
```
array.includes(str)
array.indexOf(str) > -1.
```
However neither of these options seem to work. How can I check if... |
2018/03/22 | 486 | 2,049 | <issue_start>username_0: I am working on a react-native based project where google made it frustratingly hard to implement their oAuth without using an SDK.
First of all, WebView is not allowed to oAuth. So I attempted to implement it through normal browser / chrome tab where redirect is my app id like `com.myCompany.... |
2018/03/22 | 681 | 2,548 | <issue_start>username_0: I was trying to retrieve weather data through openweather API but when I try to do so I couldn't able to retrieve the forecast of the weather.
```
import json,requests,urllib.parse
url='https://api.openweathermap.org/data/2.5/forecast?'
while True:
APPID='xxxxxxxxxxxx'
id='1283378'
... |
2018/03/22 | 893 | 2,306 | <issue_start>username_0: I have following AVRO message in Kafka topic.
```
{
"table": {
"string": "Schema.xDEAL"
},
"op_type": {
"string": "Insert"
},
"op_ts": {
"string": "2018-03-16 09:03:25.000462"
},
"current_ts": {
"string": "2018-03-16 10:03:37.778000"
},
"pos": {
"string": "00000000000000010... |
2018/03/22 | 281 | 1,230 | <issue_start>username_0: I need a java/j2ee program, that will load an updated class file when the server is still on. In our Web Application testing environment few classes(Java files) are being frequently changed to fix defects and need to load them in JVM fresh.
We can not restart the server to impact on going testi... |
2018/03/22 | 1,273 | 4,890 | <issue_start>username_0: How can I perform the proper comparison check in the following code?
```
enum Location {
case ontop
case inside
case underneath
}
struct Item {
var location: Location?
func checkStuff(currentLocation: Location?) {
if case .ontop = currentLocation {
// ... |
2018/03/22 | 1,043 | 3,677 | <issue_start>username_0: My component has the following computed code:
```
textButton() {
const key = this.$root.feature.name === //...
// ...
},
```
Right now I'm trying desperately to mock "root" in my test, but I just don't know how. Any tips?<issue_comment>username_1: You may use a Vue Plugin inside the ... |
2018/03/22 | 1,367 | 4,673 | <issue_start>username_0: Using Knockout JS:
I have a requirement as.
I have a table with 2 static columns where each has a text-box. I also have a add row button outside the table and one remove row button along each row.
When the user clicks add row it adds a row to the table and I can see two columns with textbox ... |