text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
ejabberd compile error
I'm a huge erlang noob, and while compiling ejabberd, I get this error:
make[1]: Entering directory `/usr/src/ejabberd-2.0.5/src/mod_muc'
/usr/local/bin/erlc -W -I .. -pz .. -o .. mod_muc_room.erl
Function: '-process_admin_items_set/4-fun-0-'/2
./mod_muc_room.erl:none: internal error in v3_codege... | common-pile/stackexchange_filtered |
What does "%:" (percent colon) mean in C?
In one of my courses I've been given this cryptic c code.
%:define BBRACE (
%:define BRACEE )
%:define CCURLY_BRACE {
%:define CURLY_BRACEE }
%:define SEMICOLON ;
%:define COMMA ,
int main BBRACE int argc COMMA char *argv<::> BRACEE CCURLY_BRACE return 1^2^3^4^5^6^7 SEMICOLON C... | common-pile/stackexchange_filtered |
Haskell (Aeson) : How to construct a record from JSON with additional values
I have a record that I want to construct with some values from a JSON string as well as some additionally provided values.
For example - given the following record:
data MyRecord = MyRecord { a :: String, b :: Int, c :: String }
I want do def... | common-pile/stackexchange_filtered |
Facebook Connect Integration with Spree Ecommerce
I am working on an existing rails application that is built on Spree version 0.11.0 and Rails 2.3.8. I am trying to integrate facebook connect but apparently because of spree application architecture I am not having a lot of success with facebooker and other plugins whi... | common-pile/stackexchange_filtered |
Is my translation of unless into propositional logic correct?
I have the following sentences:
I won't go the library unless I need a book
p: I will go the library
q: I need a book
I replaced unless with if not as follows:
I won't go the library if I don't need a book
Then: $\lnot q \rightarrow p$ is my translation co... | common-pile/stackexchange_filtered |
magento 2.4.2 shows /index of instead of site
magento fresh install shows index of instead of site.
Os : ubuntu 20.04
php:7.4
after your url add pub path like :- localhost/urlname/pub/
From Magento 2.4.2 need to setup virtual host.
is virtual host neccessary
already tried using pub path
I finally found an answe... | common-pile/stackexchange_filtered |
Must the variadic arguments be the second parameter in a variadic function?
Debugging this code, I find the parameter "size" in the first position of my array structure.
Must the variadic arguments of a variadic function always be passed as the second parameter? In the code below, I commented my fix, which consists in ... | common-pile/stackexchange_filtered |
Defined function raises TypeError when tried to be accessed after module.exports
So I followed a udemy course on JS and during the making of an app he writes the code that is written bellow. When I come to run the code an error is raised saying "TypeError: this.validate is not a function". I tried different ways of exp... | common-pile/stackexchange_filtered |
How to find the shortest path between two nodes within array of objects?
I have 10,000+ data (Users) coming from an API in JSON format and given two nodes (i.e. 2 Users), I would like to find the shortest path between two Users.
When I realized that to find the shortest path, I could use Dijkstra's algorithm, but then ... | common-pile/stackexchange_filtered |
VS Code C++ issue
I tried to compile a cpp file using VScode, but I have got an issue. The tdm-gcc have already added to environment variable. I tried to reboot my computer but it didn't work. Here is the error.
error:
/usr/bin/bash: D:TDM-GCC-64bing++.exe: command not found
The terminal process terminated with exit co... | common-pile/stackexchange_filtered |
CDI + JSF does not work
I created a simple Maven project in Eclipse.
My container is Glassfish 4.
First I added the following dependencies:
pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://mave... | common-pile/stackexchange_filtered |
I am attempting to move from mediainfo CLI to pymediainfo but I am having a difficult time getting the correct information
I use the MediaInfo CLI to write up some basic information from groups of video files. I currently use a batch file that runs a MediaInfo CLI template. Here is a template (I call it "template.txt')... | common-pile/stackexchange_filtered |
Same DbContext shared for multiple HTTP requests
I'm receiving the following exception when two concurrent requests are sent to my ASP.NET MVC web application. I simulated this by logging in from desktop and mobile at the same time.
There is already an open DataReader associated with this Command which
must be close... | common-pile/stackexchange_filtered |
Can I have a Interface in method?
I know that that on can have a class declaration in a method of class.
Eg. We can have anonymous class declaration for event handling in a method body.
But I want to know that same way can I have Interface declaration in a method in a class.
What is use of that?
After reading fastco... | common-pile/stackexchange_filtered |
Get the value of the variable url to iframe
I would like to help see the example:
http://www.siteexemple.com/pagina.php?url=http://www.variablevalue.com
In my php: pagina.php I have the iframe:
<Iframe src = "" width = "100%" height = "100%" scrolling = "no" frameborder = "0" allowFullScreen = "true"> </ iframe>
Now... | common-pile/stackexchange_filtered |
Where do I put custom capistrano recipes?
I'm trying to manage database.yml using capistrano, following this post:
http://www.simonecarletti.com/blog/2009/06/capistrano-and-database-yml/
I'm running into trouble including the code used in the post above. I've named this file cap_database.rb but I don't where to save it... | common-pile/stackexchange_filtered |
SQL find bad combination
I have the following table
item_id dep_id value_id
67 20 3
67 20 2
68 20 8
68 20 8
68 20 8
97 16 3
I need to make sure that the table has the same v... | common-pile/stackexchange_filtered |
Can you splice a single object property in an array of objects?
I'm wondering if it's possible to mutate a specific object property in an array of objects using the splice method.
For example
const array = [
{ name: 'Object 1', body: 'Hello world'},
{ name: 'Object 2', body: 'Bye Pluto'}
]
array.splice(1, 1, /... | common-pile/stackexchange_filtered |
Nested div is centered horizontally and vertically in React but not in HTML
Ideally the parent-div should be visible like following (I confirmed it by running index.html file attached at the end)
But when I am running my react application, I am seeing the parent-div as:
I am not sure why is this happening. I could no... | common-pile/stackexchange_filtered |
JPA HIbernate - ManyToOne mapping - insert if not exists
I have the below 2 classes(entities).
Person Class
@Entity
@Table(name = "person")
public class Person {
@Id
@GeneratedValue(strategy= GenerationType.SEQUENCE,
generator="person_id_seq")
@SequenceGenerator(name="person_id_seq", sequenceName="person_id_s... | common-pile/stackexchange_filtered |
Comma usage and maintain succinctness
I have started my book with the words "The day I was born, Granny died." On reading all the comma rules this doesn't seem quite right. Should the comma be replaced by a semicolon? I wanted the first lines to be impactful, but perhaps I should just replace the line with something li... | common-pile/stackexchange_filtered |
$\exp$ of a stopping time is integrable
Let $B_t$ be a real Brownian motion started from zero. For $a> 0$, define $$\sigma_a:= \inf_{t\geq 0}~\{t: B_t-t\leq -a\}.$$
Then do we have $$E \left[\exp\left(\frac{\sigma_a}{2}\right)\right]<\infty~?$$
The motivation is the second part of this exercise. I have already done par... | common-pile/stackexchange_filtered |
Define a relation $ \sim$ on $\mathbb{R}^2 \setminus (0,0)$ by $(a,b)\sim (c,d)$ if there is some real number x with $a=xc$ and $b=xd$.
Define a relation $ \sim$ on $\mathbb{R}^2 \setminus (0,0)$ by $(a,b)\sim (c,d)$ if there is some real number $x$ with $a=xc$ and $b=xd$.
I need to prove the relation is an equivale... | common-pile/stackexchange_filtered |
Usage of input:hidden selector
Let's say we have two div with display:none style attribute like this :
<div id="dv_1" style="display:none;">
DIV - 1
<br />
<input type="radio" name="dv_1_radio_gender" value="male" checked="checked" /> Male
<input type="radio" name="dv_1_radio_gender" value="female" /> ... | common-pile/stackexchange_filtered |
Docker Desktop 3.1.0 installation issue - access is denied
I am trying to install Docker Desktop to my Windows 10 Professional Build 19042 and receive an installation error even when trying to install as 'Administrator'.
Error: Component CommunityInstaller.ServiceAction failed: Failed to start service: Access is denied... | common-pile/stackexchange_filtered |
Getting a SyntaxError when running babel from babel-runtime/helpers/typeof-react-element.js (_symbol."for")?
Project Structure (src contains react component classes using jsx syntax):
root
- src/
- package.json
- webpack.config.js
Command I'm running: babel src --out-dir lib
And here is the error
SyntaxError: src/node... | common-pile/stackexchange_filtered |
Building a Word document containing two different tables
I am trying to generate a Word document with two different tables inside it. For this purpose I have two similar methods where I am passing word document reference and data object and table to the similar methods.
I am looking to make single generic method. So i... | common-pile/stackexchange_filtered |
Question closed due to incorrect assumptions
I asked this question:
Extension causes 404 Error from the Admin Panel
Several people decided that my problems were caused by the patch SUPEE-6285, and they marked my question as a duplicate.
However my problems weren't caused by this patch (they seem to have been caused by ... | common-pile/stackexchange_filtered |
how to save a subimage in Rust?
I got a subimage from an image in Rust. Though the document seems to list no way to save a subimage conveniently. Do I have to read each pixel to write to a buffer?
Here follows my code in Playground.
fn main() {
f();
}
fn f(){
let (w,h)=(100,100);
for (x,y) in &[(100 as u32,200... | common-pile/stackexchange_filtered |
Django no reverse match for view details
im stuck on show details for object, no matter i do (following all guides on internet )
still getting reverse not match error
views.py
def val_details(request, id):
val = Validator.objects.get(id=id)
print(f'vali: {val}')
context = dict(val=val)
return render(... | common-pile/stackexchange_filtered |
WCF - Error: The message version of the outgoing message (Soap12 (http://www.w3.org/2003/05/soap-envelope)
1) I have WCF service deployed on local IIS 5.1:
Interface:
[OperationContract(Action = Service.RequestAction, ReplyAction = Service.ReplyAction)]
Message SetData(Message requestXml);
Implementation:
public const... | common-pile/stackexchange_filtered |
jQuery + CSS | Horizontal Scroll
I'm trying to make my div scroll horizontally. My div is 100%, and I want the entire div size (100%) to scroll over to reveal more of the div. Like so:
I already have buttons that tells JS to scroll +150%, but I doesn't work properly.
Now, heres the situation, my div is 100%, but, with... | common-pile/stackexchange_filtered |
Drawing lines on PDF with Python
Is there a way to draw lines on a PDF file, by giving it coordinates of the start and end points? I have tried PyFPDF but cannot find much documentation about implementing it.
try reportlab with canvas.line(378,723,580,723) https://www.blog.pythonlibrary.org/2010/03/08/a-simple-step-by... | common-pile/stackexchange_filtered |
I want my button, when pressed, it will be able to switch to another layout
How can I launch another layout when button is pressed?
I followed some of the web's solution, but it doesn't seem to help me out.
This was answered here: http://stackoverflow.com/questions/4186021/how-to-start-a-new-activity-when-click-on-bu... | common-pile/stackexchange_filtered |
How to duplicate strings and attach the numeric suffix using formulas on Google Spreadsheet?
I have strings with each line in one cell. The number after # means the number of items.
Is it possible on Google Spreadsheet to write a formula that allows you to process like B cell if you input strings in A cell like the at... | common-pile/stackexchange_filtered |
What does vim ` char mean?
I am looking around to try and understand a line of code via latest snipMate plugin source.
The statement appears at the autoload section of the plugin
for expr in s:snippet_filenames(scope,escape(a:trigger, "*[]?{}`'$|#%"))
for path in g:snipMate.snippet_dirs
for file in s:Gl... | common-pile/stackexchange_filtered |
trying to run a loop in java with below code who gives output a - b c- d but getting error package Sytem does not found?
getting two error when trying to compile programm using commandline
error-Shuffle1.java:24 error:package System does not exist
System.out.print("b c")
Shuffle1.java:31 error:package System doe... | common-pile/stackexchange_filtered |
Problems with model.destroy()
Whenever I do a model.destroy() with Backbone, it tries to do a DELETE request on the following URL:
http://localhost:8000/api/v1/item/?format=json
Since I am doing a destroy on a model, I would expect that the ID of the model should be passed, so the URL to do a DELETE request on would b... | common-pile/stackexchange_filtered |
Importing a PostGIS geometry type into Python as a geometry type from Shapely?
So I have a situation where I have a ton of Linestrings of a broken up route, where I need to Union them together using Shapely's LineMerge or Union OR PostGIS ST_Union.
My idea right now is to use Shapely to import the Linestrings as Geomet... | common-pile/stackexchange_filtered |
Executing external command using exclamation mark in MATLAB
In order to execute an asynchronous external command I currently use following snippet:
command = strcat('start python "', obj.path, 'scriptname.py"');
system(command);
Unfortunately, the above command is not portable, since 'start' is a windows only command.... | common-pile/stackexchange_filtered |
favicon.ico results in 404 error in flask app
I found a lot of entries in my logfile, which indicate that somebody tried to load /favicon.ico and similar files
GET - /favicon.ico
GET - /apple-touch-icon.png
GET - /apple-touch-icon-precomposed.png
I read a lot about this issue online, but I can't get rid of it. Here is... | common-pile/stackexchange_filtered |
12.10 Lost power, boots to grub rescue>
boot-repair http://paste.ubuntu.com/1458019/
To my novice eyes it appears that the /sda SSD is the problem. File system "unknown". /sdb is my home drive and appears intact.
Is there anything I can do to attempt recovery on the SSD?
=> Grub2 (v2.00) is installed in the MBR of /de... | common-pile/stackexchange_filtered |
Display image as response from Express with Node.js API to Angularjs
I tried to save the image on server directory and saved it's path in mongodb. When client (Angularjs) request details , Express has to send an array of objects in which one object property will send the image and rest of the object properties are data... | common-pile/stackexchange_filtered |
Add same DefaultMutableTreeNode to 2 different DefaultMutableTreeNode
I have a DefaultMutableTreeNode("birds") which has n number of children. Now I want to add this node to 2 different parents DefaultMutableTreeNode("animals") & DefaultMutableTreeNodes("animals2").
But as the add or insert method of DefaultMutableTr... | common-pile/stackexchange_filtered |
Newsletter sign up on footer showing white text on Macs
I'm getting reports of when someone types in their info into the newsletter sign up in the footer on this site: https://www.hawaiianmanagement.com/ that the text is invisible or white. I'm wondering if anyone knows how I can make it black or if it's just a MAC iss... | common-pile/stackexchange_filtered |
"I you already know": is this proper English?
I found this sentence in Terry Pratchett's "Interesting Times": (*)
“Great wizard,” said Butterfly, bowing. “I you already know, but these two are Lotus Blossom and Three Yoked Oxen, other members of our cadre. [...]”
It's certainly not the usual word order, but there's c... | common-pile/stackexchange_filtered |
Redshift: Incremental products ordered across marketplaces
I have a table, 'Customer_Orders' that basically lists the products purchased by customers across marketplaces (UK, DE, US etc). Here's a short overview of the table:
Cust_id
marketplace
product
1
UK
A
1
UK
B
1
DE
A
1
US
A
1
US
C
From the ab... | common-pile/stackexchange_filtered |
Floating DIV in bottom of the page (it shouldn't scroll after footer DIV)
div{
position:fixed;
bottom:0px;
height:20px;
}
in above code explains that will always keep the DIV in bottom. but i need to avoid the scroll after the footer. i meant need to set boundary for the floating div.
Can you help me?
[Edite... | common-pile/stackexchange_filtered |
Constant VPN issues on El Capitan
I installed an el capitan update about two weeks ago, and since then I've had constant issues connecting my macbook pro to my work VPN.
I can connect ok, but after only a few minutes (usually-- it can be as long as 45 min and as short as about 2 minutes) the VPN dies off.
Tailing the ... | common-pile/stackexchange_filtered |
WPF Binding: Expression evaluation
I have a listbox in markup and a detail control. The listbox template defines a details button for each element. If this button is pressed a dependency property in the element's datasource is set to Visiblility == Visible. As long as I do have a selected item everything is OK. But if ... | common-pile/stackexchange_filtered |
Why at the school not at school
In the following sentence why is it at the school not at school?
They don't have to do their homework today because it's a holiday at the school.
Because the school, as an institution, has declared it a holiday. So no one is there. Which means the holiday isn't occurring on school g... | common-pile/stackexchange_filtered |
Broaden off-topic migration flags
When was the last time the migration selection was updated ?
It's lacking programmers, code review, software rec and user experience SE.
And I'm not a huge reviewer, but I never had to migrate to tex or stats...
SO has a terrible history of migrations to Programmers. Way, way too ma... | common-pile/stackexchange_filtered |
How to Draw a shape or bitmap into another Bitmap , Java/android
I want to draw a shape(many circles particularly) into a Specific Bitmap.
I have never used canvas / 2D graphs etc.
Anyone that can point me to the right direction to do what i want.?
#
As i see it i create a Drawable put the bitmap in it then "canvas-it"... | common-pile/stackexchange_filtered |
Declaring a script from a PartialView only once
I have a Razor PartialView that works with Metro-UI-style tiles. It's a very simple PartialView that allows me to display tiles bound to a ViewModel, really nothing spectacular.
Since it's not used in all pages, I don't want to include the jQuery block on every page load.... | common-pile/stackexchange_filtered |
Prediction on mixed effect models: what to do with random effects?
Let's consider this hypothetical dataset:
set.seed(12345)
num.subjects <- 10
dose <- rep(c(1,10,50,100), num.subjects)
subject <- rep(1:num.subjects, each=4)
group <- rep(1:2, each=num.subjects/2*4)
response <- dose*dose/10 * group + rnorm(length(dos... | common-pile/stackexchange_filtered |
SQL joins to display data without a foreign key to identify the data to retrieve
I am trying to retrieve data of a trainer's clients from the client table that only applies to the user from the personal_trainer table. However, in the client table there is no foreign key to identify the trainer.
I have created two othe... | common-pile/stackexchange_filtered |
Standard way to map handler-thrown exceptions to IActionResults in ASP.NET Core 8 Web API?
The API controllers in my new ASP.NET Core 8 Web API use MediatR to dispatch requests to handlers. Handlers may throw exceptions; when that happens, the controllers appear to be returning generic status 500 regardless of the exce... | common-pile/stackexchange_filtered |
Posting data with angularjs v 1.3
I have a web api 2.0 application and I have to post data of a form.. Here my js code:
(function (angular) {
var public_area = angular.module("public-area", ['ngResource']);
public_area.factory("MyService", function ($resource) {
return {
my_controller: $res... | common-pile/stackexchange_filtered |
Laravel 5.5 Geocoder
I wanted to use this package for geocoding in Laravel. I have added it to providers and published the config, but I am getting trouble setting it up to work.
try {
$location = Geocoder::geocode('<IP_ADDRESS>')->get();
return $location;
} catch (\Exception $e) {
retu... | common-pile/stackexchange_filtered |
Calling ASM x64 function from C (double), GAS
I've got this really simple functions in ASM and C. I want to call ASM function from C code for double. I think return value from ASM should be stored in XMM0, but what actually happen is that my return value is taken from rax or if rax isn't set, I get 1.
C code:
#include... | common-pile/stackexchange_filtered |
Find date difference based on condition in R
I want to find the date Difference based condition.
Dataframe is like
Order_Id ReceivedDate DueDate (Y-m-d)
---------------------------------------
E1625 N/A 2021-05-10
E8655 2021-01-03 2021-01-03
E1360 2021-03-23 2021-03-15
E2347 ... | common-pile/stackexchange_filtered |
Convert from auto_ptr to normal pointer
I have some third party libraries that generate and return an auto_ptr. However, I really want to use some STL containers.
So I'm guessing one way would be to convert
auto_ptr <int> ptr = some_library_call ();
into a regular c++ pointer. Will the following work?
int* myptr =... | common-pile/stackexchange_filtered |
How to download a file using curl
I'm on mac OS X and can't figure out how to download a file from a URL via the command line. It's from a static page so I thought copying the download link and then using curl would do the trick but it's not.
I referenced this StackOverflow question but that didn't work. I also refer... | common-pile/stackexchange_filtered |
wlan0 No such device found
I m new to linux.
I changed my wifi password and was trying to reconnect to it but I failed when I type
ifconfig wlan0
I get error message. something like no such device found
Welcome to U&L please edit by adding the output of iwconfig and lspci -knn | grep Net -A2 and specify your linux di... | common-pile/stackexchange_filtered |
Rubik's Cube solving API in Java
I'm currently building a robot which solves a Rubik's Cube. I use an Android phone to scan the cube and I want to solve it in Android too. Is there a library which can solve a Rubik's Cube?
Thanks in advance
See: http://stackoverflow.com/questions/1354949/easiest-to-code-algorithm-for-... | common-pile/stackexchange_filtered |
Top aligned label in WidgetKit extension
I am trying to create a WidgetKit extension for one of my apps.
I would like to have a top-aligned label and some dynamic content.
The problem is that all content is centred.
I want the label to be at the top and the container should fill the rest of the space. Within that conta... | common-pile/stackexchange_filtered |
How big would a mat multiply be for it to be more effecient to use th gpu
So I've been messing around with OpenCL kernels and I'm trying to understand GPU acceleration a bit better and I'm curious to find out how one would find the point at which it would be more computationally efficient to use GPU acceleration in pla... | common-pile/stackexchange_filtered |
create new db in mysql with php syntax
I am trying to create a new db called testDB2, below is my code.
Once running the script all I am getting an error on line 7
Fatal error: Call to undefined function mysqlquery() in /home/admin/domains/domain.com.au/public_html/db_createdb.php on line 7
This is my code
<?
$sql = ... | common-pile/stackexchange_filtered |
Storybook react-native error in while running on windows not able to make proper stories.require.js file
I have implemented the storybook(v 6.5) in react-native in my root project
when i run the script to run storybook on my device which is andriod and ios
the file which is created IN .ondevice folder is story.require.... | common-pile/stackexchange_filtered |
Query dimension in Star Schema
During report creation, I've included data from only dimensions (no measures), and records from them are cross joined. Can you query only dimensions from the Star Schema in a report? For example in the following simple SSAS cube, can I query Subject and Student to see how many students we... | common-pile/stackexchange_filtered |
Displaying integer values on SliderRow
I'm trying display the integer values instead of float. I tried the following:
section.append(SliderRow() {
$0.title = "Number of items"
$0.tag = "numberOfItems"
$0.minimumValue = 1
$0.maximumValue = 10
$0.steps = 10
$0.value = 5... | common-pile/stackexchange_filtered |
Converting counts to individual observations in r
I have a data set that looks as follows
df <- data.frame( name = c("a", "b", "c"),
judgement1= c(5, 0, NA),
judgement2= c(1, 1, NA),
judgement3= c(2, 1, NA))
I want to reshape the dataframe to look like this
# name ... | common-pile/stackexchange_filtered |
Ubuntu 19.10 Upgrade
I upgraded my pc fomr 19.04 to ubuntu 19.10 i ran the upgrade unattended at night but when i checked the PC in the morning the power was interrupted and the PC was shutdown . I don't know when the power was interrupted .
But after swithching on the PC it Booted normally but would not show the logi... | common-pile/stackexchange_filtered |
Saving out multiple files in Windows Store
I have a windows store app that uses an internal file library hosted in localstorage. Is there anyway to export these en masse without needing to make the user choose a location / file name for each file?
I know I can zip them up and export the zip, but I was hoping to allow ... | common-pile/stackexchange_filtered |
LMEM for low number of data points?
I have DNA and RNA counts of 4 time points with 4 replicates. I want to quantitate the change in RNA copy number relative to DNA copy number for each gene in the genome. I especially interested to test if there is a linear relationship between these two. I am thinking of using linear... | common-pile/stackexchange_filtered |
how to fix this code in lua for splash in a scrapy splash project?
I have a [link] (https://www.psychologytoday.com/us/therapists/35801) that I want to submit a contact form for. I know I have to use 3rd party services because there is a recaptcha but I can't seem to load the script. I keep getting a table error instea... | common-pile/stackexchange_filtered |
Adding subdomain constraint
I currently have the following line in route.rb file
resources :pages, only: %i[index show create]
Moving forward I want my users to access pages#show through a dedicated subdomain. So I've added the following line:
constraints subdomain: 'pages' do
get '/:id' => 'pages#show'
end
(I'm pla... | common-pile/stackexchange_filtered |
Proper location for installing packages?
What is the 'correct' location(s) to install packages/software in a Unix file system? I realize it will vary somewhat depending on the distribution you're using and the package you're installing, but I can't seem to find any tutorials that aid in deciding where it makes sense to... | common-pile/stackexchange_filtered |
Implementing Background notification handler on flutter one signal sdk
I am trying to implement the background notification handler in flutter for the one signal flutter sdk. What I am trying to do is call a method in flutter side when a background notification arrives like in the OneSignal docs suggests https://docume... | common-pile/stackexchange_filtered |
Why I am not able to push a config file into logstash path using Nodejs ? The below is my code for pushing a file from localserver to logstash server
I am first downloading a config file locally then I have to push that file into logstash server in the path - /etc/logstash/conf.d
const deployLogstash = function(req , ... | common-pile/stackexchange_filtered |
How does Jira "resolved" field (or its alias name "resolutionDate") get set?
I am new to Jira and I have just joined a new team that is using Jira. We have a problem with our Jira Service Desk project's workflow. It looks like some months ago when an issue was moved to Resolved status, the Jira workflow successfully se... | common-pile/stackexchange_filtered |
jQuery append - what am I doing wrong?
I am just struggling beyond belief with jQuery. I have looked at dozens of ways of adding a new input field but keep getting stuck right at the beginning. I don't see how this could be simpler.
<div class="container">
<p>If you click on me, I will disappexxxxxxar.</p>
<p id="thiso... | common-pile/stackexchange_filtered |
Insertion function for linklist is not working
My code:
def __init__(self):
self.data = ""
self.NextPointer = -1
def InsertLinkList(LinkList, StartPointer, FreePointer):
if FreePointer < len(LinkList):
data = int(input("Enter the data"))
newNode = FreePointer
LinkList[FreePointer... | common-pile/stackexchange_filtered |
Excel VBA - convert range with pictures and buttons to HTML
I wrote a function that turns an excel range into HTML for further use in an email body. The problem is that I now want to add pictures and buttons to the range and have it then taken over into the email body.
How I can get excel to address objects in the rang... | common-pile/stackexchange_filtered |
Twitter Bootstrap 3: Aligning columns to container content
I know how to solve this issue using CSS that overrides Bootstrap's compiled CSS, but it seems to me this alignment issue is such a common use case that I must have misunderstood how to use the Bootstrap framework. (First time with Bootstrap.)
Case: The column... | common-pile/stackexchange_filtered |
EntityObject 5.x and Self Tracking Entities 5.x
Does anyone know the if/when/where behind the self-tracking entities template for the latest version of EF? Our team would like to move forward to be able to take advantage of the performance improvements that the EF team has documented, but we haven't been able to find a... | common-pile/stackexchange_filtered |
How to update JSON data type column in MySQL 5.7.10?
I have started using MySQL 5.7.10 recently and I am liking the native JSON Data type a lot.
But I ran into a problem when it comes to updating a JSON type value.
Questions:
Below is the table format, here I want to add 1 more key in JSON data column for t1 table. Rig... | common-pile/stackexchange_filtered |
How do I profile a real world application?
I run Debian 10 and since two weeks or so the PDF reader Atril (a fork of Evince) takes 25 seconds to start. Previously it started almost instantly. Now I'm trying to find out what causes the delay. I have downloaded the source package and built and installed it with profiling... | common-pile/stackexchange_filtered |
D3D9 Hook - Overlay with Direct3D9
OK, so I'm trying to do some overlay for some extra buttons on a Direct X game.
I found a c++ sample that overlays quite nicely here: http://www.gamedev.net/topic/359794-c-direct3d-hooking-sample/
So I began to convert it to Delphi. With some logging I can see that it starts the hook ... | common-pile/stackexchange_filtered |
Javascript : Update timeout without re-creating it
I would like to know if there is a better way to update a JS Timeout without having to recreate it.
For exemple I have something like this :
<input type="text" onchange="doSomething">
and in my script I am doing this :
let activeTimeout = null
let doSomething = (event... | common-pile/stackexchange_filtered |
SQLiteDatabase updates only when the application is reopened
I have an android app that successfully inserts data in my database when I click a marker in the map.
I have an activity that updates its info(column) in the database. It doesn't update on my first attempt but when I close, exit the app, run it again and upd... | common-pile/stackexchange_filtered |
Calculate $\mathrm{Hom}_{\mathbb{Z}/m\mathbb{Z}}(\mathbb{Z}/p\mathbb{Z}, \mathbb{Z}/m\mathbb{Z})$ and more
I'm working on the following exercise on Weibel's An introduction to homological algebra:
Exercise 3.3.2: When $R={\mathbb{Z}/m\mathbb{Z}}$ and $B={\mathbb{Z}/p\mathbb{Z}}$ with $p \mid m$, show that
$$
0 \righta... | common-pile/stackexchange_filtered |
What will happen if we subtract two raster with different cell size using Raster Calculator?
I want to subtract a topography raster with a depth raster. The problem is the two rasters have different cell size. The topography raster have a square cell size of 5, 5 while the depth raster have a rectangular cell size of 1... | common-pile/stackexchange_filtered |
Why we shouldn't dynamically allocate memory on stack in C?
We have functions to allocate memory on stack in both in windows and Linux systems but their use is discouraged also they are not a part of the C standard? This means that they provide some non-standard behavior. As I'm not that experienced I cannot understand... | common-pile/stackexchange_filtered |
How to Change placeholder of textBox of search row in radGridView WinForm?
I'm coding with winForms (c# in visualStudio 2019).
I'm using RadGridView Telerik, and Enable its SearchRow.
In SearchTextBox, there is a default text: "Enter text to search".
I want to change this text. how can I do this?
I don't use Telerik'... | common-pile/stackexchange_filtered |
JSF 2.0: Why does f:ajax send all the form fields and not only those marked with execute-attribute?
Seems like I am having a bunch of JSF related questions these days... here it goes again: why does AJAX call declared with f:ajax post all the fields of the form and not only those declared with execute? This question wa... | common-pile/stackexchange_filtered |
C# Multithreading with a Singleton object involved
Somewhere on my main thread i make a new thread which creates an object that is only allowed to be instantiated once through the entire application time.
Further down my main thread i have a function that makes use of this object that is also a global variable by the w... | common-pile/stackexchange_filtered |
What is a word like "negate" but even worse?
I suspect this is going to be a "oh yeah, duh" moment, but I'm looking for a word that is like "negate," but worse. Here's an example sentence:
I could cram for this test all night, but the sleep deprivation I'd experience could negate the effort.
I believe this sentence m... | common-pile/stackexchange_filtered |
JQuantlib on Google App Engine
I have been wondering: Has anyone successfully deployed a Google App Engine which uses JQuantlib? JQuantLib is a free, open-source, comprehensive framework for quantitative finance, written in 100% Java.
Does anyone know whether this is possible at all? I understand that libraries need to... | common-pile/stackexchange_filtered |
How can I identify 3 objects to read data from a file (Java)
I want to read all the data from 3 object which all stay in the same Arraylist. For example, I have 3 classes which are Vehicle, Taxi, car. Taxi, car classes is inheritance from supclass Vehicle. Arraylist called vehiclelist contain taxi, car, vehicle. When I... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.