date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/20 | 760 | 3,308 | <issue_start>username_0: We have a few IBM Notes databases here, at least one hundred I think, and if we have to identify a user we are using the given Name at the moment. We are also connecting this with a database of all the employees here, using it to do time-management and administrative stuff.
Therefore we need t... |
2018/03/20 | 710 | 2,574 | <issue_start>username_0: I tried to integrate an existing table to my extension. The problem is that the content of the table isn't taken over. I created a new model with the name of the existing table and named the properties according to the existing column names. I also implemented the corresponding getters and sett... |
2018/03/20 | 1,169 | 3,438 | <issue_start>username_0: I have a txt file with this lines:
```
2017-06-15 Take the car for inspection to change the wheels.mkd
2018-03-17 Crear un entorno virtual con Docker y xfce.mkd
2018-02-25 Envíar vídeo de explicación de configuración email de tunegocioenlanube a María.mkd
2018-03-08 crear curso tu formula emoc... |
2018/03/20 | 489 | 1,533 | <issue_start>username_0: Why can't I go to the dynamic url like **"*<http://127.0.0.1:8000/movie/xyz>*"** with my code? `xyz` is movie name. Demo is my model's name.
This is my view.py:
```
from django.shortcuts import render
from .models import Demo
def home(request):
movie_list = Demo.objects.all()
retur... |
2018/03/20 | 235 | 789 | <issue_start>username_0: On renaming and moving a file using java code,the contents of the file is removed.How to rename and move a file using java code without erasing the content<issue_comment>username_1: You miss terminate character in `url(r'^movie', home)`
Try this:
```
urlpatterns = [
url(r'^admin/', includ... |
2018/03/20 | 245 | 805 | <issue_start>username_0: Please, help to find appropriate query.
**Task**: table contains sms. Select latest sms from each conversation
**Table example**:
[](https://i.stack.imgur.com/fH5qp.png)
**Query result**
[;
System.out.println(tokens.length);
```
However it should be 4, what could be the reason behind this?<issue_comment>username_1: Use *subquery* ... |
2018/03/20 | 447 | 1,488 | <issue_start>username_0: In JavaScript, I have an array `anArray` that could have several states like the following:
* the array might be empty `[]`
* the array might be containing exactly one value `[2]`
* the array might be containing multiple value but not in ordered index `[2, empty, 5, empty, empty, 10]` (obtaine... |
2018/03/20 | 685 | 2,260 | <issue_start>username_0: how can I remove emoji in text like this:
```
'ca va toi ;-) ?'
```
I used many solution about removing emoji but nothing work.
I want output like this:
```
ca va toi ?
```
I don't want to remove punctuation but only those thats form emojis.
Thanks<issue_comment>username_1: The following... |
2018/03/20 | 593 | 1,890 | <issue_start>username_0: I am trying to match col C and col B from 2 different worksheets (wsMaster & wsSample) and retrieve col F from wsSample to put it inside col D in wsMaster. My code below run but there is no results. Anything wrong with my codes?
```
j = 2
Do While wsMaster.Cells(j, 3).Value <> ""
Set r... |
2018/03/20 | 611 | 2,074 | <issue_start>username_0: I know that the j2ee spec doesn't allow for directly handing password expiry and change. See [IBM redbook "WebSphere Application Server on z/OS and Security Integration" at page 57](http://www.redbooks.ibm.com/redpapers/pdfs/redp4161.pdf) where this is clearly stated.
Has anyone managed to cre... |
2018/03/20 | 496 | 1,940 | <issue_start>username_0: Now I write sample routes without grouping for localization my Laravel project :
```
Route::get('/{lang?}', function($lang=null){
App::setlocale($lang);
return view('welcome');
});
```
How I can create group of routes correctly for more one language with prefix or with argument inste... |
2018/03/20 | 489 | 1,804 | <issue_start>username_0: I'm trying to make multiple functions where it shows a certain point if..
multiple conditions in excel showing points
```
if A1 is bigger than 500 shows 0
if A1 is smaller than 500 but greater than 200 then shows 0.3
if A1 is smaller than 200 but greater than 100 then shows 0.6
if A1 is small... |
2018/03/20 | 1,024 | 3,189 | <issue_start>username_0: I need to filter/search all links (png,jpg,mp3) from an XXML file but I got stuck there. I did for example to get all mp3 but I did it knowing that was there, but for example if I put other file where the path is different, then it won't detect it.
```
foreach($xml->BODY->GENERAL->SOUNDS->... |
2018/03/20 | 1,139 | 3,681 | <issue_start>username_0: I am trying to test below method and i get funny dates.
```
public Pool AddPool(PoolDto poolDto, int createdByWho)
{
var pool = _mapper.Map(poolDto);
\_mycontext.Pools.Add(pool);
\_mycontext.Save();
}
```
this is my test
```
public void test_the_add_pool_method()
{
var ... |
2018/03/20 | 315 | 1,129 | <issue_start>username_0: Suppose, I have a table like below -
```
Id | Key | Value
----------------
01 | one | 1_val
02 | two | 2_val
```
I want the the two columns - Key and Value - as `HashMap`
What is the most suitable way to do that using Spring JDBC Template?<issue_comment>username_1: You could have a method ... |
2018/03/20 | 682 | 1,703 | <issue_start>username_0: I have a dataframe looking like this
```
name value1 value2 value3
X 1 . 2 . 6
Y 2 . 5 . 7
```
Is there a way to make this into a single row dataframe using dplyr?
```
x_value1 x_value2 x_value3 y_value1 y_value2 y_value3
```
I tried using spread but it complains about... |
2018/03/20 | 1,171 | 3,075 | <issue_start>username_0: I am developing an iOS app where I want to get the size of user's real face so that I can suggest him/her suitable (matched) sized glasses.
I have detected user's face using **OpenCV** and got various dimensions of *eyes, nose, face,* etc.
But I want the real size from that dimensions (i.e i... |
2018/03/20 | 1,186 | 4,169 | <issue_start>username_0: **Question**
How to use Oracle DB sequences without losing the next sequence number in case of roll-back?
**Facts collected**
1 - In Oracle, we can create a sequence and use two main calls (`NEXTVAL`) to get the next sequence value and (`CURRVAL`) to get the current sequence value.
2 - When... |
2018/03/20 | 1,494 | 4,623 | <issue_start>username_0: I know add function to prototype doesn't cost more memory usage, prototype are share to all instances. So ok for memory but, what about global time to create instance ? Load functions's index at each new Object cost more time if the functions's index is bigger, no?
**Add lot of functions in Ob... |
2018/03/20 | 1,383 | 4,469 | <issue_start>username_0: For subtraction of pointers `i` and `j` to elements of the same array object [the note in [expr.add#5]](http://eel.is/c++draft/expr.add#5.note-1) reads:
>
> [ *Note:* If the value *i−j* is not in the range of representable values of type `std::ptrdiff_t`, the behavior is undefined. — *end ... |
2018/03/20 | 1,417 | 5,362 | <issue_start>username_0: I'm building a project using [angular 5.x](https://angular.io/) and [aws-amplify](https://github.com/aws/aws-amplify). I successfully managed to sign-up, confirm and sign-in my users via [aws-cognito](https://eu-central-1.console.aws.amazon.com/cognito/) and now, I would like to retrieve user's... |
2018/03/20 | 2,391 | 7,564 | <issue_start>username_0: For school tutorial I need to make a component that receives integer values in the interval 0 to 1000. The output return `S`=`V`\*`C`, where `C` depends on:
* `C`=1 when `V` is in range [0,10]
* `C`=0.75 when `V` is in range [11,100]
* `C`=0.3125 when `V` is in range [101,1000]
I tried the co... |
2018/03/20 | 403 | 1,511 | <issue_start>username_0: Here is a class
```
export class ChatDetailPage {
constructor(){
}
funcA(){
var options = {
onSubmit: function (text) {
//i want to be able to access funcB from here
this.funcB(text)
},
this.nativeKeyboard.showMessenger(options)
}
funcB(text){
aler... |
2018/03/20 | 381 | 1,300 | <issue_start>username_0: I have an angular 1 app. Every time I run
```
npm run build
```
I also want to start a gradle task. Can I automatize that somehow?<issue_comment>username_1: Of course you can, the command `npm run build` run the script defined in you `package.json` file.
It looks like this :
```
"scripts"... |
2018/03/20 | 413 | 1,404 | <issue_start>username_0: Hi I am using findstr command to filter a file based on string and redirecting that output to seperate file.
```
findstr /C:"C=EODRevaluationProcess Temp table:TMP_EOD_REVAL_DATA" "C:\Users\Desktop\abc.txt" > C:\Users\Desktop\xyz.txt
pause
findstr /C:"sendSPPJMSMessage> "C:\Users\Desktop\xyz.... |
2018/03/20 | 568 | 1,716 | <issue_start>username_0: I have table that I populate via ajax call
Here is table code
```
| # | Ф.И.О | Дата рождения | Телефон | График | Адрес | Паспортные данные | <NAME> |
| --- | --- | --- | --- | --- | --- | --- | --- |
```
And here is code of js script to populate it
```
function AllPeople() {
let getPeop... |
2018/03/20 | 1,258 | 4,389 | <issue_start>username_0: I was converting some old Python code to use [`pathlib`](https://docs.python.org/3/library/pathlib.html) instead of `os.path` for most path-related operations, but I ended up with the following problem: I needed to add another extension to a path that already had an extension (not replace it). ... |
2018/03/20 | 394 | 1,559 | <issue_start>username_0: Can anyone tell, what is equivalent to handler in flutter?. i want to implement a splash screen which will last for 5 seconds and after another screen will be shown.<issue_comment>username_1: I don't think there is something similar to a `Handler` class, but you can just use `Future.delayed` an... |
2018/03/20 | 4,178 | 12,889 | <issue_start>username_0: The below file is basically auto-generated from a script I got from ROS website, except for it that I modified some opencv related packages so that they can fit into my ROS project. Use Ctrl-F + "opencv" and you can find those names in variable "stlibs".
The error happens when I was linking op... |
2018/03/20 | 307 | 1,381 | <issue_start>username_0: How I can serialize/flatten the following C++ structure into byte array or anything else without using any external library.
```
struct node
{
string splitOn;
string label; ... |
2018/03/20 | 469 | 1,299 | <issue_start>username_0: This is my data - how can I find itemId in the array.
```
let itemId=['001', '002', '003']
const data = [
{ id: 1, itemId: '001' },
{ id: 2, itemId: '002' },
{ id: 3, itemId: '003' },
];
```
This is my function in lodash but it does not work.
```
_.find(data, ['itemId',{$in: itemId... |
2018/03/20 | 273 | 996 | <issue_start>username_0: I'm trying to submit a form which consists of text fields and tiny mce editor. The tiny mce editor contains *raw html elements* like this
```
[View Profile](http://testserver/my-development-app/web/users/profile/4567/3323)
```
After submitting the form via **POST** method using *cakePHP*, t... |
2018/03/20 | 443 | 1,790 | <issue_start>username_0: I am now attaching the console output of my python scripts and send the mail in jenkins.The recipient gets an link to open the console output
Is there any way to send the test result dashboard directly to the email using jenkins?
Any help would be greatly appreciated.Thank you<issue_comment>... |
2018/03/20 | 456 | 1,943 | <issue_start>username_0: I have already used Jenkins in the past integrated with GitHub and deploying zip file to AWS Elastic beanstalk.
I am new to kubernetes, how can I make full CI/CD pipeline to create dockers images from jenkins and deploying it to kubernetes cluster running minikube.
Any links, experiences from... |
2018/03/20 | 965 | 3,347 | <issue_start>username_0: I am using HTTPClient Module of Angular 4 for retrieving data from a database.
The corresponding service has the following method,
```
getPosts() {
const httpHeaders = new HttpHeaders().set('Content-Type', 'application/json');
// tslint:disable-next-line:max-line-length
... |
2018/03/20 | 245 | 713 | <issue_start>username_0: I want to get list of seasons from 1980 to today, and if somebody has selected one of them it should be selected in frontend but I do not know how to make it selected. It is my code: Can you help me?
```
@lang('main.season')
@for($i = 1980; $i < \Carbon\Carbon::now()->format('Y') ; $i++)
... |
2018/03/20 | 486 | 1,157 | <issue_start>username_0: I have a object like that:
```
var days = {
0: 10,
1: 40
2: 20,
3: 15,
4: 5,
5: 18,
6: 9
};
```
I need to transform it to something like that:
```
var days2 = [
{0:10},
{1: 40},
{2: 20},
{3: 15},
{4: 5},
{5: 18},
{6: 9},
];
```
I know that it's easy, but I do... |
2018/03/20 | 1,199 | 4,432 | <issue_start>username_0: ```
export function getAllHost(req, res) {
function findAllHost() {
let query = {};
query.company = req.query && req.query.companyId ? req.query.companyId : res.locals.payload.companyId;
query.active = true;
if(req.query && req.query.name) {
let... |
2018/03/20 | 888 | 2,962 | <issue_start>username_0: I am trying to create a simple loyalty program. In which users will be allotted a few Free visits.
so there's 2 fields One is"balance" which shows how many visits left and when they reach 0 it echo or show alert that u reach 0.
2nd is total which count total visits done by users.
This is wha... |
2018/03/20 | 757 | 2,249 | <issue_start>username_0: I have 2 rows with dates and I want to mark both dates if the difference between them is greater than 14 days.
Example:
```
D E
```
14.03.2018 15.03.2018
14.03.2018 21.04.2018
14.03.2018 28.03.2018
14.03.2018 21.03.2018
Formula: = (E1-D1)>14
Format: infill yellow.
Applyin... |
2018/03/20 | 740 | 3,090 | <issue_start>username_0: Im new to C#!
So my Problem: I got a C# Demo Program from an extern company, the program sets the settings of an extern device, than initialize it and starts recording the Data. The Data is written into the Console and streamed into a CSV at a Location i can choose. After pressing a Key in the ... |
2018/03/20 | 369 | 1,520 | <issue_start>username_0: I'm new to R so please bear with me! I Have a dataframe named `mydata`. Here's a sample of the relevant columns:
```
Backlog.Item.Type Description
Feature Assignment 1
Product Backlog Item As a user I want to ... |
2018/03/20 | 1,707 | 6,709 | <issue_start>username_0: I'm new to vuejs but I was trying to get the window size whenever I
resize it so that i can compare it to some value for a function that I
need to apply depending on the screen size. I also tried using the
watch property but not sure how to handle it so that's probably why it didn't work ... |
2018/03/20 | 1,151 | 4,915 | <issue_start>username_0: I'm trying to change the language of the application according to the user's input. I tried using this code to change the language of the application and it's working pretty fine.
```
public void setLocale(String lang) {
myLocale = new Locale(lang);
Resources res = getResources();
... |
2018/03/20 | 964 | 2,197 | <issue_start>username_0: i have 2 dataframes df1 & df2 as given below:
df1:
```
a
T11552
T11559
T11566
T11567
T11569
T11594
T11604
T11625
```
df2:
```
a b
T11552 T11555
T11560 T11559
T11566 T11562
T11568 T11565
T11569 T11560
T11590 T11594
T11604 T11610
T11621 T11625
T11633 T11631
T11635 T11634
T13149 ... |
2018/03/20 | 2,277 | 8,955 | <issue_start>username_0: I have a parent object and a child object. The parent object may include the same child objects multiple times, so I only serialize the child object once and the next instances are only referenced by their ID. The object deserializes without errors when I remove the @JsonIdentityInfo annotation... |
2018/03/20 | 403 | 1,310 | <issue_start>username_0: When using python-selenium and loading a web page I can get the source as follows:
```
webdriver.page_source
```
Is there a way to *set* the page source?
I want to 'read' the html from a file and perform a location action on it, i.e. something like this:
```
driver = webdriver.Firefox()
d... |
2018/03/20 | 365 | 1,443 | <issue_start>username_0: Hi guys I'm working on an exiting Episerver project (my first one) -
One of the issues that we are having is we have three enviroments for our episerver website. Developer / Staging / Live.
All have sepreate DBs. At the moment, we have had lots of media items added to our live enviroment via... |
2018/03/20 | 606 | 2,246 | <issue_start>username_0: I tried to assign currenturl to SiteName(Global variable) but while changing to a new method SiteName(global variable) getting null.
can anyone please help?
```
public string SiteName;
public ActionResult Admin()
{
string currentUrl = HttpContext.Request.Url.Segments.Last();
SiteName =... |
2018/03/20 | 556 | 1,817 | <issue_start>username_0: This is my component
```
export class myComponent implements onInit {
private outageCount;
ngOnInit(){
....subscribe((data) => {
this.outageCount = Object.keys(data).length;
})
}
```
I need to pass the outageCount to my css before `CONTENT`
```
:host ::ng-deep app-settings-panel... |
2018/03/20 | 968 | 3,611 | <issue_start>username_0: I have highlighted paragraphs in a Word document, from which I have to remove highlighting from 3rd to 5th character of each paragraph.
By searching for highlighted ranges within Set r = ActiveDocument.Range in VBA the segments of text are perfectly found.
The error appears on the line `r(S... |
2018/03/20 | 593 | 2,211 | <issue_start>username_0: I am trying out some OpenCV and are on a tutorial for a Canny edge detector [Example](https://docs.opencv.org/2.4/doc/tutorials/imgproc/imgtrans/canny_detector/canny_detector.html).
In this tutorial, there is a function declared like this:
```
void CannyThreshold(int, void*)
```
and then c... |
2018/03/20 | 636 | 2,226 | <issue_start>username_0: Im Trying to Process below tab csv file line by line .It raising error.Unable to trace where im wrong.
Here is the file :
/tmp/fa.csv
```
1 Close
6 Close
72 Close
99 Close
8 Close
4 Close
3 Close
103 Close
106 Close
107 Close
105 Close
... |
2018/03/20 | 407 | 1,603 | <issue_start>username_0: I am calling the twitch TV API to get users info from one endpoint and I want also to call another endpoint in the same API to check if those users are streaming live or not, **but only if the first ajax call is successful.** Can anyone give me a hint on how to do it?? My first call below:
```... |
2018/03/20 | 705 | 2,807 | <issue_start>username_0: I am using Retrofit2 to send and receive requests to my server.
Here are my API interface and Model class.
1. Interface
```
public interface ApiInterface {
@POST("/users/")
Call signUp(@Body User user);
@POST("/login\_url/")
Call login(@Body User user);
}
```
2. Retrofit client
`... |
2018/03/20 | 520 | 1,906 | <issue_start>username_0: I am trying to create some new env variables in the rhel machine using chef.
The block executes successfully but on trying to echo the value, i am getting black result.
Script-1:
```
execute 'JAVA_HOME' do
command 'export JAVA_HOME='+node['java']['home']
end
```
Script-2:
```
ba... |
2018/03/20 | 578 | 1,276 | <issue_start>username_0: I need to create a new dictionary comparing the matching values from the dict1 and list1 and passing the keys from the dict1 and values from the list1 to the new dictionary.
```
dict1 = {'F0': (117, 118),
'F1': (227, 118),
'F2': (337, 118),
'F3': (447, 118),
... |
2018/03/20 | 774 | 2,308 | <issue_start>username_0: I have a list of 3 environment variables that I want to bind and encode them (Key +value) in base64.
fro examples,
the 3 Variable now are stored as key-value variables and what i need to have is a base64 encode on this:
{
"VAR1": "313",
"VAR2": "33344",
"VAR3": "rovkssj",
}
I guess that shou... |
2018/03/20 | 631 | 1,979 | <issue_start>username_0: In my classification model, I need to maintain uppercase letters, but when I use sklearn countVectorizer to built the vocabulary, uppercase letters convert to lowercase!
To exclude implicit tokinization, I built a tokenizer which just pass the text without any operation ..
my code:
```
co = ... |
2018/03/20 | 391 | 1,324 | <issue_start>username_0: I am creating a multi-tenant rails app for different clubs. I'm using the apartment gem so it creates different databases for each club which has more than 100 tables. now i want to take dump of one tenant and import it to other club tenant<issue_comment>username_1: You can set `lowercase` attr... |
2018/03/20 | 1,734 | 5,743 | <issue_start>username_0: I am trying to calculate the straight line distance between coordinates. I can successfully do this using with hard coded values, however my problem comes in when I have a list of coordinates. S basically the first set of coordinates will always be my current location which I can successfully g... |
2018/03/20 | 308 | 799 | <issue_start>username_0: I am trying to create a formula which picks ">" or "<" sign depending upon whether any record has "Higher" or "Lower" against it.
For example, if A1 has "Higher", then formula in B1 should be =0.78>0.59
If A2 has "Lower", then formula in B2 should be =0.78<0.59<issue_comment>username_1: Try,
... |
2018/03/20 | 629 | 2,505 | <issue_start>username_0: Im working on a simple Xamarin Form application after . I created a simple login content page and when i try to run the android emulator im getting this error '**Exception has been thrown by the target of an invocation.**' ,I have Mentioned my code below.Both LoginPage.xaml and LoginPage.xaml.c... |
2018/03/20 | 843 | 3,592 | <issue_start>username_0: I have a simple streams application takes one topic as input stream and transforms KeyValues to another like:
```
StoreBuilder> builder =
Stores.keyValueStoreBuilder(Stores.inMemoryKeyValueStore(CategoryTransformer.STORE\_NAME),
Serdes.Long(), CATEGORY\_JSON\_SERDE);
streamsBuilder.addState... |
2018/03/20 | 1,237 | 5,012 | <issue_start>username_0: I have a tableview which has tableviewcells like so...[](https://i.stack.imgur.com/84bom.png)
On the click of this tableview cell, it expands to show some more buttons like so..
[ from [this http site.](http://tv.eenet.ee/metsis.html)
Added reference of hls.min.js into my template. Copy-pasted their code:
```
if(Hls.isSupported()) {
var video = document.getElementById('video');
var hls = ... |
2018/03/20 | 737 | 2,966 | <issue_start>username_0: >
> SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or
> update a parent row: a foreign key constraint fails
> (demopurpose\_fundraising.campaign\_product, CONSTRAINT
> campaign\_product\_campaign\_id\_foreign FOREIGN KEY (campaign\_id)
> REFERENCES campaign (id)) (SQL:... |
2018/03/20 | 1,751 | 5,148 | <issue_start>username_0: Hello I am trying to develop drop-down box list. I am able to develop it. When I click on drop-down all the options will start coming from left side as below
```js
window.onload = function() {
$(".btn-toggle").on("click", function() {
$('.dropdown-menu').toggleClass('open');
});
... |
2018/03/20 | 1,012 | 3,557 | <issue_start>username_0: I encounted a problem today:
When I started HDP docker container, an error occured:
>
> listen tcp 0.0.0.0:8086: bind: address already in use
>
>
>
According to error message, I know that port 8086 was already in use, so I tried some commands to determine which program was using port 808... |
2018/03/20 | 609 | 2,233 | <issue_start>username_0: This is a tricky one - I have a java interface that I want to implement in scala:
```
public interface Foo {
public void bar(scala.Array arr);
}
```
Is it even possible to implement in scala? when I try:
```
class FooImpl extends Foo {
override def bar(arr: Array[_]): Unit = ???
}
```
... |
2018/03/20 | 736 | 2,120 | <issue_start>username_0: I want to return `False` **only if** the substring has alphabet letter(s) both before AND after it:
e.g. given the target `'at'` and
```
strings = ['dad at home', 'eat apple', 'he never ate maple', 'because he hate it']
```
I'd like to return `[True, True, True, False]`.
I have now:
```
d... |
2018/03/20 | 416 | 1,297 | <issue_start>username_0: On an AMP page I want to add a reference to my font in the styles tag.
Can we use static to do so?
```
@font-face {
font-family: 'Font Awesome 5 Brands';
font-style: normal;
font-weight: normal;
src: url("{% static '/webfonts/fa-brands-400.eot' %}");
src: url("{% static '/webfonts/fa... |
2018/03/20 | 911 | 3,443 | <issue_start>username_0: There are a ton of tunable settings mentioned on `Spark` [configurations page](https://spark.apache.org/docs/latest/configuration.html). However as told [here](https://jaceklaskowski.gitbooks.io/mastering-apache-spark/content/spark-submit-SparkSubmitOptionParser.html), the `SparkSubmitOptionPar... |
2018/03/20 | 752 | 2,400 | <issue_start>username_0: Hi I am really new to vuejs. I try to import a picture then call this picture in the methods.
```
import image from '@/assets/svg/xxx.svg'
```
then in the data
```
data () {
return {
image: image
}
},
```
and try to use it
```
li.style.backgroundImage = "... |
2018/03/20 | 908 | 2,306 | <issue_start>username_0: I have a basic flexbox implementation like this
```css
.holder {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
max-width: 500px;
background: wheat;
}
.col img {
max-width: 100%;
}
.col {
width: 20%;
float: left;
text-align: center;
}
```
```... |
2018/03/20 | 555 | 1,975 | <issue_start>username_0: I would want to know if i can hide all "core" folders of an angular project, like "e2e" and "node\_modules" and files like "package.json" and "tsconfig.json" under some "support\_files" folder or something, so i can focus only on the src folder which is where i will be working on.
I have tried... |
2018/03/20 | 717 | 2,620 | <issue_start>username_0: I have Jenkins pipeline Job with parameters (name, group, taskNumber)
I need to write pipeline script which will call groovy script (this one?: <https://github.com/peterjenkins1/jenkins-scripts/blob/master/add-job.groovy>)
I want to create new job (with name name\_group\_taskNamber) every tim... |
2018/03/20 | 822 | 2,762 | <issue_start>username_0: I'm trying to implement mutual exclusion using semaphore in Python. The two processes (proc1, proc2) are supposed to be two independent, concurrent processes. They do exactly the same thing: store n in array[n], then increment n.
The purpose of the program is to show that using semaphore we c... |
2018/03/20 | 2,168 | 8,506 | <issue_start>username_0: I'm looking at an application where I'm going to handle several integrations and need them to run in threads. I need the threads to "report back to the mothership (aka the main-loop)". The snippet:
```
class App
{
public delegate void StopHandler();
public event StopHandler OnStop;
... |
2018/03/20 | 2,235 | 8,426 | <issue_start>username_0: i tried the following code i found on the net and is perfectly working.
```
template
std::vector& operator<<(std::vector& v1, T2 t1){
v1.push\_back(T(t1));
return v1;
}
```
but for me the argument t1 must be from type T and not T2.
**so my first question is:** why when i do
```
std::vect... |
2018/03/20 | 2,369 | 8,622 | <issue_start>username_0: trying to select a value from the data table x and make subtraction within the data table x.
Example:
```
x <- data.table(CountryName = c("Lithuania", "Lithuania", "Latvia", "Latvia", "Estonia", "Estonia"),
Year = c(2000, 2001, 2000, 2001, 2000, 2001),
pop = c(3512, 34... |
2018/03/20 | 1,649 | 4,945 | <issue_start>username_0: What I am trying to do is that,
for example, assuming that there are 6 and 4 for width and height respectively, and the inputs for the 2d array are:
```
0 1 2 2 1 0
1 0 0 0 0 1
1 0 0 0 0 1
0 1 1 1 1 0
```
The 2nd row finishes with 1 and the 3rd row starts with 1, hence the number in "count"... |
2018/03/20 | 1,169 | 3,769 | <issue_start>username_0: I simply want to send login data via https and receive the response. The whole thing runs in Visual Studio 2017. When running the program stops when I click the "Login button". I also get no real error but only an unhandled exception.
I'm new to C # maybe i did something wrong with async? Than... |
2018/03/20 | 159 | 611 | <issue_start>username_0: The rte\_ckeditor removes the font tag added via sourcecode just after switching back to the rendered view. How can i prevent this?<issue_comment>username_1: The [element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/font) is obsolete. Please use CSS for all styling instead.
In c... |
2018/03/20 | 243 | 838 | <issue_start>username_0: I want to get current day for now. Only day. For example today is 20-March i need use it in my queryset
```
query = self.filter(Q(busyrooms__end_date__day=datetime.now().date()),
Q(reservedrooms__end_date__day=datetime.now().date()))
```
Tried to use `datetime.now().date(... |
2018/03/20 | 983 | 3,669 | <issue_start>username_0: Given the following XML:
```
```
I can deserialize it like this:
```
[XmlRoot("RESPONSE")]
public class Response
{
[XmlElement(ElementName = "RESULTS")]
public Results Results {get;set;}
}
public class Results
{
[XmlAttribute(AttributeName = "MyAttribute")]
public bool MyAt... |
2018/03/20 | 365 | 1,560 | <issue_start>username_0: When we run cucumber tests on forked JVM processes, each test is isolated pretty much immediately, so if we try to use any sort of @before or @after it will run on *every* single jvm instance, and yes we could setup here, it will be executed on every process pointlessly...
How can we get in be... |
2018/03/20 | 502 | 1,904 | <issue_start>username_0: I want to get the value of an element which changes it type based on some condition.
So, For checking the type of that element I am using the following code:-
```
wait(driver, 15).until(EC.presence_of_element_located((By.ID, "incident.state")))
if( element_type != "text" ):
select = ... |
2018/03/20 | 337 | 1,221 | <issue_start>username_0: My jquery datepicker is looking very strange:
[](https://i.stack.imgur.com/VXvSR.png)
Here are my dependancies loading:
```
```
Here is my HTML:
```
|
```
and here is my js:
```
$( ".datepicker" ).datepicker();
```
... |
2018/03/20 | 2,368 | 11,508 | <issue_start>username_0: I tried to create an authrorization server with its own login page and a resource with Spring Boot 2.0.0 and spring-security-oauth2 2.3.0. Unfortunately, the configuration of the resource server does not seem to work. With
```
curl -v localhost:8080/sample
```
always a redirect 302 to local... |
2018/03/20 | 245 | 963 | <issue_start>username_0: I have a autoscheduled script runs everyday and creates a sheet for reporting some data daily. Sheet name is the date with yyyy-MM-dd format and I want to update the spreadsheet name with the date when script runs and creates a new sheet. For example my SpreadSheet name is MY\_SPREAD\_SHEET and... |
2018/03/20 | 204 | 853 | <issue_start>username_0: I was wondering is it possible to add a new class using CSS to HTML you dont have access to?
I am working with a survey programme and i can only create custom CSS but i need to separate two divs by giving them different classes.
I know this is obviously possible but Is this possible in CSS with... |
2018/03/20 | 1,866 | 6,001 | <issue_start>username_0: I have need to calculate the sum of the deep elements foreach first level element.
Sample 3-level array:
```
[
1 => [
'A' => ['AA' => 3, 'AB' => 5],
'B' => ['BA' => 2]
],
2 => [
'C' => ['CA' => 4],
'D' => ['DA' => 1, 'DB' => 2]
],
3 => [
... |
2018/03/20 | 1,863 | 6,181 | <issue_start>username_0: how to replace objects properties without changing other properties and if uneven number of objects are allocated, copy over other properties?
I guess the question might not make any sense. The example will explain everything.
Lets say I have:
```
var oldData = {
fruits: fruits,
veggies: ... |
2018/03/20 | 1,186 | 3,088 | <issue_start>username_0: I have two dictionaries, I want to merge following two dictionary into one.
How can I merge them efficiently?
**Dict1**
```
{
UUID('id1'): {
'due': datetime.date(2018, 3, 10),
'status': 'Done',
}, UUID('id2'): {
'due_date': datetime.date(2018, 3, 10),
... |
2018/03/20 | 331 | 1,405 | <issue_start>username_0: I'm using Anychart 8.1 in an Angular 5 project. We are creating a ResourceGantt POC at the moment. And when I'm creating items for the ResourceGantt I noticed that I create Local Time Date objects. But when I pass them as start & end parameters for the items on the datagrid they get transformed... |
2018/03/20 | 325 | 1,197 | <issue_start>username_0: I am struggling with binding to parent DataContext from DataTemplate/ContextMenu control. I've already tried solutions mentioned [here](https://stackoverflow.com/questions/36043659/how-to-bind-a-command-to-a-contextmenu-from-within-an-itemtemplate?lq=1) and [here](https://stackoverflow.com/ques... |
2018/03/20 | 297 | 1,247 | <issue_start>username_0: I want to add SSL onto the connections to my spring boot server. So far I have an Arduino, an app and a mongodb database connected to the server and making requests to it. All the communication is HTTP. I plan on making everything under HTTPS but I want to know if it'll be possible for the serv... |