text stringlengths 15 59.8k | meta dict |
|---|---|
Q: Street view panorama doesn't work in a div I'm trying to embed a street view panorama on a website as explained here. It works well when I do that :
<body>
<div id="map"></div>
</body>
but it doesn't work when i put the #map in a other div, like that :
<body>
<div>
<div id="map"></div>
</div>
</... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36794509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Installation of tools in Azure virtual machine I have a requirement to install tools like Nagios, BigFix and other tools inside an Azure virtual machine once it gets provisioned and joined to the domain. Currently, I have written PowerShell scripts for a remote installation of these tools via Jumpbox once the VM is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48926870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I change the select option from the component in Angular2? I have a dropdown like below
html
<mat-form-field>
<mat-select placeholder="Team" [(ngModel)]="selectedTeam" name="team"
(change)="mainValuesChanged('team',$event,t.value)" #t>
<mat-option *ngFor="let team of teams" [value]="team... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48857345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: merging two xmls of same number of nodes I have merged two xml files using java dom parser:
a.xml
<config>
<category name="mimetypes">
<!-- application mime types -->
<mime-type type=1></mime-type>
<!-- eps -->
<mime-type type=2></mime-type>
<!-- octet-stream -->
<mime-type type=3></mime-type>
</category>
</config>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61101181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there any way to extend the prime membership of user from one month to 3 or 6 month using stripe I'am working on an application where user subscribe the premium membership using stripe. The subscription function is working properly with one month of billing cycle. Now I have to update the prime membership of user... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68756767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AS/400 QSYRUSRI API parameters I'm trying to use the QYSRUSRI api to retrieve the number of supplemental groups in an Iseries user profile.
There is an offset pointer to the beginning of the array holding this data. The spec for format USRI0300 mentions this as starting in position 585 of the receiver variable but i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64750917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to display corresponding record from access based on other column in Datagrid in vb6 I am using Vb6 ! I have one datagrid named "Datagrid1" and i display certain contents such as subjectname, subjectcode, theory_practical from the table named "subjectcode" in Datagrid1 from access database.
And i have another t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14302832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ExtJS - convert json to Model I have a json string that I need to map into a Model, I've been checking this json reader, Ext.data.reader.JsonView, but it seems that it only wokrs with a proxy, I need to pass a string (which contains the json) and map it to my model. Is that possible?
Thanks,
Angelo.
A: Take a look ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30182026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Django pagination giving error: Caught TypeError while rendering: 'Page' object is not iterable I am using django pagination, as told in documentation:
view part is :
def list(request):
job_list = Job.objects.all()
paginator = Paginator(job_list, 25) # Show 25 jobs per page
page = request.GET.get('page',1)
try:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8512743",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get the first and last value that match condition in Google Sheets? I have a table in this format:
I would like to get the first and last date (column A) that hasn't been invoiced (column E) so I can later concatenate: ="Invoice for items between " & FIRST_DATE & " and " & LAST_DATE
I've tried using VLOOKUP ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67233562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Matplotlib drawing a line with a hint through a plot I have a pcolor in matplotlib where I would like to draw a horizontal line with a caption.
So in a way, as it is drawn on the following picture:
Is there a way to do that?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/58407072",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Rails engine extending views, not overriding I am aware that I can override an applications view from within an engine by simply creating the same file within the engine and removing it from the application (eg: 'users/show.html.erb').
However, what I want is to be able to extend the applications view, not override... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44285307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Emulate Excel AverageIFs with Pandas I am trying to emulate Excel's AVERAGEIFs function in Pandas on a date range, and so far have been unsuccessful. I understand that I need to use apply and groupby, but I obviously don't have the syntax correct as I receive this error:
TypeError: can only concatenate list (not ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47775512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Laravel - additional condition in a join using DB::raw() query I want to add an "OR" conditional to the DB::raw query join
I have this query:
$billings = DB::table("billings")
->select("billings.plan", "billings.email",DB::raw("COUNT(billings.plan) as total_plans") ,DB::raw("SUM(billings.amount) as total_amount"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56477091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: iTextSharp pdf Listbox form control looses right alignment I have a pdf form, and I am using pdfStamper to manipulate the values of listbox.
form.SetListOption("fieldname",String[]{"one","two","three"});
form.SetListSelection("fieldname",String[]{"","",""});
The listbox alignment is set to "right". If I use a PDF ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19009195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to distinguish the WM_LBUTTONUP message in a single-click event and a double-click event I want to do something when I receive the WM_LBUTTONUP message in the single-click event, but the WM_LBUTTONUP message in the double-click event should not do these things. How can I ignore it in the function OnLButtonUp() t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68540296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Android Wear emulator goes into Ambient Mode automatically I've been absent for some times from WearOS development. Now I am back and I have one annoying issue with the latest emulator - it goes automatically in Ambient Mode after few seconds. Not just my app, but the OS itself.
I Checked into the settings, tried cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58534295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Prevent node.js from reading node_modules besides immediate folder Say I have this situation:
node_modules/
muh_project/
node_modules/
index.js
say I do this:
cd muh_project && node index.js
How can I prevent the node.js runtime from reading node_modules anywhere but the immediate node_modules folder?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53111053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Laravel 7 change where file uploads to I have a file upload form in on of my blade files.
However when I upload the file I see its saving the file to /storage//Applications/MAMP/tmp/php/phpIVfP2L.mp4 how do I set this upload to be saved to a specific location like I want them saved in the Laravel public folder that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63368136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Only allow ajax request to fire once (like button) I have a button that on click adds 1 to a table value in my database (i.e a like button).
When the user clicks the button:
var button_id = $(e.target).closest('div').attr('id');
var id = button_id.substring(12);
$.ajax({
method: 'POST',
url: 'update_li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30679978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Awk/Sed Solution for English/Chinese Text? I have a text file. There are hundreds of lines. Each line is either in English or in Chinese characters, but not both (there are a few exceptions but perhaps less than <10, so these are discoverable and manageable). A single line may contain multiple sentences. What I woul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32089295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use allow: options with eslintrc.js I am having the following eslintrc.js:
module.exports = {
extends: ['airbnb-typescript/base'],
parserOptions: {
project: './tsconfig.json',
sourceType: 'module',
},
ignorePatterns: ['*.js'],
rules: {
'no-underscore-dangle': 0,
...
}
};
And I'd l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68563727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Workarounds for the forward-declared class enumeration problem? I am maintaining a large code base and am using a combination of forward declarations and the pImpl idiom to keep compile times down and reduce dependencies (and it works really well,)
The problem I have is with classes that contain public enumerations.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1861837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to install turtlegraphics in python I'm trying my hands on Turtle but I can't get the module installed.
I have searched a lot and people seems to imply that it is included in the Python
standard library with Tkinter but this doesn't seem to be the case for me.
when I do:
import Tkinter
everything seems ok. But... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21476627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: FireFox SDK Addon - "Detach content script" on disable/unload? I am having some issues trying to figure out how to handle the detach event when the addon is disabled and uninstalled.
In main.js and my content script, I am capturing the "detach" event which fires in both cases, but the content script is not actually ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28127443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SBT maven local repository is not searched I want to load some library from local maven repostory. I have configured .sbt/0.13/plugins/plugins.sbt:
resolvers += Resolver.sonatypeRepo("snapshots")
resolvers += Resolver.mavenLocal
addSbtPlugin("org.ensime" % "ensime-sbt" % "0.1.5-SNAPSHOT")
In my project I have set ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27646685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to convert pandas str.split call to to dask I have a dask data frame where the index is a string which looks like this:
12/09/2016 00:00;32.0046;-106.259
12/09/2016 00:00;32.0201;-108.838
12/09/2016 00:00;32.0224;-106.004
(its basically a string encoding the datetime;latitude;longitude of the row)
I'd like to s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45428292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Random variable not changing in "for" loop in windows batch file I'm trying to print out a Random number multiple times but in the for loop I use, it doesn't reset the variable. Here's my code.
@echo off
for %%i in (*.txt) do (
set checker=%Random%
echo %checker%
echo %%i% >> backupF
)
echo Complete
There... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6500217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Issue with NSNumber -initWithDouble and resulting values I'm using NSNumber to store various values, but sometimes run into issues when doing calculations with the values and initializing new NSNumber objects for the results. I've figured out how to overcome it, but I couldn't for the life of me explain why it works... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3728213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NSNotifications from web Is it possible create NSNotifications in app and then from any form (apple.com) send push notifications to apps users? How can I do it?
A: To push notification to users, you need a your backend environment with your certificates.
You also have to receive the user device token needed to sen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23702591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Google analytics: dataLayer.push not working with array of variables? I wonder why gtag.js doesn't work when push to dataLayer array of variables instead of 'arguments'? Here is some code example:
window.dataLayer = window.dataLayer || []
function gtag(first: any, second: any) {
window.dataLayer.push([first, se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60400130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do i convert chr to ord? - Python in my python program i generate a list of numbers which looks like this:
gen1=(random.sample(range(33,126), 8))
conv=(gen1[0:])
then that list is converted to chr like this:
chr="".join([chr(i) for i in conv])
the printed result for example would look like this:
`&... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34106713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Not connection with SLComposeViewController - Not share Screenshot with Facebook My code for share screenshot of my App in Facebook always shows alertView and never posts in Facebook:
- (UIImage *) screenshot
{
AppDelegate* app = (((AppDelegate*)[UIApplication sharedApplication].delegate));
UIGraphicsBeginIm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30381538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Real world example of application of the command pattern Command pattern can be used to implement Transactional behavior (and Undo).
But I could not find an example of these by googling. I could only find some trivial examples of a lamp that is switched on or off.
Where can I find a coding example (preferably in Jav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12153708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Convert a in a My code has
<input class="menu_button" type="submit" value="Log in">
<a href="register.php" class="menu_button">Register</a>
The a href is styled perfectly in my css while the input button with type = submit DOES NOT...
How could I change
Into a a href?
Here is a jsfiddle.
http://jsfiddle.net/26ty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19054666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Azure notification hub Cannot read property 'name' of undefined Scenario
I have created azure notification hub on my Visual Studio Enterprise subscription and new namespace in the azure portal according to this tutorial
Problem
After resources are created, I go into overview section of my notification hub in azure p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68066870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I need to convert a Node object to a string in C I am having trouble with a homework assignment. I finished most of it, but I'm stuck at this one part. If you look at the header file, you will see a comment that says:
Convert a Node object to a string. We require a pointer to the Node object so that we can display... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23144055",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Jquery .change() For some reason this is non functional any help appreciated.
<script>
$(document).ready(function(){
$('select[name=materialSelect]').change(function(){
alert("Changed");
});
});
</script>
<select name="materialSelect" id="materialSelect">
<option value="-1">-----Select Mate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37552222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why does Swagger UI POST form data with Content-Type: undefined? I'm trying to POST form data using Swagger UI, but the request is sent with Content-Type: undefined:
How can I configure it so it works? JSON POST works just fine.
Here is my API definition:
{
"swagger": "2.0",
"info": {
"version": "V1",
"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49844464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Remove empty array elements Some elements in my array are empty strings based on what the user has submitted. I need to remove those elements. I have this:
foreach($linksArray as $link)
{
if($link == '')
{
unset($link);
}
}
print_r($linksArray);
But it doesn't work. $linksArray still has empty e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3654295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1002"
} |
Q: Do...while is not working in input verification So I'm trying to do an input verification for my program in java, and I'm trying to do that in this setter:
public void setClientName(String clientName) {
boolean valid;
do{
valid = false;
try{
if(clientName.ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72110164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Deedle Frame From Database, What is the Schema? I am new to Deedle, and in documentation I cant find how to solve my problem.
I bind an SQL Table to a Deedle Frame using the following code:
namespace teste
open FSharp.Data.Sql
open Deedle
open System.Linq
module DatabaseService =
[<Literal>]
let connectio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38667991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Custom cell in list in Flash AS3 I am no expert in Flash, and I need some quick help here, without needing to learn everything from scratch.
Short story, I have to make a list where each cell contains an image, two labels, and a button.
List/Cell example:
img - label - label - button
img - label - label - butto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11303795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Fragment Missing From Product I created a localization fragment for one of our projects which works nicely when started from the IDE, but not at all when started from the exported product.
The fragment itself only really has two files, a MANIFEST.MF:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: L10N ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58199414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Display or get the HTTP header attributes in Rails 4 I have an application developed in Rails and I am trying to see the attributes in the HTTP header.
Is there any way to read these attributes? Where are they stored?
Someone mentioned request.headers. Is this correct? I am not able to see any attributes inside thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32405155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Finding files in list using bash array loop I'm trying to write a script that reads a file with filenames, and outputs whether or not those files were found in a directory.
Logically I'm thinking it goes like this:
$filelist = prompt for file with filenames
$directory = prompt for directory path where find command i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18008147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Force browser to display ISO-8859-1 without interpreting as Windows-1252 Historically, a lot of web pages advertising themselves as being in the ISO-8859-1 (Latin-1) encoding actually contained content in the Windows-1252 encoding (which is a strict superset of Latin-1).
This was enough of a problem that browsers up... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13280125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Cross browser video autoplay loop I have a copy of a mp4 video which I want to show on my website and I want to know how is it possible with javascript to autoplay and loop for ever the video.
I want to make it compatible with all browsers.
I want to load the video on load of the page with js
Thank you.
A: <video ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55052386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JSON_QUERY unable to handle NULL I have a table. Few columns are of String, Integer type. And few are JSON type. I am writing a query to form each row as a json object. I have issues with JSON_QUERY(jsondataColumnName). If the column is populated NULL JSON_QUERY fails.
I have already written query below.
select
(
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56935361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I want to display PDFs and images in Firebase Storage I would like to use FirebaeStorage to display PDFs and images.
↓The code below is the code to display the file list
(I was able to get the data from Firebase and display the List.)
class Gakubu extends StatefulWidget {
const Gakubu({Key? key}) : super(key: key... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73081624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ImportError: No module named django.core.wsgi for wsgi server setting I am setting with djano and uwsgi
$uwsgi --ini uwsgi.ini
My Django root is here /var/www/html/myapp/current
It must be quite simple setting however I am not sure the yet.
I have these two files
/var/www/html/myapp/current/myapp/settings.py
/var/w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60873411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Add style to bundled code using webpack GitHub: https://github.com/Chirag161198/react-boilerplate 1
Here is the react boilerplate I’m trying to make from scratch.
I have bundled html with the react code but I’m not able to add styles (CSS).
I have heard about ExtractTextPlugin but not able to configure it.
Please su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52000497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: MS Access: Report to contain info from third table I'm currently working on a database for a company, for them to use when making production orders. A report is to be made consisting of several things, mainly product number, order number etc etc. A part of the report is to be made up of a list of spare parts needed ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31166607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: cgridveiw to display fetched data via customized query I am a newbei in yii, when a person clicks on a category display him all products under that particular category in a gridview
view
productcategory
<?php $this->widget('zii.widgets.grid.CGridView', array(
'id'=>'admin-grid',
'dataProvider'=>$model->Selected... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20782979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HyperlinkedRelatedField doesn't work in drf-nested-routers I'm using drf-nested-routers as below
calendar_router = DefaultRouter()
calendar_router.register(r'calendars', views.CalendarViewSet, base_name='calendars')
event_router = routers.NestedSimpleRouter(calendar_router, r'calendars', lookup='calendar')
event_ro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32291902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Run Command Prompt Through Python (Or Vice Versa) I found myself doing a repetitive task and wondered how I can automate it.
I can write a function script with python(3), to iterate through each item in a folder, but I'm not sure how I would run that through command prompt.
I have sort of looked into how it would b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54683361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Uncaught TypeError: arr.filter is not a function I have printed arr values in console they are like
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
but whe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58949216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pyspark - Divide the customers into income buckets How to divide customers into income buckets using pyspark?
Assume I've 2 columns named Customer and Income having range 10K to 50K.
Now I want to Divide the customers into income buckets 10K -20K, 20K-30K etc using pyspark Data frame.
TIA!
| {
"language": "en",
"url": "https://stackoverflow.com/questions/74094948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I improve my RBX.Lua procedural generation code? This is my first post in stack overflow, and I have no clue whether I can post stuff about roblox development here.
But anyways, here I go. I'm making a top-down pixel art survival game, and am procedurally generating "flat" worlds with many different biomes. T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69529345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to test select html control object using SpecFlow? I have html select on page:
<select id="StateName" name="StateName">
<option value=""></option>
<option value="value1">value1</option>
<option value="value2">value2</option>
<option value="value3">value3</option>
<option value="value4">value4</option>
<option va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12443635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Creating private reminders using iOS API? Does EKEventStore allow the creation of "private" reminders, i.e. reminders that will be visible only to my app (the one that calls against the EventKit -- iOS events API) but not e.g. to Apple's default reminders app (for either iOS or OS X)?
A: The EKEventStore provides a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33706009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using "object" of mainfile, in function saved in other file In my work, I am receiving orders in PDF file, while I need to rewrite them into Excel table. Both Excel file and PDF file have every time exact structure, that does not change, so I have decided to automate this process and create python script that will d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25390710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Deciding which derived class is passed as an argument I'm struggling with my current design and would like to know, if theres a possibility to decide which method to call without using a casting method. Say I've got a base Fence class.
And at the moment my workers know how to build wooden fences and how to build bar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26590251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Custom filename for generated file in Jekyll In my _config.yml file I have defined the permalink like permalink: /posts/:title/ (notice the ending slash).
For a post in _posts/my_first_post/2017-05-06-my_first_post.markdown the generated file is _site/posts/my_first_post/index.html.
How can I change the filename fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43832908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: struts2 s:property tag: Better way to replace value? I have a POJO whose properties I'm displaying on a JSP using Struts2 property tags:
public Class message
{
string messageText;
string messageType;
//getters and setters, here
}
Text: <s:property value="messageBean.messageText"/>
Type: <s:property val... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11405282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to disable zuul decoding encoded slash %2F? I'm using a solution with Spring Cloud Zuul and Eureka. The REST application register itself with Eureka and Zuul provide access to the Service via Eureka Service Discovery.
I had to configure the REST application to accept encoded slash in URL with:
System.setProperty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56187583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: can not resolve method getProjection() and getMapCenter() i am implementing long click to get latlang on mapview,
i referred this tutorial. but i am getting error
here is my code:
import com.google.android.gms.vision.barcode.Barcode;
public class MyCustomMapView extends MapView {
public interface OnLongpressLis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36981171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Get list of values from grandchildren records I'm trying to access the grandchildren records in a list to avoid duplicate records. In this example, a tag can only be used once across articles for a given author. I will use the resulting list of grandchildren records in my clean function to return validation errors... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69397042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Multiple filter in single function using angularjs I try to filter two values like this | filter:{voucher_type: selectedName } | filter:{voucher_type: both }
Here both is "B" and selectedName "P or R". Below code work only one filter only.
I want to combine this two filter values together and show the result like vo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39242011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Should I still respond to html if view is rendered with javascript? I have a Rails application integrated with react, my views are rendered with react, including the html (JSX). I noticed that I had a few format.html responses from back when my views were regular erb views, now that they are not, should I still resp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39629595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python: how to deal with several .pyd dependencies with the same name? I have in my python workspace two Modules which need sip.pyd
Module1.pyd needs sip.pyd (which implements v 8.0-8.1)
Module2.pyd needs sip.pyd (another file, that implements v6.0)
So I can't just choose the newer one, it doesn't work: I have to ke... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8298978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Draw polygon with hole inside I need to draw a rectangle polygon with a rectangle hole inside. I found this piece of code but I couldn't manage to understand how I can modify to meet my requirement.
figure()
p = [0 0; 0 1; 1 1; 1 0]; %ccw
pp = [0 0; 1 0; 1 1; 0 1]; %cw
ph = p + [1.2 0];
# add hole
ph(end+1,:)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58443322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Grouping and Aggregating on multiple time series Im new to python and pandas and have some basic question about how to write a short function which takes a pd.Dataframe and returns relative values grouped by month.
Example data:
import pandas as pd
from datetime import datetime
import numpy as np
date_rng = pd.date... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59118129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can anyone solve the error in Spark databricks My SQL request:
SELECT Incident Number FROM fireIncidents where Incident Date='04/04/2016'
Error in SQL statement:
ParseException:
mismatched input 'Date' expecting {, ';'}(line 1, pos 57)
A: You have a space in Incident Date column.
If you want spark to know the co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69052422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use window lag function to partition the data with multiple sensor types I'm, trying to use the postgres LAG function to calculate a difference in absolute time between two sampling dates for each sensor in the system.
The best I have come up with is to use WINDOW LAG function to calculate a difference from e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51174903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: add typings for missing method (from a npm package) I'm using the package @types/cropperjs
unfortunately it is behind the current cropper.js versions and lacks the method scale.
So far I just manually added the missing method to the d.ts file under node_modules (this is obviously a bad idea, so don't do that! it was... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44408293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to remove unused blocks of code from a source code file? Let’s suppose I have a bunch of source code files (C or Delphi, i.e., *.c or *.pas). I want to purge them of blocks of text which are not used in the compilation. Those blocks are:
*
*Comments. They can be removed with regexp. (But, for example, Delphi
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61867535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Quasar Vue: Set static width content on Grid Style I'm very new in dynamic web programming but I get a little problem with Quasar Grid Gutter.
I have string on array with different word and length, I want to show them in Button with grid style. So I use Grid Gutter to build this. But I want the size of card is alway... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63663933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Blackberry SQLite optimal performance I've overcome many hurdles while trying to work with SQLite on Blackberry. Now I've reached the point where everything seems to work fine and I'm looking for ways to speed up my queries.
Sometimes my app retrieves a lot of data from a web service call, this data is parsed and st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10013520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Contact form not sending email and no notification working on contact form for my website. All tree form fields are validating correctly somehow the email is not send but looks page is loading again. Can anyone check my code and tell me where could be a problem here. Would like temail to be sent and notification to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35527463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Nested 'for' loop in Racket shows error 'not a procedure' I have the following code lines to do bubble sort in Racket. I find the syntax correct but it is still showing error:
(define List (list 1 3 5 7 9 2 4 6 8 0))
(define Left 0)
(define Right 0)
(for ([I (range (- (length List) 1))])
(for ([J (range (+ I 1) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60123482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Phoenix - client requested channel transport error While running my Phoenix app, I suddenly noticed an error being logged:
The client's requested channel transport version "2.0.0" does not match server's version requirements of "~> 1.0"
It appears after starting the server with mix phoenix.server:
[info] Running MyA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47420724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to convert short array to BitSet with 2 bit precision in Java? I have a short array {0,2,3,1,…} which I would like to convert to a BitSet.
Expected bits in bitset: 00 10 11 01 …
Every two bit in the bitset should represent a short. (2-bit precision)
This should work fine for short values (0,1,2,3).
I know that I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70658220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Direct X 11 Texturing FX file error X3004 undiclared identifier "input" I am trying to texture a cube but when i try to run the progam the fx file thows error X3004 undiclared identifier "input" but input is declared near the top so i don't understand whats going wrong. I have tried for 4 day's plz help.
This code i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34600044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Intelij uses 100% of CPU -> vmware is extremely slow I'm getting an usage 100% when the Intelij is running. After 20 min I cannot do anything on VMWARE and then I am forced to supsend or restart VM.
I tried to remove rm /var/crash/* but it did not help.
May you please advice me how to resolve the slowness problems?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73958272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Deduping a StringBuilder List of Items in C# I have a situation where I need to dedupe a list of columns in a SQL select statement that is being generated with a StringBuilder. I need to return a StringBuilder object as well.
The solution I came up with works but it looks like a dang nightmare. Can someone suggest a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28553734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MySQL to google charts PHP <?php
$con=mysql_connect("xxxx.xxxx.xxxx.xx","Myuser","Mypass") or die("Failed to connect with database!!!!");
mysql_select_db("data", $con);
$sth = mysql_query("SELECT * FROM data");
$data = array (
'cols' => array(
array('id' => '... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19232898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I access the value of a slot in a Svelte 3 component? I've been playing around with Svelte 3. I'm trying to create a basic Link component that's used like this:
<Link to="http://google.com">Google</Link>
My component renders a normal HTML <a> tag with a favicon in front of the link text:
<script>
export le... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56104899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How do I specify a type bound for Float and Double on a generic type in Scala? I am writing some simple Vector and Matrix classes. They look like this:
// Vector with Floats
case class Vector3f(x: Float, y: Float, z: Float) {
def +(v: Vector3f) = Vector3f(x + v.x, y + v.y, z + v.z)
}
// Vector with Doubles
case ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3462983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: calculating how many lines of code in ipython notebook just for curiosity sake - is there a way to find how many lines of code you've written in your ipython notebook? I have multiple lines per box, so I can't just count the number of boxes I have...
| {
"language": "en",
"url": "https://stackoverflow.com/questions/22234271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: XSLT to sum product of two attributes I have the following XML source structure:
<turnovers>
<turnover repid="1" amount="500" rate="0.1"/>
<turnover repid="5" amount="600" rate="0.5"/>
<turnover repid="4" amount="400" rate="0.2"/>
<turnover repid="1" amount="700" rate="0.05"/>
<turnover repid="2"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1333558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Code API default signature gsuite email in admin I am not sure how to input the code and location input the code for gsuite. So it is set up as default for each employee
| {
"language": "en",
"url": "https://stackoverflow.com/questions/51574059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: passing data to dynamically created ascx user control I want to display user control which produces different set of data depending on values which are being passed to it.
No. of UserControls are decided at run-time
*
*Now it dint Hit in Page_Load of ascx.cs
Default.aspx
<%@ Register Src="~/UserControl/SquareEUA.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26119091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Linux: Join two lines with an equal value in the SAME file I have a file that looks like this:
1 51 Brahui A C A A T
1 51 Brahui A C A G T
3 51 Brahui A C A G C
3 51 Brahui A C G A T
5 51 Brahui A C G A T
5 51 Brahui A C G G C
7 51 Brahui A C G A T
7 51 Brahui A C G G T
9 51 Brahui A C G G T
9 51 Brahui A C G G T
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9992215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Explain Traverse[List] implementation in scalaz-seven I'm trying to understand the traverseImpl implementation in scalaz-seven:
def traverseImpl[F[_], A, B](l: List[A])(f: A => F[B])(implicit F: Applicative[F]) = {
DList.fromList(l).foldr(F.point(List[B]())) {
(a, fbs) => F.map2(f(a), fbs)(_ :: _)
}
}
Can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9713910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Issue with deploying Azure project using Powershell 2 I used the Azure training kit command
New-Deployment
-serviceName <YOUR_SERVICE_NAME_LOWER_CASE>
-subscriptionId <YOUR_SUBSCRIPTION_ID>
-certificate (get-item cert:\CurrentUser\MY\<YOUR_CERTIFICATE_THUMBPRINT>)
-slot staging
–package <PAC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8642175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: can not create virtual environment for a django project I'm trying to create a Django project from scratch.
I executed django-admin startproject autoshine in my zsh terminal.
Then I opened pycharm and run pipenv install in its local terminal to create a virtual environment for this project. But I got this error:
ra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73843229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you get Ember Data to recognize that the server is returning IDs for hasMany relationships? My server returns JSON responses that look like this:
{
'book': {
'id': 252,
'name': 'The Hobbit',
'tag_ids': [1, 2, 3, 5, 6, 7]
}
}
I'm using Ember Data's DS.RESTSerializer, which I've extended to in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19216031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I use Django templatetags on Google App Engine? My Django site has many templatetags directories, can I use Django templatetags on Google App Engine?
A: Yes.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/2710832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: check which names have the same field in a database i have this table:
id name lastname id_op time
0 Richard Touch 5 8.00
1 Mattew Cast 6 9.00
2 Carl Cappai 7 10.00
3 Mario Bros 8 10.00
4 Luigi Same 9 8.00
I want to print in page ex:
"Richar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21646708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.