text stringlengths 15 59.8k | meta dict |
|---|---|
Q: PHP cannot connect to LDAP Oracle Directory Server Enterprise Edition Been playing with this for days and can not get php to bind to ldap on Oracle's DSEE.
function test(){
// LDAP variables
$ldaphost = "xxx.xxxxx.com";
$ldapport = 636;
$ldaprdn = 'cn=xyxyxyxy,ou=Accounts,dc=xxx,dc=xxxxx,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5888968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: RAR file downloaded with C# becoming corrupt I'm download a .rar file from a github release but the downloaded file is becoming corrupt. The file is fine it's just not working when I download it with code
this is my current code
WebClient wc = new WebClient();
Uri fileLink = new Uri("https://api.github.com/repos/{my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72239014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Elasticsearch ILM index data is not shifting/migrating We have created ILM (index lifecycle management) policies, to automate index rollover using a matching index template and a bootstrap index to enable write index with an alias.
Please find the below API code:
Polices
{
"policy": {
"phases": {
"hot": ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68638716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: if a process mallocs memory and then forks, will the child process have a proper malloced memory For the following code :
main() {
int *p = (int *)malloc(2*sizeof(int)) ;
if(fork()) wait() ;
else *p = 10 ;
}
I want to know that when we fork does the child process receive the malloced block in its proces... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23608033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can Azure IOT hub be used to read(Get) data from some devices? In my case I have 1000+ of devices that stores activity inside. I need to send a http get request to this device to get those data in csv or json format and save it in a storage hosted on azure.
Cab IOT hub require data using get request and can it be s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49785684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: lockDays in Litepicker Js Using Litepicker (https://github.com/wakirin/litepicker/) I'm having troubles adding lockDays to my calendar.
I'm retrieving some data from my DB and this is the JSON answer:
{
"error":0,
"reservation_counter":1,
"reservations":[
{
"start_date":"2022-02-28 00... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71293197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQLAlchemy relationship between inherited tables throws primary key error I'm trying to set up a joined inheritance in SQLAlchemy which is working fine. My schema design requires a one-to-many relationship between two inherited table. My actual working example is quite complex but I was able to reproduce the issue w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62422207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there an equivalent to Java -Xmx for python? I am used to running .command scripts with terminal that use java, which allocates an amount of memory by the arguments -Xmx and -Xms.
I am now using a .sh script with python and can't seem to figure out what the equivalent is.
EDIT: Let me explain a little more. Is i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22887400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Not able to install Tomcat9 to Netbeans 8.0.2 Need some help. Its my first time with netBeans and i am trying to install Tomcat server9 with netbeans 8.0.2.
I am succesfully using it with eclipse but
I googled ofcourse but none of the solution seemed to work. My CATALINA_HOME is set and pointing to tomcat location... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51016525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using request count for hpa I am trying to deploy HorizontalPodAutoscaler on GKE referring the following
link
#HPA.yaml
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
name: hello-hpa
spec:
minReplicas: 1
maxReplicas: 5
metrics:
- external:
metricName: loadbalancing.googleapis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57691427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cloudfront CloudFormation We have option to get the value of DomainName in cloudformation template while creating a CloudFront Distribution using Fn::GetAtt function. But I could not find anywhere that how we get Origin's Id and DefaultCacheBehaviour's TargetOriginId dynamically?
Can I just use Ref to my S3 and ELB?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53576157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Print in terminal after`freopen("file.txt", "wb", stdout);` (or similar solution to preserve a printing function) I want to store the printed output of a function with freopen("file.txt", "wb", stdout); (or another solution, but the function matrix_output_printf() should remained untouched.
However, I want to be abl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75355851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why did css 'position: absolute' stop working? In my site, I have a language bar floating on the top right of the screen.
html:
<form id='form2' name='form2' method='get' action=''>
<div id='langs' class='langs'>
<button type='submit' name='lang' value='PT'>PT</button>
<button type='submit' name='lang' value='EN'>EN... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33289473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Delphi - Two Modal forms I have a main form (A) that call a modal form (B). and (B) call another modal form (C) and they work normal
the problem when I added new modal form (D) and make it called from (B) then when I close the form (D) the form (B) also closed !! although I made sure the close button modal result =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12505572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to get the Google Custom Search (V2) to execute immediately with a pre-loaded search string? I've been tasked with adding GCS to a website. After I followed the instructions to create my free GCS (http://www.google.com/cse/sitesearch/create), and pasted the supplied snippet into the appropriate place, the search... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16849144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Elasticsearch 6.2 (java/gradle) integration test I am spending days trying to find solution what to use for this "simple" test:
*
*inside of test stand up ES node that will be used for test only
*connect with transport client to that ES instance and add new index.
(that is just a start of all integration test... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51271057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best way to create a unique number for each many to many relationship I have a table of Students and a table of Courses that are connected through an intermediate table to create a many-to-many relationship (ie. a student can enroll in multiple courses and a course can have multiple students). The problem is that th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/565102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Django view that rewrites URL to contain username as a query parameter? I want to do simple analytics over which user is doing what on my Django site.
I think the simplest way is to rewrite all URLs so that they contain "?username=foo".
This will only happen on GET urls that don't already have any URL query paramete... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12526385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: LDA - Assigning keywords to topics I have unstructured data of about 150k documents. I am trying to group these documents using unsupervised learning algorithm. Currently I am using LDA (Latent Dirichlet allocation) in gensim Python. For LDAModel I have passed num_topics=20. Hence my whole 150k data is falling into ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43656999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Git push atomically, only if the target branch is at the expected SHA Is there a way to push to a branch only if it hasn't changed since I last fetched it?
More specifically, I'd like to delete branches that have already been merged, but only if no one else pushes new commits to them between when I check that the br... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65430425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: git - cannot push to repository - bug with hashmap When I try to push to repository, I got this message
BUG: remote.c:236: hashmap_put overwrote entry after hashmap_get returned NULL
Any idea what is wrong? Google shows nothing...
When I try push to another repository on the same server, it is working correctly. Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72293994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to get stderr using Popen + vim I am trying capture error messages from gvim using subprocess.Popen(), but not having much luck.
import sys
import subprocess
import time
ppp = subprocess.Popen(
["vim", "-g", "--nofork", "--some_option_that_does_not_exist", "blah"],
stderr=subprocess.PIPE
)
time.sleep(1)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20446313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the gain I can have with blocks over regular methods? I am a Java programmer, and I am learning Ruby...
But I don't get where those blocks of codes can give me gain... like what's the purpose of passing a block as an argument ? why not have 2 specialized methods instead that can be reused ?
Why have some code... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4783166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: HighChart - Stacked Bar chart - To show dash line over the bar chart but it is not visible on Left side of the bar I have attached the screenshot to show the dash line in left side of the chart. It would be helpful if we can achieve the functionality and I tried to increase the width of the border, it is visible sli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68897331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to connect socket_io_client via https in flutter? I work with socket_io_client. So how do I connect the https socket in my application.
below is code example
Socket socket = io('https://abcd.co.in:1000005',
OptionBuilder().setTransports(['websocket']).build());
socket.connect();
socket.onConnect((_) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72086390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can't hear sound from bluetooth speaker I'm using Raspberry Pi with Ubuntu 22.10 and Java 19.
I'm trying to play a sound with the following code:
private static void testMixers() throws IOException, UnsupportedAudioFileException
{
try (AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(new Buffe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74281825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I use html area tag to create different shape text containers? Is it possible to create text container which is not square/rectangle?
Can I use area tag for this?
Any example snippet will be appreciated.
A: No. All elements are rectangles by defintion. Even the <area> tag wouldn't get past that.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/20359304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting the Value which is already selected in drop down menu by Selenium Webdriver i have a Drop Down menu which has pre-selected a value please help me how to get the selected value text and print it in console
drop down menu html code is
<select id="ctl00_ContentPlaceHolder1_ddlCalculation" class="normalText"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22091892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to write value to file with node.js so i have a multiple requests from client, each request contain data,
{
key: 'string',
public_url: 'string'| null ,
value: 'string',
created_at:'string',
updated_at: 'string',
content_type: 'string',
size: 'int',
checksum: 'string',
theme_id: 'int',
warnings: []
}
s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73486213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best method to get double value from datetime in jquery Which is the best way to convert datetime to double in jquery? I have used Date.parse. But, it is not correct in few cases. Also,i am unable to pass datetime format for that method.
-
Viji
A: In JavaScript, you can simple do variablename.toFixed(2); for that.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16914918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: javascript program to check if a string is palindromes not returning false I wrote this bit of code a a part of an exercise to check weather or not a string is palindromes. They program is working correctly in terms of checking the string but it does not return false when the string is not palindromes. What am I doi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39730416",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I add meta data to the head section of the page from a wordpress plugin? I am writing a wordpress plugin and need to add some meta tags to the head section of the page from within my plugin. Does anyone know how I would do this?
Thanks
A: Yes you can add an action hook to wp_head like this:
add_action('wp_h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5805888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Change button background programmatically I'm creating a Tic-Tac-Toe app using Android Studio, this is the layout
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42906869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: React gives me red underline errors but there is no error Visual Code gives errors in lines but there are no errors in those lines.
A: Please rename your file to "todo.jsx".
Explanation:
VSCode and other IDEs choose your parser based on the file extension. For VSCode it looks like you are creating a "normal" JavaS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70510413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Tkinter Wait for Key to Be Pressed I am using Python 3 and Tkinter, and I have a wait() function, waiting until the right arrow key or left arrow key is pressed, however, it just freezes everything, and I have to force stop the program.
from tkinter import *
right = left = False
def setLeft(event):
global left... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42126361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Get name of All Constraints from access table in java How can I get all constraints like Primary Key and Foreign Key defined in MS Access database.
For MySql, we use describe table_name
Similarly, what is the query for MS Access for using it in java program?
A: import java.sql.*;
public class DescQueryOutput{
pu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15355448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: A basic vanilla javascript AJAX loader I am trying to write a simple function to return data from an ajax call. Here is what I have
var mytext = "";
function load(url){
var xhr = new XMLHttpRequest();
xhr.open('GET', url);
xhr.send();
xhr.onloadend = function(e){
return xhr.responseText;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61136997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can use Codeigniter my_model class for udate with multiple where condetion? Iam used codeigniter my_model class for update my table datas.
Actulay i need the query is
`UPDATE `pay_project` SET `awarded` = '129' WHERE `pay_id` = 1 and `status` ='y'
For this purpose am tried the codeignter my_model function upda... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31284275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to resolve 404 Error for an AJAX call in Django I am getting a 404 Error for an AJAX call in Django
Here's my code:
jQuery Script:
$('#cluster-id').change( function(){
$.ajax({
url: '/ajax_demo/',
type: 'get',
dataType: 'json',
complete: function( jqXHR, te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43178026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pointer to function instead if in c I'm making a little calculator in C with only "+, -, /, *, %" parameters, and honestly, this is working fine. But I would try to make it with pointer to function I think I will use a better syntax but I don't know where I may start and how can I do/can I use it? I would like impro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68462910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to convert latitude or longitude to meters? If I have a latitude or longitude reading in standard NMEA format is there an easy way / formula to convert that reading to meters, which I can then implement in Java (J9)?
Edit:
Ok seems what I want to do is not possible easily, however what I really want to do is:
Sa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/639695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "175"
} |
Q: Fine Uploader - get image date Is there a way to obtain (on the client side) the creation/last modification date of an image uploaded via FineUploader? Looking for a solution for JPEGs (where EXIF is available) and PNGs(where EXIF is not available).
A: It is not possible to determine these values for non- jpegs. F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22655338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Making a form submit NOT reload the page I am still learning proper and more efficient ways of writing code - at the moment I am stuck on this current issue.
I have a form that currently works fine - writes to the sql database, then reloads the current page. I would like the form to NOT reload the page.
I know the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39694245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Impersonate user while creating Organization Service Proxy with XRM Tooling Connector I am connecting to CRM Online v9.0 using XRM Tooling Connector.
I am trying to update a Contact using WebAPI. Once the contact is updated, the a workflow is triggered that sends an Email to the Contact. However I am getting - User... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51095298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to specify covariates that don't interact with factors when using rstatix package? When adding covariates to a between-subjects ANOVA model specified using rstatix package syntax, can one specify these covariates as having no interaction with the main effects?
For example, results from running the "RUN1" code be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72628427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why does a dialog seemingly have its one thread? I'm new to advanced programming - but from what I've read, all my android programs are on one thread.
This means, only one line of code or method/function can be executed at a time before moving on to the next line (that's what I thought anyway).
However, I'm using ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5227111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to dynamically attach attribute to mock-wrapped instance I need to be able to attach an attribute to a mock-spy during a test. That is, I want to be able to do this:
[ins] In [1]: class Foo:
...: def __init__(self): pass
[ins] In [2]: foo = Foo()
[ins] In [3]: from unittest import mock
[nav] In [... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72326859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# - TableLayoutPanel Cutting Off Label String I'm creating a table layout panel to display the values from a dictionary, but the table layout panel keeps cutting the Label controls I put into the cells off at 14 characters. I've tried to fiddle with the ColumnStyles of my table layout panel but none of the options ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12611468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Error while installing uml lab in eclipse i was trying to install uml lab in eclipse juno,but no matter how much i try i am always getting this error message:
An error occurred while collecting items to be installed
uml lab is just not getting installed .please help me out i need to complete my work.
A: what err... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14610385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How does putExtra() work ? How does it's parameters work ? And what do the two parameters mean? I have been trying my hand on Android development and was following on with the guide given at http://developer.android.com/, I came across putExtra() and was wondering if someone could explain to me as to what does this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24233194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error when login in on deezer developer portal when I try to get access to deezer developer portal, I'm redirect to a blank page with this text
You have to login to accept the terms and conditions of the simple API.
And a button to login.
Which when pressed come back to this page.
Any suggestion?
Thanks.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/51912868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's wrong with my insertion sort? I'm trying to sort a large datafile using an Insertion-based sorting algorithm, the code runs fine but the output is incorrect. I've studied it over and over to absolutely no avail, can anyone see where I've gone wrong?
public void sort(Comparable[] items) {
for (int i = 1; i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22222388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is Next.js adding a ?ts query parameter to static JS files, preventing loading them from cache? On every page load, Next.js requests the same JS files with a query parameter such as ?ts=1234.
E.g:
/_next/static/chunks/pages/_app.js?ts=1671033077175
/_next/static/chunks/main.js?ts=1671033077175
This is obviously... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74801302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sort linq query result, when it has "First() and into Group" var qryLatestInterview = from rows in dt.AsEnumerable()
group rows by new
{
PositionID = rows["msbf_acc_cd"],
Ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37428694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: HTML won't link up to CSS when I open it again My problem is that I linked the CSS correctly when I created my HTML file, but then when I try to edit the CSS the other day, it just didn't update my HTML file and I did save it of course. One way I can get around this is by deleting the CSS in my htdocs and creating a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41255496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do i format "message.content" on a discord bot? i want to format what my discord bot is saying but with "message.content"
for example, if you were typing normally in discord and you wanted to, for example, make it a code chunk, you'd go "insert message here", but when I try to do it with the "message.content" co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72156925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Get Time for page to load in jQuery? Get Time for page to load in jQuery?
A: What is the end of page load? window.onload?
var start = new Date();
$(window).load(function() {
$('body').html(new Date() - start);
});
jsFiddle.
If you're supporting newer browsers, you can swap the new Date() with Date.now().
A: W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5188648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Add buttons Back, Forward, Play / Pause and a form for setInterval() I'm trying to make a simple slideshow with query but I need to add some buttons for back to previous slide, forward to next, play / pause the slideshow and an input form for change the interval.
Here's my code for slideshow:
var tempo = 3000;
var ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31632533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to find the most recent partition in HIVE table I have a partitioned table - with 201 partitions.
I need to find latest partition in this table and use it to post process my data. The query to find list of all partitions is :
use db;
show partitions table_name;
I need a query to find the latest of these parti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36095790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Using max and other SQL aggregate functions Whenever I use SQL aggregate functions I find their utility hampered by the need for the Group By clause. I always end up having to use a bunch of nested selects to get what I want. I'm wondering if I'm just not using these functions correctly.
For instance. If I have the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25062205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: unsupported operand type(s) for +: 'QuerySet' and 'QuerySet' I have model it is have two MantToManyField, How I can sum or compain this two fields, there is number for each field, I want to have have result of sum this fields.
My model
class Video(models.Model):
viewers = models.ManyToManyField(Account, related_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67120899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: OpenLayers - Trying to load layers using a JSON file I will have a bunch of layers I need to load into my map, so instead of loading each one individually I was trying to load using a json file and Openlayers.Request.GET but do not know how to complete to code.
json file:
{
"layers": [
{ "title":"Client Manholes" , ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18600427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I fix Webpack related error: Cannot assign to read only property 'exports' of object '#'? I'm using webpack, which, if I understand correctly, doesn't support native webworker syntax, so I'm trying to use the worker-loader npm module, but I'm getting a weird error.
The module can be found here.
My webpack c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47720354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Php code not updating the Database Im new to programming and i cant understand why this code is not working.
<?php
$host="localhost";
$username="ryan";
$password="s@ch!911";
$db_name="webservice";
$con=mysql_connect("$host", "$username", "$password")or die("cannot connect");
m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36424956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to pass data using submit() in javascript? I want to post data from one page to another using javascript post method?
Below is the javascript I am using..
In test1.asp page
<script type="text/javascript">
function Service_Add(Data_ID,Data_Type)
{
var Data_ID=Data_ID;
var Data_Type=Data_Type;
document.miformul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1995368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Realtime Recording angular I use recordRTC to record videos and its working fine.
Since we are building a robot, means the user interacts with the application via (a webcam and a microphone) , example when he says ' i want to buy a ticket ' we analyse his voice in our back-end application(java) then we redirect him ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60486743",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: type inference for std::initializer_list If I write this
std::vector<std::string> v{"one","two","three"};
What is the type inferred to the associated std::initializer_list template ?
In other words, when the char * string literals are converted to std::string ?
It's a better idea to declare it as
std::vector<std::s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22714859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: __puppeteer_evaluation_script__ empty in Chrome dev tools With Puppeteer version: "9.0.0"
When placing debugger into JavaScript code and launching puppeteer the source code is empty in chrome dev tools.
Running the script with Node:
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67461958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What does the MongoClient version of find() actually return? I am using the native node.js mongodb driver, and just did a basic find() operation on a collection and it returned, well, something I don't understand. I don't expect to know everything about this object, just for starters I'd like to know where I should ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33659784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Writing my own SMTP server I am writing a simple SMTP server and client. Server is in two parts receiver-SMTP and Sender SMTP. both will run in two different daemon services. The two modes this can run in is 'remote' and 'local'.
Since i am new to network programming I am having difficulty in even getting started. A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1692447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: HTACCESS with PHP value Hey,
I need to filter out requests with certain PHP value in HTACCESS and I cant find how to do that.
The problem is there is someone spamming my site with special PHP value and it keeps my server overloaded.
The URL is www.site.com/?q=XXXXX. I need to filter out all requests like this (with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5384422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP if specific business day of week and time echo The following code works to echo "Open" or "Closed" if time is between 8:15am and 5:30pm. I am trying to make it day specific. How can I incorporate format character 'D' as example, Mon hours 8:15am - 5:30pm .. echo "Open", Sat hours 8:15am - 1:00pm "Open". I want t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39520107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: File permission issues in android PFA the png, in this please note the permissions for the images inside app_themes directory. I am creating and adding files to this directory(app_themes) and during the process I do not specify any permissions at all.
Now I can see, for some png's the permission is rwxrwxrwx and fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9903231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: what is placemark in flutter geocoding I m very beginner for flutter google maps. I just want to know what is placemark in flutter geocoding and I just need to understand the below code. Thank you so much for any help.
_getAddress() async {
try {
List<Placemark> p = await placemarkFromCoordinates(
_current... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70186396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: docker build how to run intermediate containers with centos:systemd I am trying to build a docker image that is based on centos:systemd. In my Dockerfile I am running a command that depends on systemd running, this fails with the following error:
Failed to get D-Bus connection: Operation not permitted
error: %pre(mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46084775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Select Similar Titles From a Table With a Single Query I would like to query a single table and select any entries which have similar titles. A similar title is a title with exactly the same string (case insensitive) but with "(fresh)" appended. The result should return the id and title of any matches.
For example i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23073701",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using Directive C++ Implementation In C, if I use #include "someFile.h", the preprocessor does a textual import, meaning that the contents of someFile.h are "copy and pasted" onto the #include line. In C++, there is the using directive. Does this work in a similar way to the #include, ie: a textual import of the nam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23585758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What does +Mat mean? Lookint at the definition of the Flow class on https://doc.akka.io/api/akka/current/akka/stream/scaladsl/Flow.html, it has the
following signature:
final class Flow[-In, +Out, +Mat]
The question is, why is the type of the third parameter is +Mat? I thought, +Mat makes only sense on Sink, bec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55611836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Docker compose network doesn't bind ip address I'm trying to run a selenium grid from a docker compose file. In this docker compose I set an Ip address, because I want to run test on a jenkins from another docker image. Only when I try to run my tests with the setup ip address it gives following error
org.openqa.se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66226308",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Math: Division Problems Generator I am making a program that takes asks if you want to do Addition, Subtraction, Multiplication, and Division. It then asks how many questions. I have everything working but Division. I want to make sure that there will be no remainder when doing the division problem. I don't know how... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26048672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reporting plugin for Opensource chef Is there any Plugin to add reporting feature to an opensource chef as it is for Enterprise chef?
I tried installing using below command
/opt/chef/embedded/bin/gem install knife-reporting
knife-reporting gem got install but no related commands are found when i run knife
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24668666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unable to edit any columns in my C# DataGridView - would anyone know why? I'm trying to enabled editing for a number of columns in my DataGridView. Now, before anyone suggestions I should read the MSDN article: How to: Specify the Edit Mode for the Windows Forms DataGridView Control, I already have.
In summary (and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4004311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to clear the session using a button and javascript Session is client side staff, but is it possible through clear it using javascript code?
I would like too have the idea like this and ,can it convert to jquery format? Thank you.
js
$(function(){
$("#closeTab").click(function() {
window.parent.$('#tt'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9780583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Inheriting class definition from parent class I am building Grape Entities inside my Rails models as described here:
https://github.com/ruby-grape/grape-entity#entity-organization
Currently I am creating default values automatically, based on the column hash of the model itself.
So I have a static get_entity method ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47371243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Nested resource parameters with Rails and Backbone.js I've got this issue where I am seeing the incoming parameters nested incorrectly. Here's some of the setup:
In routes.config I've defined:
resources :events do
resources :guests
end
As a result I end up with the right controller/action paths. The ones I'll cal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16265402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to pass variable parameter into XPath expression? I want to pass a parameter into an XPath expression.
(//a/b/c[x=?],myParamForXAttribute)
Can I do this with XPath 1.0 ? (I tried string-join but it is not there in XPath 1.0)
Then how can I do this ?
My XML looks like
<a>
<b>
<c>
<x>val1</x>
<y>abc</y>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30352671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: php Error: Resourse id #4 for($i = 0;$i<10;$i++)
{
$query1 ="SELECT `id` FROM radcheck ORDER BY `id` DESC LIMIT 1;";
$lololo= mysql_query($query1) or die(mysql_error());
//echo $lololo;
$query = "INSERT INTO radcheck (username,attribute,op,value) VALUES ('teleu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29914294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Highcharts center on x and y axis offset First, for reference I'm trying to mimic this chart:
Currently my chart looks like this: http://jsfiddle.net/eA4Df/
What's the option to center the (1, 1) coordinates of the chart but still display all of the bubble data?
Current highcharts options are:
chart: {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25082666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CS50 Caesar multiple errors I'm working on Caesar of CS50 and I don't know what's wrong with this code. I keep getting 5 errors and 1 warning (scroll down). I have done my best so far to fix it but I honestly don't know what to do.
The program is essentially a Caesar cipher encoder. When I launch the program it shou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65963505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: merging result of one observable to another I have a situation which I haven't been able to solve via RxJava2 operators.
I have a list of "Matches" I retrieve from Room. Here is my Match POJO.
public class Match {
@PrimaryKey
private int id;
@Ignore
Team rivalTeam;
}
Here is my Dao for this table.
@Dao
public int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48953279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I dynamically make a field type number in Angular? I am generating an HTML form from JSON using some custom directives. Part of the JSON include restrictions on the values of the fields.
One of the restrictions the JSON puts on fields is a positive decimal type. The code I use in my link function to accompli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35369084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mercurial convert extension not able to pull from remote Git repository I'm trying to do a 'hg convert', to pull from a Git repo into an Hg one.
Now, I don't have Git installed on my Windows 7 machine; is that necessary? I'm using the TortoiseHG commandline, and I have activated the convert extension ('hg help con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4917589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Order of operations in for loops in C In the following floor loop, how would sum += n -- be evaluated? I'm very, very confused...
int sum;
for(sum=0;n>0;sum+=n--);
A: For sum += n-- the following operations are performed
*
*add n to sum
*decrement n
With sum += --n
*
*n is decremented
*the new value of n i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34239335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WPF FileDrop Event: just allow a specific file extension I have a WPF Control and I want to drop a specific file from my desktop to this control. This is not a heavy part but I would like to check the file extension to allow or disallow the dropping. What is the best way to solve this problem?
A: I think this shoul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/724774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Cant obtain md5 Fingerprint for api key I am trying to develop the map element of my app and I am having trouble obtaining a md5 fingerprint, I am using Ubuntu and I have located the debug.keystore file, but when I enter the commands I get:
No command 'store' found, did you mean:
Command '0store' from package 'zer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3804533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Angular 14 (Excel) File Download, Returning 502 (Bad Gateway) I have an app, that uses a standalone service for the back-end (Springboot) and a standalone front end app (Angular 14).
I'm making a request from the front end, to the back end. The back-end generates an excel file (XSSFWorkbook) and sends it back to the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75612008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Jackson deserialization into field from subnode? I have a class
public class Foo {
String foo;
String bar;
}
and JSON
{
"foo": "foo",
"bar": {
"bar": "bar"
}
}
Can I deserialize it using any json library without writing adapters/serializers to specific class.
Maybe some of gson's adapters has ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35436068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: is it possible to write a directive to match "any other query params"? To ensure people don't append random query parameters (e.g. appending &r=234522.123 or similar) to avoid hitting our cache I want to have a way to reject any queries that are not handled explicitly. I can of course create one that contains a whit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22153900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Spawning new robot in running ROS Gazebo simulation The problem statement is in simulating both 'car' and a quadcopter in ROS Gazebo SITL as mentioned in this question. Two possibilities have been considered for the same which is as depicted in the image.
(Option 1 uses 6 terminals with independent launch files an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40308891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Reset Bootstrap modal when clicking outside modal window I'm having some problems with reseting my bootstrap modal whenever the user clicks outside the modal window to dismiss instead of pressing the dismiss button. My datetimepicker stops working whenever the modal window doesnt reset properly.
This is what my moda... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43027677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.