text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
I cant seem to manipulate (data conversions or any other form of manipulation) csv data within a reactive() or renderDataTable()
am a bit new to R. I am able to manipulate csv data in any way with in rstudio console.However,when i move the code to shinyr or shinydashboard environment, i am unable to manipulate the dat... | common-pile/stackexchange_filtered |
how to catch all uncaught exceptions and go on?
EDIT: after reading the comments and the answers I realize that what I want to do does not make much sense. What I had in mind was that I
have some places in my code which may fail (usually some requests
calls which may not go though) and I wanted to catch them inste... | common-pile/stackexchange_filtered |
Publish Code Coverage doesn't work in .NET Core Azure pipeline
I am trying to add Code Coverage results in an Azure DevOps build for a .NET Core project, but, trying two different approaches based on this guide on MSDN:
Currently, after building the solution, I have a dotnet step for test, collecting the Code Coverage ... | common-pile/stackexchange_filtered |
If $G$ is simple, then $\epsilon \leq {v \choose 2}$ - Bondy/Murty - Graph Theory with Applications Page 4
Question: Does this proof hold? Is this a bad proof? Any nicer proofs that don't rely on other theorems?
Notation:
$\epsilon$ - Number of edges
$v$ - Number of vertices
G - Here, any Graph
If $G$ is simple, t... | common-pile/stackexchange_filtered |
Setting timer for a javascript randomizer
The randomizer works, but looking for a way to get it to loop using the setInterval so it can continuously run in its own div on a website.
<script language="JavaScript">
setInterval(quotes(), 3000);
function quotes(i) {
var r_text = new Array();
r_text[0] = "All the le... | common-pile/stackexchange_filtered |
Finding boost-python3 with Anaconda cmake prefix
DLDR How do I point the cmake at boost-python3 library? It is not automatically detected by cmake.
I'm trying to build caffe for Python 3.6 using the provided cmake.
My system specs:
Python 3.6.5, Anaconda custom (64-bit)
Mac OS 10.13.6
No CUDA
I've installing boost w... | common-pile/stackexchange_filtered |
ScheduledExecutorService#scheduleAtFixedRate is not working
When I periodically perform a time-consuming task, the results do not meet my expectations.
public static void main(String[] args) {
ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(10);
scheduler.scheduleAtFixedRate(() -> {
... | common-pile/stackexchange_filtered |
C# dataGridView update changes to database with another thread
I want to update changes to database with another thread, because when i change more than 100 cell value the form is freeze for a few seconds.
I try a lots of solution, but i was always get this error
There is already an open DataReader associated with th... | common-pile/stackexchange_filtered |
What is the value of k if equation $x^3-3x^2+2=k$ has three real roots and if one real root?
I'd like help understanding this question graphically actually. My book finds the derivative of f(x)=$x^3-3x^2+2$ and gets 3x(x-2), thus finding maxima and minima of f(x) as 2 and -2. Then it just says that for three real roots... | common-pile/stackexchange_filtered |
Create interaction term in scikit-learn
There are certainly many ways of creating interaction terms in Python, whether by using numpy or pandas directly, or some library like patsy. However, I was looking for a way of creating interaction terms scikit-learn style, i.e. in a form that plays nicely with its fit-transform... | common-pile/stackexchange_filtered |
Finding the two points on a heart-shaped curve which have maximal distance between them
The question originates from Max & min distance between two moving points. I think it can be solved easily because of the function is a parametic function. My heat-shaped curve is given by
ContourPlot[
((1.2 x)^2 + (1.4 y)^2 - 1)^... | common-pile/stackexchange_filtered |
Exercise 27 from chapter 4 (“Hilbert Spaces: An Introduction”) of Stein & Shakarchi's “Real Analysis” 2
I'm having trouble with the following problem:
Prove that the operator $$Tf(x) = \frac{1}{\pi} \int_0^\infty \frac{f(y)}{x+y} dy$$ is bounded on $L^2(0,\infty)$ with norm $||T|| \leq 1$.
I have no idea where to st... | common-pile/stackexchange_filtered |
Java Having trouble saving file
I am trying to have my program save, but whenever I try to save a program that exists (so the second run through) it creates the temp, but it does not overwrite the old file.
Here is the code. Can anyone find out why it does not overwrite the old file with the new?
public static void sav... | common-pile/stackexchange_filtered |
KnownType on existing class
I am creating a service using WCF. One of my service methods should return an instance of a type, which is inherited from System.Net.WebProxy. Because of the inheritance, the WCF would not know which type is meant (this is well-known, I guess). The "work-around" would be to add the KnownType... | common-pile/stackexchange_filtered |
Azure OpenAI GPT-4o mini Structured Outputs `response_format` not working
trying to replicate the math tutor example using Azure OpenAI API, but response_format is flagged as "Invalid parameter".
Full error message:
{
"name": "BadRequestError",
"message": "Error code: 400 - {'error': {'message': \"Invalid param... | common-pile/stackexchange_filtered |
Why is this GLFW program not polling for joysticks?
I'm using GLFW to record the states of joysticks in a robotics project, and came across something strange.
On a Macbook Air, running 10.11.3, GLFW only returns the state of the joysticks at the beginning of the program. The documentation claims that it updates the sta... | common-pile/stackexchange_filtered |
How to pass C structure containing custom defined datatypes in python
I'm am writing in python code first time. Wanted to call C shared library function from python, however problem is unable to pass structure containing custom data types.
mylib.c
#include <stdio.h>
typedef int integer;
typedef char ... | common-pile/stackexchange_filtered |
Java Memory Leaks
I'm creating a service that will run constantly, each day at a specified time it will run the main body of the program.
Essentially:
while(true){
run();
Thread.sleep(day);
}
After a while, I'm getting OutOfMemoryHeapExceptions.
After reading about this a little I'm thinking its because any objects cr... | common-pile/stackexchange_filtered |
Variace covariance matrix using VBA
cov(1, 1) = Application.WorksheetFunction.Covar(Range("f3:f241"), Range("h3:h41"))
Above is the vba code I tried out to get the covariance of two data vectors. But When I tried it in a different way I got an errorcov(1, 1) = Application.WorksheetFunction.Covar(Range(Cells(3, 6), Cel... | common-pile/stackexchange_filtered |
Pushing pictures with push notifications (ngCordova, Angular, Ionic)
Recently, I have come across some apps, that are able to show me a picture (in addition to some text) in the application drawer / lock screen when a push notification arrives. I would like to know if it is possible to implement this with Ionic / Angul... | common-pile/stackexchange_filtered |
uncaught error no module when I inject $http
Have no idea what have gone wrong, I saw uncaught error no module : myModule in the console after I start to use $http.
After research, I found even angular official page have the same problem, at this URL
Can you show the code?
go to the url above, and inspect element
... | common-pile/stackexchange_filtered |
create a new column conditional on distance traveled between points in R
I am trying to create a new column conditional on another column, a bit like a moving average or moving window but based on distance between points. Take for example row 2 with a CO2 of 399.935. I would like to have the mean of all the points with... | common-pile/stackexchange_filtered |
How to stop bundler to collide in a folder's package.json file with main app's package.json?
I'm building a react native project. I kept my backend folder named sanity in app folder. My metro bundler colliding with app/package.json with app/sanity/package.json while opening in android but working with web. My terminal ... | common-pile/stackexchange_filtered |
Create new file on server with shared directory (java)
I am not familiar with Windows shared folders, but here is what I have:
filePath = //server/TEMP/ **(1)**
server = another machine. TEMP = shared folder.
If I open this line with Explorer it goes to
http://server/TEMP/
and I can see list of files and create new.
... | common-pile/stackexchange_filtered |
Trying to get all combinations without duplicated numbers
I am trying to make a 5 number combination but without repeating the same number. My numbers are from 1 to 45 and I am trying to see the multiple combinations that they can have.
So far I have been able to print and save the combinations. But from the data I can... | common-pile/stackexchange_filtered |
Interpolating Matrices
Apologies if I am missing something very obvious (likely!) but is there anything wrong with interpolating between two matrices by:
float d = (float)(targetTime.Ticks - keyframe_start.ticks) / (float)(keyframe_end.ticks - keyframe_start.ticks);
return ((keyframe_start.Transform * (1 - d)) ... | common-pile/stackexchange_filtered |
C++ Read line by line file with class
I need help. I want to write program that open file where are questions and read question by question, question in files start with < and end with > how to do that with class ?
I wanted program to go one question then after you answer you get next question.
for now i did this:
`
i... | common-pile/stackexchange_filtered |
Googletest compile fails on defining a struct in #imported file
I have two files, first_pass.c that includes mystring.h that describes mystring.c. While testing first_pass.c I did the following includes
#include "../src/mystring.c"
#include "../src/first_pass.c"
#include <gtest/gtest.h>
Everything worked well, until I... | common-pile/stackexchange_filtered |
About Apex Test classes
Few questions creating some confusion for me:
Do we'v to write ALL SOQL and DMLS before test.start or after test.start method ? For e.g in case of DMLs, If I'm creating test Data for an object and populating a list(say list of Accounts). Should insert DML operation of list , occur before test.... | common-pile/stackexchange_filtered |
How to know e-Wallet with xpub
How can I know what's e-wallet name provide the wallet?
When I know xpub and xprv and mnemonic
When I get mnemonic (12 words) and get xpub I can get balance with blockchain API
But how can I know what wallet company provides this wallet?
How can I know what's e-wallet name provide the w... | common-pile/stackexchange_filtered |
Weird FIOS router issue started TODAY and b0rked Windows PCs only
So this morning when I woke up, I experienced something I've never seen.
All of my windows PCs (4 of them) could get on my Wifi, but not access the internet. All internet addresses would ping to <IP_ADDRESS>.
My 2 android devices worked fine.
I spent a ... | common-pile/stackexchange_filtered |
How to format computer just after BIOS and before OS is loaded
I have a bunch of computers to format (desktops and laptops). Until now, I used an usb key with the windows' boot but it's not really fast.
Do you know a script (on a usb key) that can run before the OS is loaded at start up and format the computer ? I don'... | common-pile/stackexchange_filtered |
min is undefined in leaflet.src.js
I'm trying to load geojson layers in leaflet map using "leaflet-vectorgrid" plugin. but when ever i hover or click over the loaded layers, we'll get the error that says "min is undefined" from the
Plugins that i used:
leaflet
nuxt3-leaflet
leaflet.vectorgrid
Im sure that every thing ... | common-pile/stackexchange_filtered |
How do I access a property that I added during runtime to an object?
In this example I added the property "col_id_3" to the Object. Later I want to access it. Eventhough I can see the property "col_id_3" is there (see picture), I can't access it with Object.col_id_3. JavaScript returns undefined. How can I access it i... | common-pile/stackexchange_filtered |
What vimrc settings to speed up scrolling?
I use gvim pretty heavily at work, typically logged into a server farm. This works great while I'm directly on the corporate LAN, but when I VPN in from home and resume my sessions, gvim scrolls almost intolerably slow.
Every time I page up or down, the scrolling does a lot... | common-pile/stackexchange_filtered |
Using scipy optimize for MLE estimate and curve fitting
I randomly generated 1000 data points using the weights I know are true for the normal distribution. Now I am trying to minimize the -log likelihood function to estimate the values of sig^2 and the weights. I sort of get the process conceptually, but when I try to... | common-pile/stackexchange_filtered |
Certificate passphrase - mitmproxy isn't reading it from config.yaml or from command line
Hello mitmproxy community,
I am trying to use a self signed certificate under mitmproxy. So I placed the pem file (containing the private key as well as the public key) in .mitmproxy folder and named if mitmproxy-ca.pem. By this w... | common-pile/stackexchange_filtered |
How to get typeArgs from a type in M7?
I am migrating some code from Scala 2.10-M5 to Scala 2.10-M7. I have found that the Type API in the macro context has been notably reduced. In particular, I am wondering how to get the underlying and typeArgs defs.
--
UPDATED
As requested by @EugeneBurmako, I am going to show the ... | common-pile/stackexchange_filtered |
Enable compiz on Ubuntu with SiS 771/671
I am running Ubuntu 10.04
I have the following Graphics card info:
>lspci | grep VGA
01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] 771/671 PCIE VGA Display Adapter (rev 10)
And I need to enable compiz, even with less moves :), How can I?
which version of ... | common-pile/stackexchange_filtered |
Manage Multiple Subscriptions for single item for multiple users
The current Google Play Music app is able to manage subscriptions for multiple users. It is able to switch the user on Google Play and use subscription for them. Is there a known API of telling google play which account to use for subscription/in-app purc... | common-pile/stackexchange_filtered |
Array of objects to map
Could anybody tell me where i am going wrong?
I have a sample code here where i am mapping over an array of objects and trying to render each item but for some reason it renders the same thing the amount of times of how many items I have.
Take a look at my code and pls tell me how to solve this.... | common-pile/stackexchange_filtered |
getting a reference to an element created with javascript using Tampermonkey
I am using Tampermonkey to get an element that was previously created with javascript. The code used to create the element looks like this:
a = document.getElementById("iframe").contentDocument.createElement("canvas")
I tried
var canvas = doc... | common-pile/stackexchange_filtered |
Apparent elimination of overlapping divergences
The integral,
$$ \iint_{\mathbb{R}^{2+}}\frac{xy}{1+x+y} \mathrm{d}y \, \mathrm{d}x$$
possesses an overlapping divergence when $ x \to \infty $ and $ y \to \infty $. However, under a change of variables to polar coordinates,
$$ \int_{0}^{\infty}dr\int_{0}^{2\pi}du \frac{r... | common-pile/stackexchange_filtered |
Footer will not stay at the bottom of the page
The footer will not stay at the bottom of the page. I render a partial inside my application.html.erb file. I am wondering if it is because im rendering the footer partial outside the div container i have inside my application erb file.
<html>
<head>
</head>
<body>
... | common-pile/stackexchange_filtered |
Getting error 502/504 when trying to get InputStream
URL queryUrl = new URL(url);
InputStream inputStream = null;
HttpsURLConnection connection = (HttpsURLConnection) queryUrl.openConnection();
connection.setRequestProperty("User-Agent", "My Client");
connection.setRequestMethod("GET");
connection.setDoInput(true);
in... | common-pile/stackexchange_filtered |
Create and Insert an Input on "Enter"
I am trying to create and insert an input(b) below another input(a) on "Enter" of input(a), while also inserting the value of input(a) into input(b).
Javascript
function add_name(ele) {
if(event.keyCode == 13) {
var newdiv = document.createElement('div');
newdiv... | common-pile/stackexchange_filtered |
Left justify centered text in tds
I have a report that's displayed in a table, the text inside tds must be centered but left justified, how can I accomplish that ?
<td style="text-align: center;"><?=$row['column']?></td>
Are you try to achieve this? http://stackoverflow.com/questions/8702802/how-can-i-centre-left-ali... | common-pile/stackexchange_filtered |
How to make DOMDocument write standalone=yes in PHP?
I'm using PHP5 to create XML files. I have code like this:
$doc = new DOMDocument();
...
$xml_content = $doc->saveXML();
The problem is that created XML code starts with a root node like this one:
<?xml version="1.0"?>
But I want it to be like this:
<?xml version="... | common-pile/stackexchange_filtered |
How should I trim my tomato plants?
I have been removing the leafy branches from my tomato plants. Is that wrong?
Two questions: Why did you do it and why do you think it might be wrong?
Oh, and a third one: How far apart did you plant them?
Hmm they look naked now! I did the brussell sprouts and thought I might... | common-pile/stackexchange_filtered |
Trying to get property of non-object when username is incorrect using CodeIgniter
I am using password_verify to check the password is correct or not which is working perfectly. My issue is when the user entered the wrong username clicked on login button than I am getting the error that "Trying to get property of non-ob... | common-pile/stackexchange_filtered |
Difference between “matter” and “concern”
What’s the difference betwen these two phrases?
It’s a matter for the politicians
It’s the concern of politicians.
What parts of the different words are unclear as to how the phrases differ in meaning?
None. As far as I can tell. Both the phrases convey the same meaning i... | common-pile/stackexchange_filtered |
why 'webpack serve' command isn't not working in my project?
I use webpack in my project.
After a few months I've decided to update this project (that is my website), and after npm install and webpack serve I've encountered these error that I can't solve:
> webpack serve
[webpack-cli] You need to install 'webpack-dev-... | common-pile/stackexchange_filtered |
How to obtain the Kubeflow pipeline run name from within a component?
I'm working with Kubeflow pipelines. I would like to access the "Run name" from inside the a task component. For example in the below image the run name is "My first XGBoost run" - as seen in the title.
I know for example it's possible to obtain the... | common-pile/stackexchange_filtered |
How to test menu in Android?
I need to write tests to menu in Android application using Robolectric.
Source code of menu:
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
tokenProvider.destroyTok... | common-pile/stackexchange_filtered |
Convert object property to specific class instance from a string key
I'm currently making instances of my classes from a generic csv reader(see source here). It checks what properties a class has and which order they are in, and then assigns them in that order from the csv file given.
My issue is that I have a class th... | common-pile/stackexchange_filtered |
Conditions for union of subspaces to be subspace
I want to prove that if $W_1, W_2$ are linear subspaces of $V$, then $W_1 \cup W_2$ is a linear subspace of $V$ if and only if $W_1 \subset W_2$ or $W_2 \subset W_1$. I sort of "see" it right away. The problem here is formalization. In particular, how do I show that if I... | common-pile/stackexchange_filtered |
Parsing annotation
I have implemented code for parsing annotation:
/**
* @Route(path="sample \n test",code,value,boolean,test)
* @access(code=false)
* @sample as asdad asd
* asd
*/
function sample()
{
}
$refelection = new ReflectionFunction("sample");
$pattern = "/@(\w+?)(.*?)/U";
preg_match_all($pattern, $ref... | common-pile/stackexchange_filtered |
How to change other objects based on a html select element
I am implementing the graphical interface to manage a roles on a site. I am using ASP.NET MVC with Razor to display the view
Here is my current screen:
Here is my code for the combo box:
<p>
<label>Select User</label>
<span class="field">
<s... | common-pile/stackexchange_filtered |
Continuous Query data loss from baseline adjustment
I am running Ignite in a Kubernetes cluster with the following configuration:
persistence enabled
Caches are partitioned
Backups enabled
For the K8s configuration I have a service enabled to expose the cluster and its ports. I am using a stateful set to add new pods... | common-pile/stackexchange_filtered |
Should we require comments before downvotes?
Prompted by the discussion at this question, I am making a proposal that we ask StackExchange to require users of Mathematics Educators to comment on a post before they can downvote it.
Upvote the "yes" answer if you agree, upvote the "no" answer if you disagree. Intermedia... | common-pile/stackexchange_filtered |
npm: "Cannot find module internal/errors"
On a MacBook with the latest version of NodeJS, I am trying to update npm:
npm install npm@latest
The error message is:
npm ERR: code MODULE_NOT_FOUND
npm ERR: Cannot find module 'internal/errors'
npm ERR: A complete log of this run can be found in:
npm ERR: /Users/alexand... | common-pile/stackexchange_filtered |
Contstant getting "Blocking call to accept-process-output with quit inhibited!" with flyspell mode
After I installed aspell with Emacs 26.3 and turned on flyspell mode, I constantly get the message:
Blocking call to accept-process-output with quit inhibited!
How to suppress these messages?
What other subprocesses are ... | common-pile/stackexchange_filtered |
Can I resize a bezier path like a regular view in swift?
I'm trying to resize a bezier drawn circle in an app I am making for iPad. The only way I know of so far is to use CATransform3DMakeScale. But, is there a way in which I can simply specify a height or width for the circle's shape layer and it will resize it to fi... | common-pile/stackexchange_filtered |
How to wait for a promise without making the caller async?
There are many questions already asking for how to wait for a promise to resolve. The answer to use await is pretty obvious now. What's not so clear, however, is how to do that without making the calling function async. Is that even possible?
Background:
In a S... | common-pile/stackexchange_filtered |
how to add a css-only tooltip to a class of paths in svg
I have created an SVG map for a WordPress website I am building.
I need help on adding a CSS only tooltip for my map. I want it to popup only by hovering the countries in class st0. and getting the information from the data-info of the path of each country in the... | common-pile/stackexchange_filtered |
.NET Core Response Compression Middleware for static files
I've enabled response compression middleware for my asp.net core 1 application. I've noticed that after enabling this I now see the view response has content-encoding g-zip so it is working for the html.
However, I'm trying to enable it so that static files th... | common-pile/stackexchange_filtered |
transparent (test) grid showing up when rendering?
When I'm rendering, I've noticed that there is the transparent grid, even with the user's perspective filled with non-empty texture.
How can I get rid of that?
where can i find the compositor? (sorry i'm a beginner)
Do you have any textures in your scene, or just so... | common-pile/stackexchange_filtered |
Vue.js / Algolia - Dynamically pass field names in template
I am trying to dynamically show search results from Algolia, based on an array of names.
Input.vue:
<search-results title="Books" :fields="['booking_reference','shipment_reference']"></search-results>
Results.vue:
<template slot-scope="{ result }">
<h1 v... | common-pile/stackexchange_filtered |
Show the recursive sequence is increasing
How do I show that the recursive sequence
$$a_n = a_{\lfloor n/2 \rfloor} + a_{\lceil n/2 \rceil} +3n+1, \quad
n\geq 2, \phantom{x} a_1 = 3$$
is an increasing sequence?
1. attempt:
If I can show that $a_{n+1}-a_n>0$, I would be able to show it is increasing.
\begin{align*}
a... | common-pile/stackexchange_filtered |
Splitting an arraylist java
Below is a code snippet to extract a part of arraylist. My arraylist full contains around 3000 lines with 193 digits separated by spaces in each line.
Now I want to split my arraylist to get the first 48 digits in each line, ie my final "ocr" arraylist should contain 3000 lines with 48 digit... | common-pile/stackexchange_filtered |
Unable to SSH into server when using passwordless SSH keys
This is probably an idiotic question, but I'll try and provide as much information as possible. If you need any extra details, then please let me know.
I have a Mac running Ventura and an AlmaLinux virtual machine running in VMWare Fusion Pro 13. AlmaLinux is v... | common-pile/stackexchange_filtered |
R / dplyr / complex filter in function by string
I'm trying to hand over a filter with multiple arguments as a string to dplyr::filter within a function. The answers I've seen so far all concern single filter argument, not multiple ones.
Example:
myfil <- function(df, fil) {
quo_fil <- enquo(fil)
df <- filter(d... | common-pile/stackexchange_filtered |
How to change android device wallpaper programmatically under regular intervals?
How I need it to work,
It should change irrespective of the device having an internet connection or not.
It should change every one minute or 20 seconds.
Should work even if the app is killed.
The images to be used will be in the device... | common-pile/stackexchange_filtered |
Slow NodeJS upstart time with buildroot, but fast with raspbian?
Building a small linux distro with buildroot using the raspberrypi_defconfig + nodeJS i get a 12+ second upstart on every single node file i try to run.
If i on the other hand try it out in raspbian, it takes less than 2 seconds.
Does this have anything ... | common-pile/stackexchange_filtered |
Angular JS pagination service not updating ng-repeat values properly
I'm trying to implement a pagination service in my angular app from this tutorial, and the ultimate goal is to display 10 links per page. A link usually contains a title, a description, and an image. However, there are some links that doesn't contain ... | common-pile/stackexchange_filtered |
How to get values from a defaultdict using a new combination of keys?
I have the following defaultdict:
dictA = {"a": {"b": 0.1, "c": 0.2}, "b": {"c": 0.3}}
From this dict, I need to append the values to a list using the following combination of keys:
order = [("b","b"), ("b","a"), ("b","c"), ("a","b", ("a","a"), ("a"... | common-pile/stackexchange_filtered |
Hover on images to show larger hidden image linked by alt tag?
please see this fiddle http://jsfiddle.net/rabelais/fEaAZ/4/
How can I link the small thumbnail image to the larger hidden image by using the alt tag of the images?
I want the matching hidden image to show on hover of the smaller thumbnails.
$(".thumbnail... | common-pile/stackexchange_filtered |
How to create empty-conditional operator for collections similar to null-conditional operator?
C# 6.0 introduced null-conditional operator, a big win.
Now I would like to have an operator which behaves similarly to it, but for empty collections.
Region smallestFittingFreeRegion = FreeRegions
.Where(region =... | common-pile/stackexchange_filtered |
CS50 Pset 1 Mario More
I'm solving Mario More comfortable in CS50 Pset 1, I did like most of it, and this is my code:
#include <cs50.h>
#include <stdio.h>
int main(void)
{
int height, i2, i;
do
{
height = get_int("Height: ");
}
while(height < 1 || height > 8);
for(i = 0; i < height; i++)
... | common-pile/stackexchange_filtered |
Python3 How to multiply all sequential items in a list by the previous item in the list?
I'm having trouble trying to finish my code for an assignment...
"Teachers in most school districts are paid on a schedule that provides a salary based on their number of years of teaching experience. For example, a beginning teach... | common-pile/stackexchange_filtered |
Resistance across materials
I'm planning to use 2 PCBs to sandwich some conductive foam - to use it as a force sensing resistor (FSR).
In order to tie them together and add them to a metalic suport I'll be using M4 metalic screws. My question is:
Will multiple metalic screws (they have low rest. values around 3ohms) ... | common-pile/stackexchange_filtered |
use pywhatkkit in same tab instead of using new
I want to use pywhatkit to search in same tab instead of opening in new tab.I am using following code:
import pywhatkit as kit
kit.search(query)
It open new search query in new tab instead of using current tab. if anyone knows a way to handle this problem please help.
... | common-pile/stackexchange_filtered |
Google Sheets, search for number and return specific associated cells
I have two sheets in the same document. One sheet is the master sheet containing account numbers and information, the other is a the daily use of that information. I want each column in the daily sheet to automatically pull certain parts of the infor... | common-pile/stackexchange_filtered |
How can I handle large objects and avoid an out of memory error?
I'm trying to handle a large array, but the object is sometimes so large that it breaks the server with:
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
I can reproduce this locally by doing node --max-old-space-size=100 and the... | common-pile/stackexchange_filtered |
Why function not fired when I make seletion?
I work on my mvc 5 project.
I have ul li element. When I make selection from ul element I want to fire jquery function and implement postback call.
I have this HTML code:
<ul class="top-links list-inline">
<li>
<a class="dropdown-toggle no... | common-pile/stackexchange_filtered |
How to calculate timeOnPage directly in BigQuery interface?
Even though BigQuery is giving us directly the hits (page & event) it does not have the time spent per page (as it's a difference between 2 successive hits given that the pagepath has changed) in order to recalculate the global time spent for a group of pages.... | common-pile/stackexchange_filtered |
Better way to return any match in a python regex search?
I'm running a simple regex search for two criteria Profile and BuildDate.
I want to cover the possibility that I will either find both, one, or no results and return as much information as possible. Here is how I've written it, but I am wondering if there is a mo... | common-pile/stackexchange_filtered |
Sending an Email alert using Visual Flows?
I am very new to the Flows. Already I came across this link: Visual Flow Guide which just gave some definitions for the fields but not the execution.
I've already configured a Process flow that creates a Child record immediately after a Parent record created(lookup). Now I w... | common-pile/stackexchange_filtered |
with atleast 60% marks in either of the degree examination-
a candidate must possess the minimum qualification of a Graduate/Post Graduate in any discipline from a recognized University with at least 60% marks in either of the degree examination: Does it refer to both graduate and post graduate marks or any one of them... | common-pile/stackexchange_filtered |
Administrative Divisions bordering a geographic region (e.g. an ocean)
Update 3
I've worked out a solution that is bearable for a small number of subregions in the neighbour and added it as an answer. I'm going to make a post for optimisation help.
Update 2
For a second attempt I have tried a geometric computation app... | common-pile/stackexchange_filtered |
How this diagram can be improved
I'm looking for failures in this "token based login" design, besides the UML "syntax" errors. Theoretically speaking, it will do the trick when implemented on an small project.
If true, sorry about my english.
Thaks in advance.
EDIT: Is 1) this model something useful and clear? 2) Will ... | common-pile/stackexchange_filtered |
How is an image served from a URL with an ASPX extension?
Can Somebody tell how to create such kind of urls
for example if you see the url
http://office.microsoft.com/global/images/default.aspx?assetid=ZA103873861033
you will redirect to an image ..
my question is , though this url is an image..its extension is aspx..h... | common-pile/stackexchange_filtered |
Difference between Pending Messages and Enqueue Counter in Active MQ?
In the Active MQ Admin console of what is the difference between "Number Of Pending Messages" and "Messages Enqueued"? When a Message is placed on to the queue, should both these values should match?
pending messages = number of messages CURRENTLY... | common-pile/stackexchange_filtered |
Simple QT console TCP application. What am I doing wrong?
#include <QtCore/QCoreApplication>
#include <QTCore>
#include <QtNetwork>
#include <QDebug>
#define CONNECT(sndr, sig, rcvr, slt) connect(sndr, SIGNAL(sig), rcvr, SLOT(slt))
class mynet : QObject
{
Q_OBJECT
public:
mynet()
{}
void start()
... | common-pile/stackexchange_filtered |
How to get the best matching result from the below table?
ID | Company | Type
--- | -------- | ----
1 | * | *
2 | CMP1 | *
3 | CMP1 | TYP1
4 | * | TYP1
5 | * | TYP2
6 | CMP1 | TYP2
(Here Company and Type together makes the Primary Key.)
I have to get t... | common-pile/stackexchange_filtered |
Gmail: How do I select a number of emails and then reply to them all with a canned response?
There are dozens of emails in my Gmail mailbox which I need to reply and I know what to reply just from reading subject.
So, how do I select a number of emails and then reply to them all with a canned response?
Preferably in f... | common-pile/stackexchange_filtered |
Discord.JS - Edit existing embed field without creating a separate one
I am trying to edit an already existing embed with a message that is sent buy a member.
The current code I have adds a separate embed field each time but I am trying to get it so that the value is added to an already existing field within an embed t... | common-pile/stackexchange_filtered |
Is it possible to specify that an options is required with boost::program_options?
I can use all other public members of the class typed_value define in value_semantic.hpp such as: default_value, implicit_value, zero_tokens, multitoken, notifier, etc.
But even if the member "required()" is also there, I cannot use it.
... | common-pile/stackexchange_filtered |
How to Deal with Low Quality Content (Without Deleting or Adding More Content)?
I have around 95% low quality articles in my web site. I don't need to delete them because those are for users. I don't want to search engine traffic also those articles. Those articles just for loyal readers to read after visiting my site.... | common-pile/stackexchange_filtered |
Why does penne pasta go into rigatoni during cooking?
I was boiling penne and rigatoni pasta in the same pot (both are hollow cylindrical pasta of approximately the same length, but rigatoni has a noticeably larger diameter) and almost all of the penne pasta managed to find its way inside one of the pieces of rigatoni.... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.