text stringlengths 15 59.8k | meta dict |
|---|---|
Q: How do I find all elements with a specific attribute? I have a number of elements on my page that have a lang attribute. How do I select only the elements with a lang attribute?
i.e.
<div lang="english">Test</div>
<span lang="english">is cool</span>
<span lang="anotherlanguage">is also good</span>
A: You need to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14498576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP echoing / with attributes I need some help with echoing a <img> tag with attributes like title, rel, and class.
I have made it this far, when I'm echoing a filename from a db to search in a catalogue to find it. But I'm not sure how to write some attributes to it since I'm going to display it with Pirobox.
This ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35382445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ExecuteNonQuery : incorrect syntax near / I get the following error and I have been trying to figure out what the problem is for a few weeks but nothing, could someone help ?
An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll
Additional information: Incorrect syntax nea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34132643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Playing HTML video while taking a screenshot (drawHierarchy) I'm having issues with thumbnailWebView.drawHierarchy(in:,afterScreenUpdates:) method and loading HTML code with a local video in it.
The issue comes when I capture the webview to get a tumbnail and then I click the video on the webview, the video start ru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45877144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to understand array sorting in Swift Can someone please visualize the process of sorting?
let numbers = [0,2,1]
let sortedNumbers = numbers.sorted { $0 > $1 }
If I were to sort these 3 numbers in descending order in real life, it would result in this: scrSh1, but Swift makes it complicated: scrSh2.
How can ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43097618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Letter segmentation: openCV findContours does not work I have a binary image contains a word, I want to slice the image into pieces, each contains a single character.
I tried to use opencv's findcontours to get the bounding box of each character. However, the findContours does not work as expect.
contours, hierarc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41083772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I have installed mysqlclient , but not able to run server I am a beginner in python and Django.
I would like to connect my Django project to MySQL database,I have installed mysqlclient
brew install mysql
pipenv install mysqlclient
but after changing the settings to:
DATABASES = {
'default': {
'ENGINE':... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72195278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Session variables lost after redirect - PHP 7.3 I am trying to forward session variables from page1.php to page2.php.
Session variables lost after redirect.
In PHP version 5.3.28 it was working properly. The problem started occuring after upgrade to PHP ver. 7.3.9.
page1.php
session_start();
$_SESSION['myvar']=1;
se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58024416",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Python: how to read .csv file in an efficient way? I have to read some .csv files and do some operations. In particular I have to read .csv where the data is stored in different columns. In particular the data has the following format:
myfile_0.csv
Time InfD Com ComN
0 3 4 0
1 2 5 1
The file c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36182402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: jQuery Dialog showing input item I have two boxes, "box1" contains listed items (text) and "box2" is empty. The objective is that the user can drag the items from box1 to box2, then press a button to register to open a dialog box. I got that working! But the problem is that I need the dialog box to show the items th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34698020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Go: compile to static binary with PIE I am looking to create a binary that can execute in an environment without a linked but also where a linker is available but PIE is required.
The closes I've gotten is where the linker states that it is statically linked but 'file' still says it is a dynamic binary.
Is there any... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64019336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to download images async for WidgetKit I am developing Widgets for iOS and I really don't know how to download images for the widgets.
The widget currently downloads an array of Objects, and every object has a URL of an image. The idea is that every object makes a SimpleEntry for the Timeline.
What's the best wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63173928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Check if url has specific string in python 3 I am new to python and I couldn't figure this out
In this code I need to check if the url has http or not
for link in links:
if "http" in link.get("href"):
print("<a href='%s'>%s</a>" % (link.get("href"), link.text))
When running I got this error:
TypeError:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53028728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Need Help For VBScript Regex I wannt to build VbScript regex for string having format like
XX-XX-XX-XX
XX= \w (Alphanumeric)
Note : Number of Hyphen are dynamic.
Sample i/p
ABSCD123
ABC-123
ABC-234-PQ3
A-B-C
I created something like
^\w+\-*\w+$
But it is not working.Can anybody help me?
A: I think you want to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31990619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I control multiple input object value in map this is a sample in code sand box
https://codesandbox.io/s/restless-shadow-iiw4p?file=/src/App.jsx
I want to create table that can be added.
However can not control input value.
How can I control multiple input object value in map?
A: In your code sample you did ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64979751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to execute multi factor auth from powershell I need to execute this PowerShell script from C#. I want to disable MFA for a single user.
I have not installed Azure PowerShell. So to execute below script, what prerequisites are needed?
I am unable to find this .dll in my system:
Microsoft.Online.Administration.Str... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48376971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to single out the first bit and retaining the last bit of the filename using grep(find) Greeting
I am writing a bash code to convert decimal to binary from a file name (Ex: 023-124.grf) and unfortunately, I only need to only convert the last 3 numbers of the file without interfering with the first bit
(it looks ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73959624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: MongoError: failed to connect to server [localhost:27017] When I type node server.js it returns me this error
MongoError: failed to connect to server [localhost:27017] on first connect [MongoError: connect ECONNREFUSED 127.0.0.1:27017]
at Pool.<anonymous> (/home/islam/workspace/project/node_modules/mongoose/node... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43810833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Dynamic add component using gridstack and angular2? Jquery $.parseHTML does not work I have the following jsfiddle
I want to be able to stick my custom component into a specific grid (e.g. "")
Right now without Angular2, I just use:
var el = $.parseHTML("<div><div class=\"grid-stack-item-content\" data-id=\""+id+"\"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40314136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: C+Ctrl KeyBinding is not causing copying to happen I have set up a ListBox like so:
<ListBox ItemsSource="{Binding Logs, Mode=OneWay}" x:Name="logListView">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Path=.}">
<TextBlock.InputBindings>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5041275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Javascript this.href from asp.net code behind How do I pass this.href from asp.net code behind? Here is what I have, and in javascript I added a alert to see the value and it says 'undefined'
Page.ClientScript.RegisterStartupScript(this.GetType(), "Sample", "Callscript(this.href);", true);
function Callscript(href)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10805451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ImageView keeps reloading while scrolling the ListView I have a list that contains an ImageView and a Textview. I'm trying to display video thumbnails in the ImageView. The problem is that when I scroll down the list the ImageView keeps reloading the thumbnails until it gets the correct one. Same thing happens when ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23678116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Replacing a shared member variable in a Spring binded class A yet-to-be production released java application code has the below structure(this is there in numerous places). The class loads only once during application context load. This worked fine previously. However when moving to regression environment with multi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42274517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to send a object through the dynamic form control in Angular? I want to send a whole object instead of just a single string value for example. How can I do this?
The object type is:
description: {
type: string;
value: string;
}[];
I have a normal formcontrolTextbox written like this:
new Fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71631366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Allowing one vote per computer (not IP, not logged in user) I have a site where i want to allow a 5 star rating on various things. However, like many other people asking questions on SO, i only want to allow one vote per person.
At first i was planning on logging the IP address when a vote happens and just scan to s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11708251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: JList to list toString() of an ArrayList of Objects I have an ArrayList of objects (A class called OrderItem). OrderItem has a toString() method in it.
I also have a GUI class in which I have a JList. I want to list all the toString()'s for the elements of the arrayLists.
I know that for an arrayList of strings you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10320325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When code is in loadView: Could not execute support code to read Objective-C class data in the process Say I create a tableView in navigation controller programmatically. After removing storyboard file and its reference. I put all UI initialization and constraints code into loadView() as below code.
Running with rea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64713564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Angular - Remove item from array on click of that item I'm learning Angular (v6 to be specific), and trying to build a simple to do list.
I'm able to add items to an array and display in a list but cannot figure out how to delete specific items on click of that item.
Current code deletes the entire array on click.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52042665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Spring Profiles odd behavior I am trying to figure out how to use Spring Profiles for testing. I think I do everything according to spring docs. And in the end I got results that I cannot explain Here is the listing of my program:
Here is the main config:
package com.test.profiles;
import org.springframework.beans.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22301878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to order by date django post view How can I order my posts from latest to oldest? I Use ordering = ['-date_posted'] for class based views. how can I do the exact thing for a function based view?
this is my view function:
def blog_view(request):
posts = Post.objects.all()
paginator = Paginator(posts, 3)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61250105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Merging Corresponding MySQL Records I have a MySQL table called "objecttable" that has the following structure and data in it. (The data is just a sequence, there is a whole lot more).
ID | Name | posX | posY | posZ |rotX | rotY | rotZ | rotW |
3562 | LODpmedhos1_LAe | 2062 | -1703 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12552234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: send automated messages to various whatsApp users using this xpath to click send started not to work I used send automated messages to various whatsApp users using this xpath code to click on the send button.
navegador.find_element_by_xpath('//*[@id="main"]/footer/div[1]/div[2]/div/div[2]').send_keys(Keys.SEND)
It r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68391730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Lua/Wow: UseInventoryItem() issue My goal is to create a script that warns when you are disenchanting a piece you don't want. When disenchanting an item straight from inventory, I could use the UseInventoryItem() API. Since UseInventoryItem() seems to work only on inventory slot right click, I created this script, b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75264387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Groovy Template Engine rendering contents I'm trying to separate some contents in the body section of my layout.tpl. For instance, I have carousel slider in my index.tpl, but it's not necessary to include it inside the login.tpl. Moreover, I need to add another page specific contents too. So, layout.tpl, and index.t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25102967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How is gRPC used to enhance Microservice interaction in PHP? I'm studying gRPC and noticed they assist in building quality microservice interactions.
Currently I use RESTful requests to interact between services with typical tools like Guzzle etc.
How does gRPC improve the way Microservices would interact with each-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71610388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unable to pass a string from VBA (Excel) to my COM object I am experimenting with creating a COM interface for my application in order to allow eg. VBA to drive certain parts of my application.
I have my COM library up and running and installed, even to the part where a routine called in Excel can be debugged in the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52080187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Table with an array, return hash I have an array ["1","1","a","b","y"] and table1:
table1
POSITION NAME VALUE CODE
1 Animal Dog 1
1 Animal Cat 2
1 Animal Bird 3
2 Place USA 1
2 Place Other 2
3 Color Red ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29239926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Oracle 'after create' trigger to grant privileges I have an 'after create on database' trigger to provide select access on newly created tables within specific schemas to different Oracle roles.
If I execute a create table ... as select statement and then query the new table in the same block of code within TOAD or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32356401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: take minus(-) sign number from sting and use in in different procedure I have variable
DECLARE @Routs NVARCHAR(1024)
@i int
SET @Routs = N'6,4,-5,8'
I need to extract any number from this sting, where it have minus sign before it (-5 in example)
and use it as input parameter with out (-) sing for example @i in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27232587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Mock lodash .isEqual Nodejs Jest Framework Super Test I am bit stuck testing lodash library lodash library using jest and super test
A.routes.js
import express from 'express';
const router = express.Router();
const _ = require('lodash');
router.post('/', async (req, res, next) => {
try {
let data = req.bod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67536129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dynamicly adding paramteters to an ajax call based on a variables state I have an ajax call that has a list of parameters that it needs to pass to its data object. But this list changes based on a certain category. So I'm trying to find a way to filter through the ones I need and the ones I don't need.
$.ajax({
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7989807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP - UTF8 problem with German characters I'm at my wits end with this one, then I remember stack overflow.
I have a site, http://bridgeserver3.co.uk/disklavier/de/ , the language is stored in a simple PHP file which looks like..
$translations["welcome_text_3"]="Zum Lieferumfang eines jeden Disklaviers gehren bereit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1757345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to assign names to dynamically generated text boxes and retrieve their values? I have dynamically generated textboxes. I want to assign names and id to the textboxes and also retrieve the values of dynamically generated textboxes to insert into database. How can it be done?
<script type="text/javascript" src="ht... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15438746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Massive inserts kill arangod (well, almost) I was wondering of anyone has ever encountered this:
When inserting documents via AQL, I can easily kill my arango server. For example
FOR i IN 1 .. 10
FOR u IN users
INSERT {
_from: u._id,
_to: CONCAT("posts/",CEIL(RAND()*2000)),
displayDate:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28322579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: smartfield annotation - valuehelp dropdown I have a value help field and want to see only descriptions (not codes) in the dropdown. After selection, want to store the code in another field which would be in hidden mode. For this, I have defined the following annotation:
<Annotations Target="Metadata.CallReport/Divis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57980346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: iOS location icon everyone. I don't know whether you used app name Moves or not. If not,you can to download from app store. And you can find a issue, that display gps icon in status bar always(even though app was killed). At "Setting-privacy-location service",if you turn off the app,icon disappear. Turn on again, ic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18179394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Possible to retrieve selected children list from database only by using JPA/Hibernate-Annotation? Guess this might be a difficult one. Well, at least for me. I need some help with JPA/Hibernate-Annotations and I was wondering, if there is a way to solve my problem. Unfortunately, my own skills seem too limited to so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65674232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: One site with 2 different physical paths (2 different subfolders) is it possible to that I can configure a site in IIS Manager with two different physical paths (2 subfolders)?
Thank you ;-)
A: No, you can only specify one path for the site, that is the path for loading the site's default document and configurati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21409437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NSWindowFlipper build error I am trying to use Mizage's window flipper library in my Mac app.
When I tried to build it, the following error occurs:
Undefined symbols for architecture x86_64:
"_kCAGravityCenter", referenced from:
-[NSWindow(Flipper) flipWithArguments:] in NSWindowFlipper.o
"_CATransform3DMakeRotat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7957324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: RegEx multiple steps in ruby Given the string below:
"oxcCFC/video.mp4 "GET /accounts/6/videos/xboxcCFC/video.mp4 HTTP/1.1" 206 - 2 697898511 56 56 "-""
How would I create a regular expression that first finds "HTTP, then finds "-", and then captures the next indiviual number or consecutive numbers that occurs in t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13637269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Why do I get this NullReferenceException C# I've been working in some codes for an application to manage connected users and Equipments via Active directory queries.
Then I get this error "NullReferenceException was unhandled" for about a week, working with the code this is the only thing stopping the application no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8621350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: netlify-function Netlify functions is one of the services offered in the Netlify platform.
It uses AWS's serverless Lambda functions, but allows users to access them without an AWS account, and with management of the functions all done by Netlify. Netlify functions can be built with either JavaScript or Go.
Learn mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62924371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to select columns from another dataframe , where these columns are list of value of column in different dataframe I am using spark-sql 2.3.1v with java8.
I have data frame like below
val df_data = Seq(
("G1","I1","col1_r1", "col2_r1","col3_r1"),
("G1","I2","col1_r2", "col2_r2","col3_r3")
).toDF("group","in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60830256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Open a new tab in a browser with the response to an ASP request It's a bit complicated this one... Lets say I have a listing of PDF files displayed in the user's browser. Each filename is a link pointing not to the file, but to an ASP page, say
<--a href="viewfile.asp?file=somefile.pdf">somefile.pdf</a>
I want... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2717943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Writing from System.out.println to a file I've replaced many strings and outputted the result and now am trying to write those lines into a text file. Here's what I did. I created a new file:
File newfile = new File("/Users/Bill/Desktop/newfile.txt");
if (newfile.exists()) {
System.out.println("File exi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6092305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to convert 32-bit tiff to 16-bit png? Grayscale displacement texture I need to convert 32bit tif to 16bit, but preserve all range of details.
I've tried convert -normalize, convert -depth 16, convert -depth 16 -normalize and it just gets rid of all the details and part of the texture is just black.
The image I g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74567005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: ruby on rails: solid method to change logged in client's browser location on time X even when they reload pages? Im in the need of changing a client's browser location on a certain time X. It has to be solid even if a user reloads page it should redirect to location X
Below is my current (imperfect) implementation o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11354355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: multiply form values from form array with JS I have html form with arrays:
<form method="post" id="formaa" name="form">
<div id="fields">
<div id="divas1" class="row">
<a href="#" id="did1" onClick="d(this);"><img src="d.jpg" /></a><a href="#" id="uid1" onClick="u(this);">
<img src="u.jpg" /></a><input... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11434357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Quicksort with Lists in C++ I am working on a comparison for how different data structures effect the performance of an algorithm. I am trying to get the "List" data structure to work with Quicksort. When I try to run it however, my application crashes and gives me the error "list iterator not derefencable". Anyone ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40960871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adding a NEXT button to an iPad UISplitViewControl Simple question (yeah right!). I want to add a "NEXT" button on the detail pages of my UISplitViewController for my iPad project. If clicked, it would be another way of advancing to the next page in the list of pages. As a bonus, I want to highlight the correct ro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5797917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Camera photo selection not working in Swift Why isn't the second function being called when the user takes the photo and clicks the use photo button? The view gets dismissed, but the print statement doesn't work and the function isn't called.
@IBAction func openCamera(_ sender: UIBarButtonItem)
{
if UIIm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41750808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is Paramiko raising EOFError() when the SFTP object is stored in a dictionary? I'm having trouble with an application I'm writing that downloads and uploads files to and from other boxes via SSH. The issue I'm experiencing is that I can get (download) files just fine but when I try to put (upload) them onto anot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5342350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: I need an example on how to use the function create created by the RESTful from entity class I need an example on how to use the function create created by the RESTful from entity class
My entity class (Countries) :
package entities;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29086388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to count the number of date-specific newly data entered on an increasing range from row x? I need formulas that do these things for me automatically
*
*Count and display the number of new pieces of data added to the spreadsheet =TODAY()
*On a separate sheet, list the number of new pieces of data added to the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65707281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Iterating over listed data frames within a piped purrr anonymous function call Using purrr::map and the magrittr pipe, I am trying generate a new column with values equal to a substring of the existing column.
I can illustrate what I'm trying to do with the following toy dataset:
library(tidyverse)
library(purrr)
t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67143140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How OR Xor And blocks of memory We have two bitmap such as bitmap1,bitmap2.both initialized with malloc(same parameters). Bitmap1 is assigned such as 0010 0110 and bitmap2 is assigned with 1000 0001. How we do OR operation between bitmaps to make 1010 0111. On the other hand, we want to set bits of bitmap1 that are ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11362181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Error when used consolidate node package I tried to used consolidate package with gulp to build the MEAN stack app. But I don't know why when I run npm install, then gulp browserify, it always threw a lot of exceptions like
Browserify Error { [Error: Cannot find module 'hogan.js' from '<my project path>\node_modules... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30369262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Andropid SDK 20 - Can't open more than one avd I have just updated to Android SDK Tools 20 and SDK Platform-Tools 12.
Now I find that, for some reason, I can't open more than one AVD at the same time.
Anyone else found this problem?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/11345254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to access a function which is not global and it exist in another js file? I have the following js files and I want to access one function from another function but I call it in another js file. I receive this error when I call it Uncaught ReferenceError: vidPause is not defined.
(function($) {
$.fn.controlls... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33628251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I map the result set of query to a different entity other than table I am trying to fetch data from db and mapping it to different entity but I get
java.lang.IllegalArgumentException: java.lang.ArrayIndexOutOfBoundsException: 0
My Table looks like
@Entity
@Table(name = "Student")
@NamedNativeQueries({
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59942606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: C# Multi-threading logical error I am new to multi-threading, but I don't know what's wrong with my code:
public int k;
private void button2_Click(object sender, EventArgs e)
{
k = 10;
ThreadPool.SetMinThreads(2, 6);
ThreadPool.SetMaxThreads(2, 6);
ThreadPool.QueueUserWorkItem(aki);
ThreadPool.Q... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17895851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Post serialized form data with ajax I have this form
<div class="tab-pane" id="trade">
<br/>
<div class="well">There are currently a total of <b>$traders traders</b> and this session has a total of <b>Ksh $total</b> you can earn this very minute.</div>
<form class="form-horizontal" name="trade">
<br/>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53202808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Bus Error when using recursion So, I'm using recursion and going through an array named code which contains integers and a value is computed after
traversing through the array. But I don't know for what reason this is giving a BUS ERROR : 10.
I even tried manually going through the array and everything seems fine, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51900731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cannot read properties of this object values of parent component to child component function in angular I'm calling a function declared in parent component in the child component in the form of callback.
Parent Component
translation-editor.component.ts
export class TranslationEditorComponent implements OnInit {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73334914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Test a simple function in jasmine karma - Angular Basically i have this function
function getDP() {
if (someFunctionOutsideAngular()) {
var str = vm.dp;
var selectedDate = '';
if (vm.dp == null) {
selectedDate = new Date();
} else {
s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44174186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: django model's inheritance I want to have two registration type. for example : employee and employer type. i want two different form.
i override AbstractUser and after i use this class (inheritance)
class User(AbstractUser):
age=models.BooleanField(default=True)
class employee(User):
is_employee=models.Bool... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66917570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Weird matrix array behavior in C I have some piece of code which I used for making some zeros on Matrix Array to 1 and printing it. I am making 4 0s to 1 in first while, but it says there are 5 1s on the array on second loop. Could not figure it out. Can you explain what is wrong in my code. Thanks for your time
#in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60459243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Validating the data entered in numeric input in RShiny I am developing the Shiny app in which if the user enters non-numeric characters, the value should be changed to the value mentioned in updateNumericInput().
Here is my Rcode
library(shiny)
ui <- fluidPage (
numericInput("current", "Current Week",value = 40, m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46703166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Displaying child records based on parent id from URL I have one model Dataset and another one called DatasetReview, where DatasetReview has a foreign key connection to Dataset. I would like to display all of the DatasetReview models that are tied to a specific Dataset in a separate page.
I can currently view each Da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72176800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to redirect users and integrate whmcs bridge using htaccess? I have a wordpress blog and whmcs client area. For bridging whmcs and wordpress I have used the whmcs-bridge plugin. It allows me to access the whmcs area using the url,
/client-area?ccce=cart for page /clients/cart.php
/clients/cart.php --> /client-ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32547240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to clip children in qml? I have webView element that display google maps page. I need to show only map, without search input and other content. I have no idea except something like this:
Rectangle {
x: 0
y: 51
height: 549
//something like android clipChildren property
WebView {
id: m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17105087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Are C standard library structures compatible between compilers and library versions on macOS or Linux? My host application took over the ownership of e.g. a FILE object which came from a dynamic library. Can I call fclose() on this object safely even though my host application and the dynamic library are compiled wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48389080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: SQL multiple start dates to end date I have a table with the following format (which I cannot change)
ClientID | RefAd1 | Cluster Start Date | Cluster End Date
100001 | R1234 | 2014-11-01 |
100001 | R1234 | 2014-11-10 |
100001 | R1234 | 2014-11-20 |
What... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28191139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to pass state values from a component into another child component that contains param settings? I have a basic component that goes out and gets user info via axios and then sets the users state. But in the component, I have another nested component that is a form type component that sets placeholders, defaultVa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62866302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Did a stopwatch using time libraries, it worked as expected, but it returns none also I'm new to python, so I was following a few tutorials to understand how to do something I liked to do. A stopwatch returning not only the time passed but also the time it started and finished. My plan started creating two variables... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72550990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Nested query to reference field from parent query Simplified example:
select
ticket_id,
`number` as 'ticket number',
(SELECT count(*) from ost_thread_entry join ost_thread on ost_thread_entry.thread_id = ost_thread.id where ost_thread.object_id = 1234) as 'number of posts in ticket'
from
ost_ticket
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71795285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why am I getting a NoMethodError when calling an instance method from global scope? I have searched around for the answer to this and I can see a lot of similar problems but I still do not understand what I am doing wrong here. I have declared a Ruby class and attempted to new it and then call some instance methods ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46271427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing 'this' to prototype function nested function what's the best style to pass 'this.dayNames' and use it within the nested function (createCalendar())?
function DateNames()
{
this.dayNames = ["Su", "M", "T", "W", "Th", "F", "S"];
}
DateNames.prototype.render = function(date)
{
console.log(date);
cr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73359913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unable to read response from server using Socket.IO client in Swift I am trying to connect to my Socket.io server (Node/Express) from an iOS client.
Here is the code for the server (JS):
// Server Code
io.on('connection', (socket) => {
console.log('user connected');
})
And here is my client code (Swift):
ove... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68324189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why show all data from mysql databese if I hit saarch button by keep search field blank and need extra one HTML button for all Entries.? When i keep search field blank and hit on search button, then show all results from mysql database, Why.... here is my php code....
I want to create it, when i keep search field b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55080963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TFX - How to inspect records from CsvExampleGen Question
How to inspect the data loaded into TFX CsvExampleGen?
CSV
Top 3 rows from the california_housing_train.csv looks below.
longitude
latitude
housing_median_age
total_rooms
total_bedrooms
population
households
median_income
median_house_value
-122.05
37.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72007159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Looking for render event in delegateEvents in Backbone.View I have one question about Backbone.View and its delegateEvents. You can read in docs here about extend method. Using this method, you can "override the render function, specify your declarative events" etc.
I have a question about declarative events or del... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33662044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I just shifted my databases to a sql server 2008 cluster connected to a SAN and its started giving me the following errors SQL Server has encountered 1 occurrence(s) of I/O requests taking longer than 15 seconds to complete on file [T:\MSSQL\DATA\%file_name%] in database [%DB_name%] (2). The OS file handle is 0×000... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1288283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Synchronized SELECT to web sql I have need for executing SELECT statement to my web sql table and based on response use result or make AJAX call to obtain results.
It is possible to make synchronized ?
I have function like this:
getFile : function( fileName ) {
var me = this;
me.db.transaction( func... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23664156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I 'monkey patch' or override User.is_authenticated()? Creates issues with using django-lazysignup I installed django-lazysignup and am facing the challenge now of User.is_authenticated() returning True, for what are not actually authenticated users, but instead lazy-signup users. I can update any checks for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31256174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where is page social_django.views.auth? I'm trying to make auth with google. But get
Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/account/login/google/
Raised by: social_django.views.auth
Backend not found
settings.py
INSTALLED_APPS = [
...,
'social_django',
]
SOCIAL_AUTH... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66387498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Predict Values by using neural net in R I'm new in using R, but the more I get in thouch with, the more I like it.
Howver, I try to utilze R for artificial neural networks.
My input data is a csv-Table with measured soil properties.
Phosphorus, pH, clay content, silt content and so on.
The objective is to train a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28083740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Use ONVIF Client Test Tool simulator for Profile T I am trying to do the ONVIF Client certification. For HTTPS streaming, I need to use the profile T simulator that is included with the Client Test Tool. As I understand it, the simulator should behave like an ONVIF camera (or some functionalities of a camera), but i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73803979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: check facebook session onload Below I am trying to check the session of facebook on page load. And want to show different content on page as per login status. What's wrong?
I want first two check the user connection status. Then only appropriate content to be shown on the page.
<html xmlns="http://www.w3.org/1999... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18865794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sending data from Arduino to MIT app Inventor 2 via bluetooth I have an Arduino Uno microprocessor connected with a temperature sensor, I am able to print the temperature on the Serial Monitor successfully.
The idea is, I wanna dump the value of the temperature into a label sitting on MIT app inventor 2 project via... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31460679",
"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.