date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/02/27 | 372 | 1,552 | <issue_start>username_0: The OS X document versions browser (get to it from File > Revert to > Browse All Versions) shows the current version on the left side and and stack of older versions on the right side.
The window controller on the left side gets notifications letting you know that it's entering/exiting version... |
2018/02/27 | 355 | 1,408 | <issue_start>username_0: is there a way to see the currently line of code being ran in Xcode. With out using breakpoints but. A simple list of executions during run time. That were done on which line of code. So I can see where I'm at.<issue_comment>username_1: You should use breakpoints. The OP mentioned he didn't wan... |
2018/02/27 | 441 | 1,404 | <issue_start>username_0: I'm hidding the sidebar with a button.
But when the view get's under 991px I want to hide the sidebar to have more space for my site.
How can i do this? If I put the code inside the if it will always be toggling. If the size is bigger than 991px it should show the sidebar again
```
$('#si... |
2018/02/27 | 742 | 3,108 | <issue_start>username_0: I'm using Arduino Uno to save several variables into the EEPROM. My solution to this is to create a custom struct in which to store all the variables needed then use EEPROM.put to store them into the built-in EEPROM.
My problem arises not when putting data, but when getting data. Whenever I wo... |
2018/02/27 | 677 | 2,808 | <issue_start>username_0: I have seen quite a few posts online regarding this kind of problem and tried different approach, e.g. JSON.stringify the parameter, but none of them works on mine case.
I thought it should be a really simple and straight forward coding experience. But couldn't figure out what I did wrong.
H... |
2018/02/27 | 913 | 3,191 | <issue_start>username_0: im looking to use the purifyCss of laravel-mix. The fuction is working fine on a brand new installation but when i try to upgrade from an older version of laravel-mix nothing happens and no errors are shown.
this is the currect package.json file
```
{
"private": true,
"scripts": {
"de... |
2018/02/27 | 532 | 1,925 | <issue_start>username_0: How can the CJ-command be run with string as input? The following MNWE illustrates what is needed:
```
library(data.table)
# This is the desired output (when needed.cols==2)
dt.wanted <- CJ(X.1=c(1L, 2L), X.2=c(1L, 2L))
# Here is an example with needed.cols as variable
needed.cols <- 2L
use.te... |
2018/02/27 | 1,608 | 5,692 | <issue_start>username_0: I have a node app from which I get some data. I have gone through other questions asked on SO..but Im unable to figure this out. I need to access the value of *result* . The code below shows the exact response I get from server. None of the methods described in other answers like JSON.parse() e... |
2018/02/27 | 2,349 | 6,756 | <issue_start>username_0: I have a file filename with 2 lines:
```
2018-Feb-22 06:02:01.1234|AVC-00123HHGF|427654|Default|Name1 [1]|2334|2344444|(00:00:00.45567)|
2018-Feb-22 07:02:01.1234|BCV-00123HHGF|427654|Default|Name1 [1]|2334|2344444|(00:00:00.45567)|
```
I want to concat string
```
"Warning: Time elapsed:,3... |
2018/02/27 | 1,511 | 5,199 | <issue_start>username_0: I am using abcpdf10 to read pdf files. Whenever my code encounters an empty pdf file (0kb), document.Read(pdfPath) throws exception.
```
using (var document = new Doc())
{
document.Read(pdfPath);
}
```
If my code encounters empty file I need to ignore and continue. I am not sure how to do... |
2018/02/27 | 1,554 | 5,374 | <issue_start>username_0: I'm trying to use an if statement that looks like this. If a method has received an argument into its parameter `line` of type `String`, then why do I get a `cannot find symbol` error when using a `line.charAt(x)` call? Here's the code fragment.
```
for(int x = 0; x < line.length; x++) {
i... |
2018/02/27 | 981 | 3,119 | <issue_start>username_0: I have the following piece of code (the code for `TrResponse` and `TrNode` is irrelevant):
```
public TrResponse from(final TrNode b1, final TrNode b2, final TrNode b3) {
final TrResponse resp = new TrResponse();
Stream.of(b1, b2, b3)
.filter(Objects::nonNull)
.findFirst()
.ifP... |
2018/02/27 | 860 | 2,810 | <issue_start>username_0: I noticed that `setorder` seems to change variables it should not touch at all. A simple code example explains this best:
```
library(data.table)
x <- 1:3
y <- 3:1
data <- data.frame(x.dat=x, y.dat=y)
setorder(data, y.dat)
x
```
The variable x has been reordered and now also reads 3 2 1 . Th... |
2018/02/27 | 898 | 3,721 | <issue_start>username_0: I'm trying to understand how to best apply the OAuth 2.0 grant types to a microservice architecture I am working on. Here's the situatation...
I have a Single-Page Application/Mobile App acting as a client running in a web browser (browser acting as the user agent) or mobile phone. I use the *... |
2018/02/27 | 767 | 3,208 | <issue_start>username_0: I have a Login and I want to display a class if someone keeps a field empty. The if-part works good. By pressing on the button, the user shell stay at that page and then the error-class shell appear at the top just like here: <http://www.loltyler1.com/contact>
The class/HTML-code that i want t... |
2018/02/27 | 390 | 1,099 | <issue_start>username_0: I have a dataframe, in which one column is all dictionary. I want to select rows whose dictionary contains a given key.
```
>>> df = pd.DataFrame({"A": [1,2,3], "B": [{"a":1}, {"b":2}, {"c":3}]})
>>> df
A B
0 1 {'a': 1}
1 2 {'b': 2}
2 3 {'c': 3}
>>> df['b' in df['B']]
# the ... |
2018/02/27 | 730 | 2,788 | <issue_start>username_0: I'm building a CLI that, when run, requires the output of the most recently executed bash command. Is it possible to pull this output without recomputing the command?
For example, let's say I run `python main.py` and receive this error:
```
File "main.py", line 41
messages_list.insert(0, { "a... |
2018/02/27 | 511 | 1,631 | <issue_start>username_0: On my 5-node cluster, I issued various `drop table .` commands. After that action, their data on individual nodes still persists under /var/lib/cassandra/data//
I would like to know if there has been any best practice on freeing up space.
Or, would the `rm -rf /var/lib/cassandra/data//\*` comm... |
2018/02/27 | 302 | 1,318 | <issue_start>username_0: How to disable a submit button after a reCaptcha V2 timeout?
Like I need the button to be disabled when this message is visible on reCaptcha widget.
**`Verification expired. Check the checkbox again.`**
I'm disabling and re-enabling the submit button based on reCaptcha response as of now ... |
2018/02/27 | 358 | 1,382 | <issue_start>username_0: [ ] priority is highest (anyway is higher than +). But in RHS of expression below *the first (leftmost) summand (i) is evaluated before the second summand arr1[i++]*, because i++ of arr1[i++] does not influence value of the first (leftmost) summand (i which is 1 and not changed).
I cannot stri... |
2018/02/27 | 1,439 | 4,781 | <issue_start>username_0: Editing the question with the code I have already tried - apologies for not posting it but because it wasn't working I thought it would only make the question more unclear.
---
I have looked at the answers to similar questions but didn't manage to edit the scripts to what I need as I think my... |
2018/02/27 | 573 | 2,237 | <issue_start>username_0: I have a vector of user defined objects such as
```
std::vector list\_of\_objects;
```
The UserDefinedClass doesnt have any explicit copy constructor.
Now I would like to make a copy of them. So, I define
```
std::vector list\_of\_objects\_copied;
list\_of\_objects\_copied = list\_of\_ob... |
2018/02/27 | 254 | 982 | <issue_start>username_0: I read many articles about this topic but I don't understand how the MMU transfer an address between main memory and virtual memory ( please provide an example )<issue_comment>username_1: The MMU simply translates logical page numbers into physical page frame numbers.
The operating system main... |
2018/02/27 | 635 | 1,899 | <issue_start>username_0: I am trying to achieve the effect that we get with `pre` or some other text content element, it lets the content overflow (unless) we define it to be otherwise.
```
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa a... |
2018/02/27 | 569 | 2,149 | <issue_start>username_0: How would I use a Bootstrap class like `class='col-6'` to make a grid system when I have to render my whole react application in a ? it applies relatively to the not the actual body element.
in index.html
```
React App
You need to enable JavaScript to run this app.
```
in `App.js` (re... |
2018/02/27 | 425 | 1,642 | <issue_start>username_0: **Is there a way to close all 2D and 3D (holographic views) apps at once on HoloLens**?
Yes, they can be closed individually but some apps fall behind spatial mapping hence are beyond gaze's reach to close them. One can destroy the entire space but it is not really the best way of doing things... |
2018/02/27 | 503 | 1,884 | <issue_start>username_0: I'm trying to understand the issue in the ember-form-for (<https://github.com/martndemus/ember-form-for/blob/master/addon/components/form-field.js#L64>) but IMHO the code is not that important, it is just an ordinary component.
The component works perfectly when re-rendering does not occur. In... |
2018/02/27 | 424 | 1,294 | <issue_start>username_0: I have to group the array elements (based on common number) and create a separate array for each group. For example
```
Array structure = [{Location, Date, Number}]
array = [{ 'LA','2017-12-01',1},
{ 'LA','2017-12-01',1},
{ 'NY','2017-12-01',2},
{ 'NY','2016-10-01'... |
2018/02/27 | 287 | 1,063 | <issue_start>username_0: I have a simple file upload form
```
Select PDF to upload:
```
I need to get the file names of multiple files selected and insert them as a hidden variable less the .jpg extention. Example: 123.jpg I need to store as a hidden variable 123. You'll notice this is complicated by needing to do... |
2018/02/27 | 2,312 | 8,155 | <issue_start>username_0: I am trying to make a basic app where I add information to a Firebase database. I have three fields and a date. I would like add the date from EditText as the child name in Firebase, instead of writing it in the code. Something like in the picture below:
[
{
cout<<"1";
}
int main()
{
int s[n][n]={0};
a(s);
}
```
I am trying to pass a mult... |
2018/02/27 | 942 | 3,346 | <issue_start>username_0: i get the following error when i try to execute my code, which clearly shows its an mulitprocessing error:
```
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
```
On Linux, the following code runs fine, but Im wondering why i c... |
2018/02/27 | 1,144 | 2,586 | <issue_start>username_0: I have a dataframe in which there are multiple columns (more than 30) that is saved in a list. I would like to apply the same criteria for all those columns without writing each code for each columns. I have example below to help understand my problem better
```
A<-c("A","B","C","D","E","F","G... |
2018/02/27 | 2,161 | 7,509 | <issue_start>username_0: I have a React `Component` that uses `connect`, `withRouter` and receives custom properties. I am trying to convert this to TypeScript and I'm wondering if I'm doing this correctly. At least, I have no errors, now.
This is the code that shows the concept:
```
import * as React from 'react'
im... |
2018/02/27 | 395 | 1,425 | <issue_start>username_0: I wrote a function to see encrypt a given text file. The below code is a small portion of the function.
```
#pad it before encrypting it
elif len(chunk) % 16 != 0:
chunk += ' ' * (16 - len(chunk) % 16)
#write encrypted data into output file
... |
2018/02/27 | 312 | 1,100 | <issue_start>username_0: I am creating a blog using Django.I want to fetch my post from the database using Queryset by using command `Post.objects.filter(published_date__lte=timezone.now())`
But I am getting blank output. I have already imported timezone using
`from django.utils import timezone`
Here's a screenshot:
... |
2018/02/27 | 998 | 3,313 | <issue_start>username_0: Let's say in Handlebars we have this `cards-list.html` partial:
```
{{#each data}}

### [{{this.title}}]({{this.url}})
{{/each}}
```
Data are like this:
```
{"id": "1",
"title": "A",
"img": "imga.jpg",
"url": "card-single.html"
},
{"id": "2",
... |
2018/02/27 | 1,014 | 3,806 | <issue_start>username_0: I'm trying to use GitLab CI to build, test and deploy an Express app on a server (the Runner is running with the shell executor). However, the `test:async` and `deploy_staging` jobs do not terminate. But when checking the terminal inside GitLab, the Express server does indeed start. What gives ... |
2018/02/27 | 390 | 1,557 | <issue_start>username_0: ```js
function log(this) {
console.log(this);
}
```
It throws the error `Unexpected token this`. So why doesn't JavaScript accept `this` as an argument?<issue_comment>username_1: `this` is a [reserved keyword](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_gramma... |
2018/02/27 | 570 | 1,692 | <issue_start>username_0: Is there a way to use ng-repeat on cell instead of row? and I know I said "table" in the title, but I want to avoid using table if possible.
I have a `collection` of `item`, and I want to display the `items` one after another, and their position depends on the number of item per row allowed.
... |
2018/02/27 | 569 | 2,139 | <issue_start>username_0: I can use an anchor tag helper to go to a different razor page (from an existing razor page) e.g. this works:
```
```
How can I get a similar thing to work but using a button. I have tried:
```
EditReport
```
But the page never loads. I also tried using the page handler with different var... |
2018/02/27 | 460 | 1,473 | <issue_start>username_0: So I sit on the route defined as `/article/:id` on the client, and I query the server API like this:
```
const res = await axios.get(url + '/api/article')
```
(Don't worry about `url`, it's just to get the absolute path.)
Then I have my route:
```
router.get('/article', function(req, res) ... |
2018/02/27 | 1,395 | 4,558 | <issue_start>username_0: This seems to be a novice question but I've tried a reverse one. Now little bit confused to try another one. I've a requirement and already tried the following with `ListBox`:
```
public Form1()
{
InitializeComponent();
listBox1.Items.Add("123456 - Hello World 1!");
listBox1.Items... |
2018/02/27 | 507 | 1,928 | <issue_start>username_0: In this code, I tried if the number input is 000 get out of the loop with a nested if statement but it doesn't work. get this error: `IndentationError: expected an indented block`
```
var=1;
while var==1:
num=int(input("Enter a number:"))
if (isinstance(num, int)):
print("yo... |
2018/02/27 | 1,062 | 4,040 | <issue_start>username_0: I have a simple db structure with a one to many relationship
```
CREATE TABLE customer (
id SERIAL PRIMARY KEY,
email TEXT,
first_name TEXT,
last_name TEXT
);
CREATE TABLE customer_addres... |
2018/02/27 | 1,366 | 4,841 | <issue_start>username_0: I got this problem in my angular app. I have many options in a mat-radio-group but these are dynamically placed according to a json object. Something like this:
This is the json object
```
{
"list": [
{"name": "some name 1", ID: "D1"},
{"name": "some name 2", ID: "D2"}
]
}
```
i... |
2018/02/27 | 831 | 2,637 | <issue_start>username_0: Using Azure IOT, I have my device endpoint pointing to Azure Blob storage. Data is sent to the Blob, but i get non-ascii characters and am told that the file extension is incorrect. Sample Blob data is
`Objavro.codecnullavro.schemaÐ{"type":"record","name":"Message","namespace":"Microsoft.Azur... |
2018/02/27 | 540 | 1,621 | <issue_start>username_0: I have this table:
```
+------+----------+-------------+----------+
| id | name | name_orig | year |
+------+----------+-------------+----------+
| 1 | movie | film | 1987 |
| 2 | game | toy | NULL |
| 3 | picture | art | 2018 |
|... |
2018/02/27 | 2,108 | 9,322 | <issue_start>username_0: I'm trying to create a 'folder action' that will organise new files added into sub-folders for each letter of the alphabet based on the first letter of the filename.
I wrote the following code which works to move everything added into the subfolder "A" as a starting point, but now I've reached... |
2018/02/27 | 879 | 2,468 | <issue_start>username_0: I'm new to Ruby and trying to convert a text file containing DNA sequences into a hexadecimal output. I am currently using a hash to match strings with hex-values.
A sample input file might contain ctgcagccgc cgactgaaat. In that case, the output should be 79259 61E03.
What can I do to properl... |
2018/02/27 | 659 | 2,453 | <issue_start>username_0: I'm using Lottie (animation framework) and one of the delegates I'm trying to use is expecting me to return an `Unmanaged!`
This is the definition:
```
color(forFrame currentFrame: CGFloat, startKeyframe: CGFloat, endKeyframe: CGFloat, interpolatedProgress: CGFloat, start startColor: CGColor!... |
2018/02/27 | 1,661 | 4,403 | <issue_start>username_0: I have a string that looks like this,
```
b'2018-02-27 11:42:40:b\'{"EventID":"65605751","Priority":"Lav Emerg","PriorityColor":"16725041","SortLevel":"7","VStationID":"1002","accepted_flag":"0","ack":"0","bedid":"42","elapseTimeInSeconds":"9","eventTimedOut":"0","failedname":" ","iconindex":... |
2018/02/27 | 1,094 | 3,747 | <issue_start>username_0: I'm trying to run to the point of `OutOfMemoryException`. My method creates a file, parse if there's no error then delete the file immediately, clear garbage collection and generate a bigger file and repeat. However big files consume too much time and CPU. Is there any better way to do this? Th... |
2018/02/27 | 1,691 | 4,765 | <issue_start>username_0: I'm using Flink 1.4.1 and Beam 2.3.0, and would like to know is it possible to have metrics available in Flink WebUI (or anywhere at all), as in Dataflow WebUI ?
I've used counter like:
```
import org.apache.beam.sdk.metrics.Counter;
import org.apache.beam.sdk.metrics.Metrics;
...
Counter ele... |
2018/02/27 | 534 | 1,860 | <issue_start>username_0: When importing matplotlib by `import matplotlib.pyplot as plt` I'm getting the following error:
```none
Traceback (most recent call last): File "mode.py", line 1, in
import matplotlib.pyplot as plt File "C:\Users\yuhan\AppData\Roaming\Python\Python36\site-packages\matplotlib\pyplot.py", li... |
2018/02/27 | 671 | 3,027 | <issue_start>username_0: I have never partitioned a table, however from what I have read it has many advantage in terms of querying and archiving data.
Is it superior to creating indexes? Are there any disadvantages? Is the time spent on partitioning the only cost?<issue_comment>username_1: **Background:**
Latency ... |
2018/02/27 | 1,670 | 5,553 | <issue_start>username_0: I have two tables
1. PriceMst
2. ProductMst
When inserting data into `ProductMst`, the code inserts only one value, but in `PriceMst` there is a condition **if price > 300** it would be insert one kg, 750 gms, 500 gms, 250 gms respective calculate there price according to weight that is 1 kg,... |
2018/02/27 | 323 | 1,106 | <issue_start>username_0: I'm trying to write a program that draws shapes based on user input. I want it to print where each corner of the shape is based on using the `turtle.pos()` function, however I'm trying to get the printed output as so:
```
"The first corner is at: x, y, with a heading of: d."
```
Currently th... |
2018/02/27 | 747 | 2,468 | <issue_start>username_0: I currently have the following `data.csv` which has a comma delimiter:
```
name,day
Chicken Sandwich,Wednesday
Pesto Pasta,Thursday
Lettuce, Tomato & Onion Sandwich,Friday
Lettuce, Tomato & Onion Pita,Friday
Soup,Saturday
```
The parser script is:
```
import pandas as pd
df = pd.read_csv('... |
2018/02/27 | 1,048 | 3,787 | <issue_start>username_0: css is not working. It's weird because I see it in the head of my html when I view it with my browser inspector... but its not picking up the new css I add to it. I tried clearing my catch. this is my child theme style.css
```css
/*
Theme Name: Venedor Child
Template: venedor
Version: 1.0
... |
2018/02/27 | 1,348 | 4,431 | <issue_start>username_0: I'm trying to build a query which is pulling records from a table **form\_submission\_values** which stores all name/value pairs alongside one another in the following structure:
```
SubmissionValueId | SubmissionId | FieldName | FieldValue
```
So I need to do a lookup within the table for ... |
2018/02/27 | 625 | 2,295 | <issue_start>username_0: I have a Component called **task-board** where I have the following table:
```
| {{ task.taskName }} | {{ task.location }} | {{ task.description }} | {{ task.timeElapsed }} | {{ task.completed }} |
```
Also, I have a Component called **task-search** that has the code below:
```
Search:
You... |
2018/02/27 | 762 | 3,301 | <issue_start>username_0: I don't understand why is possible to write a function outside a class in Kotlin ? Is that a good practice ?
For example, it's possible in Kotlin to write a function outside my `MainActivity` class :
```
fun hello(){}
class MainActivity : AppCompatActivity() {
override fun onCreate(sav... |
2018/02/27 | 502 | 1,803 | <issue_start>username_0: Every time I open git bash this :
```
bash: export: `Files/PuTTY:/cmd:/mingw64/bin:/usr/bin:/c/Program': not a
valid identifier
bash: export: `Files/nodejs:/c/Users/Me/AppData/Local/Microsoft/WindowsApps:/c/Program'
: not a valid identifier
bash: export: `Files/Microsoft': not a valid identi... |
2018/02/27 | 450 | 1,489 | <issue_start>username_0: I want a list of table names and columns within that table (see below).
Is there a SQL query that would allow me to do this within a schema?

I know I can look at the GUI interface to look at the table names and columns but there are t... |
2018/02/27 | 771 | 1,521 | <issue_start>username_0: I have data
```
dat <- data.table(id=1:8, group=c(1,1,2,2,2,3,3,3), val=c(4,10,5,10,10,6,10,10))
> dat
id group val
1: 1 1 4
2: 2 1 10
3: 3 2 5
4: 4 2 10
5: 5 2 10
6: 6 3 6
7: 7 3 10
8: 8 3 10
```
and I would like to subtract from each t... |
2018/02/27 | 566 | 1,700 | <issue_start>username_0: I'm getting a value of digits which i'm trying to convert to two decimal places. But when i convert it it makes the result to 0.00 . The digits are this `0.24612035420731018` . When get its .2f value it shows 0.00. The code that i tried is this,
```
let digit = FindResturantSerivce.instance.... |
2018/02/27 | 1,112 | 4,071 | <issue_start>username_0: I am trying to call two functions and pass the output of the first function as a parameter into the second.
Function 1:
```
module.exports.getAllStatisticsByUserId = function(id, callback){
User.findById(id, (err, user) =>{
if(err)
throw err;
if(user)
callb... |
2018/02/27 | 521 | 1,729 | <issue_start>username_0: For some reason I can't run ddt.py. Could you explain what is the problem? In official documentation it looks like this.
```
@ddt
class TestPages(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Chrome()
self.driver.set_page_load_timeout(10)
self.drive... |
2018/02/27 | 586 | 1,978 | <issue_start>username_0: In Excel 2013, I need to sum all numbers in a column of actual costs plus estimates in a second column in rows where the actual costs are blank.
```
Estimate (A) Actual (B)
Row 1 106
Row 2 212 230
Row 3 ... |
2018/02/27 | 267 | 864 | <issue_start>username_0: I am creating a WordPress Site and would like to change the text color of a css class.
At the bottom of my page (Pflegepate.jaydonmay.de) you will see a contact form. beside of it is a contact box. Next to the icons, there is a text, which is white. The first line is black because I can use ht... |
2018/02/27 | 1,404 | 5,328 | <issue_start>username_0: Say I have a Python class as follows:
```
class TestClass():
value = 20
def __str__(self):
return str(self.value)
```
The `__str__` method will automatically be called any time I try to use an instance of `TestClass` as a string, like in `print`. Is there any equivalent for... |
2018/02/27 | 277 | 921 | <issue_start>username_0: Is there a way to assign the clipboard value to a variable, then append the variable to new text with a batch file?
Here is a copy of what I'm attempting to do. In my example, "world" represents the value that the clipboard contains.
```
@echo off
set myclip=world
(
echo hello %myclip%
)| ... |
2018/02/27 | 1,917 | 6,527 | <issue_start>username_0: I have a process which is something like:
* Build a word token pattern - naively, 2+ alphanumerics surrounded by word boundaries.
* Tokenize a document, then lemmatize these tokens with nltk.
* Add some "custom" stop words to sklearn's built-in English stop words. (Here, using just one company... |
2018/02/27 | 1,595 | 6,434 | <issue_start>username_0: As I understand -- and I'm here to be corrected if wrong -- good Scheme practice is to do anything requiring looping, repeating with recursion, and, furthermore, overflow won't be a problem because tail-recursion is built-in. Lisp, however, doesn't have protection from overflow, hence, all the ... |
2018/02/27 | 1,024 | 4,138 | <issue_start>username_0: Using the `beforeSubmit` function of `yii.activeForm.js`, how can I make it perform a normal form submit when validation passes?
I have tried the following:
```
$('.ajax-form').on('beforeSubmit', function (event) {
var form = $(this);
var url = form.attr('action');
var type = form... |
2018/02/27 | 671 | 2,598 | <issue_start>username_0: I am trying to remove weekend days from my jquery array but I get either Saturday or Sunday deleted, never both together.
Can you please check what I am doing wrong?
```
$(dates).each(function( index ) {
var dt = new Date(dates[index]);
console.log( index + ": " + dates[index], dt.getD... |
2018/02/27 | 521 | 1,728 | <issue_start>username_0: I've implemented select box using bootstrap-select in angular 5. I've used latest version of Bootstrap select to make it work angular 5. But it throws below error.
>
> bootstrap-select.js:1904 Uncaught TypeError: Cannot set property
> '\_menu' of undefined
>
>
>
```
Mustard
Ketchup
R... |
2018/02/27 | 1,226 | 4,985 | <issue_start>username_0: Sorry for the fundamental question but I am a LONGtime Access VBA developer who is getting my butt kicked by Word.
I am building a solution for someone who uses a Legal Case Management System with a specific numbering scheme (aaa-aaa-##-##-###). I need to search a document for hyphens and then... |
2018/02/27 | 1,918 | 6,968 | <issue_start>username_0: I am trying to get a list of Users from an API but I get the following error:
```
TypeError: Cannot read property 'toLowerCase' of undefined
at HttpXsrfInterceptor.intercept (http.js:2482)
at HttpInterceptorHandler.handle (http.js:1796)
at HttpInterceptingHandler.handle (http.js:2547)
at Merge... |
2018/02/27 | 1,107 | 4,424 | <issue_start>username_0: Let's say that my Bottom Sheet has lines of widgets like the following. If I want to show only the first two lines (i.e., the first two `LinearLayout`s) initially, but not the rest of the widgets below. I do not want those to be seen initially. How can I set the correct peek height? Hard-coding... |
2018/02/27 | 1,755 | 7,495 | <issue_start>username_0: For small app they are no problem.
But for apps with traffic you can hit limits easily.
Http protocol is req-res driven. Just because your backend is stuck with limit, you can't really wait to send respond back until rate limit allows you to resume making your api calls.
What do you do?
I ... |
2018/02/27 | 528 | 1,895 | <issue_start>username_0: I'm looking a solution for my problem and maybe someone could give me some ideas.
I have a `API Gateway` plugged to a `aws lambda` A.
I have to handle cases like this:
1. Lambda A should call lambda B and if there are any results, return to the API Gateway.
2. Lambda A should call lambda B and... |
2018/02/27 | 611 | 2,390 | <issue_start>username_0: I'm trying to update Table 1 from the data in Table 2, where the IDs match... Currently trying the below SQL script and its not working for me! Any help would be great.
```
UPDATE tbleVendorData
SET tbleVendorData.VendorActive = tbleTemporary.F7
FROM tbleTemporary
WHERE tbleTemporary.F1 ... |
2018/02/27 | 814 | 3,035 | <issue_start>username_0: I have two UIViewController in which the photos are displayed, the fact is that when I switch between them, then I add 50-70mb of RAM and so on ad infinitum.


'
```
var tags: [TagForRecipe] = [] /... |
2018/02/27 | 1,283 | 4,521 | <issue_start>username_0: I'm trying to crate a function in Fortran (95) that that will have as input a string (`test`) and a character (`class`). The function will compare each character of `test` with the character `class` and return a logical that is `.true.` if they are of the same class1 and `.false.` otherwise.
T... |
2018/02/27 | 2,323 | 7,810 | <issue_start>username_0: I have a stream of Foo objects.
```
class Foo {
private int variableCount;
public Foo(int vars) {
this.variableCount = vars;
}
public Integer getVariableCount() {
return variableCount;
}
}
```
I want a list of `Foo`'s that all have the lowest variableCoun... |
2018/02/27 | 2,730 | 9,578 | <issue_start>username_0: Task
1. Build a function constructor called Question to describe a question. A question should include:
a) question itself
b) the answers from which the player can choose the correct one (choose an adequate data structure here, array, object, etc.)
c) correct answer ( I would use a number for ... |
2018/02/27 | 2,383 | 8,057 | <issue_start>username_0: I have an Excel file that contains hundreds of rows and I want to delete all the rows that are in column "L" in which the word "SAGI" is said (it stands for one kind of paperwork in the company I work for), in that same cell there is usually a small description of what to do with that SAGI, so ... |
2018/02/27 | 1,226 | 4,689 | <issue_start>username_0: I have a little bit of confusion about the Stream Processor.
I've previously used the CEP and now I'm using the Stream Processor.
if I'm not mistaken, the Data Analytics Server, the CEP and the Machine Learner merged into the Stream Processor, is it true?
Because I found some inconsistencies,... |
2018/02/27 | 1,169 | 3,729 | <issue_start>username_0: I have a function which is called several times, with a parameter `n` which defines the `n*2`-sized 2d array:
```
void myfunc(int n){
static int n0=0,i;
static double **x=NULL;
if(n>n0){ //realloc if n grows
x=(double **)realloc(x,n*sizeof(double*)));
for(i=0;i
```
At the firs... |
2018/02/27 | 328 | 1,312 | <issue_start>username_0: I want to connect though a connection string to a SQL server.
```
library(RODBC)
server <- "servername"
database<- "db_name"
username <- "MyId"
password <- "<PASSWORD>"
connectionString <- paste0("Driver={SQL Server};server=",server,";database=",database,";trusted_connection=yes;")
channel <-... |
2018/02/27 | 1,208 | 4,702 | <issue_start>username_0: im trying to use CacheStorage's promises in Angular 5 like in the docs :
```
let test = caches.open('test');
test.then((result : Cache) => {
result.add('/test.png')
})
```
but i got :
```
ERROR Error: Uncaught (in promise): TypeError: the given value is not a Promise
```
I t... |
2018/02/27 | 1,500 | 5,539 | <issue_start>username_0: I am getting confused with parameter substitution. Basically the file to be parsed is in the following structure:
```
foo.txt:
system.switch_cpus.commit.op_class_0::total 10000000 # Class of committed instruction
system.switch_cpus.commit.bw_lim_events 10... |
2018/02/27 | 589 | 2,103 | <issue_start>username_0: I want to write a shell script. I list my jpg files inside nested subdirectories with the following command line:
```
find . -type f -name "*.jpg"
```
How can I save the output of this command inside a variable and write a for loop for that? (I want to do some processing steps for each jpg f... |
2018/02/27 | 697 | 2,429 | <issue_start>username_0: I've got a server in work which has sonarQube, Gitlab and jenkins running side by side with Maven also on the box. I have also a project on this box i wish to test with sonarqube (located on this same box in /home/{user}/live/{sitename}/htdocs). I created a job in sonarqube, the only options i ... |
2018/02/27 | 1,714 | 5,902 | <issue_start>username_0: I'm very new to programming, just learned it in university. I have a task where I have to solve this problem recursively in java (without using arrays, if, else, while, etc...)
So the task is to sort numbers from 13542 to 12345.
```
public static void main(String[] args) {
System.out.prin... |
2018/02/27 | 953 | 2,158 | <issue_start>username_0: I have a list
```
case_suite_relation_ids= [[1, 2, 3, 1, 2, 3, 1], [1, 1, 1, 2, 2, 2, 3]]
```
and want to generate a list of dictionaries in the following manner
```
[{'test_case_id': 1, 'test_suite_id': 1}, {'test_case_id': 2, 'test_suite_id': 1},{'test_case_id': 3, 'test_suite_id': 1}, {... |
2018/02/27 | 3,963 | 13,883 | <issue_start>username_0: I have created a program in C that reads in a word file and counts how many words are in that file, along with how many times each word occurs.
When I run it through Valgrind I either get too many bytes lost or a Segmentation Fault.
How can I remove a duplicate element from a dynamically all... |
2018/02/27 | 603 | 2,597 | <issue_start>username_0: I am curious to know the main role of Orderer in Hyperledger Fabric. Some tutorial says it is a validator and some says it is used for consensus.<issue_comment>username_1: >
> Ordering service provides a shared communication channel to clients and peers, offering a broadcast service for messag... |