text
stringlengths
70
452k
dataset
stringclasses
2 values
CatBoost randomized_search with train/test splits The CatBoost documentation says the randomized_search method can accept train and test splits via the cv parameter, instead of defining a cross validation approach. To do this, one should provide: An iterable yielding train and test splits as arrays of indices. How do...
common-pile/stackexchange_filtered
How to press space key and then backspace key in a textarea: using JQuery? Do we have any way to press any keyboard key in textarea using JQuery? Usage in My Case There are many textareas have height of 100, set by default onload (some issue with JQuery Autosize used by some developer of which i have no access to chang...
common-pile/stackexchange_filtered
My texture gets stretched in some places because of solidify modifier? So I have been following this tutorial https://www.youtube.com/watch?v=RzlRzJpG7vc&t=13s and I am stuck because my material gets stretched on the edges, see pic attached. I think it is because of the solidify modifier because as I play around with t...
common-pile/stackexchange_filtered
Create an empty constructor when wrong parameters class classname { private int value; public classname(int value) { if(value > 20 || value < 1) { //make object null } else { this.value = value; } } } Basically, when the param...
common-pile/stackexchange_filtered
Why is sklearn's Perceptron predicting with accuracy, precision etc. of 1? I am using sklearn.linear_model.Perceptron on a synthetic dataset I created. The data consists of 2 classes each of which is a multivariate Gaussian with a common non-diagonal covariance matrix. The centroids of the classes are close enough that...
common-pile/stackexchange_filtered
$\mathcal{G} = \{ v_2 v_4 \ldots v_{k} ~:~ v_1 v_2 v_3 v_4 \ldots v_{k-1} v_{k} \in \mathcal{L}, ~ \text{k even} \} $ is context free language Let $\mathcal{L}$ be context free language over alphabet $\Sigma$. Define $\mathcal{G}$ as $$\mathcal{G} = \{ v_2 v_4 \ldots v_{k} ~:~ v_1 v_2 v_3 v_4 \ldots v_{k-1} v_{k} \in \...
common-pile/stackexchange_filtered
sudo add-apt-repository ppa:touchegg/stable PROBLEM I want to install touchegg because I'm on x11, but when I write: sudo add-apt-repository ppa:touchegg/stable I get this: Repository: 'deb https://ppa.launchpadcontent.net/touchegg/stable/ubuntu/ jammy main' Description: Latest stable version of Touchégg for all Ubuntu...
common-pile/stackexchange_filtered
Use sourceCache in stacktrace.js I have trouble understanding the sourceCache option for the stacktrace.js library. Could anyone please explain it to me? How should I form this object? Thanks! https://www.stacktracejs.com/#!/docs/stacktrace-js
common-pile/stackexchange_filtered
create two-dimensional array/matrix using C I need to read a file with some kind of a matrix from CSV file(number of matrix columns and rows may be different every time) using C. The file will be something like that: #,#,#,#,#,#,.,#,.,.,.$ #,.,#,.,.,#,.,#,#,#,#$ #,.,#,.,.,.,.,.,.,#,#$ #,.,#,.,.,#,#,#,#,#,#$ #,.,.,#,.,....
common-pile/stackexchange_filtered
How to use my menu PHP code as sidebar? I'm using the Max Mega Menu plugin. The plugin gives me a PHP Function for my menu. But the plugin has no documentation on how to use it. I want to add the menu as a sidebar to the left of my existing contents. What should I do next? Should I just copy the php code to sidebar.php...
common-pile/stackexchange_filtered
Dimensions of data stored in HDF5 I have several .h5 files which contain Pandas DataFrames created with the .to_hdf method. My question is quite simple : is it possible to retrieve the dimension of the DataFrame stored in the .h5 file without loading all the data in RAM ? Motivation : the DataFrames stored in those HDF...
common-pile/stackexchange_filtered
number of consecutive seats intuition So I am trying to solve some problems with combinatorics, probability... One problem asks for the probability that k people will seat one next to the other in n seats (n>k).This is an easy problem, but it’s not very intuitive why all the possible adjacent seats are n-k+1, I could s...
common-pile/stackexchange_filtered
console.log/console.dir showing last state of object, not current I want to log how my array/object is changing with new steps of loop. Console.log does this bad. It shows only last state of object everywhere. For example: var a = {}; console.log(a); // {bob1: 0, bob2: 0} a.bob1 = 0; console.log(a); // {bob1: 0, bob2: ...
common-pile/stackexchange_filtered
Using if... not in and a len() check isn't applying I'm trying to add validation checks into my code here so that only the value ("A"), ("B") or ("C") is allowed. If the len() part is removed, any string with the either of the three letters is allowed however if one of those letters are not used, it works as expected. ...
common-pile/stackexchange_filtered
IIS Certificates VS Windows Certificate I'd like to understand the link, if any, between certificates installed throug IIS and those installed through windows. By IIS Certificates I mean the list shown when we open the "Server Certificates" on feature view on the home page of IIS Manager. By windows I mean the default ...
common-pile/stackexchange_filtered
Verify Apple's signature I'm trying to verify a signature according to the documentation. Here is an example: # cryptography==37.0.4 from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.asymmetric import ec import base64 data = b"demo data" signature = b"demo signature" public_key_bas...
common-pile/stackexchange_filtered
Rewriting Python Classes to JavaScript I have some python classes written and being constructed like this: class Customer: def __init__(self, name, full_name, gender, age, instruments, paid): self.name = name self.full_name = full_name self.gender= gender self.age= age self.instruments= instruments ...
common-pile/stackexchange_filtered
Extra Line read from file I'm trying to read from a text file and store it into an array, but my last array is filled with garbage, is there any way to fix it? For reference, I don't need that last line of values, but I can't seem to find a way to get rid of it. int k; char string[100]; for(k = 0; k < MAX_STATIONS; k++...
common-pile/stackexchange_filtered
Do teams change gearing depending on the Tour De France stage? The accepted answer to this question states that The focus is on the riders, because the bikes are just not so different from one another. The UCI (international cyclists' union) tightly regulates what shape and weight the bike must be, and what technical ...
common-pile/stackexchange_filtered
15.04 Could not set configuration for CRTC63. Booting lid closed When I boot my Dell Latitude E7440 laptop, an error dialog is show on login screen: Could not set configuration for CRTC63. If the lid is closed during boot, the disk crypto login is shown on external displays but the Ubuntu login screen does not appear...
common-pile/stackexchange_filtered
Zend_Db_Select where() and Zend_Db_Adapter quoteInto() Are Zend_Db_Select's where() method, when including the optional value to quite into, and Zend_Db_Adapte's quoteInto() methods basically the same as far as escaping SQL? In other words, are these two pieces of quote identical and equally secure? $select->where($thi...
common-pile/stackexchange_filtered
Dual Booting installation fails, leaves residual Ubuntu boot option, upon booting from it encounter GNU Grub menu I have Windows 10 installed already, and am trying to dual-boot with Ubuntu desktop(19.04). However, after finishing the dual-boot installation (allocating memory), Ubuntu asked for a restart, and upon rest...
common-pile/stackexchange_filtered
What is .clone() doing with arrays? For example int[] test = new int[]{1,2,3}; and I want to clone it (deep copy) int[] another = test.clone(); What is Java really doing here? Is it copying all the elements individually (O(n)) or something else? How is this supposed to not be O(n) in your opinion? Refer to the docu...
common-pile/stackexchange_filtered
Preferred formatting for this / best practice? Suppose I want to create a select box in PHP. $months = array ('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'); Option 1: <select name="month"> <option value="">Month</option> <option value="">-------</option> <?php foreach ($months as ...
common-pile/stackexchange_filtered
C++11 Lambdas and Templates cause strange linker behaviour In my code, I have got function templates containing lambda expressions which depend on some of the template parameters. Recently I got linker errors, maybe due to an update of my g++-compiler, but unfortunately, I do not know exactly. I will give a small examp...
common-pile/stackexchange_filtered
Pager Add Rows Control Ajax refresh not working properly with Data View Control When using the "Pager Add Rows" control together with a "Data View" control in a Domino XPages application the user can not open entries which have been added by clicking the "Show more..." link of the pager control. The reason for this beh...
common-pile/stackexchange_filtered
Dynamic JSON message in c++; I successfully send to a REST API a static message following this answer, however when I try to build my dynamic JSON message I have a problem of an extra character that is automatically adding the parsing function in c++, so at the server side, I got an error. This is the minimal working c...
common-pile/stackexchange_filtered
TeXstudio compatibility with Windows 11 I am configuring a new Windows 11 machine. I've installed TeX Live 2021, and TeXstudio 4.2.2, both apparently without incident. When I try to run TeXstudio, I am told: "application was unable to start correctly" and given error code 0xc000007b. I have uninstalled TeXstudio and r...
common-pile/stackexchange_filtered
Is it possible to add solidy to specified area Is it possible to add thickness just to wedge, without separating wedge from sole? Also, why there is this ugly edge on place where sole and wedge join? It's all one mesh, there is no doubles, that's why I don't want to separate them, because there will be visible seam whe...
common-pile/stackexchange_filtered
Passing a callback as an instance method instead of a static method I currently have a function called IoTHubDeviceClient_LL_SendEventAsync the 3rd parameter of this method takes in a function pointer and its definition looks like this typedef void(*IOTHUB_CLIENT_EVENT_CONFIRMATION_CALLBACK)(IOTHUB_CLIENT_CONFIRMATION_...
common-pile/stackexchange_filtered
How to find the equivalent speed of vector? I've been given this formula: Suppose c is the current’s velocity vector, s is the velocity vector the object would have if the water was still, and f = c + s is the object's resultant velocity vector. Below is a question I am trying to figure out. A boat needs to tra...
common-pile/stackexchange_filtered
Distractions in Meditation Upon asking questions previously, I wondered some things about my meditation. In meditation, I often experienced greatly reduced thoughts, almost no thoughts; but, the sensations at the tip of the nose are almost always lacking. Is it possible that, despite the absence of thoughts, something...
common-pile/stackexchange_filtered
Authenticating Using Email vs UserName witch is better ? using Email as UserName or using unique UserName to authenticate user. what is your idea ? The most user-friendly solution is to use the minimal (yet still secure enough) number of data to sign in into the service. So, basically, using email address to sign in i...
common-pile/stackexchange_filtered
MongoError: E11000 duplicate key error collection i am getting duplicate key error while doing the POST action with the same document that is already saved. i don't want it to be unique. Error MongoError: E11000 duplicate key error collection: myDB.users index: username ...
common-pile/stackexchange_filtered
Problems to insert comma in each element in a list in python Hy friends, I would like to make a code to split each element in python, but it does not work. the code: def insert(string): li = list(string.split(',')) return li num1 = str(input("Past the list: ")) insert(num1) the list: 20,Amsterdam,B,Right,...
common-pile/stackexchange_filtered
Azure Kinect Body Tracking Function coordinates in Unity I am a complete newcomer to programming with C#, Unity and the Azure Kinect SDK. As part of a project, I have the goal of reading out certain points (so called joints) of the body, e.g. neck, shoulder_left, eye_right, … . Therefore, I am working with the Azure Ki...
common-pile/stackexchange_filtered
Convert XML collection (of Pivotal Tracker stories) to Ruby hash/object I have a collection of stories in an XML format. I would like to parse the file and return each story as either hash or Ruby object, so that I can further manipulate the data within a Ruby script. Does Nokogiri support this, or is there a better to...
common-pile/stackexchange_filtered
How to install stellard on a server with integrate design? I want to install stellard on my server. I download the stellard from github directory, here is link. Now I want to install and implement the design. I want step by step procedure to install like all configuration and database setup, etc. So how can I do this? ...
common-pile/stackexchange_filtered
`open myfile.pdf` raises "no permission" error Specifically, opening a terminal and writing open myfile.pdf causes a Dialog box in Preview with The file “myfile.pdf” couldn’t be opened because you don’t have permission to view it" To view or change permissions, select the item in the Finder and choose File > Get Info....
common-pile/stackexchange_filtered
Multithreading consulting service I am creating a service, that needs to perform the following tasks: consult bank services and persist data into DB. The dificult is: Its needed to execute each process in parallel. I mean the better choice is implementing a multithreading service, running each instance per thread. But ...
common-pile/stackexchange_filtered
Procedure to find a pair of matrices whose product has rank less than each matrix in the pair I am trying to figure out how to find two rank-deficient matrices (not necessarily square) which when multiplied will have rank less than either of the original matrices. In other words I am looking for: $$A \in R^{a \times b}...
common-pile/stackexchange_filtered
regex pattern for getting array from string I am looking for a regular expression which is able to parse a string (url): /page/folder1/folder2/.../folderN/pagefile into [ [1] => ['page', 'folder1', 'folder2', ..., 'folderN'], [2] => 'pagefile' ] i wasn't able to find out, if and how subpatterns are working. i...
common-pile/stackexchange_filtered
How to fix and/or catch HIB error on the Coral Dev Board I am working with the Coral Dev Board running an image classification model using the Coral Camera. While running the script, I will randomly get the following error E driver/mmio_driver.cc:254] HIB Error. hib_error_status =<PHONE_NUMBER>000008, hib_first_error_...
common-pile/stackexchange_filtered
How to know when JComponent was added to it's parent? First, JComponent instance jComponent created. Then it was added to it's parent like parent.add(jComponent);. Now I want to know in jComponent class that it was added to it's parent. Is it possible to do that? The goal is to set jComponent parent when it was already...
common-pile/stackexchange_filtered
Image effect using CSS3 & HTML with input text and submit button I've login screen image as mentioned below: Is there any way to create similar image only using CSS3 & HTML5 ? Where Underline after "Username : " & "Password : " is input type = "text" without borders (So user can type in text) And Login is button. ...
common-pile/stackexchange_filtered
HTTP Spec: Proxy-Authorization and Authorization headers So I'm trying to implement the following scenario: An application is protected by Basic Authentication. Let's say it is hosted on app.com An HTTP proxy, in front of the application, requires authentication as well. It is hosted on proxy.com The user must theref...
common-pile/stackexchange_filtered
How do I perform 8 x 8 matrix operation using SSE? My initial attempt looked like this (supposed we want to multiply) __m128 mat[n]; /* rows */ __m128 vec[n] = {1,1,1,1}; float outvector[n]; for (int row=0;row<n;row++) { for(int k =3; k < 8; k = k+ 4) { __m128 mrow = mat[k]; ...
common-pile/stackexchange_filtered
Why is my Java applet just displaying my fallback message? My Java Applet is just displaying the fallback message in all my browsers. I have got: Google Chrome Microsoft Edge Internet Explorer Here is the code for the applet: import javax.swing.*; import java.awt.event.*; public class LottoApplet extends JApplet imp...
common-pile/stackexchange_filtered
Is a hard shutdown harmful to computer hardware? Possible Duplicate: Can a power failure or forceful shutdown damage hardware? If I switch off my computer pressing the power button for five (5) seconds, can I break any of the components, damage it or make it work worse? At first, I thought switching off my computer ...
common-pile/stackexchange_filtered
What does "short parked" mean? Recently, when flying (as a passenger of a regular flight) from Stockholm/Arlanda, there was quite a long bus ride from the gate to the aircraft, because the latter was "short parked", according to the announcements at the gate. What does "short parked" mean? "Faraway parked" would have m...
common-pile/stackexchange_filtered
How to create JSONObject from ArrayList<Object> to make post request? I am trying to post data into server using JSONObject as request. And I dont know how to create JSONObject from ArrayList with following type of data. {"AnswersList":[ { "questionID": 1, "question": "What is yout name?", "questionType": "...
common-pile/stackexchange_filtered
Python programming - Output issue in "Create a class function" I'm from NON computer science background (Biochemist). In Python programming under "Create a class function", I didn't get the output for the following written function: class circle (object): def __init__(self, 10, 'red'): self.radius=10; ...
common-pile/stackexchange_filtered
How can i put many values in 1 variable or in many variables? Extracting RollerCoasters with Wood Only Sub RollerCoaster() Dim strType As String Dim blnLoop As Boolean Dim strCoaster As String strType = "Wood" Range("A2").Select blnL...
common-pile/stackexchange_filtered
Is material-ui 1.0 planning to support the same api as .18? I am starting an app with material ui .18. I see that 1.0 is around the corner. I wanted to know what are there plans to support the current api? Version 1.0, which is maintained on the next branch, is going to introduce breaking changes. The effort appears ...
common-pile/stackexchange_filtered
Unable to step in forked gem with Pry I forked a gem called mongoid-scroll. I'm trying to open the gem with pry command gem-open but I'm not able to do it since it is throwing an error. I execute pry with bundle exec pry in order to Pry "see" my forked gem (set in Gemfile as gem 'mongoid-scroll', git: 'https://github....
common-pile/stackexchange_filtered
Statistics,standard deviation,spread,gemoetric meaning What are the geometrical interpretations/meanings of these statistical quantities: mean, standard deviation and spread? Ok. Now mean is the center of gravity,and what about spread? In English 'spread' and 'variability' are usually generic terms for discussing how...
common-pile/stackexchange_filtered
Optimization of average calculation from a list of dictionaries I have a list of dictionaries, with keys 'a', 'n', 'o', 'u'. Is there a way to speed up this calculation, for instance with NumPy? There are tens of thousands of items in the list. The data is drawn from a database, so I must live with that it's in the for...
common-pile/stackexchange_filtered
set UIImage height same as UITableViewCell with automaticDimension I need to set an image as background of a cell, so: First try: put an UIImageView in a cell set constraint top, trailing, leading and bottom to superView set imageView content mode to AspectFit Expected: image that stretch to fit cell automatic size t...
common-pile/stackexchange_filtered
Google Sheets combining REDUCE & FILTER to compare and extract data from one spreadsheet to another I have been struggling with a problem for a few weeks now and after trying to solve it myself I come cap in hand for help. I have tried to use QUERY and ARRAYFORMULA and quite a few other formulas, but I can't crack it. ...
common-pile/stackexchange_filtered
Python: loop through a list using all previous indexes with each index Given a list n long, such as ['animal', 'dog', 'golden retriever'] or ['food', 'dinner', 'pasta', 'white sauce', 'fetucci alfredo'], I need to loop through the array and get the current index, plus each previous index. Is there any good way to loop ...
common-pile/stackexchange_filtered
Find struct elements with same ID but different other field values, from 2 struct arrays Code is similar to below: type Contact struct { Id string Email string } type EmailDifference struct { Id string OldEmail string NewEmail string } func main() { ContactList1 := []Contact{ ...
common-pile/stackexchange_filtered
Swiping between views in WPF I would like to create a WPF application where I have a number of Views and associated ViewModels, which I can transverse by swiping (Up, Left, Down, Right) between views. For Instance, I start in the center view, I can swipe up for one view, or down for a different, left, right, etc. What...
common-pile/stackexchange_filtered
Which modern camera for vintage OM-Zuiko lenses? I used to practice analog photography as a hobby. However, my current work and lifestyle prevent me from spending the time that this hobby requires. I gave away my development material and do not have the space for a darkroom (even small) anymore. Nevertheless, I kept a ...
common-pile/stackexchange_filtered
numpy.all strange behaviour In the following code, I try to generate a mask on an image. The mask should only be true where the image (originalFormat, ndarry with shape [720, 1280, 3]) has a specific value (segmentId, nd array with shape [3,]). Here's a small part of the code as minimal example: originalFormat = np.arr...
common-pile/stackexchange_filtered
deploying snowflake tasks - from dev database to test database I have objects created in dev DB in snowflake. I have 1 pipe & multiple tasks in dev. how can I deploy the tasks to test/prod DB? is there any way to deploy all tasks in a single deployment? Can you describe how you are splitting dev vs. test/prod? Are th...
common-pile/stackexchange_filtered
NV12 Format support in Bitmapimage C# Does BitmapImage or WriteableBitmapImage supports NV12 format. or Can we create a BitmapImage or WriteableBitmapImage from a byte array which is arranged in NV12 format? Thanks Did you manage to implement your NV12 converter method? No. NV12 is not in the supported PixelFormats....
common-pile/stackexchange_filtered
Connecting to FTPS server from EC2 instance I have a PHP script running on my EC2 instance which uses cURL to connect to a remote FTPS server on port 990. When I run the script in local or in my other production server, the script runs without problems but from EC2 I only get the message "Failed to connect to aaa.bbb.c...
common-pile/stackexchange_filtered
Is Groovy .collect() an equivalent of JS .map()? Is Groovy .collect() an equivalent of JS .map()? Or is there another purpose? I've written a dozen lines of Groovy in total and I've never even seen .collect but it seems that it's equivalent. Took me brief googling to find that. Do you have a reason to believe the two ...
common-pile/stackexchange_filtered
how to connect mysql8.0 with C# What should I do to connect to MySql? string constr = "Data Source=steve-pc;Initial Catalog=itcast2014;Integrated Security=True"; using (SqlConnection con = new SqlConnection(constr)) { string sql = "select count(*) from TblPerson"; using (SqlCommand cmd = new SqlCommand(sql, c...
common-pile/stackexchange_filtered
Getting %3F on URLs I'm using simplehtmldom and I'm trying to get all links from a website. This is my script: include('simplehtmldom/simple_html_dom.php'); // get DOM from URL or file $html = file_get_html('http://example.com/urls/'); // find all a tags foreach($html->find('a') as $e) echo $e->href . "\n"; What...
common-pile/stackexchange_filtered
Typescript generics in array with conditional types Lets say we have code like this: const a = 'a'; const b = 'b'; type Union = typeof a | typeof b | string interface SettingA { foo: 'bar'; } interface SettingB { bar: 'foo'; } type Settings<T = string> = T extends typeof a ? SettingA : T extends typeof b ? ...
common-pile/stackexchange_filtered
selenium and google chrome driver wont run on linux python I'm unable to get chromium to run when i put my code in theoretically it looks like it should work i even followed tutorials but i keep getting the same error message. This is the code that i put: from selenium import webdriver #chromedriver varible with exact...
common-pile/stackexchange_filtered
OpenCV- how to unify different contours to a single enclosing contour I ran findCountours on the following Image: And got the following contour image (I'm showing only "parent" contours according to the hierarchy): As you can see, there are many different contours around each object (each one in a different color). N...
common-pile/stackexchange_filtered
Replacing the last value within groups with different values My question is similar to this post, but the difference is instead of replacing the last value within each group/id with all 0's, different values are used to replace the last value within each group/id. Here is an example (I borrowed it from the above link)...
common-pile/stackexchange_filtered
Pass MySQL medium blob into IOS NSData\UIImage In my PHP, I'm tying to send an array with data from the database. All values should be accepted as NSString exept one image that is stored as 'medium blob' in the database, and I'm trying to pass it's NSData\UIImage value. while ($row = mysql_fetch_array($result)) { ...
common-pile/stackexchange_filtered
How to use @Qualifier or @Named with @AfterMapping in mapstruct? In their documentation (here: http://mapstruct.org/documentation/dev/api/org/mapstruct/AfterMapping.html), they mention that @AfterMapping can be used with @Qualifier / @Named to filter, but I can't find it anywhere how to actually use it this way. My be...
common-pile/stackexchange_filtered
Creating an image feed from another URL First off, forgive me if this sounds stupid, I'll try to explain the best I can. From what I've gathered, I think this is like an RSS feed but I'm not 100% sure if what I'm asking is doable. So say I have a website. Website.com and on my home page I have a div with 'Pictures' wit...
common-pile/stackexchange_filtered
Comment removal policy I have seen two of my comments, asking for further details on the question asked, removed. The questions were these: How do Proteins migrate in MES vs. MOPS How do SDS-PAGE gels differ in a Bis-Tris system vs. a Tris-Glycine system? Apparently, my comments were to the point since the author edite...
common-pile/stackexchange_filtered
Android sms receiver service I'm trying to create an android service that take incoming messages and if it equals to specific string hides the SMS and use it for the app. For now when i'm trying to debug nothing happens. What am I missing here? EDIT: My app doesn't need any UI My code now is: Manifest: <?xml version="1...
common-pile/stackexchange_filtered
Commerce Quantity Volume Discount Rules I'm trying to make a drupal commerce pricing rule so that if the customer has 14 items in their cart they'll get 10% off their order. Here's what I tried: { "rules_overall_discount" : { "LABEL" : "Volume Discount", "PLUGIN" : "reaction rule", "OWNER" : "rules", "R...
common-pile/stackexchange_filtered
MATLAB/OCTAVE - Branching loops? or parallel looping? Still new to the programing game but I need a little help! I'm not exactly sure how to describe what I want to do but I'll give it my best shot. I have a set of numbers produced by an algorithm I've put together. e.g. : .... 10 10 10 11 11 11 12 1 2 13 3 4 14 12 ...
common-pile/stackexchange_filtered
Proof that $\mathbf{X}_n - \mathbf{X} =o_p(2)$ iff $||\mathbf{X}_n - \mathbf{X}||=o_p(1)$ In the following proof of the proposition, I do not understand the very first statement where it says "for every $\epsilon>0$, $\lim_{n \rightarrow \infty}P(|X_n^j - X^j|^2 > \epsilon/k) = 0$ for $j= 1, \cdots, k$." From the defin...
common-pile/stackexchange_filtered
Update cache after delete mutation Apollo vue How do I update the cache for a query after a graphql mutation in Vue3 using the Composition Api? I have my vue setup in main.js like this: import { createApp, provide, h } from "vue" import App from "./App.vue" import router from "./router"; import { InMemoryCache, HttpLi...
common-pile/stackexchange_filtered
How to display plain text from markdown I'm assuming that SO stores questions in raw markdown format. So how is the plain text preview/summary provided on the questions page? Is there any library to achieve this in Rails? Or are they using some other technique? There are some examples here: https://help.github.com/...
common-pile/stackexchange_filtered
FutureBuilder build function must not return Null Error I'm learning flutter and in the exercise I have build an App which is seldomly giving the bellow mentioned error. I'm unable to identify what part is returning error and why I seldomly get this error and rest of time my App works without this error. Kindly note ev...
common-pile/stackexchange_filtered
Parse non-ascii string from argv in 'main' function C++ I am writing a console program that processes files passed by the user as launch arguments (reads, processes in a certain way, writes to other files). The problem is that file paths can contain chinese, german, ukrainian and other non-standard letters, which are i...
common-pile/stackexchange_filtered
Do static images get cached by Heroku if they're loaded from Amazon's S3 cloud servers? The title pretty much describes my entire question. Because right now I'm wondering if my app is faster by uploading my static images to heroku or to amazon's s3. According to the Heroku Dev Center, Heroku apps on the Aspen and Bam...
common-pile/stackexchange_filtered
Sortable columns on a fixed-layout table in IE? I'm attempting to create a table with reorderable columns using jQuery UI's "sortable" interaction. However, I'm having trouble on IE with table-layout: fixed. The sortable is attached to the table's thead > tr and works just fine. The table looks correct when not dragg...
common-pile/stackexchange_filtered
cvGetSubRect doesn't put in frame I am new in working with OpenCV face detector. Face detection works fine but I am trying to use the rectangle generated to make a frame arround the face and cut it to save the face in a new archive. I have been using getSubRect with the values returned by "haarcascade_frontalface_defau...
common-pile/stackexchange_filtered
Hyperlink from database appears in wrong content holder This is a really odd bug and for the life of me i can't figure out why. I have a website divided to 3 content holders: an horizontal menu above , vertical menu on the right and main content holder. The right menu is generated from a sql database using a asp.net Re...
common-pile/stackexchange_filtered
User defined sql variables in QueryDsl I wish to express the followingmysql query in QueryDsl: SELECT AVG(dd.val) as median_val FROM ( SELECT d.balance as val, @rownum:=@rownum+1 as `row_number`, @total_rows:=@rownum FROM message_entity d, (SELECT @rownum:=0) r WHERE d.balance is NOT NULL -- put some where cla...
common-pile/stackexchange_filtered
World of Warcraft first time installation I am currently very confused. I have bought the battle chest for WoW (1st game, Burning Crusade and WOTLK) and then of course Cataclysm. What I would like to find out it: Do I need to install each game from the CD's from the beginning? IE install first WoW, when its finished in...
common-pile/stackexchange_filtered
How to handle Maps on Visualforce page Can anyone please help me to understand the below code. I am not able to understand how we are extracting value from map on visualforce page. Actually i am trying to get the size of value list which is associated with respective key in map. <apex:outputPanel > ...
common-pile/stackexchange_filtered
What's the cheapest way to get a lot of trophies? I'm looking to get those 250 gems for reaching the crystal league without using too much elixir, any suggestions? A nice, cheap, tactic is to max your army camps with archers or fill half your army camp with barbarians and the other half with archers. I'll give you 3 r...
common-pile/stackexchange_filtered
Would a carnivore that can only see in infrared be an effective predator? I'm trying to design new animals. One animal I came up with is a type of nocturnal & carnivorous predator that is shaped like a very large wolf. This predator sees in infrared light instead of visible light. The advantage of seeing in infrared li...
common-pile/stackexchange_filtered
Search for time in a JSON array and convert it to 'epochtime' How can i find the value of "time" in an JSON array like below: { "data": [{ "temperature": "20.0", "time": "2019-04-23 12:45:00+02:00" }] } And convert this value into a epochtime like below: { "data": [{ ...
common-pile/stackexchange_filtered
Error while changing identity for application pool I try change identity for application pool on Windows Azure. My project uses this application pool when works on Windows Azure. By default application pool uses NetworkService identity, but I must use another identity. I try change it in OnStart() event of WebRole by t...
common-pile/stackexchange_filtered
append object to another object in php I have this object: foreach(range(1,$oc->num_users) as $num) { $user = 'user' . $num; $$user = mysql_fetch_object(mysql_query("SELECT user".$num.", user".$num."_ready, FROM oc_db WHERE leader='".$_SESSION['username']."' ")); This gives objects named user1..X later I h...
common-pile/stackexchange_filtered
React + Electron: components from deps aren't laying out properly I'm trying to use components from dependencies in a project mostly freshly forked from electron-react-boilerplate. The layout is messed up (see pic below). Tried react-chat-window, react-chat-widget, and react-datepicker, so it's across the board. Sorry ...
common-pile/stackexchange_filtered
Alert is not displayed in TableViewController The alert is not getting displayed, but it calls the code. TableViewController is static and multiple section. When I click the save Button , if my textfield is empty. It has to show alert. It is going through else block, only alert is not get displayed. Complete code of ...
common-pile/stackexchange_filtered