date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/02 | 477 | 1,517 | <issue_start>username_0: I want to sort a li within divs alphabetical by jQuery
At the moment, something indefinable happens. Is apparently sorted without a pattern.
Here is a snippet of my html
```
* Great Britain
* Austria
* Nigeria
* Morocco
* Turkey
* Romania
* Belgium
* Netherlands
* Luxembourg
...
```
the ... |
2018/03/02 | 228 | 892 | <issue_start>username_0: I'm trying to get the list of roles for a user inside `MessageReceived` by writing `(message.Author as SocketGuildUser).Roles`. However, the cast always returns null. I also tried using `Context.User` instead, but that returns null too. What am I missing here?
This is the exception I get when ... |
2018/03/02 | 296 | 1,030 | <issue_start>username_0: I have a pandas dataframe which looks somewhat like this
```
ID Company Accepted
1 A Yes
1 B Yes
1 C No
2 B No
2 C No
3 A No
3 C Yes
3 D No
3 E Yes
4 A No
4 C No
```
I wan... |
2018/03/02 | 406 | 1,510 | <issue_start>username_0: I would like to map between `UserDTO` and `User`, but excluding one field, say `city`. How can I do that, cause I though that this approach would work, but it doesn't:
```
ModelMapper modelMapper = new ModelMapper();
modelMapper.typeMap(UserDTO.class,User.class).addMappings(mp -> {
mp.ski... |
2018/03/02 | 544 | 2,193 | <issue_start>username_0: I inherited an Adobe CEP extension at work. Trying to wrap my head around an issue that makes it so absolutely no input from keyboard works on text inputs. To elaborate, absolutely no keyboard input works in Polymer's text inputs. The input get's focused, but if I type anything in them I get th... |
2018/03/02 | 789 | 3,168 | <issue_start>username_0: I am trying to send a json string to a wcf webservice from a html page using jquery. But it is giving error and not returning the desired result. The html page is showing error. How to debug a service to see if the page is actually calling the webservice. Please help.
IService1.cs
```
public ... |
2018/03/02 | 427 | 1,404 | <issue_start>username_0: I am writing a program for Stack class and one of my Template Functions is like this:
```
template
T Stack::back()
{
if (where >= 0)
{
return ptr[where];
}
T dummy;
return dummy;
}
```
But I am getting a warning which says:
```
|102|warning: 'dummy' may be used uninitialized in this f... |
2018/03/02 | 1,153 | 3,993 | <issue_start>username_0: I have built a page that pulls in multiple images from various webcams that we use the office to monitor road networks.
We want the images to update automatically every 30 seconds, ut my JavaScript isn't brilliant I'm afraid.
I know I can refresh the whole page easily, and I can refresh a sin... |
2018/03/02 | 2,972 | 9,971 | <issue_start>username_0: When I upgrade / downgrade my application via a Powershell script, I want to first force the uninstallation of the currently installed version before running the new installer.
How can I do that with Powershell, using the UpgradeCode of the application?
Doing it by application name would be l... |
2018/03/02 | 666 | 2,232 | <issue_start>username_0: I have a imageview in tableview cell and I have 3 different image.
**What I'm trying to do :**
my cell should look like:
```
img1
img2
img3
img1
img2
img3
img1
.
.
```
.
how can i do this order ? Sorry for my bad english :)
**here is my cellforrowat**
```
func tableView(_ tableView: UI... |
2018/03/02 | 975 | 3,580 | <issue_start>username_0: I have a Model `Bot` and I would like to ensure that there is only one `Bot` object in my database. I also need to make sure it is persisted and not tampered with.
My original thought was to do this in a migration, one that would follow the `:bots` table migration. It would include a line that... |
2018/03/02 | 450 | 1,528 | <issue_start>username_0: I'm currently testing the viability of using Gentics Mesh CMS just in a minor role for to populate a news feed. The general idea being that I have a news folder item, with various news items under it currently.
What is determining the order of children? When I grab the data of said news node, ... |
2018/03/02 | 652 | 1,969 | <issue_start>username_0: I am trying to make the snort effect on the command line.
```
snort = "SNoooOOO000oooRT"
for char in snort:
time.sleep(0.1)
print(char,)
```
Right now, this code is printing vertically:
```
S
N
o
o
o
O
O
O
0
0
0
o
o
o
R
T
```
And when I can get it to print horizo... |
2018/03/02 | 454 | 1,690 | <issue_start>username_0: ```
def fun = {
val a = Future {println("Inside Future"); throw new Exception("Discomfort in the sea has pulled itself upon me"); 5}
a onComplete {_ => Thread.sleep(5000); println("Inside map") }
a
}
```
Above is a very simple snippet. The return type is `Future`. Is there a better way ... |
2018/03/02 | 315 | 1,120 | <issue_start>username_0: I'm trying to count the total number of cells that have values for the row that I'll be looking up using their name. I have a different sheet for looking up the value I tried COUNTA and VLOOKUP. Is there any way to combine these two so I'll end up with the correct result?
Please see screenshot... |
2018/03/02 | 498 | 1,675 | <issue_start>username_0: I have the following:
```
$values = Array (
['level1'] => Array (
['level2'] => Array(
['level3'] => 'Value'
)
)
)
```
I also have an array of keys:
```
$keys = Array (
[0] => 'level1',
[1] ... |
2018/03/02 | 458 | 1,701 | <issue_start>username_0: Is there a way to get the Text in a TextBox that has an Autocomplete that appends text, but without the part that is appended? I want to use this text in the Textbox\_TextChanged-event. This code doesn't work
```
private void Textbox_TextChanged(object sender, EventArgs e)
{
var t = textbox.... |
2018/03/02 | 506 | 1,838 | <issue_start>username_0: Is there a way I can call a custom scalar DB function as part of my LINQ to Entities query? The only thing I can find on the web about this is this page:
<https://learn.microsoft.com/en-us/dotnet/framework/data/adonet/ef/language-reference/how-to-call-custom-database-functions>
However the in... |
2018/03/02 | 375 | 1,304 | <issue_start>username_0: For an HTML element like this:
```
```
...can you use an element before the CSS, like this:
```
div.cas {
}
```
...or like this?:
```
.cas {
}
```
Or either way?<issue_comment>username_1: I think you can use ExecuteSqlCommand, but you have to hardcode the sql to be executed against BD,... |
2018/03/02 | 1,316 | 4,950 | <issue_start>username_0: I am using React and Next.js and trying to redirect a user from a page when the data for that page is not available using `Router.push('/another-page')`.
To do this I am checking for a status code in `getInitalProps` and applying a conditional. It looks like this:
```
const statusCode = ac... |
2018/03/02 | 1,765 | 6,437 | <issue_start>username_0: I have a web application that I have hosted on AWS. This service works fine when I don't have an ALB.
The problem I face is the fact that I use path based routing, but don't want to modify my application code just because of the load balancer.
Internally the app sits on somewhere like here an... |
2018/03/02 | 702 | 2,351 | <issue_start>username_0: I am trying to call a function that isn't being recognised. I have a PHP block of code that adds the form to the HTML when the user is logged in:
```
php
if(isset($_SESSION['user'])) {
$usr = $_SESSION['user'];
echo("<form onsubmit=\"nbpost('#nbpost','$usr'); return false;\"\n");
echo("\... |
2018/03/02 | 816 | 3,175 | <issue_start>username_0: I tried to add a switch statement in a method then put that method in another switch statement. It didn't work out as I expected it to... **When I execute the program, the console wants me to immediately add a user input, which is not what I had in mind.**
Here is what shows up in the console ... |
2018/03/02 | 1,681 | 7,065 | <issue_start>username_0: I have a `FormGroup` defined like below:
```
this.businessFormGroup: this.fb.group({
'businessType': ['', Validators.required],
'description': ['', Validators.compose([Validators.required, Validators.maxLength(200)])],
'income': ['']
})
```
Now when `businessType` is `Other` , ... |
2018/03/02 | 1,112 | 4,309 | <issue_start>username_0: I have a Python project that runs in a docker container and I am trying to convert to a multistage docker build process. My project depends on the [cryptography](https://pypi.python.org/pypi/cryptography) package. My Dockerfile consists of:
```
# Base ... |
2018/03/02 | 757 | 2,873 | <issue_start>username_0: I have
```
aTextView.setText("Days\n" + getClassDays());
```
However, I hear utilizing strings.xml is the proper way of doing it. But if so, here's how I found the best way of doing it
**strings.xml**
```
**Days\n**%1$s
```
**MyActivity**
```
aTextView.setText(String.format(_context... |
2018/03/02 | 432 | 1,546 | <issue_start>username_0: With ES6 you can destructure objects in function arguments:
```
({name, value}) => { console.log(name, value) }
```
The equivalent ES5 would be:
```
function(params) { console.log(params.name, params.value) }
```
But what if I would like a reference both to the `params` object and the ne... |
2018/03/02 | 567 | 2,129 | <issue_start>username_0: I am trying to remove the Contacts button on the NavBar [NavBar Pic](https://i.stack.imgur.com/ljd17.png). I have tried everything I know and am stuck. I am new to Angular/Typescript, so any help would be appreciated. The code listed below is from the contacts.components.ts file. Also, I have l... |
2018/03/02 | 430 | 1,325 | <issue_start>username_0: I want to show multiple buttons side by side, which is not the problem.
But I have one or more buttons with wrapped text because the button is too small (this should be).
If the text of one button is wrapped, they do not appear correctly side by side.
The button with wrapped text is low... |
2018/03/02 | 577 | 2,426 | <issue_start>username_0: Sorry if this sounds silly but we have very little experience with NPM, our background is maven.
We have NPM repositories setup in Artifactory and we use them to produce a package in war format. Now we are not able to decide what would be the best practice with these war packages, do we store ... |
2018/03/02 | 1,174 | 4,429 | <issue_start>username_0: So, I have a server script that receives an image from a client script and is supposed to send an acknowledgement saying "OK". But the acknowledgement never goes through.
Server script -
```
import socket,sys
s = socket.socket()
print("Socket successfully created")
... |
2018/03/02 | 566 | 2,328 | <issue_start>username_0: I'm trying to create a mock interview Action that asks a specific set of questions in a specific order, regardless of what the user says in response to each question. How can I set up the intent in Dialogflow to accept any phrase from a user to trigger the next question as the response?
Ex of ... |
2018/03/02 | 1,900 | 6,969 | <issue_start>username_0: I want to host identity server 4 on azurewebsites.net https but I am not sure how to find ssl certificate of my someapp.azurewebsites.net sub domain so I can use it as thumbprint? Is that even possible to obtain ssl certificate that is running on your webapp on azurewebsites.net subdomain?<issu... |
2018/03/02 | 536 | 1,865 | <issue_start>username_0: in the script below I'm searching for files of the same size and moving them to the "C:\files\_compared", the problem is that I want to let one file of the compared files where it is ("C:\folder1") and move only the others to the "C:\files\_compared".
It doesn't matter the name of the file tha... |
2018/03/02 | 1,546 | 5,732 | <issue_start>username_0: I feel like this question could be answered with one or two hyperlinks; I'm just not coming up with the right search terms to find those links myself...
I'm trying to make some minor changes to the `git p4` subcommand, which is implemented as a 3797-line Python script named `/usr/libexec/git-c... |
2018/03/02 | 1,833 | 7,048 | <issue_start>username_0: Reading <NAME>'s [Handling spacing in a UI component library](https://medium.com/fed-or-dead/handling-spacing-in-a-ui-component-library-70f3b22ec89) I found this:
>
> ... components need to be highly self-contained so that they have zero dependency on any particular UI context or other compon... |
2018/03/02 | 812 | 2,948 | <issue_start>username_0: I found nearly nothing about using iText/iTextG/iTextpdf with Kotlin in Android Studio. There is only this still wrong instruction:
<https://developers.itextpdf.com/itextg-android>
But if you set a dependency to 5.5.10 instead of 5.5.11 it works. And I was able to create a PDF, writing some... |
2018/03/02 | 797 | 2,852 | <issue_start>username_0: I'm trying to get all posts from database and show the in a view. The posts that I want are stored in database with `post_type` = `product`.
I got this error:
```
Allowed memory size of 134217728 bytes exhausted (tried to allocate 62918656 bytes)
```
this is my Model:
```
php
namespace Ap... |
2018/03/02 | 1,444 | 5,468 | <issue_start>username_0: I was just curious to know what does [heap write traffic](http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/tip/src/share/classes/java/util/ArrayList.java#l878) means and why it was required in ArrayList implementation?
Snippet of `ArrayList` implementation, see the line with the comment
```
@Ove... |
2018/03/02 | 615 | 2,208 | <issue_start>username_0: I am attempting to follow the example laid out here: [Knockout typescript extenders](https://stackoverflow.com/questions/15357750/knockout-typescript-extenders)
In each of these files I actually have a custom `KnockoutBindingHandler` as well that works, so I thought that putting along side the... |
2018/03/02 | 1,340 | 6,012 | <issue_start>username_0: Debugging from [multi-root-workspaces](https://code.visualstudio.com/docs/editor/multi-root-workspaces) does not seem to work - these are a new feature, maybe this is a bug, but there are no actual examples, just psudo-code on the website.
```
Attribute 'program' is not absolute ('${workspaceF... |
2018/03/02 | 1,080 | 4,760 | <issue_start>username_0: On this [page on my website](https://www.diningbonaire.fyi/bamboo-bali-bonaire/) I need all links to open in a new tab/window. I added in the and that worked for a couple of days. Today all of a sudden it does not work any longer.. I also tried to add this script `$("body.page-template-plain a... |
2018/03/02 | 997 | 2,782 | <issue_start>username_0: I have a dataframe like this:
```
df <- setNames(data.frame(matrix(c(rep(1,8),c(1,2,3,1,2,3,4,1),
rep("useless",3),"label1",
rep("useless",3),"label2",
floor(runif(8,100,400))),8,4)),
... |
2018/03/02 | 1,904 | 6,334 | <issue_start>username_0: Description
===========
I have been unable to get C# code generation to work reliably in my .NET project. I can get it to build EITHER (a) when the source files exist beforehand OR (b) when the source files do NOT exist beforehand. I can't get the same settings to work in both scenarios.
Why ... |
2018/03/02 | 909 | 3,092 | <issue_start>username_0: I have this form using Angular 2:
```
### **{{ModPassageiros[i].NomeTipoPassageiro}} {{i + 1}}:**
Insira uma data de nascimento válida e de acordo com o tipo de pessoa (Adulto, criança ou bebê).
```
I want to validate the birth date according passenger type value.
This is the Type Scrip... |
2018/03/02 | 778 | 4,839 | <issue_start>username_0: I want to do something like this (doesn't work, obviously)
I could store the result in a state and have the component be rendered in the `render()` method, but the problem with that is I am making many calls and will have many res objects.I will end up with a lot of states to maintain, so I ... |
2018/03/02 | 2,132 | 4,917 | <issue_start>username_0: I try to calculate the optimal weights W[0] and W[1] for a linear regression of the the shape:
```
prize=W0*dummy+W1*size
```
where:
```
dummy=[1,1,1,1,1,1,1,1,1,1]
size=[500,550,620,630,665,700,770,880,920,1000]
```
the target feature (`rental_prize`) has the values:
```
rental_price=[3... |
2018/03/02 | 1,259 | 3,514 | <issue_start>username_0: I'm trying to create a form that on focus will display a dropdown of the users previous searches. However I'm running into issues marking up the html/css for this to look as I want.
I would like the dropdown suggestions to appear directly underneath the input box, that is, aligned with input ... |
2018/03/02 | 2,611 | 4,325 | <issue_start>username_0: I know how to convert hex dump to ASCII.
`echo 54 58 72 56 etc | xxd -r -p` -> will produce ASCII output
But I'm struggling with converting following binary code to ASCII.
01000001 01110010 01100101 01101110 00100111 01110100 00100000 01111001 01101111 01110101 00100000 01100001 00100000 011... |
2018/03/02 | 1,968 | 6,739 | <issue_start>username_0: In `R` is there an efficient way to read a transposed `.csv` file?
For example consider the following text file:
```
Name,Peter,Paul,Marry
Age,40,9,38
```
This could be read into a `data.table` with useful column classes using:
```
library(data.table)
file <- tempfile("tmp.txt")
writ... |
2018/03/02 | 2,786 | 9,805 | <issue_start>username_0: In C, I've read that `char** x` and `char* x[]` mean exactly the same thing. I understand the 2nd example, but I do not understand the 1st example.
To me the first example is saying "pointer to a pointer to a character", but C will see this as "point to a list of pointers to character arrays"?... |
2018/03/02 | 1,149 | 4,497 | <issue_start>username_0: Just curious technically what is valid domain name
```
t. <- is that valid
localhost is valid
```
I remember reading something very short without even two words<issue_comment>username_1: Technically `t` is valid if your DNS resolver considers it valid, but getting that to be *universally* v... |
2018/03/02 | 1,459 | 5,606 | <issue_start>username_0: Those are my first few days with Ruby on Rails and Im failing to create a page where you can read posts and post your own.
I can't figure out why my input fields are not getting read.
notices/index.html.erb:
```
<% if @notices.any? %>
<%= render @notices %>
<% end %>
<%= form_for @notice... |
2018/03/02 | 567 | 1,874 | <issue_start>username_0: Hi I was trying to Full Outer join two tables on access because I want to keep all items.
here is my code:
```
SELECT aa.*, bb.firstname, bb.lastname, bb.totalcost
FROM (select IT.*,HR.*from IT
left join HR on HR.firstname=it.firstname and HR.lastname=IT.lastname)
AS
a... |
2018/03/02 | 696 | 2,956 | <issue_start>username_0: When writing `Views`, `ViewModels` and `LiveData` are *lifecycle* aware. The `ViewModel` want's the current `FragmentActivity`, `LiveData` the current `LifecycleOwner`. You don't know in advance if your View will be wrapped or somewhat. So it requires a flexible function to to find the wanted c... |
2018/03/02 | 1,468 | 3,757 | <issue_start>username_0: Even after using `max-width: 100%` and `max-height: 100%` on the `img` element, the width a noticeable bit of white-space on the right. Why isn't it filling up the container?
It looks like max-height works perfectly; my thoughts is that this white space is due to the size of the actual image? ... |
2018/03/02 | 587 | 2,042 | <issue_start>username_0: I searched and I couldn't find anything. I need help being able to have the user enter for those inputs and then return the difference. So I thought that when I prompted for the input it would actually save those input that the users entered. However, it won't even prompt for the input. Then I ... |
2018/03/02 | 762 | 2,705 | <issue_start>username_0: I want to apply this 'coupon-clipping' function to multiple elements on this page without making a separate function for each different element. On the code snippet I added, it works for my first "Buy 4, Save $2.00" but not for the "4 Coupons".
From my research I know that this
```
var coupo... |
2018/03/02 | 608 | 2,208 | <issue_start>username_0: In my user control, I used webbrowser element as rich text editor. When pressed `Ctrl+F` a winform is shown and you can type searching. But every user may not know `Ctrl+F` to make search. Therefore I added an icon for searching to toolStrip menu. But I don't know what I code in the `SearchButt... |
2018/03/02 | 1,164 | 3,801 | <issue_start>username_0: I have an Array for "Questions". Each entry contains the Country, the right answer and 3 wrong answers. I need to put these Questions in several different arrays (i.e. QuizA, QuizB ... QuizN) in accordance with a variable. The code is:
I thought to do it with a switch case, but I might need to... |
2018/03/02 | 688 | 2,565 | <issue_start>username_0: I am able to get this in the cucumber version 1.X but upgrading cucumber to higher version not able to use (this) and it says scenario.getName() is not a function.
I require this because my test depends on the Scenario Name as it involves common function for different test data.
This is how I... |
2018/03/02 | 630 | 2,208 | <issue_start>username_0: I am getting this error when trying to INNER JOIN 2 tables.
"cannot find column "TE" or the user-defined function or aggregate "TE.UserID", or the name is ambigous"
Any ideas?
I've tried adding the table name to the Select statement like below. That actually ran the query in SQL Server. But... |
2018/03/02 | 544 | 1,825 | <issue_start>username_0: I want to add an event handler to a dynamically generated list. I need to prevent the default action on the list item, and just console log "clicked". An example of what I'm trying to do is below:
```js
$("#make-list").click(function() {
var mainList = document.getElementById("the-list");... |
2018/03/02 | 1,172 | 4,658 | <issue_start>username_0: ```js
import React, { Component } from "react";
import FriendCard from "./components/FriendCard";
import Wrapper from "./components/Wrapper";
import Title from "./components/Title";
import friends from "./friends.json";
import "./App.css";
class App extends Component {
// Setting this... |
2018/03/02 | 1,324 | 5,107 | <issue_start>username_0: I am trying to blur a part of an image:
```
extension UIImage {
func blur(rect: CGRect, radius: CGFloat) -> UIImage? {
let context = CIContext(options: nil)
let inputImage = CIImage(cgImage: self.cgImage!)
let filter = CIFilter(name: "CIGaussianBlur")
filter... |
2018/03/02 | 828 | 3,026 | <issue_start>username_0: I have a group by LINQ call and then sum the PossessionTime.Tick values as a new Timespan. This worked fine before, but now I need to keep the collection as an IQueryable instead of a List.
```
PossessionTime = new TimeSpan(x.Sum(p => p.PossessionTime.Ticks))
```
With this change I now get t... |
2018/03/02 | 305 | 1,073 | <issue_start>username_0: Cannot find a way to append Reg export output to existing file, so i'm running this command
```
REG EXPORT HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\NvCplDesktopContext\ backup.reg
```
To export some settings to backup.reg file when it try to export something else i'... |
2018/03/02 | 1,088 | 3,747 | <issue_start>username_0: I realize this question has been asked a lot, but I could not find any information about how to do this in RoR. I am filling a PDF with form text fields using [pdf-forms](https://github.com/jkraemer/pdf-forms) but this does not support adding images, and I need to be able to add an image of a c... |
2018/03/02 | 387 | 1,444 | <issue_start>username_0: If we have a `User` base class with properties `username` and `password`.
And a child class `SpecialUser`, with an extra property `special`.
I know I can declare `ArrayList users = new ArrayList();` and then add `SpecialUser` object to `users`, but I can only access the properties inherited f... |
2018/03/02 | 1,446 | 4,747 | <issue_start>username_0: I have to generate single xml file by combining and processing multiple xmls of 100MB each approximately. I am not able to find any library of node.js which can stream write the xml.
I tried below libraries
1. xml-writer
2. xmlbuilder
3. genx
All these library store the xml in memory which ... |
2018/03/02 | 1,708 | 5,219 | <issue_start>username_0: I am using 'neuralnet' package in R to train a model for 'wine' dataset.
Below is the code that I have come up with so far-
```
library(neuralnet)
library(rattle)
library(rattle.data)
# load 'wine' dataset-
data(wine)
D <- as.data.frame(wine, stringsAsFactors=FALSE)
# replace 'Type' respons... |
2018/03/02 | 1,177 | 3,746 | <issue_start>username_0: Is it possible to force `setInterval` to go to next step like this?:
```
global.timers = [] ;
var index = global.timers.length ;
global.timers[index] = setInterval(()=>{
// ...
},15000);
// pseudo code
if (event1 occured)
global.timers[x].step++ // Don't wait for remained time a... |
2018/03/02 | 580 | 1,949 | <issue_start>username_0: We are trying to implement a full page html caching using CDN on our Kentico portal engine site. To be able to do this we need to set the cache-control of the documents and not only assets to "public". I've tried adding the code below in my global.asax begin request event to test it but for som... |
2018/03/02 | 579 | 1,939 | <issue_start>username_0: I am working on a program that takes input from the user to get an upper limit and then uses a method to calculate all of the prime numbers from 1 to N. I have a working solution, but my head keeps bugging me that it is horribly inefficient.
```
public ArrayList primeNumbers()
{
long startTi... |
2018/03/02 | 1,197 | 4,419 | <issue_start>username_0: I've been doing a lot of reading lately on Cassandra data modelling and best practices.
What escapes me is what the best practice is for choosing a partition key if I want an application to page through results via the token function.
My current problem is that I want to display 100 results p... |
2018/03/02 | 868 | 3,551 | <issue_start>username_0: When I run a simple command on my local shell with gcloud sdk.
```
$ kubectl get pod
```
I get such error:
>
> Error from server (Forbidden): pods is forbidden: User "client" cannot list pods at the cluster scope: Unknown user "client"
>
>
>
The same command runs fine on GCP cloud shel... |
2018/03/02 | 955 | 3,986 | <issue_start>username_0: I have a table where there are two columns, which should technically just be one column. Let's say there are 20 rows in my table, id\_col1 has data till row 15, then id\_col2 has data from rows 16-20. So in my new table, I'm creating a new column that has data from these 2 columns by using a ca... |
2018/03/02 | 444 | 1,697 | <issue_start>username_0: I've been asked to extract information from a SQL Server database to update a report. I was provided a version of the report that is a few months old; and there's no documentation associated with the report.
The existing data extract has the column names listed, and I've been scouring the SQL... |
2018/03/02 | 414 | 1,459 | <issue_start>username_0: I want to know how to add the secondary `UILabel` to an `UITableViewCell`, by secondary label I mean a grey label at the right side of the cell, I've tried:
```
`cell.detailTextLabel?.text = "TEST"`
```
But this text doesn't show up, I want something like this:
[](https://i.stack.imgur.com/BYPAs.png)
What is the most efficient way to convert a pandas dataframe with each individual rows like this:
```
p1 p2 prog
0 A B C
```
into 3 lines like this?
```
n1 n2 edge_... |
2018/03/02 | 434 | 1,170 | <issue_start>username_0: I've been given a task which consists of the 12 sub-assignments and here is the one of this sub-assignment that I struggling with:
*Create an array of 3 floats, and name this array r6. Initialize the array r6 with the values of three var, ables r1, r4, and r5.*
```
//Requirement: Create an ar... |
2018/03/02 | 470 | 1,536 | <issue_start>username_0: I am facing the following (apparently simple) situation:
```
@Component({
selector: 'my-component',
template: `
{{text}}
`,
})
export class MyComponent implements OnInit {
public text: string;
constructor(
private route: ActivatedRoute,
private apiService: ApiService
... |
2018/03/02 | 883 | 3,232 | <issue_start>username_0: When porting my Chrome extension to a Firefox web-extension, I can't make any network requests because they are blocked by the same origin policy.
As an example:
```
const headers = {"content-type": "application/json" };
window.fetch(myDomain + "/api/v3/token", { method: "GET", headers: heade... |
2018/03/02 | 861 | 3,097 | <issue_start>username_0: I use mostly Chrome.
When I publish some work in sites as DeviantArt, Blogger, Flickr I am unable to show an image instead of a link or just show the image, it is really annoying, since I tried a lot of stuff to solve the issue. I use:
```

[< img src="https://VALID BA... |
2018/03/02 | 710 | 2,660 | <issue_start>username_0: I have a document mousemove event in my react component but I can't get access to a local variable in my class. How can I do this?
```
class MyComponent extends React.Component {
constructor(props) {
super(props);
this.name = 'hello';
document.addEve... |
2018/03/02 | 521 | 1,795 | <issue_start>username_0: I'm trying to make a text game in python that's basically about exploring a fake hard drive through a CMD line. I'm experimenting with having the different subfolders saved in the code as different subroutines. Long story short I'm trying to make it so that you can call a subroutine from a vari... |
2018/03/02 | 6,489 | 16,856 | <issue_start>username_0: I am going trough Spring boot configuration and testing setup and basic application.
Trying to run a Web Spring boot application from InteliJ:
```
package com.springbootdemoweb1.demoweb1;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.Spring... |
2018/03/02 | 1,444 | 3,952 | <issue_start>username_0: I need to get all permutation of 2 values given a "group id" value
I have this:
```
group id value
1 a
1 b
1 c
2 b
2 c
2 d
```
and want this:
```
group id value1 value2
1 a b
1 a c... |
2018/03/02 | 1,370 | 3,684 | <issue_start>username_0: Can I integrate WireShark (as a command, or as system() command) into my C program in order to sniff all the received packets in my PC? I tried to use the NETCAT. but it doesn't work because the packets that I want to sniff are sent in an UDP multicast address: 172.16.17.32.<issue_comment>usern... |
2018/03/02 | 672 | 2,321 | <issue_start>username_0: I am using Extendscript which uses ECMAScript 3. So I am locked to many limitations. I am looking to find something similar to `Arr.find(func)` but available for ECMA3. Because I need a method searchs array of objects and find one object that has specific value in one of his properties.
So I f... |
2018/03/02 | 667 | 2,178 | <issue_start>username_0: Say I have a string "yyyymmddword", Is there a method I could use to have an int year, month, day, and String word based on that string.
So if I have a string "20070405word", I need to convert it to:
```
String name = "yyyymmddword";
int year = 2007;
int day = 04;
int month = 05;
String word ... |
2018/03/02 | 704 | 2,465 | <issue_start>username_0: Given the following HTML:
```
```
And the following ViewModel:
```
public class HomeViewModel
{
public TrackParcelViewModel TrackParcelViewModel { get; set; }
// TrackParcelViewModel only has TrackingNumber (int)
// OTher stuff...
}
```
The url used by the form becomes: `..... |
2018/03/02 | 236 | 645 | <issue_start>username_0: I have got an IF statement that looks like that:
```
If i=1 or i=3 or i=7 or i=9 or i=10 or i>=15 and i<=20 then
'Do sth.
End If
```
My question is: Can I make these conditions easier (can I summarize them)?
Thanks in advance!<issue_comment>username_1: You can use select case:
```
Selec... |
2018/03/02 | 700 | 2,351 | <issue_start>username_0: I want to put a div block in the center of a page, but the text should stay left of the centered block.
The problem is when I set the `div` to center and `p` to left, the content inside `p` is on the left of entire page not the left of centered block.
```css
.container {
text-align: cente... |
2018/03/02 | 762 | 2,626 | <issue_start>username_0: **SQLite Objective**
I would like to create a new table from a join (or series of joins/subqueries). I would like the new table to preserve the data types in the original tables as well as the unique index.
In addition, I would like to rename some of the columns in the process. To do this in... |