text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
Animate view from top to center of screen
i am trying to move image view from top of screen to center or middle of the screen using translation animation i.e when activity is started image view is start moving from top of screen to middle or center of screen where top of image view space and bottom of image view space ... | common-pile/stackexchange_filtered |
how to initialize an array of std::vector?
As we all know, it's normal to initialize an array of int like this:
int intAry[] = {7, 8, 9};
So, I want to know, how can initialize an array of std::vector in the same way(just in the initial list):
typedef std::vector<int> type;
type vecAry[] = {vec1, vec2, vec3};
I know ... | common-pile/stackexchange_filtered |
Common resolution of singularities
Suppose that $X$ and $Y$ are varieties over a field $K$ of characteristic $0$.
If $X$ and $Y$ are birational, in the sense that there exist open dense $U\subset X$ and $V\subset Y$ which are isomorphic, can we then find a smooth variety $Z$ and maps $Z\rightarrow X$ and $Z\rightarrow ... | common-pile/stackexchange_filtered |
Bulk rename file(s) using Powershell from csv\txt file
As the title suggests I am trying to create a Powershell script to rename multiple files. The script refers to a csv file which contains a string in a csv file "column A". If the result is true then I would like to rename the file from "Column B".
Ive managed to ge... | common-pile/stackexchange_filtered |
Show a language is context-free
I'm asked to show that the set of songs of the form ABA^R is context-free(where A^R is A reversed). I don't know how to show a language is context-free.
We haven't studied specifically how to show that a language is context-free so it can't be too complicated. The only thing I can think... | common-pile/stackexchange_filtered |
In REST what is the effective approach to design pagination in nested resources?
Let us imagine we have a domain structure as follows
Ledger can have one or more logs, each logs has different types and ledger itself has a type.
Office ----< Department ---< Ledger (name, type) ---- < Logs (message, time)
We need to filt... | common-pile/stackexchange_filtered |
Why does this type error keep occurring?
I have an ocaml function in which I am pattern matching several cases. I keep getting a type error and I can't see how to deal with it. Any help would be appreciated. This is the error message I'm getting : "File "eval.ml", line 40, characters 18-35:
Error: This expression has t... | common-pile/stackexchange_filtered |
Using ncurses for basic GUI on a process started inside an init script
I have a custom written application that runs on a embedded setup (buildroot). My application has to run every time the target device boots up and so I wrote an init script to do this and it works fine. However, part of the application has a very ba... | common-pile/stackexchange_filtered |
How to assign the radius value for the dynamically created circle in paper.js
I want to draw a circle like in paint, if the mousedown means it takes the point and if dragging the mouse means the radius of the circle should be increased accordingly, can anyone help me
on mousedown log the point where the mouse was clic... | common-pile/stackexchange_filtered |
QGIS 3.38.3-Grenoble Points to path drawing lines that are not part of the track
I am working on a project for measuring the effort from our GPS tracks. The tracks were imported from .gpx files only with track_points.
When I use the Points to path for some tracks the lines are not drawn correctly, I need the lines to b... | common-pile/stackexchange_filtered |
Iterate through a table and then creating multiple rows after queries
I have 2 separate sheets
One called Roster
Another called tasks
What I need to do on a third sheet, is iterate over the Roster and for each row, look at the tasks table for a match Department AND Role. and create a new row containing a mix of data ... | common-pile/stackexchange_filtered |
AttributeError: 'PosixPath' object has no attribute 'write'
i am using the spectrographic library spectrographic library
to generate audio file from an image,
from the library documentation i execute this code:
python spectrographic.py --image ./source.png --min_freq 10000 --max_freq 20000 --duration 10 --save sound.wa... | common-pile/stackexchange_filtered |
Mapping array of object values to Interface type in Typescript
I have an array called dealers in a JSON document that contains several object as shown below.
"dealers" : [
{
"name" : "BMW Dealer",
"country" : "Belgium",
"code" : "123"
},
{
"name" : "Audi Dealer",
... | common-pile/stackexchange_filtered |
Text is not even between two cells when inserting an image and text in the same cell, ITextSharp
I have table with 3 columns and one row. In cell 1 I have a phrase and in cell 2, next to the phrase I have an Image and a text.
I am able to combine the image and the text in a same cell but. The problem I have now is tha... | common-pile/stackexchange_filtered |
How to forcibly close Process in c# after some period of time?
I got following code
System.Diagnostics.Process capp = new System.Diagnostics.Process();
capp.StartInfo.UseShellExecute = false;
capp.StartInfo.RedirectStandardOutput = true;
capp.StartInfo.RedirectStandardError = true;
capp.EnableRaisi... | common-pile/stackexchange_filtered |
Ignoring "wrong name on certificate" type error in Java ssl connection
I'm trying to set up a connection with an https url, but since it's still in testing, the url redirects to the test environment, causing a browser to prompt the user with a message saying roughly that the certificate is trusted, valid, but doesn't m... | common-pile/stackexchange_filtered |
Does a mod p mod q = a mod q mod p?
How to prove/disprove that (a mod p) mod q = (a mod q)mod p ?
Supposing $p < q$, we have 3 situations:
$a{\space}{\epsilon}{\space}[0, p)$, obviously the statement is true for this case
$a{\space}{\epsilon}{\space}[p, q)$
$a{\space}mod{\space}p{\space}mod{\space}q=(a-a/p)mod{\space... | common-pile/stackexchange_filtered |
Using magic to replicate modern technology
In a fantasy world that operates with magic, can wizards and mages use their abilities to replicate modern technology? For example either a flashlight or a modern aircraft? How would they accomplish this? I don't have boundaries for the magic of this world yet i just wanna kno... | common-pile/stackexchange_filtered |
Use TagHelper inside another TagHelper
I have build a custom tag helper that dynamicaly build a form with input tags.
Example
foreach(var foo in foos)
{
htmlOutput += $"<input asp-for='{foo.FieldName}' />";
}
then i want to model bind this, but my custom tag helper output the asp-for attribute instead of model bind it... | common-pile/stackexchange_filtered |
Why do i keep getting a run time error 6 overflow error message?
So I'm trying to essentially filter my data set in a certain way. There may be a better way of doing this and I may be over complicating things, so if that's the case, feel free to chime in any ideas. So, essentially I'm filtering my data set. However bas... | common-pile/stackexchange_filtered |
How to go through an array of url and parse it?
I have an array of URL's and I want to go to every page to parse some information. I do:
var numbers = ["1111", "2222", "3333"];
function parse(page){...
}
function set(page){
console.log(page);
window.location = page;
parse (page);
}
for (j=0,m = numbers.length; j<m; ... | common-pile/stackexchange_filtered |
Create discrete colorbar
I am trying to create a colormap from an image. This works fine using a continuous range but I'm trying to reduce the amount of colors by a discrete factor.
I have tried to do this using 10 colors via the following code but all I get is red?
import matplotlib.pyplot as plt
import matplotlib.col... | common-pile/stackexchange_filtered |
How to install NVIDIA GeForce 610M on Ubuntu 10.04 LTS
root@wruslanAC-bismillah-rtai:~/Downloads/Linux-Drivers-ACER-4752G/xf86-video-intel-2.14.0# uname -a
Linux wruslanAC-bismillah-rtai 2.6.32-122-rtai #rtai SMP Tue Jul 27 12:44:07 CDT 2010 i686 GNU/Linux
root@wruslanAC-bismillah-rtai:~/Downloads/Linux-Drivers-ACER-47... | common-pile/stackexchange_filtered |
Confusion regarding mathematical notations in Greedy and Gumble attack paper
The paper Greedy and Gumble attack defines the input space for the text clasifier in the following form, "We assume a model in the form of a conditional distribution, $p_m = (Y|X), X= x \in W^d$ where $W := ${$w_0,w_1,...w_m$} is a discrete s... | common-pile/stackexchange_filtered |
Setting border-radius in a container whose transform-style: preserve-3d does not work
I was reading a blog post as to CSS-3D. Somewhere it mentions the issue of setting the property transform-style: preserve-3d is not working as expected. He did not explain the reason, he just tried the other way to get around the issu... | common-pile/stackexchange_filtered |
PostgreSQL Point in time recovery not working
We have 2 PostgreSQL servers setup as master-slave.
I want to test below scenario
I took a base backup at master and then deleted a table and switched xlog file using command select pg_switch_xlog();. Then I stopped the master. Promoted slave as the master and deleted one... | common-pile/stackexchange_filtered |
Power Automate HTTP action with internal server error failing to route the flow to the "Run after failed" action
In Power Automate I have purposefully given a wrong password for the HTTP action, and I have configured a parallel branch which is configured to run if the HTTP action is failed/skipped/timed out. The retry ... | common-pile/stackexchange_filtered |
Fastest way to write data into the database
My usecase is such..
I have a redshift cluster where i upload data into (Basically, i use pandas to just replace the data everyday).The frequency of the upload is every hour and the number of records are close to 35k.(They keep increasing everyday)
Now, i wanted to know the q... | common-pile/stackexchange_filtered |
How to disable Spring autowiring for a certain bean?
There are some class in jar (external library), that uses Spring internally.
So library class has structure like a:
@Component
public class TestBean {
@Autowired
private TestDependency dependency;
...
}
And library provides API for constructing objects... | common-pile/stackexchange_filtered |
Word for small chat about the speakers well being
Is there a word or expression for a small chat that is about how people are? For having a bit of context, two characters, who meet up almost on a daily basis, ask each other how they are, before talking about more important subjects. I tried to search for a definite ans... | common-pile/stackexchange_filtered |
Checking if reducing iterator points to a valid element
I need to know if I can reduce the iterator and have a valid object. The below errors out because I reduce the iterator by 1 which doesn't exist. How can I know that so I don't get the error?
ticks.push_front(Tick(Vec3(0, 0, 5), 0));
ticks.push_front(Tick(Vec3(0, ... | common-pile/stackexchange_filtered |
Objective-C: ViewWillAppear runs before body of buttonTouchUpInside
I have a Storyboard iOS Application with 2 view controllers-
The first Controller has a UIButton with an outlet to the next view controller and a buttonTouchUpInside method.
At the moment, the second view controller's lifecycle begins before the body ... | common-pile/stackexchange_filtered |
SSRS sparkline with small difference in values
I have created a sparkline in SSRS. Since the values are small i get a straight line graph How do i improve the sensitivity of the graph.
the difference is like for every month
60.06
60.40
60.14
You need to look at the Sparkline Vertical Axis Properties.
Testing with dat... | common-pile/stackexchange_filtered |
SwiftUI doesn't update when variable is changed in appDelegate
I am trying to have the app check for whether notification access is available, then display ContentView if it is, or NotificationView if it isn't. What I have does this great, when it runs it checks and shows the right view. But, the NotificationView asks ... | common-pile/stackexchange_filtered |
How to connect from MySQL to Web Application
I have been trying to setup a local instance for a web application.
I am new to MySQL and I can't understand how to actually connect this database to
the actual web application sitting in the /var/www folder in my computer.
I have created a database in command line terminal... | common-pile/stackexchange_filtered |
Prove $\cot(x) +\cot(\frac{\pi}{3}+x) + \cot(\frac{2\pi}{3}+x) = \frac{3-9\tan^2x}{3\tan x-\tan^3x}$
As the title says. I tried simplifying the LHS but got:
$$\frac{\tan^2x+7\tan x- \sqrt{3}}{\tan^2x-\sqrt{3}}$$
What should I do next?
probably you made mistake somewhere
You can tell your simplification of the LHS mus... | common-pile/stackexchange_filtered |
Corrupt USB RAW filesystem showing wrong size
I am trying to fix this USB stick for a friend who ripped it out of their computer incorrectly resulting in the filesystem being destroyed to the max, and the device showing a capacity which is clearly wrong.
I brought up Testdisk to see if this would help me recover the p... | common-pile/stackexchange_filtered |
how to stop cp: overwrite './xxx' ? prompt
How can I stop the cp command from prompting to overwrite. I want to overwrite all the files with out having to keep going back to the terminal. As these are large files and take some time to complete.
I tried using the -f option. It still ask if I want to overwrite.
-f, ... | common-pile/stackexchange_filtered |
Create new tmux session from inside a tmux session
I'm writing a shell script that creates / attaches or switches to a given session, depending on whether one is inside tmux and the session exists.
I've got everything working great except for the case requiring the creation of a new tmux session from within a tmux sess... | common-pile/stackexchange_filtered |
exporting scipy array for speech data to ascii text readable in adobe audition
I read a 48khz, 16bit precision PCM speech data using wav read functionality
of scipy.signal.
Next, I perform these steps in order :
decimation -> normalisation
Decimation and normalisation is done using the following steps :
yiir = scipy.si... | common-pile/stackexchange_filtered |
Perpetual motion machines
Out of pure curiosity, after seeing a few really awesome perpetual motion machine ideas on youtube, I decided to try it out in blender as an exercise.
In addition, I thought, that would be cool to have a rigid body system driven by one of the perpetual motion ideas, instead of existing "motor"... | common-pile/stackexchange_filtered |
OpenLayers, VectorSource (WFS) adds same features again
I have some problems with OpenLayers and a WFS vector source. It is a clustered source and it works so to speak that it adds features as it should the first time. But when I pan the map it keeps adding the same features again and again. The WFS request seems to re... | common-pile/stackexchange_filtered |
Python Buffer for large string - better or worse?
I am using python to take a very large string (DNA sequences) and try to make a suffix tree out of it. My program gave a memory error after a long while of making nested objects, so I thought in order to increase performance, it might be useful to create buffers from t... | common-pile/stackexchange_filtered |
C# Reflection get value from ICollection
i'm struggling with a problem and I'm unable to find a solution.
In a certain moment of my code, a SqlException is thrown.
I have created a method using reflection to iterate through all the properties from any exception and perform some logic, but I'm having an issue with this... | common-pile/stackexchange_filtered |
"man" can't find man page after installing Crunch Wordlist Generator on Fedora 25
[root@unknowna08cfd77f899 crunch-3.6]# ls
charset.lst COPYING crunch crunch.1 crunch.c Makefile unicode_test.lst
[root@unknowna08cfd77f899 crunch-3.6]# make
make: Nothing to be done for 'all'.
[root@unknowna08cfd77f899... | common-pile/stackexchange_filtered |
Excel VBA store countifs for multiple or conditions
I am using VBA Countifs to get the count of certain values according to the condition. Now I need either condition to count.
The below code work for count "No Video" rows and Non "No video" rows. But I want to count "No Video" or "No Data" as single output and anothe... | common-pile/stackexchange_filtered |
Boot loop device as root file system
I created an ext4-filesystem on a loop device with all necessary files to boot with, e.g.:
/bin /boot /dev /lib /mnt /etc ...
Now I want to boot from the loop device as an image (let's say filesystem.img) with this filesystem.
Is it possible to make this loop device as the new roo... | common-pile/stackexchange_filtered |
C# App.Config - Not getting values for courses collection
I am attempting to read values from my config file into my program. I'm trying an example that I found online at http://www.bardev.com/2013/11/17/kickstart-c-custom-configuration/.
I've set up the config and the classes the same way that I see it on the site. I ... | common-pile/stackexchange_filtered |
Select input - Angular 2
I would like to know the number of elements (in this case option) has my select
<select class="form-control" required>
<option *ngFor="let numberDoor of car.doors" type="text">{{numberDoor .number}}</option>
</select>
That is the select but I would like to check first if it has more than a... | common-pile/stackexchange_filtered |
How to call asmx webservice for collection using BackboneJs
I hope someone could put me through a code to learn to call asmx webservices from backbone collection. The example i have put here is extremely simple
Collection
window["Persons"] = Backbone.Collection.extend({
model: Person,
url: "service.asm... | common-pile/stackexchange_filtered |
How do I return all the desired dictionary values within an IF statement in python? (discord.py)
I am trying to iterate through all the values in this JSON dictionary to retrieve whenever a user(s) has the desired date set as their birthday. However, it will only return the first value.
This is the dictionary I am refe... | common-pile/stackexchange_filtered |
How to extend Eclipse's Java editor to recognize my own elements
I want to add references to other elements inside javadoc. The javadoc should look similar to:
/**
* ...
* @my.tag SomeElement
*/
I want to reuse the existing Java editor inside Eclipse. Of course I can type above javadoc already, however I'd like to add... | common-pile/stackexchange_filtered |
Keyboard Few Keys Don't Work
I use Lubuntu.
Few keys of my keyboard stopped suddenly working.
I have tried rebooting , reinstalling and nothing helped.
Once I was able to to fix the problem with resetting the keyboard shortcuts.
However , after the lid off hibernate\sleep. the problem came back.
It never happened befor... | common-pile/stackexchange_filtered |
MVC 4 Web Api Controller does not have a default constructor?
Here is the trace:
<Error>
<Message>An error has occurred.</Message>
<ExceptionMessage>
Type 'ProjectName.Web.Api.Controllers.ContinentsController' does not have a default constructor
</ExceptionMessage>
<ExceptionType>System.ArgumentExce... | common-pile/stackexchange_filtered |
PayPal IPN Nightmares
I have setup an IPN listener. I throw this a test IPN from PayPal Developer - it says it's been sent successfully but then doesnt appear in ANY IPN history page... so I can't see if it's working or not.
Anyone have any ideas what I am doing wrong?
Simon
Try setting up the IPN on a test sandbox se... | common-pile/stackexchange_filtered |
What are typical max speeds for pro downhill races?
Looking videos like Red Bull Rampage or Mega Avalanche make me wonder about the speeds attained by those pro bikers. How fast they go in straight line sections?
The differences are quite significant from race to race - each track is different. Also events such as Ram... | common-pile/stackexchange_filtered |
Different build rules for different CUDA versions?
I'd like to specify in my CUDA code whether I'm compiling using CUDA build rule version 4.2 or CUDA build rule version 5.
Is there any macro used for such purpose?
Note: I know there is an option to specify whether current compilation process support certain architec... | common-pile/stackexchange_filtered |
Item address in array becomes too large and causes overflow
Item address in array becomes too large and causes overflow
struct payment {
char id[17];
char date[10];
int cost;
struct payment* next = NULL;
};
int main() {
payment* hash = (payment*) malloc(n * sizeof(payment));
// ....
functio... | common-pile/stackexchange_filtered |
What's ExtendedMessage on discord.js
I'm on v12 and after a lot of time I decided to start coding again but I ran into a problem I can't quite fix. At start I wanted to add a function to the Message class like so
Discord.Message.prototype.no = function(content){
this.channel.send(`:x: - ${content}`)
};
But after a w... | common-pile/stackexchange_filtered |
How to customize seam 3 credentials?
is there any way to customize seam 3 credentials object?
I need to add one more attribute to credentials (captcha). I tryed the following code:
@Named("credentials") @SessionScoped
public class Credentials extends CredentialsImpl {
private static final long serialVersionUID = -... | common-pile/stackexchange_filtered |
how to scrape data from a website using node
I am new in Node JS. from morning i am trying to scrape data from website https://www.pmkisan.gov.in/StateDist_Beneficiery.aspx
[![enter image description here][1]][1]
I want to store that date also in db table. Currently i am putting hard coded date. But how can i scrape th... | common-pile/stackexchange_filtered |
How to Return and consume custom struct object from C++ COM component into C# application
I have created a simple COM component in C++ and added a method like this
interface IMathControl : IDispatch{
HRESULT AddTwoNumbers(
[in] DWORD Number1,
[in] DWORD Number2,
... | common-pile/stackexchange_filtered |
Integration Awesomomium in Unity - RenderBuffer is an ambiguous reference between UnityEngine.RenderBuffer and AwesomiumMono.RenderBuffer
I have to integrate Awesomium in Unity 3d. I have went over the steps defined in
http://labs.awesomium.com/unity3d-integration-tutorial-part-1/
But when i have to drag the webTextur... | common-pile/stackexchange_filtered |
How to convert number into currency field?
I am trying to update currency field with number field in a Process builder. However i get an error data type mismatch. Is it possible to do type conversion here. Please let me know.
You need to Use TEXT() function for this.
It Converts a percent, number, date, date/time, or ... | common-pile/stackexchange_filtered |
Unfortunately Android WebService Has Stopped
i am new to android programming and have developed this app that takes in parameter in Kg's and converts it to grams using a web service but while running on emulator the app says "Unfortunately Android WebService Has Stopped" and the main problem in logcat being shown "can... | common-pile/stackexchange_filtered |
Medoo - Updating table row matching multiple field
I am using Medoo. the update below works fine with single field match. I want to update data if match with clientId and businessCity.
$database->update("clientInfo", array(
"businessName" => $_POST['businessName'],
"contactName" => $_POST['contactName'],
... | common-pile/stackexchange_filtered |
Bluetooth not getting paired
I am trying to pair one android device with another through the bluetooth. But its not getting paired,not even getting any error. Can anybody tell me what i am doing wrong here?
I have searched for the bluetooth devices and displayed that into the list. And now I am trying to pair the selec... | common-pile/stackexchange_filtered |
CSS - aplying border-radius to a gif
I am trying to style the gif by giving it border-radius. However ther gif is smaller than the column itself so border-radius is aplied only to the right side of the gif. Could anyone help me out in applying it to the left side aswell? I dont want to change the background-size: conta... | common-pile/stackexchange_filtered |
How to wait for all completionHandler blocks to complete before proceeding?
Have been using the Google Drive iOS SDK, and trying to build a list of folder contents, which includes the folder parent-folders & sub-folders.
The Google Drive iOS SDK stuff is simple enough, but given the sample code below, how do I wait for... | common-pile/stackexchange_filtered |
Unit test to check if debug.assert statement is called in code
I have some Assert statements to check some conditions for developers. So when developer is debugging if this condition fails then Assert should fail and warn developer.
I want to write Unit test to see if this assert gets called in debug mode and ignored i... | common-pile/stackexchange_filtered |
How to check threads timing?
I wrote an application which reads all lines in text files and measure times. I`m wondering what will be the time of whole block.
For example if I start 2 threads at the same time:
for (int i = 0; i < 2; i++) {
t[i] = new Threads(args[j], 2);
j++;
}
try {
Th... | common-pile/stackexchange_filtered |
Can I find out if anyone is within a boundary with a Intelligo Corpus Spell?
For example, could I use a Intelligo Corpus spell with a range of personal, duration of instant, a target of boundary, and a Intelligo Corpus base level of 5 to know if someone is within my boundary and their location relative to me?
The Lower... | common-pile/stackexchange_filtered |
Is it possible to see how many local notications are scheduled?
Is there a way to see how many local notifications have been scheduled?
For a long time I was under the impression that this would be possible (and I already found some 3rd party tools for that too), but I can't find any examples of how this could be done.... | common-pile/stackexchange_filtered |
How do I install swell-foop-3.11.1.tar.gz in Linux Mint Petra?
How do I install swell-foop-3.11.1.tar.gz in Linux Mint Petra?
I tried to install it with software manager but the game does not seem to work, so I downloaded swell-foop-3.11.1.tar.gz and extracted it, but I don't know how to install it.
Do I use terminal?... | common-pile/stackexchange_filtered |
why does css position:fixed not work for the dialog tag?
I'm starting to make a cookie banner. Simplifying my problem as much as possible, I pasted the following in the w3schools tryit editor:
<dialog open style="position:fixed;right:0;">
<button>Decline</button>
<button>Allow cookies</button>
</dialog>
expe... | common-pile/stackexchange_filtered |
Proper army (Canadian Air Cadet) squadron formation
(Note: I'm not in the army so feel free to correct me if my formation is wrong, but I will not be changing the question. I will change any terminology mistakes though, because I'm trying to avoid air-cadet-specific wording choices)
(Note: this follows the standards fo... | common-pile/stackexchange_filtered |
Missing file error (XMLStream.php) using XMPP
I want to send message using XMPP and I have used this code:
include 'XMPP.php';
#Use XMPPHP_Log::LEVEL_VERBOSE to get more logging for error reports
#If this doesn't work, are you running 64-bit PHP with < 5.2.6?
$conn = new XMPPHP_XMPP('hostname',5222, 'panelusername', '... | common-pile/stackexchange_filtered |
Haskell function type generalization
I am studying a Haskell course since I am total beginner. There is a task which I am not able to solve although I tried many times.
The task is to determine the most general type of following function:
f x _ False = x
f _ x y = maybe 42 (g y) x
providing we know that g :: a -... | common-pile/stackexchange_filtered |
Create Table As With
Im writing sql query and i have issue which i cannot fix.
I'm trying this:
CREATE TABLE a
AS
WITH cteCandidates (Miejscowosc, Ulica, NrDomu, KodPocztowy)
AS
(
SELECT Miejscowosc, Ulica, NrDomu, KodPocztowy
FROM Gimnazja
INTERSECT
SELECT Miejscowosc, Ulica, NrDomu, KodPocztowy
... | common-pile/stackexchange_filtered |
BeamDagRunner dependency packaging issues
I was attempting to run a TFX pipeline using BeamDagRunner where I was using Dataflow to both orchestrate pipeline and execute the tfx components. However I can't execute the components and my dataflow jobs fail saying setup.py not found. I believe what is happening is my compo... | common-pile/stackexchange_filtered |
Can not pass form data by JS to Python Flask
I need to send form input data to Python Flask without reloading page or submit button. I am using XMLHttpRequest Object for sending input data but I can not receive it from Python Flask.
Html part:
<form method="POST">
<div class="Enter">
<div class="M... | common-pile/stackexchange_filtered |
Get Activerecord list of associated objects from list of objects
I'm fairly new to Rails, and so I apologise if this is a daft question. I've tried looking around the web for the answer, but I'm not totally sure on the terminology and so I'm finding it really difficult to get an answer.
Basically, I have two models 'Gr... | common-pile/stackexchange_filtered |
Adding touchscreen driver via command line
I've installed Android x86 on my windows tablet, and all works apart from the touchscreen. I've found out how to add support to it, but only by using the source, which I don't really know how to, and it would take out WiFi, Ethernet, USB, etc. I was wondering if it is possible... | common-pile/stackexchange_filtered |
Prevent related record deletion, except when parent record is being deleted
I have two custom objects, call them Parent and Child. Child has a Lookup to Parent, via Parent__c. It is not a Master:Detail relation.
What pattern could I use to prevent deletion of a Child record by users, except in cases where the Parent re... | common-pile/stackexchange_filtered |
SQLite3 table not accepting INSERT INTO statements. The table is created, and so is the database, but nothing is passed into it
<?php
try
{
//open the database
$db = new PDO('sqlite:music.db');
$db->exec("DELETE from Music;");
$db->exec("INSERT INTO Music(Title, Author, ReleaseDate) VALU... | common-pile/stackexchange_filtered |
When golang does allocation for string to byte conversion
var testString = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
//var testString = "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ"
func BenchmarkHashing900000000(b *testing.B){
var bufByte = bytes.Buffer{}
for i := 0; i < b.N ; i++{
bufByte.WriteString(test... | common-pile/stackexchange_filtered |
perfoming right join with django queryset
I just need to apply right join with query set.
vdata = (VisVisitData.objects.
.select_related('vpvalue','vparameter')
.filter(vpvalue__vparameter=9,)
.values(name=F('vpvalue__parameter_value'),
visit_day=F('visit__visit_day'),
... | common-pile/stackexchange_filtered |
Swift Cannot convert value of type to expected argument type
override func viewDidLoad() {
super.viewDidLoad()
let ref = FIRDatabase.database().reference()
ref.observe(.value, with: {
snapshot in
self.label1.text = (snapshot.value as AnyObject)["label"] as! String
}, withCancel: {
error ... | common-pile/stackexchange_filtered |
XMLHttpRequest and fetch Limiting file upload size to 100mb
So I'm working on a simple project, it's a basic file upload system. Everything is working and running fine when I test the project locally, but whenever I run this program on my server, the file upload stops working at 100mb. It isn't speed, because at 99mb i... | common-pile/stackexchange_filtered |
Standard Blowfish in C#
My C++ program is using a standard blowfish.
My C# program is using the Blowfish encryption algorithm from here.
Both applications (TCP Clients) do the same thing: receive a packet, encrypt it and then send it back. If the server recognises the packet as normal - it sends another packet, otherwi... | common-pile/stackexchange_filtered |
How to tell if item was selected or menu dismissed from comboBoxWillDismiss in NSComboBox?
I have a dialog where changing the value in an NSComboBox triggers changes to other parts of the dialog. We apply the changes in controlTextDidEndEditing and comboBoxWillDismiss, but it turns out that if the user used the keyboar... | common-pile/stackexchange_filtered |
Does every manifold with boundary admit a flat metric?
There are several obstructions for a closed manifold $M$ admit a flat metric. for example Cartan-Hadamard Theorem implies the universal cover of $M$ must be $\mathbb R^n$. So if the manifold $M$ is allowed to have nonempty boundary and we do not put any restriction... | common-pile/stackexchange_filtered |
Java upload file (image specifically) from a JApplet to MS MVC page
I am going mad trying to find an example of file upload code in Java that will enable me to submit (POST) images to a URL from a JApplet in the same manner that an html form would post a multipart form. I have found loads of examples referencing servle... | common-pile/stackexchange_filtered |
How to make firefox run search in new tab rather than window from command line?
Basically i want
firefox.exe --new-tab --search apples
,but it's not how it works, it opens new window.
There seems to be no 'native' way of doing that.
However, how about firefox.exe --new-tab https://www.google.com/search?q=apples? You ... | common-pile/stackexchange_filtered |
Weird string appears in Sublime text filenames
Today when I started my work with Sublime Text I just discovered that a weird string appears in my filenames that is added dynamically by Sublime. It doesn't matter if it's a newly created project or saved file. (I have a paid license, however I don't think it's about that... | common-pile/stackexchange_filtered |
Name conflicts in Vaadin WidgetSet
I am working on integrating third party javascript libraries into a Vaadin WidgetSet for a Liferay portal. I am using Vaadin version 6.7.3 and Liferay 6.1.
There are, so far, two independent projects and each generates a differente jar file. The inherits element is the same in both th... | common-pile/stackexchange_filtered |
BDD - how to deal with specification of cross cutting features?
In BDD, how would you deal with the specification of cross cutting features?
Consider for example an application that allows working on a document. There are features like editing text or adding images to the document. Now there's an additional feature "C... | common-pile/stackexchange_filtered |
How can I write only certain lines of a file in Perl?
I am looking for a way to read an input file and print only select lines to an output file in Perl. The lines I want to print to the output file all begin with xxxx.xxxx.xxxx, where x is an alphanumeric character (the periods are periods, not wildcards). The lines d... | common-pile/stackexchange_filtered |
Swift NSMutableDictionary removeobject
I have a NSMutableDictionary I initiated like this
var data = NSMutableDictionary()
later I am trying to remove the value because I want to move every value up one key. This is the code I am doing
let buttonRow = sender.tag
let setCount = buttonRow + 1
var keyedPath: ... | common-pile/stackexchange_filtered |
Is 'jdbcType' necessary in a MyBatis resultMap?
When we use Mybatis , in <select> ...</select> statment I know we need set jdbcType beacuse the IN variable maybe null, but when I see the document of Mybatis, I found jdbcType in <result>...</result> under ResultMap. the document of the
jdbcTpe in <result>...</... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.