date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/20 | 1,248 | 3,300 | <issue_start>username_0: [](https://i.stack.imgur.com/vQprs.png)
I can't able to align remove icon to the top. This is what I have tried
```css
.skills ul {
width: 100%;
margin: 10px 0px 0px 0px;
padding: 0px;
float: left;
}
.skills l... |
2018/03/20 | 605 | 2,298 | <issue_start>username_0: I was just looking into the basics of functional programming. I want to convert the below code using lambda in Java. I am using java 8. any help will be appreciated.
Thanks.
```
String reinBranches = (String) application.getAttribute("xx_xx_xx");
if(reinBranches != null && reinBr... |
2018/03/20 | 2,223 | 9,048 | <issue_start>username_0: My structure
[](https://i.stack.imgur.com/E61Eg.png)
So I have an app in which users upload posts in my adapter. I can retrieve the post description and the post picture, but when I try to retrieve the poster's name the app s... |
2018/03/20 | 690 | 2,524 | <issue_start>username_0: Basically,I am trying to make a Multi-Language app in Qt. For that, I created `hindi.ts` file and `hindi.qm` file using `lupdate` and `lrelease` commands in `qt 5.10.0 msvsc(2015)` cmd terminal. I have a Language Settings Widget in which I have a combo box and based on the language selected, I ... |
2018/03/20 | 555 | 2,327 | <issue_start>username_0: I'm trying to use TestBed from to test a Angular component that has a ng-select in its HTML.
I've first got the error saying that **Can't bind to 'items' since it isn't a known property of 'ng-select'.** so I've imported NgSelectModule and added it to imports in TestBed configurations.
It now... |
2018/03/20 | 1,778 | 6,392 | <issue_start>username_0: I have configured the following route configuration in `WebApiConfig` file to call the web api controller method by actual method(action) name as well as default calling pattern.
```
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
con... |
2018/03/20 | 642 | 2,273 | <issue_start>username_0: I'm creating a React app, and I have a code segment that looks like this:
```
import React, { Component } from 'react';
import { RaisedButton } from 'material-ui';
let isZero = false;
class Button extends Component {
render() {
const { value } = this.props;
isZero = fals... |
2018/03/20 | 1,929 | 6,644 | <issue_start>username_0: I have three entites, let’s call them `Site`, `Category` and `Tag`. In this scenario, `Category` and `Tag` have a composite ID generated from the `Site` entity and an external ID which is not unique (`site` and `id` together are unique). `Category` has a many-to-many relation on `Tag`. (Althoug... |
2018/03/20 | 1,925 | 5,673 | <issue_start>username_0: I'm trying to implement <NAME> in code for a school project and I have a problem.It outputs a weird number and I don't know why.The rest of them are good but this one is bad.Sorry if the post is bad but it's my first post here and I really need help.Thanks
```
#include
#define dim 100
using ... |
2018/03/20 | 2,565 | 9,253 | <issue_start>username_0: Could some one please help how to remove the repeated code.
I have four dashboard as a sample I have mentioned two here.
For all the dashboard same logic applies but when I try to apply the css depending upon condition using css class it does not work.
So, I have used ids and it works fin... |
2018/03/20 | 388 | 1,047 | <issue_start>username_0: I'm new to Python and I was wondering, what is the best way to extract the region's name from a zone name.
For example:
```
GCP:
- us-east1-c
- europe-west2-b
AWS:
- eu-west-2
- ap-northeast-1
```
In bash, I would use:
```
echo "zone"|rev|cut -f2- -d-|rev"
```
In Python, I used:
... |
2018/03/20 | 1,048 | 4,178 | <issue_start>username_0: I have a WPF application which sends data to a web application through POST requests. Currently this is done with `PostAsync` and that works. However, I see that certain requests finish earlier before another request finishes and that causes errors in the web application.
So I need to wait for... |
2018/03/20 | 416 | 1,509 | <issue_start>username_0: I'm writing test script with Selenium WebDrvier. I have a problem with success/failure messages. Here's part of the code where i shout get the message. I don't know where I made a mistake so I would appreciate if someone could help me with it.
```
WebElement msg=driver.findElement(By.xpath("/... |
2018/03/20 | 439 | 1,496 | <issue_start>username_0: As I am learner of Java.. I came across the following code
```
public static void main(String[] args) {
ArrayList a = new ArrayList<>();
a.add("1");
a.add("2");
for(String str: a){
a = new ArrayList<>();
System.out.println(str);
}
}
```
I guessed the answer to be
>
> 1
> null (... |
2018/03/20 | 548 | 2,045 | <issue_start>username_0: I have the following warning :
>
> Warning: setState(...): Cannot update during an existing state transition (such as within `render` or another component's constructor).
>
>
>
with React-redux-router that I understand, but do not know how to fix.
This is the component that is generatin... |
2018/03/20 | 1,735 | 4,969 | <issue_start>username_0: I'm running a project which has Azure function, but it's not running my azure function. I have put the breakpoint, its also not hitting the breakpoint. Also, the output is not clear so that I can debug my code. Is there any way to debug the code to find the root cause of the issue?
**Output:**... |
2018/03/20 | 954 | 3,284 | <issue_start>username_0: We are developing an iOS app that makes VoIP calls using pjsip.
All works fine when the app is in the foreground or if we start the call in the foreground and then put the app in the background.
But when the app is in the background we need to start a VoIP call when a certain connection is mad... |
2018/03/20 | 1,073 | 3,363 | <issue_start>username_0: ---
I've created an API in Laravel. I have some tables with relationships and I'm receiving JSON like this:
```js
{
content: "Lorem ipsum",
created_at: "2018-03-13 16:51:21",
deleted_at: null,
group_id: 1,
rating: 6,
updated_at: "2018-03-13 16:51:21",
user_id: 1
}
```
B... |
2018/03/20 | 593 | 2,141 | <issue_start>username_0: [Enter image description here](https://i.stack.imgur.com/YxuIY.jpg).
How to use the function of `fprint` to draw the image?
The equation is `x(t)= -2 * t * sin( t * t )`<issue_comment>username_1: You cannot do that in *standard* C11 (read [n1570](http://www.open-std.org/jtc1/sc22/wg14/www/d... |
2018/03/20 | 791 | 2,686 | <issue_start>username_0: I've followed [this guide](http://jonisalonen.com/2012/calling-c-from-java-is-easy/) to access two C native methods, but when I call
```
System.loadLibrary("SensorReader");
```
I get
```
Exception in thread "main" java.lang.UnsatisfiedLinkError: no SensorReader in java.library.path
```
I... |
2018/03/20 | 921 | 3,813 | <issue_start>username_0: I have a data class in Kotlin hat is using the `@Parcelize` annotation for easy parcelization. Thing is I now want to pass a function to this class and I do not really know how to make the function not be considered during parceling.
This is my data class:
```
@Parcelize
data class GearCatego... |
2018/03/20 | 885 | 3,679 | <issue_start>username_0: I did my best to solve the problem and I hope someone would be able to help me finding a solution.
I delcared the following layout for my activity:
```
xml version="1.0" encoding="utf-8"?
```
The related java code is the following:
```
import android.content.Intent;
import android.support... |
2018/03/20 | 824 | 2,507 | <issue_start>username_0: In SQL server (2016), I want to convert 2 rows into 1 row with fields of both rows.
I have this example:
```
IF OBJECT_ID('tempdb.dbo.#MyTable') IS not NULL DROP TABLE #MyTable
CREATE TABLE #MyTable (
Direction varchar(1),
DateKey int,
ID varchar(8),
[Sessions] int
)
inse... |
2018/03/20 | 544 | 1,791 | <issue_start>username_0: I am trying to use Bind Variable for Informix Procedure.
Can someone guide me how to use for the below procedure?
CREATE PROCEDURE neura\_omega\_stg.grn\_payment\_mode\_update(vv\_material\_document\_id Varchar(20),vv\_payment\_mode Varchar(10))
UPDATE goods\_receive\_header\_tbl SET payme... |
2018/03/20 | 619 | 2,471 | <issue_start>username_0: I am new to JQuery/JavaScript and need a jump start for below case:
Notifications (alert messages) can be useful for new users but annoying to experienced users. So I want to give my users the option to show or not show these messages depending on user setting.
In order not having to build the... |
2018/03/20 | 405 | 1,643 | <issue_start>username_0: Using the SQL api you can specify the partition key in the SQL statement e.g. `SELECT * FROM c WHERE c.MyPartitionKey = 'KeyValue'` or using `FeedOptions.PartitionKey`.
Are they equivalent or will one way have a lower RU cost?
I have tried both ways and can't see a difference but the data se... |
2018/03/20 | 306 | 1,060 | <issue_start>username_0: I'm trying to insert a variable inside one SQL query using `"+uid+"` but the variable does not seem to be taken into account:
```
import datetime
import sqlite3 as lite
import sys
con = lite.connect('user.db')
uid = raw_input("UID?: ")
time = datetime.datetime.now()
with con... |
2018/03/20 | 584 | 1,999 | <issue_start>username_0: I am trying to run the Example CorDapp (<https://github.com/corda/cordapp-example>) on Corda 3. When I try to run the `./gradlew deployNodes` step, I get the following error:
```
Execution failed for task ':java-source:deployNodes'.
> Node in Notary exited with 1 when generating its node-info ... |
2018/03/20 | 535 | 2,188 | <issue_start>username_0: I want to delete the Firebase database child with this follow code when I click the first item in a list in an app, but I can't. What's wrong?
```
Query removeCalendar = mCalendarDatabaseReference.limitToFirst(1);
removeCalendar.addListenerForSingleValueEvent(new ValueEventListener() {
@Ov... |
2018/03/20 | 347 | 1,209 | <issue_start>username_0: I have made a form in which I want to apply a different style to a particular Select Box in that form.
```
select#complaintSource
{
@import url("http://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.6.3/css/bootstrap-select.min.css");
@import url("http://netdna.bootstrapcdn.com/boot... |
2018/03/20 | 1,191 | 4,511 | <issue_start>username_0: I have this rather intricate `try` `except` block:
```
try:
self.sorting = sys.argv[1]
try:
test_sorting_var = int(self.sorting)
if test_sorting_var < 1:
print "Sorting column number not valid."
raise ValueError
else:
self.sorting = test_sorting_var
except V... |
2018/03/20 | 564 | 2,376 | <issue_start>username_0: I am working on an android application that have a web-view. The problem comes when I want to check whether Internet is available before displaying default message.
I have studied these links [Link1](https://stackoverflow.com/questions/38038301/how-to-check-internet-connection-in-android-webvi... |
2018/03/20 | 473 | 1,538 | <issue_start>username_0: I am stuck with 'join' command in UNIX.
Requirement :
Trying to compare two files with similar meta data by embedding sort inside a join command.
Execution :
The below command works smooth in command line :
```
join -v 2 <(sort file1) <(sort file2) >difference.file
```
However when we e... |
2018/03/20 | 251 | 960 | <issue_start>username_0: Long story short in my app the user receives an email notification which has hyperlink to open a certain record for a given id number. It looks something like this:
```
https://myappserver.com/?aid=12343551
```
The question I have is once the user opens the record is it possible to change th... |
2018/03/20 | 804 | 2,462 | <issue_start>username_0: Can you please help me out to write the Laravel Raw Query for below Mysql query.
```
SELECT
SUM(IF(d.business_email_template_10_open = "Yes", 1,0)) AS `business_email_template_10_open`,
SUM(IF(d.business_email_template_11_open = "Yes", 1,0)) AS `business_email_template_11_open`
FRO... |
2018/03/20 | 134 | 536 | <issue_start>username_0: I have a table body which is declared as animation block.
In some particular scenarios I want remove the transition to the table body. Is there any way to do that.<issue_comment>username_1: You can use template with if-else condition:
```
<>
<>
```
Upvotes: 1 <issue_comment>username_2: #... |
2018/03/20 | 311 | 881 | <issue_start>username_0: I have two lists of integers. I want to make all possible combinations of elements in list-1 with elements with list-2. For Example:
```
List-1 List-2
1 5
2 6
```
I need another list of all possible combinations like:
```
element-1 element-2
1 5
1 ... |
2018/03/20 | 1,372 | 3,927 | <issue_start>username_0: This code run the huge data but with all Arabic words written in reverse:
```
from bidi.algorithm import get_display
import os
import matplotlib.pyplot as plt
from wordcloud import WordCloud
os.chdir("C:")
f = open('example.txt', 'r', encoding = 'utf-8')
data = arabic_reshaper.reshape(f.read(... |
2018/03/20 | 2,907 | 11,077 | <issue_start>username_0: About two months ago we started using Rollbar to notify us of various errors in our Web App. Ever since then we have been getting the occasional error:
`ResizeObserver loop limit exceeded`
The thing that confuses me about this is that we are not using `ResizeObserver` and I have investigated ... |
2018/03/20 | 2,753 | 10,497 | <issue_start>username_0: ```
newfile = open("Student Data.txt","w")
with open("Student Data.txt") as a_file:
data = a_file.readlines()
data[1] = username + " " + password + "\n"
with open("Student Data.txt", "w") as a_file:
a_file.writelines(data)
input()
```
i have created ... |
2018/03/20 | 1,592 | 5,189 | <issue_start>username_0: I am using the python-pptx library for pptx manipulation. I want to add a bullet list in the pptx document.
I am using the following snippet to add list item:
```
p = text_frame.add_paragraph()
run = p.add_run()
p.level = 0
run.text = "First"
```
But it does not display bullet points; plea... |
2018/03/20 | 887 | 3,470 | <issue_start>username_0: In most modern programming languages, programmers don't need to *close* the `stdin`,`stdout`,`stderr`. Does it mean that the operating system will handle the close of the `stdin`, `stdout`, `stderr` in general?
Or for instance in `java`, the `jvm` will close the `stdin`, `stdout`, `stderr` wh... |
2018/03/20 | 1,195 | 4,151 | <issue_start>username_0: I am using two controllers. When changes happen in one controllers it should get changed immediately in the other controller. I am using the $broadcast event to achive this.
My code:
My First controller
```
app.controller('configurationCtrl', function($scope, $http,Notification,$rootScope,$c... |
2018/03/20 | 1,387 | 4,925 | <issue_start>username_0: I have a template txt file. This txt file is to be written as 10 new files but each with some characters changed according to a list of arbitrary values:
```
with open('template.txt') as template_file:
template = template_file.readlines()
for i in range(10):
with open('outp... |
2018/03/20 | 1,324 | 4,748 | <issue_start>username_0: I am trying to create an AbstractClass using both abc.ABCMeta and QObject as parents and cannot seems to make it work.
Here is the Base class init. I have Pyqt5 and python 2.7
```
pyqtWrapperType = type(QObject)
class ParamsHandler(abc.ABCMeta, pyqtWrapperType):
def __init__(self, device... |
2018/03/20 | 919 | 3,665 | <issue_start>username_0: I have a superclass and two subclasses that extend it. I'd like to initialize a variable called radius which can be set freely in subclass A, but is always the same for subclass B. I could initialize the variable every time I create an object B, but I was wondering if it's possible to make the ... |
2018/03/20 | 1,377 | 4,934 | <issue_start>username_0: I'm having issues trying to remove elements/objects from an array in elasticsearch.
This is the mapping for the index:
```
{
"example1": {
"mappings": {
"doc": {
"properties": {
"locations": {
"type": "geo_poi... |
2018/03/20 | 1,282 | 4,016 | <issue_start>username_0: Let's say I have 2 tables where both has column called `Brand`. The value is comma delimited so for example if one of the table has
```
ACER,ASUS,HP
AMD,NVIDIA,SONY
```
as value. Then the other table has
```
HP,GIGABYTE
MICROSOFT
SAMSUNG,PHILIPS
```
as values.
I want to compare ... |
2018/03/20 | 478 | 1,698 | <issue_start>username_0: Hi I have a spreadsheet similar to below
[](https://i.stack.imgur.com/eJeP4.png)
Where when I click on a cell (red cell), I want to return the row and column number to another cell for use in an indirect lookup (blue cell)
Ideally I want to... |
2018/03/20 | 608 | 2,483 | <issue_start>username_0: I have a page in my application that is an interactive chart with a bunch of settings (filters, time ranges, etc). I'd like to store them in-app state because some of the settings may be used by other components on another page, but right now if I click on any other tab and come back to the pre... |
2018/03/20 | 1,804 | 4,672 | <issue_start>username_0: I have following sample table where I need to have sum of columns values where VA1 and Val2 are same , need to sum cvalue and seelct the ID where cValue is max
```
+---------------------------+
¦ ID ¦ Val1 ¦ Val2 ¦ CValue ¦
¦----+------+------+--------¦
¦ 1 ¦ 1 ¦ 1 ¦ 1 ¦
¦----+---... |
2018/03/20 | 396 | 1,298 | <issue_start>username_0: I am using Qt 5.4.0 and created a QTableWidget. The table has several rows and columns.
In my application I want to search a string in that table and if that string exists, I want to know the row number.
I could not find any such api in qt 5.4.0 documentation.
Does anyone has understanding o... |
2018/03/20 | 1,963 | 6,084 | <issue_start>username_0: I'm creating toggle buttons that need some specific functions:
1) Show content on the first click (this works)
2) Hide content when you click on a different button (this works)
3) Hide content on the second click (this doesn't work)
Right now, if you click the same button twice it first sli... |
2018/03/20 | 771 | 2,943 | <issue_start>username_0: Which HOC will wrap the other. Does the order of wrapping with multiple HOCs matter in react or not? I have created multiple HOCs **withSocket**, **withLoadingBar** etc etc. Should I be worry about deep ugly nesting, Will it make an impact on performance of component?<issue_comment>username_1: ... |
2018/03/20 | 654 | 2,241 | <issue_start>username_0: I am trying to import a csv with a date in the following format:
`2018/01/25`
the date format in mysql is in Int and I want to remove the slashes in the current date format.
I need to get the date looking like this:
```
20180125
```
I need to work only on the first column and not the rest o... |
2018/03/20 | 651 | 2,081 | <issue_start>username_0: I am builing a multi-step form.
Here is part of it:
```
Radio button 1-1
Radio button 1-2
Radio button 2-1
Radio button 2-2
Checkbox 1
Checkbox 2
Other
```
And here is my JS :
```
$("[data-show]").change(function(){
if($(this).is(":checked")) {
$($(this).data('sho... |
2018/03/20 | 927 | 2,772 | <issue_start>username_0: I want to use mingw to compile my C language project.
I found the command of `make all` succeeded, however `make clean` failed. There are only two files in my test project: `test.c` and `Makefile.mak`.
`test.c`:
```
#include
int main()
{
printf("Hello world\n");
while (1);
return 0;
}
... |
2018/03/20 | 983 | 3,577 | <issue_start>username_0: I'm looping through an array and showing the images:
```
<% @attachments.each do |attachment| %>
<%= image_tag(attachment.image.url(: thumb))%>
<%= link_to "Remove", remove_item_attachment_path(attachment),
data: { confirm: "Are you sure" },
... |
2018/03/20 | 552 | 1,988 | <issue_start>username_0: I use the video as a background. The background works well everywhere except the iPhone. I deleted the audio track, but it does not help. How can I play video on iPhone?
**PHP CODE**
```
```<issue_comment>username_1: Just use the "reject" method.
```
<% @attachments.reject { |attachment| at... |
2018/03/20 | 648 | 2,241 | <issue_start>username_0: I am new to xpaths in selenium and trying to click on Next> image/button in the code below. I have tried following two xpaths but its not working and giving no element not found error.
```
By.xpath("//div[@class='pzbtn-mid']/img[contains(text(), \"Next >\")]"))
By.xpath("//div[@class='pzbtn-mi... |
2018/03/20 | 637 | 1,830 | <issue_start>username_0: I'm trying to add to an array based on a condition.
Can someone clarify why the if statement isn't working as I intend it to?
```
all_staff = ["Judith", "Harry", "Jonathan", "Reuben"]
new_staff = []
def person_finder(staff):
for x in staff:
if x == "Reuben" or "Harry" or "Jonathan":
... |
2018/03/20 | 1,517 | 6,318 | <issue_start>username_0: Here is an example of the usage of `volatile` keyword.
```
public class Test3{
public static volatile boolean stop = false;// if volatile is not set, the loop will not stop
public static void main(String[] args) throws InterruptedException{
Thread thread = new Thread(){
... |
2018/03/20 | 567 | 1,890 | <issue_start>username_0: I'm trying to scale an image with css transition upon clicking some text.
The checkmark image should animate out and in each time the link is clicked. In iPhone Chrome however the checkmark doesn't animate - simply jumps from one state to the other, seemingly ignoring the css {transition: tran... |
2018/03/20 | 395 | 1,343 | <issue_start>username_0: I want to put online image on tab bar item.
Is this possible in iOS?
[](https://i.stack.imgur.com/3jfZX.png)<issue_comment>username_1: This is possible in iOS via `UITabBarItem`
You need to select UITabBarItem constructor for... |
2018/03/20 | 564 | 1,949 | <issue_start>username_0: I know that the question is confusing. Let me explain.
I am coding a Scrabble Trainer in Python3. You get a set of 7 letters(which can repeat) and you have to make as many words as possible just from those letters. I want the user to get an error if they use a letter which is not in that set. ... |
2018/03/20 | 989 | 3,270 | <issue_start>username_0: I have a (non-admin) account on one GCP project.
When I start the Dataproc cluster, GCP spins up 3 VMs. When I try to access one of the VM via **SSH (in browser)** I get the following error:
[](https://i.stack.imgur.com/nXGd... |
2018/03/20 | 495 | 1,994 | <issue_start>username_0: Let say we have:
```
std::vector segments;
...
Segment\* dd = new Segment;
segments.emplace\_back(dd);
Owner\* owner = getOwner();
owner->setSegmentPointer(&(segments.back());
```
This will not work because of [Iterator invalidation rules](https://stackoverflow.com/questions/6438086/iterator... |
2018/03/20 | 1,022 | 4,341 | <issue_start>username_0: I can call other apps' Activities without problem, including sending them some data and receiving some data back. But I am sending and receiving some sensitive information that could arguably be misused if in the wrong hands. My question is, is this data safe when traveling between appications?... |
2018/03/20 | 797 | 2,679 | <issue_start>username_0: I want to display a custom text next to my plot's y-axis, as in this minimal example:
```
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
ax.text(-0.05, 0.5, '$x$')
plt.show()
```
The horizontal alignment `0.05` is something I figure out by trial and error.
Unfortunately, `0.05` is... |
2018/03/20 | 640 | 2,245 | <issue_start>username_0: I need to generate a server stub code in eclipse using with swagger-codegen-plugin (for maven) . can you please help how to do it ? and what configuration needed for that( in pom.xml).<issue_comment>username_1: I found this answer. You just need to change pom.xml like below.
pom.xml.
```
UT... |
2018/03/20 | 463 | 1,618 | <issue_start>username_0: ```
public void mystery7(String sWord){
int nL=sWord.length();
if (nL>=3) {
mystery7(sWord.substring(0,nL/3));
System.out.println(sWord.substring(0,nL/3));
mystery7(sWord.substring(0,nL/3));
}
}
```
I am having trouble with recursion. I have to find the inp... |
2018/03/20 | 572 | 2,196 | <issue_start>username_0: I have used Animation() method to make my view with the animation of scaling and Rotation. With the Rotation based on the Y axis, the default height and width of my view has been changed. It looks like the parallelogram.
rotation of rectangle along y-axis transformed to a parallelogram.
```
... |
2018/03/20 | 774 | 2,731 | <issue_start>username_0: I am trying to run the code using python(scrapy) but there is no output.
I am also tyring to login to a webpage, let me know if there are any errors
The code i am using is this:
```
class MySpider(Spider):
def init(self, login, password):
link = "http://freeerisa.benefitspro.com"
... |
2018/03/20 | 613 | 2,299 | <issue_start>username_0: Thought that it will be an easy, but appears to be complicated (for me). Could someone, please, help to find correct solution for following:
Have 200 tests inside one package **selenium.tests.postTip** which looks like this one below:
```
package selenium.tests.postTip;
import java.util.List;... |
2018/03/20 | 2,122 | 6,242 | <issue_start>username_0: I have a script receiving a JSON from PHP. I have to parse the data. Unfortunately I'm not able to parse the JSON into an object and get the different arrays. I tried to validate the JSON but I cant find an error there either.
Code:
```
$.ajax({
type: "POST",
dataType: "html",
url: "/sq... |
2018/03/20 | 1,163 | 3,525 | <issue_start>username_0: This is the `SP_ARCHIVE` table
[](https://i.stack.imgur.com/JaeUm.png)
This is the `Account` table
[](https://i.stack.imgur.com/YQQO7.png)
This is the `Propo... |
2018/03/20 | 339 | 925 | <issue_start>username_0: I need to add same values on array and then to see it as one string.
```
char txt[33] = "";
for (int i=0; i<4; i++)
{
txt[i]="A";
}
LCDPutStr(txt,25);
```
I get `4` characters but they are strange symbols. I need to take `"AAAA"`.<issue_comment>username_1: If LCDPutStr expe... |
2018/03/20 | 809 | 2,994 | <issue_start>username_0: I am making a simple CRUD function in my Xamarin.Forms app, but I can't understand how to delete from the list.
**My question** is this, how do I delete the selected item in the TextCell? As of now since I am using `var delete = _saveData[0];` I'm obviously deleting the first item. My guess is... |
2018/03/20 | 796 | 2,509 | <issue_start>username_0: For python `dict`, I could use `iteritems()` to loop through key and value at the same time. But I cannot find such functionality for NumPy array. I have to manually track `idx` like this:
```
idx = 0
for j in theta:
some_function(idx,j,theta)
idx += 1
```
Is there a better way to do ... |
2018/03/20 | 513 | 1,768 | <issue_start>username_0: The following code is from `export_stockinfo_xls` in Odoo 10. I want to know what mean `context.get('active_ids', [])` and what is the returned value. Why do we use `[]` in that expression?
```
@api.multi
def export_xls(self):
context = self._context
datas = {'ids': context.get('active... |
2018/03/20 | 714 | 2,533 | <issue_start>username_0: So. I've got a list Property that groups values with identical names;
```
List> MyList { get; set; }
```
It's initially populated from a database by means of an `IQueryable<>`.
But say I wanted to add a new item to this list using code, how would I go about that? Since IGrouping is an inter... |
2018/03/20 | 282 | 938 | <issue_start>username_0: Does the regular expression `X•(Y*+Z)` accept the word `X`?
I would say it does, as `Y=ε` should fulfill the disjunction, but I'm not sure.<issue_comment>username_1: This answer is assuming that your regex could also be represented as `X.(Y*|Z)` in addition to your original of `X•(Y*|Z)` -- if... |
2018/03/20 | 692 | 2,997 | <issue_start>username_0: So I'm writing a chat application and I need to store each users chat log locally. I'm using Room to do this.
User class:
```
@PrimaryKey
@NonNull
private String userid;
private String name;;
@TypeConverters(Object_Converter.class)
private ArrayList messages = new ArrayList<>();
```
The is... |
2018/03/20 | 957 | 3,093 | <issue_start>username_0: I'm new to HTML/CSS and I want quite simple thing - 2 column layout, where the right column gets the width according to its content (text) and left column takes the rest of the space.
I was able to do that using `floats` - basically the right `div` was floated to the right and the left `div` w... |
2018/03/20 | 466 | 1,798 | <issue_start>username_0: I'd like to create a custom sequence of elements. When iterating over it, the length of the sequence is ignored. Here is a minimal code example:
```
class Test():
def __init__(self):
pass
def __len__(self):
return 5
def __getitem__(self, idx):
return idx
... |
2018/03/20 | 676 | 2,368 | <issue_start>username_0: I'm using the GraphQL Spring-boot library to build a GraphQL API
<https://github.com/graphql-java/graphql-spring-boot>
I have a schema
```
type Car {
id: ID!
model: String
brand: String
}
type Query {
allCars: [Car]!
}
```
And my query is implemented in a Query class in my ... |
2018/03/20 | 9,659 | 23,219 | <issue_start>username_0: I am very much new to AES encryption and decryption. In my app, I have to decrypt the data which I get from the server. The data I receive is encrypted using the CryptoJS library. The decryption works pretty much fine. But while posting the data to the server, I have to again encrypt the data a... |
2018/03/20 | 1,064 | 3,767 | <issue_start>username_0: I am unable to convert an rdd with `zipWithIndex` to a dataframe.
I have read from a file and I need to skip the first 3 records and then limit the records to row number 10. For this, I used `rdd.zipwithindex`.
But afterwards, when I try to save the 7 records , I am not able to do so.
```
va... |
2018/03/20 | 460 | 1,483 | <issue_start>username_0: I'm using DOSBox MASM to learn Assembly Language. However, I want to give input along with debug. That is, I want to execute my program line by line and also give input as soon as
```
INT 21H
```
comes. I'm debugging in
```
afdebug test.exe
```
But as soon as it sees
```
MOV AH,01H
INT ... |
2018/03/20 | 965 | 3,628 | <issue_start>username_0: Using Go's [default HTTP client](https://golang.org/pkg/net/http/), I am unable to directly determine the IP address of the server that processed the request. For instance, when requesting `example.com`, what is the IP address that `example.com` resolved to at the time of the request?
```
impo... |
2018/03/20 | 461 | 1,605 | <issue_start>username_0: I have a SpringBoot app and an interface that extends from `CrudRepository`
```
@Query("select cps from HotelPriceSummary cps where cps.price > 5 and cps.profilePercentage >= 70 ")
List findMine(Pageable pageable);
```
I would like to know if it is possible to get the total number of pages f... |
2018/03/20 | 393 | 1,564 | <issue_start>username_0: What is the most appropriate way to test if a variable is undefined in JavaScript?
```
$.ajax({
type: method,
url: url,
success: function (data) {
if (form != null || form != undefined){
data = $(form).serialize();
}
var json = JSON.parse(data),... |
2018/03/20 | 548 | 2,091 | <issue_start>username_0: I have main method:
```
Future main() async {
final securityService = new SecurityService(new BrowserClient());
await securityService.getObject();
bootstrapStatic(
AppComponent,
[
provide(SecurityService,
useFactory: () => securityService, deps: []),
provide(BrowserClient,
useFactory... |
2018/03/20 | 2,173 | 6,830 | <issue_start>username_0: I currently have a project going on and I was wondering how to make a counter that increases as clicked. All the buttons would have different values (such as 2) and once clicked, the counter would increase. I currently have all the buttons set up but I'm not sure how to add value to them and ha... |
2018/03/20 | 254 | 910 | <issue_start>username_0: I'm using VSCode, and have TSLint plugin installed. Apart from this I also have `eslint` configured for my app. However, for one line, I'm trying to disable `eslint` with the below code.
```
if (!Intl) {
// eslint-disable-next-line global-require no-global-assign
Intl = require('intl')
}
... |
2018/03/20 | 1,138 | 4,059 | <issue_start>username_0: I have added a share functionality in my app to share data like name, price,quantity and description. This is how I have achieved it...
```
let prodObj = newProdDetails[indexPath.row]
let name = prodObj.name
let price = prodObj.mrp
let qty = prodObj.quantity
let description = prodObj.descripti... |
2018/03/20 | 206 | 750 | <issue_start>username_0: Using pip in a console window under windows 7 I can barely see the text of the errormessages.
[](https://i.stack.imgur.com/l5QYr.jpg)
Is there any chance to tell pip to use another color? This dark red on top of black is a b... |
2018/03/20 | 389 | 1,206 | <issue_start>username_0: I have a problem to generate the token, use the command you passed in tutorial
```
curl -X POST -H "Content-Type: application/json" \
-H "Authorization: Bearer access-token" \
-d '{"foo": "bar"}' \
"https://.cloudfunctions.net/get"
```
When enter in my link /get return " No authorization tok... |
2018/03/20 | 622 | 2,133 | <issue_start>username_0: I need to create a statement that can be run to rename a partition only if specific partition name exists and if not then continue on to execute other code.
```
basic command = ALTER TABLE TEST RENAME PARTITION P1 TO P2:
```
I have looked at the following but have not come up with a solutio... |
2018/03/20 | 442 | 1,857 | <issue_start>username_0: As my browser was crashing I was not able to create a pull request from GitHub UI, I was trying to create a pull request from git console but didn't found any way to create a pull request.
I have also searched for the same over the net but most of the tutorials suggested to create a pull requ... |