text stringlengths 15 59.8k | meta dict |
|---|---|
Q: Pyspark: how to read CSV file with additional lines so I am having the following CSV file. It has some additional strings between the valid rows. Excel seems to do a good job when reading those(and just ignores the additional ones).
However, the story with spark is a bit different.
I have set it as spark.read.csv(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67752545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to test redirect to created instance in Flask Having following function in views.py:
def ask_question():
form = QuestionForm()
if form.validate_on_submit():
question = Question(title=form.title.data, text=form.text.data)
db.session.add(question)
db.session.com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27998027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to generate dynamic menu and components in angular based on API response I want to (propably) dynamically generate some number of menu positions and components reffering to these menu positions based on API response. Response to c# backend would be made on application start in app.component.ts. Those menu positi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66929396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Wrong output in printing values using for loop in C I wrote a simple C program to print all the multiples of 3 but there is some error during runtime my code is:
#include <stdio.h>
void main(void) {
int i, x;
for(i = 1; i < 1000; i++) {
x = i % 3;
if(x == 0) {
printf("%d\n", i);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21643716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: (Karate) How to intercept the XHR request response code? I am testing a login functionality on a 3rd party website. I have this url example.com/login . When I copy and paste this into the browser (chrome), page sometimes load, but sometime does not (empty blank white page).
The problem is that I have to run a script... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69743436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ms-access queries I never really did ms access queries, but today I need one. I have 2 tables, models and orders. From first table one 2 fields are of interest here: number and color, from second only number which can only be equal to values of number from table "models" . What I need is to select most frequent colo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13229802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Job for docker.service failed because the control process exited with error code while trying to start docker service in Manjaro[Arch] Getting this error while running docker pull manjarolinux/base:
Using default tag: latest
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon run... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74487333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Jquery button toggle show hide div I have these two divs on a page with two buttons beneath them to control hiding and showing them respectively.
<div class="threeSixtyContainer">
<div class="toggle360" style="display: block;" id="Blue">Im Blue</div>
<div class="toggle360" style="display: none;" id="Red">... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20631764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: g++ __FUNCTION__ replace time Can anyone tell when g++ replaces the __FUNCTION__ 'macro' with the string containing the function name? It seems it can replace it not until it has check the syntactical correctness of the source code, i.e. the following will not work
#include <whatsneeded>
#define DBG_WHEREAMI __FUNCT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3213571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: show ruby date as a RFC 3339 timestamp Does anyone know how I can convert a ruby time class instance into a RFC 3339 timestamp?
The output should be something like this:
"2013-10-13T13:34:52.000+02:00"
A: require 'date'
Time.now.to_datetime.rfc3339
| {
"language": "en",
"url": "https://stackoverflow.com/questions/21300362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using class properties in angular templates I am trying to use a property from a template in angular. It doesn't work and I can't figure out why. I've set up an example here:
https://github.com/Fulkerson/angular-property
It is the example from the Tour of Heroes. My commit adds the property propname which simply ret... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49389512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How do debug Bot code accessed via DirectLine API? We are developing a bot that will primarily be accessed using the DirectLine API. As the bot and the client app are still in development, the development is made difficult by the fact that we cannot Debug both the client app and bot on one box since DirectLine API c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38771411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: javascript delete not working rails i have a partial am rendering which works well when am creating through javascript but deleting it via javascript is not working , maybe there is something am doing wrong but ma code is thus ...
the partial rendering
<ul id="<%= dom_id(feed) %>">
<%= render :partial => ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22358312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android Events: When implementing interfaces is it better to use the outer class or anonymous classes This is an example of using outer class
public class MyActivity extends Activity implements OnClickListener {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4750498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Start application when file is received via Bluetooth My application should start when any file is received via Bluetooth.
Please tell me, which intent is fired when a file is received via Bluetooth?
A: There's no such specific intent action which tells that a file is downloaded. However, you should listen for the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10174805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Just scaling a rectangle I'm trying to start with processing.
Now I'm just trying to scale a rectangle. I have found this example:
float a = 0.0;
float s = 0.0;
void setup()
{
size(200,200);
rectMode(CENTER);
frameRate(30);
}
void draw()
{
s = s + 0.04;
translate(width/2, height/2);
scale(s);
rect... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5569968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Angularjs ui-grid export functionality, Display dynamic data in the exporterPdfHeader Using Angularjs,ui-grid and uiGridExporterService exporting the data in the grid view. I'm using this export option in report functionality so when I export (PDF) need to display the filtered inputs in the PDF view.
$scope.gridOpti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56902904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating a custom Authorize attribute with specific rules I'm trying to create a custom Authorize attribute to do the following:
*
*If the user has a role of "Regular user" - he is redirected to /index/subscribe
*All other users(Administrator,Subscriber) gets access to /Search/Index
This is when the user tries... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40310739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Two Python instances, same libraries I currently have both Python 2.6 and 2.7 running on my Linux machine.
Now, from Python 2.7, I can't access the libraries that I installed through package manager for Python 2.6.
I tried uninstalling the library and installing it back with Python 2.7 installed as my default runtim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5981933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Convert an RDD to a DataFrame in Spark using Scala I have textRDD: org.apache.spark.rdd.RDD[(String, String)]
I would like to convert it to a DataFrame. The columns correspond to the title and content of each page(row).
A: Use toDF(), provide the column names if you have them.
val textDF = textRDD.toDF("title": St... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33023330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: make cells mandatory to fill in google sheets with javascript I am new to programming. Is there a way of making a cell mandatory to be filled in google sheets or microsoft excel using javascript, where by a message pops up to remind users to fill in the cells.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/61490910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: sum calculation for position in intervals in pandas dataframe I have a pandas dataframe with intervals (define by start and stop) :
df = pd.DataFrame(
{
'start': [1,1,1,2,2,2,2,3,3,3,3,3,3,3],
'stop': [9,9,10,10,10,11,11,11,11,12,11,12,11,11],
'percent' : [0.51,0.29,0.92,0.60,0.10,0.12,0.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67772460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Annotate datatime calculations How could I cast datetime to seconds and perform calculation on that or directly perform calculation on datetime?
for example:
User.objects.annotate(min=Min('created'), max=Max('created'), perc=F('created') - min/(max - min))
User model
class User(AbstractUser):
...
created = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63243228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Help with jQuery's .live() method I have a function that dynamically creates links for a photo gallery. The function also produces a larger image as a background image of a div when and thumbnail is clicked on. What I want to do is have a third event, where if the user clicks the enlarged image in the div, the jQuer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3424668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Inverse Cosine in Python Apologies if this is straight forward, but I have not found any help in the python manual or google.
I am trying to find the inverse cosine for a value using python.
i.e. cos⁻¹(x)
Does anyone know how to do this?
Thanks
A: To augment the correct answers to use math.acos, it is also worth kn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6745464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: How to use @HiltAndroidApp annotation but there's no Application class in the project? As Android documentation said:
All apps that use Hilt must contain an Application class that is annotated with @HiltAndroidApp
When I create an Android project from template (Tabs template of Android Studio) it seems not to prov... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66515230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I exclude multiple terms in Kibana 4 How can I exclude multiple search terms in Kibana 4? If I type in only one term, it excludes it...but how can I have more than one excluded term. For example, the term "not yet classified"
A: If I understand your question properly, you're trying to use the "Exclude Patte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29174649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Multi-branching model currently I have a task about branching model I should use.
Right now I have master branch and I am branching release branches from time to time to release branches about new features. This is how it looks my branching model right now.
master
|
|---- release 1.0 branch
| |
| |
| |
| |--... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34745089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is iOS capable of accessing and manipulating files on a Windows network file share? I'm planning an app for work and venturing into potential features which I've not used before.
Essentially I need to be able to access files on a network share, read, write and delete files as well as amend the file names. As a prett... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42936488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: In google sheets, how do you use googlefinance to get the high price of a stock in a date range? I wrote the following formula, and it only returns the high of the starting date and not the high of the entire date range: =INDEX(GoogleFinance(C7,"high", A7,B7,"DAILY"),2,2)
where C7 is the google sheet cell that cont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50421851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to reference a method on the object itself In java I can write
Arrays.asList("test ").stream().map(String::trim);
If I try this in groovy
Arrays.asList("test ").stream().map(String.&trim)
I get
Caught: groovy.lang.MissingMethodException: No signature of method: java.lang.String.trim() is applicable for a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51266993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: stripe.net - how to process subscriptionService.Get with no results The stripe.com API only returns active subscriptions. I want to verify when I delete a subscription.
So this is going to return an error. I am not sure how to code for it.
I would prefer to make this call based on the subscriptionId. Will this cause... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26529546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Which components do what when using Python with OpenCV? I'm quite puzzled about what to use or install, because there are a plethora of components old and new, and the relationship between them is quite unclear to me.
There is OpenCV, the C++ library that does the heavy lifting.
Then there are various packages that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56776166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to insert COUNT value of another table in column of a table Hey I have a two tables
Likes
And other table
Comments
I want to total likes in comment table . How can i achieve this . I just write fake query in comments table just for understanding i want effect like that , any ideas please
A: INSERT INTO Desti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40288728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C, Fast way to limit a number to <= 64 Which is the fastest way to limit a number to 64 inclusive (ie. <= 64)
len = len > 64 ? 64 : len; /* limit to 64 */
Thanks!
A: Don't bother. The compiler optimizes better than you could.
You might perhaps try
len = ((len - 1) & 0x3f) + 1;
(but when len is 0 -or 65, etc...- ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50492891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to display json data using ng-repeat? I am trying to Json data using ng-repeat. But the web page is either showing as white page or a blank page.
The Json:
{
"questions": {
"q1": {
"qText": " question1",
"result":"result1",
"options":{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42028135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: ways to run external shell commands in sbt How can I run external shell commands once I am in sbt interactive shell?
That is, after I type sbt and see the prompt showing up, how can I do things like ls, or cd etc.? There should be a way to do this, correct?
Thank you.
A: On http://www.scala-sbt.org/release/docs/Com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16202024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Doctrine many-to-one association keeps pulling all rows from associated table I'm attempting to set up a many-to-one relationship between a series of sales memos and transaction records.
/**
* @var TransactionInterface
*
* @ORM\ManyToOne(targetEntity="Twb\Common\Model\Broker\TransactionInterface")
* @ORM\JoinCol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18836988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WPF Scale Transform and ScrollViewer - When Zoomed can't scroll beyond original size I have a StackPanel inside of a ScrollViewer.
I have a slider that does a scale transform on the stackpanel to allow zoom-in and zoom-out functionality. The problem is that when I zoom in, the scrollviewer doesn't treat the content... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1579167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: jRuby on Rails vs Grails I'm looking to develop a greenfield web application which will reuse a lot of Java components. To me, the obvious options for this are Grails or jRuby on Rails, but I'm having trouble finding objective comparisons of the two. Are there any clear reasons to pick one over the other with resp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4204416",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Downcast of function call failing in Swift I have a dictionary that contains function calls plus a generic method for adding functions to that dictionary. The moment I downcast that generic function so that I can add it to the dictionary, the compiler crashes.
You can see that when you put the following code in a pl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25707915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Access 2007 Encrypted BackEnd Slow Only With New ACCDB I have encrypted back-end ACCDB on Win/2003 network.
Front-end on user workstations. Link tables and make copies. All works perfectly.
I open a fresh blank database and link to same back-end. It is extremely slow, but only from a new front-end. Clicking on a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2126351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Context menu not working on CSS table I have a table on my webpage. I recently changed this from a HTML table to a CSS one. I have a context menu that displays on each row of my table. The context menu was working on the HTML table but not the CSS one.
HTML: (sample of CSS table)
<div class="tbody">
<div class="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36764386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Authorization architecture in microservice cluster I have a project with microservice architecture (on Docker and Kubernetes), and 2 main apps are written in Python using AIOHTTP and Django (also there are and Ingress proxy, static files server, a couple more made with NginX). I'd like to split these Python apps int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64687757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Imagemagick issues with Ruby I'm trying to run a ruby script from the command line, and getting the following error:
/Users/.../.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require': dlopen(/Users/.../.rvm/gems/ruby-1.9.2-p320@stitching_cron/gems/rmagick-2.13.2/lib/RMagick2.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15026367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQueryUI droppable and sortable - cant change the order and few bugs i cant fix I have put most of the code together, just cant get few things working: -
*
*Items in the "Selected DVD's" area I need to be able to change the order of these DVDs in this list only, so i can change the order from 1,2,3 to 3,1,2.
*I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15545578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to delete or invalidate gecko / firefox session without closing browser? Is it possible, using the gecko / firefox XPCOM interfaces, to delete or invalidate a user's active session without closing the browser? I am using Gecko embedded (specifically GeckoFX) in an application where it is possible that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2308170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to send an email with attachment in C# I created a button that changes the name of fields on a word document.
Now I'd like to send that document in an email with the same button. I looked at many tutorials but none of them were successful
private void button2_Click(object sender, EventArgs e)
{
var applicat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22083214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Effective way to cache GameObjects including meshes/textures? Problem:
If possible, I want to cache full GameObjects including meshes that don't exist in the assets, in a way such that I can load them roughly equally quickly as if they were just one of the assets. Even on closing and reopening the app.
Context:
I'm ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71718077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Number of iterators depending of a variable with np.nditer I have to iterate over numpy arrays whose the number can be different at each iteration of the program. The goal is to calculate the variance between the same element of these arrays. Here is the code I wrote :
for a,s,m in np.nditer([cost_surfaceS[i].ravel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56821141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to reformat dataframe using pandas? I have the following dataframe:
data = {'Names':['Abbey','English','Maths','Billy','English','Maths','Charlie','English','Maths'],'Subject Grade':['Student Name',85,91,'Student Name',82,74,'Student Name',83,96]}
df = pd.DataFrame(data, columns = ['Names','Subject Grade'])
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64859945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best way to store long binary (up to 512 bit) in C# I'm trying to figure out the best way to store large binary (more than 96 bit) numbers in C#
I'm building application that will automatically allocate workers for shifts. Shifts can be as short as 15 minutes (but this might be even smaller in the future). To avoid ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6632084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to add css of a div when checkbox checked? The Code:
#menu-open:checked ~ .logoib {
-webkit-filter: invert(100%);
filter: invert(100%);
}
<div id="logo" class="logoib"></div>
<input type="checkbox" id="menu-open">
<nav class="menu-list">
<a href="#" class="firsta">Home</a>
<a href="#">My Wor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36437393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to include github html file in html with php ? Suppose I have a HTML file as --
https://raw.github.com/USER/PROJECT/master/file.html
How do I make it available in my website. One method will be using the rawgithub service and then using something like iframe but I want the HTML to be inherited in my website so ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20717657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: TypeError: trace(): argument 'input' (position 1) must be Tensor, not method I get this weird error when I start my script I really don't know why this error is caused or by what it's caused. It would be very very nice if some of you guy's could help me out with this error:)
Error message:
File "c:/Users/supre/Doc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66924471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does the EclEmma coverage tool perform node or edge or condition or path coverage? I have a question about EclEmma coverage tool,
Does the EclEmma coverage tool perform node or edge or condition or path
coverage? Explain
Thank you
A: EclEmma - is Eclipse plugin based on Java Code Coverage Library called JaCoCo t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42049091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Nested Jasmine Spies on SpyObj I have a constructor that receives a spyObj called TestService:
constructor(private testService: TestService) {
testService.getTestData().subscribe((settings) => {
this.settings = settings;
}
}
Using Jasmine, how can I create spies for subscribe() and getTestData() on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49265181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Image size is too small while uploading from local storage, Microsoft Face API I m calling Microsoft Face API for detecting the face in an image.
While loading an image from local , I always get an error as below
{ code: 'InvalidImageSize',
message: 'Image size is too small.' }
But using the same image via URL ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46790435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to iterate through a directory and sub-directories using a URL I'm trying to iterate through files in a directory and files in sub-directories within:
<?php
$dir = get_stylesheet_directory_uri() . '/js';
echo $dir;
$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir), RecursiveIter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44138906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Django manually fail transaction after done with for loop I'm trying to run over a for loop that validates objects and saves them, and I want to fail it all if at least one have failed, but only after going over all the objects. I've tried different approaches, but on all of them - even if there was an exception, at... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49362590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Product management System Tracking with Google Tag Manager I am working on Product Management system site in which on the enquiry of a product i fill a contact us form which has the info of that product as follows
as soon as the form is submitted it leads me on the thank you page where I have added the following c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32884917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: JOIN inside a SELECT MAX in Postgres I have the following query that returns these two elements.
SELECT ticket_holds.id, ticket_holds.created_at, orders.user_id, users.id, charges.payment_method
FROM ticket_holds
LEFT JOIN order_items ON order_items.id = ticket_holds.order_item_id
LEFT JOIN orders ON orders.id... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44215811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: WPF vs Win App battery usage We want to use wpf application on tablet and looking for difference battery usage impacts between win app and wpf application?
Is there any comparision battery usage or document?
A: I doubt there is any type of documentation on what you want, but as suggested above, running your own tes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32881183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Set branch permissions from Azure DevOps Pipeline with tf.exe I have a Powershell script that tries to set branch permissions that is getting called in a Build Pipeline. Unfortunately, I am getting an unauthorized error and I'm not sure why.
Code Snippet:
$tfExe = "$(split-path -parent $MyInvocation.MyCommand.Defini... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58963611",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Blocked by Play Protect for a signed release APK I have a React Native (Android) app and for which I signed as per the instructions here;
https://reactnative.dev/docs/signed-apk-android
I generated a release APK which is also all fine (no errors). I then downloaded the APK to my android device and when I clicked to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64263677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ember inject function I have some function which i use in couple controllers
App.AController=Ember.Controller.Extend({
area:function(){}
});
App.BController=Ember.Controller.Extend({
area:function(){}
});
cause i new in Ember i want something to write function in one place and then inject function in Contr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41943692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to get JaCoCo instrumentation code coverage while executing webApplication on server I want to get a code coverage report (or tracking controller flow of an application) when I execute the some scenario on live application i.e. while application running in server, so I have refereed the official Jacoco documenta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42133100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to add exclude data in Firebase rules on multiple levels? I have my rules set. Normally, all data can only be read by the person who is auth to do so. However, I want to make exceptions. These are my rules:
"rules": {
"users": {
"$uid": {
".read": "$uid === auth.uid",
".write": "$uid =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42426347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why the first if statement conditional is ignored and the last else is executed? When I type in John and 0 the "John is great" statement is not executed. I don't understand why.
I know that the question might be really simple but I checked the code in Java and it was working correctly.
print("Hello world")
myName = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58138436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: undefined attribute in use of $controllerProvider in Angular I'm a newbie in Angular, i whant to make use of $controllerProvider, i see an example like my code, but the attribute register got undefined:
var appTmw = angular.module('appTmw', ['ui.router']);
appTmw.config(function($stateProvider, $urlRouterProvider, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36439887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Catch if user presses enter key in textbox I'm trying to catch in a Event if the user presses the enter key. If followed these instructions found on the MSDN documentation pages.
This is my Event code for the Textbox:
Private Sub tbOccurrenceElevation_KeyDown(sender As Object, e As KeyEventArgs) Handles tbOccurrence... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43119166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adding Icons on TabBottomNavigation React Native I have This navigation, how can I add Icons on the bottomTabNavigator
const switchNavigator = createSwitchNavigator({
mainFlow: createBottomTabNavigator({
Home: createStackNavigator({
Search: SearchScreen,
Results: ResultsShowScreen
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60329246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why do browsers have 3 characters as protocol separator? http:// vs http:
Either there is some historical reason or I'm missing something.
A: According to RFC 1738,
While the syntax for the rest of the URL may vary depending on the
particular scheme selected, URL schemes that involve the direct use
of an IP-based ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12804370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Browsersync - How to choose which installation of browser to run? I've just installed Firefox Dev Edition, and I don't know how to tell browsersync to start with it when I launch it.
I know there is the browser option in which I can specify "firefox", but how can I differenciate one FF installation from one other ?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40718446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Best way to inform user of an SQL Table Update? I have a desktop python application whose data backend is a MySQL database, but whose previous database was a network-accessed xml file(s). When it was xml-powered, I had a thread spawned at the launch of the application that would simply check the xml file for changes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10091108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible for WebDriver to click an element with a mouseclick event that invokes a JavaScript file that includes a test tracker? This is a question I have that arises from another user's question. If you look at my answer there, you will get some context for this question. The URL for the web page I am going to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55204297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: %0d%0a getting added behind the URL of a href attribute in an tag In a helper plugin for WooCommerce for WordPress, I'm trying to create a custom message to be sent to a buyer.
I don't know why in all the emails that are sent out, %0d%0a is getting added behind the URL in the href attribute. I have tried several di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35389750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Android - TextViews not showing up in ListView I'm having an issue to where none of my TextViews are showing up in the ListView. I'm not sure whether it is an issue with the layout or the java class itself. There are two images here, one of the application running after data had been entered into the database and on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36052170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to Append radio buttons to dynamic html table I have an ajax call that returns a sql query result and parses it into an html table. See below:
function CreateTableFromJSON() {
var email = "<?php echo $user_email; ?>";
console.log(email);
$.ajax({
type: 'POST',
url: 'api.php',
data:{
//fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42167039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trouble in installing Font::TTF module I failed to install the module through cpan Font::TTF.
I'm on strawberry perl 5.24, windows 8 32bit.
C:\Users\user>cpan
Loading internal null logger. Install Log::Log4perl for logging messages
There seems to be running another CPAN process (pid 5860). Contacting...
Other job... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38402046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Dynamically executed ARM ASM syscall with relocations from C++ I would like to call ARM/ARM64 ASM code from C++. ASM code contains syscall and a relocation to external function.
ARM architecture here is not so important, I just want to understand how to solve my problem conceptually.
I have following ASM syscall (ou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56904943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: error: bind message supplies 1 parameters, but prepared statement "" requires 0 I have a table 'article' with column 'content' .I want to query Postgresql in order to search for a string contained in variable 'temp'.This query works fine-
pool.query("select * from article where upper(content) like upper('%some_value... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45039760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Errors only when running shiny application on server - debug I have written a small application in shiny. I have the following files:
global.R, server.R and ui.R
In the global.R file, I load my data. I read data from three different csv files.
a.csv, b.csv and c.csv and I use merge to join a.csv and b.csv and anoth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40892850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Detect click when the allow Button in the notification alert permission is tapped
I'm developing this iOS app with SwiftUI.
How I can detect when the user clicks the allow button of the Notification permission alert? It should happen only one time and I need to take the user to a specific tab the first time he tapp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68208061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python destroying content to save memory I have a class to get a webpage's html and do some things with it
import requests
class A(object):
def __init__(self, url):
self.r = requests.get(url)
self.html = self.r.text
#other things
class B(A):
def __init__(self,url):
super(B,s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26995493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Algorithm prints length of string rather than number of Cs and Gs in it I am new to Java and currently learning it in a 4 week course. I am working on on an assignment to find all of the Cs and Gs in a string named dna, and then divide the number of Cs and Gs by dna. I have written a small program, and it compiles w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40064899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: iOS Take or Select Photo The camera app on iOS allows one to take a photo, but also has the button to the left that allows one to browse the photo album.
When using the UIImagePickerController I can only tell them to either do one or the other.
So, rather than making a custom camera view, or even a custom overlay to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20912123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: parity bit and error detection I have faced that in my computer architecture course at university.
I can't understand the parity bit; Why it has two kinds of even and odd.
Can anyone give me clear explain about parity codes?
A: A 'parity bit' is a method of error checking. Imagine that you need to send 8 bits over... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8694876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Coldfusion counting based on patterns matching I am reading numbers off a database and create a 4 digits patterns such as:
1, 2, 2, 1
0, 2, 2, 2
4, 0, 2, 0
1, 2, 2, 1
2, 1, 1, 2
Each digit can only be from 0-6. The second step is where my problem is. I need to tally each pattern. For example, pattern 1,2,2,1 has ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65606019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Amazon ELB and Apache trailing slash issue Actually I've an amazon ELB configured ONLY with rule HTTPS 443 --> HTTP 80. I cannot open the HTTP (port 80) on ELB for contract reasons.
I see that for all client requests in https without training slash the apache for some unknown reasons redirect it in http with traini... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40738649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: vb combo box selected item to open in individual form Am actually new in vb and trying to learn it, i have a combo box of 13 collections and a button, i want whenever a user selects an option from the combo box and clicks the button, it should open in an individual form. but the problem is whenever the user clicks o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45378165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to get url of clicked link in WebEngineView? I've noticed that in Qt version 5.4, WebView has a signal named navigationRequired, which had a clicked URL in parameters. In the new WebView and WebEngineView, there is no such signal. I also haven't found any alternatives.
Is there any way to get a click... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36485315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Component not being unmounted I am trying to write a React mixin that creates a few keybindings to easily scroll list views, however, I have problems with removing the event listeners after the component has been removed from the DOM
Mixin:
componentDidMount: function() {
var requiredFunction = Object.getPrototy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30340956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Implementing Word2Vec for stemming/lemmatizing Turkish I'm working on building a stemming programm for Turkish which is a morphologically rich language. None of the ressources that I've found are accurate enough for my purpose and I don't think they are built on deep learning technology.
How could I use word embedd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43976842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Predictability of Pseudo Random Generators by Quantum computers May classical pseudo random generators be predictable by powerful quantum computers in the future or is it proven that this is not possible?
If they are predictable, do scientists know whether there exist PRGs that are unpredictable by quantum computers... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26357131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: cannot uninstall node and npm completely on high sierra I recently installed Node on my MacBook running High Sierra 10.13 using the .pkg file supplied on their website.
After a few hours of experimenting with installing other packages and writing scripts, I decided I would like to uninstall both Node and NPM to get ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49358028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: On cloudcontrol, how can I do a URL rewrite? For a Python / Django application running on cloudcontrol, what's the recommended way of rewriting urls, e.g. attaching a wordpress blog to a certain url path like example.com/blog/, or even just redirecting a subdomain?
I'd know how to do this with an .htaccess file - is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27444181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WordPress Custom Repeater Controller For Customizer I want to create custom repeater controller for theme, for this i tried but i am stuck with issue and i am unable to save any changes to my repeater section, any help is highly appreciated, here is link to my code
The code for customizer class is
if (class_exists(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46721644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CSS Issue in IE7 and IE8 - text-indent on field Is it possible to make IE7 and IE8 respect the text-indent css property on an input field?
Here's my code
<!DOCTYPE html>
<html>
<body>
<input type="text" style="text-indent:100px; display:block;" value="Test indent" />
</body>
</html>
When you first load the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5915287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is it possible to open an Apple Developer account for a client? My company is developing an iPad app for a technically unsophisticated government client, and I understand that they need their own Apple Developer account. We would like to open and maintain the developer account for them, because we'll be much happie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12287775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.