text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
How do I remove crashplan from my Mac
I recently tried out CrashPlan on my Macbook, but I decided not to go through with that. However, now that I'm not going to be using CrashPlan after all, I can't figure out how to remove their app from my Mac.
I've tried simply opening up Finder and moving it to Trash but I get th... | common-pile/stackexchange_filtered |
Area within a given number of standard deviations from given mean
I have a variable with mean value of 18.85 and standard deviation of 1.45.
I want to define the area that is covered by 1.45 standard deviations left and 1.45 standard deviations on the right side of the mean using these statistics.
How do I do that?
... | common-pile/stackexchange_filtered |
Windows shell script not able to make existing IE window visible?
I have been trying to create a really simple script to maintain visibility on an IE page but am currently unable to force the visibility or foreground position of an existing IE window.
I am able to successfully activate the window using WshShell.AppActi... | common-pile/stackexchange_filtered |
Leadtools: Generarate a new tiff image by selecting 3 to 4 sections of existing tiff image
We need to generate a new TIFF image by selecting 3 to 4 sections of existing tiff image using leadtools in ASP.NET. I am lost as to were to start, can you suggest examples?
have you done anything for this ? Do some effort then... | common-pile/stackexchange_filtered |
store generated data in list and add header using python
This code download data in terms of table structure and i tried putting that table in list so that i can further use it to store in database , i have tried to append another empty row in this for header since it gives first entity as its header.
Problem is it gi... | common-pile/stackexchange_filtered |
How can I protect a picoammeter or a picoscope in HVDC measurements?
I'm trying to measure the leakage current along an insulator energize with HVDC (the effect of space charges is been considered).
Can I connect a picoammeter to the ground electrode? If yes, please how do I protect the picoammeter so as not to damage... | common-pile/stackexchange_filtered |
Trigger valueChanges from patchValue with custom flags
There is a way that I can see custom flags in the event valueChanges of a FormGroup when I do a patchValue in an specific piece of code?
ex. I have to do a patchValue in an specific piece of code and the form is quite large, when I do that there is some stages that... | common-pile/stackexchange_filtered |
$\sum_{n=1}^\infty \frac{n+1}{\sqrt{n^3+1}}$convergent/divergent?
Please could someone help prove $$\sum_{n=1}^\infty \frac{n+1}{\sqrt{n^3+1}}$$ converges/diverges?
Thank you.
have you tried the condition convergence implies $a_n\Rightarrow 0$??
@PraphullaKoushik: Of course $a_n\to 0$ !! indeed $$...=\frac{1+\frac{1... | common-pile/stackexchange_filtered |
Moya/Alamofire - URL encoded params with same keys
I'm using Moya Swift framework for networking layer which is constructed on top of Alamofire.
Currently, I'm trying to send request with URL encoded parameters that have same keys.
i.e. http://some-site/request?param=v1¶m=v2¶m=v3
I've already tried to group the... | common-pile/stackexchange_filtered |
Filter list of objects using linq
I have an obejct in below manner
public class dettails
{
public string server { get; set; }
public string details1 { get; set; }
public string details2 { get; set; }
public string version { get; set; }
public dettails(string Server, stri... | common-pile/stackexchange_filtered |
React Native - What is the correct way to add an element to an array made with useState?
import { StatusBar } from "expo-status-bar";
import React from "react";
import { StyleSheet, Text, TouchableOpacity, View } from "react-native";
import { useState } from "react";
export default function App() {
const [item, setI... | common-pile/stackexchange_filtered |
HDCP broken over DisplayPort
While trying to watch a movie in HD on Amazon, I saw an error that my system doesn't support HDCP. It does. The topology:
Laptop (Lenovo T480) -> Docking Station -> DisplayPort 1.4 (2 of them) -> Monitors HDMI Input (via passive adapter cable)
This same configuration worked on a previous ... | common-pile/stackexchange_filtered |
LinkedList Insert Last
I am trying to insert element at the end of a linked list insertAtEnd(). When I debug the code I see a node(0,null) is being inserted as default in the beginning of the insertion. I think this is causing the problem while iterating through the list. Any suggestions on how fix this?
package com.... | common-pile/stackexchange_filtered |
jQuery CSS Font-Weight Normal Not Working
I've googled for the last two days and browsed this site, too, but found no similar problem. I am new to jQuery and hope this is no duplicate of other posts.
$(this).css("font-weight", "bold"); //this works
$(this).css({"font-weight":"bold"}); //this works as well
$(this).css(... | common-pile/stackexchange_filtered |
Is there an alternative .NET logging class to ILogger / EventLog that runs on Mac?
I am injecting an object in a Blazor app as a singleton that is constructed using ILogger;
public MessageBroker(ILogger<MessageBroker> logger, IOptions<MessageBrokerConfig> config)
The app (.NET Core 5.0) crashes when I navigate to that... | common-pile/stackexchange_filtered |
How do I execute a function on a page after navigating to it in Flutter?
I have a CupertinoDialogAction button in Flutter that navigates back to a page with a timer. I want to start the timer function of that page upon clicking the button. Is this possible?
Here is the current code that I have to create the dialog acti... | common-pile/stackexchange_filtered |
Cross Validation in an Imbalanced data set
What is the point of oversampling an imbalanced data set if the ratio of the classes needs to be preserved in Cross validation ? If I have 1000 rows in a data set where 800 rows belong to one class and 200 rows to another class, this would be considered an Imbalanced data set ... | common-pile/stackexchange_filtered |
Avoiding version numbers from elpa in my init.el file
How do I avoid hardcoding version numbers in my load paths when writing my init.el file?
Every time I go through and update my packages, I have to do the same in my init.el file.
It'd be great if I could do something like this:
(setq yas-snippet-dirs
'("~/.ema... | common-pile/stackexchange_filtered |
Add P values to comparisons within groups boxplot
I'm trying to create a boxplot which shows only the significant p values, within the groups for each bar in a box plot. For example here it would compare I1 and SI2 for the "fair", "good", "very good" etc
I've tried using the following code to achieve the above plot
li... | common-pile/stackexchange_filtered |
Why did you decide "against" using Erlang?
Have you actually "tried" (means programmed in, not just read an article on it) Erlang and decided against it for a project? If so, why? Also, if you have opted to go back to your old language, or to use another functional language like F#, Haskell, Clojure, Scala, or somethin... | common-pile/stackexchange_filtered |
Access get_the_title() from 'excerpt_length' filter
Is there a way to access the get_the_title() function from a excerpt_length filter?
For example, setting the excerpt length to be the same as the title:
function excerpt_length_same_as_title( $length ) {
$title_len = strlen(get_the_title());
return $ti... | common-pile/stackexchange_filtered |
Cannot select individual bones of armature appeneded from 2.80 into 2.79
for some strange reason I can't select bones in pose mode on an armature I've appended from 2.80 into 2.79. It looks like all of the bones are selected, however I can still rotate and move bones if selected in the outliner. Bones will not display ... | common-pile/stackexchange_filtered |
Symfony Forwarding / Retriving result from another controller returns nothing
I made two bundles. I have created an action method in each of their respective controllers.
I am trying to get result of A in B.
I have attempted to include the content of the view of what A generates in B but my include ends up missing a va... | common-pile/stackexchange_filtered |
Net torque on a surface in Stokes flow
I'm having difficulty seeing how the net torque on a surface in Stokes flow is non-zero.
For Stokes flow, we have $\nabla\cdot\sigma = 0$, where $\sigma$ is a symmetric stress tensor. The net torque on a surface $S$ is defined as
$$ L = \int_S f\times x~ ds,$$
where $f = \sigma\c... | common-pile/stackexchange_filtered |
Logging correlation id per route in Flask
I'm new to flask and want to read a custom correlation Id from the request and log it for tracing capabilities per route.
I have used similarly capable libraries in express and implementations in Java through HandlerInterceptor and setting extracted header values in MDC
I see s... | common-pile/stackexchange_filtered |
How to get a satisfactory ending to a Theme and Variations?
I have always wanted to compose a Theme and Variations. I got the idea yesterday of taking a Mozart theme and varying it. Now I have gotten even more specific. Even though the Turkish March is not my favorite Mozart piece(his 40th symphony is my favorite or if... | common-pile/stackexchange_filtered |
How to mathematically define a torus in a volume
Using the node editor and Cycles, how can I define a material that looks like a torus? This is useful in order to render a really smooth torus, without needing to a bazillion vertices.
This can be achieved by using the following node setup:
The formula which I impleme... | common-pile/stackexchange_filtered |
Is there a python wrapper for a FastLZ implementation
Looking to use FastLZ in Python, or something similar. Tried Google and didn't find anything. Wondering if there is another algorithm with similar performance available in Python?
What about using ctypes to call directly into fastlz.so (or .dll as the case may be)?... | common-pile/stackexchange_filtered |
What happens when a stock gets removed from the exchange I used to buy it?
I own stocks of Siemens Gamesa which I (foolishly) bought via the XETRA stock exchange instead of the more liquid Spanish Mercado Continuo. The stock has always received little attention and liquidity on XETRA, but some days ago it stopped getti... | common-pile/stackexchange_filtered |
Golang, csv.writer.write 20k rows into CSV freeze my PC
I have an issue on Linux Ubuntu with 1.4.2, which I am not sure how to sort:
func main() {
dir, _ := filepath.Abs(filepath.Dir(os.Args[0]))
outputFile, outputError := os.OpenFile(dir+"/out1.csv",
os.O_WRONLY|os.O_CREATE, 0666)
... | common-pile/stackexchange_filtered |
Fast reduction in $GF(2^{128})$ using x86 `PCLMULQDQ`
Modern x86 CPUs support the PCLMULQDQ instruction, which does an XOR-multiply of two 64-bit numbers instead of an add-multiply (i.e. typical arithmetic multiplication). This makes XOR-multiplication for $GF(2^{128})$ significantly faster.
However, it's only one hal... | common-pile/stackexchange_filtered |
When does (void)dealloc get called in an AppDelegate?
I understand that instance variables are released in dealloc (as shown below), but when exactly is it called? Are all instance variables released upon app close, or is there an accepted way for them to be deallocated individually as they become unneeded?
- (void)dea... | common-pile/stackexchange_filtered |
How to convert IAudioSessionControl to AudioSessionControl
I am using NAudio wrapper and I am trying mute the session when it's created.
MMDevice _device = _deviceEnum.GetDefaultAudioEndpoint(DataFlow.Render, Role.Multimedia);
_device.AudioSessionManager.OnSessionCreated += AudioSessionManager_OnSessionCreated;
privat... | common-pile/stackexchange_filtered |
Jquery seesaw effect
I am trying to do a seasaw effect with Jquery, but need some help with which plugin to use. I want the bar to go up and down and the box on the top to move with it. here is my code on JsFiddler: http://jsfiddle.net/semantic/LscQd/4/
Thanks
what do you mean up and down? do you have any similar exam... | common-pile/stackexchange_filtered |
Move everything from a k8s cluster to a new one
Is it possible to move every deployment on a running k8s cluster to another running k8s cluster?
I don't need to move cluster configurations, just every deployment, its pods, secrets, services, endpoints, pv/pvc, ingress etc. Everything that would be attached to a namespa... | common-pile/stackexchange_filtered |
Consuming OnPrem SignalR service from Azure App service/Function app
I am new to signalR. We have an existing on prem signalr service that we want to consume from Azure either app service or function app and finally that will be consumed by client applications hosted in another cloud provider. I have mostly seen exampl... | common-pile/stackexchange_filtered |
Invoking Twitter on Blackberry Z10 fails
I use the code below to invoke a Twitter share from a contextAction. The code works on our alpha device, but when I trigger the ActionItem on a Z10 device it fails.
I've tried to invoke it from QML, as well as from C++.
C++
void Sharer::shareTwitter(QString data) {
m_pInvoc... | common-pile/stackexchange_filtered |
Is going to Hokkaido, Japan advisable during Golden Week?
I've just learned that during my planned stay in Japan the Golden Week takes place. Having read loads of warnings we are thinking of going to Hokkaido during the festivals and see the beautiful nature.
Will it be even more crowded than the urban areas (Tokyo, Os... | common-pile/stackexchange_filtered |
Was there any genuine debate in the pre-1860 United States regarding Native American sovereignty?
The United States treated Native American tribes as sovereign states. Relations with various tribes were governed by a series of (often broken) treaties.
At the same time, however, general territorial claims in North Amer... | common-pile/stackexchange_filtered |
Why ng-template is not working in Angular?
We can't use *ngFor and *ngIf on the same element. A technique is to nest them. Almost everywhere it's OK, except in tables when we want to both loop over tr and print them conditionally.
As suggested here we should use <template>, or <ng-template> elements, so that it won't b... | common-pile/stackexchange_filtered |
stow: No packages to stow or unstow
The following command works:
% pwd
/home/ismail/.dotfiles/.common-dotfiles
% stow --target=/home/ismail/.dotfiles/test .
But the following command does not work:
stow --target=/home/ismail/.dotfiles/test --dir=/home/ismail/.dotfiles/.common-dotfiles
It gives error:
stow: No package... | common-pile/stackexchange_filtered |
After updating Ubuntu, the request began to hang when the listener is enabled in PhpStorm Xdebug
All settings are normal. I went through https://xdebug.org/wizard.php. phpize matched. I decided to reinstall it. My phpize with PHP 7.3 coincided with wizard. In phpinfo() Xdebug is displayed. In php -v as well. Even more,... | common-pile/stackexchange_filtered |
Blank image saving in yii2 response coming from ios
I have writing register api in Yii2 for ios.I am saving image in uploads folder and image name in database.All is working fine but image is empty when i open it.
My code is
$image_data = base64_decode($_POST['user_image']);
$file_name = Yii::getAlias('@imagepath') .'/... | common-pile/stackexchange_filtered |
How does C# run inside a Razor view without compilation?
I couldn't seem to find an answer to this on the web.
Since C# is a compiled language, how is code inside a Razor view able to execute without the developer having to build again?
For example, if I load a page with this code: @{string test = "123";}.
But then cha... | common-pile/stackexchange_filtered |
Cannot get WPF binding error trace information to write to log file configured in code
I'm trying to debug what I believe is a WPF binding issue that is only happening on one machine in production -- I cannot repro on a developer machine. In order to do this, I've been trying to get the binding trace information to ou... | common-pile/stackexchange_filtered |
SED inplace file change inside make - How?
sed inplace change on a file is not working inside Make object.
I want to replace a line in a file with sed called in a make object. But it does not seem to be working. How can I fix this?
change_generics:
ifeq ($(run_TESTNAME), diagnostics)
ifeq ($(run_TESTCASE), 1)
... | common-pile/stackexchange_filtered |
Debian battery capacity always at 100%
Problem: Both in /sys/class/power_supply/BAT0/capacity and the LXDE lxpanel battery monitor the battery capacity is always indicated as 100% even if it is not.
Software info:
OS: Debian Buster
Kernel: 4.19 (also tried backported 5.10 with same result)
intel-microcode, firmware-li... | common-pile/stackexchange_filtered |
Spring Boot Global Exception Handler does not Capture HttpMessageNotReadableException
I have a global exception handler, which works fine to capture exceptions thrown from my controller, service layer, or repository layer. However, it fails to capture exceptions that occur before entering my controller. Specifically, I... | common-pile/stackexchange_filtered |
Ajax Login that refresh only the logged div
Using Zoo Visitor ajax login or Ajax Auth, i manage well the ajax login witn EE.
When the user is logged, how to refresh only the div that contains: welcome user you are logged.
<div class="Welcome"><span>{username}</span> <a href="/logout">Logout</a></div><br />
He... | common-pile/stackexchange_filtered |
nginx. Deny two points anywhere in URL
I need configured nginx server, that him show 403-page if URL it contains two points (..) anywhere in URL. Example, if URL is "site.sit/index.php?log=../conf.php - web-server should detect an attempt to go to the directory above and bring in 403-messege.
I tried configed this ide... | common-pile/stackexchange_filtered |
`post_via_redirect` is deprecated and will be removed in Rails 5.1
I'm going through the Rails Tutorial Book and by Chapter 8, when running bin/rails test I got this message:
DEPRECATION WARNING: `post_via_redirect` is deprecated and will be removed in Rails 5.1. Please use follow_redirect! manually after the request ... | common-pile/stackexchange_filtered |
Write $\int_0 ^\frac{\pi}{2}\tan(x)^\alpha\mathrm dx$ as Euler integral.
Write given integrals in form of Euler integrals(Beta,Gamma)
$\int_0 ^\frac{\pi}{2}\tan(x)^\alpha \mathrm dx$ after $\tan x=t$ subst. I get
$\int_0^\infty t^\alpha(1+t^2)\mathrm dt$ which I don't know how convert to Betta or Gamma.
Answer in the b... | common-pile/stackexchange_filtered |
Can you stop a modal view from dismissing?
I have a view that uses a modal view with a page curl to allow for a username to be entered. This username is then verified with a web-based service to see if it is valid.
Everything works great until you enter an invalid username and click outside the modal view. This sti... | common-pile/stackexchange_filtered |
Is there an available open dataset containing the main science fields and disciplines?
I am working on an open-science platform where users can write projects about future papers.
When writing a project, they can add tags to it in order to help with its indexation. The related tags will be research fields, topics, and ... | common-pile/stackexchange_filtered |
How to Unit Test an MVC Controller with Three Dependencies, Using Moq
Caveat: I'm brand spanking new to Moq, Unit Testing with Moq, and TDD, generally.
I have a controller with three dependencies. Here is the Constructor (etc) to the SomethingController:
public class SomethingController : Controller
{
priva... | common-pile/stackexchange_filtered |
How do i check if a string has a number in it
For example:
var variable = `2`
if (variable == {insert checker}) {
console.log(`string`)
}
I want to know if there is something that would check if my variable is a number or not.
I need it so that i can check if the variable is formatted properly.
If something like thi... | common-pile/stackexchange_filtered |
If a timed automaton always terminates, does there exist a trace with a maximum length?
I have a theoretical question regarding timed automata and I would like to know if someone has already given an answer to it, since that would be useful for my research. So my question is the following:
Assume that you have a timed... | common-pile/stackexchange_filtered |
Cup product on flat fiber bundles vs cup product on the corresponding Serre spectral sequence
Let $F \rightarrow E \rightarrow B$ be a flat fiber bundle, $E, F, B$ closed manifolds. Consider $H^*(E, \mathbb{Q})$ and the corresponding Serre spectral sequence with isomorphism $$(*) \ \ \ H^n(E;\mathbb{Q}) \cong \bigoplus... | common-pile/stackexchange_filtered |
Detect if beautifulsoup found text on a page or not
soup.body.findAll(text='No Results Found')
basically I need something that goes like
if soup.body.findAll(text='No Results Found') does find this text:
print("URL doesn't exist")
really hope this isn't a stupid question but I'm not sure what to look up to find th... | common-pile/stackexchange_filtered |
Customizing EditModePanel in SharePoint 2013
Is there any way to edit the content shown in the EditModePanel in SharePoint 2013? I am editing a wiki that provides documentation for our company's application. As such, I am writing a lot of code snippets. I would like to place some extra buttons similar to the existing... | common-pile/stackexchange_filtered |
PowerShell Export-CSV format
I may be asking for too much. I've been tasked with writing a PowerShell script that will extract file share info. Here's an example scenario:
Start with a list of three servers.
Each server has five fixed disks.
Each fixed disk has ten shares.
Each share ACL lists fifteen groups with vario... | common-pile/stackexchange_filtered |
What is the difference between CONTAINS and WITHIN on Elasticsearch GeoShape queries?
I try to determine if a polygon (indexed in document) has common point with another shape like a circle.
The Elasticsearch documentation provides 4 types of relation:
INTERSECT ;
DISJOINCT ;
CONTAINS ;
WITHIN.
I try to find more inf... | common-pile/stackexchange_filtered |
A special way of handling shadows
I do some low poly pixel art on blender, and usually I draw the shadows directly on the UV texture ( It allows me to have a total freedom on the choice of the colors and more) the problem is that the shadows are fixed, I thought about 2 ways to make it dynamic, but I do not know if it'... | common-pile/stackexchange_filtered |
Capture Groups with Multiple Delimiters
In Javascript, I have ascii text lines, and each line can have multiple groups of $ delimited text, as shown below.
Input Text: In the quadratic polynomial $ax^2 + bx + c$, $a$ should not be $0$
I need a performant way of creating an array, which should have either words or the... | common-pile/stackexchange_filtered |
Template function pointer as a template parameter
I define a set of function templates:
template < typename type >
void foo ( type object )
{
// foo the object
}
template < typename type >
void bar ( type object )
{
// bar the object
}
template < typename type >
void baz ( type object )
{
// baz the ob... | common-pile/stackexchange_filtered |
Reading .FBX animations?
How would you read animations from a .fbx file? I'm using Java with OpenGL for this, but that's not too relevant for this question. I've looked around at several different sources and can't find any information on the formatting of .FBX files.
My model loader currently loads in Names, Indices, ... | common-pile/stackexchange_filtered |
specifying log4j in classpath
I believe this is how I can compile and run a file that uses external library. I'm using Windows.
top level directory
|
|-log4-1.2.17.jar
|-MyApp.java
|-com
|-foo
|-Bar.java
Compiling
javac -cp log4j-1.2.17.jar;. com\foo\Bar.java
javac -cp log4j-1.2.17.jar;"com\foo";. MyAp... | common-pile/stackexchange_filtered |
Parcel-Bundler how to add SVG like how react does it
I am using parcel with typescript and out the box everything just works,
Now when I try to include svg it didn't work,
This is because I needed to change in typescript
declare module "*.svg"
This allows me to now compile my typescript.
Now the other thing that doesn... | common-pile/stackexchange_filtered |
Making a staircase using HTML and CSS
Here is my answer to the question, which I think is quite inefficient considering its length:
$('document').ready(function() {
function makeEqual(blocks,dash) {
var n =blocks;
var widthSize = dash *10;
var i=0;
var equal = "";
var contentName = "";
for(i=0;i<n;i++) {
... | common-pile/stackexchange_filtered |
Having CMake build, but not install, an external project
I'm trying to use this external project in a CMake project of mine; the external project is also a CMake project.
Now, the external project produces static libraries and a bunch of headers; but - I don't want those to be installed anywhere, I just need them to bu... | common-pile/stackexchange_filtered |
How do I perform a redirect to the cart?
I'm trying to redirect the user to the cart from a custom page using the following code.
return new RedirectResponse(\Drupal::url('cart'));
Is there a function to go directly to the cartrce? If not, what is the route name for the cart page?
Since the question is saying custom ... | common-pile/stackexchange_filtered |
What is this flower
Blooms July-September in eastern Europe. Height up to 2.5m (8 feet), though this one is like 1 m only.
Looks like something from Heliopsis genus but not sure.
Yes, @Jurp is right, it is a mexican sunflower. I had two, grown from direct seeding into the ground (out of 10 seeds, only two succeeded).... | common-pile/stackexchange_filtered |
How does CSS inherit behave?
I have seen an example in MDN lesson about inheritance, and I can't understand why the third link's color is black? it should be blue, like a usual link, because the initial value supposes to be the default value!
Thank you for helping me.
Here is the code:
body {
color: green;
}
... | common-pile/stackexchange_filtered |
How to find out local coordinates relative to the parent without adding an object to it? Unity
I'm adding an object to the parent:
Transform target = Instantiate(_leftTargetPrefab, leftTargetPosition, Quaternion.identity);
target.SetParent(_ballsParent, false);
I'm trying to get the coordinates inside the parent, but ... | common-pile/stackexchange_filtered |
ERROR in ./src/components/navbar/HomeNav.js Module build failed - Webpack error
I have a react project that was created by CRA. Now i installed webpack because i wanted to add Jquery into config. Now I am getting this error after initializing webpack:
Could someone help me?
cli image
Webpack.config.js
const HtmlWeb... | common-pile/stackexchange_filtered |
Steady states to this generalized TASEP?
The standard setup of a Totally Asymmetric Simple Exclusion Process is pictured below:
We have a one-dimensional lattice of length $n$ populated with particles($p_1,p_2,p_3$ in this case) that hop to the right, but only if the neighboring cell contains no particle($p_1$ may hop... | common-pile/stackexchange_filtered |
Error : "Object reference not set to an instance of an object" when calling SOAP cilent in PHP
Here is the data from wsdl
<s:element name="CreateDraftLead">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="formId" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="FirstName" type="... | common-pile/stackexchange_filtered |
why doesn't this method of sorting raster objects work in R?
I'm working on a project that has large raster objects that are associated with variables and modified inside a function. I already sort the variables I need inside the function but I now want to return not just the sorted matrix of my variables but the raste... | common-pile/stackexchange_filtered |
Magento 2.3 same product with different custom options is not showing separate in the cart?
I am adding the same product in the cart with different custom options but the product is merging with the first one and item quantity increased in the cart only.
I want to show separate same products if they have different cust... | common-pile/stackexchange_filtered |
Capture Image of Specific area android CameraX
Is it possible to show a rectangle in the camera that captures the image only the rectangular part of the camera and skips all other parts?
I don't want to use any third-party library. I want to use simple CameraX.
You can take a picture of the whole FOV then crop it.
Th... | common-pile/stackexchange_filtered |
UIView is not changing correctly the color values SWIFT
I want my app to start with a color in the view but when I add the UIColor values to the ViewDidLoad I change the color to white! and not the red color I want to add. Here is my code, I have checked all the code but am kind of programming in swift so I don't find ... | common-pile/stackexchange_filtered |
improving performance of concurrent inserts on innodb with randomized primary
I was looking at my design for primary keys which is based on my own incrementing BIGINT key generator. It is designed to generate batches of 50 numbers for use on that process, but mostly it ends up generating surrogate keys in monotonic in... | common-pile/stackexchange_filtered |
SQL Server 2005 SELECT from multiple tables
How can I make this query to SELECT from 4 different tables and return the results ordered by date across all 4 tables ? (I need the latest 200 results ordered by date)
SELECT *
FROM [CPU_Benchmarks]
JOIN [CPU_Slugs] ON CPU_Benchmarks.Id = CPU_Slugs.BenchmarkId AND [Approve... | common-pile/stackexchange_filtered |
PUT request works with Postman but not with axios.put for Spring Security oAuth Resource Server backend
I have a vue frontend making requests to a spring boot backend configured as a resource server. I am having trouble configuring the backend in such a way that I can make requests from my frontend. The GET requests wo... | common-pile/stackexchange_filtered |
ssl_error_inappropriate_fallback_alert
Using Firefox got this error: "The server rejected the handshake because the client downgraded to a lower TLS version than the server supports. (Error code: ssl_error_inappropriate_fallback_alert)"
First fix attempt was to invoke about:config and set security. tls.version.min to... | common-pile/stackexchange_filtered |
Alfresco: does community edition provides document library functions
I have installed free Alfresco community edition and try to figure out what content management abilities are ready to me out-of-the-box.
I noticed I can create spaces and put content there, there is version control and some basic workflows but can I:... | common-pile/stackexchange_filtered |
Different font size when running emacs and emacsclient
In my .emacs file, I setup font size like:
(set-default-font "Source Code Pro 10")
If I run emacs as standalone program, i.e. emacs aFile.c, the font size looks correct.
But if I run emacs using emacsclient , i.e. like this:
#!/bin/bash
exec /usr/bin/emacsclient -... | common-pile/stackexchange_filtered |
Python3 loop over all lists and tuples
Let's say I have a dictionary with several lists and tuples, and I wanted to loop over all of the dictionary's items, and also loop over all of the dictionary's tuples and lists too (so as to just get the values and keywords) is there a way to do it other than just defining a bunc... | common-pile/stackexchange_filtered |
Varchar(65k) vs TEXT vs DB rows for Subscriptions
what is the best approach to handle subscriptions on a large scale, let's say each user can have up to 500 subscriptions.
1.VARCHAR(65K) - we store the 'ids' inside a string separated by commas, then we use LOCATE('asset_id') to find out if the user is subscribed or not... | common-pile/stackexchange_filtered |
Powershell - Confirmation before executing command in function
I put the following function in my powershell profile
(path from echo $profile, mine is like D:\C_Drive\Hardlink\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1)
function test {
[cmdletbinding(SupportsShouldProcess)]
ls
}
Set-Alias ggg ... | common-pile/stackexchange_filtered |
How to patch a dependency of a npm library?
I experienced a bug in a deep dependency of a library installed using the npm.
I fixed that bug in a fork and created a pull request on github.
I'm wondering how to share my fix with my co-workers.
I found this article but since it's not my dependency but a dependency of a l... | common-pile/stackexchange_filtered |
How to call Cygwin command from R
I need some help with calling Cygwin commands from R (I use R-Studio, I work with Windows 7). Today I installed Cygwin for the first time and connected with Dropbox via e.g. the following command:
./dropbox_uploader.sh upload "kokon.jpg"
My question is: how to construct the R command... | common-pile/stackexchange_filtered |
Stream Stream Join Spark Structure Streaming
Below is the use case for Spark Structure Streaming
Step 1:
StreamA = loaded from Kafka topicA containing event of type A
Step 2:
StreamB = loaded from Kafka topicB containing event of type B
Step 3:
JoinedStream = StreamA inner join StreamB on id
Step 4:
Insert matched data... | common-pile/stackexchange_filtered |
Find the unique value of K for which the system has infinitely many solutions
So I've been working through this linear algebra problem.
Find the unique value of k for which the following system has infinitely many solutions
\begin{align}
2x_1 + 2x_2 - x_3 + x_4 &= 10 \\
3x_1 + x_2 + x_3 - 2x_4 &= 1 \\
x_1 + 4x_2 - x_3 ... | common-pile/stackexchange_filtered |
Passing Stripe Client Intent Secret to Javascript
I need to pass the Stripe Client Intent secret to Javascript to execute some code. I am displaying it like this at the moment. But this is probably not a very secure way of passing the info.
<input type="hidden" id="intent_data_client_secret" value="{{ $intent_data_clie... | common-pile/stackexchange_filtered |
What types of motor should I use for a particular application?
I want to create an amateur wire looping machine with Arduino, that has similar functionality than this machine. I don't need the automatic wire feeding as for my purposes this part can be done manually. I just want to automate the wire loop creation proces... | common-pile/stackexchange_filtered |
how to rewrite a static URL using htacces
I'm sure my question is very simple for somebody that knows it, but I cant find any ways on the internet to rewrite a STATIC URL to make it cleaner, for example, I would like to have this:
1st (my link I would like to change)
www.mycoolsite.com/contact.php
To become this :
www.... | common-pile/stackexchange_filtered |
OData Binding expand parameters one to many relationship
Read multiple question here regarding this problem, but none of them helped.
I have the following table:
<Table id="table"
width="auto"
items="{
path: '/Master',
sorter: {
path: 'id',
descending: false
},
parameters: {
expand... | common-pile/stackexchange_filtered |
Java: 401 Unauthorized test case issue in Unit test case for spring boot, REST
everyone.
I have written a test case:
AppManagementApplicationTests.java
@Test
public void testWithAppNameAsNull() {
Input input = new Input();
// input type
String inputTrue = input.appNameAsNullOfAppInfo();
// response has... | common-pile/stackexchange_filtered |
Surrogate key often break BCNF?
CREATE TABLE issue (
ID varchar(36) not null,
title varchar(255),
issue_num varchar(255),
release_year year,
comic_language_code varchar(3),
edition varchar(255),
PRIMARY KEY (ID)
);
From the example SQL code above, it breaks BCNF if the ID is a surrogate ke... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.