text
stringlengths
70
452k
dataset
stringclasses
2 values
Remove function from mutable set I want to store an object's method in a mutable Set. I can add the method without a problem, but cannot remove it: scala> import scala.collection.mutable.Set import scala.collection.mutable.Set scala> class c { | def f(value: Double) { | println(value) | } | } defin...
common-pile/stackexchange_filtered
Uniqueness of Monic Polynomial of Least Degree in Extension Field $K$ Let $K$ be an extension field of $F$, and let $\alpha \in K$ be algebraic. Suppose that $f(x) \in F[x]$. Prove that $f(x)$ is the unique monic polynomial of least degree with f($\alpha$) = $0$. My thinking is that if $f(x)$ isn't unique, then there e...
common-pile/stackexchange_filtered
Set fragment contents before or after adding? I'm basically trying to create this quiz system, where I have a template of questions, and I dynamically change the content of the questions: For example: Who directed movie X? - Incorrect answer director - Correct answer director - Incorrect answer director - I...
common-pile/stackexchange_filtered
Return DOM element in render function of React component I have an external library that renders some custom js controls. The library returns a DOM element that can be inserted in to the page. I am creating wrapper for this library in React. I have it all wired up except I'm not sure how to allow the render function to...
common-pile/stackexchange_filtered
how to get price of an in app purchase item on my server using product id I have a receipt verification server. iOS application sends me the receipt, I validate the receipt using Apple's api, and I return a json with the required fields for the app. In the process if the user's subscription is started, I want to log th...
common-pile/stackexchange_filtered
Speeding Up Python This is really two questions, but they are so similar, and to keep it simple, I figured I'd just roll them together: Firstly: Given an established python project, what are some decent ways to speed it up beyond just plain in-code optimization? Secondly: When writing a program from scratch in python...
common-pile/stackexchange_filtered
count business days in calculation Continuing from my previous question: case when date column is greater than sysdate then 'Y' One thing I forgot to consider was including working days in the calculation. Here is the query: select v.voyage "Voyage" ,v.service "Service" ,to_char(vp.eta_date, 'MONTH dd, yyyy') "ETA"...
common-pile/stackexchange_filtered
jQuery - strange function behaviour I have the UL list and the code which selects the all parents of the selected LI element (https://stackoverflow.com/a/8883690/106616). Now, I want to clear the selection when I select the other LI element. To do so, I've created that code: (simply, before select the new path, I itera...
common-pile/stackexchange_filtered
Assigning values to individual array items and calling them If you want to create an array and assign individual values to each item within that array, is this done by declaring the array and then declaring each individual variable within the array separately? : let animals = [ "cat", "dog" ]; let cat = "...
common-pile/stackexchange_filtered
scrollview does not scroll in second viewcontroller , but only in first home viewcontroller in my application i have one CameraAppViewController, from it i navigate to another view controller the OverlayViewController and from it i navigate to another view controller ScrollerViewController. I want to have a uiscrollvie...
common-pile/stackexchange_filtered
Solving initial value problem that isn't easily separated We are supposed to write a program to solve the following initial value problem numerically using 4th order Runge-Kutta. That algorithm isn't a problem and I can post my solution when I finish. The problem is, separating it out cleanly into something I can put i...
common-pile/stackexchange_filtered
How can I redirect an unauthorized user to a login page? I have my own login page. If any user access any page directly (without login), I want to redirect unauthorized user to a login page. How is it possible? Using Generic Handler, is there a chance? Or how can I do it? You can set this behaviour in the web.config E...
common-pile/stackexchange_filtered
Teamcity10 + .Net 4.6.1 = wrong MSBuild path After installation .Net 4.6.1 on TeamCity BuildAgents machine I have error in buildstep where I have to use MSBuild 2015. Error say: Unable to find MSBuild at C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe\MSBuild.exe, please check MSBuild environment variable to target...
common-pile/stackexchange_filtered
Searching files in directory using regex and grep So I have to find every file in the /etc directory that start with a,b or c what i have is: grep -l '/^[a-cA-C].*/g' /etc/* though i keep getting every file in the /etc directory. I use grep -lto get every file (I guess using find or grep doesn't matter '/^[a-cA-C].*/g'...
common-pile/stackexchange_filtered
Master Public name, Internal name, etcd member pre-built DNS records doesn't resolve to Master external IP address on GCE I created a k8s cluster on GCE (Google Compute Engine) using Kops. After creating the cluster, ran kops validate cluster command which threw following error. unexpected error during validation: unab...
common-pile/stackexchange_filtered
Relation between COM and WinRT I didn't get a clear understanding of similarities/differences or the relation itself between COM (Component Object Model) and WinRT (Windows Runtime). In my understanding both of them are there to provide a "runtime engine" to enable component to communicate... Is that the CLR (Common La...
common-pile/stackexchange_filtered
ParallelCollectionRDD.reducebykey(_-_) is not giving correct result I am trying to get value for below reduceByKey function on RDD, however it is not giving the correct result. scala> val test =sc.parallelize(( (1 to 5).map(x=>("key",x)))).reduceByKey(_-_).collect res62: Array[(String, Int)] = Array((key,-3)) Then I t...
common-pile/stackexchange_filtered
Get second, third and so on values I have this problem here The problem has been solved, but my question is how can I get the second value from that, or the third one. The sheet will have many tables and at some point I will need a total for each table. Also, is there any solution to automatically find the the array nu...
common-pile/stackexchange_filtered
Can a kraken fling a creature grappled in its mouth, or swallow something grappled in its tentacles? The kraken has the following three actions (bold emphasis mine): Bite. Melee Weapon Attack: +17 to hit, reach 5 ft., one target. Hit: 23 (3d8 + 10) piercing damage. If the target is a Large or smaller creature grappled...
common-pile/stackexchange_filtered
Merging scalaz-stream input processes seems to "wait" on stdin I have a simple program: import scalaz._ import stream._ object Play extends App { val in1 = io.linesR("C:/tmp/as.txt") val in2 = io.linesR("C:/tmp/bs.txt") val p = (in1 merge in2) to io.stdOutLines p.run.run } The file as.txt contains five as an...
common-pile/stackexchange_filtered
Centered Menu w/ CSS jsFiddle I need to center my fixed header nav that is using an unordered list. The middle list item is left empty as I am putting a background image there in its place. Right now it "looks" centered though if you rubberband the browser window you can see that it is not. I can achieve almost middle...
common-pile/stackexchange_filtered
Laravel 5.4 loads welcome page once, then errors out. What's going on? I'm trying to learn Laravel, but it's not working. As the title indicates, I can load the install laravel (via composer create-project --prefer-dist laravel/laravel blog) and run php artisan serve and I get the welcome screen. The issue is that it l...
common-pile/stackexchange_filtered
ag (the silver searcher) does not automatically search recursively When performing ag pattern it only searches in the files in the current directory, even when providing --depth NUM>1. Performing ag pattern ./** looks in all subdirectories as well. I am currently using the :Ag command with fzf-vim which also only searc...
common-pile/stackexchange_filtered
Array Values as Object Properties with PDO I want to store array values as object properties. I am following an example for mysqli but I want to use PDO instead. I have a user class: class User { public $id; public $username; public $password; public $first_name; public $last_name; public static function find_all_us...
common-pile/stackexchange_filtered
webpack get source file not transpiled on browser I would like to see on browser original source code (in development environment) for debug. I'm having some problem with sourcemaps. For example in this question I'll use the source code of a React component src/DefaultLoadingComponent.js: const DefaultLoadingComponent ...
common-pile/stackexchange_filtered
How to make an iOS AVPlayer recover from a network stall? When I disconnect my device from the Internet while playing a video on an AVPlayer, it stalls after a few seconds but doesn't recover when I reconnect the Internet link. How can I make it recover from that state? I can detect when it runs out of playback buffer ...
common-pile/stackexchange_filtered
Retrieving emails that I dumped in Feb and would like to get them back Is it possible to retrieve emails that I deleted in Feb as I didn't think I needed them but in hind sight should have kept them ? Sorry, but no - it's not possible - after 30 days, it's gone. Quoting from here: Notes about deleted emails If you d...
common-pile/stackexchange_filtered
Elasticsearch remove special characters (from non ascii based language) For english, I could use something like "specialCharactersFilter": { "pattern": "[^A-Za-z0-9]", "type": "pattern_replace", "replacement": "" } } to remove non-text characters. However, for non-ascii la...
common-pile/stackexchange_filtered
SVN: "repository moved permantly" error when adding a new folder under root I am having a strange problem with SVN: SVN is located in http://local/svn (linux + apache), where I have several repos: http://local/svn/repo1, http://local/svn/repo2 etc My SVN client is in Windows and the folder is c:\mysvn. When I commiting...
common-pile/stackexchange_filtered
SQL Server Reporting Services LocalDB doesn't exist error I've been trying to view deployed reports in SSRS using Visual Studio 2015 and SQL Server 2014, but this is the error message I've been receiving: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server ...
common-pile/stackexchange_filtered
How to create a model and its generic relations on one page I have this setup: class Observation(models.Model): start_time = models.DateTimeField() measurements = generic.GenericRelation(Measurement) class Measurement(models.Model): variable = models.ForeignKey(Variable) value = models.CharField(max_le...
common-pile/stackexchange_filtered
1 Steven Lara: The construction crew started from the valley floor and they're working upward. That's standard practice - you always begin highway construction at the lowest elevation point. 2 Atkins: But why not just start from both ends and meet in the middle? Wouldn't that be faster? 3 Steven Lara: Think about dra...
sci-datasets/scilogues
Why does mvvmcross close current activity when StartActivityForResult is being called? I am new to mobile cross platform development. I am using Xamarin and Mvvmcross to create an application. The problem I am currently faced with is that when I want to make a request to turn on a Bluetooth, calling StartActivityForRes...
common-pile/stackexchange_filtered
Real time usage and difference between left outer join and right outer join If Left outer join is used(select table A left outer join table B), I can have null values in right table(Table B) when data is not matching with left table(Table A). If I change the select query order (select table B left outer join table A),...
common-pile/stackexchange_filtered
Do functionals agree almost everywhere if they agree except on the real-analytic functions? Let $C^\infty(M)$ be the set of smooth functions on some manifold $M$, and suppose we have a pair of functionals $$S_1,S_2:C^\infty(M)\to \mathbb{R}$$ which agree except on the subspace of real-analytic functions. Can we then sa...
common-pile/stackexchange_filtered
Better chances of getting in if university would like to review my incomplete application? I had recently applied to a somewhat niche Master's program (~100 applicants for ~20 places per year, according to the University's statistics) at a top university (top 5 QS in various disciplines)¹. One of the reasons I hadn't c...
common-pile/stackexchange_filtered
Could not open input file: artisan error in react laraval-mix application I have added laravel-mix in my `React application. Below is my code My webpack.mix.js looks like the following let mix = require('laravel-mix'); mix.js('src/scripts.ts', '/dist/') .sass('src/styles.scss', '/dist/') .options({ pro...
common-pile/stackexchange_filtered
Files does not write into correct partition I created partitions using fdisk and the partitions will automatically attached during startup as I registered them in /etc/fstab as shown: proc /proc proc defaults 0 0 /dev/mmcblk0p1 /boot vfat defaults 0 0 ...
common-pile/stackexchange_filtered
How to ignore a local variables list in text? I'm writing the readme (in org-mode) for a new emacs mode, and in the installation instructions we have how to enable the mode on a per-file basis: or at the end of your file: #+BEGIN_SRC emacs-lisp ! Local Variables: ! mode: f90-namelist ! End: #+END_SRC The proble...
common-pile/stackexchange_filtered
How to pass an array from C to Java over JNI without making a copy in C I have int left = ..., top = ..., width = ..., height = ...; void *pixels = GetScreenshot(left, top, width, height); // use JNI to call SaveImageToGallery ::free(pixels); in Java I have public void SaveImageToGallery(int[] pixels, int width, int...
common-pile/stackexchange_filtered
use Kallisto in galaxy I want to use Kallisto for sequence alignment in Galaxy. Its description is: a program for quantifying abundances of transcripts from bulk and single-cell RNA-Seq data, or more generally of target sequences using high-throughput sequencing reads. However, I found this field empty: there is no ...
common-pile/stackexchange_filtered
Yet another 'could not find or load main class' error I have done my due diligence with respect to this problem. I have done searches on google and stackoverflow regarding this problem, and I have tried them all, and am still running into this problem. I am on MS Windows 7 Enterprise. I am running java <IP_ADDRESS>. I...
common-pile/stackexchange_filtered
create a subdirectory within a new subdirectory in python. Error message Hello I am trying to create a subdirectory called eeg within another subdirectory in the following way: for idx in range(0,5): path = '/Users/fred/Dropbox/1_Mon_Switch/Statistiques/Python/RenameFileBids/Raw/' dest_dir = "{}{}{:02d}{}".form...
common-pile/stackexchange_filtered
Cells do not get cleared after TTL is set in HBase I have an HBase table with the following description: { NAME => 'cf', DATA_BLOCK_ENCODING => 'NONE', BLOOMFILTER => 'ROW', REPLICATION_SCOPE => '0', VERSIONS => '1', COMPRESSION => 'NONE', MIN_VERSIONS => '0', TTL => 'FOREVER', KEEP_DELETED_CELLS => 'FALSE...
common-pile/stackexchange_filtered
Why public Electrum servers serving on websocket (WS) are so rare? Couldn't find a single one. Only TCP or TLS. Am I looking in the wrong place? ( https://1209k.com/bitcoin-eye/ele.php?chain=btc ) They are rare because Electrum and all the other wallets using the protocol do not support it client-side, so nobody setti...
common-pile/stackexchange_filtered
Change view height on click I have a TextView, which is currently 0dp high and I want it to get 20dp higher with every click of a button <TextView android:layout_alignParentBottom="true" android:layout_width="match_parent" android:layout_height="0dp" android:background="@color/colorPrim...
common-pile/stackexchange_filtered
I need help installing Linux Mint 18 on a computer with Windows 10 Here's what happened. I shut down my computer. I turned off Secure Boot I put in my (authentic) Linux Mint installation disk into my disk drive I checked the integrity of the media. No errors found. I started Linux Mint. Linux took a long time to star...
common-pile/stackexchange_filtered
How to use a different path name in ProxyPass than the Tomcat context name I am using Tomcat 5.5.9 and Apache 2.x We are trying to use a path name in ProxyPass that is different than the Tomcat context name. ProxyPass /path http://localhost:8080/contextname However, this does not work. When these two are the same then...
common-pile/stackexchange_filtered
Possible to delete rows based on the primary keys with realm and swift? So I basically have two arrays of primary ID's which I am comparing. Simplified version: let A: Set = [1, 3, 5, 7, 9] let B: Set = [2, 3, 5, 7] A.exclusiveOr(B).sort() // [1, 2, 9] I want to delete the primary keys that the result returns (so in ...
common-pile/stackexchange_filtered
How to manually setup Grub2-efi to triple boot Linux To install/due-boot Linux on an EFI-capable computer with an pre-existing operating system, like Windows 8, the UEFI - Community Help Wiki at https://help.ubuntu.com/community/UEFI have covered it. Everything happens auto-magically. But I'd like to know what's going ...
common-pile/stackexchange_filtered
Compass and ruler construction Given the three line segments below, of lengths a, b and 1, respectively: construct the following length using a compass and ruler: $$\frac{1}{\sqrt{b+\sqrt{a}}} \ \ \text{and} \ \ \ \sqrt[4]{a} $$ Make sure to draw the appropriate diagram(s) and describe your process in words. We are als...
common-pile/stackexchange_filtered
Only redirect the requests for "https://localhost:8000/stripe_checkout/..." I develop a web product in react in my Mac. I need to run sudo PORT=8000 HTTPS=true SSL_CRT_FILE=ssl/localhost-mac/cert.pem SSL_KEY_FILE=ssl/localhost-mac/key.pem ./node_modules/.bin/react-scripts start to launch the frontend. As a result, e.g....
common-pile/stackexchange_filtered
%s format specifier in printf #include <stdio.h> int main() { char str[11] = "HelloWorld"; printf("%s\n",str); printf("%s\n",str+3); /* This Line here is the devil */ printf("%s\n",str[2]); // %s needs an addr not a value. return 0; } Why does that line give a segmentation fault. Is it becaus...
common-pile/stackexchange_filtered
Do I understand this MSIL code correctly? I have the following code in C# // test.Program private static void Main() { int x = 5; int y = 100; Console.WriteLine(y + ", " + x); } And I'm reading the IL code, I've never programmed assembly before so I'm asking if what I each line does is correct. .method pri...
common-pile/stackexchange_filtered
Fetching columns from three tables in mysql I want to fetch three different columns from three tables(table1,table2 and table3) and the user_id is a reference. Help me for the query in mysql php use joins while trying to fetch http://dev.mysql.com/doc/refman/5.7/en/join.html try reading this add some sample query an...
common-pile/stackexchange_filtered
Referencing same hdfs table in my 50 union all statements in impala which is resulting in memory issues Referencing same hdfs table joins in my 50 union all statements in impala which is resulting in memory issues Select a,case statement From a inner join b On a=b Union all Select a,case statement From a inner join ...
common-pile/stackexchange_filtered
JavaFX exe bundling for x86 windows systems usually I deploy my Java apps as a bundle which contains the JVM, so there's no need to install a JVM on the system. Btw: This is no jnlp applet, this is a normal Swing Application. I did this using ant's fx:deploy. This already works for 64bit systems. My problem is, that I...
common-pile/stackexchange_filtered
TextMate Edit Latex Bundle Snippet, regex to replace non ascii-characters I'm trying to modify the code from a TextMate snippet in the LaTeX Bundle. This is the code: \section{${1:section name}} % (fold) \label{sec:${2:${1/\\\\\w+\{(.*?)\}|\\\\(.)|(\w+)|([^\w\\\\]+)/(?4:_:\L$1$2$3)/g}}} ${0:$TM_SELECTED_TEXT} % section...
common-pile/stackexchange_filtered
How to fix Android compatibility warnings I have an app that is targeting Android 9 and I noticed in the Google Play prelaunch report a new section called Android compatibility. This new section lists warnings or errors related to the usage of unsupported APIs. The following is one of the problems and is listed as a gr...
common-pile/stackexchange_filtered
Trigger a event when the moving marker reaches a certain latlng I am Using this plugin for moving a marker around a polyline. Here is how the moving marker is initiated. var locations = [ ["LOCATION_1",25.700769, 82.300140], ["LOCATION_2",26.600969, 83.400260], ["LOCATION_3",27.600969, 84.400260], ["LOCATION_4"...
common-pile/stackexchange_filtered
Setting TTL for expire data from collection Is there a correct way to configure data self-deletion by key using the official mongo driver? The only method that I found in the Mongo-driver module is ExpireAfterSeconds, but I'm not sure how to use it correctly. Here's the repository with what is ready at the moment. You...
common-pile/stackexchange_filtered
Wireless headset standard for Dodge Van I just got a 2016 Dodge Caravan that has the DVD entertainment system in it. It comes with 2 headsets to start with but I'm wanting to get a few more. It uses a IR interface. What is the standard that this works on? I'm not looking for a product req (but feel free to comment...
common-pile/stackexchange_filtered
Prove that $E=\{x=(x_n)\in \ell^\infty(\Bbb N): (x_n)_n~~\text{is periodic}\}$ is not complete. Let $E=\{x=(x_n)\in \ell^\infty(\Bbb N): (x_n)~~\text{is periodic}\}$ Defintion: $x=(x_n)$ is periodic means there exists $p\in \Bbb N$ such that, $x_{n+p} =x_n ~~~\forall ~~n\in\Bbb N.$ we define on $E$ the distance $$...
common-pile/stackexchange_filtered
How to show progressive curve in matplotlib I have this code right now: import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import numpy as np fig = plt.figure() ax = fig.gca(projection='3d') x = np.arange(1,6) y = np.arange(5,11) z = np.arange(3,9) for i in range(4): ax.plot([x[i], x[i+1]], [...
common-pile/stackexchange_filtered
How do I make Apache finish running Perl scripts after the web browser is closed? I have a Perl script that is activated by an end user clicking on a shortcut in a web browser. The script iterates over a list of hash values. It outputs to the browser some HTML when it inserts a row into the database for each iteratio...
common-pile/stackexchange_filtered
python multiprocess read data from disk it confused me long time. my program has two process, both read data from disk, disk max read speed 10M/s 1. if two process both read 10M data, is two process spend time same with one process read twice? 2. if two process both read 5M data, two process read data spend 1s, one pro...
common-pile/stackexchange_filtered
is there any way to make this at seaborn scatter plots (gridplots)? python Hi am doing a data analisys and i need to make some scatterplots but i have to do this in a grid of 3x3 plots .for example am reading a csv file and store it as data frame.From this data frame i chose some columns to make those scatter plote. le...
common-pile/stackexchange_filtered
How can i implement a background "Timer" in PHP of my page that checks something every X time I want to implement something that do every X time some actions. I want that this thread worker are always executing in my server (PHP). For example: I have a blog and i want that someone process deletes comments with keyword ...
common-pile/stackexchange_filtered
How to color just the `\vec` symbol? How do I color only the vector symbol in \vec f? I'm using beamer, so xcolor is already loaded. Extra "points" to an answer that also explains how to fish..and not only gives me the fish. Thanks! How about $\color{red}{\vec{\color{black}{f}}}$ and if you want it a bit more automa...
common-pile/stackexchange_filtered
Web page scraping gems/tools available in Ruby I'm trying to scrape web pages in a Ruby script that I'm working on. The purpose of the project is to show which ETFs and stock mutual funds are most compatible with the value investing philosophy. Some examples of pages I'd like to scrape are: http://finance.yahoo.com/q/...
common-pile/stackexchange_filtered
.NET MVC 2 Client-Side Validation and Ajax-Loaded Form I am loading a form onto a page via jquery ajax. Once loaded I was hoping that <%Html.EnableClientValidation(); %> would work as it normally does. It is not, and I am guessing that this is because the form has been added to the DOM after it was initially set, and...
common-pile/stackexchange_filtered
In Cocos2d, how to release texture from OpenGL memory(GPU)? CCSprite *sprite; sprite.texture = [[CCTextureCache sharedTextureCache] addImage: @"mySpriteImage.png"]; sprite.position = ccp(width/2.0f, height/2.0f); [self addChild:sprite z:2 tag:kTagMySprite]; ... [sprite removeFromParentAndCleanup:YES]; Is there a mem...
common-pile/stackexchange_filtered
Is there any way to modify the mail headers in an outgoing message sent using Gmail? I'm interested in doing this to add an "Approved:" header to a Mailman announcements-only list (reference). If you are using the Gmail web interface the answer is no, it's not an available option. However, you can bypass this restrict...
common-pile/stackexchange_filtered
can you re-initiate a ui-popover? Since I'm injecting a <span ui-popover></span> after the DOM is constructed I need to reinitiate the popovers otherwise it won't show. Is there away to do that? HTML <div ng-repeat="i in comments"> <div id={{i._id}} class="task" commentId={{i._id}}> {{i.text}} </div> </div> I'm using ...
common-pile/stackexchange_filtered
Creating a buffer round a polyline At the moment the code I use creates a buffer extending 1000km from each geometry creating square buffer zones over polygons, lines and points. How can I amend the code so that it creates a 'sausage' buffer around the polyline instead of creating a square extent? Should I create anoth...
common-pile/stackexchange_filtered
Moving and returning a mutable pointer I am working through this Rust tutorial, and I'm trying to solve this problem: Implement a function, incrementMut that takes as input a vector of integers and modifies the values of the original list by incrementing each value by one. This seems like a fairly simple problem, yes...
common-pile/stackexchange_filtered
Bluetooth pairing without pin code I am a newbie working on bluetooth, and I would like to get some advice regarding the pairing process. I have googled this but I did not find much information ... My goal is simple: I want to do a pairing to a headset without entering a pin. I have an android (nexus S running Android ...
common-pile/stackexchange_filtered
Many values of HMM matrices, A and B, tend to zero I'm experimenting with an HMM. I have a sequence of observations (10000) and the original matrices A,B and pi that generated those observations. There are 4 types of observations. What I am trying to do is to train a randomly initialized HMM (initial distributions are ...
common-pile/stackexchange_filtered
R: how to shape two lists of uneven length to a data frame I have two lists in R: a=c(1,3,7) and b=c(0,2,4,6,8,10). How could I reshape them into a data frame as below: Value type 0 b 1 a 2 b 3 a 4 b 6 b 7 a 8 b 10 b One option is to create a name list and then stack into a two col...
common-pile/stackexchange_filtered
Difference between key hash produced by x509 ocspid option and public key of the certificate I am using Openssl Version: 1.1.1d I was trying to debug a mismatch between Issuer key hash returned by ocsp responder and the hash calculated on the public key retrieved from the certificate. In order to check if everything ...
common-pile/stackexchange_filtered
Will the image load for visibility value set as hidden when the page loads? I am new to javascript. I would like to know how the loading works. Suppose in my html page I have an image whose visibility is set as hidden. I have an button which on click sets the visibility property of the image to visbile using javascript...
common-pile/stackexchange_filtered
df.fillna() throws ValueError: fill value must be in categories I have a DataFrame df without specified Dtypes, which is a conditional frequency table where the headers are organized in the following way: Data Attributes excluding X | freq_v columns for all values v of X I obtain the frequency columns by performing an ...
common-pile/stackexchange_filtered
Using custom type props in React I have a type that looks like this: type MyType = string; I then want to restrict a prop to only take MyType, not a regular string or anything else. But even when I type it like this: interface MyProps { key: MyType } the component still accepts takes a regular string as a paramete...
common-pile/stackexchange_filtered
ImageView frame doesn't fit the real size I've created an imageView in the storyBoard and created some constraints on it. Then I use a function to add a border in that imageView: CALayer *borderLayer = [CALayer layer]; CGRect borderFrame = CGRectMake(0, 0, (imageView.frame.size.width), (imageView.frame.size.height)); /...
common-pile/stackexchange_filtered
Load a XML into Database using SSIS 2012 I have a XML-File which is stored on a server. It can be reached over a URL. I need to Load the XML-Data into my Database, using SSIS 2012/Visual Studio 2010. I've done this before in SSIS 2008 and it worked like a charm. Now I moved to 2012 and I am getting the following Error:...
common-pile/stackexchange_filtered
Hyperbolic PDEs - Proof that the restriction of a locally $H^s$ solution to a spacelike hypersurface is locally in $H^s$ I have found the following claim made very clearly at least once in the published literature (see below): Let $P$ be a linear partial differential operator defined on an open set $\Omega \subset \ma...
common-pile/stackexchange_filtered
Magento: I need Discount Coupon Code Field on Product Detail Page I have seen examples and workaround here and there but they doesn't seems to be working in my case. I was thinking if there is any extension or chunk of code that might make it work. I need discount coupon field to apply discount on any particular produc...
common-pile/stackexchange_filtered
Django: Limit user's session by time I'm working on the app where I need to limit the ability to log in and be authenticated for a specified time of the day. Let's say from 8am to 5pm. To limit the ability to log in I created a custom auth backend where authenticate() method returns user object only if current time is ...
common-pile/stackexchange_filtered
Is it possible to return more than one value from a method in Java? I am using a simulator to play craps and I am trying to return two values from the same method (or rather I would like to). When I wrote my return statement I simply tried putting "&" which compiled and runs properly; but I have no way of accessing the...
common-pile/stackexchange_filtered
Flutter - ListView.Builder() horizontal + reverse pull to refresh does not work class MyWidget extends StatefulWidget { const MyWidget({Key? key}) : super(key: key); @override State<MyWidget> createState() => _MyWidgetState(); } class _MyWidgetState extends State<MyWidget> { List<String> cities = ['New York',...
common-pile/stackexchange_filtered
JAGS: posterior predictive distribution I am fitting a simple linear regression model with R & JAGS: model { for (i in 1:length(ri)){ ri[i] ~ dnorm(mu[i],tau) mu[i] <- alpha + b.vr*vr[i] + b.ir*ir[i] } #posterior predictive distribution for (j in 1:length(pvr)){ pmu[j] <- alpha ...
common-pile/stackexchange_filtered
Can a Scala object reference itself in its constructor? I want to construct an object, but in the process I want to pass itself in as one of the parameters during construction. object TradeTable extends AbstractTable ( join = ReportForeignKey.addJoinTo(TradeTable).withAlias(TradeTableJoin.Parent) ) I get an error s...
common-pile/stackexchange_filtered
Information regarding using Core Service to create Components in SDL Web 8 Recently I'm trying to use the Core Service in SDL Web 8 to create Components from XML files. I found that the information on the SDL Documentation Center is not enough for me, and information from browser is a little messy. Could anyone share ...
common-pile/stackexchange_filtered
I need to create a few customer specific products in woocommerce which should only be shown to specific users I am developing a ecommerce store using WordPress and WooCommerce. I have a products. I will only allow a specific customer to purchase the product. So I would like to only show this product if the specific cus...
common-pile/stackexchange_filtered
Test reporting tools I am creating a set of test cases and I am looking for a better solution for what I am doing. I am currently using Microsoft excel to create a spreadsheet for all my tests and reporting. I am looking for an open source test management tool that I can create tests for products and have it generate r...
common-pile/stackexchange_filtered
How to install .ipa programmatically How do I install an .ipa file programmatically on iOS? is there some framework for that? I'm not jailbreaker, just coding some app for client, and that's what he wants. As far as I know, the only way to install apps on the iPhone is to download them through Appstore. The .ipa files...
common-pile/stackexchange_filtered
AJAX / PHP form submit issue I trying to upgrade a website to make it easily replicable and more database driven. My forms use PHP / AJAX to submit to response.php within the same directory. E.G domain.com/client1/login.php this would use JS in /js/common.js common.js will take the variables from the form name and use ...
common-pile/stackexchange_filtered
JSON.Net serializer ignoring JsonProperty? I have the following entity class: public class FacebookComment : BaseEntity { [BsonId(IdGenerator = typeof(ObjectIdGenerator))] [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] [JsonProperty("_id")] public ObjectId Id { get; set; } public int? Origina...
common-pile/stackexchange_filtered
Android CPU ARM architectures We have a Android CPU dependent code and I would like to see how many devices used by customers are ARMv6/ARMv7, if there are still ARM v5, how many of ARMv6 have VFP, what is the Tegra or Neon percentage. Any tips where such statistics could be found? BR STeN One thing that should make i...
common-pile/stackexchange_filtered
object object object has no method slides/autocomplete' My site has been working completely fine for months but now suddenly no longer. Chrome provides me these errors: object object object has no method autocomplete' //When ajax search is enabled object object object has no method slides' //When ajax search is denable...
common-pile/stackexchange_filtered