date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/05 | 522 | 1,910 | <issue_start>username_0: I want to show the product variant options as radio buttons like here [enter link description here](https://ilezo.myshopify.com/products/when-god-made-grandkids-supergirl-black-grandma-t-shirt)
But my current theme shows the options as dropdowns. Iwant to list it as above. Can anyone please he... |
2018/03/05 | 471 | 1,836 | <issue_start>username_0: I have developed a **windows form application using C# in visual studio.** Everything's perfect but in terms of database i**don't want to install SQL server studio in client's system.**
But **my application has to access data from database which is in server and use the live data(changes on da... |
2018/03/05 | 279 | 929 | <issue_start>username_0: I use `react-intl` with `en` and `fr`, and my React app is wrapped in
```
```
so that e.g. when `lang` is `en`, all `intl.formatMessage` calls result in English texts.
What I want to achieve is that I want , but inside the app, I need one specific `intl.formatMessage` to be translated into... |
2018/03/05 | 716 | 1,841 | <issue_start>username_0: **PROBLEM**
I have a list that I got from pulling data from a MySQL database. Using SQLAlchemy
```
selectAA1 = conn.execute('
SELECT YIELD_EXPECTED_QTY as x, YIELD_ACTUAL_QTY as y
FROM obj2mart')
```
**WHAT I'VE GOT SO FAR**
```
keys = ["x", "y"]
values = []
for r... |
2018/03/05 | 1,907 | 3,220 | <issue_start>username_0: I'm working on some code to produce a figure showing the evolution of the universe. [This](https://i.stack.imgur.com/u1QLC.png) is the plot I have. I would like it to have points on each line at the value scale factor a=1 (y=1). The code I have used is:
```
import numpy as np
import matplotlib... |
2018/03/05 | 836 | 2,724 | <issue_start>username_0: Is there a compiler flag that logs warning / error in case of any implicit conversions - like int32\_t to uint32\_t.
```
#include
#include
using ::std::int32\_t;
using ::std::uint32\_t;
int main(int argc, char \*argv[])
{
int32\_t x = 9;
uint32\_t i = x;
std::cout << " " << x << " " ... |
2018/03/05 | 303 | 1,073 | <issue_start>username_0: I applied `react-native-keyboard-aware-scroll-view` in app.js (which is base file for my app) to make it work throughout the application.
```
return (
);
```
And my application contains several `Modal` windows with fields.
Package is working fine for the fields which are out side of... |
2018/03/05 | 462 | 1,591 | <issue_start>username_0: When I execute `'null' != null` it returns true. I don't get why this happens.
If I execute `1 != '1'` it gives returns false, which is correct because it checks value.
But why does `'null' != null` return true?<issue_comment>username_1: >
> ... `null` expresses a lack of identification, i... |
2018/03/05 | 590 | 2,027 | <issue_start>username_0: I have an XML file as in the example: [XML Example](https://www.w3schools.com/xml/cd_catalog.xml)
But when I read it with C# to a dataset I cannot access all CD contents.
I Use the code below
```
ds.ReadXml(sFilePathAndFileName); //Read Xml file to Dataset
public void GetTitle()
{... |
2018/03/05 | 1,752 | 5,619 | <issue_start>username_0: I can't kill or stop any docker container. I've allowed non-privileged users to run Docker commands. And `docker run hello-world` works fine.
But I can't stop any other container.
I got following:
```
$ docker stop 59e3b815d1dc
Error response from daemon: cannot stop container: 59e3b815d1dc: ... |
2018/03/05 | 526 | 1,901 | <issue_start>username_0: I am having jquery as follows,
```
$(document).on('click', '.save_button', function (e) {
var amount = $('.actual_pay').val();
});
```
Which means when a user clicks the button with class `save_button`, the script executes and sets the value of the var `amount` to the value of the field... |
2018/03/05 | 369 | 1,177 | <issue_start>username_0: Following is the code of my `activity_main_drawer`. However, in the xml design view there is a `TextView` logout in the drawer. I have not added this text. How can I remove that text?
```
xml version="1.0" encoding="utf-8"?
```
highlighted Logout Text is error
[![enter image description he... |
2018/03/05 | 476 | 1,593 | <issue_start>username_0: I am looking for a way to write a query that would look for the date of the conference room in which it is free.
I have two tables:
A table with the names of conference rooms and
The booking table consists of two fields: start date [date\_from] and end date [date\_end]
A new client looking for... |
2018/03/05 | 369 | 1,303 | <issue_start>username_0: There is a XML from that I am constructing an another XML using XSLT. I want some fields to have Hashed Value rather than actual value. Meaning I should know when data is changed but I don't want to know the data due to some security reasons.
```
```
For now I am just replacing data with XX... |
2018/03/05 | 2,376 | 8,778 | <issue_start>username_0: How come we do not have to pass an argument to `function b`
in the code below? Is it just because we are using map method of type Array? Or is there anywhere else that we can use a function just like this in
JavaScript?
Can someone give a very clean and through explanation?
Code:
```
/* w... |
2018/03/05 | 1,485 | 4,394 | <issue_start>username_0: I have two `List`, `List1` and `List2` which contains multiple columns: `RowNo`, `Value1`, `Value2`, etc. as follows
**List1**
```
| RowNo | Value |
|-------|-------|
| 1 | 11 |
| 2 | 22 |
| 3 | 33 |
| 4 | 88 |
```
**List2**
```
| RowNo | Value |
|-------|------... |
2018/03/05 | 261 | 1,018 | <issue_start>username_0: 1. If i develop an app for amazon fire stick but I don't have a Fire stick so how can I check my app?
2. Is there any emulator for Amazon fire stick ?<issue_comment>username_1: See [this post](https://developer.amazon.com/docs/fire-app-builder/use-an-android-tv-emulator.html) on the Amazon Deve... |
2018/03/05 | 1,081 | 3,602 | <issue_start>username_0: What is coming in to the webAPI is this JSON string and becomes deserilized in to this:
```
List mealtraiDeserializeObjects = JsonConvert.DeserializeObject>(mealTrainee);
```
`mealtraiDeserializeObjects` contains five index's one for each day of the week. Inside that specific index is a clas... |
2018/03/05 | 412 | 1,490 | <issue_start>username_0: I got the following error when I tried to `brew tap homebrew/science`: "Error: homebrew/science was deprecated. This tap is now empty as all its formulae were migrated." HOWEVER, there are no explicit instructions on what to do. All it's formulae were migrated to \_\_\_\_?
I am not new to scie... |
2018/03/05 | 384 | 1,452 | <issue_start>username_0: I am trying to create a google sync API(background API using scheduler) which basically updates my database courses with the google classroom courses.
The Google Classroom API does not seem to have a mechanism for fetching only create/update/delete courses. right now I am able to fetch all cou... |
2018/03/05 | 287 | 1,104 | <issue_start>username_0: I have export the sql file for one my client but something is make me confuse.
I view the total size for the SQL in phpmyadmin and it is show this

But, when I Export it, it just become 7.07mb only. Does is something wrong or no?<issue_commen... |
2018/03/05 | 341 | 1,332 | <issue_start>username_0: I am working with scroll and try to initiate it at specific element by a given id.
my html looks like:
```
```
in my component
```
Future ngOnInit() async{
await _apiService.getElements().then((resp){
list = resp;
});
scrollToLastElement();
}
```
my scrollToLastElement method
... |
2018/03/05 | 633 | 1,662 | <issue_start>username_0: I have a dataframe with two groups and values. I have to find `max` value by one group (`group`) and discover, to which values does my `max` correspond to in the second group (`dist`).
```
# example
df<-data.frame(group = rep(c("a", "b"), each = 5),
val = 1:10,
di... |
2018/03/05 | 300 | 1,009 | <issue_start>username_0: I am trying to use Java to execute a shell script in Linux(Ubuntu) and trying to redirect the output to another file.
```
String cmd[] = {"sh", "-c", "my_dir/script.sh > new_dir/out.txt"};
Process pb = Runtime.getRuntime().exec(cmd);
```
However this us not working properly. I am not able to... |
2018/03/05 | 324 | 1,155 | <issue_start>username_0: I have a concurrent dictionary which I am using it to do some thread-safe functionalities.
For example I have the following code :
```
var myConcurrenctDictionary= new ConcurrentDictionary();
if (myConcurrenctDictionary.TryAdd(personId, personId) == false)
{
throw new Exception("");
}
```
... |
2018/03/05 | 393 | 1,344 | <issue_start>username_0: I was trying to get a book value using JavaScript and storing in a variable named "bookName" now it has a decimal value 124562. This decimal value indicates some book details.
Now the problem is in firebase I made a data modeling a node named as "books" and in there there are different details... |
2018/03/05 | 366 | 1,474 | <issue_start>username_0: i'm working with my friend on a project and we have the same database but in different devices..so he has data in the database and i have another data in my database and when we export his database and import it to my database, all the data in my DB is delete it and keep only his data ..
so my ... |
2018/03/05 | 1,079 | 3,497 | <issue_start>username_0: I've got a function which returns [database notifications](https://laravel.com/docs/5.6/notifications#accessing-the-notifications) of a user (the User model is [Notifiable](https://laravel.com/docs/5.6/notifications#sending-notifications)):
```
return $user->notifications()->get();
```
The r... |
2018/03/05 | 932 | 2,272 | <issue_start>username_0: I want to display date format like this **02-jan-2018**
**GET Method**
```
$scope.allReport = function() {
$http({
method: 'GET',
url: 'api/admin/report'
}).success( function (data) {
$scope.data = data.data;
console.log($... |
2018/03/05 | 863 | 2,587 | <issue_start>username_0: This is my JavaScript Code. It is working fine but the inserted data which I inserted dynamically inside the table lost after reloading. I am also doing Server Side validation so I don't want to loose the dynamically added Data after the Page Reload.
```
function AddItem() {
debugger;
... |
2018/03/05 | 739 | 2,299 | <issue_start>username_0: A feature that - most often - is quite helpful is string substitution/string formating. For example one of the following commands:
```
"Hi my name is %s and I'm %s years old" % ("Derp", 12)
```
or
```
"Hi my name is {0} and I'm {1} years old".format("Derp", 12)
```
will be evaluated to
`... |
2018/03/05 | 1,275 | 4,160 | <issue_start>username_0: I have been trying to print a one-page pdf file from command line (hostscript version 9.22), or .NET console app using [ghostscript.net](https://archive.codeplex.com/?p=ghostscriptnet) (version 1.2.1). The file (PDF version 1.7 - Acrobat 8.x) is A3 size and I want to print it on an A4. It looks... |
2018/03/05 | 1,105 | 4,315 | <issue_start>username_0: I have referred so many articles on the topic, after which I have ended up more confused than understanding anything clearly. It mainly because of the many ways the same thing is done in rails.
Old school method of making ajax calls:
1. Javascript watches for some event.
2. When that event o... |
2018/03/05 | 811 | 2,723 | <issue_start>username_0: >
> The proper divisors of a positive integer, n, are all the positive integers that divide n evenly other than n itself. For example, the proper divisors of 16 are 1, 2, 4, and 8.
>
>
>
An abundant number is an integer greater than 0 such that the sum of its proper divisors is greater th... |
2018/03/05 | 1,376 | 4,050 | <issue_start>username_0: I have Start Date and End Date and I have to get difference between these two dates, but the condition is, I have to exclude 29th Feb if it is leap year. I am able to get difference between two dates using momentJS. But how to exclude 29th feb if it is in that date range.
For Ex:
```js
//For ... |
2018/03/05 | 1,215 | 3,714 | <issue_start>username_0: I have an environment with Vagrant, Salt & TFS . So I have some vagrant boxes with AD user credentials, I m looking at options where we need to figure out a way to have encrypted keys for storing secrets & to use PGP encryption to encrypt these keys and secrets that way they can be in source co... |
2018/03/05 | 1,218 | 3,699 | <issue_start>username_0: I have a requirement, Where I am storing all the command line parameters in a string, (Can't store it in an array, because of other restrictions).
My question is, I want to prefix all the command line parameters stored in the string "services".
```
services=$( echo $* | tr -d '/' )
--... |
2018/03/05 | 452 | 1,905 | <issue_start>username_0: Ciao everyone,
i am new to Swift and I have some trouble to convert some variable from **String to Int** into method call 'newRecipe'.
I have try this solution but I don't know how I can put the new value in the code. Someone please help me? Thank you so much!
```
// Method to create a recipe
... |
2018/03/05 | 454 | 1,676 | <issue_start>username_0: I'm a python newbie. I created a calculator program that will accept 2 number and a type of operation from user. I already have a working code for this but I want to further simplify the code by exploring and using function.
Here's the portion of the code:
```
def addition(num1,num2):
sum ... |
2018/03/05 | 319 | 1,206 | <issue_start>username_0: My project has web application folder named ABCPortal and this project can't load into VS 2015 whenever I load the whole project . screenshots are attached . any help regarding this will be helpful .
[](https://i.stack.imgur.... |
2018/03/05 | 385 | 1,100 | <issue_start>username_0: i have a list like
```
['hold', 'summit', 'septemb', '8', '9', '.', "'s", 'nancy-amelia', 'sydney', '.', 'energy', ',']
```
I want to remove all integers, 'dot' , quotes in "s", 'Comma', 'double quote' from such list in one go Or I want to only keep the string entries only i.e h... |
2018/03/05 | 403 | 1,309 | <issue_start>username_0: I am using nodejs with expressjs framework with MongoDB. In mongoose have created instance as **var User = new userModel(data).** Here is my model **user.js**
```
const userModel = mongoose.model("User", UserSchema);
module.exports.listUser = function() {
var deferred = Q.defer();
... |
2018/03/05 | 1,554 | 5,275 | <issue_start>username_0: I'm working with the docodable protocol and I'm having this error:
```
typeMismatch(Swift.Dictionary, Swift.DecodingError.Context(codingPath: [MakeApp\_v2.Params.(CodingKeys in \_244BBB2F32A8C5CF3DB84B0C6A94B232).config, Swift.\_DictionaryCodingKey(stringValue: "table", intValue: nil)], debugD... |
2018/03/05 | 1,005 | 3,397 | <issue_start>username_0: Sparse matrices are matrices whose elements are predominantly zero. The codes below use an ArrayList of LinkedLists to implement a sparse matrice. It defines a class Element to store the column number and value for an element. Each row is represented by a LinkedList of Elements with non-zero va... |
2018/03/05 | 706 | 2,191 | <issue_start>username_0: How can I write an .aspx file into a .xaml file of WPF?
how can I write or convert? Is there is any tool to convert?<issue_comment>username_1: I would probably not use lists, I would use a `Map` behind the scenes.
Untested code:
```
interface Matrix {
public T get(Point p);
public void pu... |
2018/03/05 | 1,326 | 4,991 | <issue_start>username_0: I am creating an app and I would like user to be logged in all the way after they register an account with the app until the user decides to delete the account.
It works something like whatsapp. Am i correct to use userdefault to store what the user key in during registration? Then lets say i ... |
2018/03/05 | 1,424 | 5,602 | <issue_start>username_0: I have set `Recyclerview` in `Fragment` one.I want to send position of RecyclerView item from RecyclerView Adapter of Fragment one to RecyclerView Adapter of Fragment Two to set particular item of RecyclerView in Fragment two.
This is code for Fragment one Adapter
```
@Override
public ... |
2018/03/05 | 475 | 1,649 | <issue_start>username_0: I have been trying to solve this problem for a while now, I am using .replaceAll to remove any character in a String that is not a letter or number. I tried using Pattern.quote(), but I was unable to make it work correctly. Then I tried using \Q and \E, but it still isn't working, even with my ... |
2018/03/05 | 511 | 1,824 | <issue_start>username_0: I am planing to use firebase OTP in my project but not sure is it free or not. Seems like it is free<issue_comment>username_1: To check the prices of Firebase products, please check the link below:
<https://firebase.google.com/pricing/>
According to the link:
>
> Free Products:
>
>
> Auth... |
2018/03/05 | 542 | 1,857 | <issue_start>username_0: I want to do something like this
```
...
```
and in my controller
```
var myApp = angular.module('myApp',[]);
myApp.controller('test', ['$scope, $http', function($scope, $http) {
$http.get('/categories' + $scope.category...
}]);
```
but it doesn´t work like that. any ideas on how to ... |
2018/03/05 | 1,243 | 4,025 | <issue_start>username_0: I'm a noobie and I've been struggling on this simple code for too long, so i thought i'd ask for help.
I'm attempting to open a CSV and decode the URL text e.g. `example.com?title=%D0%BF%D1%80%D0%B0%D0%B2%D0%BE%D0%B2%D0%B0%D1%8F+%D0%B7%D0%B0%D1%89%D0%B8%D1%82%D0%B0` and then save the file. I ... |
2018/03/05 | 22,855 | 30,023 | <issue_start>username_0: If you have a look at the following date vector, the dates are not consistent.
If you look , you will see the first 8 dates have the format dd/m/yr and the next 8 dates have mm/dd/yr.
I have such 5000 dates which keeps changing the format. The raw data was like this. I want to format the entir... |
2018/03/05 | 582 | 1,998 | <issue_start>username_0: I have a vue.js application and I want to deploy it on a server on a tomcat, it's posible and how ?<issue_comment>username_1: Yes of course you can, an extended tomcat app server has a structure like this:
[it is supposed that you are going to deploy a static application into tomcat]
apache-t... |
2018/03/05 | 1,067 | 3,713 | <issue_start>username_0: i want to programmatically import a product into my magento. Unfortunatly I get an error which is not telling me a lot maybe some of you have an idea. Here is my php code:
```
echo '
```
';
echo 'Create Product Model';
echo '
```
';
$product = $this->productFactory->create();
$product->setSku(... |
2018/03/05 | 431 | 1,712 | <issue_start>username_0: After my login screen home view appears correctly but when I add a hamburger/side menu then after logging in the home view gets blank.
I have added a view into my home view for hamburger/side menu which is the cause of disappearing everything from home screen how to handle it.
I also have adde... |
2018/03/05 | 822 | 2,780 | <issue_start>username_0: I have seen for loops, comprehensions with both parenthesis () and curly braces {} they look awfully similar. I always thought they were the same, until I wrote this code:
Version 1:
```
def findChar(c: Char, levelVector: Vector[Vector[Char]]): Pos = {
val positions =
for {
... |
2018/03/05 | 596 | 1,944 | <issue_start>username_0: this is my query
```
CREATE OR REPLACE VIEW TEST_DB.TEST_V
AS
SELECT RECEIVING_INVENTORY_ORG_ID AS RECEIVING_INVENTORY_ORG_ID,
BL_LINE_KEY AS BL_LINE_KEY
FROM (SELECT TEST_T.RECEIVING_INVENTORY_ORG_ID,
TEST_T.BL_LINE_KEY
FROM TEST... |
2018/03/05 | 789 | 3,431 | <issue_start>username_0: Amazon Web Service's IAM service allows administrators to create user accounts with different permissions, groups etc.
When an administrator creates a new user, he has the option of specifying whether this user will be limited to either programmatic access (ie only access AWS through api calls... |
2018/03/05 | 1,059 | 4,082 | <issue_start>username_0: Can anyone tell me ORM or query builder which one will be better ?And it's benefit?<issue_comment>username_1: **ORM**
* Provides you a nice a API in OOP manners
* You can play with relationships easily
* You can also Handle `Polymorphic Relationships` which is not provided in `Query Builder`
*... |
2018/03/05 | 588 | 1,998 | <issue_start>username_0: I'm using bootstrap-vue.js to create a tab. The result is like this
[](https://i.stack.imgur.com/EW76k.png)
I just want change the tab title color because it's using default color from my project. And from the bootstrap-vue.js... |
2018/03/05 | 519 | 1,582 | <issue_start>username_0: ```
data: [
{
schedule_id: "1",
schedule_name: "Garage Out",
schedule_lat: "22.5737085",
schedule_long: "88.4317922",
sehedule_time: "07:10 AM",
schedule_icon: "",
schedule_note: "EN-27, EN Block, Sector V, Salt Lake City, Kolkata, West Bengal 700091, India",
active_status: "0",
trip_id: "0"
}
... |
2018/03/05 | 1,216 | 4,594 | <issue_start>username_0: I have a list of strings and I need to write an `IComparer` implementation to sort them in a specific order.
My current implementation:
```
public enum TimeBucket
{
[Description("0D")]
ZeroDay,
[Description("1D")]
OneDay,
[Description("1W")]
OneWeek,
[Description("... |
2018/03/05 | 414 | 1,469 | <issue_start>username_0: I'm on macOS, using another program needs to run python script contains networkx module. My networkx2.1 is installed using:
```
pip install networkx --user
```
The error raised is that:
```
File "/Users/myname/Library/Python/2.7/lib/python/site-packages/networkx/__init__.py", line 43, in
i... |
2018/03/05 | 403 | 1,099 | <issue_start>username_0: I created a map on my website. User can add multiple markers. And on the other page I created a call to these markers.
Here is a string:
>
> string
> '[{"lat":"40.7181193798","lng":"-84.4847297668","label":"A"},{"lat":"40.9530752681","lng":"-83.9779055864","label":"A"}]'
>
>
>
How to ma... |
2018/03/05 | 542 | 2,532 | <issue_start>username_0: I was able to get the username by using:
```
@Autowired
private HttpServletRequest request;
Principal user = request.getUserPrincipal();
mqMessage.setUserName(user.getName());
```
But I want to get the firstName & lastName of the user logged in.
How can i get the ff. userinfo using Spring... |
2018/03/05 | 4,364 | 16,396 | <issue_start>username_0: I have the following situation
```
class Parent {
@SomeAnnotation(someValue)
public void someMethod(){...}
}
class Child extends Parent {
@Override
public void someMethod(){...}
}
```
And I need to get `@SomeAnnotation` when I have reference to method `Child.someMethod`.
Us... |
2018/03/05 | 885 | 3,035 | <issue_start>username_0: Query, that works in ide and i want to execute:
```
begin
sys.dbms_scheduler.create_schedule(schedule_name => 'U6_GB.SCHED_DAILY_7_30',
start_date => to_date(null),
repeat_interval => 'Freq=Daily;ByHour=7;ByMinu... |
2018/03/05 | 1,008 | 2,736 | <issue_start>username_0: I want to replace this line
```
command: [ "--no-save", "--no-restore", "--slave", "/home/app/src/work-daily.py", "20180212"]
```
with
```
command: [ "--no-save", "--no-restore", "--slave", "/home/app/src/work-daily.py", "20180305"]
```
`20180305` is today's date where I am storing its ... |
2018/03/05 | 615 | 2,035 | <issue_start>username_0: When I was trying to figure out *top-level const* and *const\_cast*, I wrote some code as follows.
```
int main()
{
// m is a top-level const
const int m = 10;
// this is an undefined behavior according to *Primer c++*
// but I still compile and run this without warning.
... |
2018/03/05 | 1,145 | 3,457 | <issue_start>username_0: Here is my over-simplified database structure;
```
CREATE TABLE [dbo].[Names](
[Name] [nvarchar](50) NOT NULL,
CONSTRAINT [PK_Names] PRIMARY KEY CLUSTERED
(
[Name] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS =... |
2018/03/05 | 942 | 2,731 | <issue_start>username_0: I am using Python
my list is
```
str = ["Hello dude", "What is your name", "My name is Chetan"]
```
I want to separate each word in each sentence in the string and store it in new\_list. new\_list will be like
```
new_list = ["Hello", "dude", "What", "is", "your", "name", "My", "name",
... |
2018/03/05 | 646 | 2,069 | <issue_start>username_0: is there a way in Pandas data frame where I can extract words from a column of strings that are only of length of 2 characters?
For example:
>
> Singapore SG
> Jalan ID Indonesia
> Malaysia MY
>
>
>
And the results will be
>
> SG ID MY
>
>
><issue_comment>username_1: Use [`str.fin... |
2018/03/05 | 1,328 | 3,894 | <issue_start>username_0: I am trying to install a python library, openpyxl. I just installed python 3.6 on my windows 10 work computer. The result of my installation attempt is below.
I found a related question: [pip install and custom index url](https://stackoverflow.com/questions/31559638/pip-install-and-custom-ind... |
2018/03/05 | 686 | 2,087 | <issue_start>username_0: ```
select c.id, count(*) as 'Transactions' from voucher v
right join consumer c on v.consumer_id = c.id
where v.voucher_state in ('REDEEMED', 'EXPIRED') and c.country = 'INDIA'
group by c.id;
```
**Expected output :-**
Id Transactions
3 0
4 0
6 3
7 9
8 4
9 ... |
2018/03/05 | 5,853 | 21,034 | <issue_start>username_0: I'm a jQuery newbie. I've got the functionality I want, but I'm sure my jQuery code could be simplified a lot - there is a lot of repetition.
For instance, each click produces almost the exact same result - to hide 7 divs, and show 1. I'm assuming there is a way to toggle all divs at once.
Pl... |
2018/03/05 | 1,133 | 3,159 | <issue_start>username_0: My table structure/data is this
```
Itemid RechTyp PstNr InvoicNr
1 M 200 Null
2 B 200 84684
3 B 300 84684
4 B 400 84684
5 M 500 Null
6 B 500 84685
7 B 600 84685
8 ... |
2018/03/05 | 807 | 2,215 | <issue_start>username_0: I have a domain in Godaddy.
The website is developed in AngularJS and hosted in Ubuntu 16 EC2.
I pointed the domain with EC2 IP address in godaddy, and it works fine.
Need help in configuring HTTPS for my website.<issue_comment>username_1: Assuming I understand the question, you want to get ... |
2018/03/05 | 916 | 3,074 | <issue_start>username_0: As per Java's scoping rule, objects declared in the outer scope will be visible to code within the inner scope and not vice versa.
Now, consider this program:
```
public class Scope {
public static void main (String args[]) {
int x = 10; //known to all code within main
... |
2018/03/05 | 708 | 2,474 | <issue_start>username_0: all the examples that I've found on <https://github.com/yhat/ggpy> show code in jupyter notebook. Is this a requirement or can I also visualise a chart while using Pycharm or running a script from terminal?<issue_comment>username_1: `y` is limited in scope there it is true, but `x` is not. And ... |
2018/03/05 | 1,821 | 5,879 | <issue_start>username_0: [](https://i.stack.imgur.com/eQfdL.png)
Every row has a different origintimezone. I need to make use of the standardformat\_new column which is in the origintimezone time to create a new column where the time follows the com\_... |
2018/03/05 | 1,272 | 4,488 | <issue_start>username_0: I have a WordPress site with Woocommerce. In Woocommerce, Lost Password URL merges with My Account page `(www.site.com/my-account/lost-password/)`.
Then I create a redirect function that will redirect non-logged in users when they hit "My Account" page to "Login" page. This means I limit them ... |
2018/03/05 | 293 | 1,114 | <issue_start>username_0: Currently, Visual Studio Code offers helpful hints on common language keywords like `for` and `class` and `enum` (I'm using Typescript). I don't need assistance with these words - they're just noise, blocking me from seeing more relevant entries.
Is there a way I can disable suggestions for 'l... |
2018/03/05 | 394 | 1,662 | <issue_start>username_0: I have a specific issue that I don't know if Hibernate can automatically resolve:
In our domain model, we have many bidirectional One-to-many relationships, where the "child" might be a child of many parents.
Example:
```
public Class Role {
@ManyToOne(targetEntity = Actor.class, fetch ... |
2018/03/05 | 1,268 | 4,899 | <issue_start>username_0: We have one requirement to extract large size .zip files (around 3 - 4 GB size) in Blob Container to other Blob Container and the extracted files are Jason files (around 35 -50GB size).
For implementation been referred code from this link: <https://msdevzone.wordpress.com/2017/07/07/extract-a... |
2018/03/05 | 842 | 3,121 | <issue_start>username_0: Please tell a method to add multi-select drop-down in Angular 5 using TypeScript. I am using WebStorm as IDE.<issue_comment>username_1: If you need to unzip a large number of files that are sitting in Azure Storage then one option is to use **[Azure Batch](http://www.johndehavilland.com/blog/20... |
2018/03/05 | 1,828 | 5,902 | <issue_start>username_0: I'm trying to connect to a **Teradata** database in **Python 3** using the package **JayDeBeApi**. This is part of an API project using **Flask** and **Flask-Restplus**
Here is a minimal working example to reproduce the issue.
In a terminal Window, type the following commands to setup your wor... |
2018/03/05 | 432 | 1,566 | <issue_start>username_0: Can anyone tell me how to fix it? Ihave the same title issue in the alert box.
```
bootbox.confirm({
title: "Confirmation",
message: "Are you sure you want to delete the selected items?",
buttons: {
confirm: {
label: 'Yes',
className: 'btn-success'... |
2018/03/05 | 403 | 1,664 | <issue_start>username_0: I created a splash video using Av player view controller. its is coming properly for all the devices except I Phone X. I tried changing video gravity frame and everything but it won't work. any Idea about this? here is the sample code :
```
guard let videoPath = Bundle.main.path(forResource: "... |
2018/03/05 | 216 | 851 | <issue_start>username_0: If I have, say, 3 partitions with replication factor 3. Now what I understood is that they have all to connect to the same zookeeper. Ok what if they can't due to network issues ? Will the replication continue when the network is avaialble again?<issue_comment>username_1: Kafka requires Zookeep... |
2018/03/05 | 684 | 2,661 | <issue_start>username_0: I have an Android application which needs to send backup data every midnight to my cloud server. For this I need to schedule the job to occur every 24 hours without fail. I have read about [AlarmManager](https://developer.android.com/reference/android/app/AlarmManager.html) and [JobScheduler](h... |
2018/03/05 | 1,793 | 5,235 | <issue_start>username_0: I am using a Bootstrap template (heavily edited). I have two images, each set at 50% of the full width which are refusing to line up on the same row. I am using calc(50%). Not sure why they arent working. I would like the icons and codefu images to line up, as well as the seek and addaptive div... |
2018/03/05 | 776 | 3,049 | <issue_start>username_0: I have been reading about using static objects as locks and the most common example would be something like this:
```
public class MyClass1 {
private static final Object lock = new Object();
public MyClass1() {
//unsync
synchronized(lock) {
//sync
}
//unsync
}
}
``... |
2018/03/05 | 1,905 | 7,860 | <issue_start>username_0: How to update my app in app-store to a newer version?
Earlier, I successfully offered my app into the app-store. That's the starting point. But it's been a while, I've updated my app, and would like to offer a new release. Since a misstep in preparing the app can take a bit of time, I'd like t... |
2018/03/05 | 2,120 | 8,508 | <issue_start>username_0: ```
Exception in thread "main" java.lang.IllegalStateException: The driver executable is a directory: C:\Users\<NAME>\Desktop\Automation\geckodriver-v0.19.1-win64
at com.google.common.base.Preconditions.checkState(Preconditions.java:585)
at org.openqa.selenium.remote.service.DriverServi... |
2018/03/05 | 2,187 | 8,959 | <issue_start>username_0: I am writing the first test for login into my android app. I entered valid user's credentials (phone and password), then I entered the pin-code (1111) and then I confirmed this pin-code. But after the last `pincode.click()` my app crashes instead authentication process and appium test failed (b... |
2018/03/05 | 2,047 | 8,405 | <issue_start>username_0: I have a UICollectionView, connected as an outlet to a UICollectionView in storyboard. I have this as part of my code:
```
override func viewDidLoad()
{
super.viewDidLoad()
SetActivityIndicator()
let layout: UICollectionViewFlowLayout = UICollectionViewFlowLayout()
layout.item... |
2018/03/05 | 1,141 | 2,263 | <issue_start>username_0: I want to Select the same column names from the two separate lists and output will be a list
Here example:
***List 1***
```
> list(p1=data.frame(x=1,y=2), p2=data.frame(x=3,y=4), p3=data.frame(x=1,y=3))
$p1
x y
1 1 2
$p2
x y
1 3 4
$p3
x y
1 1 3
```
***List 2***
```
> list(p1=data.... |
2018/03/05 | 472 | 1,507 | <issue_start>username_0: write a function that returns no value to delete capital letters in a C-string
void erase(char\* a)
{
char\* targetp = sourcep;
```
while (*sourcep != '\0')
{
if (isupper(static_cast(a)== false)
{
\*targetp++ = \*sourcep;
}
a++;
}
\*a='\0';
}
```<issue_comment>username_1: `a++` sh... |
2018/03/05 | 534 | 1,632 | <issue_start>username_0: Given a hash of arrays:
```
a =
{:b => [:x, :x, :y], :c => [:x, :z, :z]}
```
I would like to remove all duplicates from the arrays in the hash.
Expected result:
```
a
# => {:b => [:x, :y], :c => [:x, :z]}
```
What does not work:
```
a.each { |e| e.uniq! }
```
Neither does:
```
a.each... |
2018/03/05 | 539 | 1,761 | <issue_start>username_0: I have the following code:
```
import csv
import requests
from bs4 import BeautifulSoup
import datetime
with open("D:/python/sursa_alimentare.csv", "w+") as f:
writer = csv.writer(f)
writer.writerow(["Descriere", "Pret"])`
```
Because I run this quite often, I want to sa... |