text
stringlengths
70
452k
dataset
stringclasses
2 values
How do I search inside a thread on Stack Overflow? I'm looking at faqs : https://stackoverflow.com/faq#searching and https://stackoverflow.com/search but I can't find a way to search inside long threads. "Find on page" should do for the vast majority of questions. Granted, it won't work for multi-page questions but th...
common-pile/stackexchange_filtered
Set width of a div to fit a specific subdiv content I have a div containing an image, a title and a description. <div class="item"> <div class="item-header"> <div class="item-header-image"> <img src="img/items/15839.png" alt="Pile Steamer" width="80" height="80"> </div> <div cl...
common-pile/stackexchange_filtered
Outbound OAuth callbacks We are in the process of implementing an outbound OAuth integration to a third party app. Our customers will, from our managed package, OAuth authenticate to the third party app and we will then use the token (via Apex) for API operations to that third party app on our customer's behalf. This t...
common-pile/stackexchange_filtered
Issues with pagination of a html table generated with a php script I'm handling a php code that reads a .csv file inside the same folder and print a table in html. As the file contains a lot of rows, i'd like to limit the table to a specific number of rows (for example 50). I really don't know how to do, anyone can hel...
common-pile/stackexchange_filtered
How to make an INPUT field dynamically change itself into a TEXTAREA in a Bootstrap4/jQuery webapp? How can I make an INPUT field dynamically change itself into a TEXTAREA in the browser, based on certain conditions (like the amount of text in it), without any extra logic server-side? I have not tried anything yet, bec...
common-pile/stackexchange_filtered
Where do non-malloc'd variables go? In C, as far as I can tell, there are two ways to create an array: int arr[3] = {1,2,3} and int *arr = malloc(3*sizeof(int)) What's the difference? I understand that when you call malloc(), it makes space in memory for the array, but when you don't use malloc() does it go into memor...
common-pile/stackexchange_filtered
How can I start my own overflow site? Possible Duplicate: Is the Stack Exchange engine available? I have some ideas for cool sites like: femaleOverflow.com - Q&A for understanding women lifeOverfllow.com - sharing life experiences ethicsOverflow.com - you know this will be endless But how do I actually make them? ...
common-pile/stackexchange_filtered
form submit trigger in html In HTML, a form can be submitted by clicking the submit button pressing enter when the focus is on the submit button by pressing enter on the input field Is there a way to find out which of the three methods was used to submit the form? possible duplicate of jquery detect which button su...
common-pile/stackexchange_filtered
setTimeout not working in Greasemonkey user script when JS disabled in browser I'm working on a project that requires my user script be run on pages as they are rendered without executing any of the page's JavaScript. That is to say, we need to browse with JavaScript disabled. I've encountered a problem though when I ...
common-pile/stackexchange_filtered
Sanity.io and Inline 'Float' Images with Text Wrap-around Wondering if anyone can say if creating an inline image with text wrap-around is possible in Sanity.io? See the example image below. I've read https://medium.com/@kimbjrkman/how-to-use-inline-images-in-rich-text-with-sanity-io-c42594baa509 - but this is directed...
common-pile/stackexchange_filtered
unexpected strict mode reserved word -- yield? Node v0.11, harmony, es6 Trying to use a new ES6 based node.js ODM for Mongo (Robe http://hiddentao.github.io/robe/) Getting "unexpected strict mode reserved word" error. Am I dong something wrong here? test0.js "use strict"; // Random ES6 (works) { let a = 'I am declared...
common-pile/stackexchange_filtered
Using Djongo's ArrayField at Django Admin Djongo is a Django and MongoDB database connector witch brings, beside others, the ArrayField to Django Models. It allows one to store multiple instances of an other djongo.models.Model in an unique MongoDB Array field inside a document related with the Model that has the Array...
common-pile/stackexchange_filtered
java.lang.NoClassDefFoundError: HttpSessionListener I am trying to deploy a war that i didnt write and i am getting this error in my logs: java.lang.NoClassDefFoundError: HttpSessionListener i know that HttpSessionListener lives in servlet-api.jar which is found in the lib dir of tomcat(my app server). I tried includi...
common-pile/stackexchange_filtered
Continuing a pattern of integer arrays Given a collection of one or more integer arrays of equal length, I'm looking to predict the most likely next array. Elements typically only increment by one or jump back to zero, though other changes are definitely possible. Example 1: [0, 0, 0] [0, 0, 1] [0, 0, 2] I'd expect to ...
common-pile/stackexchange_filtered
Exceptions in downloading htmlunit I am in the process of downloading and using htmlunit for Java. I installed the 2.27 version (I believe this is the latest version) as a jar file and expanded it. The code is riddled with lines that cause compiler exceptions such as the following. //Code from the WebClient class //The...
common-pile/stackexchange_filtered
Find specific JSON object in JSONArray from HttpResponse This is what my code looks like at the moment: HttpResponse response = client.execute(request); String responseBody = EntityUtils.toString(response.getEntity()); int statuscode = response.getStatusLine().getStatusCode(); System.out.println(responseBody); The res...
common-pile/stackexchange_filtered
WPF: MenuItem inside toolbar border issue I have toolbar and I need to add menu as a part of it (toolbar combines both menus and single click buttons). Everything works fine except a small visual issue. When menu is opened it is nicely connected to the toolbar (it is inside the same border). However, when menu is on a...
common-pile/stackexchange_filtered
leave cdkTrapFocus - go into other region of page (NVDA Screenreader) I have a simple 3 column view with multiple elements in each column: paint example Goal is to tab through the left side in a loop (1st -> 2nd -> 3rd -> 1st), then pressing a predefined button (arrowLeft, space, d... doesn't matter which one), which m...
common-pile/stackexchange_filtered
Let a, b be constant, the correlation between X&Y is the same as the correlation between aX and bY. Why is it so intuitively? I understand how to derive the conclusion mathematically. However, if a is positive and b is negative, the new correlation between aX and bY intuitively will be the opposite of the correlation b...
common-pile/stackexchange_filtered
Why does LaTeX change font each time I compile? First time I compile the document the font in the entire document is the one specified for the section titles (larger than it should be in the rest of the document etc.) and some characters are wrong. For example dots (in list) are exchanged for Z and scandinavian letters...
common-pile/stackexchange_filtered
Sort Array (DONE) and show original index (HALF INCORRECT?) I have to sort an array using a sorting algorithm and show in which index the values were originally placed. (see expected result vs actual result: https://i.stack.imgur.com/YK7BV.png). I managed to sort correctly the values. BUT the index is HALF correct? Whi...
common-pile/stackexchange_filtered
Member Object Calling Class Method I hope this question is not really a repetition of an existing one! I searched and found no good answer to my question. Here it is: I have a class MyGame that contains a Button member object. Whenever that button is clicked, MyGame should do something. class MyGame extends Application...
common-pile/stackexchange_filtered
Use PHP date() as SQL date I'm trying to create a SQL query that finds results from this day in history (ie today's date, not including the year) I get the current date in PHP: $today = date("Y-m-d", time()); I get no errors but also no results are returned when I use $today in this query: SELECT name, date FROM birth...
common-pile/stackexchange_filtered
pig to hadoop issue: Server IPC version 7 cannot communicate with client version 4 I am trying to get pig started and failing: $ pig 2013-05-10 18:03:22,972 [main] INFO org.apache.pig.Main - Apache Pig version 0.11.1 (r1459641) compiled Mar 22 2013, 02:13:53 2013-05-10 18:03:22,972 [main] INFO org.apache.pig.Main - ...
common-pile/stackexchange_filtered
Deleting a mongodb subdocument inside another that is inside another? I have read other posts similar to this one, but since I am new to mongodb and the depth of the subdocument that I have is more then already addressed, I have to ask this question here. My document is as follows: { "_id" : "57bae0ad7bbba417fcaec4ca",...
common-pile/stackexchange_filtered
Springboot controller send 400 on validation error I've a very simple spring boot controller with param validation. @GetMapping(value = "/test/{p}") @NonNull public String test(@PathVariable(value = "p", required = true) @Valid @Size(min = 2) String t) { return ""; } if I send any string longer than 2 ...
common-pile/stackexchange_filtered
Show multiple plots with single variable Using the same example code as in this question, is it possible to show all 10 plots (ie, each step of the manipulation) simultaneously? If a manipulate function is a series of listplots based on a single variable, is it possible to show all list plots simultaneously (ie - to ov...
common-pile/stackexchange_filtered
How can i reload the current page in Ionic 3 when i refresh the browser? I´ve the following problem. I´m working on an App written with Ionic 3 and I need that when I refresh the browser it renders the current page and does not redirect me to the home page. It's possible? I have tried with this code: this.navCtrl.setRo...
common-pile/stackexchange_filtered
connecting contentful CMS with gatsby page I am trying to connect contentful and Gatsby for a blog. const path = require('path'); exports.createPages = ({ graphql, boundActionCreators }) => { const { createPage } = boundActionCreators; return new Promise((resolve, reject) => { const blogPostTemplate = path.re...
common-pile/stackexchange_filtered
PHP not inserting into database on MAMP phpmyadmin index.php: <form action="insert.php" method="POST"> Comments: <input type="text" name="field1_name"/> <input type="Submit" /></form> This takes in user input and I want whatever the user inputs to be stored in a database that I have using MAMP'...
common-pile/stackexchange_filtered
What Facebook App settings determine whether data is released? I'm trying to retrieve a list of pages that an authorized Facebook user has access to update through a Facebook App using the PHP SDK. require_once('facebook.php'); $config = array( 'appId' => APPID, 'secret' => SECRET, 'cookie' => true, ); $facebo...
common-pile/stackexchange_filtered
Array_Literal Issue in Google Sheets I am not able to figure why the formaula is giving out Array_Literal error code when I am doing everything right. Formula: ={IMPORTRANGE("https://docs.google.com/spreadsheets/d/dfnk", "Dotpe Import!A2:C15000"); FILTER("RISTA Import!A2:C2500", "RISTA Import!E2:E2500" = 1)} Error Cod...
common-pile/stackexchange_filtered
Statically link a haskell program that uses C++ wrapper library I am trying to make a program that, via some of the third party modules, is dependant upon icu library. I suspect that the dependency is via Network.HTTP.Conduit but maybe via something else. Dynamically linked binary is not portable even between adjacent ...
common-pile/stackexchange_filtered
Strange Behavior in Focal Statistics I am trying to calculate the maximum value in a neighborhood on a raster using the Focal Statistics tool for Spatial Analyst in ArcGIS 10. Using python, I loop though several different radii, with each defining a circular neighborhood, as below: bandwidth = [1609.344*.125,1609.344*....
common-pile/stackexchange_filtered
I have created this Content Censor Code for Wordpress (needed for Ezoic) I have created this Content Censor Code for Wordpress, this code is very helpful for those bloggers who monitized their websites using ezoic ads. Bcz ezoic has an Objectionable Content option. This code worked for me, that's why i am sharing this ...
common-pile/stackexchange_filtered
window.location open in new tab Here's my code that I use to make a whole div clickable: $(".clickablediv").click(function(){ window.location=$(this).find("a").attr("abc"); return false; }); This works well but I want the link to open in a new tab. My code is looking for hyperlink code in the ...
common-pile/stackexchange_filtered
stored procedure to return data from multiple tables I have two tables Property and Photo Photo table has PropertyId FK column which assigning to Property table. I have stored procedure which returns data from property table, now I want to modify this st. procedure to return photos data together with property data in...
common-pile/stackexchange_filtered
What are specific areas that some people get into within amateur radio? I just got licensed a few weeks back and have been connecting with repeaters on my 2m/7cm HT. My plan is to get a mobile antenna for use in the car and make an antenna for home operation. While those will let me connect with more repeaters and nets...
common-pile/stackexchange_filtered
rails s not working with my app Hey guys I have been working on a rails app, and the rails server was working. Then I added more code, and all the sudden the rails server is not working now. I keep getting this message: Usage: rails new APP_PATH [options] Options: -r, [--ruby=PATH] ...
common-pile/stackexchange_filtered
Magento Add to Wishlist code not working I am using this snippet of code to add a wishlist to my product view <a onclick="setLocation('<?php echo $this->getAddToWishlistUrl($_product) ?>')" class="buttons-wish" title="<?php echo $this->__('Add to Wishlist') ?>"></a> <a onclick="setLocation('<?php echo $this->getAddTo...
common-pile/stackexchange_filtered
With providedIn: 'any' and providedIn: NgModule now deprecated are there any other options other than root? Across Angular v14 and v15 releases, the providedIn: 'any' and ProvidedIn: NgModule are now deprecated. Is 'root' now the only valid value for providedIn? I realize that you still have the option of using NgModul...
common-pile/stackexchange_filtered
Find a point inside non-empty difference of ellipsoids Given two ellipsoids \begin{align}\mathcal{E}_1 &= \{ X \mid X^\top A_1 X + 2B_1^\top X + C_1 \leq 0\}\\\mathcal{E}_2 &= \{ X \mid X^\top A_2 X + 2 B_2^\top X + C_2 \leq 0\}\end{align} are both non-empty, it is possible to test if $\mathcal{E}_1 \subseteq \mathcal{...
common-pile/stackexchange_filtered
How can we create the triangles in equations of latex? How can we create the above equations in latex? I don't know how to create the triangles. My current code is as follows, and the triangles don't exist. \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \begin{document} \[ \{s : \text{Ship} \mid s...
common-pile/stackexchange_filtered
How to map world coordinates to screen coordinates while separating view & model? I'm writing an n-body simulation as an exercise in C# using WPF and I ran into what seems like a fundamental design issue with displaying the results of my program. I have an Entity class, which stores basic information like position, vel...
common-pile/stackexchange_filtered
Does moving to EF 4 need to target .net 4? I have a .net 3.5SP1 project with EF (1 i guess). How the upgrade to EF4 occurs ? I need to target .net 4 ? Thanks Jonathan Yes You will need .Net4.0 for EF4. And Visual Studio 2010 also :) Yes - .Net 4.0 is needed.
common-pile/stackexchange_filtered
Unable to get formvalues in onSubmit function in google script I am getting null for Logger.log(responses) I have added the trigger also but it is not working. // Triggered when a form is submitted function onSubmit(e) { Logger.log('new function shivani sdsad'); Logger.log(JSON.stringify(e)); var form = For...
common-pile/stackexchange_filtered
In logic app , pass only 1 email attachment to Form Recognizer API Im trying to analyse the 1 attachment per email, using Logic App and Forn Recognmizer API but it's creating a "For Each Loop" as it could be more than 1 attachment per email. How can I limit to 1 and ditch the loop ? Thanks David You need to use an ex...
common-pile/stackexchange_filtered
How to determine if an app is using a specific sensor on Android phone? For stats collection purposes, I want to determine if an app is using a specific sensor or not? Is there any specific API available in Android to determine this? For example, I would like to know if a service is getting geo-location coordinates in...
common-pile/stackexchange_filtered
Good source for current taxonomic keys I’ve recently taken back up my interest in entomology and taxonomy. I used to be a biologist, but have long since moved to another field to make my way. I realize that all of my taxonomic keys are likely way out of date as they are mainly from the 1970s and earlier. So I’m looking...
common-pile/stackexchange_filtered
Observer fires too early I have three drop-downs in my view. While preparing a controller, I am doing the following: Pre-set the bound properties (selectedCountry, selectedSubtype, selectedCity) (this.set('selectedCountry', 'DE');) After the properties are set, I add observers for those properties, so that the drop-do...
common-pile/stackexchange_filtered
Deleting specific rows/lines in a .txt file - MATLAB or Perl I'm currently writing large data-sets to .txt files proceeding smoothing values with MATLAB using the commands: hann500=hanning(500); yy=conv(y,hann500,'same'); fileID = fopen('chrI500bp.txt','w'); for i = 1:length(x) fprintf(fileID,'%s\t%d\t%d\t%f\n', 'chrI'...
common-pile/stackexchange_filtered
android accelometer detect jumping? Hi! I'm just starting out with Android development and i was wondering if there is any built in machinery in Android phones that are able to detect if a person is squatting (if a person holds his phone in his hand and keeps his hand steady, the phone changes it's altitude by approxim...
common-pile/stackexchange_filtered
Can't Debug Android Applications I've tried to debug the android applications on emulator and than on the device as well but all the time I get the message "Wait for debugger - waiting for the debugger to attach to the process". I really don't know how to set the environment and the application in order to run the debu...
common-pile/stackexchange_filtered
How to execute script block on remote machine that uses local variable as an argument I would like to run an application passing it arguments from a remote machine. I've got the following to work on the remote machine by running it locally: foreach ($a in $args){ &"c:\Program Files\ChristianSteven\CRD\crd.exe" "-s ...
common-pile/stackexchange_filtered
$CFG->dataroot in Moodle clustering I'm trying to launch several instances of Moodle in a Kubernetes-like container platform to improve performance and make my installation reliable. I came across the following requirement $CFG->dataroot This MUST be a shared directory where each cluster node is accessing the files...
common-pile/stackexchange_filtered
How to select the most frequent value for each group within two tables? I have two tables and I want to select the most ordered (amount) product for each shipmentType (see result table) shipment table id shipmentTyp amount productID 1 A 3 1 2 S 7 1 3 A 12 3 4 T 15 2 5 T 7 1 6 T 4 3 7 A 1 3 8 S 78 ...
common-pile/stackexchange_filtered
LWC: Display HTML Content In Aura components, we use to display pre-formatted HTML. As per the document, there is no corresponding LWC component. Is there any way I can display HTML content stored in a metadata field as-is? You can use lightning-formatted-rich-text? Check this link https://salesforce.stackexchange.c...
common-pile/stackexchange_filtered
Why does adding a speed to toggle affect ':visible'? I am working on some functionality to show a div containing some text when a user clicks on a link. The link initially displays the text 'show +' and then when the div is revealed this text changes to 'hide -'. Code is below: JQUERY <script> $(document).read...
common-pile/stackexchange_filtered
AWS Elastic beanstalk: ASP.NET Cors configuration not allowing hosts I'm trying to get an API to allow requests from an origin. As of right now nothing is getting through so allowing any origin is the goal right now and I can tighten up the access once it is working. The API is written in ASP.net and gets deployed to e...
common-pile/stackexchange_filtered
Spark's takeSample() results in two stages I've observed interesting behavior in Spark 1.3.1, the reason for which is not clear. Doing something as simple as sc.textFile("...").takeSample(...) always results in two stages: I was able to reproduce this and the key is to focus on the details expansion. The first and se...
common-pile/stackexchange_filtered
Temporal: Using time related functions in activity implementation The documentation says Only use Workflow.currentTimeMillis() to get the current time inside a Workflow. Does it apply only to workflows or activities as well? Can I use System.currentTimeMillis() in activity implementation? The implementation constrai...
common-pile/stackexchange_filtered
Are MAUI and SQL Server Compatible? I have a MAUI app, and I have just decided to switch databases from Google's Firestore to Microsofts SQL Server and am having issues with compatabilty. I have included the using System.Data.SqlClient; using statment and then attempt to use SqlConnection. But I get the error that: Th...
common-pile/stackexchange_filtered
OrderBy with Anonymous Types I have the following: Context context = new Context(); var persons = context.Persons.Select(x => new { Name = x.Name }); var mapper = OrderMapper.For(persons).Add("name", x => x.Name); var result = persons.OrderByWithMapper(mapper); Where: persons is of type IQueryable<anonymous> ma...
common-pile/stackexchange_filtered
Map to a div grid I am attempting to adapt the following so that 4x4 grid has numbers 1 through n displayed. Each div cell needs an onclick handler. I tried tinkering the last response from Rendering a chart with colored tiles in React function App() { return ( <div style={{ background: "", h...
common-pile/stackexchange_filtered
Automated update of image loading without changing html code I have a web page containing photos and the following html code: <table border="0"><tr> <td width=20%> <div class="thumbnails" align="top"> <img onmouseover="document.getElementById('preview').src=document.getElementById('img1').src" alt="Image Not Loaded" ...
common-pile/stackexchange_filtered
Pick elements from list and print them in 2-decimal format I have 2 lists: one for indices (vv below) and another for floats (aa below). I want to do 2 things with Python 2.7. (1) use vv to pick elements from aa to create a new list ww (2) print ww in 2-decimal format. The number of indices varies. I manage to do these...
common-pile/stackexchange_filtered
One-To-One Questions I have a few questions relating to one-to-one. I felt like I knew these concepts back when they were paired with $\mathbb{R^n} \rightarrow \mathbb{R^m}$, but now I have some questions that don't specify $\mathbb{R^n} \rightarrow \mathbb{R^m}$. 1) Suppose that $A$ is a $9 \times 5$ matrix that $T(x...
common-pile/stackexchange_filtered
How do I Prevent Someone Uploading APKs of My App I discovered that some unauthorized actor is downloading my app from the Google Play store and somehow creating APKs of it. They are uploaded to websites like apkcombo and the like. How do I prevent this? From the research I have done, obfuscating the code sounds like i...
common-pile/stackexchange_filtered
Blurry football pictures under stadium lights with my Nikon D5500, lens 70 mm-200mm I bought this new lens about 6 months ago and have been trying different settings to make my action shots not blurry—sometimes they are and sometimes they are not. I'm finally using manual mode, shutter mode, or aperture mode as I also...
common-pile/stackexchange_filtered
Wrote a python script in windows 8 and used py2exe to get a single exe, when moved to windows 7 it opens cmd then closes Windows 8 running in 32-bit using vs-code to write a simple python script to configure an ip address quickly through command line. Was able to successfully (after many attempts) to create a single ex...
common-pile/stackexchange_filtered
Disable command substitution in heredoc? How can I disable command substitution in the EOF heredoc? #!/bin/bash executableFile="executableFile.sh" firstFolder="blablabla" cat <<EOF >$executableFile secondFolder="blablabla2" if [ \$(cat something) == "blub" ]; then echo $firstFolder echo $secondF...
common-pile/stackexchange_filtered
Bazaar: Do I need branches? I'm new to VCS and I'm just trying to get my head around how to use Bazaar for my situation. My situation is that I'm a solo web developer working on a web site that consists of a live website e.g. www.mysite.com and a staging/development site e.g. dev.mysite.com. I'm using Bazaar Explorer a...
common-pile/stackexchange_filtered
How safe is it to delete old posts edits to save database space? After this question: https://wordpress.stackexchange.com/a/93902/27148 There is an answer that suggests deleting past edits directly from database, which would be nice, because I could create queries to delete specific edits only. But, Is this safe? Why?...
common-pile/stackexchange_filtered
rails coding conventions to improve performance In my current project, i notice few thing, Maximum part of the business logic are moved to helper. Included all helper files in a module under lib directory and included that module in application controller. In many methods, no argument passed, instead they used the ins...
common-pile/stackexchange_filtered
Population Variation with two variables I have a dataset with two variables. I want to treat my dataset as a population not a sample. I am wondering if I can just use the formula for population variance as below: $$\frac{\sum(X-\mu)^2}{N}$$ Here, do I need to think about the degree of freedom? Does the degree of freed...
common-pile/stackexchange_filtered
shared_ptr failed to be pushed to vector I have vector of boost shared_ptr, however, when I push to the end of locally made new shared_ptr, it fails. Can anybody tell me what is wrong with following code? std::vector<boost::shared_ptr< A > > vecA; BOOST_FOREACH(const std::string& s, vecStrings) { boost::shared_ptr<...
common-pile/stackexchange_filtered
Can not get object from hashmap by a key has the same hashcode and two keys are equals() I am trying to complete a task that in my hash map, I only store the KV proxy object which the actual data is storing off heap. So I create a proxy object which override equals and hashcode method to make it have the same value wit...
common-pile/stackexchange_filtered
Can SQL Transactional Replication work between SQL 2005 Standard (Publisher) and SQL 2008 R2 Web (Subscriber)? I've been trying, googling and hitting my head against the wall but can't figure our what the problem is or how to solve it. I have and SQL 2005 Standard server acting as a publisher. I need to do transactiona...
common-pile/stackexchange_filtered
HTCondor Scatter Gather I'm developing a project where I need to reduce a video resolution from 1080p to 720p. That part is pretty straight forward with the command "ffmpeg -I inputVideo.mp4 -r 60 -s hd720 outputVideo.mp4". Now, the idea is using HTCondor, so every Resource receives one part of the video (Scatter), red...
common-pile/stackexchange_filtered
Google Chrome 62.0.3202.94 gapi.auth2.getAuthInstance().signIn popup_closed_by_user Try sample from documentation https://developers.google.com/identity/protocols/OAuth2UserAgent#example We could select an account from popup dialog, but SignIn don't autorize in Google Chrome version 62.0.3202.94 In my example bilding b...
common-pile/stackexchange_filtered
How to redirect from one action of controller A to an action of controller B and back in Rails? I have two associated models, Employee and Company: class Employee < ActiveRecord::Base attr_accessible :name belongs_to :company attr_accessible :company_id end class Company < ActiveRecord::Base attr_accessible :...
common-pile/stackexchange_filtered
Send http request over https connection ASP IIS I have a legacy Asp web site. It's working fine when accessing via http protocol. When we access it via https protocol (https://xyz.com/mainpage.asp), page is not working well. I found web page is using framesets and in that it is accessing other web pages using http prot...
common-pile/stackexchange_filtered
Why current is constant during storage phase in reverse recovery experiment? This is a simple schematic of reverse recovery experiment. As you can see, there is a constant current phase in the curve known as storage phase. My question is, why current is constant during storage phase? I have read in references that du...
common-pile/stackexchange_filtered
Repairing corrupted JPEG images from character replacement Recently I got some corrupted JPEG images after a mistakingly input command: ~$> sed -i 's/;/_/g' * After that, in the working directory and the subdirectories, Every byte '0x3b' in JPEG images became '0x5f'. Viewer apps displays the images corrupted, such as ...
common-pile/stackexchange_filtered
Trying to get an ajax call to a php file to work with response in a table I am trying to query a database via jquery Ajax. I want to select an option and load a table to return a result. my page make the call is as follows: <!doctype html> <head> <script src="jquery/jquery-ui-1.11.2/jquery-ui.js"></scr...
common-pile/stackexchange_filtered
computing cartesian coordination from image pixel I have a robot arm that moves within a cartesian space. And I have a camera over that space. I need to compute, given a pixel in the image of the camera, its equivalents in cartesian space. Do i need calibration of the camera? And how can I use it if yes? What you want...
common-pile/stackexchange_filtered
React on click over an area as long as it was not an <a> tag I have a large area that I need to make clickable. Imagine I have a list of items: <ul class="my-area"> <li>...</li> <li>...</li> </ul> The items <li> have a lot of stuff inside including working links or links that trigger modal windows etc. As long...
common-pile/stackexchange_filtered
How to destroy Vaadin 8 session on browser close or tab close? How to destroy session on browser close/tab close in Vaadin? We can use javascript to handle this. I tried below code: Page.getCurrent().getJavaScript().execute("window.onbeforeunload = function (e) { var e = e || window.event; closeMyApplication(); return;...
common-pile/stackexchange_filtered
Question on the syntax of the options of pdflatex, latex, etc.: difference between -shell-escape and --shell-escape? What is the difference between pdflatex -shell-escape myFile.tex and pdflatex --shell-escape myFile.tex ? For TeX Live nothing, but in general it depends on the program (see). Some programs use - fo...
common-pile/stackexchange_filtered
How to add an image to ArCore in flutter Basically, I have an ar app using the ARCore plugin. I want to add an image to it by placing it at a certain vector. However, the stuff I've seen examples with don't cover this anywhere. So I went to the documentation and found an image class (Link below). However, I don't under...
common-pile/stackexchange_filtered
findAll() in Spring data Mongodb not working I am having a problem with findAll() method of MongoOperations class when I try to retrieve data from the database . Actually I would like to get the values of the parameters : iliteID, latitude, longitude, height, etc.. Could anyone help out with this issue ? Thanks in adv...
common-pile/stackexchange_filtered
Seasonal exponential smoothing without trend Why multiplicative property exists only for the exponential smoothing with seasonality and trend (Winter's additive and Winter's multiplicative models) and not for the exponential smoothing with only seasonality (without trend)? As I have seen in forecasting software, the ex...
common-pile/stackexchange_filtered
Pydev output in Eclipse console truncated by triple period My favourite thing about Eclipse and Pydev is using the remote debugging feature. This is of great help when debugging python modules in other applications. However, despite setting the console to unlimited output, (right click on console > preferences > Limit ...
common-pile/stackexchange_filtered
How do I load tmx files with Slick2d? I just started using Slick2D and learned how simple it is to load in a tilemap and display it. I tried atleast a dozen different tmx files from numerous examples to see if it was the actual file that was corrupted. Everytime I get this error: Exception in thread "main" java.lang.Ru...
common-pile/stackexchange_filtered
Other ways to make spark read jdbc partitionly When use spark sql to read jdbc data, spark will start only 1 partition in default. But when table is too big, spark will read very slow. I know there are two ways to make partitions : 1. set partitionColumn,lowerBound,upperBound and numPartitions in option; 2. set an arr...
common-pile/stackexchange_filtered
Different abbreviation options for the same acronym in glossary I want to be able to have an acronym in glossary, which when referred to with \gls{} would appear in the main text in a standard form, unless specified otherwise. I.e. i have the following acronyms: \newacronym{a1}{A1}{Apples 1} \newacronym{a2}{A2}{Apples ...
common-pile/stackexchange_filtered
NextAuth v4 - JWT_SESSION_ERROR This is the error : [next-auth][error][JWT_SESSION_ERROR] https://next-auth.js.org/errors#jwt_session_error Invalid Compact JWE { message: 'Invalid Compact JWE', stack: 'JWEInvalid: Invalid Compact JWE I met this error while migrating to v4. I saw this in the documentation : If ...
common-pile/stackexchange_filtered
Why is my weight painting not working properly? I started working on the rig today and it worked fine until just about half an hour ago (when I deleted/dissolved the bones from the centre of the hand to the base of each finger). Now the weight paint for the base of each finger bone doesn't act properly. Please advise. ...
common-pile/stackexchange_filtered
How many shots on physical machine over a lifetime on qiskit This might seem like a simple question, but is there a way to tell how many shots I have ran over all time without manually going into my jobs list and counting. Seeing the total number of jobs is easy enough (86538 as of right now), but those include simulat...
common-pile/stackexchange_filtered
Odoo 17: Create invoice for sales order via API (the right way) I have created an Odoo sales order with the following payload (for test reasons I use the same Odoo product id for all order lines) and the sale.order model: { "company_id": 1, "name": "10000", "partner_id": 17, "partner_invoice_id": 22, ...
common-pile/stackexchange_filtered