text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
Nasm: Hide messagem in bmp file
I made this program in assembly that should receive from the terminal one file txt (where's the msg is), one file bmp and the name of that the file bmp should have (file equal to the original but with the hidden msg)!
section .data
; -----
; Define standard constants.
LF equ 10 ; line fe... | common-pile/stackexchange_filtered |
Firebase storage url, new file keep same access token
Duplicate of: Firebase storage URL keeps changing with new token
When a user uploads a profile pic I store this in firebase storage with the file name as the uid.
Lets say the user then goes and makes say 100 posts + 500 comments and then updates their profile image... | common-pile/stackexchange_filtered |
VBA script won't run. Getting Run Time Error 424 Object required
I am getting a run time error when I try to run this. Can anyone solve this?
Sub recolor()
'Sub Color_Change
Dim rng As Range
Set rng = Range("A1:E16")
If Not Intersect(Target, rng) Is Nothing Then
Dim cell As Range
For Each cell In Intersect(Ta... | common-pile/stackexchange_filtered |
Generate a list from a distinct values of a column mysql, nodejs
I have a mysql table with a field named "year". I want to create a list from distinct values from the year column. my expected output is,
[2011,2013,2014,2015]
but what I receive when I try SELECT DISTINCT year FROM table_name is,
[
{ year: 2012 },
{... | common-pile/stackexchange_filtered |
How to merge elements from multiple lists with same ID in Python?
I have a text file with 670,000 + lines need to process.
Each line has the format of:
uid, a, b, c, d, x, y, x1, y1, t, 0,
I did some cleanning and transferred each line to a list:
[uid,(x,y,t)]
And my question is: How can I merge (x,y,t)tuples in differ... | common-pile/stackexchange_filtered |
Rails, get object association when using build (object still not in database), the DRY
Im building a report system which uses a sort of meta question model. Questions are previusly saved in the database, and then depending of the type of report some questions are taken from the database.
Wanting to keep things DRY, i'm... | common-pile/stackexchange_filtered |
Package deployed in azure sql server fails as it cant access remote excel file
SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009.
I have deployed my SSIS project & package in Azure... | common-pile/stackexchange_filtered |
I don't see an explanatory legend in SAS proc freq
I have a problem with the legend not being visible at cross tabulation in porc freq in SAS. How can I show it?
I see only a table:
But I want to also see a legend:
Show the code that generated the graphic without the legend. AFAIK it's part of the default though one... | common-pile/stackexchange_filtered |
how to manage top, left bottom and other spacing on WinForm form?
I am working on a Win Forms application which has tab and many tab pages are there. All of these are having many contorls on them. I need to manage form's top,left, right and bottom margins. Before I was managing this manaually by selecting and moving co... | common-pile/stackexchange_filtered |
How to access http-toolkit packets programmatically using python?
Is there a way to receive and process packets intercepted in http-toolkit programmatically using python?
Is there any internal API I access?
Ideally I would like to receive the packets in a JSON or HAR format.
sounds like an xy problem. there are a numb... | common-pile/stackexchange_filtered |
CodeMirror force next line from 80 position
Is there a way that I can force line break when user tries to type any character after column 80 for a document in code mirror.
Also optionally for indent on the next line
Yes, there is a way to do that. On cursor activity, test if current character index is 80 or over. if... | common-pile/stackexchange_filtered |
Existence of integrals in f.d Hopf algebras
In THE HAAR MEASURE ON FINITE QUANTUM GROUPS, van Daele gives an implausibly short proof of the existence of integrals in a finite-dimensional Hopf algebra.
I'm probably overlooking something obvious, but this proof feels very esoteric to me: I cannot draw it in pictures.
So:... | common-pile/stackexchange_filtered |
XML and probably LXML issue
I have many XML files that look like this
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<reiXmlPrenos>
<Qfl>1808</Qfl>
<fOVE>13.7</fOVE>
<NetoVolumen>613</NetoVolumen>
<Hv>104.2</Hv>
<energenti>
<energent>
<sifra>energy_e</sifra>
<naziv>EE [kWh]</naziv>
... | common-pile/stackexchange_filtered |
Assigning a reducer for a dynamic store property
I'm trying to figure out how to set up a reducer for a property in my state tree that gets created from user events.
My state tree looks like this:
{
session: { session object },
dashboard: {
id: 'id001',
charts: {
'cid001': { dimensions: { ... }, more ... | common-pile/stackexchange_filtered |
Show login page while unauthorized users try to view PDF files in laravel 5.0
In my application, PDF upload option is there. The uploaded PDF files stored in media/pdfs directory.
For ex. http://localhost/xxx/media/pdfs/samplePDF.pdf
Now this link is accessable for unauthorized users also. I want to avoid that. How to... | common-pile/stackexchange_filtered |
Sendgrid Whitelabel email links not working
I've set up my Sendgrid account to use whitelabels for the domain and email links. This service is being used for a discourse forum.
I can see the SPF Sender permits sendgrid to send on behalf of my domain but the links are pointing to xxxx.ct.sendgrid.net instead of mail.myd... | common-pile/stackexchange_filtered |
How to install Telegram snap on Ubuntu 16.04.2?
I would install Telegram snap on Ubuntu 16.04.2 and tried with sudo snap install telegram-sergiusens but the result was:
error: cannot install "telegram-sergiusens": Get
https://search.apps.ubuntu.com/api/v1/snaps/details/core?channel=stable&fields=anon_download_ur... | common-pile/stackexchange_filtered |
How to change the default prompt in a singularity container
I am creating a Singularity image and I want to have a custom bash prompt, just like I can set a bash prompt as a normal user by setting the variable PS1 in my ~/.bash_profile.
But, unfortunately, Singularity does something to enforce its own prompt that looks... | common-pile/stackexchange_filtered |
Website registration works on XAMPP but not on my LAMP server
I've just finished setting up my remote server. setup LAMP, transferred my website over. I can login with a user fine but for some reason my code returns an error when inserting data. It goes through the code and does return an error if the user already exis... | common-pile/stackexchange_filtered |
R text file and text mining...how to load data
I am using the R package tm and I want to do some text mining. This is one document and is treated as a bag of words.
I don't understand the documentation on how to load a text file and to create the necessary objects to start using features such as....
stemDocument(x, la... | common-pile/stackexchange_filtered |
Inconsistent behavior of Setters in WPF Style Triggers in conjunction with Local Values
I am using a custom TextBox control for my WPF application, which has a default style set in a Generics.xaml file. The Template I set in the file includes the following Setter and Triggers:
<Setter Property="Background" Value="Blue"... | common-pile/stackexchange_filtered |
Transitive injection of CDI bean
I have a REST controller
@Path("/greet")
@RequestScoped
public class GreetController {
@Inject
private GreeterService greeterService;
@GET
@Path("{name}")
@Produces(TEXT_PLAIN)
public String greet(@PathParam("name") String name) {
return greeterService... | common-pile/stackexchange_filtered |
C Looping a switch?
so here is my code:
My problem is that I want to loop the switch statement with a while loop, depending on what char response gets (at the bottom).
I have tried putting the whole switch statement in a do while loop (that flopped).
Anyways I'm new to this language and I wanted to try to make a comple... | common-pile/stackexchange_filtered |
How do I make a program immutable?
Say I have a deployed Solana Program with an upgrade authority. What is the best practice to revoke this authority?
Found the answer in the docs:
When deploying a program normally, I use
solana program deploy
which makes it upgradeable by default. If I want to make it non-upgradeable... | common-pile/stackexchange_filtered |
C# Multiple If statement replacement
I am trying to make a practice program that calculates a persons overall grade. The test consists of three parts each with different weightings. Part 1 is worth 5 grades, part two 3 grades and part 3 is worth 2 grades.
So if a person got A B C they would receive 5A 3B and 2C.
Now,... | common-pile/stackexchange_filtered |
Beginner Looking for Guidance on Methods
I am trying to complete a project where we have to take a set of data of random numbers between 0 and 364 and see what percentage of the runs (the method takes the number of items in the data set and the number of runs) have a duplicate number in them.
Below is what I have so f... | common-pile/stackexchange_filtered |
Accessing DataSet Returned from my DAL
I am attempting to use ASP.Net and generate a Database Access Layer for re-usability. I am using the below to pass a stored procedure name to my DAL and execute the stored procedure, then return the results as a dataset.
However, in the calling class, I am getting the error
the ... | common-pile/stackexchange_filtered |
Recommendations on proper refactoring in a When statement?
I'm trying to call two lengthy commands in a when statement, but for some reason, because of its syntax, it performs two of the commands twice when it is called :
@email = Email.find(params[:id])
delivery = case @email.mail_type
# when "magic_email" the... | common-pile/stackexchange_filtered |
bit shifting contiguous block of memory using a char array
Trying to create my own base64 encode, I know there are others out there but every time I try to reinvent the wheel I learn something.
I am trying to use a full char array as a block of memory and shift out what I would I need.
I have tried casting it to an uin... | common-pile/stackexchange_filtered |
Site shows URL instead of "meta title" after deleted few plugins (not any SEO plugin was deleted)
www.Pifeed.net
after i deleted some useless plugins due to load-time issues the blog pages show url instead of title tag, though meta title tag is there in source code..
thanks for answers
your title tag is inside the s... | common-pile/stackexchange_filtered |
Can Nginx limit the request by status code?
I wanna limit the ip who has 150 nums 500 status code request last minute.
I only get the limit_req_zone module that can limit by the ip count.
Is there any way to limit by status code?
Thanks
This could be of help: https://serverfault.com/questions/907860/nginx-limit-req... | common-pile/stackexchange_filtered |
@OneToOne relationship between JPA entities that don't share any foreign key relationship
I have two entities as follows:
Invoice
Primary Key is InvoiceId
Other columns of interest are [OrgId, VendorId, VendorInvoiceId]
InvoiceState
Primary Key is InvoiceStateId
Other columns of interest are [OrgId, VendorId, Vendo... | common-pile/stackexchange_filtered |
Detecting the local style in a text with ConTeXt
I would like to detect the local style in a text. What is the ConTeXt equivalent of such these LaTeX commands?
\ifthenelse{\equal{\f@shape}{it}}{italic}{not italic}
\ifthenelse{\equal{\f@series}{bf}}{bold}{not bold}
I especially need the equivalent of \f@shape and \f@se... | common-pile/stackexchange_filtered |
mapping using cylindrical map via script
I'm trying to create a default mapping mode for an object. I followed through understanding the python API for blender, and things are making more sense at this point, however I'm not able to create the UV map I wish on the object. Code below:
import bpy
from os import getcwd
f... | common-pile/stackexchange_filtered |
When would I need to call form.ShowDialog(IWin32Window) rather than form.ShowDialog()?
I have some code, which calls the form.ShowDialog(IWin32Window) overload rather than the form.ShowDialog() one, but which passes in the current active window as the parameter.
Using the other overload seems to leave the behaviour int... | common-pile/stackexchange_filtered |
Using local package in React Native project not working
I need to install my local package in my react-native project.
I install the package using npm i /path-to-folder command
But i get this error Unable to resolve module @babel/runtime/helpers/interopRequireDefault
local package package.json
{
...
"devDependencies"... | common-pile/stackexchange_filtered |
Excel - pivot table does not group dates
I am trying to group the dates in the pivot table into months and years. My original date data is in mm/dd/yyyy format in a table that is refreshed through an embedded SQL script.
For some reason when I create a pivot table from this raw table I am getting an error message sayi... | common-pile/stackexchange_filtered |
Prove that there exists a bijective mapping $g:A\rightarrow B \;$ so that $g(x)=y$.
Let $f:A\rightarrow B\;$be a bijective mapping, $x$ an element of $A$ and $y$ an element of $B$. Prove that there exists a bijective mapping $g:A\rightarrow B \;$ so that $g(x)=y$.
So the above is the full question and I am frustrated. ... | common-pile/stackexchange_filtered |
PicklingError in pyspark (PicklingError: Can't pickle <class '__main__.Person'>: attribute lookup Person on __main__ failed)
I am unable to pickle the below class. I am using data bricks 6.5 ML (includes Apache Spark 2.4.5, Scala 2.11)
import pickle
class Person:
def __init__(self, name, age):
self.name = name
... | common-pile/stackexchange_filtered |
List of all arrays not contained in other lists of arrays
I have a list of two dimensional points, represented as two element long lists/arrays. E.g.:
points =
[[ 10. , 10. ],
[ 11. , 10. ],
[ 10.5 , 9.1339746],
[ 10.5 , 10. ],
[ 10.75 ... | common-pile/stackexchange_filtered |
Digitize graphs. Pull out data from points in a scatter plot
I have a project where I would like to extract data from a series of scatter plots that are image files (Jpeg or png). The plots are similar but the axes scales are not always exactly the same. I have looked online and there are some web app solutions that ar... | common-pile/stackexchange_filtered |
orange screen with vertical stripes
After having installed Ubuntu without Internet conecction, I restart the PC, go to BIOS, change boot priority to internal harddrive, save and exit. Then the PC starts again but the screen gets orange with vertical stripes and stays like that. I tried both versions 64 bit and 32 bit... | common-pile/stackexchange_filtered |
ASP.NET site memory use up to 99% if IIS app pool NOT enable 32-bit applications
We have a ASP.NET MVC3 site on a 8GB memory Windows server 2019, when I enable 32bit applications on of IIS app pool, the site running well, cpu and memory use(about 300MB) of w3wp.exe also low and noraml. But if I disable 32bit applicatio... | common-pile/stackexchange_filtered |
How Should we use comma with present participles acting as adverbial clauses?
Compare:
This portrait was drawn using watercolors. (PP at the end, Passive Voice)
Using watercolors, the artist drew this portrait. (PP at the front, Active Voice)
The artist drew this portrait, using watercolors. (PP at the end, Active Vo... | common-pile/stackexchange_filtered |
How do i rerender my screen after deletion from list?
Hello I've been looking through several threads on stackoverflow but I haven't been able to solve my problem. I have an app where you can save movies to a watchlist. On this specific screen I want to display a users watchlist and give them the ability to delete it f... | common-pile/stackexchange_filtered |
SharePoint Online New Team Site for groups
When publishing news in a Group site it will showcase it under News (like this) what is the logic behind this??
In here it will publish only the news. Even if I create a page. It won't show there.
I need a code clarification.
If you download both pages and inspect the cont... | common-pile/stackexchange_filtered |
XeTex on ubuntu
I got an error
(/usr/share/texmf/tex/latex/beamer/base/themes/o/beamerouterthemedefault.st
y))) (/usr/share/texmf-texlive/tex/xelatex/fontspec/fontspec.sty
!
********************************************
* XeTeX is required to compile this document.
* Sorry!
**************************************... | common-pile/stackexchange_filtered |
Using javascript or python regular expressions I want to determine if the number is 1-99 how to make it?
var category = prompt("where do you go? (1~99)", "");
hello
Using regular expressions I want to determine if the category is 1-99.
How can I solve it?
Thank you if you let me know.
Why not simply use a if statemen... | common-pile/stackexchange_filtered |
Visual Level Filter Equal To Column Value
I have a measure in my date table that calculates the week number of the year for last week. LastWeekNum = WEEKNUM(TODAY(), 1) -1
I want to apply this to a visual, so logically: WeekOfYear = LastWeekNum.
Is there some way to set this up?
This is possible to do with some DAX a... | common-pile/stackexchange_filtered |
save text file more then 8kb (80 lines) fwrite php
I am trying rewrite result.txt file after delete first row, which have total 7000 rows (700 kb) size.
Simply open the file, delete the first line then save again.
But fwrite function only save 80 rows (8kb) for me. And remaining rows auto deleted.
$outfile= "result.tx... | common-pile/stackexchange_filtered |
Error using bees with machineguns
I have tried to use beeswithmachineguns for loadtesting a site but with little success. There is a similar post but the error I receive is slightly different.
I use the following to start the bees.
bees up -s 1 -k Bees-West -g SWARM
The error I am getting is related to the groupId be... | common-pile/stackexchange_filtered |
How to set check box checked by comparing the database value in struts1.3?
In my Struts1.3 application, I have a Jsp page where i have a hyperlink on clicking of that hyperlink i am showing all the records that is coming from database in checkbooks mycode is to showing all the values are as follows
<table width="932" b... | common-pile/stackexchange_filtered |
Exported arrow to PDF or EPS messes up its tip
The code
g = Graphics[{AbsoluteThickness[20], Arrowheads[0.5], Arrow[{{0, 0}, {1, 1}}]}, PlotRange -> {{0, 1.1}, {0, 1.1}}]
Export["Arrow.eps", g];
produces an image with a corrupted arrow tip. I'm using version 12.1 on MacOS 11.1.
Here's the result I get
How can I work ... | common-pile/stackexchange_filtered |
generate unique id for array value groups
I have an asosiative array which contains data about teams and players.
Example:
$arr = array(
array('teamID'=> '','teamName' => 'USA', 'playerName'='John'),
array('teamID'=> '','teamName' => 'USA', 'playerName'='Peter'),
array('teamID'=> '12','teamName' => 'Norway', 'pl... | common-pile/stackexchange_filtered |
Access one IP from outside of the subnet on the same network
I have a network which has for example the subnet <IP_ADDRESS>/24. On this, I have one embedded device that tries to access http://<IP_ADDRESS>, which is hardcoded. Without making physical changes to the network I would like that device to get a response.
Wha... | common-pile/stackexchange_filtered |
How can I get the caller function name in my class?
Possible Duplicate:
How to get name of calling function/method in PHP?
So in PHP I'm trying to build a custom error handler class. It's pretty simple:
I give it a code number and it gives back a formatted error message which I can use to send to mobile devices.
So ... | common-pile/stackexchange_filtered |
Firebase cloud messaging authentication issue
I have an app, available on Google Play that is an end-to-end encrypted messenger. One of its unique advantages is that users never have to identify themselves – they just make up a name. No Google account email address, no phone number, nothing.
The app currently uses Go... | common-pile/stackexchange_filtered |
Laravel 5.3 Observer not triggering on updating event
I have created Observer for my model to update related data:
<?php
namespace App\Observers;
use App\User;
class UserObserver
{
public function updating(User $user)
{
$data = $user->getAttributes();
dd($data);
$user->worker->fill($data... | common-pile/stackexchange_filtered |
Selecting Metrics in Keras CNN
I am trying to use CNN for trying to classify cats/dogs and noticed something strange.
When i define the model compile statement as below -
cat_dog_model.compile(optimizer =optimizers.Adam(),
metrics= [metrics.Accuracy()], loss=losses.binary_crossentropy)
my accurac... | common-pile/stackexchange_filtered |
In Ruby, how do I assign a value to a class instance
I want to create a class instance that has a value such that I can do something like puts a = Example.new(1) where a's value is specified in initialize.
I expect that this is a simple problem since all predefined Ruby classes allow this, but I'm unable to figure out ... | common-pile/stackexchange_filtered |
What is the difference between "under ..." and "stipulated by ..." in legal expression?
I have a question about whether I should use “under” or “stipulated by” in the sentence below.
Responsible for navigation, cargo handling, fire and life-saving equipment, and other duties related to safe operation of ships under in... | common-pile/stackexchange_filtered |
Calculate number of days from date time column to a specific date - pandas
I have a df as shown below.
df:
ID open_date limit
1 2020-06-03 100
1 2020-06-23 500
1 2019-06-29 300
1 2018-06-29 400
From the above I would like to calculate a column named age_in_days.
age_in... | common-pile/stackexchange_filtered |
Module 'random' has no attribute 'randomint'
I have read other post while trying to solve this problem. All of them seem to say that the file is the name random.py but my file name is test.py
def getAnswer(answerNumber):
if answerNumber == 1:
return 'It is certain'
elif answerNumber == 2:
return 'It... | common-pile/stackexchange_filtered |
Filter rows in SLT
How to filter rows in SLT (SAP Landscape Transformation)
The filter should be based on one column of the table. And only if a cell in this row has a specific content then the row should be replicated.
Filters can be defined in the transaction LTRS
Example
Filter rows if in column /BIC/R_GES is any v... | common-pile/stackexchange_filtered |
How do I configure the Kendo Upload widget to hide the files list
I'm developing with telerik's kendo framework using their mvvm bindings. I'm having trouble with the configuration of the uploader widget, configured as the following:
<input name="files"
id="fileUploader"
type="file"
... | common-pile/stackexchange_filtered |
Replacing a Freeradius library
I have a freeradius 2.0.4 server i want to update.it has been running without interruption for 2 years.
My update consists only in updating the chap module without creating a new one.
To avoid discontinuity of service and be sure that all configs remain the same, i am trying to find a smo... | common-pile/stackexchange_filtered |
Pumping lemma for context-sensitive language?
i have googled on pumping lemma for context sensitive, and it seems to only produce results for context-free language.
Pumping lemma only allows to prove a language is context free only? and not context sensitive?
Any idea how?
There are two Pumping Lemmas. Pumping Lemma f... | common-pile/stackexchange_filtered |
How can I find out where the cursor is?
I want to find out where the cursor is in the terminal. For example, I want to know if the cursor is at the beginning of a new line or which position in a line it is.
I would prefer if an escape code existed for this but it's acceptable if only the windows console API has the way... | common-pile/stackexchange_filtered |
How to create a request in python insecure by header
I want to request to show my pods in kubsernets
and this command work for me
curl -X GET https://<IP_ADDRESS>:6443/api --header "Authorization: Bearer $TOKEN" --insecure
{
"kind": "APIVersions",
"versions": [
"v1"
],
"serverAddressByClientCIDRs": [
{... | common-pile/stackexchange_filtered |
How to make page scroll to a specific element when clicking a button? Scroll animation, if possible
As the title says I want to make the page scroll to a specific element on the page when the user clicks a text/image. If it's possible, I don't want it to just skip to that element, but have a scrolling animation to it.
... | common-pile/stackexchange_filtered |
Save and load big array (> 100 gb) python, and/or reduce size
I need to save a really big array (is a matrix of doubles, with size of 5e5 x 3e4.
The context is: I have a 1D simulation of viscous disc, each row is a snapshot of the simulation ( the surface density).
all the data is relevant (more or less), so in princip... | common-pile/stackexchange_filtered |
How can I debug the name of any button pressed with the Unity New Input System?
When using the new input system, some build targets such as andoid can shuffle the names of controller inputs, messing up the bindings.
How can I listen to all inputs and print the name of the button pressed at runtime?
Solution adapted fr... | common-pile/stackexchange_filtered |
getting 504-Bad Gateway error while saving Instagram images
I am trying to save Instagram images on my local machine through API and using the file_put_contents php method
I have tried sleep() method
ini_set('max_execution_time', 400);
$access_token = "";
$photo_count = 8;
$json_link = "https://api.instagram.com/v1/u... | common-pile/stackexchange_filtered |
why does Inquire pos returns 0 in Fortran 90
I'm reading a binary file, direct access, in Fortran 90, and i'm trying to find out the pointer position. For that i use:
inquire(unitvector, pos=cur_pos)
But when i print the cur_pos it's always 0, even after i've read a substantial amount of the file. Why is it 0?
To comp... | common-pile/stackexchange_filtered |
Adding a search bar to the top of a UITableView
I have a UITableView and am currently working on adding a custom search bar at the top consisting of a UIView with a UITextField inside of it. As is standard for iOS apps, the search bar should only be visible when the table view is scrolled to the top — when scrolling do... | common-pile/stackexchange_filtered |
Turtle Graphics with Recursion
I need to draw a shape using recursion and turtle graphics.
I'm more of a looper and rarely ever use recursion, so some help here with this would be nice. Not even sure where to start.
The shape just needs to be cool looking.
Welcome to SE, what have you tried so far?
I'm not sure where... | common-pile/stackexchange_filtered |
Bar-chart gradient background not showing - Highcharts
I am using Highcharts.js-library to create a bar-chart at my website and I would like to have a gradient as background-color (fill) of the bars. I have done it here in JSFiddle and everything is working fine. But when I use the same code at my website, it is not wo... | common-pile/stackexchange_filtered |
How to add a field from body to a condition
I use the @StreamListener annotation to listen to the topic. How can I add a field from body to the condition? An example of an entity that is sent to the topic:
public class Event {
private String eventId = UUID.randomUUID().toString();
private LocalDateTime eventTi... | common-pile/stackexchange_filtered |
Datagridview - refresh after DB Update on another form
I'm setting Datagridview DataSource in Form1. In Form 2 I update those records (works fine in DB), and after updating them I want to refresh Datagridview in Form1 too.
Here is my code in Form1_Button_Click:
OracleConn() 'connection to my DB
Using cmd As N... | common-pile/stackexchange_filtered |
z-score versus log standardisation of stock prices for calculating correlation; which to use (in ML clustering, distance measure)?
I need to compare (get correlation between) different financial instruments (stocks).
The problem is that different stocks will have different price scales.
I was thinking of using z-score ... | common-pile/stackexchange_filtered |
Path Finding - Autonomous Rover
I am working on a navigation task for an autonomous rover. Right now, the rover can calculate the shortest path between the current position and a final destination given certain obstacles. I am using dijkstra's algorithm to find the shortest path and it's working well.
The rover has a ... | common-pile/stackexchange_filtered |
Is there any chance to retrieve files after deleting from HDFS trash
In our project we have four environments such has Production, Development, UAT and QA. I am using the UAT environment.
We have a cluster with 43 Data Nodes. My role is HDFS clean up. Unfortunately I deleted some jobs from Hive database and also from ... | common-pile/stackexchange_filtered |
Not getting @OneToMany Annotation in spring boot
I am not getting @OneTomany or @manytoone(relational kind of annotations) annotataions in spring boot ,so how do I get that ? Is there i required to change the POM file?
elaborate more. When and where u getting error?
You do have javax.persistence jar in your project b... | common-pile/stackexchange_filtered |
Remove Null values in JSON and Update JSON
I have JSON Array as a string by serializing a list using Newtonsoft as below
[{"ID":"1","Name":"somename","Class":"12","Section":null},{"ID":null,"Name":"somename","Class":"13","Section":null},{"ID":2,"Name":"somename","Class":null,"Section":"A"}]
I need to convert this JSON... | common-pile/stackexchange_filtered |
Where is content of <?php echo $this->getChildHtml('left') ?>?
I have a question about the file 2-columns-left.phtml of my blog of my theme Legenda. I want edit the title of my block-blog-categories but without success.
I see that the content of block is in the
<div class="col-left sidebar col-sm-4 <?php if(Mage::app(... | common-pile/stackexchange_filtered |
"EXC_BAD_ACCESS" in Qt
Basically, below is my main.cpp and when I try to run it with Qt's debugger, I get the "EXC_BAD_ACCESS" error ("Could not access memory") along with an arrow next to the first line of main (where it says Puzzle puzzle;). I thought it might be a problem with my Puzzle class, but when I moved that ... | common-pile/stackexchange_filtered |
How to change the color of text in an email template?
I don't have much knowledge of JS but I am just creating a simple template for email. In this template, I am trying to change the color of a text when the button is clicked. Although it is working fine on the localhost when I send an email, it does not work there an... | common-pile/stackexchange_filtered |
Kafka connect could not find JdbcSinkConnector even if it's installed
I have installed JDBC connector running confluent-hub install --no-prompt confluentinc/kafka-connect-jdbc:10.2.5 inside my kafka connect connector, but when I try to implement a new sink using I have the following error : Failed to find any class tha... | common-pile/stackexchange_filtered |
Using SQLite in-memory with EF Core - context.Database.EnsureCreated keeps throwing 'AUTOINCREMENT is only allowed on an INTEGER PRIMARY KEY'
I am currently trying to write unit tests for a project in C# that relies heavily on Entity Framework Core. In order to do that I have decided to use a SQLite in-memory database,... | common-pile/stackexchange_filtered |
What's the difference between an APRS "item" and an APRS "object"?
What's the difference between an APRS "item" and an APRS "object"?
A kenwood manual says Objects have timestamps, items do not. What does that mean, and how should it be used?
Also in general: What is a good resource for learning about APRS? aprs.org is... | common-pile/stackexchange_filtered |
React indiana scroll - initial scroll doesn't work
I would like to initialize my component to an initial scroll with react-indiana-drag-scroll but it doesn't work and I don't know why.
You will find the code on this sandbox.
I would like to initialize the scroll on the red line (current time), but the scrollTo function... | common-pile/stackexchange_filtered |
Recursive function, high performance critical
def uniop_nested(func,o_list):
def inner(i_list):
if isinstance(i_list[0],np.ndarray):
return map(func, i_list)
else:
return map(inner, i_list)
return inner(o_list)
def binop_nested(func, o1, o2):
if not isinstance(o1,n... | common-pile/stackexchange_filtered |
SVProgressHUD likely HUD in landscape or Horizontal mode
I'm writing a view in "landscape mode" implement by changing the view's transform. And I need a Hud 4 showing infos in this "landscape mode"(I've disable the landscape left and right mode). I've searched the API of SVProgressHUD and seem there's no API of changin... | common-pile/stackexchange_filtered |
Chat App for Android using a XMPP Server and Google Cloud Messaging (or the newer Firebase Cloud Messaging) for Push Notifications
I'm developing a Chat App for Android. I have been reading for weeks about XMPP and Google Cloud Messaging (and Firebase Cloud Messaging) and I am still very confused.
Currently, I already ... | common-pile/stackexchange_filtered |
Sync SQLite Database to App Engine Datastore?
The android app stores the data in SQLite database during the offline mode. When online I want the app to sync (in both direction) with the datastore(database) in cloud server (App Engine). How do I implement this functionality, so that I can show the data captured on phone... | common-pile/stackexchange_filtered |
Close a batch launched in VBScript with intWindowStyle 0
I have a scheduled task that launches a VBScript with parameters which launches a hidden bat.
This bat executes a routine in a endless loop.
The only way to be sure the bat is still running is from the TaskManager
If I want to close the batch I have to look for ... | common-pile/stackexchange_filtered |
Wrap Multiprocess Pool Inside Loop (Shared Memory Between Processes)
I'm using the Python package "deap" to solve some multiobjective optimization problems with genetic algorithms. The functions can be quite expensive, and because of the evolutionary nature of GA, it gets compounded pretty quick. Now this package does ... | common-pile/stackexchange_filtered |
Android > How to get service state for both sim cards in dual sim device?
I need it for API 22 and above.
I saw that we have telephonyManager.getServiceState - but I don't know how to get it for sim1 and for sim2 exactly.
Also we have CellInfo.serviceState - but it's only from API 28.
How to get it? I don't need any li... | common-pile/stackexchange_filtered |
Exit "Events" on one site drastically differ from the corresponding "Acquisition" data on another site
I have a site (mysite) that refers users to another (othersite). Tracking how many referrers mysite sends to the othersite is crucial. I have access to analytics for both.
On mysite, when a user clicks a link to other... | common-pile/stackexchange_filtered |
iOS custom UITableView and UITableViewCell with columns (Twitter app)
I'm developing an iPhone/iPod application, and the designer used a lot of these "Twitter App Concepts" (screenshot). As you can see, the TableView has a shadow and the cells can be split in columns (those columns are clickable).
I just need to create... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.