text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
SIP Websocket to UDP proxy server
There is an ATS provider with SIP phones. It provides phones via UDP, as I understand, giving sip server, login and password for each internal call-line.
I want to write a site with browser calls ability. As I understood, searching the web, I can't make complete calls (including audio ... | common-pile/stackexchange_filtered |
Interaction terms
Suppose you have variables $X_{1}, \dots, X_{100}$ (can be discrete or continuous). If you want to test all possible interactions, should you include them all in 1 model? We are doing linear regression here.
No. That would be about $10^{30}$ interactions, which is probably too many variables for th... | common-pile/stackexchange_filtered |
Explicit probability distribution for a Gaussian family of random variables
Suppose $X_{ij}$ are random variables on a probability space $(\Omega, \mathcal{F},p)$, for each $i,j = 1,...,n$. Let me call $X = (X_{ij})_{i,j=1}^{N}$ the associated random vector, which has $N^{2}$ entries. Suppose these random variables $X_... | common-pile/stackexchange_filtered |
GLobiflow Json decoding
just need some real help here
ive been stuck on this for quite a long time
how do i get the "description" value from this json
ive tried json decode also base64encode then decode
but i cant get values when json responses are like this
its from this endpoint
https://kgsearch.googleapis.com/v1/ent... | common-pile/stackexchange_filtered |
Pulling in frequent times from API with Alamofire in Swift
I am new to Swift, and I would like to pull from the API using the get request every 5 seconds, I have done the HTTP request pulling and parsing. I just would like to know where should I put some kind of loop in my controller class.
This is my controller class ... | common-pile/stackexchange_filtered |
Discrete mathematics- Graph without any cycles
Could someone please explain this and the logic behind it?
Graph $G$ is a graph without any cycles (the definition of a cycle- closed path with at least $3$ edges and no repetitions of vertices) and with $2$ connected components. We get graph $F$, if we add one edge to gr... | common-pile/stackexchange_filtered |
I have tried to open "Jetsurveysample" from compose jetpack samples, but getting a build error, although I am using latest Android Studio 4.2
This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 4.3 or newer.
That sample is probably set up... | common-pile/stackexchange_filtered |
Synchronous PySCXML
I'm currently looking into idioms and libraries for Python helping me with state machine design for a control task.
I've found good suggestions in this other SO question: Python state-machine design.
Among the answers, PySCXML was suggested which allows to interpret State Chart XML files.
I'm concer... | common-pile/stackexchange_filtered |
MAX TOTAL SUPPLY ON ETHERSCAN IS 0
I deployed my token to MetaMask and it did not reflect the token name or the decimal. I manually had to input it. After I deployed to etherscan it is showing MAX TOTAL SUPPLY: 0 HOLDERS 0 TOTAL TRANSFERS 0. I am deploying on sepolia testnet. I am completely new to this so I'm lost. Go... | common-pile/stackexchange_filtered |
WorkManager: Dependency Issue with Kotlin
I'm getting the following error while trying to use Work Manager. I've migrated my project to AndroidX and all other architecture components are working.
def work_version = "1.0.0-alpha02"
/* Work Manager for Background Tasks */
implementation "android.arch.work:work-runtime:$w... | common-pile/stackexchange_filtered |
Android studio application notification permission off by default?
I'm debugging my app and preparing to launch it.
I'm using Onesignal to send notifications, and everything works fine. I send notifications using the Onesignal custom category.
When I send a notification it arrives, but making any sound or vibration or ... | common-pile/stackexchange_filtered |
In Diablo 3 how to start single player mode?
What I mean by single player mode is I want to create game and don't allow others to join.
Sometimes there are things I wanna do alone like finding Kanai's cube. Other people keep on wanting to do something else.
I know I can join game. There's an option for that. But how to... | common-pile/stackexchange_filtered |
Problem with WordBoundary in string patterns
I am trying to extract from a string all words that end with "-man", but the problem is that WordBoundary does not seem to work as it returns whole string ignoring actual word boundaries.
Here is the code:
mystring = "I am a big fan of Superman, Spiderman and Batman.";
Strin... | common-pile/stackexchange_filtered |
How to change the password if the shadow file has "!!"?
[root@notebook ~]# grep USER /etc/shadow
USER:!!:16577:1:90:7:::
[root@notebook ~]#
[root@notebook ~]# su - USER
[USER@notebook ~]$ id
uid=1000(USER) gid=983(GROUPN) groups=983(GROUPN),10(wheel) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[USER@... | common-pile/stackexchange_filtered |
Git/Gerrit repository organisation for Eclipse plugins
We are developing a variety of eclipse plugins and currently host them on a central SVN server. Here we host a single project for each plug-in and can grant access to them on a per-developer basis.
We wish to migrate to the combination of GIT/Gerrit. But I can not ... | common-pile/stackexchange_filtered |
prevent xml entity expansion attack with jaxb2marshaller
I have looked at @BlaiseDoughan's blog entry Preventing Entity Expansion Attacks in JAXB, and I am trying to look at ways to prevent XMLentity expansion attacks while parsing incoming web service calls using Spring's Jaxb2Marshaller.
How can I configure the XMLC... | common-pile/stackexchange_filtered |
Almost Sure convergence of sum of independent random variables
Let $\{{X_{j}}\}_{1}^{\infty}$ be independent r.v.s such that $\sum E( |X_{j}|) <\infty$. How to show that $\sum X_{j}$ converges almost surely.
Can I argue simply that for every $\epsilon>0, \exists N$ such that $\forall j,k >N, E(|X{j}-X_{k}|)<\epsilon$.... | common-pile/stackexchange_filtered |
Model class in View file is difference with model in controller, MVC C#?
Something odd occur in my website (MVC, C#)
I'm using MVC5 and async actions
Whenever my website is under pressure, e.g: 10 request per second, my model data in View file is not the same with filled model in controller,
I'm dead sure about it,
I t... | common-pile/stackexchange_filtered |
Numpy: Find unique maxima along both axes of 2d matrix
Given an n by n square matrix M, how to efficiently find all (i,j), 0 <= i,j < n where there is no k, 0 <= k < n such that:
M[i,j] < M[k,j]
M[i,j] < M[i,k]
M[i,j] < M[j,k]
M[i,j] < M[k,i]
We can assume that the matrix is upper diagonal with M[i,i] == 0 for all i.... | common-pile/stackexchange_filtered |
Why does not ANTLR4 match "of" as a word and "," as punctuation?
I have a Hello.g4 grammar file with a grammar definition:
definition : wordsWithPunctuation ;
words : (WORD)+ ;
wordsWithPunctuation : word ( word | punctuation word | word punctuation | '(' wordsWithPunctuation ')' | '"' wordsWithPunctuation '"' )* ;
NU... | common-pile/stackexchange_filtered |
Deserializing json string into generic class
I have this JSON string coming in from a form, in there I have key-value pairs (the regular json), but I don't know what keys will come in. I want to get all the key-value pairs there, loop them, then create a row in my database for each of them. That row basically just has ... | common-pile/stackexchange_filtered |
Cant unhide all child forms? vb.net
I have the flowing problem. I have a vb.net parent form with MDI children that contain sensitive information. I have made a pause button which should hide all child forms from sight, this is no problem, calling them back is. i have for testing purposes created a button which should d... | common-pile/stackexchange_filtered |
Faking SQL Server
I have application that requires SQL Server 2000 as database storage.
I do not really want to use SQL Server 2000, but I can user MySQL Server instead.
Application uses ODBC to connect to SQL Server Database.
I would like to know if it is possible to make fake SQL Server which will send and receive da... | common-pile/stackexchange_filtered |
How to install Kubuntu 18.04 on an external hard disk?
In previous versions of Ubuntu, one needed to create a swap partition and a primary partition formatted as ext4, however, Ubuntu 18.04 uses a swap file instead of a swap partition.
So just to make sure, I only need to create a primary partition and the Ubiquity in... | common-pile/stackexchange_filtered |
Outlier detection in latitude/longitude CSV file
I have a huge CSV file containing GPS points of hotels in various cities. Sample:
CITY | HOTEL | LATITUDE | LONGITUDE
Chicago | Bellevue | 41.826 | -87.689
Chicago | SuperMt | 41.924 | -87.703
Chicago | Starhotel | 44.903 | -93.215
Chicago | BestW | 4... | common-pile/stackexchange_filtered |
Show that $\sqrt{n^2+1}-n$ converges to 0
I want to use the definition of the limit to show that $\sqrt{n^2+1}-n$ converges to 0.
The definition is as follows: if $\sqrt{n^2+1}-n$ converges to 0, then $\forall \epsilon>0$, there exists an $N>0$ such that $n\ge N \implies \mid\sqrt{n^2+1}-n\mid<\epsilon$.
Now I want to ... | common-pile/stackexchange_filtered |
How do I create windows service as “not stoppable” or “not configurable”?
I have a console application,
I want it to run as service in windows machine
but I want it to be “not stoppable” and “not configurable” after creating the service
Is this your application, i.e., do you have the source code? Are you planning ... | common-pile/stackexchange_filtered |
JavaScript onclick() function not working
I have JavaScript code including several functions, the main one being CheckForm().
The function is called by clicking the 'Submit' button:
<td><input type="submit" name="submit1" id="submit1" value="Register" onclick="return CheckForm();"/></td>
But when the button is pr... | common-pile/stackexchange_filtered |
Updates getting retained Firebird 1 with ZeosLib
Delphi Xe2 + ZeosLib 7.0.3 Stable + Firebird 1.0
I am doing updates to the several tables and data is retaining on memory. It is not reflected on the database in a way that other applications can see it.
I have tried using auto-commit only and did not work.
I have also u... | common-pile/stackexchange_filtered |
Hadoop: How do multiple map tasks ensure they're not competing fo resources?
I will have 3 jobs running simultaneously in Hadoop, they're unrelated.
The input to one of them is over HTTP, slow downloads of large files.
The others are inputs from HDFS and S3N filesystems.
I'm new to building this kind of thing in Hadoop... | common-pile/stackexchange_filtered |
How to get control choices from $setting object passed to sanitize_callback
Example Code
Working with the Customizer API.
Setting added (example) like so:
$wp_customize->add_setting( 'theme_oenology_options[' . $option_parameter['name'] . ']', array(
'default' => $option_parameter['default'],
... | common-pile/stackexchange_filtered |
wso2 cpp code generation with wsdl2cpp client side with MTOM attachment
I have a soap web service exposed with axis2 (Java) which serializes POJOs, such as a Person that has a name and so on, as action responses. Moreover, I have an action which uses a DataHandler that is serialized in order to put a binary attachment ... | common-pile/stackexchange_filtered |
Gradle could not determine Java version from '14.0.1'
I have the following error when I try to build on Gradle:
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine java version from '14.0.1'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to g... | common-pile/stackexchange_filtered |
Unable to display value which is returned from Spring controller
I'm trying to display like ${mesg}, it's not displaying the content, which is coming from the Spring controller. I have tried many ways, but no luck.
<html>
<head> <meta charset="ISO-8859-1">
<title>HOME</title>
</head>
<body>
... | common-pile/stackexchange_filtered |
Set props dynamically in React Components
I am trying to set props in a React Component only if they are given in the array of object that is recieved, something like this:
This component works:
const like_content =
<div>
Total likes: <b>52</b>
</div>
<Card cols={2} dark centeredBody centeredHeader title... | common-pile/stackexchange_filtered |
Background processes mix up order of shell script execution
Can someone explain me why the script
echo one &&
echo two &
echo three &&
echo four
gives me
[1] 3692
three
four
one
two
[1]+ Done echo one && echo two
Apparently everything behind the background process is outputted first and the lin... | common-pile/stackexchange_filtered |
iPhone 5 views not resizing to correct width
I do not use auto layout and I set all my views to autoresize their subviews.
My subviews will not get the correct width and I do the following hack:
- (void)awakeFromNib {
if([CEDeviceUtils isPhone5])
{
NSUInteger width = [CEViewUtils windowSize].width;
... | common-pile/stackexchange_filtered |
Medieval abbreviation for gens [actually, igitur]
I came across an abbreviation in a text that I'd like to typeset as diplomatically as possible, but I've come across an abbreviation for gens that I'm not entirely sure how it's being abbreviated (regrettably, the quality of the scan isn't very good either). The incuna... | common-pile/stackexchange_filtered |
How are virtual addresses translated?
I understand that (for intel) the virtual address translation process is :
1. The incoming virtual address is divided into a page table number, a page number, and an offset.
2. The process desriptor base register (PDBR) in the CPU tells where the directory starts.
3. The page tab... | common-pile/stackexchange_filtered |
how to disable ejb-timer if quartz is already in place?
We have enabled quartz timer service in our jBPM server. We have created a quartz datasource and updated the timer-service in standalone.xml like below
<timer-service thread-pool-name="default" default-data-store="db-store">
<data-stores>
<database-dat... | common-pile/stackexchange_filtered |
Distance between consecutive occurrences of a character
I need to write a program that will determine the length of the spaces between successive occurrences of a given character. If the occurrences are adjacent, the space between them is considered to be 1.
I can only calculate between two signs
text = input ('enter t... | common-pile/stackexchange_filtered |
Unexpected variable error when trying PDO Insert
I have switched over to PDO using the link provided and wrote the following code only to get an error referring to the same variable containing the insert.
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING
T... | common-pile/stackexchange_filtered |
Plot over a matrix plot
I want to plot a line through a matrix plot with matplotlib to highlight specific entries in the matrix. How can I create a line at positions that are consistent with the matrix indexes?
plt.imshow(matrix, cmap = cm.Greys_r)
ax2 = plt.axes([0,0,1,1], axisbg=(1,1,1,0))
x,y = numpy.array([[0.05,... | common-pile/stackexchange_filtered |
How to reload repmgr configuration changes?
I use repmgr to provide failover to my PostgreSQL cluster.
If I change a server-specific parameter in the repmgr.conf file for one of my standbys, how do I get repmgr to recognize the changed value? For example, if I wanted to change the priority of one of the nodes.
I tried... | common-pile/stackexchange_filtered |
Backbone PUT requests and Laravel
I am working with a Backbone front end and a Laravel REST api backend, I am seeing some strange behaviour when sending a a PUT request and then trying to read that data at the API end.
If I do the following,
Input::all() this returns a NULL array, however if I explicitly state which ... | common-pile/stackexchange_filtered |
Unreliable Android Jetpack benchmarking library measurement results?
I've used Android Jetpack benchmarking framework on different non-rooted devices for some trivial calculations:
@Test
fun measurePureCalculation() {
benchmarkRule.measureRepeated {
val value = 1 * 2 * 3 * 4 * 5
... | common-pile/stackexchange_filtered |
Wordpress and vanilla session never timeout?
I deploy wordpress, vanilla and mediawiki in same server, after a long time, mediawiki has timeout but wordpress and vanilla is still on. Why? is that the wordpress and vanilla designed to never timeout?
Did you check off "remember me" when logging in? Look at the cookies i... | common-pile/stackexchange_filtered |
Correct way to use Model's method in codeIgniter's view?
From my VIEW, let's call it 'index', on a button click I would like to perform a DATABASE QUERY without loading the page again , however I cannot think of a method to so without breaking the MVC principles.
The only think that comes to mind is extremely lame, usi... | common-pile/stackexchange_filtered |
How do I run .NET programs?
As .NET is OS independent how can I run programs built/compiled on .NET 4.0 ?
Can I develop software in Ubuntu for .NET 4.0 [if yes, what i need to download, link] ?
Right now, not every Feature of 3.5 and 4.0 is supported by mono. Hope you don't need WPF or stuff like that.
Overview
Mono ... | common-pile/stackexchange_filtered |
Setting a bit field in C
I'm trying to write a function that will set a field of bits to a certain value. The function is int setField(int old, int hi, int lo, int new). I need it to take the range of bits (lo to hi) from the old value and replace them with the new value. The function must return the new value (in deci... | common-pile/stackexchange_filtered |
How to create an EntityManager instance in order to retrieve objects?
Note: I don't want to create services. It's just a simple application. In flat php this would be a piece of cake, but for some reason it's inordinately difficult in symfony/doctrine... :( The EntityManager is available in controllers, but for some re... | common-pile/stackexchange_filtered |
Amp Creates Feedback When Using Output
Title essentially sums up the problem. I have a VHT AV-RL-20R combo amp that I am trying to hook up to my computer for recording, but every time I plug in my amp via the output jack on the rear panel, both the internal speaker and my PC's audio monitors start giving some awful fee... | common-pile/stackexchange_filtered |
Rubik's Slide Proof's and Symmetries in a Rubik's Slide
$\quad$In the February edition of The Mathematical Association of America Monthly there is a article called "$\mathit{Rubik's\ on\ the\ Torus}$". Where they are dealing with solving problems involving the electronic puzzle game called the Rubik's Slide.
$\mathbf{... | common-pile/stackexchange_filtered |
Confusion with Thu Johns Twitter Laravel 4 PHP package
I am trying to use thu john's twitter-laravel package. I am trying to dynamically set the access tokens and then get the user's home timeline. It says that the method doesn't exist. But I know for sure the method exists in the Twitter class. It is giving me this er... | common-pile/stackexchange_filtered |
Send UDP packet to a public IP using Boost.asio
I want to send UDP packets to my static IP 122.***.***.*** where an UDP server listens on port 1213.
udp::resolver resolver(io_serviceSend);
udp::resolver::query query(udp::v4(),"122.***.***.***","1213");
udp::endpoint receiver_endpoint = *resolver.resolve(query)... | common-pile/stackexchange_filtered |
Flatten numpy array with sub-arrays of different dimensions
This seems like a simple enough task, but I haven't found how to do it using numpy. Consider the example array:
import numpy as np
aa = np.array([np.array([13.16]), np.array([1.58 , 1.2]), np.array([13.1]), np.array([1. , 2.6])], dtype=object)
I need a genera... | common-pile/stackexchange_filtered |
Textbox Search & Return
I am trying to script a simple text box, So when a query is entered into it, It searches Wikipedia for that query and returns the result back to my website.
The part I am having some problems with is the Wikipedia API. I have tried using it and testing it out - But have failed.
If anybody could ... | common-pile/stackexchange_filtered |
How to make like function in React Native?
Code
Detail.js
constructor(props) {
super(props);
this.state = {
liked = false
};
}
export default class Detail extends React.Component {
render() {
const { liked } = this.state;
return (
...
<TouchableOpacity
onPress{() =>
this.setState({
... | common-pile/stackexchange_filtered |
Setup Cockpit to work with Nginx Proxy Manager
We have the network setup per below
1/ Ubuntu server with Cockpit at <IP_ADDRESS>. Cockpit is accessible at https://<IP_ADDRESS>:9090
2/ Nginx proxy manager is at <IP_ADDRESS>
3/ We have setup a domain name, for the purpose of this sample, abc.com. We setup dns forwarding ... | common-pile/stackexchange_filtered |
SQL Server Compact Toolbox Not Connecting to Databases
I am using SQL Server Compact Toolbox for runtime 3.5.
When I select 'Add SQL Server Compact 3.5 Connection' I get what you can see in the following image. The problem is that after clicking 'Test Connection' and 'OK' nothing happens. The list on the left does not ... | common-pile/stackexchange_filtered |
How to access GPIO pins in Java?
Most of the libraries for accessing Java have been written for Raspberry Pi. For example, Pi4j, Framboos etc. They do not work in other hardware. Furthermore I cannot use the jdk.dio library because its full version is not available in Java SE.
I have to access the GPIO pins for AM57x. ... | common-pile/stackexchange_filtered |
Correct method for instantiating object from String containing class name (with known superclass)
I am trying to create new instances of a class (specifically a subclass of an abstract class) by using the forName(String) method.
For example, if I wanted a subclass of Number:
import static java.lang.Class.forName;
impor... | common-pile/stackexchange_filtered |
SPProductVersionJobDefinition throws Collection was modified; enumeration operation may not execute
I just finished Sp1 Upgrade in a Sp2013 Server Dev Environment. Going through the Windows Event log i discovered following error:
The Execute method of job definition Microsoft.SharePoint.Administration.SPProductVersion... | common-pile/stackexchange_filtered |
Removing characters at the end of a string using R
I have a large dataset and I would like to remove characters, starting with e, v, i at the end of a string. My dataset looks like this
P*01:01:05e1
P*01:01:05e2
P*01:01:05e3
P*01:01:05e10
P*02:02v1
P*02:02v2
P*02:01:03v2
P*05:01:01i1
P*05:01:01i8
and I want it to be... | common-pile/stackexchange_filtered |
Load csv with Graphenedb
I tried to import files to the localhost with the following Clause and has been successful:
USING PERIODIC COMMIT
LOAD CSV WITH HEADERS FROM 'file:/Users/studio/Desktop/nodiToscana.csv' AS row
CREATE (:Startup {startupName: row.Startup});
when I tried to use the same expression on Graphene it... | common-pile/stackexchange_filtered |
Android Intent-Filter for http address
I am trying to intercept a couple different links with my app, and I am having trouble with the intent-filter data parameters to do it.
Here are the 2 types of links that I want to intercept
http://www.domain.com/#id=abcdef123346
http://www.domain.com/social/landing/abcdef123456
... | common-pile/stackexchange_filtered |
How to find installed app category from PackageInfo in android
How would i access the app type or category like Games/Utilities/Social etc from PackageInfo data from installed applications?
| common-pile/stackexchange_filtered |
Server reachable from browser and unreachable from android app on same phone
I am making a connection to some server and sending some https request to it. It is running on port 443. I am inside some network which is protected by firewall. Now when i hit that server with my android phone's chrome browser,it gives the ex... | common-pile/stackexchange_filtered |
The apk file of my project cannot be installed and I get the Instant Ran massage
When I run it in my phone or an emulator, it cannot be installed and the icon is not shown.
I get the "Instant Run performed a full build and install since the installation on the device does not match local build on disk." message.
Here ... | common-pile/stackexchange_filtered |
Optional chaining, but for a variable?
For something like the following:
"use strict";
let a = 1;
console.log(eval(`
a++;
let b=4;
`));
console.log(`a=${a}, b=${b}`);
// ReferenceError: b is not defined
Is it possible to do something where it prints undefined or something if the variable is not there inst... | common-pile/stackexchange_filtered |
iPhone/iPad WebView Example
Where can I find a simple compilable example on how to create and use a UIWebView?
Any non-interface builder examples?
Just give up and learn Objective-C and Interface Builder. It's a harsh advice but that's just inevitable if you want to write an iPhone app. Think of it as a way to learn a... | common-pile/stackexchange_filtered |
How to interpret large Mean Absolute/Squared Error in a regression model on sklearn
I am new to ML and trying understand evaluation metrics for regression. I found Mean Absoulute Error, Mean Squared Error and R2 Score are commonly used for regression.
I have the following y_true and y_pred values for a beginner level r... | common-pile/stackexchange_filtered |
How to read the deleted value using a variable
I'm trying to get @OldValue = (select @fieldname from #del) to give me the value. Instead I get the column name for the result. Is there a way to write this so it can output the value. If I write it out like this @OldValue = (select deleted.ID from #del) I get the corr... | common-pile/stackexchange_filtered |
WooCommerce Upsells Same Order as Admin
really hoping someone can help with this as I thought it would be far more simple!
Long story short, I have created a script that populates the upsells of WooCommerce products, all works great using the API and they are there. They show on the product page as expected but in a co... | common-pile/stackexchange_filtered |
What are crisp packets made from?
What are crisp packets made from, specifically Tyrrells or Walkers. I am doing a school project on single use plastic crisp packets. I am finding it difficult to find information online.
I'm not familiar with the brands you name (they don't sell those where I live), but crisps bags ar... | common-pile/stackexchange_filtered |
C : Runtime Error Verdict (Help debugging)
I am working on a problem on an Online Judge ( link here ), and I keep getting a runtime error verdict each time I submit my solution. I have been looking at it for a while now, I still can't figure out what's wrong with it. I have also looked up the typical reasons behind a r... | common-pile/stackexchange_filtered |
Carrierwave uploading file - undefined method `delete' for nil:NilClass
I'm trying to upload a file in a form using carrierwave gem, but I get the following error:
NoMethodError in DashboardController#create : undefined method `delete' for nil:NilClass
What am I doing wrong?
Request Parameters:
{"utf8"=>"✓",
"authenti... | common-pile/stackexchange_filtered |
Extend JavaScript/JQuery accordion menu when JS is disabled
Question: Is it possible to extend all accordion menus on page load if JS has been disabled?
Background: I have a client that wants to show/hide with a slide effect their "Sitemap" page but is worried about Search engines not getting to the links if they are h... | common-pile/stackexchange_filtered |
Form inline not working as expected with React-Bootstrap
I am trying to get to grips with React-Bootstrap and was attempting to replicate a navbar similar to that in their documentation, but my Form component is not displaying as shown in the documentation with the inline attribute. My button appears under my form, not... | common-pile/stackexchange_filtered |
Why is jQuery .animate() jumpy?
On https://xjour.com I have a jumpy navigation animation.
It does jump on FF and Chrome.
Works as expected on Edge and mobile.
I made a JSFiddle to reproduce the problem.
Here it works as expected though.
Please click outside the navigation to close it — not on the links.
https://jsfiddl... | common-pile/stackexchange_filtered |
SQL Server: Apply different multipliers by date
I have a table that records sales and I want a report on how much tax was paid on each item. The basic rule is all sales before April 1st had a .52% tax, all sales after that date will have a 0.5% tax.
I'm trying to get this using the following query
select ItemCode,
... | common-pile/stackexchange_filtered |
The connection was reset using RabbitMQ
Helo,
I am really new at rabbitmq. I was trying to establish a rabbitmq router and send him a HelloWorld in python using pika.
In terminal i do sudo rabbitmq-server start. I can enter localhost:15672. But when i try to connect to localhost:5672 appears "AMQP" for one second and t... | common-pile/stackexchange_filtered |
Pivot table: Creating a unique data list and sum totals from data set (all with a filter!)
I am looking to create a consolidated pivot table (similar to the one shown in Pivot Table - Keys from multiple columns) but the source table also contains another column which lists department names. I'm struggling to create th... | common-pile/stackexchange_filtered |
File pointer - sending and reception in a function
Python 2.7
Download a test file from: www.py4inf.com/code/mbox.txt
Briefly, I need list all lines that start with 'From' and take only the mail address. Selecting line by line.
If the condition is true, write in other file the ( only) mail address (result). I could wro... | common-pile/stackexchange_filtered |
How to download all files from a webpage and find where HTTP requests are being made in the code?
I'm learning frontend development and browsing through websites trying to learn from what is on the web. One thing that escapes me is that when I work locally I just make a fetch request to localhost:PORT/... to my backend... | common-pile/stackexchange_filtered |
CompletableFuture join() doesn't seem to wait for completion
I am facing an issue where I am executing two CompletableFuture objects sequentially. My intent is for the first one to complete, and only after that to begin executing the second one. So in other words, the second is dependent on completion of the first.
I c... | common-pile/stackexchange_filtered |
How to compare similarity between two strings (other than English language) in Python
I want to find the similarity between the two strings
Example
string1 = "One"
string2 = "one"
And I expect the answer to be between 0 and 1. For the above two strings, we get 1.
Right now I'm using "Jellyfish", a module in python whi... | common-pile/stackexchange_filtered |
Why is an indefinite matrix tough to solve for direct and iterative solvers?
One can sometimes read the rather vague comment that indefinite matrices are "tough to solve" by iterative and direct solvers.
An example would be a saddle point system that arises from the numerical solution of the Stokes equations. For this ... | common-pile/stackexchange_filtered |
Specification curve "choices" plot using ggplot2
I have a small dataset of estimates from many regressions of an outcome variable on a main treatment variable and then various sets of control variables (in fact, all possible combinations of those controls variables). The table of estimates is as follows:
df <-
structur... | common-pile/stackexchange_filtered |
Execute single program on boot, no menus
I'm trying to something like a kiosk.
So, I'm creating a custom install of Ubuntu Desktop 14.04 using Ubuntu-Builder, and I'm simply trying to have a program start up right on boot. I do not want the global menu bar on top to display, or the side bar with the short cuts to appli... | common-pile/stackexchange_filtered |
Custom Collection in Doctrine2
Just starting to work with Doctrine2, and am wondering how/if I can use a custom collection class. Searches point me to this part of the documentation:
Collection-valued persistent fields and properties must be defined in terms of the Doctrine\Common\Collections\Collection interface. The... | common-pile/stackexchange_filtered |
Give an example of Tietze extension theorem?
Give an example of Tietze extension theorem?
I know the theorem definition, but i could not able to find the example
Pliz help me
Let $\ell^\infty$ be the space of all bounded sequences of complex numbers, endowed with the metric$$d_\infty\bigl((x_n)_{n\in\mathbb N},(y... | common-pile/stackexchange_filtered |
Does manipulating NEWID() still make it unique?
I've read quite a few articles and SO posts on NEWID() when used for Unique ID's. I'm trying to find out if the function is good for my records when creating a composite primary key.
One's that caught my eye were the ones that manipulate NEWID() in some way to generate an... | common-pile/stackexchange_filtered |
Moving values from one table to another
I am displaying my data from mysql to a table using spring, axios and vue Js. When I click the data in my table row I am able to alert the data. What I want is when I click the data it should appear or move to another different table or list within the same page.How can I go abou... | common-pile/stackexchange_filtered |
Automatically scroll to the bottom of a text area
I have a text area with scroll bar. At regular intervals, I am adding new lines of text to it. I would like the text area to automatically scroll to the bottom-most entry (the newest one) whenever a new line is added. How can I accomplish this?
textAreaStatus = new WebT... | common-pile/stackexchange_filtered |
Show notification by an Android app through service running in background checking server (volley) even when the app is closed
As stated in the question, I want a background process to run from an app (daily at 21:30) which makes a volley request to the server and display a notification depending upon the result. On cl... | common-pile/stackexchange_filtered |
Inferring a Markov chain from its invariant measure
Given a probability measure $p$ on $\{1,\dots,n\}$ assumed to be the invariant measure of some irreducible ergodic Markov chain with unknown transition matrix $P$, i.e., $p = pP$, what (if any) problems about inferring a unique/optimal $P$ have been considered?
Examp... | common-pile/stackexchange_filtered |
how to create a 30% off promotion with flat shipping and exclude one category
I want to create a promotion that gives flat shipping rate and and 30% discount as well but I want to exclude one sale category from it.
I made one myself for the discount but whenever I add anything from the sale category the code doesn't wo... | common-pile/stackexchange_filtered |
When using Behave, is it possible to pass a variable into the 'before_all' function in the environment.py file?
I'm using Behave and I have multiple proxies to use for different testing requirements. I've got all the proxy information in my environment.py file, but I'd like to be able to do something like run behave .\... | common-pile/stackexchange_filtered |
Using Ansible to set new Junos OS User
Im trying to create a new user for my vMX router running Junos OS. The user needs to be a super-user with the following credentials:
username: admin
password: admin123
Doing this directly from the command line is easy, I simply change to edit mode and type the following command
se... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.