text
stringlengths
70
452k
dataset
stringclasses
2 values
A limit property and the Z-transform of a 2-sided sequence Here is a property about limits that we were taught in school: Theorem: If the limits of functions $f(x),g(x)$ exist at $x_0 \in \mathbb{R}$ then: $$\lim_{x \to x_0} (f(x) + g(x)) = \lim_{x \to x_0} f(x) + \lim_{x \to x_0} g(x) $$ This can be extended for $x_0 ...
common-pile/stackexchange_filtered
Are the charges induced on the surface of an earthed conductor of the same? Suppose a positive charge is placed near an earthed conductor. Now a true/false statement in my book reads as follows: "On the surface of the conductor at some points, charges are negative and at some other points, charges may be positive, and ...
common-pile/stackexchange_filtered
MongoDB query choosing the wrong index in winning plan, Though in executionTimeMillisEstimate as lower for the other index? MongoDB Query chooses the wrong index in the winning plan. I have two indexes for the same field, one is a single field index and a Compound index with another field. Eg. Field name: Field1, Cont...
common-pile/stackexchange_filtered
How do I analyze the treatment effect while controlling for covariates in a pretest–posttest design in R? I ran a repeated-measures ANOVA in R to look at the effects of treatment (3 different treatment groups), gender, age, and education level on a specific biomarker (continuous variable). The data is in long-form with...
common-pile/stackexchange_filtered
Adjust <div> in CSS I'm trying to solve 2 issues in the picture below: a) adjust space between the image and the text (red rectangle) b) put away at the bottom line of the image the link called "enviar" (green rectangle with the arrow) I'm using Bootstrap style and I tried a lot of different solutions but I'm really ...
common-pile/stackexchange_filtered
Constructing a type based on the object in Typescript I am in need of extracting a type from an object literal that I am constructing by hand. I have the following: const makeFunc: { key: string, val: (p: TParam) => TResult } = <TParam, TResult>(p: TParam) => doSomething(p); const myObj = { getSomething: makeFunc(...
common-pile/stackexchange_filtered
Is Guid considered a value type or reference type? Guids are created using the new keyword which makes me think it's a reference type. Is this correct? Guid uid = new Guid(); Are Guids stored on the heap? You can see the definition of a Guid yourself: public struct Guid ... Or you can test it like this: bool guidIsVa...
common-pile/stackexchange_filtered
Changing label placement (anchor point) using ArcPy? arcpy let user automatically turn on the label, use label expression to save our time. is there a way how to change the position of the label like we use to do on label properties like screenshot below ? so if i want to change the label placement/position of 100 lay...
common-pile/stackexchange_filtered
Xamarin.TestUI Navigating repeating objects Lets say I have a listview in a native app (not webapp). Each listview item has child labels with AutomationID 'name', 'date', and 'time' and a button with AutomationID 'info'. In my test, I want to click on the info button for an item that has a specific date. Coming from se...
common-pile/stackexchange_filtered
Why is my laptop fan running so much? I have a Dell N5110 laptop and the fan is running quickly and noisily often. I'm concerned my laptop might be getting damaged. Is there any way to identify what is causing this and, if so, how I might fix it safely? please sudo apt-get install lm-sensors and paste the output of th...
common-pile/stackexchange_filtered
How is this access token stored on the client, in FastAPI's tutorial "Simple OAuth2 with Password and Bearer" I'm pretty new to FastAPI and OAuth2 in general. I just worked through the tutorial "Simple OAuth2 with Password and Bearer" and it mostly made sense, but there was one step that felt like magic to me.. How doe...
common-pile/stackexchange_filtered
How to glue two functions continuously I am trying to construct a family of real functions, $f_1,f_2,\ldots$, on the interval $[0,1]$ with the following properties: For every $k$, $f_k$ is strictly increasing. For every $k$, $f_k(1)=1$. Define $I_k = \int_{0}^{x_0} f_k(y)dy$ (for some constant $x_0$). Then $I_k$ shou...
common-pile/stackexchange_filtered
mongoimport and header line contains in 2nd line I am importing a CSV file into MongoDB. I have a region.csv file which contains the first line as header line. I used the following command: mongoimport -h localhost --db maxmind --collection region --type csv --file region.csv --headerline It worked fine. Now I have ...
common-pile/stackexchange_filtered
Android Pay API - get payment methods I'm developing an Android application and I need to get user's credit cards/payment methods like in the picture below is there a way I can do this with Android Pay API or any other method? Yes, there is. In fact, there's significant documentation on exactly what you need to do. H...
common-pile/stackexchange_filtered
active directory with xamarin method I wrote the following code to find out if the user logging has an account at active directory so i may allow him to proceed and it's working fine: public bool AuthenticateUser(string domain, string username, string password, string LdapPath) { string domainAndUse...
common-pile/stackexchange_filtered
Torsion and Curvature in general relativity in Landau's book, field theory, the famous physicist stated, "Because of equivalence principle, there should be a 'Galileo' frame, in which the Christoffel symbols should be zero, thus the torsion zero. If in one coordinates, the torsion is zero, then it's zero in any coordin...
common-pile/stackexchange_filtered
Specify decimal precision of column in a SQL Server indexed view I am wondering if it's possible to override the default column precision of columns within an indexed view. The view seems to always create the columns with the largest possible precision. A complete run-able example is below: -- drop and recreate exampl...
common-pile/stackexchange_filtered
CKEDITOR 4 How to make snapshot before using custom command to use CTRL+Z to undo Problem is following: We have custom block element, such as quote. We want to have a possibility to "CTRL+Z" (Undo) its creation. How to make snapshot of current state of ckeditor before inserting its html, so CTRL+Z after that would be u...
common-pile/stackexchange_filtered
TypeError: Cannot read property 'roles' of undefined in discord.js I am trying to get the bot to add roles in one discord and also add a role in another discord. but I keep getting the "roles" is not defined error. I have little to no coding knowledge and most of my code is a combination of things I find on google or f...
common-pile/stackexchange_filtered
matrix with two unknowns I am to calculate the value of this matrix $$ \begin{bmatrix} 1 & 1 & 1 \\ 1 & 1 & a \\ 1 & b & 1 \end{bmatrix} $$ I do a basic transformation to $$ \begin{bmatrix} 1 & 1 & 1 \\ 0 & -b+1 & 0 \\ 0 & 0 & -a+...
common-pile/stackexchange_filtered
As level computer science paper 2 question Could someone help explain the logic of the ms . The question is The RandomChar() module is to be modified so that alphabetic characters are generated twice as often as numeric characters. Describe how this might be achieved. and the marking scheme says my logic is that if y...
common-pile/stackexchange_filtered
How to connect IF in my ELSE condition inside of while? C++ I'm stuck my if and else is not connecting error: else without previous if #include<iostream> int main(){ int i=1, num, sum=0; while (i <= 5) { cout<<"Enter a number: "; cin>>num; if (num % 2 ==0 ){ sum = sum + num;...
common-pile/stackexchange_filtered
Require Select Not Allow First Option Say we have the following: <select name="select" required> <option disabled selected value>Please Select Option</option> <option>Option 1</option> <option>Option 2</option> <option>Option 3</option> </select> <button type="submit" name="submit">Submit</button> I would like this f...
common-pile/stackexchange_filtered
Eager loading a tree in NHibernate I have a problem trying to load a tree, this is my case, I have an entity associated with itself (Hierarchic) with n levels; the question is, Can I load eagerly the entire tree using ICriteria or HQL? Thanks in advance for any help. Ariel Yes... just set correct fetchmode. i'll incl...
common-pile/stackexchange_filtered
Parse HTML in Objective-C Hello! This is for the iphone This is what i am trying to achieve: This website expands URLs like bit.ly/miniscurl the creator got an API that says that all you have to do is go to this website: http://expandurl.appspot.com/expand?url=YOURURL so when i put: http://expandurl.appspot.com/expand?...
common-pile/stackexchange_filtered
The Stacks project I have a question concerning the admirable Stacks Project. Which comparable projects are there: approach-wise: "an open source textbook on algebraic stacks and the algebraic geometry that is needed to define them", i.e. projects as "an open source textbook on X and the Y that is needed to define (a...
common-pile/stackexchange_filtered
Byte between two element My teacher ask me a question and he said the answer is 48 bytes please explain to me. Print p1 and p2 and look at the values. sizeof(double) is 8 bytes. i thing it is 47 @ĐăngKhôi - I know I was about to say the same thing (or suggest 40)! (ಠ⌣ಠ) "between" is such an ambiguous word. @Đăng...
common-pile/stackexchange_filtered
ClickOnce Publishing in Visual Studio 2017 RC not available When installing Visual Studio 2017RC, I already included the required Component in the installation: Although when opening the "Publish" Page in the Project-Settings, its not available. What am i missing? "You need to reinstall Visual Studio to publish your...
common-pile/stackexchange_filtered
ActionResult - Service I bored, writing same code for service and ui. Then i tried to write a converter for simple actions. This converter, converting Service Results to MVC result, seems like good solution for me but anyway i think this gonna opposite MVC pattern. So here, I need help, what you think about algorithm ...
common-pile/stackexchange_filtered
Mysql connection works exept for SELECT * INTO OUTFILE statment My website works fine except when I execute back-up function for mysql it throws this error : SQLSTATE[28000]: Invalid authorization specification: 1045 Access denied for user 'username'@'localhost' (using password: YES) (SQL: SELECT * INTO OUTFILE '/arc...
common-pile/stackexchange_filtered
CakePHP 2.0 Livesearch I'm trying to create this: http://www.justkez.com/cakephp-livesearch/ in CakePHP 2.0. The problem is that the AjaxHelper is not available anymore in CakePHP 2.0, and so echo $this->Ajax->observeField('query', $options); Does not work anymore. Any suggestions? Investigate the new helpers and go...
common-pile/stackexchange_filtered
Convert ASCII code to equivalent character I am using the charAt(integer) method which returns the ASCII code as integer. How to convert that ASCII code to it's original character in "Apex"? String myChar = String.fromCharArray( new List<integer> { 65 } ); myChar is 'A' now. Hey, how can I get exactly reverse of thi...
common-pile/stackexchange_filtered
How to detect cycles in a directed graph using the iterative version of DFS? In the recursive DFS, we can detect a cycle by coloring the nodes as WHITE, GRAY and BLACK as explained here. A cycle exists if a GRAY node is encountered during the DFS search. My question is: When do I mark the nodes as GRAY and BLACK in th...
common-pile/stackexchange_filtered
Can I use Unicode characters as regex patterns when using re2 library? I want to know if the re2 library can handle all kind of special characters. I have to mention that I've done a lot of research on the net but didn't find anything that can make me understand. Thank you! http://www.regular-expressions.info/unicode....
common-pile/stackexchange_filtered
Pairwise distinct subsequence Suppose there is an infinite sequence $S_n = (s_1, s_2, \dots )$ generated by a finite set of numbers $\{1, 2, \dots, n\}$. Given a number $m$ such that $m < n$, the subsequence $(s_i, s_{i+1}, \dots, s_{i + m -1} )$ is pairwise distinct. In addition, the set of connective subsequences are...
common-pile/stackexchange_filtered
Replace value of an element with a value from sitecore variable I have a variables.config file where i have all the variables and corresponding values stored like shown below: This is default sitecore file : Now i want to replace the value 1000 with the value stored in the Variables.config file Now i am trying with t...
common-pile/stackexchange_filtered
How to interpret font-size of text from adobe XD? font: SemiBold 14px/17px Basier Square; I am trying to copy styles of a text from Adobe XD and it shows me font-size as above, I am confused, should I interpret it as 14px or 17px? 17px is the line-height - https://developer.mozilla.org/en-US/docs/Web/CSS/font Answer...
common-pile/stackexchange_filtered
JPA @OrderBy Annotation - Ordering Strings I am using the @OrderBy annotation in my entity class to sort a collection that is eagerly fetched. The column I am ordering on is of type String. However, in some instances, these strings may contain numbers. How do I ensure that the OrderBy annotation will order numbers stor...
common-pile/stackexchange_filtered
i have been trying to make a clock in javascript but sometimes it shows up as undefined js the js at first it would work but when testing it i left the prompt undefined various times but time still showed up but after a couple of more times of leaving the prompt blank the tie showed undefined basically everthing in t...
common-pile/stackexchange_filtered
What is the proper (efficient) way to write this function? The following function returns a list of possible paths starting from the root node to the deepest node of a tree: paths :: Tree a -> [[a]] paths (Node element []) = [[element]] paths (Node element children) = map (element :) $ concat $ map paths children Thi...
common-pile/stackexchange_filtered
How do I query a field from Mongo where the value is actually a number but stored as string? The confusing part is the number in the string field can be with leading zeros but my query param will not contain that Object 1: { "_id" : ObjectId("5c3f6aec29c2e3193315b485"), "flightCode" : "000541300157840" } Object 2: { ...
common-pile/stackexchange_filtered
How do I display logged-in username IF logged-in? I'm working on creating some text that says 'Login' to users that are not logged in, and the user's username or display name when logged in. It seems like it should be an easy problem to solve, and I've found the following two bits of code on the wordpress codex that e...
common-pile/stackexchange_filtered
Iterate through datatable progressively slower on Azure I've got a c# problem where we load around 10 000 rows in a data table, and then loop through them to change some data. Problem is that it gets progressively slower as it goes through the loop. Every iteration is a few milliseconds slower, up to a point where it ...
common-pile/stackexchange_filtered
how to restore deleted records in MDB is it possible to restore deleted records in MDB? Two words: time machine. To whomever voted for ServerFault: how exactly does a question about a file-based desktop database engine belong on ServerFault? I had a near catastrophic loss of data in an MDB file once and I researched...
common-pile/stackexchange_filtered
Graph with Cycle and Two-Colorable i think if the graph G has an odd cycle, it's not two-colorable, otherwise it can be two colorable. i read in one notes that the following is True: we couldent two-colorable any graph G that has cycle. anyone could clarify me ? This is correct: if $G$ has an odd cycle, then $G$ is...
common-pile/stackexchange_filtered
While deploying two application authenticated using Azure AD on a single IIS server, Authentication page keeps on looping infinitely I have created two .NET applications having Azure AD authentication. I have deployed both of them on the IIS server with different ports for HTTP and HTTPS. 1st Application: Deployed on H...
common-pile/stackexchange_filtered
SpringBoot one Service, many classes I create simple news system with comments using Spring Boot and MongoDB. I would like to focus on code quality. I create service using generic to save data from class. My code: Dao.java @Repository public interface Dao<T, ID extends Serializable> extends MongoRepository<T, ID>{ }...
common-pile/stackexchange_filtered
Foreign key refering non primary-key column on parent table Let's say we have 2 tables Parent(col1, col2, col3) and Child(col4, col5, col6). What is the requirement on Parent's columns to have a FOREIGN KEY (col4, col5) REFERENCES Parent(col1, col2) ? I remember reading that a PRIMARY KEY on (col1, col2) is not require...
common-pile/stackexchange_filtered
Can I send c2dm push messages to an android device in which the primary account is the role sender account I developed an app which uses c2dm. It's implemented at http://www.controlyourandroid.appspot.com It's working perfectly when I'm trying it in an emulator or in my friends device. But when I use my own android p...
common-pile/stackexchange_filtered
WooCommerce - Checking if my first variable subscription item is sold I have two Questions: Question 1: I am using a "Woocommerce product bundle" and "Woocommerce subscriptions" plugins and want to restrict my FIRST variable subscription item to restrict to sold to only one customer? In other words no other customer ca...
common-pile/stackexchange_filtered
Maintain Markup Format with Highlight.js I am attempting to display dynamically generated HTML on my web page and do highlighting/formatting using highlight.js. I have the highlighting working correctly, however the indentation is not correct. Here's the jsFiddle. The code shows like this: <div class="parent">parentCo...
common-pile/stackexchange_filtered
Is there a .Net (prefer F# or C#) implementation of the Hilbert-Huang Transform? Hilbert-Huang Transform, Empirical Mode Decomposition... I have found it implemented in R and Matlab. I'd like to find an open source implementation of it in C#/F#/.NET. The amount of quality open source numerical code for .NET is tiny. I...
common-pile/stackexchange_filtered
Median for a sequency with missing values in R I’m trying to do a median like a function, for vectors with even and odd numbers (related to quantities of observations – the calculating method changes). I need to include an option for missing values as well. How can I do this? I need to do this without to use the ready ...
common-pile/stackexchange_filtered
Eclipse is not recognizing Javadoc images properties in Eclipse Really new to java here... I'm trying to embed Javadoc images in Eclipse. I have the image stored in a "doc-files" folder inside the package that will reference it. However when I add the following line: <img src="doc-files/MyImage.png" width="250" alt=...
common-pile/stackexchange_filtered
Log4j2 Automatically Log all console outputs Is there anyway that I can configure to log4j2 properties file to have it automatically log all console outputs? The current legacy program I am working on has a lot of console outputs and I would like to set log4j2 to automatically log these outputs to a file if possible. W...
common-pile/stackexchange_filtered
How to display recent post on website and make own search engine ? With PHP On OLX like Website , Anytime a user posts a new ad. It comes in top of the page. No search is involved in it. Which technology we can use to make such functions. Suppose X is visiting my website abc.com. Should I fetch database each time an...
common-pile/stackexchange_filtered
Find two binary numbers with a multiplication of a specific form Not sure if this is the best place to ask this question but I tried to search online, wasn't able to find anything useful. Consider binary numbers of the form $$x=0|y|0|y$$ where $a|b$ means concatenate the bits of $a$ with the bits of $b$, $y$ is any se...
common-pile/stackexchange_filtered
Magento 2 Restrict SKU Characters I am using Magento 2.2.2. I want to restrict the number of SKU characters to be entered in the Admin Product Detail Page. How to achieve this. Try to update you eav_attribute table UPDATE eav_attribute SET frontend_class = "validate-length maximum-length-11" where attribute_code = 'sk...
common-pile/stackexchange_filtered
Git or svn on windows server 2003 I was wondering if anyone has any experience on getting a git server working on windows server 2003? Is there an easy solution to get it up and running? If not is there any good alternatives out there? It ideally has to be free but willing to pay. It is only for a small team (3 users) ...
common-pile/stackexchange_filtered
scrapy shell testing xpath invalid syntax I am trying to retrive reviews from trip advisor and instead of writing code I diciced to use the shell that scrapy comes with. While I was testing this Xpath response.xpath(//div[@id="REVIEWS"]/a/text()) I am getting invalid syntax error. Try response.xpath('//div[@id="REVI...
common-pile/stackexchange_filtered
Unable to retrieve the result set from database the second time i query it from my application I am developing an application using Hibernate+Spring MVC. At the login page, I simply query a user table and validate if user is valid or not. It works smooth using my configuration of Spring and Hibernate. But the problem i...
common-pile/stackexchange_filtered
AMPscript for adding the Order Number to an email subject I am trying to add the order number to an email subject and I don't know-how. Plus I am really new to the AMPscript world. I want my email subject to be like: ''Your #OrderID is on the go'' for the moment I went here and choose the Data Extension and then the fi...
common-pile/stackexchange_filtered
jquery css dock menu not working in ASP.NET masterpage I'm using css dock menu in my ASP.NET web app, I've used it in my master page but it doesn't work and I get a strange exception: $('#dock').Fisheye is not a function it is my document ready function: <script type="text/javascript" src="js/jquery.js"></script> <scri...
common-pile/stackexchange_filtered
How to use JavaScript code in angular to create new folders? I am trying to create new folders into my Angular project files (src/assets/images/NewFolder) based on the user input. I have tried to add java script file in my assets folder var fs = require('fs'); fs.mkdirSync('d:/stuff');` and then added the reference in...
common-pile/stackexchange_filtered
Move elements in a List? Consider: ['A', 'B', 'C'] I'd like to do list.move("B", -1); list.move("A", 1); resulting in ["B", "C", "A"]. Is there some sort of one liner to move items in a listin Dart? Obviously could do this manually in a few lines just curious if there is some easier way. There is indeed no built-in w...
common-pile/stackexchange_filtered
'For' loop in tidyverse filtering I'm doing a project for a university and working on dataset "elo_blatter" from fivethirthyeight library. I want to write all statistics for each football confederation, so I wanted to use for loop. My code looks good but it doesn't work. confs <- c('AFC','CAF','CONCACAF','CONMEBOL','OF...
common-pile/stackexchange_filtered
how to prevent boot if a drive is not detected at bootup I've got two drives in RAID1 that serve as the root partition on my workstation. Sometimes (1 out of 10) one of the drives is not detected, and thus not included in the raid. As the drive is not detected at all I cannot reattach it that time (and I may not even n...
common-pile/stackexchange_filtered
Chrome popup window always on top I have a Chrome app that opens a popup window. I would like it to be able to stay on top, but am currently unable to do so. The Chat for Google extension opens a popup window that not only stays on top of all windows, but the window itself also appears to have a completely customized a...
common-pile/stackexchange_filtered
Themes, Styles OR hardcode? I have an application with 7 activity. All activity has 1, 2, 3 or 4 root element in a main root element. This root element have a dark background color with relevant color. I want have a light theme in my app. Therefore I want to know which way is better and professional to change the my ap...
common-pile/stackexchange_filtered
Go: type assertion for maps I'm reading data structures from JSON. There's a little bit of conversions going on and at the end I have a struct where one of the fields is of type interface{}. It's actually a map, so JSON puts it inside a map[string]inteface{}. I actually know that the underlying structure is map[string...
common-pile/stackexchange_filtered
Name for the effect where people cause others to fulfill their expectations I recall hearing a social cognition lecture a number of years ago in which the lecturer described a particular idea that centered around the role of self-fulfilling prophecies in relationships. For example, if I believe that x is a hostile jerk...
common-pile/stackexchange_filtered
Finding a closed form for the series $\sum_{n=0}^{\infty}\frac{\binom{2n}{n}^3}{64^n(n+1)^k}$ for $k=1,2,3,4$ Context: This question is related to Calculate $\sum_{n = 0}^\infty \frac{C_n^2}{16^n}$ and Is there a closed form for a give infinite sum?. We have also: $$\sum_{n=0}^{\infty}\frac{\binom{2n}{n}^3}{64^n(n+1)^2...
common-pile/stackexchange_filtered
show that $\mathcal{A}_{f}$ is a $\sigma$-algebra Given: S is set and $f: S \to \mathbb{R}$ Problem: Showing that $\mathcal{A}_f = \{ f^{-1}(B): B \in \mathcal{B}(\mathbb{R}) \}$ is a $\sigma $ - algebra. My approach: Try to show all three properties of a $\sigma $ - algebra: So I would like to show that the followin...
common-pile/stackexchange_filtered
Convert Html to markdown using xwiki How do i convert from html to markdown with xwiki, Getting "java.lang.NoSuchFieldError: fRecognizedFeatures" for shouldRenderHtmlToMarkdown, tried different formats of html. public class HtmlRendererTest { private Converter converter; private WikiPrinter printer; @Test ...
common-pile/stackexchange_filtered
Not able to recreate same sound using FFT I am trying to recreate musical note using top 10 frequencies returned by Fourier Transform (FFT). Resulting sound does not match the original sound. Not sure if I am not finding frequencies correctly or not generating sound from it correctly. The goal of this code is to match ...
common-pile/stackexchange_filtered
Can somebody explain how to solve this bug? %%cython cimport cython import numpy as np cimport openmp from numpy.linalg import inv from cython.parallel cimport prange @cython.boundscheck(False) @cython.wraparound(False) def inv_unit_diagon_blocks(double[::1,:] A,double[::1,:] U,int m): cdef n=int(len(A)/m) cdef...
common-pile/stackexchange_filtered
synchronized block on grails works on windows but no in linux I have a grails application that relies on a synchronized block into a service. When I run it on windows the synchronization works as expected but when I run on ams linux a get a StaleObjectStateException. The problem is reproduced in the following example....
common-pile/stackexchange_filtered
Where is the uniform distribution with one parameter ($U(\theta, k \theta)$) useful for modelling? I recently came across the distribution $U(\theta, k \theta)$ (where k is known) in the context of statistical theory (as a nice toy example for finding MLE and the likes). However, I was wondering if there are real use c...
common-pile/stackexchange_filtered
What must/do astronomers reveal beyond their academic papers? Academic papers often make claims about observational data and results from computations. The papers only refer to names of data sources (such as an observatory) and of mathematical methods without any specifics, other than some of it illustrated in a few gr...
common-pile/stackexchange_filtered
Qt and Digia licensing I wanted to download Qt sdk today and found that nokia site doesn't work now. I was redirected to digia site:. I founded, that now I can't just download open licensed sdk. They requires my name and other info. In email they sent me I founded the links for commercial version of SDK and my license ...
common-pile/stackexchange_filtered
'init' is inaccessible due to 'internal' protection level public class SelectedValue { static let sharedInstance = SelectedValue() public var reportPostId : Int? = nil public var report_GroupId : Int? = nil public var postType : String? = nil } 'init' is inaccessible due to 'internal' protection level...
common-pile/stackexchange_filtered
How to calculate the cell size? How to calculate the cell size so that different devices display the same number of cells in row and column, and the cell height is adjusted to the screen size of the device? I tried calculating it this way, but it's not right. Where did I make a mistake? override func viewDidLoad() { ...
common-pile/stackexchange_filtered
Todonotes problem: No line connecting notes to text When using the todonotes package, all notes are missing correct lines. That is, instead of having a line connecting the note and the text, the line connects to the note itself (with default color you cannot see this, since both the line and the background of the note ...
common-pile/stackexchange_filtered
How to find prediction probability in given CNN in tensor flow? I am very new to TensorFlow. Let us assume that I already have a trained convolutional neural network, now I give one new data to this CNN, and I want to see what's the prediction probability in each class. (e.g, the CNN is for handwriting 0-2, now I give ...
common-pile/stackexchange_filtered
CSV Download not working within Views Bulk Operation's Action extension function I am not getting any errors in the logs, and the CSV doesn't seem to download. I am trying to get the selected data from Views Bulk Operations into a csv that downloads upon the associated selected data with the Action extension that I am ...
common-pile/stackexchange_filtered
Using two list to make rows and columns of matrix I am trying to make a matrix with the rows and columns being passed as lists yvars and xvars. How would I make a matrix between the two and then populate it with the spearman correlation rho(using pspearman) between the column and the row title. xvars and yvars are li...
common-pile/stackexchange_filtered
Can I deprecate usage of specific class (not under our control) in Android Studio? Does Android Studio's inspection feature contain some option to mark certain classes as deprecated? I suppose that the inspection rules currently do not support parametrized inspections e.g. "Mark following classes as deprecated: _______...
common-pile/stackexchange_filtered
Linux networking using macvlan interfaces This setup is working for my needs but I don't understand it which concerns me e.g I assume it's possible a system update could break this functionality and if I don't properly understand then how can I repair/restore it. Also I'm open to better/proper ways of working so welcom...
common-pile/stackexchange_filtered
how to add& remove overlay image using gridcell index here is my code -(void)gridCell:(GridCell *)gCell didSelectImageAtIndex:(NSInteger)index imagSize:(CGRect )frameSize { UIImage *img=[UIImage imageNamed:@"Overlay"]; UIImageView *imgView=[[UIImageView alloc]initWithFrame:frameSize]; ...
common-pile/stackexchange_filtered
MYSQL versions that install with MAMP or XMAPP for Windows are old I download MAMP for Windows 10 or XMAPP and I get an older version of MYSQL installed than the one listed in the data sheet. I need 5.6 and I keep getting 5.5. What is wrong? MAMP by default has the 6.5.34 version of MySQL (as specified here) and XA...
common-pile/stackexchange_filtered
How to search for a substring from an user input string and print out So I have an assignment where the user puts in a string and a word, and then the program will search for this word in the string and print it out with starting index. For example if the user inputs this string: abccbaabcccabbcacbbbca And this word:...
common-pile/stackexchange_filtered
accessing data members of nested struct and passing struct to function C++ I have a simple problem but I need to understand the concept behind it. How to access data members of a 1st struct by instantiating it as pointer in 2nd struct. If I make data members of 1st struct as pointer then how to print out there values ...
common-pile/stackexchange_filtered
Angular select defaults to the 2nd option, why? I have an array of objects from which I render a select. The problem is that the select defaults its selection to the 2nd object(which shouldn't even be selectable, just used as a category label) in the warehouseSelect array(hence why I also tried to use the unshift metho...
common-pile/stackexchange_filtered
How can I restrict the arraylist to accept only a specfic type of object prior to generic How can we restrict the arraylist to accept only a specfic type of object prior to generic Write a wrapper function that accepts only the allowed type, and hide the collection. That was standard best-practice pre-Java-5. private ...
common-pile/stackexchange_filtered
Media not found error when using Gentoo minimal install CD on Lenovo ThinkPad T450s I'm trying to use the Gentoo minimal install CD (specifically install-amd64-minimal-20150910.iso, though that is unlikely to matter) to install my new Lenovo ThinkPad T450s. I can boot off my USB CD-ROM or USB key by hitting enter to in...
common-pile/stackexchange_filtered
how to unlock ubuntu 24.04 from anydesk remotely After restarting the server from anydesk and entering the password this screen remains black and I can't do anything anymore. I have to go to where the server is to unlock it Ensure a monitor is connected to the remote device. By connecting one, the computer will detec...
common-pile/stackexchange_filtered
Alter playback speed (tempo) using Azure Media Services Is it possible to alter the playback speed of the outputted audio from the “Windows Azure Media Encoder”? I’m using the “Windows Azure Media Encoder” media processor with a "WMA High Quality Audio" configuration to covert an mp3 audio file to a WMA audio file, th...
common-pile/stackexchange_filtered
How to track object inside heap in node.js to find memory leak? I have memory leak, and I know where is it (I think so), but I don't know why it is happening. Memory leak occurs while load-testing following endpoint (using restify.js server): server.get('/test',function(req,res,next){ fetchSomeDataFromDB().done(fun...
common-pile/stackexchange_filtered
Can't construct a java object for tag:yaml.org,2002: When I am trying to create an object from a data file, I am getting the following exception while assest class is present. I have tried with dum; it was able to dump the data but when I have tried to read same data I am getting the following exception: [ConstructorE...
common-pile/stackexchange_filtered
Pandas: how to duplicate a row n times and insert at desired location of a dataframe? Let say I have a dataframe as follows: index col 1 col2 0 a01 a02 1 a11 a12 2 a21 a22 I want to duplicate a row by n times and then insert the duplicated rows at certain index. For e.g. duplicating row 0 by 2 times and...
common-pile/stackexchange_filtered