date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/07 | 690 | 2,183 | <issue_start>username_0: Python 2.6
Linux (CentOS)
I using shutil.copyfile() function to copy file. I write an exception message in the log file if file is doesn't exist. So, i get message with wrong symbols, because my file path contains russian characters. For example:
origin file path - "/PNG/401/405/018\_/01200Г/o... |
2018/03/07 | 556 | 1,868 | <issue_start>username_0: [](https://i.stack.imgur.com/J0u02.png)
I have 4 Levels in my tree view and want to find Parent/GrandParent of child selected at 4th level. Is there any way in WPF to find parent of selected item in Tree View.<issue_comment>use... |
2018/03/07 | 1,539 | 5,965 | <issue_start>username_0: Right now I am saving my all visual studio projects in C drive.
Now I want to keep copy of that all projects in some other drive, so if my C drive get crashed then also I can access all projects.
So what is best way for that.
If I just make zip of current projects from C drive and paste it i... |
2018/03/07 | 338 | 800 | <issue_start>username_0: I need to get a list of events that have id of 6005 or 6006 using "wevtutil" tool. This command works fine:
```
wevtutil qe system /rd:true /q:*[System[EventID=6005]]
```
But I need to get both events with ID 6005 and 6006. I tried
```
wevtutil qe system /rd:true /q:*[System[EventID=6005 or... |
2018/03/07 | 408 | 1,566 | <issue_start>username_0: I am developing an app in which I want to open a view when the user clicks on a text field but I don't want to open the keyboard. How can I achieve this?<issue_comment>username_1: Set your ViewController as your TextFields delegate using
```
self.yourTextfield.delegate = self
```
and now imp... |
2018/03/07 | 229 | 843 | <issue_start>username_0: I have a doubt about MDA.
And this is my doubt,
I can used the MDA concepts in a architecture that is not related to it(e.g ER), ?<issue_comment>username_1: Yes, you can. MDA is just a set of guidelines that you can follow in any "modeling stack" you're using.
It's true that MDA is OMG's vi... |
2018/03/07 | 666 | 2,225 | <issue_start>username_0: I'm trying to use debounceTime on an Angular 5 function but I'm not sure how to use it. When I built a search function I could use it, because it was bind to the changes made on that input value, like this:
```
this.search
.debounceTime(400)
.distinctUntilChanged()
.takeUntil(this.... |
2018/03/07 | 1,728 | 5,869 | <issue_start>username_0: I have counters in my cart and I'm struggling to get the controls to only target the specific counter I'm on. Instead, it's updating them all.
```js
// Product Counter
DecreaseCount = function(){
var count = $(".quantity__count").val();
if (count > 0) count--;
if (count == 0) count =... |
2018/03/07 | 1,708 | 5,899 | <issue_start>username_0: **Hello Everyone**
I am stuck with a peculiar problem. The following code is my Controller Function
```
public function populateIndustry(Request $request) {
if($request->isMethod('post')) {
$var = "Post Method";
} else {
$in_id = $request->industry_id;
//$var ... |
2018/03/07 | 519 | 1,756 | <issue_start>username_0: I have a fairly large pandas dataframe (11k rows and 20 columns). One column has a mixed data type, mostly numeric (float) with a handful of strings scattered throughout.
I subset this dataframe by querying other columns before performing some statistical analysis using the data in the mixed c... |
2018/03/07 | 1,137 | 3,692 | <issue_start>username_0: I have the following program.What is the best , and most efficient way to check if the two stacks are equal by the values they contain?
```
#include
#include
#include
struct StackNode
{
int data;
StackNode\* next;
};
StackNode\* newNode(int data)
{
StackNode\* stackNode = new StackNod... |
2018/03/07 | 986 | 3,990 | <issue_start>username_0: Pivotal gives you option to deploy your application with help of Cloud Foundry inside AWS Cloud. I am little confused how PCF and AWS are differ. I know that PCF gives solution using which host (client) can make their own cloud on-premises.
AWS do not provide anything like that. And has lot of... |
2018/03/07 | 908 | 3,134 | <issue_start>username_0: ```
CREATE TABLE hotel_reservation(
hotel_code VARCHAR2(5),
room_type VARCHAR2(75), CONSTRAINT check_room_type CHECK(room_type LIKE 'DELUXE' or room_type LIKE 'SUPERIOR' or room_type LIKE 'MASTERS SUITE') NOT NULL,
room_id number(3), CONSTRAINT fk_room_id FOREIGN KEY(room_id) REFE... |
2018/03/07 | 944 | 2,940 | <issue_start>username_0: I have an numpy array(arr) of size (3997,29). I am using this array to create a dataset. This array has both integer and float variables. So dtype is reference. But when I execute it I get the below error.
>
> "ValueError: Not a location id (Invalid object id)"
>
>
>
```
with h5py.File("t... |
2018/03/07 | 755 | 2,583 | <issue_start>username_0: How to insert new row to the end of table?, and how to make the button (that needs to hide the same row) display after check the checkbox??
I dont know how to call the element by name insted of id like I use too...
i tried to search in the web but nothing was helpful.
* without change anythin... |
2018/03/07 | 362 | 1,409 | <issue_start>username_0: There is a structure defined and instance is initialized.
```
struct details{
int numb;
string name;
string address;
};
details det={2,"abc","def"};
```
Now in generic implementation, we know the struct type(`details`) and member name (say `name`). Only one instance is defin... |
2018/03/07 | 1,511 | 3,763 | <issue_start>username_0: I use this code for smoothing data by fitting exponent with `scipy.optimize.curve_fit`:
```
def smooth_data_v1(x_arr,y_arr):
def func(x, a, b, c):
return a*np.exp(-b*x)+c
#Scale data
y = y_orig / 10000.0
x = 500.0 * x_orig
popt, pcov = curve_fit(func, x, y, p0=(1,... |
2018/03/07 | 1,183 | 4,277 | <issue_start>username_0: We want our Go application to listen to the data changes on a collection. So, googling in search for a solution, we came across MongoDB's [Change Streams](https://docs.mongodb.com/v3.6/changeStreams/). That link also exhibits some implementation snippets for a bunch of languages such as Python,... |
2018/03/07 | 372 | 1,189 | <issue_start>username_0: As per Matlab's help, `single` values are converted to `uint8` by rounding, e.g.
```
uint8(91.799999)
```
will return us 92.
However, in numpy the following
```
np.uint8(91.799999)
```
will return 91.
Is there a way to match these behaviors in one way or another?
Thanks<issue_comment>... |
2018/03/07 | 560 | 2,175 | <issue_start>username_0: I'm just trying to connect remotely to my MySQL server with a java application .But while running the code getting `java.sql.SQLException:null`, message from server: "Host '172.16.17.32' is not allowed to connect to this MySQL server".I have double checked the host, username and password.Follow... |
2018/03/07 | 398 | 1,442 | <issue_start>username_0: I am displaying videos using `ViewPager`. Each page plays a different video. I would like to play the video only in the active page (other pages should be paused) like in Facebook or Instagram.
```
@Override
public void onResume() {
super.onResume();
if (player == null) {
p... |
2018/03/07 | 724 | 2,567 | <issue_start>username_0: I am trying to run my program on Google Colab; where my code make use of .py files written seprately.
In normal system I have all files inside one folder and it works using `import xyz`, but when I tried using same folder in Google drive it gives import error.<issue_comment>username_1: If you... |
2018/03/07 | 519 | 1,367 | <issue_start>username_0: [grouping rows in list in pandas groupby](https://stackoverflow.com/questions/22219004/grouping-rows-in-list-in-pandas-groupby?noredirect=1&lq=1)
i have found question and need to go a step further
output required by this question was
```
A [1,2]
B [5,5,4]
C [6]
```
what I'am trying to ac... |
2018/03/07 | 1,215 | 3,626 | <issue_start>username_0: I have a price that changes on interval timings. I need to be able to update the margin of another div when this price changes.
Price 1: £10,000 (changes dynamically)
Price 2: £12,000
Price 3: £8,000
Calc: Price 2 - Price 1 = Price 3
Link: <https://jsfiddle.net/Layt8cuy/86/>
```
$('.pric... |
2018/03/07 | 630 | 2,215 | <issue_start>username_0: In my DB I store all `datetime` fields in **UTC format**. Also, I have the ability to change default time zone by users. Each user can have own time zone, **different from UTC**.
How shall I display all model `datetime` fields in this case?
I have an idea. To do this action for each ActiveRec... |
2018/03/07 | 691 | 2,894 | <issue_start>username_0: I would like to yield some data. Problem is that `chunk` method require closure which do the job. Is there way to yield data like from `foreach` loop in this situation?
```
public function yieldRowData(): \Iterator
{
$this->transactionQuery
->getQuery()
->chunk(5, function ... |
2018/03/07 | 1,641 | 5,121 | <issue_start>username_0: I have created a React Native Project and I was trying to open that project in Expo XDE. It throws the following error:
>
> `Cannot find module ...\node_modules\expo\tools\LogReporter`
>
>
>
Firstly I created a React Native project by cloning a KitchenSink Project.
Link:
[NativeBase-Kit... |
2018/03/07 | 3,317 | 8,156 | <issue_start>username_0: suppose if two dictionary list are
```
l1 = [{'name': '1st Match - Sri Lanka v India', 'place': 'R Premadasa Stadium, Colombo'}, {'name': '2nd Match - Bangladesh v India', 'place': 'R Premadasa Stadium, Colombo'}, {'name': '3rd Match - Sri Lanka v Bangladesh', 'place': 'R Premadasa Stadium, Co... |
2018/03/07 | 1,198 | 3,789 | <issue_start>username_0: I'm writing a library that operates in parallel. This library is often used within docker containers. I would like to start as many threads as my docker container has allocated cores.
Does docker set the CPUs limit somewhere as an environment variable?
For example if my user sets two CPUs wh... |
2018/03/07 | 640 | 2,288 | <issue_start>username_0: How to implement a React component with a similar structure of [react-bootstrap Modal](https://react-bootstrap.github.io/components/modal/)?
```
Modal heading
My Body
=======
Close
```
I was working a solution like this:
```
import React, { Component } from 'react'
import CardHeader f... |
2018/03/07 | 1,070 | 4,042 | <issue_start>username_0: From the business perspective, false negatives lead to about tenfold higher costs (real money) than false positives. Given my standard binary classification models (logit, random forest, etc.), how can I incorporate this into my model?
Do I have to change (weight) the loss function in favor o... |
2018/03/07 | 657 | 2,640 | <issue_start>username_0: I want to apply the rotation of the ARCamera to a 3D node so that the node will always face the camera. How can I implement this code in Objective-C?<issue_comment>username_1: You can get an SCNNode to face the `ARCamera` by using an `SCNBillboardConstraint`:
>
> An SCNBillboardConstraint obj... |
2018/03/07 | 791 | 2,855 | <issue_start>username_0: i am renaming file for example `file1.txt` to `"newFile.txt"` but when the code runs for the next time. the file `newFile.txt` already exists so the newly file created whos name is `"file1.txt"` doesn't renamed to `"newFile.txt"`
what i want is if the `"newFile.txt"` already exists renaming `"... |
2018/03/07 | 359 | 1,343 | <issue_start>username_0: Whatever I tried this following code throws `ArithmeticException` with message "Non-terminating decimal expansion; no exact representable decimal result." on bigger numbers (like 43, 50, 56 etc).
Here is the code:
```
private BigDecimal catalan(int n) {
if (n <= 1) {
return BigInt... |
2018/03/07 | 4,255 | 14,950 | <issue_start>username_0: Consider this code:
```
#include
class test
{
public:
test( char \*arg )
: \_arg( arg )
{}
char \*\_arg;
};
int main( )
{
char \*txt1 = "Text one"; // Ignore this warning.
const char \*txt2 = "Text two";
test t1( txt1 ); // Normal case, nothing new.
const test t2( txt2 ); // Since... |
2018/03/07 | 2,168 | 7,151 | <issue_start>username_0: I'm trying to make a very **simple progress bar in HTML5 + CSS3** only. Since I've found, the HTML's tag is very hard to properly style across browsers, I'm using *classic* version, but now I'm struggling with its design.
**Here is a simplified version of my current code:**
```css
/* Progre... |
2018/03/07 | 1,026 | 3,315 | <issue_start>username_0: I have a table like
```
------------------------
S.No Name Amount Imp_Num
1 A 10 12345
2 B 20
3 A 30
4 C 40 4555
5 B 50
--------------------------
```
and I want something like
```
---------------------------------------
Name To... |
2018/03/07 | 242 | 939 | <issue_start>username_0: I am in the process of installing SimpleSAML and in the php library, there is a folder called www that has index.php. According to the docs, there is an admin console within it. However, at the moment I am unable to access it via the url www.website.com/third\_party/simplesaml/www/index.php.
... |
2018/03/07 | 433 | 2,023 | <issue_start>username_0: I need to retrieve last 2 min data from MySQL database using Java Program? I don't know how to write a query to fetch data in particular time interval and referred a lot but I didn't find the correct query? can any one please help me out ?
Below is my Java program which connected to MySQL data... |
2018/03/07 | 196 | 739 | <issue_start>username_0: In my project I've around 20-30 PODS and all of them are in `OBJECTIVE-C`.
In some of the pods I've changed some pieces of code due to requirement.
Now I want to add a pod which is only written in swift. Is it possible to use swift for only that specific pod ? I don't want to use "use\_framewor... |
2018/03/07 | 1,651 | 6,681 | <issue_start>username_0: I have a recyclerview with horizontal layout and only one view is visible at a time:
```
mRecyclerView = findViewById(R.id.rvmain);
mRecyclerView.setOnFlingListener(null);
final SnapHelper snapHelper = new LinearSnapHelper();
snapHelper.attachToRecyclerView(mRecyclerView);
mLayoutManager = new... |
2018/03/07 | 490 | 1,709 | <issue_start>username_0: Am currently using the format `MM-dd-yyyy HH:mm` to display the time stamp. Is it possible to drop the minutes if the time does not have any minute component ?
Like, instead of `3:00 PM` is it possible to display only `3 PM` ?
EDIT:
```
func formatDate(_ dateFormat: String, timeInterval: Tim... |
2018/03/07 | 560 | 1,981 | <issue_start>username_0: `clear()` does not work in this case. I am getting append after append.
`searchForMovie.clear()` is not working... I have also tried to send
`CTRL + 'a'`, and then the `DELETE`. Again all I got are just appends...
```
for movie in allMissing:
time.sleep (10)
se... |
2018/03/07 | 867 | 3,556 | <issue_start>username_0: I have a working example of a multi-page app using angular2. It seems load times are slower than I want them to be, when developing locally.
I've read another thread, here on stackoverflow, that shows how to set this type of situation up: [How to use Angular2 as a non-SPA?](https://stackoverfl... |
2018/03/07 | 1,115 | 2,728 | <issue_start>username_0: I cant figure out how to take multidimensional array such as:
```
bit unsigned [10:0] img [3:0][3:0];
```
And make this array as a stream of bits.
Think of it as an 4X4 image that each pixel is 11 bits in my memory that I want to read, and I have 1 input pin that get my image as a stream o... |
2018/03/07 | 404 | 1,165 | <issue_start>username_0: I have a script that converts excel file into csv using unoconv.
I noticed that some records in the csv is added as a new line due to particular format in excel. I was wondering if there is anyway this can be handled in unix.
sample problematic data.
```
col1, col2, col3
jim,"washington dc... |
2018/03/07 | 433 | 1,585 | <issue_start>username_0: I have this HTML
```
text
```
and want to, for example, change CSS or just show Alert.
```
var chan = document.getElementById("content2");
if(chan){
chan.addEventListener('click', function swapper() {
alert('Ready!');
//document.getElementById('content').style.display = "none";
... |
2018/03/07 | 1,439 | 4,156 | <issue_start>username_0: Hi I have this little function which finds the powerset of set but i need all the consecutive sublist. `[1,2,3] -> [[],[1],[2],[3],[1,2],[2,3],[1,2,3]]` and not `[[],[3],[2],[2,3],[1],[1,3],[1,2],[1,2,3]]`
Is there a way to fix this function to do what i want?
```
sublists :: [a] -> [[a]]
sub... |
2018/03/07 | 793 | 2,395 | <issue_start>username_0: I am using a STM32L432KC microcontroller which has two separate internal RAM regions (SRAM1 is 48kB, SRAM2 is 16kB). The memory ranges are not adjacent, so it is not possible to use them as a single block of 64kB.
In the default linker script all data incl. heap and stack are located in SRAM1,... |
2018/03/07 | 439 | 1,487 | <issue_start>username_0: Does anyone know how to set a custom value for the input type using `timedropper.js`?
I am using `timedropper.js` but it gives me a default time or value i.e. `03:48 am`. I want to set to a custom value like `0:00`.
How can I do that?<issue_comment>username_1: You can set it by setting value ... |
2018/03/07 | 716 | 2,512 | <issue_start>username_0: I have two tables:
```
// pseudo code:
class User {
int UserID; // primary key
string name;
IEnumerable Checklists;
}
class Checklist {
int ChecklistID; // primary key
String name;
}
```
And when I do the following LINQ query:
```
var result = from checklist in _context.Us... |
2018/03/07 | 499 | 1,955 | <issue_start>username_0: How to check if an HTML element already has [autoNumeric](https://github.com/autoNumeric/autoNumeric) initialized, so i won't initialize it again?
Initializing it twice results in all input numbers appearing twice.
```
if (// autonumeric not yet initialized) {
var anObject = new AutoNumer... |
2018/03/07 | 2,669 | 11,204 | <issue_start>username_0: I want to do face detection in xamarin.forms,
I found the necessary codes but not xamarin.forms.
these codes are for xamarin.android only.
I want to set these codes in xamarin.forms.
How to do this with dependency service?
Can anyone with this information help me?
My Code
```
public clas... |
2018/03/07 | 277 | 1,001 | <issue_start>username_0: My app on Google App Engine (GAE) Standard generates an exception:
>
> java.lang.NoClassDefFoundError: com/google/appengine/repackaged/org/joda/time/DateTime
>
>
>
The joda time library is actually packaged as part of the GAE SDK and if I check the libs that got uploaded, joda is present.... |
2018/03/07 | 466 | 1,747 | <issue_start>username_0: I'm running an Ubuntu server to mine crypto. It's not a very stable coin yet and their main node gets disconnected sometimes. When this happens it crashes the program through fatal error.
At first I wrote a loop script so it would keep running after a crash and just try again after 15 seconds:... |
2018/03/07 | 1,479 | 4,914 | <issue_start>username_0: I have the following scenario:
```
$amount = '1000000000.00000001';
//echo $amount;
$query = $mysqli->prepare("UPDATE `wallets` SET `dollars` = `dollars` + ? WHERE `userId` = ?");
$query->bind_param('si', $amount, $id);
$query->execute();
```
The column dollars... |
2018/03/07 | 1,704 | 5,073 | <issue_start>username_0: When I try to install Tensorflow with `pip install tensorflow`, I get this exception:
```
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/Library/Python/2.7/sit... |
2018/03/07 | 1,922 | 8,007 | <issue_start>username_0: [enter image description here](https://i.stack.imgur.com/CjXoh.png)As you can see I have added 6 item in navigation drawer but on clicking Logout it is not triggered. And sorry for bad code format. I'm new here.
```
@Override public boolean onOptionsItemSelected(MenuItem item) {
// Handle ... |
2018/03/07 | 1,549 | 6,154 | <issue_start>username_0: I'm trying to create an alert so when a user signs up and then wants to log back in they can be warned if the password is wrong because at the moment it just performs the segue and the attempt to alert fails. I'm using Firebase so the password that is entered into firebase on sign up should be ... |
2018/03/07 | 1,480 | 4,009 | <issue_start>username_0: I am simulating protein folding on a 2D grid where every angle is either ±90° or 0°, and have the following problem:
I have an n-by-n numpy array filled with zeros, except for certain places where the value is any integer from 1 to n. Every integer appears just once. Integer k is always a near... |
2018/03/07 | 1,134 | 3,552 | <issue_start>username_0: This questions targets to `Datatables` plug-in for `JQuery`.
I have HTML table with 3 languages `en`, `ru`, `fr`. For example if English language is chosen French and Russian entries should be hidden, if Russian language is chosen then French and English entries should be hidden and so on.
In... |
2018/03/07 | 640 | 2,298 | <issue_start>username_0: I'm trying to define a method based on a condition in the controller of my laravel application. But it shows the following error.
>
> Symfony \ Component \ Debug \ Exception \ FatalThrowableError
> (E\_PARSE) Parse error: syntax error, unexpected 'if' (T\_IF), expecting
> function (T\_FUNCT... |
2018/03/07 | 306 | 1,150 | <issue_start>username_0: I created an sdk. When the css file is to be loaded, it gives this error.
The css file includes a .woff2 url for the font.
Even after removing that part of the code, the error persists.
I don't know how to handle this. Please help.<issue_comment>username_1: Man... you are writing code inside... |
2018/03/07 | 787 | 2,827 | <issue_start>username_0: When `print(mess)` is called from the `viewDidLoad` function, it prints what is expected, but when called from the `viewWillAppear` function, it gives empty output. label also not getting updated after doing the assignment in `viewDidLoad` .Why is this?
main ViewController:
```
if segue.ident... |
2018/03/07 | 776 | 2,736 | <issue_start>username_0: I had a problem with my videoview.
----------------------------------
When I try play video from specific URL at my API-27 emulator Android show me message dialog
>
> Can't play this video
>
>
>
That's it what I get in Logcat
>
> source returned error -1010, 0 retries left
>
>
> in... |
2018/03/07 | 481 | 1,735 | <issue_start>username_0: As a library mantainer, I want to **deprecate an old export** in favour of a new one.
In order to keep backward compatibility I'd like to temporary **keep both exports** and **warn those users** who are still **using the old one**.
**Before**
```
function foo(){}
export {foo as oldExport}
`... |
2018/03/07 | 1,203 | 4,123 | <issue_start>username_0: I have some code that adds items to a select list which works fine. However, what I need to do is compare a value that has already been entered so the user cannot enter dupe values. I know how to compare values but cannot get my head round how to check for value already entered.
I would be gra... |
2018/03/07 | 951 | 3,153 | <issue_start>username_0: I just want to fill column7 of my\_table with values from other columns so the result for column7-value looks like that: 86|WWB|2014 or 86|WWB|- in case that column3 has value 0. Here is my SQL:
```
UPDATE public.my_table
SET column7 =
case when column1 IS NULL then '-' else column1 end
... |
2018/03/07 | 459 | 1,277 | <issue_start>username_0: I wanna introduce info on a txt, and i have this:
```
int main(){
FILE * file;
file=fopen("viajes.txt", "w");
char select;
char dni[tm_dni];
printf("Introduce DNI:\n");
scanf("%s", dni);
fputs("DNI cliente:", file);
}
```<issue_comment>username_1: This:
```
fputs("DNI cliente... |
2018/03/07 | 193 | 740 | <issue_start>username_0: I've seen .HTML to .PDF using PHP, but not .PHP to .PDF
What I want to do is to convert the HTML part of a PHP file to a PDF file. The reason why I need it to be PHP is because I'm supplying most of the data of the HTML part via PHP<issue_comment>username_1: You can use external php libraries ... |
2018/03/07 | 356 | 1,527 | <issue_start>username_0: I have a large xls document where each row contains a problem id , its description and its category for expl: category 1- A- a1
I am trying to build a machine learning model that helps me to classify this document according to the categories. Goal is for each new entry ( aka new problem descri... |
2018/03/07 | 653 | 2,252 | <issue_start>username_0: I have the following Grouping:
```
IGrouping>
```
I'd like to convert this to the simplified grouping of just:
```
IGrouping
```
What's the simplest way to do this?
Additional information:
The initial group was created from a list of
```
IEnumerable> myList
```
by calling
```
myLi... |
2018/03/07 | 313 | 1,306 | <issue_start>username_0: I am working on an app which requires file creation on the first launch.
On next launch, I have to check if the file exists. If available then skip some app-specific initializations.
This works perfectly for me.
**Issue :
For Android 7.0 and later and Motorola Devices.**
The problem starts w... |
2018/03/07 | 1,289 | 3,960 | <issue_start>username_0: Is there anything different about the dependencies that start with `@`?
Does that mean or imply something?
I don't see any info about that. Take a look at my `node_modules` folder:
[](https://i.stack.imgur.com/fCo2s.png)
**Fortawesome** start... |
2018/03/07 | 1,162 | 4,038 | <issue_start>username_0: In file\_b.js I have the function
```
function date_of_birth(target, selector, days) { // Do something }
```
In file\_a.js I try to call the function with `date_of_birth('a', 'b', 30)` but I get the error: **date\_of\_birth is not defined**
So I tried it with:
```
window.date_of_birth = ... |
2018/03/07 | 751 | 2,584 | <issue_start>username_0: I have an entity that need to have an unique key (not primary) of UUID type.
```
@Entity
public class MyEntity {
@Id
@NotNull
@GeneratedValue(strategy = SEQUENCE, generator = "seq_entity")
@SequenceGenerator(name = "seq_entity", sequenceName = "seq_entity", allocationSize = 1)... |
2018/03/07 | 300 | 1,124 | <issue_start>username_0: I'm trying to get postgres to install on ubuntu xenial by automating the process entirely. I expected it would go smoothly like any other apt-get, but in the middle it asks me to configure where I'm from (region and city). However, I want it to get done without me actually having to type in mor... |
2018/03/07 | 904 | 3,722 | <issue_start>username_0: I need to integrate two APIs (SquareSpace and MailChimp) - take information from the first and input it into the latter. The two APIs don't have support for each other, and I know I need to create a custom solution formatted in JSON.
When the user makes a purchase on a SquareSpace website, I n... |
2018/03/07 | 443 | 1,819 | <issue_start>username_0: I want to get crash reports for unhandled exception in my xamarin mac application like hockey app used for tracking exceptions for android and ios apps. I have search a lot but not get any apps for tracking unhandled exception. Please suggest any app for tracking exceptions in xamarin.mac. Than... |
2018/03/07 | 1,277 | 5,164 | <issue_start>username_0: We use Jenkins pipeline & Github Multibranch.
I worked on a feature branch called `feature/my1stfeature`.
The Jenkins job returned the proper branch name:
`println(env.BRANCH_NAME)` returned `feature/my1stfeature`.
However, as soon as I created my first pull-request in Github
`println(env.... |
2018/03/07 | 1,705 | 6,365 | <issue_start>username_0: I want to be short and sweet. My website address was this
`https://www.example.com/ABCD/index.php`
To make it convenient for users, I changed the ABCD directory to abcd (small case). Now users type
`https://www.example.com/abcd/index.php`
However if users come to my site from google, there ... |
2018/03/07 | 363 | 1,485 | <issue_start>username_0: Debug/run test buttons are showing disabled, which I found because the chromedriver.exe is open, how to close the chromedriver.exe through selenium C# code?<issue_comment>username_1: Try the following:
```
Process[] chromeDriverProcesses = Process.GetProcessesByName("chromedriver");
foreach (v... |
2018/03/07 | 873 | 3,316 | <issue_start>username_0: I'm new in programming
I've learned three ways of getting elements of a list
and i know each of them is good in a specific situation
but i want to know which one is better in overall ( performance )
```
public class Main {
public static void main(String[] args) {
ArrayList arrayLis... |
2018/03/07 | 601 | 1,763 | <issue_start>username_0: Anybody could help me with this issue in PHP?
**My code:**
```
for ($i=0; $i < count($respuestajson['options']); $i++) {
foreach ($respuestajson['options'][$i] as $id => $nombre) {
if($id == "label" || $id == "value"){
$proyectosZP[$i][$id] = $nombre;
}
}
}... |
2018/03/07 | 465 | 1,488 | <issue_start>username_0: I want to show code name while in the database it is saved as code number.
How to display code name?
```
like code is 1 , 2
```
In the database the code is stored and I want to show `1= active, 2 = expire`
How to show active expire as result?
My current query is:
```
select code from p... |
2018/03/07 | 957 | 4,015 | <issue_start>username_0: i tried canceling pending http request using subscription.unsubsribe like this:
```
getAgentList(pageNumber: number, filter: string): any {
let requestUrl: string = 'api/service/agents_search?ACCT='
+this.accountId;
if ( this.subscription ) {
this.subscription.unsubscribe();
}
thi... |
2018/03/07 | 193 | 528 | <issue_start>username_0: 1.I have a path \\\\arvind\chaudhary\newfolder\ want to remove two backword
slash from this path and want as below
2.I want the path \\arvind\chaudhary\newfolder\<issue_comment>username_1: ```
var str = @"\\\\arvind\chaudhary\newfolder\";
str = str.Replace(@"\\\\", @"\\");
```
returns
>... |
2018/03/07 | 435 | 1,388 | <issue_start>username_0: I'm having several occurrences of a specific string over several files in several lines obtained with `grep`.
```
$ grep -rn --include="*.cpp" mystring
lib/mlib/actionbuttonrule.cpp:300: mystring Foobar...
lib/mlib/actionbuttonrule.cpp:314: other mystring
lib/mlib/item.cpp:3025: ... |
2018/03/07 | 540 | 1,859 | <issue_start>username_0: Here is the output(for my example):
"0
18"
but normally the object "checks" of the class Checks initializes the variable `n` of the class `Checks` at 18 but this is not happening.
```
public class Connect6 {
int n;
public Connect6(int n) {
this.n = n;
}
Checks checks... |
2018/03/07 | 1,534 | 3,844 | <issue_start>username_0: When I am trying to run below code I get an error as "Error in as.data.frame.default(x[[i]], optional = TRUE, stringsAsFactors = stringsAsFactors) : cannot coerce class ""try-error"" to a data.frame "
I am using try function to skip through the LINKS which are not working and continue with the... |
2018/03/07 | 626 | 2,013 | <issue_start>username_0: I have this model `files` where I have a property that is `response` that inside has an array `errorMessages` and inside my Vue component I want to show errors one by one, not in array format.
Is there any way to do it?
```js
{
"files": [
{
"fileObject": true,
"size"... |
2018/03/07 | 547 | 2,013 | <issue_start>username_0: Using Rails 5.2 rc1, is it possible to do direct uploads on localhost in development?
This is my form `new.html.erb`:
```
<%= f.label :images %>
<%= f.file\_field :images, multiple: true, direct\_upload: true, class: 'form-control' %>
```
and this is the error I get in console:
```
Ac... |
2018/03/07 | 974 | 3,270 | <issue_start>username_0: I am trying to plot some 2D values in a Basemap with contourf (matplotlib).
However, contourf by default interpolates intermediate values and gives a smoother image of the data.
Is there any way to make contourf to stop interpolating between values?
I have tried by adding the keyword argume... |
2018/03/07 | 1,214 | 3,891 | <issue_start>username_0: I am running a piece of Javascript code inside my Python code using the `js2py` library.It works fine for all kinds of Javascript code thrown at it and processes the result.However I am encountering an error when a **'require'** keyword is used in the Javascript code.Here is my code below
```
... |
2018/03/07 | 1,766 | 6,231 | <issue_start>username_0: I have read all of the posts regarding unrelated table joining that I can find however none seem to have anything to help me (that I can understand).
I have 2 temporary tables and I need table 2 to only contain rows where
the text field contains any one of the names in table1. There is no dire... |
2018/03/07 | 229 | 771 | <issue_start>username_0: I'm implementing a web page with multiple Vue instances.
I have a simple question : is it possible to name and display them under their name with vue-devtools?
Actually my console displays instances like this and it is hard to distinguish them :
[` and in controller i have added attribute `[ValidateAntiForgeryToken]`. Now my point is when i send request for deleting any document one antiforgery token is created. i have copied that token.
and agai... |
2018/03/07 | 395 | 1,617 | <issue_start>username_0: I am not able to hover and click on submenu in IE 11 using selenium. I am using below code.
```
Actions actions = new Actions(driver);
actions.moveToElement(driver.findElement(By.xpath(Locator))).click().build().perform();
wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(Locato... |