text stringlengths 15 59.8k | meta dict |
|---|---|
Q: I am looking for a way to use Vue props in a function I am looking a way to use props in a function. Yet the console says Cannot read property 'props' of undefined
How should I use props or pass the data to my function?
<template>
</template>
<script>
import {db} from '../plugins/firebase';
export default {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62499306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to read content from plain text remote file with objective-c I want to read a list (in plain text) from a remote file line by line.
I have found some answers but they're not the ones I'm looking for.
p.s. I've been programing in objective-c and developing in iOS for about 2 months, I'm a rookie i might not unde... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24784912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How To Extract Data From JSON with Rest Template in Java i have to extract the first 5 articles from https://newsapi.org/v2/top-headlines?sources=bbc-news&apiKey=19acc3a371d145ecb37a093f9985ea21, having a result like this:
{
"total": 5,
"articles": [
{
"source": "Ilmessaggero.it",
"title": "Title",
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57604384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: model with relation to other model I am using backbone.js and I have the following unsolved situation:
Assume you have two models:
var Person = Backbone.model.extend({
defaults: {
name: '',
age: 24
}
});
var Car = Backbone.model.extend({
defaults: {
type: '',
driving_pers... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13385903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL Server - how to "Generate and Publish Scripts" automatically I want to automatically (ideally from the command prompt in a batch file) automate the generation of the schema of my SQL Server 2008 R2 database.
In SSMS, I can right-click the DB, choose "Tasks", "Generate scripts", and then follow the wizard to gen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5068670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Using Integer.parseInt() Properly I imported a string from another activity, which i want to change into an int.
Bundle gotBasket = getIntent().getExtras();
Integer.parseInt(gotBasket.getString("lol"));
From what i've read, the above code is how to do it. However, i don't know what "key", variablena... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9490506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Launch lync-2013 app from wp 8 app (and pass parameters to it) I am trying to launch a Lync-2013 app from the Windows Phone 8 app that I am developing.
I will be passing the number that lync client will call.
Does anyone know how to do this?
A: You can try the lync: protocol to activate the app:
Windows.System.Laun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19610424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Shell script not exiting after a pipe to log file command Please find the below scrip.
When i run it, ./myscript.sh I am getting all echo statements in the terminal as well as in my log file.
But after the execution it is not exiting or coming back to terminal
Please help. I am quiet new to scripting.
#!/bin/sh
pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21603123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Operator Overloading Post Decrement I have to overload post decrement operator in which I have to Copy all elements of set1 into set2. After copying, decrement all elements of set1 (set2 = set1--;).
plzz tell me how can I implement this????
The simple post decrement operator I overloaded is as follows:
Set & operato... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61040466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Wildcard date form in JavaScript I want to check if string satisfies condition (First, second, fourth, fifth, seventh, eighth, ninth and tenth character can be any number. Third and sixth must be forward slash.) Like date format. I need this:
if (date !== SOMETHING ){
alert("Wrong input!");}
A: You can try to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29462326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ERROR: "._android-support-v4.jar" in project FacebookSDK Help needed!!!! Stuck for 2 weeks on this and help needed.
I've recently imported the facebook sdk for android and its projects into my workspace. It shows up errors and the problems:
Archive for required library: '/home/Documents/facebook-android-sdk-3.0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13841432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How come the linq syntax work over the IQueryable interface in Rx Framework I've started looking over the reactive framework. Very nice stuff. But while looking at code samples it got me confused. The linq syntax works with the IQueryable. I thought that linq only works with IEnumerable. On what does the C# compiler... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3088019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Redact parts of an audio file using python (FFMPEG) I have a use case where I need to dynamically redact parts of an audio file using python. For example sometimes I may have to remove between timestamps 10 to 15 and other times between 5 to 7, 12 to 16 and 21 to 26 . I have tried looking at FFMPEG and think it may ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63472388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Uploading and accessing files in Phoenix and storing them locally I want to be able to upload files, and in particular images, and store them locally. I'm aware of plug Plug.Static, but isn't it for static assets? Whereas uploaded files aren't static.
1) Also, I already have this in my application generated automa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38922635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to return a variable from a function as a global variable on click I would like to return "a=5" variable from the function on click as a global variable and then alert it. Can you please only reply with javascript codes and not jquery. I am trying to understand javascript.
function startBtn() {
var a = 5;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66996562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to change User Agent? Im making an app for Mac and the app is basically a WebView inside the viewController which can be accessed from the menu bar.
Its working fine, the webpages load from the menu bar. But the WebView loads the full page as if it was opened from Safari. How do I change this so that it opens th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39271245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why can't i use Type variable as a Type parameter to a generic class
class Cage<T>{
Cage();
}
class Chicken{
Chicken();
}
main() {
Type t= Chicken;
var cage = new Cage<t>(); //Does not work
var cage2 = new Cage<Chicken>(); //Works
}
Why cant I use Type variable as a Type parameter to a generic ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28060094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to specify range of port while creating httpserver? I am trying to create an http server using JDK's com.sun.net.httpserver. I am able to run the server with certain endpoints successfully. And it return some random ephemeral port ranging from 0 to 65536.
HttpServer server = HttpServer.create(new InetSocketAddre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75083265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: change - to + in Common Lisp Is there way to change - (minus) function to + (plus) function?
My homework is to implement sin calculation on Macluaurin series
sin(x) = x-(x^3/3!)+(x^5/5!) -(x^7/7!)+(x^9/9!)-...
Each article has different sign. This is my Lisp code
(defun sinMac (x series n plusminus)
(cond ((= ser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26823599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Google Translate API Key json format I am trying to use the Google translate API from a local machine (not google cloud).
Prior to running the following I have run
export GOOGLE_APPLICATION_CREDENTIALS=API.json
Where the API.json is:
{ "key":"the_key_code" }
After running this code:
import google.auth
from google.cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69324034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Incompatible row dimensions The task is to encode all the text and categorical features and again combine them to form the data matrix but am getting the error incompatible row dimensions.
My work so far:
Encode categorical feature using Label Encoder
from sklearn.preprocessing import LabelEncoder
enc = LabelEncode... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66625028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I check if a window has WS_VISIBLE to set? (or if is visible) How can I do it? It's an external window, not from my program. Thanks
A: One nuance to be aware of. IsWindowVisible will return the true visibility state of the window, but that includes the visibility of all parent windows as well.
If you need t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1061246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: cmd escaped after SoapUI test is finished I am calling SaopUI testrunnet from cmd file.
The problem is that lines after command for testrunner are not executed
I have unchecked "Fail testcase on error" checkbox in soap ui without any help.
Anyway, i have this issue regardless of test was successful or not
this is m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41832687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ajax Caching and Correct Format used? I have a JavaScript event that is called like so:
function addEvent(date, resId) {
$("#appPlaceholder").load("/Schedule/Add?date=" + date.format()+"&resourceId="+resId,
function () {
$('#eventModal').modal('show');
});
};
However... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43304559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to call a function within qx? Here's a bit of Perl code that does what I want:
my $value = get_value();
my $result = qx(some-shell-command $value);
sub get_value {
...
return ...
}
Is it possible to achieve the same effect without using $value? Something like
my $result = qx (some-shell-c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24285646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Application defined or object defined error - Excel VBA the following code gives me an Application defined or object defined error on the bold line. I set the range; however, apparently excel can't read it. I am not sure why that error appears. Any help is much appreciated! Thanks.
Public Sub specialattention()
'Loo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13829094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CSS Background Images Not Appearing on Mobile (iPhone) I have a header and several divs with background images that are not appearing on my mobile device (iPhone 5). Here is an example:
CSS:
#title_img {
background: url("title.png") no-repeat scroll center top / 100% auto transparent;
height: 125px;
}
The s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15421984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is the preprocessor macro "#define TRUE FALSE'" valid? Is the following define statement valid in C?
#define TRUE FALSE
A: Since we should expect TRUE is already defined when FALSE is defined too.
So in this case this would be a redefinition and be invalid.
If you stay intern the #define TRUE FALSE would be valid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18894206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: discord.js write and read JSON file I have a question. How can I let my DiscordBot write and read a JSON file? I have already programmed something but have only error. Can someone help me out? I would appreciate any help.
const Discord = require("discord.js")
const botconfig = require("../botconfig.json");
const col... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65772447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to combine subtotal and sumif with a range of criteria I'm trying to create a formula to combine a SUMIF (using a range of criteria) and a subtotal.
The SUMIF statement:
=SUMPRODUCT(SUMIF(E:E,O2:O21,G:G))
And where I've gotten on making that SUMIF subtotal:
=SUMPRODUCT(SUBTOTAL(9,OFFSET(G2,ROW(G2:G5000)-ROW(G2)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41595676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I mimic the redis MONITOR command in a python script using redis-py? Unfortunately, the redis-py library does not seem to have a Monitor routine. I would like to read all of the commands received by the redis server, filter them, and then log the ones I am interested in. Does anybody have an idea of how to d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10458146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Spring4 without XML - web.xml - translate to Java I do have couple of JNDI resources in my web.xml
This is for reading a external property file and path depends on environment.
<resource-ref id="resourceRef">
<res-ref-name>config/file</res-ref-name>
<res-type>java.lang.String</res-type>
<res-auth>Contain... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36299605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Testcafe test fails because "Failed to find a DNS-record for the resource" with VPN, but without VPN it works The test fails when I'm connected through the VPN but without it works fine. It performs a click to this URL:
https://www.google.com/search?q=let+me+google+that+for+you
I tried with the --proxy-bypass settin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58413363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: wso2is in distributed architecture i am a beginner in wso2 and working on a academic project that consists of deploying wso2 in a distributed architecture. I've been looking in wso2 documentation but I couldn't find something that can help me in this project. if u have any clue, that would be very helpful.
A: I do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48829384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: submit action doesnt work in Rails 4 when I submitted the form, the new data don't save in database and as a result I can not see them, but when I make a new data like welcome= Welcome.new and welcome.title="your are" by rails console they work and I can only see things that I have made in console not by application... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26027639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to throw an error when an attribute is changed? I want to make sure an error gets thrown when an attribute of an object gets changed outside the class. Here's how I tried to do it:
class Example {
constructor(index) {
this.index = index;
Object.defineProperty(this, 'index', {
set() {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56527816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to convert IntPtr to int A window handle sometimes of type int and other times of type IntPtr
int example:
[DllImport("user32.dll")]
static extern uint GetWindowThreadProcessId(int hWnd, int ProcessId);
IntPtr example:
[DllImport("user32.dll", CharSet = CharSet.Auto)]
static extern IntPtr SendMes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18173211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Make An Integer Null I have an update function that updates an sql server db table through a dataset. One of the fields in the table is an integer and accepts null values. So when I am populating the update function I need a way to enter a null in when the function wants an integer.
I tried to do it this way but _i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3628757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How to add row in DefaultTableModel under spcific index? I'm building a java application with swing component.
Now I want to create a JTable with 4 fixed row.
In detail I want a JTable(DefaultTableModel) with the last 4 row as fixed with my default value, and throught a Button I want to insert a new row upper this 4... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42137968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Prevent WebView to open links in other browsers I have a webview and I wish that if target=_blank, then do not open it in the browser, but remains open in webview.
I tried the code below:
private async void webView_LoadCompleted(object sender, NavigationEventArgs e)
{
await webView.InvokeScriptAsync("eval", new... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39244638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Entry Point Not Found Exception I'm trying to use a C++ unmanaged dll in a C# project and I'm getting an error when trying to call a function that says that entry point cannot be found.
public class Program
{
static void Main(string[] args)
{
IntPtr testIntPtr = aaeonAPIOpen(0);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3515270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How to hide dash between the bars in waterfall charts of Highcharts in iOS Basically I want to hide dash between the bars from waterfall chart.I am using highcharts iOS wrapper.I can only change type of dash but there is no option to hide or disable the same
A: You need to set lineWidth property to 0:
let plotOp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57176638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Is there a way to provide environment variables to a VSTS CI npm task? Essentially, I need a way to inject environment variables for my app since I don't want to check a .env file into my repo. I was hoping to run something like API_URL=api.example.com npm run build, but it looks like you can't prepend things before... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49578709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Get first text inside a tag using beautiful soup I need to get the salary range from span tag. I tried using find().text but doesn't work as the span tag has other tags in it.
job_list = soup.find_all("div", class_="d-flex flex-column pl-sm css-1buaf54 job-search-key- 1mn3dn8 e1rrn5ka0")
for job in job_list:
sal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72953840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: nested resources with optional verbs as resources in angular.js I'm having a bit of trouble figuring out how to create my angular resource properly.
.factory('Favorite', function ($resource) {
return $resource('/api/user/:id/favorites/:verb/:favid', {
id: "@_id",
favid: "@favid"
}, {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24136176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Facebook ads python sdk get_stats doesn't return "actions" field I can't get AdCampaign's get_stats() method to return the "actions" field. Snippet:
stats = list(ad_campaign.get_stats(fields=[
'impressions',
'spent',
'clicks',
'actions',
]))
print stats[0]
>>> <AdStats> {"clicks": 0, "impressions": 0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28725802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C#: System.IO.DirectoryNotFoundException: 'Could not find a part of the path I am getting an error as shown in the title. I have no idea why im getting this or as to how im supposed to fix this. Visual Studio is giving me the error shown in the title on this line: var f = System.IO.File.OpenRead(fil1);
class Program... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52686917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to prevent scrolling to the right in this jsfiddle I have the following jsfiddle http://jsfiddle.net/KfPOQ/
using a web browser it is fine however when on the ebay app on iphone or ipad i have to scroll right to see the full page how do I eliminate this issue?
A: You need to have the content of the page fit wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12713794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Got parse error with Mail config headers in ZF2 I use Zend\Mail\Transport\Smtp to send an email. Below is my code.
use Zend\Mail\Message;
use Zend\Mail\Transport\Smtp as SmtpTransport;
use Zend\Mail\Transport\SmtpOptions;
public function smtpConfig($message)
{
$transport = new SmtpTransport();
$... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33562602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: should I add app.js file in gitignore for nodejs/vuejs app? I am new to vuejs. Recently I noticed that when I pull, it says conflict in app.js file. But I can't find the issue as app.js file is big.
Sould I add this file to gitignore file?
what is best practice to work with vue js?
A: I imagine you are building to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53819213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can't use Twilio with python I used the code from the Twilio website to send a text message using python. I used real values, that I obtained during registration in the actual code. There aren't any XXXXXX in my program.
I removed the {{}} too. the code's still not working.
from twilio.rest import TwilioRestClient
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37751347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: enable button only if older than 90 days Good Day
I have a delete button which deletes entries on my database, problem is I want to disable the button and only enable it if it is older than 90 days.
I used this code and it's working but if it's not older than 90 days it still replies "successfully deleted" although ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22603931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to calculate size of directory on FTP? How to calculate size of FTP folder? Do you know any tool or programmatic way in C#?
A: If you have FileZilla, you can use this trick:
*
*click on the folder(s) whose size you want to calculate
*click on Add files to queue
This will scan all folders and files and add ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3164623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Theme Choosing on the basis of a certain API value I am working on a front-end project. My task is to receive an API token, then conditionally choose a theme (CSS file) for different API values.
now I have some plans,
1. doing something with package.json
2. using sass/compass
3. using webpack
According to project o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51439835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: subsetting using a threshold in R and returning a neighboring row using for loops So I have been stumped on this problem for being able to build a table based off a threshold using R. All I want to do is groupby(set_a,set_b) and select a value based on whether rank_of_values is greater than .80 (utilizing some past... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40007805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Match function? VBA not working properly I have a following code and i have "name" in cells B11 , B19 and B25 and i was expecting a result of 19 or 25 with the code but it returns Y=1. Could anyone tell me what is the problem?.
Sub mat()
Y = Application.Match("name", ActiveSheet.Range("B19:B30"), 0)
MsgBox Y
End S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20028769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# - Powershell AddPSSnapin Causes errors So, I import the System.Management.Automation dll and I'm trying to run a New-Mailbox command with params
so I use:
RunspaceConfiguration config = RunspaceConfiguration.Create();
PSSnapInException psEx = null;
config.AddPSSnapIn("Microsoft.Exchange.Management.PowerShell.E201... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17200314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: XEN: How to change domU-persistence? I have several running Xen-domUs, now I want to manage them using libvirt / virsh and noticed they all are defined as transient VMs.
Can I somehow change them to be persistent?
A: That's the difference between:
virsh create
and:
virsh define and virsh start.
The first one will ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28859947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Should the authorities on the token storage be updated when refreshing a token? I'm implementing role-based Jwt which includes authorities attribute inside of Jwt claims. Currently, I use Jwt customizer for extracting authentication object from the context and put it inside of Jwt claims like this. The problem is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75581975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: GCP Dataflow - getting data from PubSub to report to the sentry I am wondering if it is possible to get data from pubsub and send it to sentry. I mean:
sentry.init(...., integrations=[BeamIntegrations()])
try:
with Pipeline(optins=options) as pipeline:
(
pipeline
| io.ReadFromPubSub(...) // example messa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73886829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MySQL, Foreign Key contraint fails in SP, but not when executing manually the task I am executing seems so simple. But this behaviour is very creepy indeed.
I am using MySQL.
I am having a Table for uploaded files - containing ID, FileName, FileHash, UploadDate, UploadUser etc.
Basically, these are XML Files.
And I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61207264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Git Hub Pull request builder plugin I am new to git. I am currently performing a poc using githubpullrequestbuilder plugin.
The GIT configuration looks as follows:
The plugin configuration is as below:
I wish to achieve the below use cases:
*
*Whenever a new Pull request is created a jenkins job should be trigg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49628427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Toggle all td's class in column on checkbox checked I'm looking for solution,
I have table with checkboxes at the top of each selected columns.
I want to make click all td's in "checked" column by one checkbox click.
fiddle so far:
$(':checkbox').on('change', function(e) {
var row = $(this).closest('tr'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46098036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Rails generating JSON Object I want to generate a JSON object while fetching data from database.
def duration
return @data[:duration] unless @data[:duration].nil?
@data[:duration] = per_hour.collect do | val |
[val[0], val[1]]
end
end
I get the data I need, but the array isn't correct. My view looks lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31449578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to put space betwwen Vertically Aligned X-axis label in matplotlib I have aligned my Xticks Vertically but all the labels are collapsed closely shown in the figure below:
This is my code for the above-shown Figure:
plt.plot(x_train.T,"*")
plt.xticks(rotation='vertical')
plt.show()
I want to put space between... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57981310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: git ssh: conect to host port 22 bad file number; can not pull I just installed a fresh Windows 7 Home Premium on my PC and wanted to reestablish my conection to a Git server. Therefore I copied my old .shh folder from the old installation into C:\users\user.ssh including a id_rsa, id_rsa.pub, known_hosts and a key.p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28796285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Storing millions of URLs in a database for fast pattern matching I am developing a web analytics kind of system which needs to log referring URL, landing page URL and search keywords for every visitor on the website. What I want to do with this collected data is to allow end-user to query the data such as "Show me a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2981518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Simple WPF combobox filter I have searched Google for a simple solution to this but no luck. I have a standard WPF combo box which I would simply like to be able to filter the list displayed according to the first 2 or 3 letters a users types when the combo box has focus. I tried some coding including some lamba exp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34382459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Starting Chromium with switches in file? I am running chromium on linux and need to find a way to put all of the startup flags into a file instead of pushing them through the startup command
e.g:
chromium --disable-pinch --disable-sync http://URL
is there a way to have these flags or "Switches" in a config file or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38642214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to declare "any" module in TypeScript? I need to migrate step by step some large project from js to typeScript.
I rewrite on of the files in ts and i want to specify that other files at this moment can contain any content.
For example something like that:
declare module jsModule:any;
var obj:jsModule.cls = new j... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31729668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Javascript NaN function This function receive values for another one (the generation parameter). My objective is return onde array in cloneGene variable, although it appears like NaN and I do not know why.
function SampleWithReposition(generation, newGeneration) {
newGeneration = [];
generation = Starting_gene... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18854296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to change add-to-cart form? Is there a way to change the WooCommerce add-to-cart form through functions.php?
The goal is to add a checkbox for an additional product. When the checkbox is checked this product will also be added to the cart after a click on the add to cart button.
I am looking for a solution which... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34115452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to make a radio button in Jquery UI? How can I make the check box a radio button? I want to add a radio button before By buffer and By polygon.
dialog1.empty();
var header = $('<h5></h5>').text('By buffer');
var toggleBtn = $('<button><i id="toggle-icon" class="fa fa-circle"></i></button>').attr('id', 'toggle-b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44233541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: FileNotFoundException (The filename, directory name, or volume label syntax is incorrect) I am trying to access a file like this:
public class Main {
private static class RemoteAdapter implements SpellcheckerRemoteAdapter {
private Spellchecker spellchecker;
private String fileName = "deutsch.txt";
File fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50454438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mobile Ads Refresh Rate & Optimization I'm looking to add mobile ads using Mopub.
In thinking where and on which activities to place ads, I'm thinking more screen views = more ad refreshes = more CPM impressions
However Mopub's guide emphasizes click throughs and asks not to refresh the ad often. I think their ad re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30605852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Recursive Function in MS SQL I have following two tables:
SELECT [AM_ID]
,[AMI_ID]
,[Parent_AMI_ID]
,[AMI_Code]
FROM [Reporting].[dbo].[DIM_AM]
;
This table contains hierarchy (37 rows)
SELECT [AMI_ID]
,[AMI_Name]
FROM [Reporting].[dbo].[DIM_AMI]
;
This table contains entities (AMI_Name).
And i have to mak... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33258924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IBM MobileFirst 8.0.0 - WorkLight Logger and Analytics not working I have implemented WL Logger and WL Analytics in my ionic app. But the logs(Client side + Server side) are not publishing on the console.
My steps are:-
1. I have enabled MFPLogger on my console.
2. Initialize WL using
enter code here
WL.Client.i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47151244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I modify a SELECT query to force specific values to be returned for a column, without updating what's actually stored in the table? I don't know if this is possible, but hopefully this is pretty simply to answer.
Lets say you have read only access to a database (Oracle 11g in this case). You are querying data... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21297523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WS-securitypolicy in cxf-bc deploy in servicemix I was wondering if it is possible to build a cxf-bc with WS-SecurityPolicy instead of just the WS-Security. WS-SecurityPolicy seems to be a more elegant solution since everything is in the WSDL. Examples welcome. :)
Well with David's help I got the CXF-BC to instal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2554489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Block multiple UI threads for a dialog in WPF In the moment, I have a problem with multiple UI threads in WPF.
I have a third party component, which I need to use in a project. Unfortunately, every function of the component needs to be executed in the UI thread. The component itself has some long-term operations. F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16914170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Detecting mostly empty images using imagemagick I'd like to use imagemagick or graphicsmagick to detect whether an image has basically no content.
Here is an example:
https://s3-us-west-2.amazonaws.com/idelog/token_page_images/120c6af0-73eb-11e4-9483-4d4827589112_embed.png
I've scoured Fred's imagemagick scripts, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27107923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: bar chart with Matplotlib Here is my data structure:
data = {'2013': {1:25,2:81,3:15}, '2014': {1:28, 2:65, 3:75}, '2015': {1:78,2:91,3:86 }}
My x-axis is the number [1,2,3]
My y-axis is the quantity of each number. For example: In 2013, 1 is x axis while its quantity is 25.
Print each individual graph for each ye... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32956199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Add inner corner curved border to active menu I am trying to create an inner curved border for active/selected menu. Below snippet is so far the best I can do, the square corner shouldn't be visible. Solutions from google doesn't seem to help... Please help me play with it. Thanks guys!
FIDDLE HERE.
body {
bac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29595989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to convert http.get() to http.post() in angular js? I have following url in http.get() request
var ipaddress ="192.160.0.20";
var name = "root";
var pw ="root";
var loginUrl= "http://" + ipaddress + ":8080/managemind/user.cgi?ACTION=login&LOGIN=" + name + "&PASSWORD=" + pw + "&CLIENT_TYPE=mobile&SUBSCRIBER_ID=N... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39072015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How can I write output with javascript? I have created a jsfiddle with a code that is intended to replace a string inside a paragraph with a string stored in a button. As far as I can tell, it's right. But I can't get it to work. Can someone point out my mistake?
<p id="arbitraryIdentification">Product information</... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34231668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Find all instances of "Replace" but not ".Replace" Due to the unfortunate choice of method naming, this is proving nearly impossible to find an answer to this using SO/Google searches...
TL;DR How can I find all instances of the function Replace( in my application, but not the extension method .Replace(?
Long versio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40493480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to Insert an Image in a MongoDB database and display it on a webpage using PHP? I am writing some code to display Images on Web page. The next code show data in the web but not the Images. what can I change to show the Images in the web.
<?php
$m = new MongoClient();
$db = $m->selectDB("local");
// Get the us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38554854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I simplify 2 methods with only Parameter different? I have 2 methods with exactly same body. Only the second parameter (Class or TypeReference) is different. How can I make one method out of this or at least extract the body so it is not duplicated ?
Thanks.
public static <T> T mapResponseBody(ApiException e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70020212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Post Variable to PHP script I am unable to post a string to a PHP script by sending it as xmlhttp data.
What I am really trying to do is reading that data which I am sending now as a hard-coded string, from another variable.
What I have now is the following code:
xmlhttp.open("POST", "test.php", true);
xmlhttp.se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46035376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Displaying data from a SQLiteDatabase with adapter Code for the DBHelper class:
class DBHelper extends SQLiteOpenHelper {
private static final String DATABASE_PATH = Environment.getDataDirectory()
+ "/data/test.data/databases/";
private static final String DATABASE_NAME = "test.sqlite3";
pri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9068956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Prolog different variable, same value If you query e.g.
?- X = 10, Y = 10, Z = 10.
The output is
X = Y, Y = Z, Z = 10.
But my X is totally different from Y, they just happen to accidentally both be 10, so it doesn't seem clear/logical to display it that way.
Can i make it look like this instead?:
X = 10, Y = 10, Z... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74508165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Compiling ocaml can't find module in opam library, Js.ml in js_from_ocaml Trying to compile ocaml into javascript.
Some OCaml code I have put in https://gist.github.com/larsr/6b3cd6f62d54d56e3f9a uses the menhir parser, and the js_of_ocaml library together. I've installed them with opam.
The code comes from http:/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32760603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why are my classes not found even though my imports are correct? The Classes ADSTool and the Class PPM are not found by my compiler. I'm using Eclipse Helios. The docs say that I have to import java.lang.Object for both, and I imported java.lang*; I can't see why this isn't working.
A:
The docs say that I have to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5406658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to access azure web app console or kudu console locally using putty or mac terminal? I have hosted a web app in azure and I am able to use console through kudu console or azure dashboard but for better development workflow, accessing it through mac terminal is essential.
I don't know how to access azure's web co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47815214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why doesn't OpenSSH work but paramiko does when using ansible playbook? I am running ansible-playbook with
ansible-playbook -u vagrant -i .vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory playbook.yml -c ssh
This throws error fatal: [default]: UNREACHABLE! => {"changed": false, "msg": "Failed to con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74460537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Return content of read-only Here is the HTML:
<div id="ifld1014" class="ax-terminal-field x20" title="" style="top: 272px;
left: 154px;"><input type="text" maxlength="30" size="30"
class="ax-terminal-inputField ax_x20i" readonly="readonly" style="width: 240px;"></div>
Here is some of my casper code:
var x = requi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30971266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Tomcat: not appending trailing "/" when finding a directory I deployed a .war archive in Tomcat 7.0.22 (Java 1.6, MacOS Lion). The war is called "myapp.war" and so Tomcat is serving http://localhost/myapp (having expanded the war in /webapps/myapp). This is the usual behavious
When accessing a url that corresponds t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7852396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to use npm installed package in laravel application? I want to use select2 package in my laravel 5 application.
I installed it using npm install select2 and also ran npm run dev. It appears in my node_modules folder.
But how do I actually refer to the files - js and scss of select2 package in my app.blade.php ?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52402858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to fix error with resource routes definition Here https://laravel.com/docs/5.7/controllers#resource-controllers I read that defining a resource
I had post/put methods :
POST /photos store photos.store
...
PUT/PATCH /photos/{photo} update photos.update
but defining in routes/web.php next resource routes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54122748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How To Obtain Monthly Data from Quarterly Data Problem:
I have quarterly level data. I need to perform a month over month analysis. Is there a function, or a ggplot feature that will interpolate the quarterly data and fill in monthly data?
Reference Data:
dput(HPF[1:25, ])
structure(list(region = c(1, 1, 1, 1, 1, 1,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49161987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.