text stringlengths 15 59.8k | meta dict |
|---|---|
Q: Datagridview mask values in column How can I "mask" the values of a datagridview in a windows forms application? In example, how can I limit the value in a column datagridviewtextboxcolumn so that is not bigger than a given number? (i.e. cell value in that column < 9.6)
I build my datagridview programmatically at ru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6411511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Replacing file for specific program The list of things I have:
*
*Windows 8.
*A program ("foo") that executes another program ("bar").
*A "bar".
*A replacement ("baz") for "bar".
Now the "foo" executes the "bar", but I need it to execute the "baz", which will execute "bar" and do things with stdout. I guess ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31643101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: UICollectionView self-sizing-cell on iOS 8 will crash with UIDynamic flowLayout and repeating call to _updateVisibleCellsNow I am trying to use the so called "self sizing cell" which means:
*
*set estimatedItemSize on flowLayout
*overide preferredLayoutAttributesFittingAttributes in cell class
Such as this: UI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31025762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Swift 3: Handle Errors in URLSession Delegates I need to know how to catch errors (interruptions, primarily) in a URLsession with delegates.
I have the following Swift function within a custom class, which downloads a small file to test download speeds:
func testSpeed() {
Globals.shared.dlStartTime = Date()
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43173259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Trouble Replacing Fonts in PowerPoint Presentation I cannot change (i.e., "replace") two of the fonts used in a presentation I inherited that are giving issues to our users.
I have the presentation set to embed fonts, but as I do not have the one in question, I can't fix it like I normally would (i.e., usually havin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57618249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Issue with Github Pages - deleted remote and re-uploaded from local I deleted from remote and re-uploaded the code for my github webpage (branch gh-pages) i was hosting my site on with the following:
git push origin :gh-pages
git push origin gh-pages
I am now getting a 404 error. My repo is about 920MB (under the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43356163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: RecyclerView OnClicklistener is unresponsive Firstly I know there are hundreds of these questions but the answers have not solved my problem. I suspect it's something small I'm missing, basically I've added a RecyclerView and need to start a new activity when a card is clicked.
I've been following this tutorial and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42448803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I get Django to recognize a custom template tag? My project directory looks like this. settings_value.py has a template tag, named 'settings_value' in it. In my settings.py I added 'itslogical.templatetags' to INSTALLED_APPS. I try to use it in logicalhp/home.html, but it says the tag doesn't exist. I'm u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14113957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Express, fetching data from pons API I am new to express and I try to fetch data from Pons API: https://en.pons.com/p/files/uploads/pons/api/api-documentation.pdf
here is my file:
const express = require("express");
const fetch = require("node-fetch");
const app = express();
app.get("/", async (req, res, next) => ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64101625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: angularjs: add show less button logic - fiddle included I found a fiddle that show how to add a button to show more records using a angularJS, it is pretty neat. I am trying to add a show less button, but I am not getting right the formula. I added and opposite of what the show more code does, but I am missing a pie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32762193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Record video raw from Tango with Tango Ros Streamer? I want to record data from Tango with Tango Ros Streamer and save them into a bag by command:
rosbag record -a
When i visualize sequence of image in this bag, i realize the frame rate is extremely slow.
Do you have any idea to modify or fix frame rate with this a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45037488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Encoding error in Pandas DataFrame In pandas dataframe, when writing to csv you can encode a file easily by adding a argument encoding='utf-8'
However there is an issue with this. If you are getting data directly from a database and placing it directly into a dataframe, when writing the csv, even with encoding you g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21485212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: UITableViewCell dequeue. Cancel async sqlite call On a tableview, i'm loading (async) data from a sqlite DB(using fmdb). (in cellforrow...)
My problem are that if the user scroll very fast, I get a lot of query pending\not cancelled.
how can I cancel the query when dequeue cell?
Thanks for your help
| {
"language": "en",
"url": "https://stackoverflow.com/questions/32014962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: why python hash_ring is so slow? well,I found hash_ring.MemcacheRing's so slow that rate test cant beat directly db access
while,I replace it with memcache.Client,rate test's back to normal
rps is tested in multithreaded environment
memcache.Client rps2500
hash_ring.MemcacheRing rps 600
directly db access:rps960
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10361902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I estimate gaussian (mixture) density from a set of weighted samples? Assume I have a set of weighted samples, where each samples has a corresponding weight between 0 and 1. I'd like to estimate the parameters of a gaussian mixture distribution that is biased towards the samples with higher weight. In the us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2492674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Get the XY coordinates of a `img` element I have an icon <img src="res/img/b_drop.png" id="drop_1" />. When this icon is clicked, I need a prompt to appear at some coordinates that I will calculate by the S and Y points of my #drop_. What can I do to calculate these two points using jQuery?
A: offset could be what ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17858423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Read text file from Native code in Android project I searched for the similar information and can't find a clear solution. So I make inquiry here.
I like to read a text file from my native code.
I have two approaches.
(1)First file path is taken in Java and pass to native code as
In Java
File cascadeDir = getDir("ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26478203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do i nest another cmdlet in foreach loop in powershell For each userID I want to get the date created for that user.
This is what I use for single user and this works.
(Get-AzureADUserExtension -ObjectId "00444a60-3468-48e7-97d7-69f08aac346d").Get_Item("createdDateTime")
But I want a loop. I tried below
Get-Azur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67786019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unable to generate multiple Images This is a game where 5 more images is to be added every time when a user click on last node of left side div.
If he clicks on some other node alert 'game over' should be displayed.
Issues:
*
*TypeError: leftside.lastChild is null
*How would I delete all nodes of both the right ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39290970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: FF vs Chrome: cant figure out why my select looks different This is what it looks like in chrome:
This is what it looks like in FF:
This is the css I have applied to this element:
.styled-select5 {
margin-left: 20px;
height: 12px;
border: 1px solid #cccccc;
overflow: hidden;
width: 104px;
z... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19592880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the difference between "Git" in general and Github? I know that Github is the most common site programmers use to save and make changes to code, but is this the only software out there? What are other relevant sites that utilize "Git" or version control that I could use?
A: Git is a distributed version cont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37064812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: where is tensorflow:Assets file location? I recently created a prototype model in tensorflow, I'm asking if where is the saved model saved in my pc, its file location. saving my file outputted this info:
INFO:tensorflow:Assets written to: m_translator\assets
and I don't know what clearly this is hope there's someon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72155066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In Rails, where do I put code responsible for periodically saving data from an external source? The app I’m developing needs to get some data from a third-party REST API every few minutes and save it to a database.
I’m not sure where this fits in the MVC architecture. My best guess would be to put it in the correspo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21841497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to draw a line graph with data in MySQL using chart Js in php I want to draw a line graph using the following data in MySQL table.
date - dec 10 , dec 11, dec 12, dec 13, dec 14, dec 15, dec 16, dec17, dec,18,dec 19, dec 20
attendance - 65, 58, 56, 78, 51, 54, 69, 35, 68, 43, 52
I made two queries extracting the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70800161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: vhs vimeo ViewHelper on my Site the User can insert a Vimeo URL, something like this:
https://vimeo.com/181873015
I want to extract only the last Part:
181873015
cause this is the one i need for the v:media.vimeo ViewHelper. So i thought i could do it like this:
<v:format.replace substring="https://vimeo.com/" conte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40675884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I validate form client-side with this naming convention I have a form that has some simple javascript to validate a simple questionnaire. It used the name attribute on inputs in the form but now the page is integrated with the clients CMS it needs to use a particular naming convention which I can't get to wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19824296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sound Issues With Javascript I am writing a front end to a game engine in Javascript. The engine runs on the server and sends pictures and sounds to the web browser through 'SignalR'. I am using the React framework.
As the game runs the server sends small sound samples in WAVE format, passed into this component thro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61284881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Angular UIBootstrap popover error Getting an example from http://angular-ui.github.io/bootstrap/
and following instructions I did :
<button popover="I appeared on mouse enter!" popover-trigger="mouseenter" class="btn btn-default">Mouseenter</button>
and when I moved mouse over button I got:
*
*Uncaught TypeError... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26751579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Rails get records after a certain ID In my app because records get created frequently I don't want to use a standard pagination mechanism because records wouldn't always be on the same page (records on page 2 today, might be on page 3 tomorrow). Instead what I want to do is request records after a certain ID.
So let... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41743464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AngularJS - $resource with :id in the middle of url I need to get this resource inside a factory:
Content: $resource("http://localhost:3000/matches/:id/content")
But when I try to access it with:
Content.get({id: $scope.match.id}, function(){});
I got an error because it is trying to reach "/matches/content" inste... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30539461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android Lint: How to suppress all warnings associated with support library? I am trying to use Android Lint to keep my code running smoothly but since I'm using support-v7-appcompat, Lint returns an enormous, overflowing list of warnings. How can I suppress all of them so I can only see issues with my own app? In th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20176427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: socket binding won't return an int A snippet of my code looks as follows:
int descriptor = socket(AF_INET, SOCK_STREAM, 0);
if(descriptor < 0){
cerr << "Error establishing socket connection." << endl;
return -1;
}
int port = 3400;
struct sockaddr_in address;
char buffer[140];
address.sin_family = AF_INET;
ad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39423474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ASP.NET Core VS2015 upgrade issue How to get this project.json working in vs2015.
I've downloaded the latest runtime and sdk but trying to update the packages but can't get it to work to get the correct packages.
After trying several configs, reinstalling packages I don't know which number combinations 1.0 1.1.0 1.0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43717111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do i get div-height? How do I calculate div2.offsetHeight within for loop after each added child before the append of the whole div?
var children = store.children;
for (var i = 0; i < children.length; i++) {
var child = children[i];
div1.innerHTML += child.outerHTML;
}
div2.appendChild(div1);
console.log(div... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58039213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: asp.Net 2005 "Could not load type" Although I have seen dozens of forum questions relating to "Could not load type", none of the advice in them seemed to apply to my situation.
I wrote a new web application using aspx.net VB 2005. It is tiny, with just 2 pages, 1 of which has no code-behind. It runs aok in the IDE b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2773707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: I cannot connect by jupyter notebook to my database Here is the code I initiate inside my notebook using VS Code. The output is always, NameError: name 'sql' is not defined.
Note: I already do the, pip install mysql and pip install mysql-connector-python
db_connect = sql.connect(host = '127.0.0.1', database = 'ml_d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70772812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Drupal 7 - Selecting individual images for auto-cropped image styles Let's say I have a content type X that has an image for an attribute. I know I can specify different styles for that image (e.g. medium, large, thumbnail), so that crops are automatically made. But can I select/upload a particular image to use? E.g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7843213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Jquery validator, add method doesn't accept an array as parameter I have an array called series that has elements, but when I print the array as the parameter in function notEqualSeries, it shows an empty array.
I have to do that in this way cause I want to use that function with other arrays, so only I would to wri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42662641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Swift-fatal error: Array index out of range How can I fix this code so I no longer get an error. The error I get is fatal error: Array index out of range. The code checks how many "x" and "o" there are in a string
var input = "xxxoxoooxoxo"
var inputString = Array(input.characters)
var XString = ""
var OString =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36111004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Facebook Permissions Request user Something Went Wrong error I'm having some issues with allowing users to connect their accounts to my app.
Most users can do it fine, but some just comes back saying "Sorry, something went wrong." and this is for the same users all the time. I have two Facebook accounts, to test thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7909658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cs50 Speller Uninitialised value was created by a heap allocation error I have some code that is supposed to take a dictionary file, read each word and add it to trie data structure setting a bool to true on the final node of the word.
It runs but when i check words against the dictionary later in the check() functi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59544257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Simpler c++ template compile error output When working with templates in C++ any errors cause the compiler to emit a lot of output. In most cases when I am working on something most of that information is noise and I have to scroll around looking for the info I am interested in, for example:
*
*Every template can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53687794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Fast way to strip_tags in whole document Our website is currently under attack by some scriptkiddies that are adding HTML code to their motto's and other database tables (they have access too) and we would like to use strip_tags to filter the HTML out of it, we use a lot of queries on our website so I was wondering ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20585042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Lua5.2 embedded in C++ I'm trying for the first time to have Lua embedded in C++. I've been searching for 2 days now, but most of internet tutos use lua5.1, which is incompatible with lua5.2. So I read a bit of lua documentation, example source code, and I end up with this :
main.cpp :
#include "luainc.h"
#include <... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19315192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to create composite index which contains the (latitude,longitude) and other datatype column in PostgreSQL? DDL:
CREATE TABLE test
(
longid bigint NOT NULL DEFAULT nextval('test_longid_seq'::regclass),
longitude double precision,
latitude double precision,
create_ts_long bigint,
CONSTRAINT tes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39239938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: On Mouse Over doesn't fire triggers in ContentTemplate I have some textboxes and I want to change some of their properties when I put the mouse over them. In this case, I want to change the BorderBrush and BorderThickness.
This is my XAML ControlTemplate, it's inside a Window.Resource tag:
<Style TargetType="{x:Ty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16220765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the relationship between ethereum and solidity? I am new to the blockchain. As I study solidity language, I can not figure out how it makes a blockchain in the end.
I can map a contract to a class; but is it that every instance is a chain or what?
A: The relationship between Solidity and Ethereum is somethi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54281072",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Setting arguments in a kernel in OpenCL causes error I am a beginner in OpenCL and thus writing a simple program to double the elements of an array.
The kernel code is:-
__kernel void dataParallel(__global int* A, __global int* B)
{
int base = get_local_id(0);
B[base]=A[base]+A[base];
}
The local_work_size=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31159492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unity Singleton Pattern Its just a question that bugs me on Unity.
We often use Singleton objects like game managers and so and there are two ways to go for this.
One is to use a Singleton.cs c sharp class as follows:
using System;
using System.Linq;
using UnityEngine;
public class Singleton<T> : MonoBehaviour wher... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46286996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Retrieving response message from WebService
In NetBeans I have to use the following code:
public String launchRequest(String paramString)
{
URL localURL = new URL(paramString);
Object localObject1 = new Socket(localURL.getHost(), localURL.getPort());
Object localObject2 = "GET " + ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31268967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I set duration of a video in ExoPlayer? I need to set duration of a video for a thumbnail to 5 seconds and loop it. I got the loop part, but I can't find documentation for setting specific duration
I tried exoPlayer.seek(duration) but that didn't work
A: You may use ClippingMediaSource:
ClippingMediaSource(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75279362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using Entry to search through a number of entries in a Listbox (tkinter) I want to use a search function which searches through a list of program names (chrome, thunderbird, adobe reader etc.)
I have a Listbox and then a load of program names added into the Listbox, I want the search feature, entry_1, to search thro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27281397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Parallelize with numba's prange and passing along a tuple I tried to parallelize as follows, closely following the documented example:
@numba.jit(nopython=True)
def foo(uIdx, grids):
return uIdx
@numba.jit(nopython=True, parallel=True)
def bar(grid, grids):
LIdxGrid = np.zeros(len(grid))
for uIdx in n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51537589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: isDst in Time Zone in C language I am trying to figure out on making a time from the values i choose (dynamically)
I tried giving a date of 31st march 03:10pm and trying to go back a month with 03:10Pm which is 28th Feb 03:10Pm. But i am getting a value as 04:10Pm.
I set the isdst = -1 to do this bit; but still it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15789783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does not contain a definition for GetDataFromNumber But i have it defined? public void button2_Click(object sender, System.EventArgs e)
{
string text = textBox1.Text;
Mainform = this;
this.Hide();
GetSchedule myScheduleFinder = new GetSchedule();
string result = myScheduleFinder.GetDataFromNumb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2725289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: fwrite function not working I am trying to write a simple program that opens the content of a binary file into a buffer and the searches that buffer for the occurrence of string which is '+' characters. It seems like to does find these characters even though my algorithm is a little flaky. Once it finds them it chan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Questions about CoreData and pre-populated models To pre-populate CoreData in my app upon first launch, I have included a PreModel.sqlite file that was previously created by the app from data that it downloaded from a web service, which includes images.
To populate the model, I do this:
- (NSPersistentStoreCoordinat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12322371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Jupyter Notebook gets killed when using MaxPool layers I am training a neural-net model using Keras-CPU. It works fine when I don't add any MaxPool layers, but my jupyter kernel dies whenever I use a MaxPool layer.
My whole data size is around 480 MB. My system has 128GB of memory, and it doesn't take more than 5-10... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50985792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: mongodb - Multiple LET and AS assignments to use within the same pipeline How to perform multiple let and as and use them within the same pipeline. I have the following query but assignment defaults to userTo. Both userFrom and userTo are from users collection
{
$lookup: {
from: "users",
let: {
userFrom: "$f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75196553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Triggering method from a started jar File which was loaded via Runtime...exec("..") in a java file this is what I want to do:
I need to start two jar Files from out of a java file and i want to call a method from the firstly started jar file, when i read a specific status from the second jar file. I figured out how ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15790842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: vbs open, loop through message, close application I have solved a few of these issues with the code below. The part where I'm getting stuck is looping back through the message popup. If the answer is Yes, I want it to loop back to the top; if the answer is No, I want it to exit the loop and close the program; if the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53191306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MIPS32 Stackframe broken? So here the code as wished:
PROGRAM 1
.text
.globl main
main:
li $t0, 10
mtc1 $t0, $f12
cvt.s.w $f12, $f12 # 10.0 as single in $f12
jal printFloat
li $v0, 4001 #sys_exit
syscall
printFloat:
addi $sp,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37271004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: override form method from dll class i want to build dll file that deals with system.windows.forms.form how can i override any form method from dll class such as (WndProc)?
public partial class MyDll
{
public MyDll(System.Windows.Forms.Form form)
{
// i want to override WinProc form from my dll file.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22562617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Spring boot one to one with foreign key I am want to store room details and room types in my db. I have created an entity for Room as follows.
@Data
@Entity
public class Room {
@Id
private String room_id;
private Boolean status;
private Double price;
private Long type;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65759715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mocha: Can't stub function in file that was already required in another test file I'm using Mocha to run a test suite on fileToTest.js with requires greeting.js
// --fileToTest.js--
const { greeting } = require('./greeting');
module.exports = () => greeting();
// --greeting.js--
module.exports.greeting = () => '... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66809269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: I get "Incorrect argument" error when i try to run a simple test on couchbase nodejs server var couchbase = require("couchbase");
var cluster = new couchbase.Cluster('127.0.0.1:8091');
var bucket = cluster.openBucket('beer-sample', function(err) {
if (err) {
throw err;
}
bucket.get('aass_b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28027413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Return previous row when using boolean indexing Question
How do I return the previous row, as well as the row meeting a condition, when using boolean indexing?
Example:
sodf = pd.Series([9,10,10,9,10,11])
sodf
0 9
1 10
2 10
3 9
4 10
5 11
dtype: int64
Boolean condition:
sodf[sodf == 11]
5 11... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66825503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Something changed: no longer able to SSH to home: xFinity I need some help understanding the current situation that I am having with my home network.
My home network is very simple: My ISP is xFinity with a Dynamic IP that doesn't change very frequently. Last IP change occured 6 months ago. It comes into an Arris S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75501076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reading from file line by line known structure but length is unknown I'm sorry to ask this question, because I found similar answered questions, but I'm having difficulty to understand how to read lines of unknown length but the structure is the same.
Each line is structured by the following: name:id:buyingPrice:sel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16882633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Should I use the new HTML5 semantic elements? I'm in the process of upgrading my website, and this involves the decision of using the new HTML5 semantic elements <nav> <header> <footer> <aside> <section> over regular old <div> elements.
I do plan on supporting IE7 and IE8, but I know that these versions don't suppor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19744045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Why Doesn't CreateProcess() Work? I have a program that attempts to restart Explorer in Windows 7; it first ends the process, then starts it again.
Simple?
So it looks -- it indeed seems to work. However, I noticed something funny: When I try to start a program (say, XP's Power Calculator powertoy) under compatibili... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6411866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Flicker in Gradient panel I have inherited a control from TPanel and in the Paint event handler, I have drawn the entire client rect using a gradient. This works perfectly fine until the user resizes.
When the panel is resized, the panel component flickers too much.
How can i avoid this flicker. I saw the gradients ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7196192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jsf cascading list How do I cascade the lists so if user changes selection in selectedCategory list it should update the selectedTo list.
Here is my snippet:
<h:selectOneMenu id="selectedCategory" value="#{converterBean.selectedCategory}">
<f:ajax execute="selectedCategory" render="selectedFrom"/>
<f:selectItems... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12163944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to find xpath for with no class or unique identifier <p>
<span>Welcome<span>
Hello welcome.
<p>
<p>
<span>Welcome!!!<span>
Good morning
<p>
A: You can just use the FirePath plugin that mozilla has.
Or if not then for the following code
<html>
<body>
<p>
<span>Welcome<span>
Hello welcome.
<p>
<p>
<span>Welcome... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34986557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: With "azure-iot-sdk-java"; What is the expected lifetime of a DeviceClient instance I am developing a long-running program that sends data periodically to an Azure IoT Hub. I am using the com.microsoft.azure.sdk.iot.device/DeviceClient Java class to accomplish this.
It's basically working, which is nice, but I have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57616420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to run a rails migration as sql file My database admins do not want to control access to any drop/alter/create commands. Is there anyway to emulate what rails is doing to the schema migrations table and convert the migrations themselves in a reliable way to fake rails out into thinking it has been ran and also ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42472000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I combine large csv files in python? I have 18 csv files, each is approximately 1.6Gb and each contain approximately 12 million rows. Each file represents one years' worth of data. I need to combine all of these files, extract data for certain geographies, and then analyse the time series. What is the best wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56494140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: In Java or Scala, is there a way to add a callback to an exception so that when the exception is caught, the callback is invoked? Problem statement:
I have an RPC client lib 1 that is used by many services with all code in a mono repo. This RPC client lib 1 throws a set of runtime exceptions (S1).
Now there is anoth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74709820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Save Data from internet in asset folder I want to save data from internet in asset folder in Android. I used Eclipse IDE to develop the android application.
How i can achieve this ?
Thanks.
A: The assets directory is readonly. It's defined and initialized at compile time, you cannot add or edit its contents.
Source... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8557661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: reading wave audio file into an array in android i am a newbie in android but i have tried to the best of my ability, i want to read a wave audio file into an array of shorts, bytes, floats to be able to manipulate it. With Java you can use JavaSound and you good but android is giving me headache
| {
"language": "en",
"url": "https://stackoverflow.com/questions/9628311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Ruby on Rails - Track API calls made to 3rd party service I have a 3rd party API service that I am interacting with, via my Rails app, and they have quite low daily limits.
Wondering what the best way to track API calls is?
*
*Database
*Redis
*In memory
*Other
I have a service object that makes all the calls. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73582651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Refresh Dataframe created by writing to Parquet files in append mode Is there a way that I can refresh a dataframe that is being created by appending to the parquets in pyspark?
Basically I am writing to parquet in append mode, data that I get daily.
If I want to check the parquet file created I load it up in pyspar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47938705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery click function is not attaching click event to anchor HTML
Inside <div id='foo-bar-baz'>
I have a series of image links with unique ids as below
<a href=''><img id='12341234' class='foo-bar-thumbnail-image' src='/path/to/image.jpg'></a>
<a href=''><img id='56785678' class='foo-bar-thumbnail-image' src='/path/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41904640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ValueError: only 1-dimensional arrays can be used import scipy
from matplotlib.pyplot import specgram
sample_rate,X = scipy.io.wavfile.read("a3.wav")
print(X.shape)
specgram(X,Fs=sample_rate,xextend=(0,30))
i am new to python . and first time use python for audio processing . and have struct on following problem . ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44558906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What does the -> operator do in Objective-C Sorry if this question has been asked before but there were literally no results when i typed it into google. As the title states, I would like to know what the -> operator does. I see it everywhere: [self processTorrent:alert->handle]; but don't know what it does
A: It's... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33975155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How can I calling JavaScript in WebView from Android? I am beginner in Android development and want to create Android app with JavaScript.
I can run my page in WebView.
I can run JavaScript in WebView.
I can call Android Toast message (or Dailog alert ) from JavaScript to Android.
But I can NOT run JavaScript functi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30427291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Spring boot lazy initialisation is causing issue for datasource I am trying to implement lazy-initialization in my spring boot microservice.
My application is using below items.
*
*Flyway (I have disabled it from yml)
*postgresql
*Kafka
Whenever I deploy this microservice on Jenkins my sping boot application ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62483427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Use jQuery to lift element value then return item from array and update another element I have a select element...
<select name="tour" id="tour">
<optgroup label="tour">
<option value="0" selected="selected">Please Select Tour</option>
<option value="Tour1">Tour1</option>
<option value="Tour2">Tour2</option>
</optgr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22418459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Spring boot SUM(column) with specification I have an entity, says:
class MyEntity {
Long id;
String attr1;
String attr2;
String attr3;
String attr4;
Double attr5;
}
I use Specification to query the result filtered by attributes like:
class MySpecification implements Specification<MyEntity> {... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64039786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Need help understanding RESTful apis in PHP For a few weeks, I've been trying to gather as much information on implementation of RESTful apis in PHP as I can but in vain. All the information that is given online only explain the most basic concepts but never did I come across a very real example with complete code o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38119089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Slider AutoplayJquery doesn't work How can I add autoplay in this slider?
https://codepen.io/mikun/pen/YWgqEX
$('.slide-nav').on('click', function(e) {
e.preventDefault();
// get current slide
var current = $('.flex--active').data('slide'),
// get button data-slide
next = $(this).data('slide');... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45109512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Notice unserialize error in CakePHP via Redis Update:
Per suggestion from the accepted answer below, I tested reading a negative number:
$negativeInt = -1;
Cache::write('my-test-count', $negativeInt, 'short');
$readVal = Cache::read('my-test-count', 'short');
debug($readVal);
exit;
The unseralize error reproduces c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34936268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Recommendations for keeping a build server updated As a guy who frequently switches between QA, build and operations, I keep running into the issue of what to do about operating system updates on the build server. The dichotomy is the same on Windows, Linux, MacOS or any other o/s that can update itself via the int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2777645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: jsTree select Node which is not in DOM yet I have an jsTree, data comes from HTML
$("#tree_container").jstree();
Now I want to implement deep linking on the tree elements. I am getting the class and data-id from URL parameters and now I want to select the correspondent node.
var id=$("#tree_container").find("li."+g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35311488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Store a custom Array List in Shared Preference I want to store a Custom Array List in a Shared Preference , so that I can read the List when I open my app the next time.
I looked at many tutorials and answers but I could not really understand it.
list_addr.java
public class list_addr {
public String title;
public S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34626551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to keep a user signed in on an Electron app using Auth0? There seem to be no complete explanations of how to do this, or even enough fragments for me to piece together what I have to do. After about 16 hours of studying, I am at wit's end.
It seems like I can't use SSO, and I also can't use PKCE because there is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42889805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to check if checkbox is checked in gridviewrow I need help with this code where I check every row in GridView if the CheckBox is checked or not. But there is still false. Can you help me, please?
<asp:GridView ID="GridView1" CssClass="tabulka" runat="server" AutoGenerateColumns="false" />
<Columns>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56963931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: calculate a rolling median on a dataframe that has a non-unique date index I have the following dataframe, which has a non-unique index using dates:
column
2019-01-07 NaN
2019-01-08 NaN
2019-01-08 0.02
2019-01-09 31.45
2019-01-10 NaN
2019-01-10 71.87
201... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65929683",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Error LNK1104 when upgrade from VS2008 to VS2010 My project make C dll deployment in Matlab.
After upgrade from VS C++ 2008 to VS C++ 2010 project, I got this error:
LINK : fatal error LNK1104: cannot open file 'mfc90d.lib'
After searching for solution, I think it should reference to 'mfc100d.lib'. But I don't know... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24771053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: returning and passing 2 one dimensional arrays from a function to another in c++ I have around 5 functions which exchange data among each other, each fuction has to return an array and around two integers. I went through "tuple" but we cant club integers and arrays together and im not very comfortable with "struts".... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40910420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.