text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
Form Validation: If data in form contains "VP-", error out
I'm trying to do code that errors out a form validate if the form contains "VP-".
My code is:
// quick order form validation
function validateQuickOrder(form) {
if ((form.ProductNumber.value == "")|| (form.ProductNumber.value == "VP")){
alert(... | common-pile/stackexchange_filtered |
Bad input shape () in multi-class classification
I'am performing a multi-class classification task using sci-kit learn. In the setup i created, i want to compare different classification algorithms.
I use a pipeline, where text is inserted as X and Y is the class (multi-class, N = 5). Textual features are extracted in ... | common-pile/stackexchange_filtered |
Do I need to factory reset to root galaxy note 4 SM-N910V?
I have the Samsung Galaxy note 4 for Verizon. I believe it is the developer edition because the model # is SM-N910V. I am trying to either install CFs auto root or install TWRP recovery and root from there. So far both fail in Odin. here's the log for Odin for ... | common-pile/stackexchange_filtered |
What is the effect of irrelevant reading after study on memory consolidation?
I heard and experienced a little that unconscious mental processes involved in storing memories work really well when you are not thinking about your study subject during rest. However, I'm not sure mental effort such as reading a novel is as... | common-pile/stackexchange_filtered |
How to send a simple command to a Window's program on another machine
I have a program on a Windows machine that I VNC into. It is a normal Window's program with a GUI written in Delphi. After I VNC into the machine, I can select the program and hit Alt+S and then F to execute the command I want.
So, is there a simpl... | common-pile/stackexchange_filtered |
Angular 2 How to make setter wait to input setter to complete
Hi i have a problem with that. In my component i have a inputt setter like this :
@Input() set editStatus(status: boolean) {
this.savedEditStatus = status;
if (this.savedEditStatus === true && this.getTrigg === true) {
this.getDataFromFlex... | common-pile/stackexchange_filtered |
How can we read a blurred image using pytesseract?
I am using pytesseract ocr to read the text of the image, but i am getting a false output for blurry images shown below.
How can I make the above image or such images ocr ready.
I'd recommend retaking the photographs if possible, but I doubt that's possible if you're... | common-pile/stackexchange_filtered |
An unhandled exception occurred: ENOENT: no such file or directory, lstat 'E\CoffeShop\node_modules' See "C:\aangular-errors.log" for further details
An unhandled exception occurred: ENOENT: no such file or directory, lstat 'E:\Angular_April2021\Angular*node_modules*'See "C:\Users\Srisylam\AppData\Local\Temp\ng-ul0h3k\... | common-pile/stackexchange_filtered |
How to get output from class after input all values
from tkinter import *
app = Tk()
app.title("First Software")
app.minsize(500, 500)
#For Input Declaration
UserName = StringVar()
pass1 = IntVar()
class Functions:
def username(self, UserName):
self.UserName = Username
print(UserName.get())
d... | common-pile/stackexchange_filtered |
A more efficient way of getting the nlargest values of a Pyspark Dataframe
I am trying to get the top 5 values of a column of my dataframe.
A sample of the dataframe is given below. In fact the original dataframe has thousands of rows.
Row(item_id=u'2712821', similarity=5.0)
Row(item_id=u'1728166', similarity=6.0)
Row(... | common-pile/stackexchange_filtered |
How to convert a BasicDBObject to a Mongo Document with the Java Mongo DB driver version 3?
In the Java Mongo DB driver version 3 the API has changed as compared to the version 2. So a code like this does not compile anymore:
BasicDBObject personObj = new BasicDBObject();
collection.insert(personObj)
A Collection i... | common-pile/stackexchange_filtered |
Let $A$ be a PID, $M$ an injective finitely generated module. Prove that $M = 0$.
Help!
Let $A$ be a PID, $M$ an injective finitely generated module.
Prove that:
$$ M = 0.$$
People will be much more motivated to help if you indicate what you have tried. In particular when it is phrased like this (imparative is usually... | common-pile/stackexchange_filtered |
What is the difference between "could not get to" and "did not get to"?
Take, for example, this sentence:
Away from Vatican City, Tome was quiet as authorities ordered all public offices and schools to close (close), and banned (ban) cars from the roads. Millions of Catholics who ______________ (not get) to Italy, bid... | common-pile/stackexchange_filtered |
Creating triggers without SUPER privilege
I am trying to create a trigger in a MySQL database. However, I'm not allowed to:
#1419 - You do not have the SUPER privilege and binary logging is enabled (you might want to use the less safe log_bin_trust_function_creators variable)
However, I can't enable said variable eit... | common-pile/stackexchange_filtered |
JNI Global reference to PacketWriter in smack library, how to identify the cause JNI Global referece?
I am using smack library to connect to Facebook XMPP server.
In my local enviroment debug mode, memory leak sometimes happened. I have:
checked the heap dump,
found that JNI Global reference always referred to Packet... | common-pile/stackexchange_filtered |
wp_enqueue_script and wp_register_script in theme not working
I am trying to use a self written script for the jQuery library in my self-made theme, but it's not working. When I simply use script-tags, everything is alright. So it has to be something with wp_enqueue_script and wp_register_script.
In the beginning of my... | common-pile/stackexchange_filtered |
Controlling different clocks with switches in VHDL
How can I control 2 different clocks? I wrote that clk1Hz<=newclock or newclock2; so I was going to be able to control it by choosing one of them is '1'. However, it gives me unexpected identifier error in that sentence(clk1Hz<=newclock or newclock2;). I have no idea w... | common-pile/stackexchange_filtered |
Maven site in gradle
Is there a plugin in gradle which can generate maven site similar thing? It would be great if it was compatible with current maven site apt format file.
It seems that there are two plugins, this and this. The first one was committed four years ago, I know nothing about the second. So it seems that... | common-pile/stackexchange_filtered |
Prove the triangle inequality only using the inverse triangle inequality.
I know the easy way to show the inverse triangle inequality using the triangle inequality. As far as I‘m aware of the two are equivalent so I was wondering how to prove the triangle inequality using only the inverse triangle inequlality. I tried ... | common-pile/stackexchange_filtered |
CMFCRibbonStatusBar and menu prompts
I have a VS2015 application based around a Ribbon bar with numerous context menu's. The issue is how do I get the legacy menu item prompts to route the status bar derived from CMFCRibbonStatusBar.
Pre Ribbon bar these prompts were transparently mapped to CMFCStatusBar. Advice on h... | common-pile/stackexchange_filtered |
Migrating only selected accounts to new machine
I am working on upgrading the hardware used for our mail/ftp server from an old 32 bit platform to a much newer 64 bit platform. Both are running Ubuntu 16.04.03. Getting all of the appropriate packages installed on the new system has been accomplished. Now I need to t... | common-pile/stackexchange_filtered |
memory error, but only on device running ios 8
My app running on an iPhone 4 iOS 8.3 gets this error:
2016-06-26 19:09:22.587 Skyline Flora[4498:949043] *** Terminating app
due to uncaught exception 'RLMException', reason: 'mmap() failed:
Cannot allocate memory size: 671088640 offset: 0'
*** First throw call stack... | common-pile/stackexchange_filtered |
Google Column Chart blank page
I am working on this project which I need to make a Google Chart (column chart) to make the data in my database visualize. I checked the IP and the database (the data comes from a database), everything works fine. But when I try to see the output on my computer, the page is blank. I thoug... | common-pile/stackexchange_filtered |
How can I have one object that can be any class with the same methods?
I have a basic c# app to process some sql files. I have a class for each type of object like proc, function, view, etc.
What I want to do in the main is determine what kind of script file im processing and them create an instance of that class.
The... | common-pile/stackexchange_filtered |
Homology of nice planar sets
Is there a quick and simple proof of the fact that the homology group of a nice (say with piecewise smooth boundary) planar domain is free abelian with a basis corresponding to the holes in the domain? Can you direct me to literature that might be relevant, i.e., with explicit examples simi... | common-pile/stackexchange_filtered |
Default case in conflict between linter and code coverage in Scala
My linters always complain when I don't have a default case in pattern matching in Scala. However, often the default case is artificial and my programs can never actually reach that case.
As an example, consider the following program:
scala> val x = 1
x... | common-pile/stackexchange_filtered |
detect suspect
How To detect the suspect database in SQL server2000 With Script Or Program ?
Thats some blasphemous ms sql slang, but, honestly, it got me thinking of FBI and some kind of "database of suspects" the moment I've seen the question.
the status column in master.dbo.sysdatabases will have the suspect bit s... | common-pile/stackexchange_filtered |
why <> is empty in adjacency_list<>
Can I ask what the <> is for in adjacency_list<> ? I am new to stl. I know I can define a container like this: vector<int> vec, but why here it is empty in <>? Thank you.
#include <boost/graph/adjacency_list.hpp>
using namespace boost;
adjacency_list<> g;
// adds four ... | common-pile/stackexchange_filtered |
Merge left outer join column
I have a query that use left outer join.
something like that :
select issues.id, journal.notes from issues left outer join on (issues.id = journal.issue_id and journal.notes != '')
So far it works.
But in fact in the database journal there can be multiple row that reference the issues one.... | common-pile/stackexchange_filtered |
Snake Game -- Can't steer snake
Actual question on the bottom of the post!
At first, I want to explain my problem.
I'm writing a basic Snake game and I got the snake to move automatically. It moves automatically to the right of the window when you execute the code, just like intended. However, I can't steer my snake t... | common-pile/stackexchange_filtered |
Explicit Loading of DLL
I'm trying to explicitly link with a DLL. No other resources is available except the DLL file itself and some documentation about the classes and its member functions.
From the documentation, each class comes with its own
member typedef
example: typedef std::map<std::string,std::string> Serve... | common-pile/stackexchange_filtered |
list of object to single selected object on submit form button razor mvc c#
i have razor view with List. but on submit button i want to send selected Employee[0] or any other index Employee[1] to respected controller.
let suppose.
@model List<Employee>
@for(int i=0;i<Model.Count;i++)
{
@using (Html.BeginForm(... | common-pile/stackexchange_filtered |
OBD2: Reading VIN number using CAN Reader and custom Python Code
I am trying to read vehicles VIN number using CAN Reader and my custom Python Code, following OBD2 specification and I cannot obtain the whole VIN number as I receive only one response back.
I noticed that after sending this:
7DF#0209005555555555
I get t... | common-pile/stackexchange_filtered |
Core Deposits when modelling Non-Maturity Deposits according to IRRBB
When modeling Non-maturity deposits (NMDs) the Basel Committee suggests the following
(see 31.109 of the guidelines):
Banks should distinguish between the stable and the non-stable parts
of each NMD category using observed volume changes over the pa... | common-pile/stackexchange_filtered |
How to add text to an adjacent cell based on string values
I am currently trying to make a CSV import macro system that imports, formats and simplifies the data enclosed. I have, up to this point, gotten the file imported and formatted for the most part. At this point, I am trying to add a column adjacent to A:A and, b... | common-pile/stackexchange_filtered |
Plot LINESTRING Z from GeoDataFrame using pydeck's PathLayer (or TripLayer)
I have a geodataframe with LINESTRING Z geometries:
TimeUTC
Latitude
Longitude
AGL
geometry
0
2021-06-16 00:34:04+00:00
42.8354
-70.9196
82.2
LINESTRING Z (42.83541343273769 -70.91961015378617 82.2, 42.83541343273769 -70.91961015378617... | common-pile/stackexchange_filtered |
How do I set the aspect ratio for a plot in Python with Spyder?
I'm brand new to Python, I just switched from Matlab. The distro is Anaconda 2.1.0 and I'm using the Spyder IDE that came with it.
I'm trying to make a scatter plot with equal ratios on the x and y axes, so that this code prints a square figure with the v... | common-pile/stackexchange_filtered |
Powershell: Convert combobox.SelectedItem to time value to use at trigger for task scheduler
My question is how to convert a hour and minute chosen from a combobox to a time value that i can enter in my script for creating a tasks scheduler. I have method to pick the date through a monthcalendar, the only problem is th... | common-pile/stackexchange_filtered |
Error importing built-in module "_subprocess" using Google Cloud Platform's Local Development Server
Does anyone know how I can fix the following error? Error Message: "Import Error
C:\Users\MicroSilicon\Desktop\hello_world>python2 "C:\Users\MicroSilicon\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\dev_appserver... | common-pile/stackexchange_filtered |
API trying to use code on the same server - require path issue
Goal: to require files from an old monolithic code base that is still an active website, and use those files as logic for an API running on the same server in its own instance of PHP. Hoping to leverage the old codes deeply buried business logic. As the old... | common-pile/stackexchange_filtered |
XMLHttpRequest java javascript
I try to communicate between javascript and java. My script javascript send a message to java and java send a response.
javascript part:
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4)
{
alert(xmlht... | common-pile/stackexchange_filtered |
load partial view in to a modal popup
I am working with MVC3 c# 4.0.
I have created a partial view.
I have a button on my page, when I click this button I want to be able to load the partial view in to a modal popup. I presume the best way to do this is via javascript - I am using jQuery already in the application.
Any... | common-pile/stackexchange_filtered |
Compensation Capacitor and Resistor Values
I'm currently working on a Power Electronics project which I will convert 10-28V input DC voltage to 12V DC output voltage. I've deciced to use LM3481/3488 configured as SEPIC in my project. I've found which values to use such as Sense resistor, Feedback resistors, Frequency s... | common-pile/stackexchange_filtered |
How to import APEX application using SQLPLUS
I have build an application in APEX 18 on my Development environment. Now I want to deploy the whole application on Test environment. I have already exported the file from application builder, so I have the export sql with me.
My question is: Is there any way that I can im... | common-pile/stackexchange_filtered |
Using the AWS CLI, how do I get a figure showing how many requests my API Gateway(s) have served?
I've tried a few googled suggestions but they all seem to come back with a Count value of 1, which is obviously incorrect. For clarity, I'm looking to see how many requests (success and errors) the API has served between g... | common-pile/stackexchange_filtered |
User generated content and security
I'm gonna create a new site. I want to make the site as user generate able content site.
Basically this is my site's function. Users signup in my wordpress site, Submit content from wp-admin panel, some points will be given if the post approved by admin, later those points will be co... | common-pile/stackexchange_filtered |
Need help formatting Tshark command string from bash script
I'm attempting to run multiple parallel instances to tshark to comb through a large number of pcap files in a directory and copy the filtered contents to a new file. I'm running into an issue where Tshark is throwing an error on the command I'm feeding it.
It ... | common-pile/stackexchange_filtered |
WPF mvvm wizard
I am implementing WPF MVVM Wizard and I am wondering about the right approach of performing a DoOperation when a new Wizard’s Page (UserControl) is loaded.
The DoOperation is implemented on the MyWizard.ViewModal class while the UserControl Load is happening at the MyWizard.View namespaces.
How can I... | common-pile/stackexchange_filtered |
SLAM possibilities,where does it end?
Hello,
the goal : something that looks like a droid, able to do SLAM without falling down the stairs
the problem : the more I dig, the less I think it's feasible, even by spending money and hours around ROS configs/packages and hardware
at first I wanted to use sonars,then distan... | common-pile/stackexchange_filtered |
Does each child add reactive getters and setters to props?
Imagine you have a huge list of things to do:
[
{
id: 1,
name: Pet a cat,
priority: 'extreme'
},
...
]
The app has three components grandparent -> parent -> child
The todo list is declared in grandparent's data function. This is where t... | common-pile/stackexchange_filtered |
unable to call Azure Service Bus from Python
Trying to run the hello world example to put something on the queue, create a queue ... anytime I call azure I get an error.
Here is the code:
from azure.servicebus import *
bus_service = ServiceBusService(service_namespace='testtest', account_key='my_access_token', issuer... | common-pile/stackexchange_filtered |
Handle Enter Key for search and login page
I have an ASP.Net 3.5 in VB.Net page that uses a master-page and has several pages it uses to display content. On the master-page their is a search text-box for the site so that shows up on all the pages. Their is also a login page screen to get to a members account.
The iss... | common-pile/stackexchange_filtered |
Python plot forced sorting dates alphabetically instead of chronologically
I am plotting my dataset (Mortality in England and Wales against region) and the dates on the X-axis keep sorting alphabetically. It goes Apr 06, Apr 07,..., Feb 06, Feb 07,..., Sep-13,Sep-14.
I want them to be in chronological order (Like it is... | common-pile/stackexchange_filtered |
Create Instance from assembly and its dependencies in C#
I have an app (let's just call it MyApp) that dynamically creates source code for a class and then compiles it. When it compiles the source code I also reference another DLL (that is the base class for this newly created class) that already exists in another fold... | common-pile/stackexchange_filtered |
How to Convert UIView to PDF within iOS?
There are a lot of resources about how to display a PDF in an App's UIView. What I am working on now is to create a PDF from UIViews.
For example, I have a UIView, with subviews like Textviews, UILabels, UIImages, so how can I convert a big UIView as a whole including all its s... | common-pile/stackexchange_filtered |
Javascript variable changes value itself
So, I am writing a code for my webpage that if you have one of two boxes open (registration, login) you can't open another one. I'm stuck with the following problem: once you close the box with pressing the mouse out of the box, value changes to 1 and you should be able to open ... | common-pile/stackexchange_filtered |
k-linear category
In the tasks I have it says
"Let $k$ be a field. Show that the structure of a $k$-linear category on a category $\mathcal{C}$ is equivalent to $\mathcal{C}$ being a module category (see Module category in nLab) over $\mathrm{vect_k}$, the vector spaces over $k$."
I have a few questions to that:
1) I... | common-pile/stackexchange_filtered |
Database connection with error in CodeIgniter 2.1.4
I have this kind of error when I try to install a php scrit make with CodeIgniter 2.1.4
This is the error:
A PHP Error was encountered
Severity: 8192
Message: Methods with the same name as their class will not be constructors in a future version of PHP; CI_DB_driver h... | common-pile/stackexchange_filtered |
How can I make this skeleton a little more realistic?
So I've made this open type hourglass, which I am happy with in terms of graphical style and realism, but the key feature is the skeleton inside of it. I have failed to make the skeleton match (in any sense of the word) the rest of the hourglass.
Without Skeleton:
... | common-pile/stackexchange_filtered |
VBA - Need to append to the end of a line in a large text
I have a system where I can only read 50 column's worth of data from a table at a time. The table has 150 columns that I need to read. The table has 1 million lines.
What I have been doing so far is to read the 1st 50 columns and write all 1 millions lines to a ... | common-pile/stackexchange_filtered |
What do American people call the classes that students go to after school for SATs?
What do American people call the classes that students go to after school for SATs? In Taiwan, we call it a cram school, but there is no such phrase in any American dictionary. Could Americans please tell me what you call the classes or... | common-pile/stackexchange_filtered |
Create dynamic updated graph with Python
I need to write a script in Python that will take dynamically changed data, the source of data is not matter here, and display graph on the screen.
I know how to use matplotlib, but the problem with matplotlib is that I can display graph only once, at the end of the script. I n... | common-pile/stackexchange_filtered |
How to derive this formula: $\int_a^bf(c-x)dx = \int_{c-b}^{c-a}f(x)dx$?
I'm stuck in this exercise:
$$\int_a^bf(c-x)dx = \int_{c-b}^{c-a}f(x)dx$$
My attempt is this:
$$$$
\begin{align*}
\int_a^bf(c-x)dx
&= - \int_{-a}^{-b}f(x-c)dx\\
&= \int_{-b}^{-a}f(x-c)dx
\end{align*}
$$$$
But at this point I'm not sure what to do.... | common-pile/stackexchange_filtered |
I am able to create a .csv file using Talend job and I want to convert .csv to .parquet file using tSystem component?
I have a Talend job to create a .csv file and now I want to convert .parquet format using Talend v6.5.1. Only option I can think, tSystem component to call the python script from local or directory wher... | common-pile/stackexchange_filtered |
How to split the results of formulas in one cell over multiple columns in Google Spreadsheets?
Below is actually everything that is needed to answer this question.
You can use the following formula instead:
=ArrayFormula(SPLIT(FILTER(A2:A4&","&SUM(1,3),C2:C4=TRUE),","))
Functions used:
ArrayFormula
SPLIT
FILTER
SUM... | common-pile/stackexchange_filtered |
imbalanced learning: precision vs recall trade-off
Working on a multi-class problem (five classes) for which the dataset is highly imbalanced (two classes with less than 2% samples).
Which metric between precision and recall should I pay more attention to?
print(classification_report)
precision recall ... | common-pile/stackexchange_filtered |
HTML table with vertical headers & cells with equal width
I'm trying to create a table that the header is to the left and content is at the same line with same width.
Result of my trying is in the code snippet below. Cells content is not barking in to reasonable cell size and it is render just into a very long horizont... | common-pile/stackexchange_filtered |
NMSSH does not connect with SWIFT
I just tried to use NMSSH for the first time but it simply does not connect for me
import UIKit
import NMSSH
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically fro... | common-pile/stackexchange_filtered |
Unix ksh syntax errors
I have a script that checks the records in a file ($file) and checks if the file exists and stores it either to the existing or missing array.
existing[0]=0
missing[0]=0
i=0
j=0
sourcedir=/mydir
fileslist=/mydir/filelisting.txt
fileextension=csv
while IFS='' read -r line || [ -n "$line" ]; do
... | common-pile/stackexchange_filtered |
changing culture(language) when button click
I have a website using framework 4. I made language change with global resources. on the button click code behind i use these codes.
protected void Button2_Click(object sender, EventArgs e)
{
dil = "en-US";
var ci = new CultureInfo(dil); //TO_DO Route culture
T... | common-pile/stackexchange_filtered |
Transform a list of dict from a column in a column of list
I have a column in my dataframe with list of dict inside.
Here is the first element of the 'reviews' column:
I would like to extract 'item_id' et 'recommend' key to put them in new column of the previous dataframe like this:
What libraries are you using? Wh... | common-pile/stackexchange_filtered |
How do I increase my chances to win as black in the Ruy Lopez?
The Ruy Lopez is one of the most difficult lines for me to play against. I just can't hold my position when I play as black. If I move 3... Nd4, I always get a draw at best, and usually take a loss. How can I improve my chances of winning in this situation... | common-pile/stackexchange_filtered |
VPN Masquerade and NAT
I'm trying to set up a VPS to forward traffic from a openvpn client to the internet, while forwarding incoming port 80 traffic back to the client. I've followed this guide to configure the server and create a client config. On the VPS I have the iptables rules:
-t nat -A POSTROUTING -s <IP_ADDRES... | common-pile/stackexchange_filtered |
Access variable from FormType in types twig template
I created a custom form type like this:
class PositioningFlashType extends AbstractType
{
public function setDefaultOptions(OptionsResolverInterface $resolver)
... | common-pile/stackexchange_filtered |
How does os.path.join() work?
Please help me understand how the builtin os.path.join() function works. For example:
import os
print os.path.join('cat','dog') # 'cat/dog' no surprise here
print os.path.join('cat','dog').join('fish') # 'fcat/dogicat/dogscat/dogh'
On Mac (and i guess linux too) os.name is an alias for po... | common-pile/stackexchange_filtered |
bpy remove duplicate images (.001 .002 .003 etc.)
I have this script, but its not working as expected
import bpy
for img in bpy.data.images:
print("%s" % img.name)
if( ".0" in img.name):
img.name=img.name[:-4]
print("%s" % img.name)
I want to have one texture on different materials, now i have... | common-pile/stackexchange_filtered |
Graphlab Sframe, retrieve multiple rows
I am trying to access multiple rows from a graphlab SFrame and convert them into a numpy array.
I have a database fd of 96000 rows and 4096 columns and need to retrieve the row numbers that are stored in a numpy array. The method that I have come up with is very slow. I suspect... | common-pile/stackexchange_filtered |
How to transform Columns to rows in R?
I kind of have the same problem. I have data in this kind of order: ;=column
D1 ;hurs
1 ;0.12
1 ;0.23
1 ;0.34
1 ;0.01
2 ;0.24
2 ;0.67
2 ;0.78
2 ;0.98
and I like to have it like this:
D1; X; X; X; X
1;0.12; 0.23; 0.34; 0.01;
2;0.24; 0.67; 0.78; 0.98;
I would ... | common-pile/stackexchange_filtered |
How to (chrome.tabs) refresh Popup with background script
I am opening the chrome store in a fullscreen popup.
onclick="window.open('https://chrome.google.com/webstore/detail...', 'targetWindow', 'width=' + window.outerWidth + ',height=window.outerHeight,top=' + window.screenTop + ',left=' + window.screenLeft);
After ... | common-pile/stackexchange_filtered |
How to properly get a message out of a channel in Telegram?
I'm trying to retrieve a message from a channel in telegram, I have its id, that is the id with which it is displayed in the channel, the token of the bot that is added to this channel and is the administrator (I retrieve it by email from the database) and the... | common-pile/stackexchange_filtered |
Zuul not routing to service
Zuul not routing to student-service which is registered in Eureka Server.
using Greenwich.SR1
bootstrap.yml
server:
port: 17005
# Eureka server details and its refresh time
eureka:
instance:
leaseRenewalIntervalInSeconds: 1
leaseExpirationDurationInSeconds: 2
client:
regis... | common-pile/stackexchange_filtered |
Loops in 8051 assembly? (at89s52)
I am trying to program in assembly for an at89s52 microprocessor, I have found a couple of very basic tutorials on youtube that have not helped me much since I am programming in Keil and most are in C, that is why I ask for help here.
I would like to do an insertion sort that accommoda... | common-pile/stackexchange_filtered |
I'm using WinSQL Lite and trying to use DATEPART but am not sure how
I need to group this SQL string by the hour for one USER_ID but I am unsure how to use the DATEPART function I've been reading about.
Basically, I want to get the performance data for every hour of this user from the time they start work till the time... | common-pile/stackexchange_filtered |
The new flood mapping system keeps crashing every time we try to run vulnerability assessments across the entire county.
That's because you're probably still using a traditional relational database. Geographic queries don't work the same way as regular data lookups.
What do you mean? We're just storing coordinates an... | sci-datasets/scilogues |
How to get powershell IIS Instance and associated certificate thumbprints
I am trying to list all the IIS sites and their associated certificate thumb prints.
I really just want it like
IIS Site, Thumbprint.
Seems simple enough, but I can't for the life of me get this to work. (note I want the actaull IIS site, not the... | common-pile/stackexchange_filtered |
Can I omit the verb in the second part of this sentence, after the colons?
Is this sentence grammatically correct? I mean, can I omit the verb in the second part after the colon?
Differently from other works, they consider all information usually available in social media collections: both user-provided information su... | common-pile/stackexchange_filtered |
How do I append text to the name of the file from a fullpath (string) in C?
How do I append text to the name of the file from a fullpath (string) in C?
For example:
"/home/erikas/myfile.txt" would become "/home/erikas/myfile-generated.txt"
"/home/erikas/myfile" would become "/home/erikas/myfile-generated"
"/my.director... | common-pile/stackexchange_filtered |
Date formatting in Javascript Template literals
I have the following:
$('#search').on('keyup',function(){
var value = $(this).val();
$.ajax({
type : 'POST',
url : '{{ route("search") }}',
dataType: 'json',
data: {
'_token' : '{{ csrf_token() }}',
value : value,
company_id : '{{ r... | common-pile/stackexchange_filtered |
Required: Method of moments fitting routine for the two-parameter generalized Pareto
I am currently using the evd package which fits a two-parameter GPD by maximum likelihood.
Since in small samples the MOM is superior to the ML estimation I'd like to give it a go. However, the POT package - which could do the job - is... | common-pile/stackexchange_filtered |
java.nio.file package not detecting directory changes
I want to detect files being written to a directory and so thought the Java NIO package would be suitable. However, I've ran their tester code (https://docs.oracle.com/javase/tutorial/essential/io/examples/WatchDir.java)
and it will only detect file changes made by ... | common-pile/stackexchange_filtered |
Why do we need the unit object to be the terminal object in a cartesian monoidal category?
I know almost for all the examples such as ${\mathrm{Set}}$, $\mathrm{Cat}$, e.t.c., with the categorical product being the monoidal tensor product, the unit object is the terminal object. Is this an assumption, or it can be prov... | common-pile/stackexchange_filtered |
How to deal with rat and mouse, and fox, wolf, and jackal in story books?
I don't know the difference between rat and mouse, and fox, wolf, and jackal in real life. Means that I know they are different but I can't make out who's who on seeing them.
The story books have hand painted pictures of all these animals, and so... | common-pile/stackexchange_filtered |
How to override default search in Magento?
I am working on a Magento site, and i would like to edit the default search result.
Editing search result is not editing the appearance of search result but the actual search results generated.
The idea is, if the Magento search does not return any value then i need to do a se... | common-pile/stackexchange_filtered |
How to pass default keyword for table valued function call in ADO.NET
So here's the deal. In our database, we wrap most of our reads (i.e. select statements) in table valued functions for purposes of security and modularity. So I've got a TVF which defines one or more optional parameters.
I believe having a TVF with de... | common-pile/stackexchange_filtered |
Can I modify ASP.NET session object this way?
Imagine that I have an instance (oEmp) of "Employee" class and I would like to store it session.
Session["CurrentEmp"] = oEmp;
If I modify a property in oEmp as follows:
oEmp.Ename = "Scott";
Am I referring to session item through above statement or just only "oEmp"?
Sess... | common-pile/stackexchange_filtered |
expected ';' after top level declarator, error in VS Code
I try to run this code on my mac:
#include <iostream>
#include <array>
using namespace std;
const size_t rows{2};
const size_t columns{3};
int main() {
array<array<int, columns>, rows> array1{{1, 2, 3, 4, 5, 6}};
array<array<int, columns>, rows> array2... | common-pile/stackexchange_filtered |
Parent-Child Tree in Java
I was trying to implement a class Node to build a tree of Nodes. Basically, each Node can have children, so if I specify multiple nodes I can build a tree out of it.
As an example:
node1 (the root) has node2 and node3 as children
node2 has node4 and node5 as children
The problem I am having p... | common-pile/stackexchange_filtered |
Calculating date time from start time and elapsed seconds
I have a dataframe where my index is an elapsed seconds series.
Depth_m | Temperature_degC | Salinity_PSU | OBS S9604_mV | OBS highsens S9604_mV | OBS S9602_mV | OBS S9603_mV | Time elapsed_sec
0.00 | 35.687 | 28.9931... | common-pile/stackexchange_filtered |
Getting Interface 'Response<ResBody>' incorrectly extends interface 'Response'
Im using typescript and express in node.js and when I compile it I get
When I compile from typescript I get this bug
node_modules/@types/express-serve-static-core/index.d.ts:505:18 - error TS2430: Interface 'Response<ResBody>' incorrectly ex... | common-pile/stackexchange_filtered |
Android Content Provider Test the REAL content Provider
hope you can help me ...
tl:dr
How can i write JUnit Tests which will NOT use the classes IsolatedContext and MockContentResolver ? I want to affect the REAL content Provider and not the Mock Database.
General
I have to write JUnit Tests for a special ContentPr... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.