text
stringlengths
70
452k
dataset
stringclasses
2 values
Question on weights and minimal degree Edit: question has been changed from 'lexicographic' (cf. "D K"'s answer below) to 'degree' minimality. Let $x_1,x_2,x_3$ be indeterminates. Fix an integer $k> 3$. Consider the set $M$ of all monomials of the form $x_1^{i_1}.x_2^{i_2}.x_3^{i_3}$ where each $i_j\in \mathbb{N}$ wit...
common-pile/stackexchange_filtered
OCaml - Access Derived Functions from Another Module If a record is defined in a module in lib and it contains a deriving annotation that generates functions, how can those functions be used in another module? For example, the yaml/ppx_deriving_yaml opam module contains a [@@deriving yaml]. If [@@deriving yaml] is appl...
common-pile/stackexchange_filtered
Display Full Date in React Using Words in DatePicker I have a very simple problem. I wanted to display the full date words, something like Nov 22th 2020. Right now, i can only display the Month and the Date Pls check my codesandbox CLICK HERE <MuiPickersUtilsProvider utils={DateFnsUtils}> <DatePicker e...
common-pile/stackexchange_filtered
JSR 283 Query and Seaching I am in the early stage of a tagged document repository using Apache Jackrabbit. My initial exploration was with JSR 170. Upon learning that JSR 283 deprecates things like XPath, I began to look more at JSR 283. My (still quite ignorant) impression is that JSR 283 moved to a more SQL-centric ...
common-pile/stackexchange_filtered
F#: How do I use Map with a Collection (like Regex Matches)? Soo... F# no longer has IEnumerable.map_with_type... which is the way people were mapping over collections. How do I do that now? let urlPat = "href\\s*=\\s*(?:(?:\\\"(?<url>[^\\\"]*)\\\")|(?<url>[^\\s]* ))";; let urlRegex = new Regex(urlPat) let matches = ...
common-pile/stackexchange_filtered
Using external DC input to remove DC component from signal using differential-amplifier based circuit I want to use this Fully Differential Amplifier to design an OPAMP stage that is powered by +3.5 and -3.5 V DC power supplies, which will get a single-ended input signal that has AC and DC components. The stage should ...
common-pile/stackexchange_filtered
Binning in python pandas dataframe (not manually setting bins) I have a data frame. i want to bin values and append it to the new column. i can do it with pd.cut. But the thing is that, with pd.cut i set labels and bins manually. But, i want to just set step size (not bin number). i tried also np.linespace, np.arange b...
common-pile/stackexchange_filtered
Very slow MySQL query execution I have created a database in MySQL on Ubuntu to get an overview which comics I own and to get some details like the title of an issue, it's writers, editors, pencilers etc. No problems with the query itself but with the amount of time it takes to execute it. This is the query: select ...
common-pile/stackexchange_filtered
Kubernetes on AWS - managing virtual IPs I've just set-up a 3-node Kubernetes cluster on AWS using Kelsey's guide. I notice that K8 assigns a unique virtual IP address to each pod and service. In the guide, a AWS route table is used to map the virtual IPs to actual IPs. While this works, it seems quite primitive and is...
common-pile/stackexchange_filtered
How to pass the value by clicking UI button in unity How to pass the value by clicking UI button in unity i have 4 buttons in my scene so what i want to do means button A have 5 button B have 25 button C have 2 button D have 7 EXAMPLE: If i click the button A and Button B value 30 and how to detect the button is clicke...
common-pile/stackexchange_filtered
Autofill form with existing form values I am trying to get a form field to autofill with the same value as another field using Ninja Forms and Wordpress. I have looked at some solutions using JQuery but none of them seem to work. Please help me figure out what I am doing wrong. Here is a link to the form: https://optio...
common-pile/stackexchange_filtered
prevent from printing extra whitespace at the end of my line C++ so I'm taking in input by string input,word; while(getline(cin, input)) { stringstream ss; ss<<input while(ss >> word) ... and printing the stuff I want by cout <<word<<" "; However, when I do this it creates an extra whitespace at the end of ea...
common-pile/stackexchange_filtered
How to know a webpage last-modified date & time in Android Java How can I know the date a webpage last-modified using Android Java? or how I can request for If-Modified-Since: Allows a 304 Not Modified to be returned if content is unchanged using http headers? No, I think last-modified is open for anyone, otherw...
common-pile/stackexchange_filtered
Jolt Transformation - Replace all matches I am trying to get a JOLT transformation to work using https://jolt-demo.appspot.com/. I would like to replace all "master" values with "7.11". Input: { "build": [ { "number": "7.11.13898", "branchName": "branch1" }, { "number": "7.11.13896", ...
common-pile/stackexchange_filtered
does the depth of the prototype chain for an object affect the performance? Several days ago,I post a question here about class inheritance Then someone provide a link-- a clever script for class inheritance by John Resig. Then I try to use this script. But I found that object created by this script will have a very d...
common-pile/stackexchange_filtered
EventBus/PubSub vs (reactive extensions) RX with respect to code clarity in a single threaded application Currently, I am using an EventBus/PubSub architecture/pattern with Scala (and JavaFX) to implement a simple note organizing app (sort of like an Evernote client with some added mind mapping functionality) and I hav...
common-pile/stackexchange_filtered
When I post a request through rest template,It throws no suitable HttpMessageConverter HttpHeaders reqheaders= new HttpHeaders(); reqheaders.set(HttpHeaders.Accept,MediaType.Application_xml) reqheaders.set(HttpHeaders.Content_type,MediaType.Application Json) HttpEntity XML= new HttpEntity (json,reqheaders) ResponseEnti...
common-pile/stackexchange_filtered
How to make a body rotate about a line that does not go through its center of mass by applying external torques In space, is it possible to make a body rotate a point that does not go through its center of mass by applying external torques? Yes, of course you can do this. Try it at home: take a straight pole/broom h...
common-pile/stackexchange_filtered
Finding out when a td element shows ellipsis I have a table in which the cells show ellipsis if too long. I set overflow: hidden and text-overflow: ellipsis on the td elements. I now need to show a tooltip if the user hovers a cell that can't fit the entire text, but no tooltip on other cells. I can register an event t...
common-pile/stackexchange_filtered
How to debug WCF dataservice I have a written dataservice for my windowsphone application and i'm trying to savechanges to this dataservice. To do this i call BeginSaveChanges: Context.AddToMeasurements(temp); Context.BeginSaveChanges(SaveChangesOptions.Batch, SaveChangesComplete, Context); The callback of thi...
common-pile/stackexchange_filtered
How to translate multiple parameters to a PHP conditional if statement Let's say I have the following url: example.php?grab=1,3&something=... grab has two values, how can I translate that to a conditional if statement. For example, if count is a variable and you want to calculate if count is equal to one of the grab v...
common-pile/stackexchange_filtered
need some explanation in Earley algorithm I would be very glad if someone can make clear for me example mentioned ono wikipedia: http://en.wikipedia.org/wiki/Earley_algorithm consider grammar: P → S # the start rule S → S + M | M M → M * T | T T → number and input: 2 + 3 * 4 Earley algorithm works like this: (s...
common-pile/stackexchange_filtered
Call undefined method from module I have a module where I want to call a method not defined in that module. Is it possible? #module def foo(): print bar() #main from foo import foo def bar(): return "Foo bar" def main(): foo.foo() No, you cannot. Python looks up undefined names in the same module a fun...
common-pile/stackexchange_filtered
Excel Formula If x in column B then y, Z, K..etc in Column A So basically I have a spreadsheet, with a list of names in column B. For this list of names I want to assign text to add into the adjacent cell in column A. I have tried =IF((C:C="Name1", C:C="Name2"),"Text","") However, this formula gives an error without ...
common-pile/stackexchange_filtered
How can I compare $\log_2 3$ and $\log_3 5$ without using a calculator Compare $\log_2 3$ and $\log_3 5$ without using a calculator. I am not very good at math please explain it clearly What have you tried? Here's a good guide on how to ask a great question. What do you mean "compare"? I would think that you mean "...
common-pile/stackexchange_filtered
How to display text from a textfile in html with javascript I want to use a text file as source for the text on my website. I just can't display it where I want it to be I have already managed to read the text from the file, but now I'm stuck. This is my readFile function: <script> function readFile(input){ var x...
common-pile/stackexchange_filtered
User B can sudo to an user A (not root or group admin) I'm newbie, so please help me : In system , only user 'execute_prog'(not in group admin) has permission to execute a program ABC. Now, I want that user B can sudo as 'execute_prog' to execute this program. How can I do? Many thanks I think you may just be lookin...
common-pile/stackexchange_filtered
Custom Drawing on Mapbox Map Canvas I would like to be able to manually draw complex shapes on a mapbox map using the android sdk. I have inherited the map view class and overridden the ondraw event but unfortunately whatever I draw gets over drawn by the map itself. As an example I need to be able to draw polygons wi...
common-pile/stackexchange_filtered
Why is numeric_limits<int>::max() > numeric_limits<int>::infinity()? I was reading Setting an int to Infinity in C++. I understand that when one needs true infinity, one is supposed to use numeric_limits<float>::infinity(); I guess the rationale behind it is that usually integral types have no values designated for rep...
common-pile/stackexchange_filtered
Pin not showing on Mapkit - obj-c I'm a newbie to ios dev. I tried to add pin annotations on map using mapkit. However, after tried the most basic methods, it still didn't show up, either that's a simple pin, or a custom annotationview. There is no error message, it's just the pin won't show up in the map. Here's my co...
common-pile/stackexchange_filtered
getSymbols.google can only get data up to 9/5/2017 I used this function in quantmod tool box to download daily stock data. However, recently, I found that it can download data only up to 9/5. Does anyone else have this issue? Here are my codes: library(quantmod) getSymbols.google("AAPL", globalenv(), return.class = "...
common-pile/stackexchange_filtered
UnsupportedOperationException while removing elements from list I have two strings having comma separated values, say one having numbers from 1 to 10 and another having prime numbers. I want to remove prime numbers from numbers . Here's my code snippet: String numbers = "1,2,3,4,5,6,7,8,9,10"; String prime = "2,3,5...
common-pile/stackexchange_filtered
Object not found! wordpress I locally setup a wordpress project by using a backup and the sub pages are not working in the project only giving the error message below eg- when i tried to go to the about us page it gives the below error in the browser Object not found! The requested URL was not found on this server. If ...
common-pile/stackexchange_filtered
Push to Github Fails under Windows I was unable to push to github from the windows (DOS) command prompt but from bash it worked. If I ran git push origin master I got: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository ex...
common-pile/stackexchange_filtered
How to include display:block in css code that includes pseudo element 'before' I'm using the pseudo element :before in a side menu to incorporate an indented icon and text and wish to use display:block so that the links are easy to click. Adding .sidemenu-nav li a {display:block;} or slight variants of it just creates ...
common-pile/stackexchange_filtered
How to open first mail of user in user Lotus Notes mail file (nsf file) via Serverside Javascript When a user logons after then I would like to create a link to reach the first mail of user in XPages via ServerSide Javascript. When the user clicks the links which opens the first mail. is there any way to make this work...
common-pile/stackexchange_filtered
Can I license a program containing data from a video game? Let's say I want to release a program, written in Java, that is a sort of encyclopedia containing data about a game. This program would contain images from the game, obtained via screenshot, and some of them processed in a program like GIMP. The purpose of thes...
common-pile/stackexchange_filtered
React to git update I'm trying to create a language server with the language server protocol. I'm currently testing it on visual studio code. I can react to changes in the code by listening to the textdocument/didChange update. However, if I do a git pull in the directory I don't receive any notification of all the mod...
common-pile/stackexchange_filtered
Linq OR Operator? I have Dogs and Cats classes derived from Animal. I want to find the first black colored animal. I'm currently doing it as follows: Animal blackAnimal = dogs.FirstOrDefault(d => d.Color == "Black"); if (blackAnimal == null) { blackAnimal = cats.FirstOrDefault(c => c.Color == "Black"); } I want to...
common-pile/stackexchange_filtered
Is cp -au / cp --archive --update contradictory? I want to update a directory on a backup disk with new content added to the source, and of course rsync is too slow. cp -a does the trick but is a bulldozer; cp -u should leave existing files alone. However if I inspect what they're doing together (cp -auv) I see plenty ...
common-pile/stackexchange_filtered
Passing numpy string array to C using Swig my C program needs a char** input which I store in python as a numpy object array of strings. a = np.empty(2, dtype=object) a[0] = 'hi you' a[1] = 'goodbye' What is the correct way to pass this to my C program considering that numpy.i only defines typemaps for char* arrays? ...
common-pile/stackexchange_filtered
How to schedule a work in Azure Batch from Logic App? everyone. Is there any way to schedule a work on Azure Batch from Logic App? I would like to process a file by its insertion event in Blob Storage. If you know other methodologies to do that, I will appreciate your help. :-) Thank you! Welcome to Stack overflow :) ...
common-pile/stackexchange_filtered
every button click display panelGroup component(it contains 3 components) every button click display panelGroup component(it contains 3 components).how to do it using jsf or richfaces <h:form id="autoId"> <h:panelGroup id="pg1" columns="3" > <rich:autocomplete mode="client" minChars="1" autofill="f...
common-pile/stackexchange_filtered
Setup Weylus using USB tethering Being behind corporate firewall, I need to make Weylus works via USB Tethering. The README says it's possible but doe not provide step-by-step instruction. How can I have it working via USB Tethering? I don't know where to start. I'm on Ubuntu 20.10, Linux 5.8 Did it. Here are the step...
common-pile/stackexchange_filtered
Use a For Loop to alternate a set of ID's in a SQL query I have a query calculating some gambling statistics for just one 'team_id' but I would like to calculate for all team_id's to create reports/graphs. I do know some python and wondering if a "for loop" would be most efficient for this. I will be creating many que...
common-pile/stackexchange_filtered
Viewport width having no effect? Quick Overview of my Problem: I made a site for mobile, it looks great. Move on tablet it looks horrible. As in it's like 5x stretched out from left and right. Imagine your face stretched horizontally up to 4ft. Research and Possible Solution I had a feeling i could viewport. As I thoug...
common-pile/stackexchange_filtered
Why does LiquidHaskell fail to take guard into account? I am following the Liquid Haskell tutorial: http://ucsd-progsys.github.io/liquidhaskell-tutorial/04-poly.html and this example fails: module Test2 where import Data.Vector import Prelude hiding (length) vectorSum :: Vector Int -> Int vectorSum vec = go 0 0 wh...
common-pile/stackexchange_filtered
How can we apply 3 classes for 1 div at a time? I am trying to apply classes (.text1 .text2 .text3) for one div. How is it possible? In HTML, write it like this : <div class="text1 text2 text3"></div> Demonstration In Javascript, do this : myDiv.className = "text1 text2 text3"; Demonstration You can also use the ...
common-pile/stackexchange_filtered
I am getting "MongoError: The 'cursor' option is required, except for aggregate with the explain argument" error Due to mongodb version change, i am getting "MongoError: The 'cursor' option is required, except for aggregate with the explain argument" error. I've tried added cursor but still it is giving error. QosAggre...
common-pile/stackexchange_filtered
jquery drop down box font and alignment I am working on this site: http://gitastudents.com/~clarkb/group1/Students.html main css here: http://gitastudents.com/~clarkb/group1/style.css I am unable to change the font color and size on the drop downs. I would like the font to be white not the green that is on the rest of...
common-pile/stackexchange_filtered
Data Attribute Selectors and jQuery I have a group of items with a data attribute that contains an array of categories: <div class="result" data-categories="category-1, category-2, category-3" data-type="logo" data-preview="images/previews/preview.jpg"> I'm having trouble selecting elements WITHOUT the value that I'm ...
common-pile/stackexchange_filtered
Having problems with reagent atom and resert! function Hi guys I'm new at Clojure and ClojureScript... I'm filling out 2 select element ... What I wonna do is update the second select depending on what option the user choose in the first select. This is my code: (ns easy-recipe.components.calculate (:require [reagent...
common-pile/stackexchange_filtered
jquery chaining custom events and animations I need to chain events in jquery and i am not sure if i chain them correctly, because i want to trigger a custom event with a animation and if the animation is done i need to trigger another event. this code works, console.log('open is done!') is fired after 5000ms: $.when( ...
common-pile/stackexchange_filtered
How prove that $AB>AC$ in triangle $ABC$? Point $D$ is chosen inside $\triangle ABC$, and point $E$ on segment $BD$ such that $BD=CE$. Suppose $\angle ABD=\angle ECD=10^{\circ}$, $\angle BAD=40^{\circ}$, and $\angle CED=60^{\circ}$.How prove that $AB>AC$? I have no idea how to do this, can this be proved with simple ge...
common-pile/stackexchange_filtered
Trigger Clarification Trigger Code: I have created custom field called Expected items in the order object trigger updateorderstatus on OrderItem (after insert,after update) { list<order> updateorder = new list<order>(); set<id>updateorderid = new set<id>(); if(trigger.isinsert) { ...
common-pile/stackexchange_filtered
Is there any way to get Client Id and Secret of UPS without providing payment information We’re creating a UPS connector and wanted to test UPS APIs. Is there a way to get ClientID and secrets without payment details or providing test credit card details to explore sandbox APIs.
common-pile/stackexchange_filtered
How do I read a text file and store it in an array in C programming (values seperated by a comma)? I need help with getting datapoints, x and y values from a txt file into two arrays. Currently, the text file consists of 5 lines like: 0.116 0.118 0.12 0.122 0.124 This is my code: #include <stdio.h> #include <stdlib.h> ...
common-pile/stackexchange_filtered
Android: build native GUI app with NDK? independent from the fact if it makes sense or not, if it is a good way to create Android apps or not: for (educational/personal/whatever) reasons I want to create an Android app with graphical user interface in C++ using the NDK. What I found so far are some information about th...
common-pile/stackexchange_filtered
How to change html (jade template) to use *.min js and css in production? I'm using Grunt to compile jade templates to html, uglify/concat js and minimize/concat css. During development I use the combination of connect and watch to serve my front-end and pick up changes automatically. In this I also use the 'source' js...
common-pile/stackexchange_filtered
How to insert multiple list in SQL Server 2008 using c#? My table contains 10 columns. I need to insert a list using c#. I have stored the details of multiple members, for each count its has to insert the consecutive details in the same row. if (members.Count >= 1) { foreach (Members myList in member...
common-pile/stackexchange_filtered
Can native signers of one sign language identify other sign languages? I understand multiple spoken languages. If I hear someone speak (or see a writing in) English, I recognize that it's English not Latvian and interpret the sounds (or letters) as it's appropriate for the English language. Is that just as easy in sign...
common-pile/stackexchange_filtered
Wordpress website stops working for a particular IP after updating a page Weirdest problem ever. I use wordpress (last version) for my website and I use WP-bakery page builder. It has worked without problems for years. All my plugins are updated to the latest version, except WP bakery page builder because i'm not payin...
common-pile/stackexchange_filtered
Image sequence training with CNN and RNN I'm making my first steps learning Deep Learning. I am trying to do Activity Recognition from images sequences (frames) of videos. As a result i am facing a problem with the training procedure. Firstly i need to determine the architecture of my images folders: Making Food -> p1 ...
common-pile/stackexchange_filtered
MySQL : quote or no quote implies different result with double I think I found a MySQL bug. I have a table : CREATE TABLE `bank` ( `id` int(10) unsigned NOT NULL, `operation_date` date NOT NULL, `value_date` date NOT NULL, `expense` double(10,2) DEFAULT NULL, `income` double(10,2) DEFAULT NULL, `label` var...
common-pile/stackexchange_filtered
How do you convert between polar coordinates and cartesian coordinates assuming north is zero radians? I've been trying to make a simple physics engine for games. I am well aware that this is re-inventing the wheel but it's more of a learning exercise than anything else. I never expect it to be as complete as box2d for...
common-pile/stackexchange_filtered
Why is direct money transfer to other people accounts so expensive? I see from a similar question that in the US and Canada wire transfer are even more expensive than in Europe where I live. But I am interested in the situation in Europe even though their cost is strange even outside Europe, after all they use the same...
common-pile/stackexchange_filtered
Solving Project Euler #12 with Matlab I am trying to solve Problem #12 of Project Euler with Matlab and this is what I came up with to find the number of divisors of a given number: function [Divisors] = ND(n) p = primes(n); %returns a row vector containing all the prime numbers less than or equal to n i = 1; count = 0...
common-pile/stackexchange_filtered
Keep navigation on the top after background image I am really aware how to keep the navigation bar on the top by inserting position:fixed;top:0; in CSS. But, what I want is different from this one. What I want is when I insert a new div (for image only) before navigation bar. So, when I open the web, I'd like to see th...
common-pile/stackexchange_filtered
Why is the Trinity a Trinity? It's well established and accepted by most Christians that God is triune, consisting of the Father, Son, and Holy Spirit. However, while talking with a friend earlier about Wisdom (from Proverbs), I mentioned that Wisdom could almost be considered a fourth Person. This suddenly made me wo...
common-pile/stackexchange_filtered
Cython C-level interface of package: *.pxd files are not found In a nutshell I try to compile a cython extension called extension2 that cimports a file extension from a self-created package. When building extension2, I get the error that extension.pxd is not found though this file is exactly at the sepcified path. Det...
common-pile/stackexchange_filtered
How to flip by Y venn diagramm? (venn.js) I have simple venn diagramm built with d3.js and venn.js: https://jsfiddle.net/rvuf1z5o/ var sets = [ {sets: ['F'], size: 3}, {sets: ['G'], size: 3}, {sets: ['C'], size: 3}, {sets: ['F','G'], size: 1}, {sets: ['F','C'], size: 1}, {sets: ['G','C'], size: ...
common-pile/stackexchange_filtered
Dynamic UITableView with different number of images I want to develop a feed view with dynamic UITableViewCell having different number of images (upto 4). Refer the attached screenshot. Any library or help will be appreciated. Use a UITableViewCell per feed item, and a child UICollectionView to display the images. T...
common-pile/stackexchange_filtered
react library testing are not updating my screen I recently bumped into this weird problem. I am using react-testing-library and am trying to make a simple update. Whenever the user types in the correct name, they will be awarded 10 points and it will be logged on the screen. However, currently the new score doesn't ge...
common-pile/stackexchange_filtered
python How to sort list of string by digit=string how to sort following python list nlist = [ "494=Deploy\00000001.inx", "19=Deploy\0000000144.exe", "2=Deploy\00000001_index.dat", "9=Deploy\0000001b_index.bin", "1=Deploy\00000001_index.bin", "7=Deploy\00000019_index.bin", "2=Deploy\00000001_Onedata.dat", "19=Deploy\000...
common-pile/stackexchange_filtered
svg images and making the background transparent How do you declare the background of an svg script image to be transparent? Please be more specific. In what kind of document is it inserted? What's the parent element? What is an "svg script image"? If you're viewing in a browser then the background should be transpar...
common-pile/stackexchange_filtered
JDBC driver not found in Eclipse, but found when running standalone I am trying to acces PostgreSQL via jdbc. The code below does not run from Eclipse, but it does run from the command line. Any suggestion how I can run it as well from Eclipse? The postgresql-9.4.1211.jar is in the CLASSPATH, which is in a quite differ...
common-pile/stackexchange_filtered
Swift keyPath vs protocol I understand the basic idea of keyPaths but I do not understand its use cases. If you already know the type of the instance, you can access their properties easily. If you don’t, protocol already supports read-only, read-write properties. Can someone explain me what I am missing? Anything that...
common-pile/stackexchange_filtered
Returning the value of a class member pointer variable using 'this' pointer My scenario is , I want to return the value of class member variable m_ptr using this pointer. What I have tried is , #include <iostream> using namespace std; class Test{ int *m_ptr; public: Test():m_ptr(nullptr){ ...
common-pile/stackexchange_filtered
How to get range of rows using spark in Cassandra I have a table in cassandra whose structure is like this CREATE TABLE dmp.Table ( pid text PRIMARY KEY, day_count map<text, int>, first_seen map<text, timestamp>, last_seen map<text, timestamp>, usage_count map<text, int> } Now I'm trying to query it using spark-c...
common-pile/stackexchange_filtered
Shortest path algorithm that passes through at least one of a particular type of vertex I have a graph with about 6500 vertices, some of which have the label 'c'. I need to devise an algorithm that finds the shortest path between any two of the vertices that includes AT LEAST ONE of these 'c' vertices. This is simple e...
common-pile/stackexchange_filtered
ScrollIntoView dont work properly if Scroll size is bigger than browser Window - Selenium? I have a Div which scroll is bigger than window (see image attached below), when I do scrollIntoView (written below 2 codes both gives same behaviour ) Div1 element , it is not working properly instead it Scroll to element but in...
common-pile/stackexchange_filtered
Issues running two PL2303 USB to Serial converters on a Raspberry Pi Zero W I'm having a bit of a problem building a little network-connected UPS monitor. I have two USB to Serial adapters of the pl2303 kind. Latest Raspbian and I'm running them off a tiny powered USB hub just to be safe. I set the port parameters on b...
common-pile/stackexchange_filtered
US Resident Buy and Sell outide of USA- Do I owe tax other than the income tax? I am a resident of USA. I purchase goods online from a supplier in the Philippines. My buyer is also based in the Philippines and is responsible for pick up from the supplier. Therefore, the inventory movement is from the supplier to the...
common-pile/stackexchange_filtered
How to place one widget at top of the screen and other at the bottom in flutter? import 'package:flutter/material.dart'; class Example extends StatelessWidget { const Example({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(), body: Li...
common-pile/stackexchange_filtered
d3.js code from javascript console to html page I'm learning to use d3.js with a tutorial. The following code is entered in the javascript console (Chrome) and it creates a line graph. How do now take this code and make it run in an html page? var lineData = [ { "x": 1, "y": 5}, { "x": 20, "y": 20}, ...
common-pile/stackexchange_filtered
What mechanism is available to rotate a metal piece on another metal piece? I am trying to find some type of mechanism where I can have a smooth but not too stiff rotation between two metal pieces. I was thinking of putting a shoulder screw through the pieces (the pieces will be side by side) and a nut at the end. A re...
common-pile/stackexchange_filtered
Can anyone please explain what is geometric center of a graph $f(x)$? Can anyone please explain what is geometric center of a graph $f(x)$ ? What will be the geometric center of $f(x) = x^2$ for all $x \in [0 , 3]$? I do not think so. Focus does not exist for every graph. I think geometric center has some different ...
common-pile/stackexchange_filtered
File encoding error in Python 3.6 with "UTF8" charset I receive an XML file with incoming orders encoded in UTF8: <?xml version="1.0" encoding="UTF-8"?> <Beleg xmlns="http://www.mauve.eu/MauveXml/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mauve.eu/MauveXml/2...
common-pile/stackexchange_filtered
Drupal: setting up a svn I'm setting up for the first time SVN for my Drupal website. (It is not connected to the Drupal repository but to synch the remote and local versions of my websites with a 3rd party SVN hosting service) The question is simple: I would prefer to not complicate too much the server path to my web...
common-pile/stackexchange_filtered
How can I add fastlane builds to Xcode's archive organizer? After setting up fastlane with mostly default settings I got an automated build and upload to iTunes Connect using gym's export_method: "app-store". This uploads files to iTunes connect, and leaves in the current directory *.app.dSYM.zip and *.ipa files. Howev...
common-pile/stackexchange_filtered
How can I send mail using python when there is two factor authentication(eg: outlook + duo mobile for otp) I have tried sending mail using smtp using the guide given here : https://realpython.com/python-send-email/ but the program was stuck without giving any output or error. After a bit of debugging I found that it wa...
common-pile/stackexchange_filtered
TwinCat Run Mode failing to start with adswarning 4131 I am trying to start a twincat project on my pc in order to debug it. I've disabled the EtherCAT device and isolated a CPU on my windows 10 with an 8-core ADM processor. After trying to start the run mode, I get a fatal error on the target system. With following me...
common-pile/stackexchange_filtered
How can I change the name of a windows service? I have a windows service application developed in C#. The same service needs to be run with different config files. To run on these on the same machine I would need to change the name of the service. I can create multiple copies of the solution, but not sure how to change...
common-pile/stackexchange_filtered
Start cmd process call in a .NET MVC web project on IIS web server (not working!) Hi fellow software developers So I need to start a CMD process in my .NET MVC web project. This is my function that I pass the command I need to call: private void ExecuteCommandSync(string command) { System.Diagnostic...
common-pile/stackexchange_filtered
How to find identity and inverse for the group $(\mathbb{Z}, \ast)$, where $a \ast b = a+b-ab$ I'm trying to figure out how to find identity and inverse for the group defined as $(\mathbb{Z}, \ast)$, where $a \ast b = a+b-ab$? I've found that closure and the associative property are both true, but I don't know where to...
common-pile/stackexchange_filtered
if object return empty, no div I only want to display the image div if the object returns an image, right now I'm outputting the image in my <div class="image">, however, if there's no image, then the <div class="image"> should not output: <div class="image"> <img src="{{item.logo}}" alt="{{item.title}}" title="{{i...
common-pile/stackexchange_filtered
Showing Overall Description on button click I have a UI where more than three div's are there which has the data's with different ids but with the common button called as "Read".I have displayed the messages in which I have kept the message body as a tiny(15) on this Read button it show me the entire body of the messag...
common-pile/stackexchange_filtered
Derivative of $c^TX^TXc$ with respect to $X$ What is the derivative of $c^TX^TXc$ with respect to $X$? Here, all the entries are real and $X$ is a matrix while $c$ is a vector. I keep getting confused with the left and right multiplication. Hence, if I have these answers in both these angles, I might remember this bett...
common-pile/stackexchange_filtered
Confucian Messianism, Mencius, etc Just picked up Popular Religious Movements and Heterodox Sects in Chinese History by Hubert Seiwert (In collaboration with Ma Xisha) and was kind of caught aback by the idea of Confucian messianism. Here's what the book says: Google Books Page 20 of the book: One of these elements, w...
common-pile/stackexchange_filtered
SMSLib doesn't send SMS with E226 3G modem I would like to know if someone knows why I can't send sms with my E226 3g modem. I have configured the example class, I setted modem model, PIN and Smsc number. public class SendMessage { public void doIt() throws Exception { OutboundNotification outboundNotif...
common-pile/stackexchange_filtered