text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
How do I create my c sharp object to match my RestSharp XML response?
I just started to work with RestSharp and using the NextFlix API have been able to successfully create my Oauth tokens and request data from NetFlix. But for some reason I can not seem to create my objects to match the return XML correctly.
My code:... | common-pile/stackexchange_filtered |
Multiple resolutions custom UI strategy
I made my last iOS apps for iOS4 when I didn't have to worry too much about different scales and resolutions.
I made custom tableview cells with filling multiple CGRect programmatically without using Interface Builder. But this doesn't feel like a smart thing to do with 5 or mor... | common-pile/stackexchange_filtered |
How do I parse an individual entry from XML using PHP?
I am trying to parse an individual element from an XML string using PHP. The issue is that this individual element occurs before the entries start. The XML is below:
<?xml version="1.0" encoding="UTF-8"?>
<feed gd:kind="shopping#products" gd:etag=""l... | common-pile/stackexchange_filtered |
Get last h1 tag before clicked element
When a user clicks an element on a page, I need to find the closest h1 tag above the clicked element and get it's html content.
Given the below html:
<div>
<h1>This is header 1</h1>
<div>
<span> some text</span><br>
<span> some text</span><br>
<span> some text</... | common-pile/stackexchange_filtered |
Can I create a Druid lookup using time as a dimension?
I am able to build lookups like
{
"type":"lookup",
"dimension":"type",
"outputName":"type_name",
"outputType": "STRING",
"retainMissingValue":true,
"lookup":{"type": "map", "map":
{"0": "Unknown",
"1": "Mobile(Other)",
"2": "Desktop/Notebook",
"3": "Connected/S... | common-pile/stackexchange_filtered |
Websphere App Server <IP_ADDRESS> - IBM Java 1.6, Apache Wink, Rest Client TLSv1.2
Recently upgraded websphere app server to TLSv1.2. Prior, with TLSv1, was able to interface with REST client using combination of javax.ws.rs, org.glassfish.jersey and javax.net.ssl. Wasn't able to get working once app server upgraded TL... | common-pile/stackexchange_filtered |
Why does it return 0?
The following code is a recursion example which returns how many numbers between 0 and 9 (including 9) are in the given String argument:
public int sayiAdediBul(String str){
int holder = 0;
if (sayi == 9) { //base case
for (int a = 0; a < str.length(); a++) {
if(Integer.parseInt(str... | common-pile/stackexchange_filtered |
Custom Keyboard event in windows side
CTRL + C means Copy
CTRL + V means Paste
I want to write my custom keyboard event like above.
As instance,
I have e-mail adress
<EMAIL_ADDRESS>
If ı enter CTRL + W ı want to write my e-mail adress automaticly where ı paste it.
How can ı do it in windows side ?
or I must write code... | common-pile/stackexchange_filtered |
Centos 7 stopped detecting all RAM on system?
After months of working fine, the BIOS for my Centos 7 installation suddenly maps the wrong amount of memory to the kernel. I have 8 GB of RAM installed and the SO only maps 3.2 GB of RAM. I can't understand why.
This is all the info that I believe to be of concern, but if ... | common-pile/stackexchange_filtered |
Upload and play a song
i'm trying to upload and play a song with HTML5. I'm using JavaScript to upload the file to the server and jPlayer to play the song but i'm having issues whit this plug-in.
This is my code:
$(document).ready(function() {
$(this)
.bind("dragenter", function(event) {
... | common-pile/stackexchange_filtered |
exponentially weighted average c++ nested for loops
I'm looking to implement an exponentially weighted moving average with a sliding window using data that I am pulling from a large data set.
The code works but the results are definitely not what they should be and I can't seem to figure out why. Here is my code and p... | common-pile/stackexchange_filtered |
When should you validate a JWT token in a React App?
I recently implemented JWT tokens in my React + ASP.NET Core 6 Web application.
When a user signs in, the request is sent via HTTP request to the server to issue a JWT token
back to the client. The client then sends another request to validate the JWT token received,... | common-pile/stackexchange_filtered |
Chrome redownloading the same Excel file despite it being replaced on the server?
We uploaded an updated version of an Excel file to our client portal. Tested it on our test account and it downloads the most up-to-date file.
The client that needs to retrieve it is using Chrome and when they download it they say they ke... | common-pile/stackexchange_filtered |
Making \xrightarrow longer but without using spaces
I have this table, and as you can see I make the last arrow longer with loads of spaces. Is there a better way to make it as long as the other \plusarrows but at the same time with a centered text (only the equal sign)?
\documentclass[a4paper]{article}
\usepackage{ams... | common-pile/stackexchange_filtered |
task based async pattern for wcf
I am implementing task based async pattern for wcf. The method includes stored procedure execution and lots of processing on the data it got. As well it throws an exception
the question is
how to implement that
option 1.
*await command.ExecuteScalarAsync();
//run 10000 lines of processi... | common-pile/stackexchange_filtered |
Rich domain model vs strategy pattern in DDD
I've recently watched a few Pluralshigh courses on DDD by Vladimir Khorikov. He was encouraging to create a rich instead of anemic domain models. It all looked very nice in a small test-project, however I still have no idea how to put extensive business logic inside rich dom... | common-pile/stackexchange_filtered |
Weird JSONP response in Facebook
I'm wondering what is the reason for using following JSONP response syntax:
Under URL: https://ect.channel.facebook.com/probe?mode=stream&format=json
There is:
for (;;); {"t":"heartbeat"}
{"t":"heartbeat"}
{"t":"continue","seq":0}
My question is, what exactly does for(;;); in this JSON... | common-pile/stackexchange_filtered |
Getting the tab URL back to the event script
I'm trying to make an extension that simply gets the URL of the current tab, parses it to get the numerical ID, and opens a new tab with a URL based on that ID.
Using an event.js script that executes inject.js and the latter should get and return the URL. Based on some othe... | common-pile/stackexchange_filtered |
The best way for a WAR file to receive data from an external file
I have a WAR file that requires additional data from an external config file residing in the same folder as the WAR file.
But once I deploy them to Tomcat, the WAR file and the config file will be residing in different places right?
Do I need to insert... | common-pile/stackexchange_filtered |
xargs overrides dialog's exit status
I have a dialog created with the following code:
exec 3>&1
selection=$(echo " --backtitle \"Patches\"
--extra-button --extra-label \"See File List\"
--title \"Patches\" --clear --ok-label \"Create\" --cancel-label \"Exit\"
--menu \"Please select:\" $HEIGHT $WID... | common-pile/stackexchange_filtered |
i don't inderstand the problem in my first redux counter
i have an error in my code
Failed to compile
./src/components/counterTemp.js
Attempted import error: 'decrement' is not exported from '../action/indexAction'.
there is my code>> https://github.com/ennouri0maak/my-error
ther is the exact error
Well, you've to be ... | common-pile/stackexchange_filtered |
Transformation from Android's tilt and orientation of stylus to tiltX and tiltY
I'm calling the followind methods in Android:
var tilt = MotionEvent.getAxisValue(MotionEvent.AXIS_TILT);
var orientation = MotionEvent.getAxisValue(MotionEvent.AXIS_ORIENTATION);
Now I want to translate above values to tiltX and tiltY def... | common-pile/stackexchange_filtered |
Can the owner of an attached file be set to a queue?
My app's users need to be able to view and edit each other's files that they have attached to records. So my idea was to put my users into a Queue and then set the owner to that Queue on upload.
I was able to set the owner to another user by setting the OwnerId on Co... | common-pile/stackexchange_filtered |
Return something that's allocated on the stack
I have the following simplified code, where a struct A contains a certain attribute. I'd like to create new instances of A from an existing version of that attribute, but how do I make the lifetime of the attribute's new value last past the function call?
pub struct A<'a> ... | common-pile/stackexchange_filtered |
how do i search for certain word in a website?
Is there any way to search within a website without manually checking out every link?
Suppose there is some website www.somewebsite.com and I want to search for a word in all of the pages www.somewebsite.com/1, www.somewebsite.com/2, and so on. Is there any way to do it wi... | common-pile/stackexchange_filtered |
How to save multiple cookies?
I am creating a website where user will come and do some task. Now what I want is, if user 'X' comes, a cookie should be saved with name 'X' in the browser. And if user 'Y' comes then cookie for 'Y' user should also be saved. But cookie of 'X' should not be deleted or overwrite.
Now suppos... | common-pile/stackexchange_filtered |
Map File Editor
I'm Creating an Offline Map for Android.But i only need a certain part of the Map.At the moment I can View my whole country using Mapsforge.
The map is provided by Mapsforge .What I want is to get some continent of my country. I don't want to use MOBAC as the files are too large.
| common-pile/stackexchange_filtered |
How to integrate Ember.JS and Keycloak SSO system
My question is quite simple : does anybody know how to integrate Ember.JS and Keycloak (the SSO system) ? We currently face a problem using the Keycloak JS Bower library (https://github.com/keycloak/keycloak-js-bower) to redirect users to Keycloak own login page, and to... | common-pile/stackexchange_filtered |
impose order (not sorting) using comparator on a wrapper class of a list in Java
I have a class, person. it has Age, Name, Height, etc.
I am creating a class called PersonCollection which is a wrapper of a list (an ArrayList).
I will like to be able to compare Person objects using the PersonCollection class, Which mean... | common-pile/stackexchange_filtered |
Can the real line be partitioned into two sets, each with positive Lebesgue measure and no interior points?
Is there such example that $A\subset \mathbb{R}$, such that both $A$ and $\mathbb{R}\backslash A$ are sets without interior points and with positive Lebesgue measure?
Isn't the union of two nowhere dense sets no... | common-pile/stackexchange_filtered |
What's the advantage of using Fitness versus automated Integration Tests?
What's the advantage of using Fitness versus automated Integration Tests? I'm struggling to see exactly where Fitness fits in when aiming to deliver a fully tested solution. Surely, if a developer has unit and integrate tested their code then th... | common-pile/stackexchange_filtered |
How to pass a mutated state to a different page?
In my App.js, I'm creating a Route as such:
<Route
exact path='/tools/ndalink'
render={(props) => (
<React.Fragment>
<Header />
<LinkPage {...props} brokerID={this.state.brokerID}></LinkPage>
... | common-pile/stackexchange_filtered |
Nature of JS bound functions and function invocation operator
var obj = {};
var r1 = (obj['toString'])();
var m1 = obj['toString'];
var r2 = m1();
var r3 = (obj.toString)();
var m2 = obj.toString;
var r4 = m2();
r1 and r3 expectedly contain correct result: "[object Object]", while r2 and r4 contain "[object Undefine... | common-pile/stackexchange_filtered |
Magnetic Sensor to GPS heading in Gazebo?
I have a magnetometer sensor in Gazebo running, but want to convert it to a GPS heading. I additionally have the navsatfix plugin working (Would be nice if there was a heading in that somehow as well). Does anyone know how to get the GPS heading, or if there is a plugin that... | common-pile/stackexchange_filtered |
Filter SQL column based on value of another column
Here is a SQL table "OptionValue" :
t_date strike
1/1/2011 89
1/1/2011 105
1/2/2011 70
1/2/2011 82
and another table "PriceValue":
t_date price
1/1/2011 100
1/2/2011 93
What I'm wanting to do, is s... | common-pile/stackexchange_filtered |
Generating random sample from csv file, whilst skipping rows with certain values
I'm trying to generate a random subsample of 5000 rows from a .csv file containing tens of thousands of rows. The df contains two columns: 'JPG' and 'NAME'.
I have generated a random subsample with the following code:
import pandas as pd
... | common-pile/stackexchange_filtered |
GCC & binutils build - C compiler cannot create executables
I'm trying to build gcc-5.3 and binutils-2.26. I've done it like this:
mkdir gcc; cd gcc
wget http://path/to/gcc-5.3.0.tar.bz2
wget http://path/to/binutils-2.26.tar.bz2
tar xf gcc-5.3.0.tar.bz2
tar xf binutils-2.26.tar.bz2
cd gcc-5.3.0
contrib/download_prereq... | common-pile/stackexchange_filtered |
Are the highlights in this photo a byproduct of the vintage lens or were water particles introduced during shooting?
The effect seen in this image is popular among garden photographers and most of the time vintage lenses are used. In this case the m42 helios-44m 58mm f2, a lens which i ordered and am anxiously waitin... | common-pile/stackexchange_filtered |
Filter stream distinct
I have a stream over a simple Java data class like:
class Developer{
private Long id;
private String name;
private Integer codePost;
private Integer codeLevel;
}
I would like to apply this filter to my stream :
if 2 dev has the same codePost with different codeExperience keep th... | common-pile/stackexchange_filtered |
Derivative of a Wiener integral using Ito formula
Given the process $X_t=\int_0^t g_s\,dW_s$, compute $dX_t$ using the Ito formula.
The Ito formula says that, given:
$$f(t,X_t)=f(0,X_0)+\int_0^t\frac{\partial f}{\partial s}(s,X_s)\,ds+\int_0^t\frac{\partial f}{\partial x}(s,X_s)\,dX_s+\frac{1}{2}\int_0^t\frac{\partia... | common-pile/stackexchange_filtered |
Localization not working in .NET6 Razor Pages project
I was trying to get localization to work in my 'real' project, but was not able to do so. So I created a new stock .NET6 Razor Pages project to test localization in a fresh environment. However I am not quite able to do that there as well. At this point I have read ... | common-pile/stackexchange_filtered |
Saving entity with Spring JPA Repository resets enum ttype value
I have an TimelineEntity entity, that uses HoTimelineType enum with custom integer value. That custom integer value is stored in the database. Implemented via Using @PostLoad and @PrePersist Annotations
Sprint JPA Repository is used to save and get entiti... | common-pile/stackexchange_filtered |
MessageBox.Show in UI Thread
this.Dispatcher.InvokeAsync(
() => {
MessageBoxResult result = MessageBox.Show("111111111111111111111111", "Child process failed", MessageBoxButton.OK);
}
);
this.Dispatcher.InvokeAsync(
() => {
MessageBoxResult result = MessageBox.Show("222222... | common-pile/stackexchange_filtered |
Cannot import declaration file
I'm trying to set up some test for my RESTAPI server. I use typescript.
I tried to import chai and chai-http using the ES6 syntax, but apparently, it's not supported (Github issue here ). I get an error, so I had to require the files directly.
var chai = require('chai')
, chaiHttp = r... | common-pile/stackexchange_filtered |
Why does the "m" key disable my text editor?
Sometimes, it's the "o" key, but lately it's been the "m" key.
When I hit the "m" key, either by typing a message letter by letter or using Swype, my editing stops. I cannot recover without closing my editor and getting back in. Sometimes, I have to completely reboot my ph... | common-pile/stackexchange_filtered |
How to load library scripts in admin from plugins in noConflict wrapper?
For my plugin I need to make a meta box for some custom fields in my CPT (xyz), and to organize the fields, I need to implement tabs. And I's taught to load jQuery/JavaScripts using wp_enqueue_script(), so from my plugin, I entered the following (... | common-pile/stackexchange_filtered |
DeclarationError: Identifier not found or not unique. --> tests/4_Ballot_test.sol:66:9: | 66 | Request storage request = requests[index]; | ^^^^^^^
I identify no typos in my code, but it keeps returning that error message - DeclarationError: Identifier not found or not unique. --> tests/4_Ballot_test.sol:66:9: | 66 | R... | common-pile/stackexchange_filtered |
How can I export Apache Solr settings?
I selected entity types and bundles in admin/config/search/apachesolr. So is there any way to featurize or export these settings? If it can be done by Strongram module which variable I should use?
| common-pile/stackexchange_filtered |
Why are allyl halides reactive towards both SN1 and Sn2 reactions?
I know that allyl halides are reactive towards SN1 reactions due to the stabilization of carbocation due to resonance but why are they reactive towards SN2 too?
I actually read that allyl halides are more reactive towards SN2 than primary alkyl halide... | common-pile/stackexchange_filtered |
How to send email with attachment of file without extension?
I created C# Console App and I can't send email with file attachment named "testfile" and has no extension.
It successfully sends, but with only the first attachment ("test.png")
How can I send this file?
Here is my code:
internal static void SendTest()
{
... | common-pile/stackexchange_filtered |
Replacing the colon operator with an equivalent vectorizable solution
My current code does something like this:
for offset = 0:0.9:max_offset :
x = offset:step_size:max_value;
[...]
end
I would like to vectorize and remove the for loop to make it faster, but if I try making offset a vector, the colon operato... | common-pile/stackexchange_filtered |
How to get component attached resources programmatically?
JSF: how to get component attached resources programmatically? For example,
<h:componentA>
<h:outputStylesheet library="foo" name="bar.css" target="head"/>
</h:componentA>
How to get resources attached to the componentA inside the component renderer?
public v... | common-pile/stackexchange_filtered |
How to count number of words found in a string in c
I'm trying to write a program which counts the number of words found in a string, however the program which I wrote counts the number of spaces. How do I construct this program - as efficient as possible - to count the number of words? What do I do say the string cont... | common-pile/stackexchange_filtered |
Setting a data/spend limit for Looker Studio user with @DS_USER_EMAIL parameter
We estimate Looker Studio reports spend by user independently.
In order to limit excessive querying through dashboards users, I added below to the original BigQuery Custom SQL source.
with check_user as (
select
case when count(*) then ... | common-pile/stackexchange_filtered |
Update items in a listview in real time with Xamarin forms pcl - c #
My goal is to make the update of a listview of records in real time.
in the load page i set:
List<Myobjetcs> myitems = new List<Myobjects>();
...
...
listView.IsVisible = false;
listView.RowHeight = 55;
listView.IsPullToRefres... | common-pile/stackexchange_filtered |
SQL/Navision DateTime Issue
I don't know if anyone else has experiencing this issue before
I have DateTime Data in a MsSQl table but when displaying the same data in Navison 2013, it is displaying the time wrongly.
2018-12-14 08:20:22.000 is being displayed as 14-12-18 11:20:22 AM
Any suggestions ?
Thanks in Advance
... | common-pile/stackexchange_filtered |
How to keep 2 digits after decimal in a float through javascript
I've a number as 0.233333333333
I want it to show 0.23 instead.
I know the function named toFixed() for that purpose.
I don't find the exact html element to add a event handler.
I want to manipulate the Dom with jQuery/javascript so that the toFixed funct... | common-pile/stackexchange_filtered |
Howto migrate from networking to systemd-networkd with dynamic failover
Systemd's systemd-networkd can be used to replace the existing networking system on Raspbian.
How does it work with Raspbian on a Raspberry Pi with two interfaces for ethernet and wlan? Can I also realize dynamic failover for them?
Tested on a Ra... | common-pile/stackexchange_filtered |
Running foreach without returning any value in R
I have a function doSomething() which runs in a foreach loop and as a result saves some calculations as .csv files. Hence I have no need for a return value of foreach, in fact I don't want a return value because it clutters my memory to the point where I cannot run as ma... | common-pile/stackexchange_filtered |
How do I delete a column that contains only zeros in Pandas?
I currently have a dataframe consisting of columns with 1's and 0's as values, I would like to iterate through the columns and delete the ones that are made up of only 0's. Here's what I have tried so far:
ones = []
zeros = []
for year in years:
for i in ... | common-pile/stackexchange_filtered |
Access database informix using Node.JS
I see this question 2 years ago but any kind of solution How to install informix on node.js?.
I'm trying to access informix using nodejs in a Windows enviroment, I try some npm packages but didnt have a good result and others need to be only on Linux.
Thanks for any suggestion, bt... | common-pile/stackexchange_filtered |
"as" keyword in c# returns null data
How do I get the base class data into the child class object when using keyword as. I tried the below code but it returns null data.
class BaseC
{
public int BaseId { get; set; }
public string BaseName { get; set; }
}
class DerivedC: BaseC
{
public int DerivedId { get; ... | common-pile/stackexchange_filtered |
how to hide a text entry in the print preview c#
There is no error showing. My selection is not working, I need to hide a specific field. If the field is empty the title of that field should be hidden.
I am using a printpreviewdialog to preview the details.
my code:
private void DVPrintDocument_PrintPage(object send... | common-pile/stackexchange_filtered |
merge two files on basis of common data
I have two files. First file contains the userid and Name. Second file consists of userid and a number value for which that user id has access on. My requirement is to use the contents of both files and copy the output in third file in this format.
File#1 contents :
jaina39 Aayus... | common-pile/stackexchange_filtered |
Calculating distance between two geographic coordinates in MongoDB aggregation pipeline
I have a MongoDB collection containing documents with geographic coordinates stored as GeoJSON objects. Each document represents an item with two locations (location_1 and location_2). Here's an example document structure:
[
{
... | common-pile/stackexchange_filtered |
How long does it take for a black hole to form for an external observer?
The well-known fable of an astronaut sending signals out to an external observer while falling toward an event horizon states that the time lapse between such signals becomes greater even if in the astronaut sends them out periodically (as judged ... | common-pile/stackexchange_filtered |
Why dynamically resizing a string causes a crash?
Consider code:
char *word = NULL; // Pointer at buffered string.
int size = 0; // Size of buffered string.
int index = 0; // Write index.
char c; ... | common-pile/stackexchange_filtered |
procedure dont receive char data in mysql
This procedure help us to make a little easier to add registers to our database
I have 4 variables declared outside the procedure(id_usuario, des, monto, id_tipo)
id_usuario,monto and id_tipo are integers and des is char
The main problem is that if i print des variable in the c... | common-pile/stackexchange_filtered |
cut image out of div to reveal background
Is it possible to cutout an image from a div revealing the background image?
I have a vertically striped background with a div that covers most of the background. The div is filled solid black. I would like an image(which is really just an outline) somewhere inside that div to ... | common-pile/stackexchange_filtered |
How to display figures instead of letters in position analysis notation in ChessBase?
I just installed Deep Fritz 14 with ChessBase. By default the notation in deep position analysis looks like this (only letters, no chess figures):
I would like to make it look like this:
How do I do this?
Nevermind, figured it out... | common-pile/stackexchange_filtered |
django : unique name for object within foreign-key set
I'm trying to upload files for an article model. Since an object can have multiple images, I'm using a foreign-key from file model to my article model. However, I want all the files to have unique titles. Herez the code snippet.
class Article(models.Model):
na... | common-pile/stackexchange_filtered |
R: calculate value based on the previous row
I would like to calculate how many trees I have left every year, if I have a source tree population in year n, and I have how many trees have been removed every year. I can't figure out how to properly update my 'remained trees value'?
My aproach:
trees = 10
year = c(1,2,3,4... | common-pile/stackexchange_filtered |
What do I do when my joke non-answer is accepted?
It appears my joke non-answer was accepted by the questioner for some reason. Obviously, this does a disservice to anyone who might run across the question later on. Obviously, I voted up the other, better answers, but my answer will still be nailed to the top of the ... | common-pile/stackexchange_filtered |
Swift how to know currently focused object by accessibility VoiceOver engine
I need to know which element is currently become focused by accessibility focus engine. In a simple case, let' say I have come cell with a couple of label. I need to know (i.e. print on console, or doing other stuff) which object is currently ... | common-pile/stackexchange_filtered |
How can I send a contact from one Android to another?
While I can chose Share by a contact on my Droid's contact list, the Droid on the other end seems unable to open, or really do anything with, the resulting attachment if I receive it via Gmail or the normal mail client. Am I missing something? How do I import what I... | common-pile/stackexchange_filtered |
Kotlin: Why are unary plus/minus not able to infer generic type from assignment?
Why are unary plus/minus not able to infer generic type from assignment?
Using invoke, for example: inline operator fun <reified T> invoke(): T
You can call the method and are able to use it... for example val foo: Long = this()
But, using... | common-pile/stackexchange_filtered |
Adding text to Settings Saved in Wordpress
I am building a custom plugin in wordpress with a settings page.
Right now everything works as expected however I want to add more functionality.
In this case when you save the settings the page reloads with a message in the top which says Settings saved. I will like to add ... | common-pile/stackexchange_filtered |
Is this operation meaningful or it is a mistake in the book?
I've been reading Nakahara's "Geometry, Topology and Physics" and found something quite strange on the section 10.3.3 which discusses the geometrical meaning of the curvature of a connection. It is possible to find there the following text:
We first show tha... | common-pile/stackexchange_filtered |
Solving system of equation using Macaulay2
As an algebraic curve, the Klein quartic can be viewed as a projective algebraic curve over the complex numbers $\mathbb{C}$, defined by the following quartic equation in homogeneous coordinates $[x:y:z]$ on $\mathbb{P}^2_{\mathbb{C}}$:
$$x^3 y + y^3 z + z^3 x = 0.$$
Now we wa... | common-pile/stackexchange_filtered |
WooCommerce Nodejs Response Error
I am trying to get a product detail from WordPress woo-commerce store. For that i am using nodejs woo-commerce module
But when i make a request i get the following error from server
{"status":"FAIL","message":"Invalid Signature - provided signature does not match"}
and 401 Unauthor... | common-pile/stackexchange_filtered |
Usage of backslash in base64 string padding "\=\="
I have a file that would appear to be named a base64 encoded string that is padded with "==" when viewed in macOS Finder app. However, when I drag the file over into a shell using bash 4.4 to use with the "file" command it adds two backslashes to the file's name and sh... | common-pile/stackexchange_filtered |
ApexCharts only shows 5 labels (type datetime)
I have a chart with one value per day. Somehow it only labels 5 days on the x-axis.
How can I make it label all the days between the set min and max date (as far as I know tickAmount does not work with type datetime)?
And how can I remove the offset on the x-axis so that t... | common-pile/stackexchange_filtered |
Is there a description of sheaf cohomology in algebraic-topological terms?
Is there a description of of sheaf cohomology for the sheaf of sections of a continuous function in terms of common constructions in Algebraic Topology?
In more detail: Any sheaf on a space X can be described as the sheaf of sections of some con... | common-pile/stackexchange_filtered |
Spring boot ResponseEntity not showing response in proper format if it cotains xml data as string
If response object contains the xml data in string format then it shows response in improper format.
@ApiResponses(value = { @ApiResponse(responseCode = "404", description = "Resource name not found"),
@ApiRe... | common-pile/stackexchange_filtered |
Passing javascript variable through url and decoding to a php variable
I found this little script to allow users to embed a simple javascript code on their site to show an iframe from my site. This works perfectly, however I am trying to pass 1 variable through the code they embed and on my end set it as a php variabl... | common-pile/stackexchange_filtered |
scroll #mainContainer to element in polymer using JQuery
I am using Polymer "core_scaffold" and I want to perform some jQuery function on #mainContainer (Id).
I tried to use the following code
$('#mainContainer').on('scroll', function() {
// custom code
});
could anyone let me know how to get the scroll fun... | common-pile/stackexchange_filtered |
Must be and must have been
Is any of these sentences correct?
There must be something happened in the past that traumatized him.
There must have been something happened in the past that traumatized him.
And;
Do I need to add 'that' after 'something'?
Like, There (must be or must have been) something that happened in th... | common-pile/stackexchange_filtered |
Timeline App Tabs Icons
What happens if you don't upload the small icon that sits below the tab image?
What image will it pull?
For example - Facebook Apps - videos will show a reel icon below a visual of the video.
It will show the generic FB app icon:
| common-pile/stackexchange_filtered |
c# adding row that already belongs to a datatable
I have a datatable DTgraph, that datatable has a column named Campaign. that column could have one of three unique values, which are IVR, City, City2`. So the rows are like this:
I have a datatable has data like this format
........ IVR........
.........IVR........
**... | common-pile/stackexchange_filtered |
Evidence that open source production processes increase efficiency and/or consumer surplus?
Is there peer reviewed evidence that open source production processes increase efficiency and/or consumer surplus? It seems that the first theorem of welfare economics requires complete markets which requires that all actors hav... | common-pile/stackexchange_filtered |
Sending a message to a TestProbe() fails sometimes with ActorInitializationException
I've some sporadic test failures and struggle to figure out why. I have a bunch of actors which to the work which I want to test. At the beginning of the test I pass in an actor reference which I get from a TestProbe(). Later on the gr... | common-pile/stackexchange_filtered |
Can the code button in the format bar be made to work for code blocks in numbered lists
I ran into a problem formatting a code block in a numbered list. I notice that I am not the first one to run into this problem -- there are more than a dozen questions related to this topic.
The solution is to add four extra spaces ... | common-pile/stackexchange_filtered |
How to access different File Manager specific path in android?
I have installed different types of File Manager. The different Types of File Managers are
Default File Manager
ASTRO-File-Manager-v3.1.342.apk(Astro)
FileManager-1.2.apk(OI File Manager)
Root-Browser-File-Manager-v1.4.0.apk(Root Browser)
Code :
File fil... | common-pile/stackexchange_filtered |
Matching a time interval using regex
What I needed to do was check whether a given string matches a certain pattern. The pattern is this:
00:00:00,000 --> 00:00:00,000
Things to keep in mind:
The 0s can be numbers from 0 to 9.
The pattern must be alone in a single line; the line has to only consist of the pattern.
I c... | common-pile/stackexchange_filtered |
Not able to use global variables in a @app.route block in flask app
from flask import Flask, request, render_template
app = Flask(__name__)
def fun(userAns="True", question="this is first question"):
if question == "this is first question":
if userAns == "True":
return "actual first ques... | common-pile/stackexchange_filtered |
How can I get sudo back to work? Any sudo results in "sudo: 3 incorrect password attempts"
I had problems with some ssh connection and finally ended up with disenabling my sudo completely. Any sudo command results in
Sorry, try again.
Sorry, try again.
Sorry, try again.
sudo: 3 incorrect password attempts
Surprisingl... | common-pile/stackexchange_filtered |
componentWillReceiveProps state is different from render state after redux state update
First of all, all the relevant code (click on the filename for the full source code of that file).
LoginView.js
LoginView = class extends React.Component {
handleLogin = (email, password) => {
this.props.authenticationAc... | common-pile/stackexchange_filtered |
Combining validation errors in Rails
For example, if I have a user with an email address that needs validating on presense and format:
validates_presence_of :email_address, :message => "can't be blank"
validates_format_of :email_address, :with => /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i
If nothing is entered,... | common-pile/stackexchange_filtered |
Replace all header tags with h4 in java using Jsoup
I have the following html :
<!DOCTYPE html>
<html>
<body>
<h2> heading here </h2>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
<h3> heading here again </h3>
<p>This is another another paragraph.</p>
<h4> heading here again </h4>
</body>
</html>
... | common-pile/stackexchange_filtered |
Why is my JS only working if I put it after the HTML, even though I have a window.onload?
I just started a CS class at school, so please excuse my total lack of basic knowledge. This JS only works if I put it after the HTML code, not if I put it in the headtag. Shouldn't the window.onload take care of that? Can someone... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.