text stringlengths 15 59.8k | meta dict |
|---|---|
Q: Can I detect the integrity of the picture in the PDF file use Itextsharp There are some pdf files.And there are pictures in PDF that are incomplete.Can i Check if PDF has incomplete pictures use ITextsharp?
The Sample Pdf
The bad pdf looks like this
Thanks a lot!
| {
"language": "en",
"url": "https://stackoverflow.com/questions/47507432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How i can receive variable from another thread in Jmeter in the first thread, I received JSON (format - {"id":6054,"name":"Jmeter created chat","description":"jmeter created test"})
I want to use it in the second thread variable '6054'
I use BeanShell Assertion with code:
${__setProperty(("id":"(.+?)"), ${chat_id)};... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66479591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to change default value in counter-increment? I think the code is counting the "Rank" header as a row and assigning 1 to it. How can I change the first number of the counter-increment? I would like the table to start from 0 so that the "Rank" header is assigned 0 and the next row is 1, and so on and so forth.
ht... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31835217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: I have to create a CI CD pipeline to integrate repos in azure to linux server My azure repos contains all the folders , and changes will be made by the users in the azure repos.
I want to create CI CD pipeline in azure repos to integrate azure repos and the linux server. Whenever some changes done in the azure repos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74872051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: snowpack: reference files outside of project folder Our team develops a bunch of JavaScript browser apps. These apps share functionality (core) and Web Components (shared). The folder structure is:
/apps
/app-1
/app-2
...
/core
/shared
Each folder contains a src folder.
Considering using snowpack in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65005200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: parse method in xml throws IllegalArgumentException in Clojure I'm following this article for parsing XML in clojure. In the REPL, I enter the following things:
(require '[clojure.java.io :as io])
(require '[clojure.xml :as xml])
(require '[clojure.zip :as zip])
(-> "example.nzb" io/resource io/file xml/parse zip/x... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17547146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Handshake problem on websocket connection when using Laravel Echo Server as Pusher replacement I want to use Laravel Echo Server as Pusher replacement
I am seeking the Laracast tutorial series for Laravel broadcasting: https://laracasts.com/series/get-real-with-laravel-echo.
I have succesfully created a testing java... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71776668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using AsyncTask in ListView adapter (Android Studio) I am developing an app where I am using List View adapter to inflate my list view items. What I observed is that my GUI is not that responsive because I am inflating image view along with text view in each of my list items. And the number of items depend on the n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62653426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Random to Multi-List Number from One List I have an array:
int arr[] = {1, 2, 3, 4}
How can I randomize arr[] to multi-list with No Duplicates?
FROM
arr[] = { 1, 2, 3, 4 }
TO
arr1[] = {1, 2, 3, 4}
arr2[] = {2, 1, 4, 3}
arr3[] = {3, 4, 1, 2}
arr4[] = {4, 3, 2, 1}
A: In this case, it is preferable to use a List<I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27455632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Hash Checking in setup.py install requires According to pip documentation, it is possible to specify the hash of a requirement in the requirements.txt file.
Is it possible to get the same by specifying the hash in the setup.py so that the hash is checked when someone simply does pip install <package>?.
I'm specifyin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46835953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Is there a way to output the contents of the queue after removing an item? I'm just working on writing code for queues (specifically linear ones) and I'm trying to remove an item from my queue. When outputting the queue after removing an item, the contents in the queue have not changed and all the items are still th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56461488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use join on a result of another join with a new field i have 2 tables vehicle1 which contains details of different types of vehicle and have a unique lot_ and another table wishlist which have two fields lot# and a userid
what im trying to do is return a vehicle1 table with an extra field say flag added to i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61254517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Generate different fields depends on DOM elements in angularjs So i have an application that should take the html of one page which contains different custom directives.
and there is another page which will load the html of the first page and generate input fields according to the number of the custom directive (cm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28026703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Get number of times an object is referenced in a ManyToManyField I have some models that look like this:
class UserProfile(models.Model):
user = models.OneToOneField(User)
favorite_books = models.ManyToManyField(Book)
# ...
class Book(models.Model):
title = models.CharField(max_length=255)
How can I t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11979015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is ScreenManager compatible with DropDown in Kivy? I want to generate a dropdown-list in my second screen managed by Kivys ScreenManager. If I do so, I get this traceback:
...
File "C:/Users/ORANG/PycharmProjects/waldi/playground/cw.py", line 76, in on_text
instance.drop_down.open(instance)
File "C:\Ki... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33930379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to check if a water body is near a given coordinate. (very often) I'm doing a project where I want to identify water bodies on satellite images via machine learning.
I'm still figuring out how to generate my dataset of a satellite image + a water mask of the same area.
The procedure I thought of is:
*
*Draw a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67916246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: expression must have integral type I get that compilation error because of this line which intended to increase the pointer by 0x200 (to point to the next segment)
Flash_ptr = Flash_ptr + (unsigned char *) 0x200;
I'v seen this but I didn't use any illegal symbol!
P.S. The initialization of the pointer:
unsigned cha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25761789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: C++ column chart is reversed I'm stumped on why my columns are reversed. The actual column graph (asterisks only) needs to be flipped horizontally. (The population in 1900 is 2000 and the population in 2040 is 24000.)
Here is what it currently looks like:
Population column chart
24000 **
23000 **
22000 ** **
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37759344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CSS background repeat not working when called inside folder I have a folder called projects on my desktop and inside the folder I have a file called index.html and a folder called images containing all the images. When I try to call the background: url("images/shadow1.PNG") repeat-y; it doesnt seem to work for some ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4125370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there any use for the determinant of a 4x4 matrix in computer graphics? In most graphics libraries I've seen, there's some function that returns the determinant from 3x3 and 4x4 matrices, but I have no idea when you'd actually need to use the determinant in 3D computer graphics.
What are some examples of using a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51831683",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Mysql not working with python 3.6 and django 1.9 I am trying to connect mysql db with django 1.9 and python version is 3.6. With database connection string I am getting the below error. If I comment out the database connection string the site is loading fine. Can anybody tell what is wrong in this.
[Wed Apr 05 07:0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43224200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Execute python scripts from bash file via crontab Set-up
I have 2 simple python 3.x files on my desktop:
1) cronjob_test.py
#!Applications/anaconda/bin/python
# -*- coding: utf-8 -*-
import os
os.makedirs('/Users/myself/Desktop/TESTFOLDER')
2) cronjob_test_copy.py
#!Applications/anaconda/bin/python
# -*- coding:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49858760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Take screenshot of specific part of screen I'm trying to take a screenshot of a specific part of the screen. Here is the coordinates of the part of the screen i want to 'cut' :
Left : 442
Top : 440
Right : 792
Bottom : 520
That is, a rectangle of width 350px and height of 80px. But i don't know how to use CopyRect t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38700163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: NSView - Drawing 2-Color Checkers I have a subclass of NSView where I need to draw two-color checkers (squares of alternating colors). The following is what I have.
- (void)drawRect:(NSRect)rect {
NSInteger k = 1;
for (int j = 0; j < self.frame.size.width; j += 20) {
for (int i = 0; i < self.fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32539299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PDO based query with space in criteria string not working in PHP My code looks like this
$eventname = "music festival 5";
$stmt = $pdo->prepare('SELECT * FROM events WHERE eventname=?');
$stmt->execute([$eventname]);
$row = $stmt->fetchAll();
The above gives no result. When I change the following line, it work... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60263301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you append to the end of a gzipped file in Java? Here is what I've tried
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.zip.GZIPInputStream;
import java.util.zip.GZIPOutputStream;
public class GZ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63161668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reinitializing datatable and individual filter columns I need to initialize a Datatable and load data when a button is clicked. It works but it's creating a duplicate header under the filter columns. I have tried to destroy the Datatable but still no luck.. Hope someone can help.
I tried checking if the datatable ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57874895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Input type file in Chrome will not popup when served via https File input boxes aren't working in Chrome for me, I have reduced this down to pretty much just a single input box, and it still doesn't work. Works in IE and FireFox, and Edge. What can I do to get this to work? Using version 88.0.4324.190. It works ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66497413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Javascript cant find my function in a promise I want to debug a function that returns a promise and for that I need a sleep function. I found this one:
function sleep(ms) {
return new Promise((resolve) => {
setTimeout(resolve, ms);
});
}
and it works when used outside of a promise. However when I want to u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62490266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to make WhatsApp for iOS fetch image for preview set in og tag in my website? I am trying to set og:image tag for my website so that users can see the thumbnail image when the website link is shared. Now the thumbnail is working fine facebook, twitter and Linkedin. But when I share the link on WhatsApp it only w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55322164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Change meta description/keywords dynamically with php Im trying to grab some info from the db and use it as meta desc and keyword. But something isnt working as it supposed to.
EDIT: after alot of help i got it semi working. If there is no blogID i want it to fallback on the other part... that part of the script ain... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38251831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Java tutorial method example Here there is a snippet taken from here:
import static java.nio.file.StandardOpenOption.*;
Path logfile = ...;
// Convert the string to a
// byte array.
String s = ...;
byte data[] = s.getBytes();
try (OutputStream out = new BufferedOutputStream(
logfile.newOutputStre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17133304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Insert csv file data into mysql table which contains more columns I want to add the data from a csv file to a table in the DB but the table contains more columns than the file. The query should be such that some of the columns are filled by the csv file and some others should be filled with a specific value in the q... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44460105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can Scala REPL on SBT call people's own scripts? (Like OptiML?) I know sbt console will open an interactive Scala REPL and load in all the library dependencies so people can test Scala code right there. However, I wonder if there's anyway to use and treat in a way so that people can interact with my programs directl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29167281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I remove the top margin in a web page? I have had this problem with every web page I have created. There is always a top margin above the 'main container' div I use to place my content in the center of the page. I am using a css style sheet and have set margins and padding in the body to 0px and set the mar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2489070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "67"
} |
Q: Return a value / cancel installation with vbscript custom action I have a custom action in my installer that opens a message box using a vbscript custom action.
<CustomAction Id="EXENotFound" Script="vbscript" Return="check">
<![CDATA[
Dim i
If session.Property("REMINDEX_SHORTCUT") = "" Then
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17331894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Setting current user for required model field I have a model where one of the required fields is the currently signed in user. I do the following when creating a new record for the model:
views.py
def post(self, request):
bound_form = self.form_class(request.POST)
if bound_form.is_valid():
new_positi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38149319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Null safety operator for function variable in Kotlin In my Kotlin app I have nullable variable like this
private var myCallback : (() -> Unit)? = null
Is it possible to use null safety operator ? to call it? This gives me a compilation error.
myCallback?()
I found only this ugly way for a call if it is not null
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51865648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Creating a simple Node.js web service for use with AJAX I have a basic Node.js http server set up as per the docs, I'm trying to create a very simple web service I can talk to with Javascript (AJAX) which I'll then hook up to Arduino. It's a test piece, I may go down the road of something else but this is proving t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17532924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Keyboard Issues with Ionic4 I have developed an android application using Ionic4. The issue I am facing is when the keyboard appears it covers the Input field, screen is not moving up.
I have solved this issue in Ionic 3 by the following lines of code. But this does not works in Ionic4. Somebody please help.
imports... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55460943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL: "Where" or "AND" what performs better on large database? I have this SQL query. It runs on the same table and creates a dataset with three columns. My concern is whether I should Use 'WHERE' clause or 'AND'. I have this feeling that 'AND' will be more efficient and faster than 'WHERE'. Please advise.
1st one is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29087640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Slow add column I have an 8 million row table in an RDS mysql instance which is read replicated.
When adding a new column (int / length 2 / default 0) the primary DB reached 100% and hung until reboot.
So, I ran a test on my local machine - same table / same new column (not read replicated) and the change was instan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74110629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django admin, change current value of ForeignKey widget in my Django admin application I have one ForeignKey field with its relative widget in change page.
I wish to add a link to change view of current selected product instead of simple text of current product.
My models is composed of: WeddingList, Product and We... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22384279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Bootbox alert not on focus I'm calling bootbox confirm function, but it isn't on focus. All my page get this gray effect, including the bootbox window. What am I doing wrong?
Here's how I am calling bootbox confirm function:
$(".js-delete").on("click", function () {
var tr = $(this).closest('tr');
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48387566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: network graph using igraph() from lm() regression output I'd like to get a visual overview of the output of a linear regression model.
I'd like to be build a network plot with unidirectional edges using the output from a regression model, and I'd like to only include predictors with a p-value <0.05 (so to end up wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49718725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: traversing an array one less time each time Lets say I have an array of [1,2,3,4,5]
I want to attempt to traverse the array one less each time, while adding the numbers.
First time:
1+2+3+4+5 = 15
Second time:
2+3+4+5 = 14
Third time:
3+4+5 = 12
Fourth time:
4+5 = 9
Fifth time:
5 = 5
any help would be greatly a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59277013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hash three 32-bit integers into a 64-bit integer? Looking for some ways to hash three 32-bit integers into a single 64-bit integer. Interested in knowing a fast way of doing this but with as few collisions as possible. Thanks.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/72060840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Advice on reading indexes I'm trying to figure out the right way to read lucene index only once whilst running the application multiple times, how can I do that in java?
Because indexed data will not change so reading them each time would not be necessary. Can someone explain me the logic of it reading them only on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2981376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a best practice for where to log when running multiple instances of an application with Docker? I am trying to create an application that will be run on multiple Docker instances on multiple machines. Since my containers will be running nginx as their command, docker logs would show the output of nginx log... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36929689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to include and exclude checkboxes from being calculated? Netbeans IDE I was wondering if there is a way I can write a code where I have 6 checkboxes and I want to have them calculated as a final sum, I want to write it to have the selected ones included into the calculation only. I asked my teacher about it and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24231925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ActionPerformed and ActionListener My program asks the user: How many course have you completed? So, the users has to enter the number of courses completed on a JTextField component. My program then converts the String that has been entered in the JTextField into a Integer. When I run my program, I get a numberforma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16113148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: find numbers in array that add up to a given number c++ I am writing this code that takes the input file and sorts all the integers from that file into an array. Then it takes the sum chosen by the user and goes through all the combinations (one by one /professors orders/) to find a pair that equal the desired sum.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43024970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MySql soterd procedure IF ELSE and while loop I want to create a stored procedure in MySQL where I loop through the records and return rows if certain condition is true.
For eg: I have a table with columns PRIMARY, TRANSTYPE, DATE, AMOUNT. Now PRIMARY can be either 0 or 1 and TRANSTYPE can BE A,B,C.
Now what I want... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14050484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Print proper mathematical formatting When I use sympy to get the square root of 8, the output is ugly:
2*2**(1/2)
import sympy
In [2]: sympy.sqrt(8)
Out[2]: 2*2**(1/2)
Is there any way to make sympy print output in proper mathematical notation (i.e. using the proper symbol for square root) ?
UPDATE:
when I follo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25326334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cannot reopen Jupyter notebooks on Google Cloud Dataproc cluster after stopping cluster I was using Google Cloud Dataproc to run a Jupyter notebook (following these instructions: https://cloud.google.com/dataproc/docs/tutorials/jupyter-notebook).
I ran a notebook, saved it, and then at some point later on, stopped ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43413442",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Calculating the closest color in a dictionary to an input I have a dictionary of colors (below) and a color such as #4a7dac which is 'steelblue'. I want to find the name of the closest hex colour in the dictinary to this colour. So the algorithm would decide on #0000ff and return 'blue'.
colors= {
"red":"#FF0000... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52078258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: 'input' is not defined Pylance(reportUndefinedVariable)
it just started happening, now all "input()" gets yellow underline
But code works properly
A: a=int(input())
if u r keeping any integer values.
A: That happens because you are using input. Use raw_input instead. raw_input is what you have to use with pytho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74717107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Check if NSAlert is currently showing up I am using an NSAlert to display error messages on the main screen of my app.
Basically, the NSAlert is a property of my main view controller
class ViewController: NSViewController {
var alert: NSAlert?
...
}
And when I receive some notifications, I display some m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36157382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Makefile and Bash script for C++ with command line arguments For my homework, I just wrote a c++ program that should supply a command line argument(e.g. -l) when you run it. Now, I need to compile and run my program in Unix. So, I need a makefile and a bash script(the name is cddb) to invoke my program.
My question ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37674785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How do I make window.onbeforeunload wait for animation? Consider the following JavaScript code, with an animation library (i.e. scriptaculous) to boot.
window.onbeforeunload = function(event) {
document.body.fade();
}
Leaving the page is instantaneous and doesn't wait for the animation to complete. Even though ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9405121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Use plain mode to access kafka I have a Kafka cluster on OpenShift cloud, a customer outside of cloud send message to Kafka cluster, then we set authentication and authorization for Kafka cluster and topic, ans create an user.
Now from external customer can publish messages to kafka topic via SSL or SASL via port 90... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66510381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Inheriting from bad template instantiations in C++ Consider the following code:
struct Foo
{
Foo operator+(const Foo &rhs) const;
// notice lack of: Foo operator*(const Foo &rhs) const;
};
template <class T>
struct Bar
{
T x, y;
T add() const { return x + y; }
T mul() const { return x * y; }
};
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11263635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to send image in PHP mail function I want to send image in mail.How to add image so that it will show in the email
I want to add image to the CLIENT MESSAGE BODY.
How to use html in client message body?
Here is my code :
<?php
/* subject and email varialbles*/
$emailSbuject = 'Enquiry';
$webMaster = '[email protected]... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26423942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C# prefixing parameter names with @
Possible Duplicate:
What does the @ symbol before a variable name mean in C#?
Duplicate:
What does the @ symbol before a variable name mean in C#?
Sometimes I see some C# code where a method-parameter is prefixed with an @, like this:
public static void SomeStaticMethod( SomeTy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1038674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "96"
} |
Q: How to combine and if statement with a formula to concatenate? Trying to combine two formulas together but can't figure out how to get them to work. The concatenate formula is
=IF(OR(UPPER(D6)="",UPPER(D6)="N"),A6,A6&" - "&D6)
The formula was created so that if "Y" was entered in a checkbox (yes), then it would com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63002737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Javascript - Regex/replace optimization I have a script which allows to replace undesired HTML tags and escape quotes to "improve" security and prevent mainly script tag and onload injection, etc.... This script is used to "texturize" content retrieved from innerHTML.
However, it multiples near by 3 my execution tim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43539050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Spring Boot SAML 2.0 support I’m implementing sample application which is supposed to combine SAML 2.0, Oauth 2.0 and UMA 2.0. I’ve generated Spring Boot template using initializr.
I’m stuck at the beginning by saml2ogin(). It looks like SAML 2.0 support is missed. RelyingPartyRegistrationRepository is not available... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61074914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Modifying XML file, replacement elements I were trying use those code to Modify XML files in C#.
XDocument doc = XDocument.Load(@"movies.xml");
String target = textBox1.Text;
var node = doc.Descendants("movie").FirstOrDefault(movie => movie.Element("title").Value == target);
node.SetElementValue(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34083422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: twitter bootstrap layout strange behaviour I have a strange behaviour in screen layout, I do not understand the possible cause:(
I have a vertical grey line on the left and the right of the screen,
See screenshot here:
BTW, I developed using Rails 3 and using Twitter Bootstrap 2.3.2
In facts I do not foresee / I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17928639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add a dynamic button in an external java class? I am having problems with creating public void onCreate(Bundle SavedInstanceState) in another java class.For this reason i cant create a dynamic button in java.I don't know what to do..
this is my java class
public class GamePanel extends SurfaceView implements ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52904017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to determine first and last call of module scoped fixture within session? I have a module scoped fixture that requires to know if it is called for the first or for the last time within a session, is there a way to get this information within fixture?
This is required for managing lifecycle of a shared resource t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48749427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to detect Web Cam is attached or not Using java How to detect whether the Web cam is attached to computer or not by using Java?
A: JMF (Java Media Framework) should be able to detect any media, including a webcam.
Potentially through CaptureDeviceManager.getDeviceList();
For "installing JMF on Linux", one way... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1388997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Angular JS, scope updates in Async callback I've got a series of 2 AJAX requests, with the latter depending on the results of the first. I've put them into the promise of the first returned object. ie.
var productResource = $resource('http://urlhere');
$scope.product = productResource.get();
$scope.product.$promise... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23979478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Destroy a session I Want to destroy a session in my project such that when I click on Logout, it goes to a page "KillSession.jsp" , in that file I've written "session.invalidate();" and then I redirect the user to the Login page.
But if I use the back button on my browser, it goes back to the page I have visited bef... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12394614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Extracting data from SQL Server using pyodbc import subprocess
import pyodbc
c = dbconn.cursor()
server = r".\SQLEXPRESS01"
database = "test"
dbconn = pyodbc.connect("driver={SQL Server Native Client 11.0};server=" + server + "; database="+ database +"; trusted_connection=yes;",
autocommit=True)
\\unable ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62527576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Saving canvas drawing to sd card I m currently working on canvas drawing in which i hv a canvas with white colored background ( with canvas.drawColor(Color.WHITE);) and a sketched image of cartoons comics that allows to paint with some colors. The problem is that when i go to save the canvas image only a black scree... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5295041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to send a handleSubmit on react hook form in typescript? I am doing a form sign-up using typescript and react, however, I am facing a typing error when I try to submit handleSignup function. Here is my code:
import { useForm } from "react-hook-form";
import * as yup from "yup";
import { yupResolver } from "@hook... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72638620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: mPDF how to leave all content on a single page I want to export an HTML to pdf using mPDF, but I want everything to be on a single page, without any page breaks.
How can I do that?
A: "mPDF has limited scope to control when automatic page-breaks occur, and does not have ‘widows’ or ‘orphans’ protection."
https://mp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70008061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to stick object inside fov I'm trying to figure out how to position an object inside the edge of the camera's fov if it goes outside of it.
I've looked at this: Three.js - Width of view
But if I plug in the values, it returns 5.12 if the screen width is 512, and 3.12 for height if the screen height is 320.
I hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33641184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to set "reset all code reviewer votes" in Azure Devops using CLI Currently trying to automate branch policy creation in AzureDevOps using the Azure CLI with Windows Powershell, is there a way to enable "Reset all code reviewer votes" when new changes are applied through the CLI?
currently have the following:
az... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68288440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rotativa multiple PDF generation I am using rotativa to generate PDF.I want to generate multiple PDF based on the number of records in the list below code generate only one pdf.
public ActionResult PreviewPDF(string month,string year)
{
string basePath = ConfigurationManager.AppSettings["PDFPath"];
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45707565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Load Datetime column in SQL server 2012 using SSIS I'm looking to load a transaction file from a flat file to database. the file contain datetime column which is displayed like this "20160307092701" and I want to display it in the database like "2016-03-07-09-27:01" using SSIS.
I choose my database column to be set ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35979176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add Msctf.dll as reference path to c# project? I need to write a COM object in c# inorder to utilize i need to add Msctf.dll as reference to C# project .
A: Right click on Add Reference of your project and browse to your path of Msctf.dll
link (Register COM) : http://msdn.microsoft.com/en-us/library/ms8594... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12176702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Sharing web application for different clients Our framework is Grails. Say domain.com contains an application and currently used by some client. If we want to allow another client with the same functionality but providing a separation for the data of two clients, so that they can't mix both, how to do this? And when... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26327941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: KineticJS not working in FF and IE My program works perfectly in Chrome, but with FF and IE my canvasses are gone.
The error I got with Firefox is:
SyntaxError: An invalid or illegal string was specified:
...][c].apply(this[b],args)}})(c)}}(),function(){Kinetic.Filters.Grayscale=function...
On kineticJS.js (line 28)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16101641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JVM crashing when using any other Hibernate inheritance strategy besides SINGLE_TABLE Ok, this is probably a longshot but here goes.
In Java (JRE 1.6.0_26-b03) I have two classes, SuperControl and its subclass SubControl. They both need to be persistent objects and I'm using Hibernate Annotations to achieve this. I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6553428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I make a python API to ping an ip address? So I have a discord bot and I want to add a feature where it pings an IP and tells you if it's online or not. I wanted to use an API in flask in case I use it for other projects.
A: In order to ping using python, you can use the pythonping package.
You can also eas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68064613",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Sitecore: How to get the class entered in General Link field In the General Link field content author will set some class.
I want to change the class while rendering, so I used the reflector and got the code of Link.cs and trying to extend the PopulateParameters method and looks like this.CssStyle and this.CssClass ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27136867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Read system Call I am trying my hands with unix socket programming in C. But while reading I am getting Err No as 4. I am unable to find out the description of this error code. Does anybody have any idea?
A: If you would start with looking at ultimate source of Unix error code names (/usr/include/errno.h) you'll ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3602384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: add custom class to wysihtml5 text editor I'd like to be able to add a button that adds my own custom class. I don't see this in the documentation anywhere but seems like a common request.
For example.
Highlighting "Some Text" and pressing the button "Custom Class" will add
<p class="wysiwyg-custom-class">Some Text... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13869587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Download URL text file directly to csv file python I have a link to a text file from US Census and I would like to download it into a directory on my computer.
I was thinking about downloading the URL into a text file and then converting the text file into a csv later on. However, I was wondering if it were possibl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53144967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sprint boot: POST an entity with a foreign key I am playing around with Spring boot and I am trying to post an entity that has foreign keys
Example: product (id,code, description, category) and category(id, category)
To post a product i would post {"code":"123","description":"bananas"}
How would I specify the catego... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59389617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Uncaught Reference Error: draw is not defined I am trying to complete This tutorial on making a tic tac toe game using JavaScript and HTML5.
I've followed each step in the video multiple times. While my code seems to match the code in video I keep encountering an error: Uncaught Reference Error: draw is not defined... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18983963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Heroku ActionView::Template::Error (undefined method `name' for nil:NilClass) First time posting on here. I've got a problem with my web-app when trying to open it through heroku. The app is successfully built by Heroku but when I try to open the app I get the following error:
2017-03-13T06:15:35.778714+00:00 app[we... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42757847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make images snap to any "outline" image (using "animals on the beach" demo) I'm new to Konvasjs and new to canvas and I've been try to make a game similar to the demo "animals on the beach" I wanna keep the part where if it in the right outline the score increases but instead of the animals in the demo snappi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36745500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you sort the output of a python command? Python beginner here. Let's say that I have something at the end of my script that queries info from a system and dumps it into this format:
print my_list_of_food(blah)
and it outputs a list like:
('Apples', 4, 4792320)
('Oranges', 2, 2777088)
('Pickles', 3, 4485120)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14613099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: git: recover local file overwritten by a checkout Consider a local file in a git repo called foo/bar.js. The file has been changed locally, and was accidentally overwritten by a previous commit:
$ git log foo/bar.js
commit 052b65bdf19ee4c977ce4d07e9d6fda60a793e0c
Author: Adam Matan ([email protected])
Date: Sun Ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44494099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: fpdf error and view table error
$sqlinsert="SELECT * FROM imagetable ";
$result = mysqli_query($con, $sqlinsert);
echo "<table border='1'>";
echo "<tr>
<th>ID</th>
<th>School Code</th>
<th>Category</th>
<th> School name </th>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34475345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: mediarecorder addEventListener is not working in Chrome/Safari I am using mediarecorder in a vue.js app. The code snippet is below. The inline function for ondataavailable executes. However, neither of the two options to specify a function handler for onstop get invoked.
Is there a workaround to this issue?
co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70995492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Item-by-item list comparison, updating each item with its result (no third list) The solutions I have found so far in my research on comparing lists of objects have usually generated a new list of objects, say of those items existing in one list, but not in the other. In my case, I want to compare two lists to disc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14564810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.