text stringlengths 64 43.7k | meta dict |
|---|---|
Q:
url param not getting properly
I have a two server.I am passing 4 variable in url ssid(36),rawstring(1024),sample_id,user_id.
I simplely want to get parameter passed in url.When I hit my first server I am getting param,but same url(Only change server name),I get 3 parameters(not getting raw string).
In my controll... | {
"pile_set_name": "StackExchange"
} |
Q:
Cannot implicitly convert type 'IEnumerable to 'int'
I'm selecting an id from an Linq query so it is an int but when i try to use it again it is giving me the error:
Cannot implicitly convert type
'System.Collections.Generic.IEnumerable to 'int'
var costcentre = company.CompanyCostCentres
.Where(cc => cc.N... | {
"pile_set_name": "StackExchange"
} |
Q:
Which constraints are conflicting?
I have a UICollectionViewCell that keeps giving me an error for conflicting autolayout constraints. The following is the constraints it prints out in the debugger that it claims are conflicting:
(
"<NSAutoresizingMaskLayoutConstraint:0x10e47df70 h=--& v=--& UIView:0x1094594c0.wid... | {
"pile_set_name": "StackExchange"
} |
Q:
optimize query in db2
I have two tables,
Filter, contains Country - State - City Mappings
+---------+-------+-------------+------------+
| Parent | Child | Parent_Code | Child_Code |
+---------+-------+-------------+------------+
| Country | State | COUNT_ABC | ST_XYZ |
| Country | State | COUNT_POQ | ST_... | {
"pile_set_name": "StackExchange"
} |
Q:
Parsing JSON in Flutter / Dart: () => Map , NoSuchMethodError - (array problem?)
Im still a bit new to Flutter / Dart and Ive struggled with parsing JSON for quite some time now. It seems like a daunting task to me, even though I think my JSON structure is not that complicated.
Your help would be greatly apprecia... | {
"pile_set_name": "StackExchange"
} |
Q:
Python Add in new rows with new data based on Partial Match
Table 1
|Location|Type|Supplier| ID |Serial|
| MAB |Ant | A | A123 |456/56|
| MEB |Ant | B | A123 |456/56|
Table 2
|Location |Type|Supplier| ID |Serial|#####|
| MAB+MEB |Ant | A/B | A123 |456/56|123... | {
"pile_set_name": "StackExchange"
} |
Q:
Create drop down menu without ul inside li
I want to create a drop down menu but I faced some problem:
Actually I want to create it without making <ul> tag inside the <li> tag
so the code :
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<ul>
<li><a>Coffee</a></li>
... | {
"pile_set_name": "StackExchange"
} |
Q:
Switching the order of differential operators
A function $f(x,y)$ is transformed to variables $(u,v)$ with $x=uv$ and $y=\dfrac{u}{v}$ so the first partial derivative with respect to $u$ is $$\frac{\partial f}{\partial u}=v\frac{\partial f}{\partial x}+\frac1v\frac{\partial f}{\partial y}\tag{1}$$ Show that the se... | {
"pile_set_name": "StackExchange"
} |
Q:
Separate/Split single field in to multiple fields
I have a table 'Waterwatch_Active' that has a field 'Att'.
The Att field is a complex concatenated field (it looks like html actually) that I need to split out in to:
site_name
site_code
This is an example of the Att field of my table Waterwatch_Active Waterwatch... | {
"pile_set_name": "StackExchange"
} |
Q:
Calculating difference between dates based on grouping one or more columns
A sample of my dataset is as below:
| id | Date | Buyer |
|:--:|-----------:|----------|
| 9 | 11/29/2018 | Jenny |
| 9 | 11/29/2018 | Jenny |
| 9 | 11/29/2018 | Jenny |
| 4 | 5/30/2018 | Chang |
| 4 | 7/4/2018 ... | {
"pile_set_name": "StackExchange"
} |
Q:
Stripping all '\n' from HTMLCalendar()
import calendar
def websiteCalendar(month, year):
return calendar.HTMLCalendar().formatmonth(year, month).rstrip("\n")
returns:
"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"month\">\n<tr><th colspan=\"7\" class=\"month\">November 2016</th></tr>\n<tr>... | {
"pile_set_name": "StackExchange"
} |
Q:
Detect all certain substrings in Python sequence
The code below demonstrates Penney's Game - the probability of one sequence of heads and tails appearing before another. In particular, I wonder about the efficiency of while not all(i in sequence for i in [pattern1, pattern2]):, and more globally about coding this ... | {
"pile_set_name": "StackExchange"
} |
Q:
Python : error when insert mysql database
I'm using Ejabberd xmpp/jabber server and I'm trying to insert data into mysql database using Python
What I'm doing is :
username = "user1"
email = "user1@domain.tld"
vCard = ("<vCard xmlns='vcard-temp'><VERSION>3.0</VERSION><ADR><HOME/></ADR><ADR><WORK/></ADR><TEL><HOME/>... | {
"pile_set_name": "StackExchange"
} |
Q:
MySQL how many columns table have
I have table:
SHOW COLUMNS FROM `darbuotojai`;
+--------------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+--------------+--------------+------+-----+---------+----------------+
| id | i... | {
"pile_set_name": "StackExchange"
} |
Q:
Cannot deserialize JSON object in C#
I'm trying to deserialize the following JSON string in C#:
{
"class": [
"collection",
"Request"
],
"properties": {
"total_hits": 61,
"total_pages": 61,
"previous_page": null,
"next_page": 2,
"current_page": 1,
"per_page": 1,
"params": {... | {
"pile_set_name": "StackExchange"
} |
Q:
select from table with parameters from another table
first table meter_values
|id | somedata | date(YY-MM-DD)| status |
|-----+-----------+---------------+--------|
|1 | tets | 20180628 | 6 |
|2 | setd | 20180627 | 6 |
|3 | ewrw5 | 20180701 | 6 |
|4 | 6w... | {
"pile_set_name": "StackExchange"
} |
Q:
AmCharts set to always display labels on stacked columns
I am trying to make my stacked column amChart always display value labels on the columns. Even if they do not fit.
I am using this code:
var qtrchart = AmCharts.makeChart("chartdiv", {
"type": "serial",
"theme": "none",
"legend": {
"autoMargins": false,
... | {
"pile_set_name": "StackExchange"
} |
Q:
How do I save terminal output to a file?
How do I save the output of a command to a file?
Is there a way without using any software? I would like to know how.
A:
To write the output of a command to a file, there are basically 10 commonly used ways.
Overview:
Please note that the n.e. in the syntax column mean... | {
"pile_set_name": "StackExchange"
} |
Q:
Why is my DataSet not populating my GridView
I dont know why my data is not showing in my gridview, if i use an sqldatasource with the same query it works.
cmd.Connection = conn
conn.Open()
cmd.CommandText = "SELECT DISTINCT TOP (100) PERCENT dbo.tblConfig_Agent.FirstName, dbo.tblConfig_Agent.LastName,... | {
"pile_set_name": "StackExchange"
} |
Q:
Control may reach end non-void function
The attached code is returning an error:
Control may reach end non-void function
Code:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
if (indexPath.row == 0) {
FirstCustomCell *fCustomCell = [tableView d... | {
"pile_set_name": "StackExchange"
} |
Q:
Parsing Ajax response using jQuery
I have a php function, which generates calendar for the current
month with button for next and previous months.
I also have a js file, which monitors the click event and generates calendar for next or
previous month.
I am fetching the calendar data from the php function (as de... | {
"pile_set_name": "StackExchange"
} |
Q:
Poisson Bracket of $\{Q, P\}$ in the original coordinate $(q, p)$
For simplicity, I use $(q,p)$ and $(Q,P)$ instead of $(q_i,p_i)$ and $(Q_i,P_i)$. I know that we should get $\{Q, P\} = 1$ for a canonical transformation $(q,p)\rightarrow(Q,P)$.
But we also know from here that for checking whether a transformation ... | {
"pile_set_name": "StackExchange"
} |
Q:
¿Como hacer para cambiar el nombre de titulo en la toolbar? ¿y como hago para centrarlo?
Me gustaría saber como hacer para cambiarle el titulo de cada actividad (Tengo ocho actividades diferentes) en la toolbar.
Yo tengo creado un toolbar.xml
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.androi... | {
"pile_set_name": "StackExchange"
} |
Q:
yaml.dump seeming to add two dashes to 2nd row under first key
I am using yaml.dump to generate yaml files for snakemake config but I keep getting the error Config file must be given as JSON or YAML with keys at top level
I think it might be something to do with incorrect formatting of my yaml files coming out of ... | {
"pile_set_name": "StackExchange"
} |
Q:
The characters except English are not readable on DirectAdmin editor
When I try to edit my idex.html I see strange characters in my atributs and tags
<title>საატესტატო-გამოსაშვები გ&#... | {
"pile_set_name": "StackExchange"
} |
Q:
adding list of matches to dataframe
I have two data frames that look like this:
Payments data frame
id <- c("a","b","c","d","e","f")
total_amt <- c(100, 100, 200, 200, 350, 350)
payments <- data.frame(id, total_amt)
--------------------
| id | total_amt |
--------------------
| a | 100 |
| b | 100... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I Group By Month from a Date field
I have a data frame similar to this one
| date | Murders | State |
|-----------|--------- |------- |
| 6/2/2017 | 100 | Ags |
| 5/23/2017 | 200 | Ags |
| 5/20/2017 | 300 | BC |
| 6/22/2017 | 400 | BC |
| 6/21/2017 | 500 | Ag... | {
"pile_set_name": "StackExchange"
} |
Q:
MySQL Left Join Query not working
The history table contains dates that I'm trying to match against the participation table. If the date doesn't exist in the participation table, then I want the record(s) pulled out so I can enter the participation data . But what I have doesn't work. Here's a rundown of what I'm ... | {
"pile_set_name": "StackExchange"
} |
Q:
Create Javascript array with Javascript for loop
I have a series of information that I am looking to cut down to size by looping the information. Here is the original code that is working:
$('#M1s1').css({'visibility': M1s1v});
$('#M1s2').css({'visibility': M1s2v});
$('#M1s3').css({'visibility': M1s3v});
$('#M1s4... | {
"pile_set_name": "StackExchange"
} |
Q:
jQuery Mobile: Issue with empty option in Select Menu (drop down list)
I have implenmented drop-down lists "Select menus" in jQuery Mobile.
<div data-role="fieldcontain">
<label for="name" class="select ui-select" style ="vertical-align:baseline; width:33%; " ><b>Application:</b></label>
<s... | {
"pile_set_name": "StackExchange"
} |
Q:
Groovy:Xml: How to display Xml response in textarea of gsp page
Have an Xml response stored in a string, i want to display it in a textarea in gsp page
String responseXml = ""<Cars>
<Car>benz</Car>
<Car>audi</Car>
<Car>bmw</Car>
... | {
"pile_set_name": "StackExchange"
} |
Q:
Grouping types of bugs by date and priority
I currently have a table Bugs that looks like this:
|ID |Priority |Created |Updated |Status |Category
|X123 |Major |01/01 |01/03 |Open |A
|X145 |Normal |01/01 |01/02 |Closed |B
|X678 |Minor |01/03 ... | {
"pile_set_name": "StackExchange"
} |
Q:
Traversing through dict and list in python
So I'm pulling data in JSON from an API which has dicts and multiple lists in it.
result=r.json()
i=0
x=0
for row in r:
print('Driver ID: ', result['logs'][x]['log']['driver']['username'])
print('First Name: ', result['logs'][x]['log']['driver']['first_name'])
... | {
"pile_set_name": "StackExchange"
} |
Q:
SELECT the min time for each bus stop
I have a table with columns time_id, bus_id, stop_id and time. Like this:
time_id |bus_id | stop_id | time
1 |19 | 51 | 00:08:00
2 |19 | 51 | 00:09:00
3 |19 | 51 | 00:10:00
4 |19 | 12 ... | {
"pile_set_name": "StackExchange"
} |
Q:
MySQL How to check if an value is already in the results?
I've got a complicated problem.
How can I force MySQL to replace the first "command.deagle2" (Mode 1) with the second "command.deagle2" (Mode 0) ?
I simply show you the code and I hope you can help me.
Here my code:
SELECT DISTINCT
`right`.`name` AS `Ri... | {
"pile_set_name": "StackExchange"
} |
Q:
Rank by 2 different levels of partitioning/grouping
I have this set of data using Microsoft SQL Server Management Studio
Category|pet name| date |food price|vet expenses|vat
A | jack |2017-08-28| 12.98 | 2424 |23
A | jack |2017-08-29| 2339 | 2424 |23
A | smithy |2017-08... | {
"pile_set_name": "StackExchange"
} |
Q:
JHipster microservice gateway temporarily throws HTTP 500 error when one service instance is terminating
We have a standard JHipster setup consisting of a gateway and one microservice application. JHipster-Registry is used for service discovery. We made no changes of any kind to the code or the config that was gen... | {
"pile_set_name": "StackExchange"
} |
Q:
Datetime.Parse() swappable formats?
looking at the format : "MMM d yyyy"
This is working
var t="Mar 2013 7";
DateTime dt=DateTime.Parse(t);
But
also this :"Mar 7 2013"
and this :"7 Mar 2013"
is working
looking at :
new DateTimeFormatInfo()
.GetAllDateTimePatterns()
.Select((... | {
"pile_set_name": "StackExchange"
} |
Q:
Having trouble with MySQL joins
artists table:
Field | Type | Null | Key | Default | Extra |
+-------+-------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| name | varchar(50) | YES | | NULL |
songs table:
| Field | T... | {
"pile_set_name": "StackExchange"
} |
Q:
how to integrate cache2k with hibernate
How i can integrate cache2k like hibernate cache provider?
I mean in current project we use ehcache and
enable cache in next configuration hibernate.cfg.xml :
<hibernate-configuration>
<session-factory>
<!-- Cache Configurations -->
<!-- Using net.sf.e... | {
"pile_set_name": "StackExchange"
} |
Q:
Evaluating $\sum_{r=0}^{10}\frac{\binom{10}{r}}{\binom{50}{30+r}}$
The question is to evaluate $$\sum_{r=0}^{10}\frac{\binom{10}{r}}{\binom{50}{30+r}}$$I tried rewriting the expression as $$\sum_{r=0}^{10}\frac{\binom{20-r}{10}\binom{30+r}{r}}{\binom{50}{30}\binom{20}{10}}$$ I am facing trouble on how to further s... | {
"pile_set_name": "StackExchange"
} |
Q:
Duplicates returned in query on child object
I have a data structure in my document like this (note this is simplified for brevity):
{
"id": "c1c1c1c1-c1c1-c1c1-c1c1-c1c1c1c1c1c1",
"name": "Bruce Banner",
"accountId": "a1a1a1a1-a1a1-a1a1-a1a1-a1a1a1a1a1a1",
"contributors": [{
"accountId": "... | {
"pile_set_name": "StackExchange"
} |
Q:
org.gradle.api.UncheckedIOException: Could not write to file ...\build\poms\pom-default.xml
Hi I am getting this error and i could not figure out what the problem is, as it was working before. This will happen when i try to upload snapshot jars to SonaType snapshots repository.
org.gradle.api.tasks.TaskExecutionEx... | {
"pile_set_name": "StackExchange"
} |
Q:
Angular: *ngFor with list index duplication error
I have a list items and on click of individual items I'm trying to display inner lists enclosed by div like this
<div>
<ol>
<li *ngFor="let guide of userGuideData; let i=index">
<a (click)="selectedIndex=i">{{guide.title}}</a... | {
"pile_set_name": "StackExchange"
} |
Q:
XQuery that selects node but omits returning child nodes
I'm attempting to create an xquery expression that will return selected nodes but will not return their children. This is probably best illustrated with an example. I have the following myNode node:
<myNode>
<myElements id="1">
<myElement key="one">a... | {
"pile_set_name": "StackExchange"
} |
Q:
More than 15 KML-layers wont be visible on Google Maps API-based page
I have this strange issue: I have to generate many KML-layers from separate KML-files to a single map window. The amounts vary between like a couple and less than fifty. At the moment my code is producing just correct behaviour when I'm giving i... | {
"pile_set_name": "StackExchange"
} |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 3