text
stringlengths
70
452k
dataset
stringclasses
2 values
Sample loss in Android app when retrieving data via BLE I'm developing an Android app which retrieves data via BLE from a device in real-time. As stated in the device's datasheet, BLE uses a 20-ms connection interval. Twenty user-data bytes (which is equal to 2- samples for each channel and 2-bytes running counter) ar...
common-pile/stackexchange_filtered
using dojox.form.PasswordValidation in Programatic Way Im building a registration form and planning to use dojox.form.PasswordValidation to verify if the inputted passwords are the same. Is there a way to use dojox.form.PasswordValidation programatically? If i do this: <div id="sample"> <input type="password" pwTyp...
common-pile/stackexchange_filtered
Understanding 外国でも使える電話を借りて来た I'm having difficulty translating this particular sentence into English, and even thus understanding it fully. 私は成田空港で外国でも使えるけいたい電話を借りて来たから、問題がないよ。 My best attempt at a translation: I had a problem at Narita Airport because I had to rent a mobile phone to use. I don't know how to tra...
common-pile/stackexchange_filtered
auto complete for the rest of the text im making a posting script little like twitter how ever im making the posting text to be 100 Characters only. now i wanna make something like when user write about 50 Characters there will be another 50 Characters empty i want a php method to fill the rest of the text with dots...
common-pile/stackexchange_filtered
What paths are guaranteed to exist on Windows Server 2008 R2? What paths are guaranteed to exist on a Windows Server 2008 R2 instance? A client is requiring that some instructions specify exact paths in all cases. (The person executing said instructions is not supposed to have to decide on any path themselves, even whe...
common-pile/stackexchange_filtered
require_once failed in Wordpress I am developing for first time a WordPress plugin. I have two .php (file1.php, file2.php). In file1.php I have defined a form with a action to file2.php for upload images. In file2.php I just do a require_once('./wp-admin/includes/file.php'); but I receive this error NetworkError: 5...
common-pile/stackexchange_filtered
How to debug a preprocessor macro I recently came across this project. The code is largely written in C and the API consists of just a few C functions. Unfortunately the project seems to contain some bugs, in particular I keep getting "double free or corruption" errors. I am trying to use valgrind and gdb to find out w...
common-pile/stackexchange_filtered
Android SQLite Repeated Elements I have an issue with SQLite on android. Right now, I'm pulling a JSON object from a server, parsing it, and putting each sub-object in a Table with things such as the Name, Row_ID, unique ID, etc. using this code: public void fillTable(Object[] detailedList){ for(int i=0;i<detail...
common-pile/stackexchange_filtered
Xcode - how to include c library and header file to cocoa project? How do I add c library to Xcode Cocoa project? Or what is the best option, I don't want to copy them into Cocoa project directory. I have a C project called a which compiles into library a.dylib and header file a.h, the project is located in it's own di...
common-pile/stackexchange_filtered
Why are algebraic schemes called algebraic? In scheme theory, an algebraic scheme is the data of a scheme + a morphism of finite type to the spectrum of a field. Where does the term "algebraic scheme" come from? It does not seem intuitive to me (to me all schemes are equally algebraic, others may have a different opini...
common-pile/stackexchange_filtered
How can I resolve ERR_REQUIRE_ESM error when using this simple node-fetch query? I am trying to do a simple API fetch using node-fetch. Getting the following error: internal/modules/cjs/loader.js:1089 throw new ERR_REQUIRE_ESM(filename, parentPath, packageJsonPath); ^ Error [ERR_REQUIRE_ESM]: Must use impo...
common-pile/stackexchange_filtered
Suppose $T,S$ are two non-identity elements in $PSL(2,\mathbb{R})$ and $TS=ST$. Then the number of fixed points of $S$ and $T$ are same. What I could see is $T$ maps the fixed point set of $S$ to itself, so does $S$ for the fixed point set of $T$. But I can not proceed further. I was actually looking at the proof of a ...
common-pile/stackexchange_filtered
Integral related to the modified Bessel function I would like to solve the integral $$F_n(\kappa,\theta,\phi)=\int_{-\pi}^{\pi}{\rm e}^{\kappa\cos(x-\theta)}\cos(n\, x-\phi)\,{\rm d}x$$ that appears related to the identity $$I_n(\kappa)=\frac{1}{\pi}\int_{0}^{\pi}{\rm e}^{\kappa\cos(x)}\cos(n\, x)\,{\rm d}x,$$ where $I...
common-pile/stackexchange_filtered
How to know which base OS is used in httpd:latest image of apache How to know which base OS is used in httpd (latest version) image of apache. Thanks in advance for reply. Does this answer your question? How to find out the base image for a docker image You can also look for various marker files in /etc in the conta...
common-pile/stackexchange_filtered
Crystal radio as user interface problem If I built a coil like the one in this crystal set. How could I use a micro to detect which point the alligator clip is on? Basically I want to use the crystal set as a user interface for an audio playback system. Thanks for the responses everyone. As pointed out i'm partly tr...
common-pile/stackexchange_filtered
Proxy must be string in package.json in React , create-react-app (2.0) I found similar question here When specified, "proxy" in package.json must be a string , but the solution is not working for me , please help me to set up proxy in create-react-app(2.0) I use "proxy": "http://localhost:8888" in my package.json , b...
common-pile/stackexchange_filtered
es6 use ${} for multiple state in react For some reason I have to do this for(let i=0;i<=6;i++){ price.push({ min_price: `this.state.special_${i}_min`, max_price: `this.state.special_${i}_max` }); } But it's not what I expect, it doesn't work, it became string instead of getting the value of my...
common-pile/stackexchange_filtered
Does this count as a proper derivation of the formula for work and kinetic energy? $v_{av}$ = average velocity, $d$= distance, $a$ = acceleration, $m$ = mass Given: $$v_{av}*t=d$$ $$t=\frac{v_f-v_i}{a}$$ $$v_{av}=\frac{v_f+v_i}{2}$$ Then: $$\frac{v_f+v_i}{2}*\frac{v_f-v_i}{a}=d$$ $$\frac{v_f^2-v_i^2}{2a}=d$$ $$\frac12(...
common-pile/stackexchange_filtered
Passing query parameter to props of custom component in NextJS I'm currently making a profile page wherein the route /profile/displaynamehere will display a page where one of its components is a basic information page that shows the display name of the user. The component is called BasicInfo and accepts props called di...
common-pile/stackexchange_filtered
Excel vlookup 3 columns from sheet A and match with the two columns in sheet B, and give 3rd column in sheet B I would like to do a vlookup or any function to match data in two sheets (sheet A and sheet B). This is my sheet A: This is my sheet B (Imagine the column is A, B, C, instead of E,F,G in the image): I wan...
common-pile/stackexchange_filtered
R - select cases so that the mean of a variable is some given number I previously worked on a project where we examined some sociological data. I did the descriptive statistics and after several months, I was asked to make some graphs from the stats. I made the graphs, but something seemed odd and when I compared the g...
common-pile/stackexchange_filtered
Time independent Kerr metric The Kerr metric expressed in terms of polar coordinates $r,\theta,\phi$, such that $x = r\sin(\theta)\cos(\phi)$, $y = r\sin(\theta)\sin(\phi)$, $z = r\cos(\theta)$. Then the Kerr metric is given as \begin{align*} ds^2 = &-\left(1 - \frac{2GMr}{r^2+a^2\cos^2(\theta)}\right) dt^2 + \l...
common-pile/stackexchange_filtered
Communication between sibling components I have thee following structure: <master> <frame></frame> <toolbox></toolbox> </master> master -> master component frame -> frame component (which loads an iframe) toolbox -> toolbox component I add items from toolbox to the iframe with drang & drop and for each dropped e...
common-pile/stackexchange_filtered
Nginx proxy server cache images from apache server I have 2 servers one apache and one nginx. I setup nginx as proxy location / { proxy_pass http://apachesample.com:8080/; include /etc/nginx/conf.d/proxy.conf; proxy_buffering off; proxy_cache web-cache; ...
common-pile/stackexchange_filtered
awk extract a column and output a file named by the column header I have a .txt file like this: col1 col2 col3 col4 1 3 4 A 2 4 6 B 3 1 5 D 5 3 7 F I want to extract every single column (i) after column 1 and output column1 and column i into a new file named by the header of column i. ...
common-pile/stackexchange_filtered
Error in geom_bar plot: Must request at least one colour from a hue palette Why am I getting this error with the following code while working through Wickham & Grolemund, 2016 (R for Data Science): library(tidyverse) ggplot(data = diamonds) + geom_bar(mapping = aes(x = cut, color = clarity, fill = NA), position = "iden...
common-pile/stackexchange_filtered
Can I download Ubuntu with my Mac and transfer it via USB? I have a dell optiflex 755 and i have fitted a new hard drive and power supply. There is no operating system, so I am trying to install ubuntu. I need to download it on a mac and then transfer it. Will this work? Yes, it will work. How much ram do you have? ...
common-pile/stackexchange_filtered
create new variables with a for cycle Hi I have a list of values named: $value1 $value2 $value3 ... and I'd like to assign each value to an array element; something like: $my_array[1]=$value1; $my_array[2]=$value2; $my_array[3]=$value3; How can I do this using a for cycle? The array is not a problem but I can't figu...
common-pile/stackexchange_filtered
What is the range of meaning of ganab (steal) as used in Exodus 20:15 and projected into a modern context? It is fairly common to see Exodus 20:15 ("Thou shalt not steal") cited as Biblical support for the idea that copying creative works without permission is theft, or, in other words, the claim that actions that are ...
common-pile/stackexchange_filtered
Installation of scoop times out I want to install scoop on a laptop on which I do not have administrator rights. I use the following commands in PowerShell: PS> Set-ExecutionPolicy RemoteSigned -scope CurrentUser PS> iex (new-object net.webclient).downloadstring('https://get.scoop.sh') Exception calling "DownloadString...
common-pile/stackexchange_filtered
How to use Microdata's 'itemref' to reference similar products that are listed outside of the Product scope? I am trying to use Microdata to define my website using the Schema.org definitions. On an ItemPage I am displaying the information about a product. Additionally, I want to link similar products to the current pr...
common-pile/stackexchange_filtered
How to extract parameter from icalendar event in Ruby? I'm fairly new to Ruby and am working on a small project. I'd like to print out some details from an iCalendar (*.ics file) event. To handle the ics-File I use the icalendar gem. So far, I've managed to extract the correct event but I also need to print out the att...
common-pile/stackexchange_filtered
Display Outline element by default I would like to see the Outline of a file by default when I open the VSCode. Now every time I open the VSCode I need to go to View -> Open View... and then type Outline. Is it possible to have Outline displayed by default when I open the program? have you tried the ... menu in the Ex...
common-pile/stackexchange_filtered
Why did Dumbledore appoint Firenze to teach Divination? I assume Dumbledore allowed the subject of Divination to continue at Hogwarts in order to protect Professor Trelawney. If that is the case, why would Dumbledore bother to find another Divination teacher after Trelawney was dismissed by Umbridge? Why didn't he just...
common-pile/stackexchange_filtered
Converting from select to check list? I have a select list like such: <select name="taxonomy[1][]" multiple="multiple" class="form-select" id="edit-taxonomy-1" size="7"> <option value="13">Glaciers</option> <option value="14">Lake Ice</option> <option value="17">Permafrost</option> <option value="16">River Ice</option>...
common-pile/stackexchange_filtered
Lock-Free Data Structures in C++ Compare and Swap Routine In this paper: Lock-Free Data Structures (pdf) the following "Compare and Swap" fundamental is shown: template <class T> bool CAS(T* addr, T exp, T val) { if (*addr == exp) { *addr = val; return true; } return false; } And then says The entire ...
common-pile/stackexchange_filtered
reload UITableView inside closure causes strange behaviour I am using CloudKit to fetch CKRecords to populate a UITableView. The operations Array acts as the datasource for the tableView let predicate = NSPredicate(value: true) let query = CKQuery(recordType: "Operation", predicate: predicate) let queryOperation = CKQu...
common-pile/stackexchange_filtered
ModuleNotFoundError: No module named 'distutils.util' for python 3.9 as it is already installed for 3.8.10? I am attempting to install the package pyminizip, but i get the error stating distutils.util module is missing and when attempting the fixes I found online when updating distutils it simply states I already have ...
common-pile/stackexchange_filtered
Implementation of ELO algorithm for rating Hey guys I wanted to implement elo algorithm to rate the players in my lan. My php script contains the following. <?php class Rating { const KFACTOR = 16; protected $_ratingA; protected $_ratingB; protected $_scoreA; protected $_scoreB; protected $_expe...
common-pile/stackexchange_filtered
Docker without docker I am trying to execute some docker containers, without docker itself !!! Maybe you know CloudSuite Benchmarks. I am trying to run the MediaStreaming one without the Docker (I need the executables and not the containers, because I have to run them via an intel pintool that uses executables) I used ...
common-pile/stackexchange_filtered
Emulating Value Type Polymorphism in C Sharp I'm looking for a way to create some kind of value type hierarchical class structure. I know that enums do not support inheritence since they are value types and are therefore sealed, so I'm probably looking for some kind of static class implementation. My purpose for this i...
common-pile/stackexchange_filtered
In Google Analytics, is it possible to track users separately by whether or not theyre logged in? For example, a logged in user will always reach my /customer/info page after logging in, so can i separate my Google analytics result based on whether or not users of my site reached that page? I've contacted google suppor...
common-pile/stackexchange_filtered
Method after a ActionListener I need to perform a method after the clicking of a JButton in a Java Project. I'm making a client-server game and after the click of a button I need that the client/server start to wait untill the opponent perform a click. The problem is that at the end of the action listener code I start ...
common-pile/stackexchange_filtered
Copy only file that matches variable string I'm trying to copy files based on the hour of Get-Date's time stamp to match it to files that are saved from a different source in a filename_10_00.ext structure. If I use 24 hour time, I can use the hour of Get-Date to determine which file I'm looking for. (This is to run ho...
common-pile/stackexchange_filtered
Device doesn't interact with Firebase, but emulator does Right now I'm developing a Flutter app using Firebase's Realtime Database. The problem I have is that my device can't seem to connect with Firebase at all. It can't upload any data to the DB nor read anything. The thing got weird when I tried the exact same app a...
common-pile/stackexchange_filtered
Getting an error using MongoDB aggregate $sample operation. -- MongoError: $sample stage could not find a non-duplicate document MongoError: $sample stage could not find a non-duplicate document after 100 while using a random cursor. This is likely a sporadic failure, please try again. Using MongoDB version 3.2.8 and j...
common-pile/stackexchange_filtered
Cannot click input element within button element Take a look at the below markup & fiddle: http://jsfiddle.net/minlare/oh1mg7j6/ <button id="button" type="button"> <span id="test" style="background:pink;">test element</span> Add File <input type="file" name="file" multiple="multiple" id="upload"> </button> ...
common-pile/stackexchange_filtered
What is the most direct proof of $f$ is continuous iff $f\left(\overline{A}\right) \subset \overline{f(A)}$? Here is our definition of continuity: Let $X$ and $Y$ be any topological spaces, let $f \colon X \rightarrow Y$ be a mapping, and let $p$ be a point of $X$. Then $f$ is said to be continuous at point p if, for ...
common-pile/stackexchange_filtered
Convexity of Call option prices using Put-Call parity relationship I am trying to price vanilla options using a particular Bayesian approach that I have found in a paper. To do that I need to construct a likelihood function, approximating the tail of the distribution using the derivatives of the call prices with respec...
common-pile/stackexchange_filtered
read any letter for my combobox I have this simple query that populates a ComboBox with values: void fillCari()//fill Cari-med dropdown with values { try { string connectionString = "Data Source=LPMSW09000012JD\\SQLEXPRESS;Initial Catalog=Carimed_Inventory;Integrated Security=True"; ...
common-pile/stackexchange_filtered
How can I protect a GitHub branch and allow only GitHub actions to push to it and no one else? I am writing a GitHub workflow where I am building documentation from the main branch docstrings and pushing it to gh-pages and having GitHub pages deploy off of gh-pages branch. How can I protect that branch so that only Git...
common-pile/stackexchange_filtered
Put space between digits in C# I'm need generate a random number an insert a space or comma between digits. This value will be speaked using AWS Polly. Without space, to 6565, she sepeak "six thousand five hundred and sixty five". Part of the code, generating the random number, I already got it, but I don't know how to...
common-pile/stackexchange_filtered
vue-router - How to get previous page url? I want to get previous page link or url in vue-router. Like a this. How to do it? const link = this.$router.getPrevLink(); // function is not exist? this.$router.push(link); Near concept is this.$router.go(-1). this.$router.go(-1); All of vue-router's navigation guards rece...
common-pile/stackexchange_filtered
How to reformat handsontable positioning? I am using handsontable to display some information in a few tables and it looks like the handsontable is covering my header text. I have them in html next to each other in the DOM. I know this is a CSS thing I have to change to ovverride it. How can I have these tables load ni...
common-pile/stackexchange_filtered
directly tapping Create2 battery Since the mini DIN power is limited to 250ma, has anyone found a way to tap the battery to supply power to added electronics? I'd prefer this over adding a secondary battery and separate charger Thanks, Frank We have tried it and have a stably working system using a DC DC voltage conve...
common-pile/stackexchange_filtered
specify optional parameter windows form control vb.net I need to send a subroutine a Windows Form control name as optional parameter e.g. Sub putdebug(ByVal str As String, Optional ByVal ctrl As ListBox = lbSystem) ..output to different lisboxes depending on ctrl name, default to lbSystem if not specified. But the lb...
common-pile/stackexchange_filtered
Analytic expression for the Tsirelson bound of the I3322 inequality? Finding Tsirelson bounds for Bell inequalities is a well-loved problem in quantum information theory. A famous case where it is still open is for the I3322 inequality. In this paper Pál and Vértesi conjectured that it is the limit of the sequence $$a_...
common-pile/stackexchange_filtered
matplotlib image to base64 without saving I am creating a wordcloud image with this code. wordcloud = WordCloud( background_color='white', random_state=30, width=1500, height=1200, font_path = font_path, prefer_horizontal=1) wordclou...
common-pile/stackexchange_filtered
time based query on hive table My table structure is like this: hive> describe user_data2; OK received_at string message_id string type string version ...
common-pile/stackexchange_filtered
How to calculate touched position of ImageView in ScrollView, Considering Zoom factor? I have an image that should be click-able in certain areas, say 26 areas in that Image. What's the best way to do that ? I made an image with same size, each click-able area in Image has specific color, with white background, so whe...
common-pile/stackexchange_filtered
How to change default path of wx-config in makefile? I am working on linux server in which wx-widget 2.8 is installed in /usr/local/. I have installed wxWidgets 2.9.5 in my build directory /home/jacob/. How to change path of wx-config to my build dir in Makefile? The default path of wx-config --prefix is /usr/local wh...
common-pile/stackexchange_filtered
Is "that" a conjunction or relative pronoun in the following sentence? It comes as no surprise that Taiwan has the highest density of convenience stores in the world. Is "that" a conjunction or relative pronoun in this sentence? What do you think and why?
common-pile/stackexchange_filtered
Django form: fields defined by query result, single view to update multiple objects simultaneously I have the following models in a Django 1.8 project: class MeditationType(models.Model): """ Stores user's meditation types and goals """ creation_date = models.DateTimeField(auto_now_add=True) modify_...
common-pile/stackexchange_filtered
Using Devise to sign up, sign in and sign out with an iOS app I have a very basic Rails app that uses Devise for user sign up, sign in, etc. I'd like to expose Devise to an iOS app. There's a lot of threads that are high level explanations, but I'm very new to Rails. I'm basically posting a request to users/sign_up lik...
common-pile/stackexchange_filtered
How can I convert linq object to asp.net object..? Code: Domain ob = new Domain(); [HttpPost] public ActionResult Create(Domain ob) { try { //// TODO: Add insert logic here FirstTestDataContext db = new FirstTestDataContext(); tblSample ord = new tblSample(); ord = ob; ...
common-pile/stackexchange_filtered
I get a signing error when I add an image to Assets in the SwiftUI Tutorial I get a signing error when I add an image to Assets in the SwiftUI Tutorial I'm working on the SwiftUI Tutorial, but when I add an image or JSON file to Assets, I get the following Sign Error. CodeSign /Users/k~~/Library/Developer/Xcode/Derived...
common-pile/stackexchange_filtered
PHP_SELF not equating I'm trying to code a sidebar for my website. For this, I store pairs of values corresponding to the links in a file, say names.txt: Home-index.php Coding-coding.php and my php file will then take these values and turn them into links on the side, i.e. <a href = "index.php">Home</a> <a href = "cod...
common-pile/stackexchange_filtered
symfony form does not process my search filters I have created a search form in symfony to allow me to search for a term in a title or content of my Media entity or to search by Category. The form is well processed via the MediasController, my findWithSearch function is created in the MediaRepository and the form is di...
common-pile/stackexchange_filtered
Folding of wave-vector in Band Theory of Metals In the Kronig-Penney model in the Band Theory of Metals, we derive the energy levels as function of wave vector as shown in the figure. But my professor showed that we represent the levels folded from $-\pi$ to $\pi$. This is also represented on the Wolfram Demonstration...
common-pile/stackexchange_filtered
AVD android 30 stuck boot loop after remount I'm trying to enable write access to an android emulator in order to push file into /system but I meet boot loop after using adb remount adb reboot. I'm using avd image android 30, arc x86-64. Possible duplicate of https://android.stackexchange.com/questions/232234/why-adb-...
common-pile/stackexchange_filtered
Blank crs attributes in fiona: Can't get proj4 parameters from OpenFileGeodatabase I’m having trouble obtaining crs values for geodatabase feature classes in fiona (version 1.7.5). Specifically, the crs attribute returns empty for many of the geodatabases I try to read. This is not an isolated incident -- it occurs fre...
common-pile/stackexchange_filtered
Menu indentation after full screen Using the JW player, streaming flv via rtmp. I am also using the snell.swf skin. When I click on full screen, then return to normal I am seeing the menu for the currently playing item indent. Any ideas what is causing this? Also sometimes seeing menu items highlighted which are not th...
common-pile/stackexchange_filtered
Web part using 3rd party permissions Is it possible to filter (i.e. hide) web parts from the WebPartAdder based on 3rd party user permissions? We have built in user permissions in our application that defines which web parts a user has permissions to add to a page (permissions obtained using web services). In previo...
common-pile/stackexchange_filtered
How do use Nuclio to read events from Azure Service Bus? I'd like to directly read messages from Azure Service Bus with Nuclio using the Python runtime. Does anyone have experience with this? I'm assuming I need to create the ServiceBusClient inside of an init_context function, but the examples from azure show that oc...
common-pile/stackexchange_filtered
What is the Aggregation, Delegation and Association in hibernate? In an interview, interviewer asked this this question. I know association, we achieve associations using Mappings.Please help to understand Aggregation and Delegation in hibernate. I consider this question as a very interesting one. Aggregation and Comp...
common-pile/stackexchange_filtered
Matlab: subtract every value in a row from every other, for every row I have data like this: [... 0...0...0...0 6...0...0...0 8...5...2...0 9...8...3...1 0...0...0...0 Within each row I would like to subtract every value individually from every other in that row. So that I get a new matrix which shows all the differe...
common-pile/stackexchange_filtered
Referencing A New Variable From A Different Method I'm new to C# and am making a text based game. In one method, I ask the player to answer an open ended question, and I store that response in a local variable called response. I would like to access the contents of the string response later on in a different method. I,...
common-pile/stackexchange_filtered
How to define a Hibernate OneToOne unidirectional mapping in Parent where the FK column is in the child? Background: I'm in the process of upgrading to Hibernate 6.1.4 (from 5.3.x) and have run into problems with OneToOne bidirectional mappings (which appears to be a bug, and I've written up). I'm looking for a workar...
common-pile/stackexchange_filtered
How do you split string to display as a list? So I am using textareas in a form to taking a list. <tr> <td><label asp-for="Ingredients"></label></td> <td><textarea asp-for="Ingredients" ></textarea></td> <td><span asp-validation-for="Ingredients"></span></td> </tr> In my viewModel I have [Required] public st...
common-pile/stackexchange_filtered
WebGL - Is it possible to pass gl into an img.onload function? In my WebGL program that I'm writing in ES6, I have a class called Texture. At first, it draws the texture as 1 red pixel. Once the image loads, I want to replace the red pixel with an image. I'm a bit stuck as I'm not sure what the best approach for this ...
common-pile/stackexchange_filtered
Use list-Element in XSLT So below you can see my given XML. I matched the template and I'm already in the Student-node (xsl:template match="Class/Student"): <Class> <Heading>This is a sentence.</Heading> <Student>Alex</Student> <Student>Emilia</Student> <Student>John</Student> </Class> Now I need to ge...
common-pile/stackexchange_filtered
How to load a html file's content into javascript variable in django? I'd like to insert contents of abc.html after a div when some event fires. I tried var content = {% include "path/to/abc.html" %}; $(".myDiv").click(function() { $("#anotherDiv").insertAfter(content); }); However, it seems `{% include %} fails ...
common-pile/stackexchange_filtered
deleting existing files from temp directory in Azure We are using the following to write a file to the temp direcotry in Azure webapp for almost a year: string tempName = Path.GetTempFileName(); using (var tempFile = new FileStream(tempName, FileMode.Create)) { await tempMemory.CopyToAsync(tem...
common-pile/stackexchange_filtered
Please validate my idea to promote the site. I asked this question. After seeing Mr Weiner's tweet about the question on reddit, I asked him to try asking it here to compare quality and response times. Then I remember Jeff saying in a podcast or a blog post that a valid practice would be to ask on behalf of the person,...
common-pile/stackexchange_filtered
How to get data by matching only by date from datetime field in php and mysql Value stored under database field datetime: 27-12-2013 11:37:00 I want to get the data by using only date(27-12-2013) cause in datepicker I am only selecting the date to get the data of that particular date. Is it possible? if yes please giv...
common-pile/stackexchange_filtered
Instantiate and load a block programmatically in twig template I created a simple block that shows some text grabbed from an external source, and it renders as expected when I place it from the back-end (Structure->Block Layout). But I want to be able to place it via code only inside a twig template from the theme dire...
common-pile/stackexchange_filtered
How to create dynamic router for nested items in a sidebar with multilevel dropdown? This is my code currently but the path is not dynamic, everytime when there is a new section in the dropdown I have to hard code the path, is there anyway that I can write a function to auto generate those paths? (The first one is gene...
common-pile/stackexchange_filtered
Having issue when playing Smash Ultimate in dock I would be playing Super Smash Bros Ultimate on the dock and during gameplay the TV screen goes like a greyish black color like it disconnected BUT the music is still playing and going to the home page doesn't fix it. Please note this "bug" only happens while playing SSB...
common-pile/stackexchange_filtered
git diff ignoring whitespace unless a space is deleted If I use git diff --ignore-space-change --ignore-all-space to get only relevant changes, I miss changes, where a space between two words was completely deleted. Example echo "the space before this string is irrelevant" echo "foo bar are two words" changes t...
common-pile/stackexchange_filtered
Why doesn't FileStream as an argument to Streamwriter write to text file? In the code included below, I am able to write the contents of the string 'fullname' to a text file in the specified directory when using the following statement: System.IO.File.WriteAllText(path, fullname); However, if I write the string path to...
common-pile/stackexchange_filtered
Java OpenCV: HOGDescriptor.detectMultiScale parameters I'm still new to image/video processing and a part of our project includes detecting people in a video. For this I plan to use OpenCV with HOG and SVM. Can somebody describe what the parameters for the method HOGDescriptor.detectMultiScale(...) do? Specifically t...
common-pile/stackexchange_filtered
Access Hive table from HDinsight cluster I am using pyspark to access hive inside my HDinsight cluster. When i go and query hive it shows me all the databases but when i query from spark it just shows default database. I believe it just go and query spark catalog by default. The workaround i found was i should use Hive...
common-pile/stackexchange_filtered
Span is not aligning properly inside Div CSS <span> is only aligning horizontally but not vertically inside <div> CSS: .upload-cont{ cursor:pointer; margin-left:130px; display:inline-block; border:2px dashed #a8a8a8; max-width:220px; max-height:180px; min-width:220px; min-height:180px; }...
common-pile/stackexchange_filtered
Sudden change of class from "matrix" to "integer" Apparently some matrices when indexed in a certain way stay matrices, others, indexed in the same way become arrays. Example: > test = matrix(1:10, nrow = 2) > class(test) [1] "matrix" > class(test[,1:2]) [1] "matrix" > test = matrix(1:10, nrow = 1) > class(test) [1] "...
common-pile/stackexchange_filtered
How to see proxy configuration on mac (not UI) to use corporate git How can I see in mac the proxy configuration on my machine ( Not the ui) My friend have problem to use our corporate git when He do git clone he get proxy error but in my mac I was able to clone this repo. in the UI both configuration are the same ht...
common-pile/stackexchange_filtered
Computer inoperational but motherboard LED on My friend's computer switched off suddenly and since then nothing happens when you press the power button - no spinup, fans or anything. The only sign of life is that the motherboard LED is on. Is this a motherboard or a PSU issue? We can't find any blown capacitors. The m...
common-pile/stackexchange_filtered
Passing variable from PHP to Python on Windows 10 affected by import pandas I am trying to pass a variable from PHP to Python on Windows, but the line "import pandas" is causing an issue. All my code below is bare-bones of the actual process I am trying to create for simplicity. The first chunk of code is my Index, the...
common-pile/stackexchange_filtered
The main contribution is (proposing / to propose) a new method The main contribution of this paper is (proposing/to propose) a new method. I'm confused about using gerund or infinitive in this sentence. I searched for this sentence on the internet, but I didn't find anything that solves my problem. Which one should I...
common-pile/stackexchange_filtered
Split using regex Trying to build a search criteria query parsing using StringTokenizer. The query goes like (key:operator:value) (key:operator:value) and (key:operator:value) I have tried Stack<Object> stack = new Stack<>(); StringTokenizer tokenizer = new StringTokenizer(filterString, "()", true); while (tokenizer.h...
common-pile/stackexchange_filtered
An ellipsis with N dots How might one define a lualatex macro \lip, taking optional arguments * and [N], such that, with no argument, the expansion is an ellipsis consisting of three dots, with [N] it has N dots, and with * its ends a sentence? It should be possible to use it like \lip this, ie. without closing it with...
common-pile/stackexchange_filtered