date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/01 | 655 | 2,489 | <issue_start>username_0: I want to replace single object from `List` with multiple objects.
```
List list = new ArrayList<>(Arrays.asList("ROLL\_NO","FULL\_NAME","PERCENTAGE", "ADDRESS"));
```
I want to replace "FULL\_NAME" with "FIRST\_NAME" AND "LAST\_NAME". So my list elements will be like as
```
"ROLL_NO",
"FI... |
2018/03/01 | 430 | 1,648 | <issue_start>username_0: So I would like to hide and show a button on my map that zooms in on the current user's location.
Basically when the map is no longer centred on the user's location, the button appears and disappears when it has just been pressed.
The button animates away when pressed but doesn't animate in ... |
2018/03/01 | 535 | 1,727 | <issue_start>username_0: ```
let numberDict = [ 1: "one", 2: "two", 3: "three", 4: "four", 5: "five"]
print(numberDict[5] ?? "don't know")
```
What is the best way to convert numbers into the corresponding words?<issue_comment>username_1: If you want to go crazy, you can do it using an enum (but in a way, it goes bac... |
2018/03/01 | 1,406 | 5,177 | <issue_start>username_0: I'm creating an API using Express JS (Express 4) framework. I'm pretty new to NodeJS so I would like to know the best way to perform multiple async calls inside the same function.
For this example, I've got a function called Login in my Login Controller. Inside this function, let's say I gotta... |
2018/03/01 | 311 | 1,259 | <issue_start>username_0: I am trying to pull a repository using Jenkins, by default Jenkins create a long and unreadable workspace name. I am getting this error because of that :
```
Caused by: com.microsoft.tfs.core.exceptions.TECoreException: The
specified path, file name, or both are too long. The fully qualified ... |
2018/03/01 | 1,211 | 4,735 | <issue_start>username_0: I'm new to Ruby on rails, and in a month i will start a course on Ruby-on-Rails, but i would like to get some code going before i start the course since i want to learn as much as i can.
I made a project with:
```
rails new portfolio
```
Then i did:
```
rails generate controller portfolio ... |
2018/03/01 | 1,174 | 4,671 | <issue_start>username_0: I built a ListView and when i try to run the app it keep saying that it won't load. it needs to close. So i can't run it on the Android Studio virtual device.
```
import android.content.res.Resources;
public class MainActivity4 extends AppCompatActivity {
ListView myListView;
St... |
2018/03/01 | 379 | 1,434 | <issue_start>username_0: I'm writing a SolidWorks addin, where I can host WPF only within an Winforms Elementhost. Now I want to use a Flyout from Mahapps.Metro, which depens on being hosted in a MetroWindow. Is there any way I can use the Flyout from within a WPF Usercontrol? I'm using .NET 4.6.2, Mahapps.Metro 1.6 an... |
2018/03/01 | 576 | 1,936 | <issue_start>username_0: I am trying to put together a SQL query in python pandas. I have attempted different methods, but always getting the following error:
`Incorrect number of bindings supplied. The current statement uses 6, and there are 3 supplied.`
My code is as follows. What am I doing wrong?
```
conn = sqli... |
2018/03/01 | 679 | 2,241 | <issue_start>username_0: I find some function with no function body in Go. I know it means external function in Go. But where can I find the function boby?
```
type Creator func(*Beat, *common.Config) (Beater, error)
```
I also find a string in Go struct. What does it mean?
```
type BeatConfig struct {
// outp... |
2018/03/01 | 506 | 1,716 | <issue_start>username_0: How I can pass/get data from the html form in Google apps script?
I was trying many times but still can't get the right code. I hope someone can help me here with this problem.
**Code.gs**
```
function doGet(e) {
return HtmlService.createHtmlOutputFromFile('Index');
}
function getValuesF... |
2018/03/01 | 359 | 1,052 | <issue_start>username_0: How do I start an nREPL from the `clj` command?
I can't run my project using Lein or Boot because I have an unbalanced paren somewhere, and the reader complains `java.lang.RuntimeException: read-cond starting on line 13 requires an even number of forms.<issue_comment>username_1: Wrote [a gist]... |
2018/03/01 | 514 | 1,585 | <issue_start>username_0: I have a Matrix report with some columns that are grouped by Month and Year in the Column Group. Now, these columns are being toggled by the Month Column as the Visibility Property is set to hide but toggled by the Month Column. But when the report is rendered, the hidden columns come out as bl... |
2018/03/01 | 2,144 | 7,925 | <issue_start>username_0: I am working on a frontend application in React that connects to a middleware service written in Spring boot.
I am attempting to call an endpoint from the front end as follows:
```
return axios.post('http://localhost:8085/workshop/client/createClient', {username})
.then((response) => {
cons... |
2018/03/01 | 1,213 | 4,411 | <issue_start>username_0: How can I trigger the expansion event of each panel by clicking in any part of the header not just on the title?
```
Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem sed ipsum harum, atque excepturi quaerat saepe quia iste
ratione rem culpa aut praesentium. Quasi voluptatem,... |
2018/03/01 | 1,088 | 4,040 | <issue_start>username_0: We are using a Google Script to import a Range from other Spreadsheet to another.
This helped us in the past but now the data is growing and we need to reduce the data that we import. (timeout problems)
We need to import the rows with a specific date on a specific column.
In this case, as you ... |
2018/03/01 | 1,504 | 4,933 | <issue_start>username_0: I was doing some data cleaning on data stored in a tibble and ended up repeatedly confusing myself by converting some empty string observations into `NA` and then having the observations seemingly disappear when I called `summary(df)` to check my work. It appears that when working with a `tibbl... |
2018/03/01 | 465 | 1,352 | <issue_start>username_0: I try to count the event-code. What are the changes I need to do to achieve it?
Please help me with that.
My code:
```
$serverName = "IE3PDT1QJ67P4";
$connectionInfo = array( "Database"=>"TestEventsDB");
$conn = sqlsrv_connect( $serverName, $connectionInfo);
if( $conn ) {
echo "Connecti... |
2018/03/01 | 3,205 | 7,992 | <issue_start>username_0: Tried using react-native-video-processing by Shahen:
Below is the code:
```
compressVideo(source) {
const options = {
width: 800,
height: 800,
bitrateMultiplier: 3,
saveToCameraRoll: true,
saveWithCurrentDate: true,
removeAudio: true
... |
2018/03/01 | 973 | 3,061 | <issue_start>username_0: I have a table made with divs, using flexbox to obtain a nice table formatting of my divs.
Now I got a structure like this:
```
```
so now what I would like to achieve is to have the "tableHeader" always stay in the same position, so when the "tableBody" content is big (it could have 50row... |
2018/03/01 | 1,974 | 6,397 | <issue_start>username_0: Here are a couple of older question that discuss the Javascript prototypal inheritance & delegation, e.g.:
* [Benefits of prototypal inheritance over classical?](https://stackoverflow.com/questions/2800964/benefits-of-prototypal-inheritance-over-classical)
* [classical inheritance vs prototypa... |
2018/03/01 | 664 | 2,818 | <issue_start>username_0: I created a parent activity and Fragments are added to parent activity.
But i need to call a function (HTTP request) in parent activity and return the result in fragment activity. But i am able to access the function from fragment using
```
String stage = ((TabActivity)getActivity()).fetchSta... |
2018/03/01 | 1,296 | 3,794 | <issue_start>username_0: I have multiple text files. Each file is a list of animals and their counts for a house. Like this:
houseA.txt
```
cats 3
dogs 1
birds 4
```
houseB.txt
```
cats 5
dogs 3
birds 1
```
I have about 20 houses and each house has about 16000 species (so each file has about 16000 lines.... |
2018/03/01 | 1,417 | 5,348 | <issue_start>username_0: ***I wish to understand what do they mean here. Why would this program "hang"?***
From <https://bisqwit.iki.fi/story/howto/openmp/>
>
> OpenMP and `fork()` It is worth mentioning that using OpenMP in a
> program that calls `fork()` requires special consideration. This
> problem only affec... |
2018/03/01 | 622 | 2,285 | <issue_start>username_0: I am trying to open a protected zip file I know for a fact that the first 5 characters are Super and the password is eight characters long with no numbers or symbols I am using this code in python to help me but it is not working can anyone help?
code:
```
import zipfile
import itertools
impo... |
2018/03/01 | 431 | 1,612 | <issue_start>username_0: I created a background for a Dialog with Gimp, and it's a PNG with transparency and transparent background. If I display it on a ImageView it's fine and the background is transparent.
But if I display it as a background of the LinearLayout of my Dialog, then, a white background is displayed in... |
2018/03/01 | 376 | 1,318 | <issue_start>username_0: I am trying to run the code below:
```
shaliya@achala:~$ sudo apt-get install samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package samba is not available, but is referred to by another package.
This may mean that the package is missing,... |
2018/03/01 | 327 | 1,403 | <issue_start>username_0: I am trying to reduce redundant code by refactoring template and controller code into reusable components, which I then use via the `render(controller('AppBundle:Foo/Bar:baz'))` construct inside my other templates.
Of course I would like to test these components. In the examples regarding func... |
2018/03/01 | 846 | 3,218 | <issue_start>username_0: I need to understand the difference between both EAGAIN and EWOULDBLOCK as I have seen many source code are checking against EAGAIN only (may be both the codes represent same number, Correct me here.)
My part of knowledge:
For blocking socket if sender buffer is full and receiver is not rece... |
2018/03/01 | 1,084 | 3,904 | <issue_start>username_0: Whats the best way to refactor this code to clean it up:
1) Selects from the db adding a column for the percentage difference between two columns
2) Loops through the values of the columns
3) If the date is in the past
4) If the price is greater than 500 and the percentage difference is le... |
2018/03/01 | 234 | 961 | <issue_start>username_0: I have SPA application using asp.net core and angular 5 (typescript) and i'm looking for universal datagrid. I found <https://www.npmjs.com/package/angular2-datagrid> but it is not maintained now. There are some more paid datagrids but i'm looking for open source. How do you create datagrids in... |
2018/03/01 | 570 | 2,108 | <issue_start>username_0: I tried something out. Here is a simple example in SQL Fiddle: [Example](http://sqlfiddle.com/#!9/8cc0a9/1)
There is a column someNumbers (comma-seperated numbers) and I tried to get all the rows where this column contains a specific number. Problem is, the result only contains rows where some... |
2018/03/01 | 859 | 3,141 | <issue_start>username_0: I've this code and its taking a lot of time to execute in swift?
**Each iteration takes 1 second to execute, Why?**
*CPU Percentage while executing that loop is 97-98% and energy impact is High*
Here is the Code
```
var braces:Int = 1;
var i:Int = startIndex;
let jsFileChars =... |
2018/03/01 | 992 | 3,909 | <issue_start>username_0: I am using cmake **2.8.12**.
I am using multiple targets with the same definitions by calling **add\_definitions()**.
I want to find out how to remove those definitions for **single** target and replace them by some *other definitions* or by *default definitions* like I have not called add\_d... |
2018/03/01 | 812 | 2,931 | <issue_start>username_0: I am trying to connect to an API for getting some information in json format. I need to request the API through json encoded authorization details. Request method is Post. But I am getting error.
I need to get the response in json object. I am using apache HttpClient and apache HttpCore and for... |
2018/03/01 | 2,353 | 8,723 | <issue_start>username_0: I am using a `recyclerview` were there is a grouping of items according to their date added (Eg. Alphabets starting with A will be under a heading Tab A.. as in the contact list ). The problem arises when i scroll down to bottom and when i come back to top the heading tab is not grouping proper... |
2018/03/01 | 283 | 945 | <issue_start>username_0: I added a button for the reloadCell in a tableView and i would like, when the button is pressed, to remove the element of an array on the specific cell but i'm getting this error
>
> Contextual type 'Int' cannot be used with array literal
>
>
>
```
@IBAction func reloadCell(_ sender: UIB... |
2018/03/01 | 286 | 911 | <issue_start>username_0: In my program i am giving the below code to set the chrome driver path:
```
System.setProperty("webdriver.chrome.driver", "\\usr\\lib\\chromedriver.exe");
```
After running the program it throwing the error
>
> The driver executable does not exist: /home/ezetap0023/eclipse-workspace/EzeTa... |
2018/03/01 | 372 | 1,052 | <issue_start>username_0: I have a 3 dimensional numpy array similar to this:
```
a = np.array([[[1, 2],
[3, 4]],
[[5, 6],
[7, 8]],
[[9, 10],
[11, 12]]])
```
What I'd like to do is intersperse each 2D array contained inside the outer array to pr... |
2018/03/01 | 952 | 3,352 | <issue_start>username_0: I was following the tutorial for creating an advanced Outlook add-in [here (Git the Gist)](https://learn.microsoft.com/en-us/outlook/add-ins/addin-tutorial)
The above is a **node.js**-app which uses **Yeoman** and **Microsoft Office Add-in Project Generator**. To simply start the add-in, you j... |
2018/03/01 | 644 | 1,814 | <issue_start>username_0: [](https://i.stack.imgur.com/K2yED.png)
I have dealt with this problem for some days now and it's making me crazy, I want the text inside the circle to move in the same position inside the cirkle div when I make the screen sma... |
2018/03/01 | 1,060 | 3,485 | <issue_start>username_0: I'm experimenting with Deployer to deploy Laravel application into shared hosting (using laravel recipe) from my local `~/Code/project_foo`.
The point is that when I'm connected to my shared hosting server via `ssh`, then default `php -v` version is `5.6.33`. I confirmed that I can change php ... |
2018/03/01 | 234 | 879 | <issue_start>username_0: I want to revert a commit that was made by someone else. But I want the revert to be undone when I pull from remote next time. Meaning I don't even want it to be in the history when I pull and push next time. How can I do this?<issue_comment>username_1: On the latest version of the repo, use `g... |
2018/03/01 | 532 | 2,158 | <issue_start>username_0: We have an Addin that can run on Word and Excel, but I want to limit it only to specific platforms (Word 2016 or greater, Excel 2016 or greater). How can I do it using Manifest file?
Currently I am trying to limit like that:
```
```
But when I upload this manifest to Seller Dashboard, i g... |
2018/03/01 | 514 | 2,160 | <issue_start>username_0: How to programatically find the language the app is using. For example the device Locale is set to es\_MX but my app supports only en\_US and hence the app displays text only in English.
How to programatically find that app is using English and not Spanish in this case?
All the below code ret... |
2018/03/01 | 704 | 2,836 | <issue_start>username_0: I'm using ajax to make a request to a webservice.
```
$(document).ready(function(e) {
var token = "123";
$.ajax({
type: "POST", //REQUEST TYPE
dataType: "json", //RESPONSE TYPE
url: "http://ws/mehtod"+token,
success: function(data) {
con... |
2018/03/01 | 854 | 2,390 | <issue_start>username_0: I will like to be able to make a calculation in php using a number of experience points (XP) as base to return a level value. I want it to be increasingly more difficult for each level to rise. Like this:
```
0-49 XP = Level 1
50-104 XP = Level 2
105-164 XP = Level 3
165-229 XP = Level 4 etc.
... |
2018/03/01 | 334 | 1,341 | <issue_start>username_0: I would like to use iframe html5 tag in my web project (ASP.NET MVC5). But I am wonder the browsers not allowed display content. So is using iframe dead?
My goal is wrap the payment gate window to iframe tag and place to my web page.<issue_comment>username_1: Iframe is not dead. It is still wi... |
2018/03/01 | 933 | 2,996 | <issue_start>username_0: Today I study deleting the special object from the java.util.HashMap. I test the wrong syntax. But I encountered a fantastic problem. The message on the console is not in the order. The exception message is printed by the wrong order. It seems the the program executes with multithreading. The f... |
2018/03/01 | 2,490 | 9,058 | <issue_start>username_0: I'm stuck in a quite weird problem and ask for your help.
The overall setting is the following: I have a bunch of data providers that can occur or disappear at runtime. These providers provide - big surprise - data, modeled as `io.reactivex.Observable`s. (To be precise: as `BehaviorSubject`s, ... |
2018/03/01 | 920 | 3,071 | <issue_start>username_0: ```
def query_RR(postings, qtext):
words = tokenize(qtext)
allpostings = [postings[w] for w in words]
for a in allpostings:
print a.keys()
```
And this was the result of the query
```
[0, 2, 3, 4, 6]
[1, 4, 5]
[0, 2, 4]
[4, 5]
```
The query is taking a user input term (... |
2018/03/01 | 283 | 1,043 | <issue_start>username_0: I am using following xml in an Fetch based report in SSRS for Dynamics 365. I've allowed `@transaction` parameter to null but rest of the both parameters must have values. So, I put an or condition so that if `@transaction` is null or 0 then on the base of 1 and 2 grab the orders. I've total 10... |
2018/03/01 | 820 | 2,721 | <issue_start>username_0: I have a list of letters, each one of those letters is inside a li tag :
```
* A
* B
* C
* D
```
The question is how to make those letters (A,B,C,D) hidden without hide the li tag itself, because it already have a style and I don't want to lose it..
and how to make them visible using javaScr... |
2018/03/01 | 580 | 1,699 | <issue_start>username_0: I'm currently saving an excel file as `"Fin_report.xlsx"`, but I would like to incorporate the dates at which it was saved, too. It should look something like: `"Fin_report-yyyy-mm.xlsx"`
where `yyyy-mm` is the date of last month. For example, if today is 2018-03-01, then today's file should b... |
2018/03/01 | 465 | 1,484 | <issue_start>username_0: I would like to know how can I remove the First word in the string using JavaScript?
For example, the string is "mod1"
I want to remove `mod`..I need to display `1`
```
var $checked = $('.dd-list').find('.ModuleUserViews:checked');
var modulesIDS = [];
$checke... |
2018/03/01 | 492 | 1,508 | <issue_start>username_0: I have a simple text which i want to filter it and then select second part of each line then save them into separate variable, i am new in shell scripting.
i am using GitBash on windows
thanks
**text.txt**
```
mytext `one or a`
mytext `two or b or bb`
mytext `three or c`
```
**script**
lis... |
2018/03/01 | 216 | 724 | <issue_start>username_0: I am working in a multi language website I have to set all table column charset `utf8_general_ci` in a database.
How can I change that. Is it a short method?<issue_comment>username_1: Create a backup then execute following
For Database
```
ALTER DATABASE dbname CHARACTER SET utf8 COLLATE utf... |
2018/03/01 | 292 | 1,032 | <issue_start>username_0: I am doing Selenium automatization app and I don't know how to check for checkbox input status. Maybe someone had this issue also?
This is working example in js+jquery
```
$("input:checkbox").click(function() {
console.log($(this).is(":checked"));
if ($(this).is(":checked")) {
... |
2018/03/01 | 1,454 | 4,557 | <issue_start>username_0: reproduction
============
Latest Docker Edge (18.03.0-ce-rc1-win54 (16164)) installed on Win10.
Switched to "Linux Container" before updated to latest Docker CE Edge version (but latest "Docker for Windows" UI don't show the switch option anymore?!).
No problem to run `docker run hello-world... |
2018/03/01 | 1,417 | 4,725 | <issue_start>username_0: JSFiddle: <https://jsfiddle.net/uLap7yeq/19/>
**Problem**
Consider two elements, canvas and div, which are on the same tree depth and have the same parent. They are both placed on the same position using CSS however div has the higher z-index. How can you capture events from the div and pass ... |
2018/03/01 | 456 | 1,733 | <issue_start>username_0: Helper,
I can fetch value of fname, lname and so on.., But I'm struggling to fetch value of address1, city.., where my array is,
```
Array
(
[id] => 172
[fname] => Someone
[lname] => Sombody
[gender] => Male
[phno] => 0123456789
[addresses] => Array
(
... |
2018/03/01 | 1,641 | 6,896 | <issue_start>username_0: Rather than hard-coding the expected form field names for a DTO, **is it possible for them to be dynamic / determined at run time**?
Background: I'm implementing a webhook which will be called with form-url-encoded data (the shape of the data the webhook will be invoked with is out of my contr... |
2018/03/01 | 1,138 | 3,385 | <issue_start>username_0: I have created a 2d Numpy string array like so:
```
a = np.full((2, 3), '#', dtype=np.unicode)
print(a)
```
The output is:
```
array([['#', '#', '#'], ['#', '#', '#']], dtype=`'
```
I would like to pad it with '?' on all sides with a width of 1. I'm expecting output as:
```
array([
['?',... |
2018/03/01 | 3,269 | 8,390 | <issue_start>username_0: I'm trying to base64 encode a string in python and then decode in C#,
and as far as I can see right now, the problem is that base64.b64encoding from python is encoding in ASCII. And when i use Convert.FromBase64String it uses unicode..
Python :
```
msg = cipher.encrypt("hello")
msgb64 = base6... |
2018/03/01 | 3,487 | 9,356 | <issue_start>username_0: I have a string containing datatypes and addresses of variables. These values are separated by "///" and they are alternating (type /// address /// type /// address ...). The amount of these tuples is not fixed and can vary from execution to execution.
Now my problem is how to process the str... |
2018/03/01 | 670 | 2,692 | <issue_start>username_0: I am using Firebase Phone Auth for my app in both iOS and Android. When I receive OTP message I noticed there is a difference in the received messages on both iOS and Android.
The iOS OTP Message Reads `xxxxxx is your verification code for myAppName.firebaseapp.com.` (authorised domain name).... |
2018/03/01 | 855 | 2,866 | <issue_start>username_0: I'm trying to make a, "fake" loading bar as just a small task. I'm new to coding and this seems to work, but it seems a lot of code. I assume could be done in like 2 lines by someone with more skill than me. I would love to see how this could be refactored into a more efficient way. Any help wo... |
2018/03/01 | 1,152 | 3,917 | <issue_start>username_0: How to write the Dockerfile that can pass yes to prompting license agreement?
1. under Dockerfile directory, `docker build -t "{user}/{tags}" .` then build failed.
2. `docker logs {container id}`, show message as below:
```
Preparing to unpack .../ttf-mscorefonts-installer_3.4+nmu1ubuntu2_all... |
2018/03/01 | 631 | 2,051 | <issue_start>username_0: I am working on a slider, when mouse hovers over logo the details will show, and when mouse hovers out from its parent div it should hide.
```js
jQuery('.st_inner img').mouseover(function() {
jQuery(this).parent().siblings('#spon_detail').fadeIn();
});
jQuery('.sponsor_thumb').mouseout(fu... |
2018/03/01 | 531 | 1,829 | <issue_start>username_0: I am trying to get two dates as variants so I can swap them in and out of an SQL query that runs every month (with different periods). I am trying to get the 24th of last month in `"yyyy-mm-dd"` format and the 23rd of the current month (when the procedure runs) in `"yyyy-mm-dd"` format. I have ... |
2018/03/01 | 1,291 | 5,303 | <issue_start>username_0: I have an application with recyclerview and firebase.
In my Activity I can choose to display images that are in my firebase database and storage. I can choose to display all images, or I can choose to display images from a specific DATE.
If I want to display all images i use this code:
```
m... |
2018/03/01 | 823 | 3,587 | <issue_start>username_0: something like :
```php
php
$phpVar = "<script function jsFunc(){ return 'Hello world';} ";
?>
```
is that even possible? if no, is there a way to do same thing?
If Ajax is the only solution, how do I retrieve a value of an input and store it as a php variable?
I tried something like th... |
2018/03/01 | 374 | 1,333 | <issue_start>username_0: I need to make a screenshot of ARSCNView, the class is defined as below:
```
public class SceneLocationView: ARSCNView, ARSCNViewDelegate { }
```
I am following the below methods to have the screenshot done:
[How do I take a full screen Screenshot in Swift?](https://stackoverflow.com/questio... |
2018/03/01 | 680 | 2,176 | <issue_start>username_0: Looking to create an enum for some regex to store in my application to allow for code reuse.
Eg:
```
export enum Regex {
ONE_DANK_REGEX = /^[dank]+$/g,
FIVE_OUT_OF_SEVEN = /^[meme]{5,7}$/g
}
```
But:
1. By not using string literals, I get the TS90010 error: Type RegExpis not assig... |
2018/03/01 | 1,301 | 4,705 | <issue_start>username_0: My web app opens a new tab under some conditions. But when I try to get all tabs `(await browser.pages())` I get only one back, the initial page.
How can I get the new page's object in my code?
This happens when you don't create new tab with puppeteer with `await browser.newPage()`, but when ... |
2018/03/01 | 1,409 | 5,158 | <issue_start>username_0: I did this example but it does not run with the try and except handling errors in Python.
```
def my_fun(numCats):
print('How many cats do you have?')
numCats = input()
try:
if int(numCats) >=4:
print('That is a lot of cats')
else:
print('Th... |
2018/03/01 | 2,784 | 9,521 | <issue_start>username_0: I am experiencing a problem where the way I am calling a PHP function is causing incorrect output from a a class that otherwise acts properly.
Specifically, I am using the [full-name-parser](https://github.com/ADCI/full-name-parser) package to split full names in to "first", "middle" and "last... |
2018/03/01 | 496 | 1,829 | <issue_start>username_0: I use VSCode with the VSCodeVim extension. When in Insert Mode, I can press "CMD-S" to save. When I do, I would also like to exit Insert Mode automatically instead of pressing "ESC" as well.
Is this possible?<issue_comment>username_1: VSCodeVim extension supports insert mode key bindings. [Her... |
2018/03/01 | 610 | 2,077 | <issue_start>username_0: I have searched many questions and answers, AWS and Django(2.0) docs but still unable to serve static files. I am new to AWS and have made just basic web app.
My settings.py have:
```
INSTALLED_APPS = [
..
'django.contrib.staticfiles',
..
]
STATIC_ROOT = os.path.join(BASE_DIR,... |
2018/03/01 | 440 | 1,557 | <issue_start>username_0: I get a webElement with:
```
WebElement myElement = browser.findElement(By.cssSelector(".nd_list"));
```
Html of element is something like:
```
etc
2
3
```
The web element have more html-body, is just for make aa view...The idea is that I want something dynamic. I want to get all ele... |
2018/03/01 | 771 | 2,465 | <issue_start>username_0: I have table T1
```
TICKETID
1
2
```
I have table T2
```
ID TICKETID STATUS
1 1 NEW
2 1 OPEN
3 1 CLOSED
4 2 NEW
5 2 OPEN
6 2 RETURNED
```
I want to select from T1 and do the JOIN with T2 and if status of t... |
2018/03/01 | 545 | 1,829 | <issue_start>username_0: I am using vuetify.js.
I wanted to application title to link to top menu.
But in /route shop and /discount the HogeHoge button changed toggled state.
Is there any way to collect this?
```
HogeHoge
shop
discount
```<issue_comment>username_1: You can add **exact** as prop, as:
```
shop
di... |
2018/03/01 | 998 | 3,427 | <issue_start>username_0: How to validate user if input end date is more than 3 days from the input start date?
Given:
PHP Code
```
if(isset($_POST['btnRequest']))
{
$leaveFrom = $_POST['leaveFrom'];
$leaveTo = $_POST['leaveTo'];
}
$sql_insert = "INSERT INTO leaves (leaveFrom, leaveTo) VALUES (?, ?)";
HTML Code
```... |
2018/03/01 | 595 | 1,767 | <issue_start>username_0: I have the following problem:
If n1 & n2 are natural numbers while n1 < 10 and n2 <10000.
find the summation of all digits in z where z = n1n2.
ex. `n1 = 3, n2 = 10, z= 3^10 = 59049` if you sum the digits `5+9+0+4+9= 27`. result =27
ex. `n1 = 2, n2 = 12, z= 2^12 = 4096` if you sum the digi... |
2018/03/01 | 1,676 | 5,945 | <issue_start>username_0: I am developing a script that creates abbrevations for a list of names that are too long for me to use. I need to split each name into parts divided by dots and then take each capital letter that is at a beginning of a word. Just like this:
**InternetGatewayDevice.DeviceInfo.Description** -> ... |
2018/03/01 | 1,718 | 6,269 | <issue_start>username_0: I have not used VBA so quite new - but all searches have not given me the answer
its a simple question really. I have a group of buttons in an Excel Form.
The code is very similar when each one is pressed, and for each pressed button, I would like the colour of the button to change. So in real... |
2018/03/01 | 393 | 1,284 | <issue_start>username_0: I want to override Wordpress's Twenty-Seventeen header image by adding my own background-image via CSS. However, it just displays blank white... Here's the body's html:
```
```
and here's my CSS to disable wordpress's header image:
```
.page-soins .wp-custom-header {
display: none;
}
... |
2018/03/01 | 209 | 798 | <issue_start>username_0: What happens when I enter `.wq!` in vim?
Is there a way to prohibit that behavior?<issue_comment>username_1: use vim's help to understand each of those
`.` - repeat last change - `:h .`
`w` - move cursor to next word - `:h w`
`q!` - `q` would start recording a macro but since `!` isn't a val... |
2018/03/01 | 1,119 | 3,783 | <issue_start>username_0: I have done some searching, and some coding, some more searching, and then some more coding. I just can't get this to work on my own yet. I would like to get data from an array I have defined:
```
var allPublishers = [[String: String]]()
```
I will be filling up the array in chunks from an e... |
2018/03/01 | 1,960 | 6,274 | <issue_start>username_0: I am struggling with reading a text string in. Am using gfortran 4.9.2.
Below I have written a little subroutine in which I would like to submit the write format as argument.
Ideally I'd like to be able to call it with
```
call printarray(mat1, "F8.3")
```
to print out a matrix mat1 in tha... |
2018/03/01 | 536 | 1,928 | <issue_start>username_0: Summernote give options to custom toolbar like
```
$('#summernote').summernote({
toolbar: [
// [groupName, [list of button]]
['style', ['bold', 'italic', 'underline', 'clear']],
['font', ['strikethrough', 'superscript', 'subscript']],
['fontsize', ['fontsize']],
['color',... |
2018/03/01 | 798 | 2,960 | <issue_start>username_0: I found diverses on the Internet but nothing helped me further. I'm a newcomer and I m gonna help you.
I'll get the message:
>
> Cannot subscript a value of type '[NSObject : Any]' with an index of type 'String'
>
>
>
```
private func imagePickerController(picker: UIImagePickerController,... |
2018/03/01 | 4,252 | 13,582 | <issue_start>username_0: I am trying to create a simple webpage using HTML/CSS/JS that has some dropdown menu when hovering on the nav\_menu. When I use absolute position in div for dropdown menu, it is not popping up when hovering(It drops down when relative position is used but I want it to be absoute). I think the p... |
2018/03/01 | 988 | 3,794 | <issue_start>username_0: I have got some troubles with a MongoDB request that I would like to execute. I am using **MongoDB 3.2** with **Mongoose in a node.js context**. Here is the document:
```
{
_id: ObjectId('12345'),
name: "The name",
components: [
{
name: "Component 1",
description: "The de... |
2018/03/01 | 573 | 2,464 | <issue_start>username_0: I have an entity Contact which has duplicate contact object.
Eg :
```
|---------------------|------------------|---------------|
| Name | Index Value | Number |
|---------------------|------------------|---------------|
| <NAME> | 4 | 12345 ... |
2018/03/01 | 483 | 2,051 | <issue_start>username_0: I have been working with Dynamics 365 v9.0 and I have been facing this issue when I am opening a URL on Dynamics crm 365 web using `Xrm.Navigation.openUrl`, the URL gets opened in new window, But in "UI Interface", it is opening in new tab.
Does anybody help me for this issue?<issue_comment>us... |
2018/03/01 | 387 | 1,403 | <issue_start>username_0: My custom validation is working, I've tested it, but the error message is not showing.
My annotation:
```
[Required(ErrorMessage = "O campo DATA DE NASCIMENTO é obrigatório")]
[DataValida( ErrorMessage = "O campo DATA DE NASCIMENTO é inválido")]
public DateTime DataNascimento { ge... |
2018/03/01 | 597 | 2,549 | <issue_start>username_0: As far as I know, trap is something that happens when special events occur.
In case of a system call, program executes trap instruction and jumps to kernel mode. Then, trap handler jumps to desired handler (e.g. fork, exec, open).
When the execution of fork, exec, open, etc. is finished, the... |
2018/03/01 | 487 | 1,480 | <issue_start>username_0: This line of code:
`$date = strftime("%B", strtotime(Date("F"))) . " " . Date("y");` is supposed to return: `"March 18"`, according to the below locale config
```
cat /etc/locale.conf
LANG="en_US.UTF-8"
```
What I have in my php file is: `setlocale(LC_TIME, 'pt_PT');`, in order to return : ... |
2018/03/01 | 794 | 2,919 | <issue_start>username_0: I am new to webpack, so sorry if I am missing something super evident...
I have the following structure:
```
adex_js
---- app.jsx (entry point)
---- TestComponent.jsx
```
In app.jsx I have:
```
import TestComponent from './TestComponent'
```
I get:
```
ERROR in ./js/adex_js/app.js... |