text stringlengths 15 59.8k | meta dict |
|---|---|
Q: Add a dot (marker) without y-axis value on the existing graph I have a graph of my stocks portflio over some period of time, which looks like this:
I have a price for every 5 minutes of time, so x data is timestamps and y data is just numbers.
I also have a dataframe with times of operations, which contains a time ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65100088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Minute by minute breakdown of log data I have a table (Excel sheet, whatever...) containing PeopleSoft login information with three columns: Login Time, Logout Time, Time Spent.
My manager has been asked to use that to provide a minute by minute run down of concurrent logins for the entire data set (day).
So, the SE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7917380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: React DnD drags whole list of cards instead of single card I am trying to use react DnD in my react Project. In my render method I define a variable named Populate like show below, which returns a list of cards like this
render() {
var isDragging = this.props.isDragging;
var connectDragSource = thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40649732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add multiple route filters in Laravel 4.2 while using role:permission pattern? I am having issues with using multiple route filters in Laravel 4.2 while using the pattern role:permission. I've attached my code below.
This doesn't work at all. When I change roles, it always give one 403 unauthorized. I want bo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27714784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How should I populate a MemoryCache without instantiating the object to be cached unneccesarily? The MemoryCache class exposes a method called .AddOrGetExisting which is a threadsafe way to get if exists, and add if it doesn't exist.
This method returns NULL if the cached object didn't already exist. I think I under... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26533612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Resizing images and displaying side by side with justification I have created an HTML template, to which I will push data from SQL using python and print it as pdf. The document needs to be printed always in landscape. I have achieved the functionality, but the logo on the right gets offset by an awkward amount and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73157422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why doesn't WebAPI2 with Entity Framework automatically create a transaction for me? I have a WebAPI2 Restful services API and I am using SQL Server database with Entity Framework. I have PUT methods like this
/*
* This changes the Study Status.
*/
[HttpPut, Route("ResponseSetStatus/{id:int}")]
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36803359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rewrite multiple rules in .htaccess / remove .html extension I am trying to add another RewriteRule in my .htaccess file in addition to one I have in there. Currently I have:
RewriteEngine On
RewriteCond %{HTTP_HOST} websitename\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://websitename.com/$1 [R... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61331904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to add a new column to each dataset in a list I have looked at some similar questions but they haven't really helped.
I have a list with 4 datasframes and I would like to add a column to each of the 4 dataframes.
below are a few of the commands that I've tried.
they all just result in a list of 4 vectors (just t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50615909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Large infinity symbol in matplotlib Im creating a plot which has a subsript infinity symbol:
Plot with infinity symbol
import matplotlib.pyplot as plt
fig = plt.figure(figsize=(10,10))
plt.rcParams.update({'font.size':16})
plt.title('U$_\infty$')
plt.show()
I want to make the infinity symbol larger, but without... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74725162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to keep the same precision in these two numpy array procedures? Using f and x,
In [173]: f
Out[173]: array(1387)
In [174]: x
Out[174]: array([ 20404266.1330007])
exponent1 and exponent2 are computed and compared.
exponent1 is computed as follows:
In [183]: exponent1 = 1j * 2 * np.pi * f[..., np.newaxis, np.ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17930148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: apply with ifelse statement and is.na does not 'sum' but outputs matrix - where is my logical mistake? probably a stupid question but I clearly can't see it and would appreciate your help.
Here is a fictional dataset:
dat <- data.frame(ID = c(101, 202, 303, 404),
var1 = c(1, NA, 0, 1),
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65939225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: cannot compile on mint 20.1: stdlib.h: No such file or directory I am running a fresh install of Linux Mint 20.1 and I'n trying to compile a program for a GPS tracker, but it won't compile:
In file included from /usr/include/c++/9/bits/stl_algo.h:59,
from /usr/include/c++/9/algorithm:62,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66967315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a return keyword in bash? In the code below I need a return keyword in the first if statement. I need to exit the function after the echo.b
push() {
a=$1
b=$2
if [ $# -eq 0 ]
then
echo "Enter git shortname for first argument"
fi
if [ $# -eq 1 ]
then
b=$(timestamp)
fi
git add -... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34118372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I make a 'for' loop in the command prompt? I'm working with a command-line program that does image-processing, and I need to run the same command on an entire folder of images. I have heard that I can run loops in the command prompt, but I have seen all sorts of different examples online and can't figure out ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18070292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to match view by RegExp in Javascript named.conf
options {
listen-on port 53 { 127.0.0.1;};
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44772400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: 2D matrix value difference I have 2 columns in excel, parameter A1:A5 and value D1:D5:
1 2.0
2 1.5
3 3.5
4 2.3
5 7.7
Please let me know how to create a 2D matrix using iPython notebook. For both rows and columns the parameter (column A) should be used, and the cells should have the difference of the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38703374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Laravel Eloquent relationship between 3 tables I am doing a school project on logistics and am using laravel for it. I have a delivery table and returns table which has all the deliveries inside and returns inside respectively. The delivery and returns table has a type which is Normal Delivery or Return Delivery and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22075381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Simple style swicher with less I want to create a simple style swicher using less.
I created a set of colored squares, and I would like by clicking on one of those, you can select a file. Css or even better, you can set the variable in the less file and generate a new style
The HTML-CSS code :
jsfiddle.net/AASH2/1/
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17943350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: right click event on URLs in richtext box I have a link in a richtextbox in C#. When I right on a url link, I want to show a menu. if it is not a url, then I do not want to show anything. Right now I am tapping into the mouse down event and selecting the line based on the mouse pointer position and if the selected l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12679459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# Regular Expressions for CSS Coloring I'm currently using the FastColoredTextBox to create a simple HTML/CSS editor. While FastColoredTextBox comes with some predefined formatting rules for HTML, etc. There is not one for CSS. It does support custom ones though.
This is where my problem is. I'm trying to write thr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32287471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create a standalone command line app with the Symfony2 ClassLoader and Console I am trying to write a command line app using the Symfony2 Console and ClassLoader Components.
This is a screenshot of my code hierarchy and the script being called
Here is the CLI script:
#!/usr/bin/env php
<?php
require_once... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20040480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CUDA Compute Capability 2.0. Global memory access pattern From CUDA Compute Capability 2.0 (Fermi) global memory access works through 768 KB L2 cache. It looks, developer don't care anymore about global memory banks. But global memory is still very slow, so the right access pattern is important. Now the point is to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13834651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Play YouTube videos from an array of video IDs : React import React, { Component } from 'react';
import YouTube from 'react-youtube';
let videoIdList=["XM-HJT8_esM","AOMpxsiUg2Q"];
var videoId = videoIdList[0];
let i=0;
class YoutubePlayer extends Component {
render() {
const opts = {
height:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52014021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Invoking .Net COM assembly from Powerbuilder application (without registration) We have a Powerbuilder 10 application that is using .Net COM assemblies. We are trying to embed the manifest in the PB application (to invoke COM assemblies without registration). The merged manifest file has added sections for dependeci... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2526369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Invalid use of group function in MySQL 4 (not in 5) Any idea why query
SELECT
m.*
FROM
products_description pd,
products p
left join manufacturers m on p.manufacturers_id = m.manufacturers_id,
products_to_categories p2c
WHERE
p.products_carrot = '0' and
p.products_status = '1' and
p.products... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2665461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using ref to find a nested element I'm using the gridjs-react library to create a table as follows:
<Grid
columns={['Name', 'Email']}
data={[
['John', 'john@example.com'],
['Mike', 'mike@gmail.com']
]}
ref={tableRef}
search={true}
pagination={{
enabled: true,
limit: 1,
}}
/>
However, I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65858393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: $stmt->fetch() is not fetching the data I don't understand why my function is not getting the results and just getting null value. I'm using PhpStorm; all my connections are fine (Apache, MySQL, PhpMyAdmin) I've check them, also the other rest services are working.
This is my dbhandler.php file:
public function getR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40405221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Swift: press button in external app via accessibility In my function, I run the following code, when a specific event shows up and Safari is in foreground:
if win.safariIsForeground() {
let el = AXUIElementCreateApplication(win.getSafariPid())
var ptr: CFArray?
_ = AXUIElementCopyAttribu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72674287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to convert decimal to binary value of rows in multindex dataframe (python)? Could you let me know how to onvert decimal to binary value of rows in multindex dataframe?
below is dataframe I used
from pandas import Series, DataFrame
raw_data = {'Function': ['env', 'env', 'env', 'func1', 'func1', 'func1'],
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54980815",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: numberOfRowsInSection running in infinite loop - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
int rows; // Return the number of rows in the section.
switch (section)
{
case 0:
rows = 1;
break; ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21620577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Form_Shown and mouse click I have c# code which moves and clicks mouse, i must press button on form to start code, but i need that my code would start himself, not when button is pressed i tried to achieve this with formshown. It shows form but dont start the code. Its just a bit of code:
private void Form1_Shown(o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28526391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: SensorManager.getRotationMatrix gravity parameter or accelerometer parameter values in android? In Android Documentation is specified the third parameter as
float[] gravity
then is specifies
[0 0 g] = R * gravity (g = magnitude of gravity)
Now, in most of the examples online I can see everyone sending accelerom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9112078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Associate custom uri schemes with Java self contained application for windows I have a self contained JavaFX application. For an improved user experience, I would like the user to click on a button/link on the browser and start the application. Just like magnet URI for torrent, the link contains metadata that is req... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32505471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does MonetDB support parallel query execution when using merge tables? I have partitioned my data set into two separate sets of 5M rows. Each partition is loaded into a table on a machine of its own. I use a central monetdb instance where I register both tables as remote tables and add them to a merge table.
When I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38655237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Getting error when I try to fetch rows using entity EF6 I use linq to entity 6 code first.
Here is two entities class:
public class Site
{
public int Id { get; set; }
public int UID { get; set; }
public string Name { get; set; }
public string Description { get; set; }
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40284189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Spatializer not available on a pixel 6 with android 13 I just updated to Android 13 and one of the advertised features is the spatial audio, but when I access the spatializer class to check if it's available, I get a false. Also, in the settings there is nothing regarding the spatial audio. Is it already implemented... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73429760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I open the A TAB at 768px? I apologize first, my English is not very good, but I will try to describe my problem.
I'm implementing an RWD effect, and this is it!
When the screen is below 768px, I want to wrap an A tag around the demo block to make the whole block clickable, but when the screen resolution is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67776024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Chrome prevents the site due to ads I'm facing a problem just with google chrome. My website home page works properly, but when trying to open a post on the site, it shows this message:
Security Wrror
The site is based on the latest WordPress version, and it works properly with all other browsers. I tried to remove... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34138214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adding a string to a List inside of a List> Im trying to add a string object to a list inside of list> in a for & while loop, trying to use var i as the list object i wish to use.
here is the code of the class, any help on what im doing wrong would be very much appreciated :)
public class GenClass
{
private sta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18323444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Powershell Mysql Error This code is:
$cm = New-Object -TypeName MySql.Data.MySqlClient.MySqlCommand
$sql = "Select * FROM onaylanan Order by onaylanma_id ASC"
$cm.Connection = $Connection
$cm.CommandText = $sql
$dr = $cm.ExecuteReader()
while ($dr.Read())
{
$cm2 = New-Object -TypeName MySql.Data.MySqlClient.MySqlCo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48932539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Remove PHP extension using .htaccess methods (Keeping Link Juice) I'm trying to remove the .php extension on my URLs to make it Search Engine Friendly using the .htaccess file Redirect 301, to keep the "rank juice" and I as much I've tried almost every example around - It just doesn't seem to work.
Here are some of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19904911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Mustache (Nustache) arbitrarily rendering some of list inline I'm using the code:
{{#Object}}
{{{Name}}} - {{{Property}}}
{{/Object}}
to render a list, but halfway through the list, it'll start printing the list on the same line, which it will continue doing until the end of the list. We use this within emails, a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18073219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: knockout.js and property not being found in Jquery Template I am getting "caseStudy is not defined" with the below code. I have to add the full prefix app.viewModel.caseStudy.showFlawDetails to not error.
app.viewModel.caseStudy = {};
app.viewModel.caseStudy.cases = ko.observableArray();
app.viewMo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7014260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to link through bootstrap tabs Hello the code which i am posting here is just a w3schools example. Its a bootstrap links tabs. All my problem is when i want for example just to link to the second tab i can't i want when i put a link like that http://127.0.0.1:61330/test2.html#menu2
i want it to work to go to men... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38274033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Insert data to table row using Angular I am new to angular, and currently working on my personal project.
I have a question about how to insert new data to table row.
Can anyone give me snippet/example how to do this?
Here is the form and the table headers:
<!--app.component.html-->
<!--show modal-->
<a href=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46929589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Program on GD32f103 microcontroller runs only with debugger attached, won't run after reset I'm using a J-Link EDU Mini debugger/programmer, to upload a simple test program to a GD32f103 microcontroller (the ST32f103 clone/copy). The program is a mere test program, meant to turn an LED on. It's written in SMT32CubeI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71307058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to combine multiple querysets in django Suppose there is an event model and for each event there is one client and one consultant. Also, one consultant can have multiple events. Each event has number of different documents. I am trying to display list of events when a consultant logs in and in that list od event... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67555730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Randomly SSLException Unsupported record version Unknown-0.0 Sometimes the code below fails and sometimes it work. I'm using Java8. Is it a server side problem?
Exception in thread "main" javax.net.ssl.SSLException: Unsupported record version Unknown-0.0.
EDIT:
I downgrade to JDK7 from JDK8 and it works. The only so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23324807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: File Upload not working in IE and Firefox I have the following code to upload a file to the server. For some weird reason, it does not work in IE and Mozilla Firefox but works perfect in Chrome. What is the problem?
PHP:
// Check post_max_size (http://us3.php.net/manual/en/features.file-upload.php#73762)
$POST_M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5682108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JavaFX 2 Window Icon not working I'm trying to add an Icon to my JavaFX 2 application, but the ways I have found don't seem to work.
Image icon = new Image(getClass().getResourceAsStream("/images/icon.png"));
stage.getIcons().add(icon);
The icon is 32x32 in size.
When I try
Image icon = new Image("http://goo.gl/kYE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27017031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unset one Array on the basis of another array value in php? How can I remove one array index on the basis of another array value.
For example-
Array1
(
[0] => @@code
[1] => @@label
[2] => @@name
[3] => @@age
)
Array2
(
[0] => 123jj
[1] => test
[2] => john
[3] => 45
)
Array3
(
[0] => 2 #2 is index to be unset in ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19684476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: executing two queries in firebase and finding the difference of the two
My Firebase has two children
*
*expenditure
*sales
I want to find the difference between sales and expenditure.
Currently i am able to find the total of both children.
However i am stuck trying to find the difference between the two.
Bel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43188295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add trace to plotly scatter plot p <- plot_ly(data = bData, x = ~`Maturity Date`, y = ~YVal, type = 'scatter', mode='markers',
symbol = ~Sym, symbols = c('circle-open','x-open','diamond-open','square-open') ,
text = ~paste(bData$Security,bData$Crncy, bData$YTM, bData$DM,se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63934125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: define parameter in update query in python psycopg2 This my python code which is used to perform update operation from reading the csv file. I tried with this also. It doesn't work out.
for i in cin:
try:
conn=psycopg2.connect("dbname=pharmaflare user=postgres")
cursor=conn.cursor()
curs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11690306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: php form won't send or go to header location after submit I have a simple php form for contact purposes. However, it won't send the email or go to the correct page after submit. It redirects to the mail.php instead.
My contact form named contact.php is as follows:
<form id="contact-form" action="mail.php" method="P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14955320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HTTP Status 500 - Servlet.init() for servlet appServlet threw exception Spring - beans are not created org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'reorderLevelController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.Bea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59097729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: function adding in an extra line break? I have a function which sanitizes input from a form and another function which decodes it. It's kind of like bbcode which also converts line breaks into <br /> when storing it in the database (using the nl2br() function), and then converts the <br /> back into line breaks when... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31254774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Launch screen doesn't show first after the first launch time? I am developing App with React native.
I set an image in the launchScreen.Xib.
The first time, the launch screen works well. After the launch screen hide,
then I will see the View MainView.
I shut up the App in the background. A moment later, I tap the Ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46846556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is this embedded iframe video not playing? I want to add this video on my website. I added this code but it’s not working. Please help me.
<div id="container">
<iframe id="vid" width="560" height="315" src="https://www.youtube.com/watch?v=NhxVR2Szu3k&noredirect=1" frameborder="0" allowfullscreen></iframe>
</di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32003452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Multiple plots sharing one datasource Core Plot In case of real time data ; I am maintaining a single datasource and multiple plots each having unique identifier and linestyles having unique colour. Inserting data in every plot using the insertDataAtIndex and then in the numberForPlot function returning the appropri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52400402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using NOIP with RPI node.js server Im no expert in networks so sorry if something seems stupid.
I'm having a problem connecting to RPI node.js server located in my home externally. I used NO-IP and configured it on router with specific host-name. I have port forwarded to 8888 port.
var express = require("express");
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43400345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Retrieving Data with jQuery AJAX Without Reloading Page in php I have try to stop refresh page on click on select option but when I stop refresh page then data can not get.
here code
echo "<form name='frmtopdevotees' method='post' action='topuser_load.php'>
<h4>select month <select id='seldrp' name... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33840424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Write new value of a key in an already defined JSON file I have a JSON file of every user in my database. I want to change the value of a key from true to false on an action. How can I write it in the file? Below is the JSON file:
{
"name": "hi",
"email": "hi@mail.com",
"secFactorType": "microsoftTotpAuth",
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59528474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WinJS List GridLayout header above list How to put header in listview with GridLayout.
When I put header above listview my header take some height and last row in listview is not showed, because of header.
I also found a way to set header in listview directly:
data-win-options="{ header: select('.header') }">
Wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36812166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Not able to show the menu button in place of back button in Ionic I am working on the Ionic app and I have used navbar in my ionic app. When I move to other page, In place of menu button it is showing the back button. I don't want to show the back button, I always want to show the menu button in the navbar.
This is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54458571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: finding prime numbers c# the program should ask for a number and print all the primes numbers between 1 to the number the user entered... why isn't it working?
bool isPrime = true;
int primes = 0;
Console.WriteLine("Enter a number");
int N = int.Parse(Console.ReadLine());
for (int i = 2; i <= N; i++)
{
for (int ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52700891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Attempting to pull concatenated Q-urls, using data-type in a table Will try and explain as concisely as I can.
Below is a dummy query based on one I'm attempting to edit.
I'm trying to return two different types which are pulled from the same table.
The first type of data is a numeric (a score from 1-10)
The next t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34883199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to implement "array type" grammar like typescript with pegjs? my problem is in the implementation of "array type" like typescript.
according to my grammar. In "array type" you can use "[]" after any type (eg string or int or even array again like int[][]).
this is simplified version of my grammar:
start = type
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75618800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python equivalent of matlab corr2 I want to know what is the python equivalent of the matlab function corr2 that gives the correlation coefficient between 2 matrices, return only one value.
http://www.mathworks.com/help/images/ref/corr2.html
I only found that the equivalent in python is scipy.signal.correlate2d but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29481518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I know if I need to alloc and if I need to release? Completely new to Objective-C, trying to find out when I need to alloc and release objects.
For example, I want to fetch some data from the Web. I found an article at Apple which has this code:
NSURLRequest *theRequest=[NSURLRequest requestWithURL:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3328547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Javascript Drag and Drop function order var li = document.getElementsByTagName('li');
var ziel = document.getElementsByClassName('ziel');
var dragItem = null;
for (var i of li) {
i.addEventListener('dragstart', dragStart);
i.addEventListener('dragend', dragEnd);
}
function dragStart() {
dragItem = this;
se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70106950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: function && qualifier behaviour I'm confused by the following code:
struct test {
void f() & {
std::cout << "&" << std::endl;
}
void f() const& {
std::cout << "const&" << std::endl;
}
void f() && {
std::cout << "&&" << std::endl;
}
void f() const&& {
std::cout << "const&&" << std::endl;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30093923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Gradient Fill in Swift for iOS-Charts I am trying to create a nice gradient fill as seen in the demos on the ios-charts page. However, I cannot figure this out in swift vs obj-c.
Here is the obj-c code:
NSArray *gradientColors = @[
(id)[ChartColorTemplates colorFromString:@"#00ff0000"].CGColor,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35133314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Are there any scope that escape all special characters in mysql query? I have a set of queries with randoms data that i want to insert in database. Randoms data may have any special characters.
for example:
INSERT INTO tablename VALUES('!^'"twco\dq');
Are there any scope that escape all special characters?
please ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30575905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to get the list of "jar's" used by an android application? I would like to find the list of "libraries" (not "shared libraries") that are in used by an Application ?
Thanks a lot.
A: You have to go trough analyzer tool like this. Quoting introduction:
The purpose of this tool is to analyze Java™ class files i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9885654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Oracle Fusion Middleware Encryption / Decryption Sensitive Payload Data Does anyone know of a encryption / decryption technique for sensitive data in a message payload to prevent the information from showing up in audit logs? For example, a payload containing a password. The password should not appear in any logs. W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18619248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Overriding Python mock's patch decorator I have a Python TestCase class where all test methods, except one, need to patch an object the same way. The other method need some other behavior from the same object. I'm using mock, so I did:
@mock.patch('method_to_patch', mock.Mock(return_value=1))
class Tests(TestCase):
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12753909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Python object attributes as variables I am trying to assign a python object attribute a variable. Here is what I have been trying to do:
from read import *
import matplotlib.pyplot as plt
import numpy as np
data=table('data.txt')
semi=data['data']['a']
ecc = data['data']['e']
incl= data['data']['i']
bias = data['d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52240927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JavaScript: Delete all iframe in DOM I would like to delete all iframe tags using JavaScript. Already tried using for and while but none of my attempts at deleting all iframe elements work for me.
For example, let's use this RANDOM web page's HTML:
<ul>
<li>Sugar</li>
<li>Fruits</li>
</ul>
<iframe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57073291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Google API PHP Client library for Youtube is NOT connecting to Youtube I have been trying to work in youtube php client library but was unable to connect it.
I have read and tried the google documentation (google developers) and github repository documentation (https://github.com/google/google-api-php-client#install... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38816350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Boost named_semaphore ownerwship in shared library I have a shared library where I created some functionality with semaphores. I am using boost::interprocess::named_semaphore with a thin wrapper around it. This library I am now linking dynamically with a small program.
The problem I am experiencing is that the semap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55172707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In pygtk, why does importing the gtk module change my locale settings? I was surprised to find out that in a Pygtk program, merely importing the gtk module will change the currently loaded locale. If I run the following test program I get two different results in the print statements:
import locale
import pygtk
pri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38753130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Avoiding duplicating graph in tensorflow (LSTM model) I have the following simplified code (actually, unrolled LSTM model):
def func(a, b):
with tf.variable_scope('name'):
res = tf.add(a, b)
print(res.name)
return res
func(tf.constant(10), tf.constant(20))
Whenever I run the last line, it seems... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49114306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to find Interaction effect(by generating impulse response for low and high regimes) in non linear Structural VAR framework? imagine we have five variable X1, X2, X3, X4, X5. what I am looking to find is the effect of X1 on X3,X4,X5 when the X2 is at its lowest and highest periods.
for this, I applied the TVAR fu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74976720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to get a content from textboxes in a database table with a Button click event? IWhat i wanna do
So I tried this code
but it coudnt get a connection with the Database. I the connection string is correct
SqlConnection con = new SqlConnection("server=localhost;uid=root;database=menucreator");
con.Open();
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67850423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: creating dynamic menu using json, Html, JS & css for mobile platforms Am creating a dynamic menu from json object(downloaded from server) using html, js & css for mobile platforms without using libraries like JQuery
i read like "document.write should not be used in event handlers like onLoad() or onclick() . its be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6381827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: can't access submenu link using mouseover i am trying to access submenu link "WHAT IS Flex?" under "About Flex" from
http://flex.apache.org/ using selenium Web Driver.
Whenever a mouseover is performed submenu is highlighted and disappears before i can access submenu.
*Imported a few unnecessary packages.Please don'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26361971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to clean double lines from joint statement in R? Having done a join operation to compare addresses with itself.
library(tidyverse)
library(lubridate)
library(stringr)
library(stringdist)
library(fuzzyjoin)
doTheJoin <- function (threshold) {
joined <- trimData(d_client_squashed) %>%
stringdist_lef... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68469139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: OSX SSH tunnel from remote port to local I've created SSH tunnels in the past, but I'm having trouble on OSX. I'm looking to take a website's port 80, and direct it to my localhost:8080. When I run this command
ssh -L 8080:<cloud_ip_address>:80 root@<cloud_ip_address> -N
I get the default apache 'it works!' page.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41711596",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Creating object in django model form with foreign key I am inserting a new record in my model form where my model is child form containing a foriegn key. When I am submitting the form it give error it should be instance of the foriegn key.
Here is my model
class MMEditidState(models.Model):
state_id = models.Integ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5814789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: symfony in a home directory on debian with apache & userdir.conf After installing symfony in a user's directory (/home/user/public_html/my-project), the web directory does not appear by querying http://nameserver.com/~user/my-project and the following apache error appears by querying http://nameserver.com/~user/my-p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50005119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to properly cancel MediaPlayer.prepare()? I am using the Android MediaPlayer to play a Video in my app.
I use MediaPlayer.prepare() instead of MediaPlayer.prepareAsync() deliberately, because I want to be able to know when the statement is finished so that I can, for example, hide a progress bar.
I realize that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55157082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: sort the elements in java using priority queue I want to sort the elements using Priority Queue in Java.
Here is my code. What is wrong in it?
import java.io.*;
import java.util.*;
class PQ {
static class IntCompare implements Comparator<Integer>{
@Override
public int compare(Integer arg0, Integ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50796741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Case when SQL statement into variable I need to create a variable for a case when statement on sybase sql. I have this error from my sql client
A SELECT statement that assigns a value to a variable must not be
combined with data-retrieval operations.
What do I need to do to use this variable the right way?
DEC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38003693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Read JSON Object in PHP send with Android I´m currently having problems with exchanging JSON Objects between my Android Appliction and my Server Backend. For whatever reason
$json = file_get_contents('php://input');
doesn´t work. $json always is null.
The App sends the JSON Object with:
url = new URL("www.e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42008988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trying to import/convert a CRA app into Razzle JS I'm new to Razzle and I'm trying to learn it. I took a Material-UI dashboard app and am trying to "import" or "convert" it into my blank-ish razzle app.
I copied the contents of the CRA app's ./src into my razzle source at the right spot, referenced the right compon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56211855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Redirect HTTP to HTTPS in Spring Security or Tomcat Currently my Spring application only accepts request on HTTPS protocol. Below is a portion of the security-context.xml
<http auto-config="false" use-expressions="true"
disable-url-rewriting="true">
<intercept-url pattern="/signup*" access="permitAll... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17057219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Regarding the using expressjs on Apache web server Can i use server side scripting language i.e expressjs on Apache web server for web site development ..??
Plz suggest tutorial for that any help about that is valuable to me...
A: Read about node.js and expressjs.
Node.js is server and Expressjs - web framework ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8102776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Getting data from Php session I have created a php session and have assigned data like so
session_start();
$_SESSION['desd']=$imgD;
When i try to retrieve it on other page i get nothing.
this is what i have done on second page,
session_start();
$_imgname = $_SESSION['desd'];
How to do that?
A: The code is vali... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12514331",
"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.