text stringlengths 15 59.8k | meta dict |
|---|---|
Q: Jquery Keypres function not working FireFox I have the following JQuery function which validates a text field for numbers and one decimal only. It works fine in Crome but its not working in Firefox. Anyone know how i achieve the same in Firefox?
$('#amount').keypress(function(event) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22639195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I make my program work when not in focused (background)? I made a small application for myself that is running how it should, but I cant for the life of me figure out how to allow/force it to accept input when not the window in focus. The program counts the presses of one of the buttons on my gamepad and up... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75142202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Use Docker DNS server on other nodes The new version of Docker (version 1.10) includes a DNS server to pass alias information from other hosts on the same network. There used to be hosts file entries for resolving linked containers (or containers on the same network). I am wondering if it is possible to use this emb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35885780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Excel selecting last value in range for a updated list macro I'd appreciate help with the following....
I'm using a validation list function, but I will need people to add to the list easily. So I recorded a macro and will link it from a button, so they just need to add a new value and click the button. The problem ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46472334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to make EF6 Include() subclass navigation properties for a List of items I am trying to select a list of Invoices and their subclassed items.
Here are the models:
public class SalesContext : DbContext {
public DbSet<Product> Products { get; set; }
public DbSet<Invoice> Invoices { get; set; }
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34932835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: serving common html without facelets/jsf-tags I have the folder containing a client-side-html-template ("template.xhtml"). The folder resides in public folder (not in WEB_INF).
When saved the file with suffix "xhtml" and wrap the content with "<ui:composition", then client side (ajax) request can access.
However,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48215705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why do I only have to escape the last backslash in a string literal? I have the following Python code:
localExtractpath = "D:\Python\From 0 to 1\Excel\"
if os.path.exists(localZipPath):
print("Cool! '" + localZipPath + "' exists...proceeding...")
This gives me the error:
File "", line 2
localExtractpath = "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61306105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to protect columns in hibernate from being read Lets say I have models Configuration and User.
In Configuration I specify relation to User like this:
@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name= "user")
private User author;
And then when I want all configuration per specific user I get something ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31378267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Find big enough gaps in booking table A rental system uses a booking table to store all bookings and reservations:
booking | item | startdate | enddate
1 | 42 | 2013-10-25 16:00 | 2013-10-27 12:00
2 | 42 | 2013-10-27 14:00 | 2013-10-28 18:00
3 | 42 | 2013-10-30 09:00 | 2013-11-01 09:00... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19529276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to send real time data variable between function and variable? I'd like to assign to double variable (param1) result of one function.
{
//we are inside one function
double param1 = function();
}
captured_values() must capture in real time double variable. This variable I would like to assign by function() to my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21921241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Angularjs data-binding not working properly Here is my code link:
I am facing two problems here:
*
*when drop down item for example text is clicked, the Question type section list does not go to the proper format,
*when selected another drop down item again, the last Question type is changed as well, but actu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22523881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AutoCompleteTextView list - Not displaying single word string first followed by two words string I am new to Android application development and I am currently working on an existing Android application
I have an alphabetically sorted list of strings for the AutoCompleteTextView
and some of the strings have 2 words.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58520445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to set minimum number of lines on uilabel can this be done? I have good reason for to use this somewhere. Adding text to meet quality standards....AND heres more, and more, and more and more, quality standards met....
some fake code var=nothing
A: You could take the lineHeight of the UIFont that the label's us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29910556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-5"
} |
Q: How to pass Object or array with Query string in PHP I am learning PHP and wondering How do i pass an array or object with query string using php ? I do google it but could not find a good answer about it.
Here what i wondering ?
http://www.example.com/abc?array('a','b','c')
http://www.example.com/abc?object("a":"a"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40500517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Type 'string' is not assignable to type 'Position' I'm modifying React js to ts now. It is Class Componenet.
I want to get css settings by props and apply it to Element.
How should I fix this?
render(){return(
<span style={{
position: this.props.position ,
left: this.props.left,
top: th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69161276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Mysql Natural sorting in varchar field Is there anyway to sort the string with number field by its number only
I have a value like this
subject_code
DE 312
DE 313
DE 315
Eng 311
COMP 314
can it be sort like this
subject_code
Eng 311
DE 312
DE 313
COMP 314
DE 315
I tried
order by SOUNDEX(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44227641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: ClassCastException when reading OUT parameters from EclipseLink PLSQLStoredProcedureCall I need to call an Oracle Stored Procedure using EclipseLink (2.3.1.v20111018-r10243). The procedure have IN and OUT parameters, and I need to read the OUT parameter.
I found this example and my code is pretty much a copy of the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32853944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: mysql trigger set variable from php $query="
CREATE TRIGGER history_trigger BEFORE UPDATE ON config FOR EACH ROW
Begin
DECLARE oid int(11);
DECLARE oname varchar(10);
DECLARE ipadd varchar(16);
SET oid='$operatorId';
SET oname='$operatorname';
if new.description!=old.description then
insert into log (operato... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40308559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Connect to database fail from wordpress in wampserver I changed the wp-config to the following setting
define('DB_Name', 'wp');
define('DB_User', 'root');
define('DB_PASSWORD', '');
define('DB_HOST', 'localhost:3306');
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
I got the following error message
Warnin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36821904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get data from this "list" looking thing in python 2.7 I'm working on a project that implements stock data, (it's in python 2.7). The module i'm using (yahoo finance https://pypi.python.org/pypi/yahoo-finance) will return historical data in this format:
print yahoo.get_historical('2014-04-25', '2014-04-29')
[{... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30960625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why an inline "background-image" style doesn't work in Chrome 10 and Internet Explorer 8? Why the following example shows the image in Firefox 4, but not in Chrome 10 and Internet Explorer 8?
HTML:
<div style="background-image: url('http://www.mypicx.com/uploadimg/1312875436_05012011_2.png')"></div>
CSS:
div {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5846637",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "59"
} |
Q: Drawing on canvas ANDROID I have the following scenario:
I have a switch with 24 ports. I want to draw them on the canvas. I managed to do that but the problem is that when I change the state of a port I have to draw them again but it is not happening.
Here are my classes:
PortTemplate:
public class PortTemplate{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19359996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Contentful get richtext field content I'm building a blog for my personal website and I choose Contentful as a headless CMS. However, I succeeded at accessing the fields with this query :
const query = `
{
blogCollection {
items{
title
slug
cover{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74100430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Blazor Wasm Authorization state logged multiple times I'm currently working on a Blazor Webassembly application consuming data from an API. Both applications are secured by an IdentityProvider (IdentityServer4):
*
*Blazor Wasm App (Oidc)
*API
*IdentityServer4
It works fine, I can login, logout and retrieve the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66029743",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: copying date with milliseconds in excel vba I would like to copy the exact date contained in one cell to another cell. I use this command:
Range("E" & ii).Value = Range("C" & ii).Value
but the date format is missing the milliseconds despite having the column formatted using:
Columns("E:E").Select
Selection.NumberFo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22219646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Web Services and the HTTP protocol: 404 I am implementing some REST based web services - which is working wonderfully so far. I have been following the advice of Vinay Sahni (http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api).
I've realised a potential problem with the idea of using a "404" to ind... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23796008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: mysqli.reconnect = ON changed connection encoding? how to prevent switching the connection encoding by reconnect? Everything of my settings are utf-8, but since I have enabled this function in php.ini of the cli ... I have tested anything ... and when I have a long working script then in any point of the script the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4422630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Pub Sub Cloud Function - Async Await Trying to accomplish the following via a scheduled Firebase Function:
*
*Fetch Firestore Collection
*Delete Collection
*Make Get Request to External API
*Write Get Request results to Firestore Collection.
The function is failing to deploy. Error logs only say {"code":3,"mes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68582466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Context Menu vs Popup What is the difference between a ContextMenu class and the Popup class?
A: The MSDN docs do a nice job of displaying the distinction:
The Popup Class:
Represents a pop-up window that has
content.
The ContextMenu Class:
Represents a pop-up menu that enables
a control to expose functional... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4404731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: syntax error unexpected token bash scripting I am getting a few of these errors in my bash script. I am new to the language. Any pointers?
#!/bin/bash
echo "Calculating the value V for all given values"
inflation=(0 0.03 0.05)
tax_rate=(0 0.28 0.35)
for I in inflation
do
for R in tax_rate
do
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62379433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: drone-kit Python is not connecting with Iris+ I'm trying to build my first dronekit python program, and I'm doing some tests with some examples but I couldn't connect to my UAV(Iris+). I plugged the usb radio(3DR 915 MHz) and I put vehicle = connect('/dev/ttyUSB0', wait_ready=True). Actually I have no idea which str... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35469440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java AWT Robot - how to read item text / label? I need to select appropriate option from the popup window. Unfortunately, it is not the popup displayed by the web page, so I cannot use Selenium framework for that purpose.
As I checked, it is possible to navigate to different option by pressing arrow keys. Thus keyPr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64102733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to change the color of the Mask View? I am not sure if I understand the concept of Masking correctly but I am trying to recreate the Twitter logo expansion animation in their app:
Twitter Logo expansion
I have this code so far:
class LaunchScreenViewController: UIViewController {
var mask: CALayer!
over... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48570301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: android mount unmount sd card I am working on an application that scans the sd card. At this time, I am using the emulator of eclipse to test my android application. I have created a virtual sd-card for testing purposes on eclipse.
I want to know if there is any way of un-mounting and then mounting the sd card on th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6968264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Input and fonts are mutually exclusive on EGLFS QPA I build Qt-5.9.2 on Ubuntu 16.04.3 LTS with EGLFS QPA enabled.
I switch to terminal on Ctrl+Alt+F1 screen. Then I run my Qt application app (Qt Quick based, if matters):
# to debug input
export QT_LOGGING_RULES=qt.qpa.input=true
# to be able to close by Ctrl+C my a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47182068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I, in Microsoft Lync automatically accept a desktop sharing request from WPF How can I, in Microsoft Lync client automatically accept a desktop sharing request programmatically in WPF, and also How can I put it in fullscreen mode?
A: Not at all? Sorry. You know, there are serious security implications allo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8492767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Ant build in Eclipse I am trying to use custom build file in order to display the current git version in my Android application. I haven't used ant before and I have not really an idea how to use it. I read plenty of topics in SO and searched quite a lot in Google but I cannot figure it out. I don't really have the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24017230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP - Get Meta Tags I have this code:
<?php
$LF = 'links.txt';
$Rfp = fopen($LF, 'r');
while(!feof($Rfp))
{
$links = fgets($Rfp);
$tags = get_meta_tags($links);
if ($tags['description'] == "")
echo "No META Description Found";
else
echo $tags['description'];
}
fclose($Rfp);
?>
M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8656442",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: React-native Determining whether the code is being debugged remotely or not Is there a reliable way to determine if react-native code is running on the device, or in chrome (remote-debugging) from within the code?
I have some console logs, that are mostly useful in the chrome console, and want to disable them when ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43895125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Joomla 3 Guests Redirect So I have few articles in my menu which are for registered users only. I want them to be visible for everyone but if the user is not logged-in once he clicks on the menu I want him get redirected to the login page..
I saw this tutorial: Auto redirect guests to login but it seems outdated, in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24805311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I programmatically suspend/resume process and its children on Mac OS X? I am trying to control a spawned task that in my case is a bash script that then runs another program. I wish to be able to suspend and resume those processes. My program is meant to be able to spawn any task so I cannot presume to know i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32288349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to randomly fill in 10% 2 dimensional array with int = 1? I have little problem , im starting learn java .
I need to create 2dimensional array , and i need fill this array in 10% only int 1 of course my code need fill this array randomly .
Need some hints how to fill in 10% .
public static void main(String[] a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55721895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: QX11EmbedContainer and QProcess problem I've been trying to put a QX11EmbedContainer in my app, and I need to start a terminal within it (because with konsolepart I can practically do nothing).
QX11EmbedContainer* container = new QX11EmbedContainer(this); // with or without "this" I got the same result
container->sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sqlite-net in universal app - where is my db? Previously I have used LocalDb in Silverlight apps for Windows Phone 8 which worked great on 8.1 also.
If I wanted to inspect my db, I used the ISETOOL to download the file and attached it in vs.
Management switched me to building a 'universal' app for RT. I am adopting ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24595542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: copy file into another file in prolog Good morning/evening
how can I write something in a file and then copy its content into the current file?
for example I consult file1.pro then I have rule write something in file2.pro , after this rule finish its job I want append the content of the file2.pro int file1.pro .
wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2900505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Programmatic file upload to AWS S3 bucket I want to provision an AWS S3 bucket and an IAM user (with programmatic access only) so I can facilitate file upload privilege for that user only. The user will receive the AWS access key ID and secret access key, to use in a simple Node.js or Python console application. Wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56717536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: List element value returns wrong values when accessing attribute I have a React component that I am trying to implement so that it can pass the particular value of the list item that a user clicks to a handle method.
var React = require('react');
var {connect} = require('react-redux');
export var Keyboard = React.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42497875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: couldn't host on EC2, django/nginx/gunicorn I am trying to deploy django web app on EC2, but I was not able to access the site at domain name and also I am not able to access the gunicorn. I tried the same on DigitalOcean and everything seemed fine and working well. I am trying to learn to deploy on EC2, but stuck.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32000750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: wrong number of arguments - in initialize method I am not able to figure out this extremely simple error:
xyz_controller.rb:
@isbn = params[:q]
@search_type = params[:search_type]
...
@prices = Generalsearch.new(:search_term => @isbn, :search_type => @search_type)
generalsearch.rb
attr_accessor :s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5805409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: get protocol and domain name on localhost and remote server on localhost my site has this address - localhost/example.com
on remote server it is - https://example.com
is there a php $_SERVER variable - or another way - to get exactly:
*
*localhost/example.com - when I'm on localhost
*https://example.com - when I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66737163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using event handler for manually created component I'v been working on a project & decided to work in a unit file i have imported a few components & successfully used them, Only when trying to use the event handlers of the components i got lost.
I have researched & know it is possible i just don't know how & what i ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58898790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What method to Login Customer Without Password in Magento 1.9? I want customers login with their email id only. Is any way to skip password in magento 1.9.
Thanks
A: Try this below code :
$email = 'example@email.com';
$customer = Mage::getModel('customer/customer');
$customer->setWebsiteId(Mage::app()->getWebsite()... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68189303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: select text in textbox: extract word from caret position without selection I have a problem and I want to see if you can help me.
What I look for is that when I right click on a word inside a TexBox tell me about which word I am posed, and then I can add that word to the dictionary that I already have created.
My co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42864797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why are the hearts in turtle appearing slanted? import turtle
t = turtle.Turtle()
def heart(x):
t.penup()
t.goto(x, -100)
t.pendown()
t.color('black','red')
t.begin_fill()
t.left(45)
t.forward(100)
t.circle(50, 180)
t.right(90)
t.circle(50, 180)
t.forward(100)
t.end... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75624207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error jshint validation es5 error throwing on jshint validation over terminal, I have empty js file still it throws error.
f.js: line 0, col 0, ES5 option is now set per defaul
1 error
A: Create .jshintrc file in your home directory and set es5 to FALSE.
{
"es5" : false, // true: Allow ES5 syntax ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28336708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Display only newest post from category on page wordpress I'm not very familiar with PHP so I'm really struggling with this. I have a category called students-of-the-month with an id of 5. I'd like to have one page on my wordpress site that displays only the most recent post from that category. How can I do this?
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14299980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Chrome doesn’t show un-minified code in spite of source map present I’m using Grunt and UglifyJS to generate source maps for my AngularJS app. It produces a file customDomain.js and customDomain.js.map.
JS file
Last line of customDomain.js looks like this:
//# sourceMappingURL=customDomain.js.map
Map file
I find tw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40397244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: 'VNCEnv' object has no attribute 'remote_manager' when running OpenAI universe example When I try to run the following example code from here, Python is unable to find the remote_manager attribute. I have all required packages installed and the OpenAI gym examples appear to work as they should.
I run Python 3.5 unde... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41852625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Date range in mongodb atlas search using queryString is not working I tried this but with no success (I got an empty result):
{
queryString: {
defaultPath: 'anyfield',
query: 'createdAt:["2000-01-30T20:19:53.123Z" TO *]'
}
}
I tried with no quotes too.
And I tried the range operator directly and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69826668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Connect to UDP server I'm try to create an application for iOS, where I can connect to a UDP Server and receive data from it. My situation:
*
*I have a UDP server on Windows machine (IP = 192.168.1.6).
*I have iPad (IP = 192.168.1.5);
*UDP server sends to virtual address (IP = 239.254.1.2) and port (7125) messa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15422135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Problem with apples push notification services Hello I am using Apple's push notification .
My web services are in c sharp .I used Push notification code. Every thing is going fine. With out error. but why My messages are not delivered to iphone application,
I am using development certificate. same thing is work... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7319667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: AS3 array to Object I have this array var ar:Array = [234*256,558*698,256*784...];
and i want to convert it to 2 arrays where first element (before *) goes in
var ar_x:Array;
and second element (after *) goes in other array
var ar_y:Array;
How to do that?
Thanks.
A: If you know the values at compile time just pl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11139409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Angular JS dynamically set tabindex attribute I'm fairly new to Angular, and I'm working on a simple flashcard website. Here's my current relevant HTML:
<div id="flashcards" class="row">
<div class="flashcard col-sm-6 col-md-4 col-lg-3"
ng-repeat="card in cards">
<div class="flashcard-inside"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60659886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: new line in one row bootsrap i try to add 6 elements to one row with the following definition:
<div class="row container">
<div class="col-sm-4 col-md-4">
<div class="ih-item circle effect1"><a href="#">
<div class="spinner"></div>
<di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30613528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I make a constant variable next to random generated characters import random
number = random.sample(range(0,9999), 10)
print(number, file = open("output.txt","a"))
I want to add (prefix) characters to a randomly generated number.
e.g. AAA(number) so that it will become something like AAA4525. What's the bes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66058468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Yii Create Command Sort I am looking to sort by ASC or DESC and am not quite sure how to do this using Yii, my code below is as follows but I am not sure where to order by as I need to order by DESC for timestamp and ASC for homeTeamName.
$query= Yii::app()->db->createCommand()
->select('*')
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26276753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Issues using PHP MySQL Built-In Functions inside a class I am working with a MySQL Database and having some issues while trying to get data from several built-in PHP MySQL methods. I have written a class to interact with the database, and here are the relevant bits:
<?php
include("includes/Config.inc.php");
include_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9403016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Insert asp.net Membership-generated UserId into custom table (vb) I've spent a couple of hours trying to find the answer to this, and although there are tutorials all over the 'net none of them work for me (or I am too n00b to understand what they're telling me...)
Anyway, I'm creating users in asp.net using Members... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4217705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: KendoUI in angular.js - how to update multiple pointers value I'm trying to use kendo-radialgauge of "kendo.directives" with two pointers but my problem is to update the both pointers from controller.
How can I do it ?
Two pointers in UI
<span kendo-radialgauge k-options="options" k-ng-model="menuOptions" >... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38954898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Converting colored image to grayscale I am working on processing images that consists of colors that have the same grayscale. In other words, each image is colored with random colors that have the same gray value.
When I converted the image using (rgb2grey() from skimage or cv2.cvtColor() from OpenCV), the resulted ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65220970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: sort multidimensional array alphabetically into 2 columns I have an array that looks like this
Array ( [0] => Array ( [make] => Alfa Romeo [id] => 2 )
[1] => Array ( [make] => Aston Martin [id] => 3 )
[2] => Array ( [make] => Audi [id] => 4 )
[3] => Array ( [make] => BMW [id] => 8 )
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26525023",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: css - removing background image i have this image in the background:
http://yoursdproperty.com/templates/pjo_joomlaforall/images/bgr.png
of this page:
http://yoursdproperty.com/index.php?option=com_jumi&fileid=8&Itemid=34
how do i remove it?
i understand that if i remove it the page will just be white in the backgro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2173491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: wpf layout with datagrid and expander Im having trouble getting my xaml to work the way i want to.
What i want to is this.
My ItemsControl should have a height of 70. The rest of the space should be filled with a DockPanel.
Inside the DockPanel i have a GridControl (DataGrid from DevExpress) that are supposed to fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44635345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Angular testing without mocked $http I have a REST client written to be part of an angularJS application that I want to write tests for; I tried with Jasmine (using passthrough on the $httpBackend) but could not get it to talk to the real endpoint at all (which is a requirement).
Does anybody know of a sensible libr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38832538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: finding volley requests response time android I have been using volley for making rest calls to server. I am trying to send the response time for each requests to Google analytic to analyze the server latency, in volley jsonobject request is there any way to finding the response time for each requests.
If volley doe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29386249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Selection criteria live in master page or content page? Scenario:
*
*Four or so dropdowns with labels that the user can change.
*After user changes the dropdowns a grid below will change
*Several pages will reuse this design, but the grid may have different columns and there may be other grids that get added.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8156190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Router not working (Heroku + Nginx + PHP Phalcon) I don't get it why the mvc routes are not working.
When I access the home page, all the css and js are loaded.
"GET /css/main.css HTTP/1.1" 304
But when I access any other controller, I got:
method=GET path="/transaction/add"
[error] open() "/app/public/transaction/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29418400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Fastest method for SAX parsing in Python I have an XML document (1.5MB) that needs to be parsed in real-time for a web service that I am developing. I am using the cElementTree Python library which, according to this post, is the preferred way to parse XML in Python, but I'm not sure if this is actually the fastest ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17100993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cannot execute crontab command from a php script...from shared host I'm running an application where I need to execute the cron job, once a form is submitted,contains more than 1 lac records in a loop(its on-demand execution of cron job and deletes the job once finished).
I'm using php, I tried to configure the job ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2235950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can't get selected spinner item outside @Override method and into another class I have MainActivity and SpinnerActivity, I want to get selected spinner item value from SpinnerActivity into the MainActivity. I tried to declare String as Static, I also tried with getter but without any success.
in Spinner Activity I a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65614869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Caesar Cyper Python def caesar_encript(txt, shift):
chiper = ""
for i in range(len(txt)):
char = txt[i]
if char == " " :
chiper += ' '
elif (char.isupper()):
chiper += chr((ord(char) + shift - 65) % 26 + 65)
elif (char.islower()):
chiper += chr((ord(char) + shift - 97) % 26 + 97)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69513622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Checking Application API Version in XCode?
Possible Duplicate:
Alert when new version of iOS app is available
I need code that I can embedd into my project code so that every request from the application to server contains the API version in case my iPhone app gets a new update so it can notify the user to update... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14017360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Time for query in RavenDB is too long I have an example for testing time of query in RavenDB. So I use Linq to query and StopWatch for geting timings.
But when I run my code, timing seems too long (it is 2401 ms) so I try to query by Ranven Studio and the result, timing is just taking 1 ms. I don't know why it has ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53670605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: python Flask, TypeError: 'NoneType' object is not subscriptable I'm studying Flask very recently and trying to create API.
However, when It request json data, this error occurs.
if content['words'] is not None:
TypeError: 'NoneType' object is not subscriptable
could anyone can help this?
Thanks
my code is below:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60979321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ggpairs Change the colum label of factor levels It is possible to change the column label of factor levels without having to change the values in the data.frame
for example in the following graph can I change the label of Female and Male to F and M respectively without having to change the df?
library(GGally)
data(t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34276422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is WPF with version 3.5 fits Windows7 and Windows8? i am developing WPF application in visual studio and using .NET 3.5.
does the application fits Windows7 and Windows8 OS with no .NET framework additional installation?
do i need to add .NET 3.5 installation to setup project?
A: In Windows 7 .NET framework 3.5 is p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26728939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where is the connection between the two Python venv environments I have two python environments and somehow there is some kind of link between them.
/home/testapi/API25/env is the original venv
/home/preprodapi/API25/env was created by means of a cpio copy from the first. This worked find for many months. But now ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54523408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problem with CAGradientLayer in a custom UIView within a UITableViewCell I have a somewhat special situation that I need help with. I have a CustomView which I am placing in every UITableViewCell in my UITableView. No problems there.
Within my CustomView is a UILabel which displays some text given to it. Depending o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3738782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Visual studio is encountering an error with taskkill commands I am running a unit test using VS2019, C#. After I build my project errors show.
I am able to run my test from the last successful build, but I have no idea how to approach this. The command is coming from a prebuild batch file stored in the project.
Seve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75636126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ArrayList add() method acting weird? I'm working on a (double) linked list implementation using "buckets". In short, A doubly linked list of nodes, each node holding an ArrayList of a set size specified by arguments.
I've Initialized my Nodes and list like this:
public class MyLinkedList<T> implements ADTListInterfa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20344851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Fixing PHP8 Upgrade - String on String Error I'm trying an upgrade to PHP8 and troubleshooting a theme that is giving a fatal error.
PHP message: PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string
I've narrowed it down to the section causing the problem. Commenting these lines loads... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72717312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: The request body is too large and exceeds the maximum permissible limit when generating sas token I am using the below script to generate sas token using bash
sas_token=$(curl https://management.azure.com/subscriptions/$subscription_id/resourceGroups/$rg_name/providers/Microsoft.Storage/storageAccounts/$storage_acco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67016650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ionic 5 - routing to details page with page id issue guys , I am creating and ionic app which has details page with page id, I am trying to configure router, its not redirecting its always on main page , my code is below please check ?
parent page route
import { NgModule } from '@angular/core';
import { Routes, Ro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63322586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android Debug Search I am trying to debug an activity that uses the android os main search to search my SQLite database. Is this possible in eclipse? It doesn't appear to be hitting the breakpoint in the onCreate of my search activity.
I think it is because my content provider is not starting when I hit search. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5794193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to fix "error: You need to have libgpg-error.a", when compiling AIDE for ARM? I compiled GPG for ARM recently and had to compile libgpg-error in the process. Today I need to compile AIDE and the following error shows up during ./configure:
configure: error: You need to have libgpg-error.a installed to use libgc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54746279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Create PostFinance payment request PHP: Can anyone help me how to create a payment request using wysow repository?
I found this link, but there weren't any solutions. I am am using concrete5's Community Store and am trying to create a PostFinance payment package/addon. I have the following code in /packages/communit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63034791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Binding `ready` and `load` events From one man who currently works on Google I saw code which looks similar to this:
$(document).bind('ready load', function() { ... });
There are 2 intertwined questions:
*
*Since I'm only novice in JS, I don't understand the purpose of this binding. Why we need both ready and lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48497297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WCF Client, AllowCookies and clearing any current cookie? I have a WPF client that is using WCF to call into a service hosted in IIS. My WCF client has AllowCookies='true' so that the forms authentication cookie that IIS is using is passed back and forth with each WCF call automatically. This all works just fine.
B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11625542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Class locals as predicates pre C++11 The following code compiles without errors/warnings when being built with C++11 mode, using GCC and Clang. However if I attempt to compile without C++11 mode and error occurs in the 2nd scope.
#include <algorithm>
#include <vector>
struct astruct
{
int v;
};
struct astruct_c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26749011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Errors in color resources I'm getting lint errors attempting to use color resources. According to the documentation, the following should be valid.
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<color name="actionbar_title"></color>
</resources>
B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17735564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.