text
stringlengths
70
452k
dataset
stringclasses
2 values
client waiting on server promise to resolve I have a scenario where I'm performing a fetch request to an express server. The express server is then performing a fetch request to a rails api service. So I have the client side waiting on a promise to resolve, and that promise will resolve once the server-side promise res...
common-pile/stackexchange_filtered
ios Get table view cell index when edit action is pressed I have a table view that has cells with edit actions. When the user swipes one of the cells to the left, you can see the edit action buttons. When the user taps one of the buttons, I need to get the index path of the cell that the buttons were clicked from. How...
common-pile/stackexchange_filtered
Does mysql profiling tool can work to monitor a different connection? MySQL 5 comes with a profiling tool that I can enable using "set profiling = 1", the problem is that one connection cannot monitor "queries" from another connection. Is there a way to enable that? mysql> set profiling=1; mysql> show profiles; You c...
common-pile/stackexchange_filtered
Person 1: The neurologist mentioned something puzzling yesterday - that forming new memories might actually interfere with old ones. How does that mechanism work exactly? Person 2: It relates to hippocampal neurogenesis. About seven hundred new neurons are born there daily, roughly a third of all hippocampal neurons r...
sci-datasets/scilogues
Hibernate subclass with foreign key relationships I need some help defining the following object hierarchy/ database relationship in Hibernate From the object sense – Agent is inherited from Person and Agency is inherited from Organization. they are inherited from Party which can have multiple Addresses associated with...
common-pile/stackexchange_filtered
Changing own user permissions with Oracle SQL not being the DBA I have been making changes to a couple of schemas of different environments (they belong to the same application). Sometimes I'll want to copy data from one environment to the other, and sometimes I'll want, for instance, to copy information from productio...
common-pile/stackexchange_filtered
Backend token authorization with multiple social logins I'm building an application which has a backend where I want to authenticate and authorize users. So far I've built a custom signup, and am using a JWT token alongside a REFRESH token to authorize users to my protected API routes. Now a new requirement appeared wh...
common-pile/stackexchange_filtered
TRIM on Samsung NVMe Not sure if I properly unterstand they way TRIM on SSD is supposed to work. According to lspci I've got the following device: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981. It shows up as nvme0 in /dev. In Ubuntu 19.04 standard configuration, systemd regulary runs fstrim -Av by systemd...
common-pile/stackexchange_filtered
Filter by date from SQL Text Field i've run into the following problem: I had to migrate a database from MS SQL Server where some fields contained date values that weren't stored as such. For example there was a field "offers" with an "validfrom" and "validto" field. Sadly, they used text fields (varchar) for that type...
common-pile/stackexchange_filtered
What do the CFI directives mean? (and some more questions) Ok, this is gonna be a long question. I'm trying to understand how "buffer overflow" works. I am reading Smashing the stack for fun and profit by aleph1 and have just got the disassembly of the following code: void function(int a, int b, int c) { char buffer...
common-pile/stackexchange_filtered
Query: product quantity with customizable variable like color, size I want to make a report from stock_reports table where I want to show quantity of every product with variable like color, size based on created_at means every lot. i have used following Query but i needs some improvement. $stockReport = DB::table('prod...
common-pile/stackexchange_filtered
powershell csom document set welcome page view I am try to set document set welcome page view with powershell csom with out any luck. Does anyone have an idea how to do it $password="" $username="" Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Clien...
common-pile/stackexchange_filtered
Running Openstack on 3 nodes Is it possible to run the openstack cloud over 3 nodes (initially, with a further node to follow at a later date)? The servers are all quad core xeon, 12gb ram and 2x1TB disks. I am currently looking at virtualising a very small network, however we do not have the money or facilities to sus...
common-pile/stackexchange_filtered
How to stop LLVM from transforming bit-masking into a branch? For context, suppose that I'm writing a bytecode interpreter, where the instructions follow one of two formats: +---+--------+------+------+----------------+ | 1 | opcode | treg | areg | unused | +---+--------+------+------+----------------+ 32 31 ...
common-pile/stackexchange_filtered
Streaming Node.js canvas via WebRTC with simple-peer I was wondering if there is a way to capture a stream from a canvas in Node.js like in the browser using canvas.captureStream()? I am using the "canvas" library for Node.js and there is no function to do this. My goal is to send this stream to the browser via WebRTC ...
common-pile/stackexchange_filtered
WCF Security, TCP or http? I am looking to secure a wcf service that is "self hosted" inside a winforms app. I have done my research, but I am not sure what "applies" in what I am attempting to do. I have no preference for http of tcp binding, although I would think tcp would fundamentally be quicker? Regardless of thi...
common-pile/stackexchange_filtered
Why hql select from JavaBean but the table name? I have a doubt, that is why in hql use from the JavaBean but the table name? You can find the hql in below code. My code is below: @Repository(IElecSystemDDLDao.SERVICE_NAME) public class ElecSystemDDLDaoImpl extends CommonDaoImpl<ElecSystemDDL> implements IElecSystemDD...
common-pile/stackexchange_filtered
Proof Concerning Linear Independence And Maximal Subsets Serge Lang's Linear Algebra has, in chapter 1, a proof which seems rather long-winded. He wants to prove the following theorem: Theorem 3.1. let V be a vector space over the field K. Let $\{v_1,\ldots , v_m\}$ be a basis of V over K. Let $w_1,\ldots,w_n$ be eleme...
common-pile/stackexchange_filtered
no shutdown, no boot after latest SW update Kubuntu 18.04 04 on a intel nuc with i3-8109U CPU. A few days ago, after installing latest update the system did not shut down anymore. After hard shutdown I was not able to boot anymore. Today I have re-installed from a USB-Stick and everything (shutdown/boot) ok. After inst...
common-pile/stackexchange_filtered
Event ID 9009 -- "The Desktop Window Manager has exited with code" I've looked all over the place for an answer to this, and none of the things I've found have seemed to fit my situation. I have a brand new Dell laptop with Windows 7 64-bit. The problem I'm having is I'm continually experiencing a sudden momentary cut...
common-pile/stackexchange_filtered
how to get level (height) where user is holding his device I'm working on AR application and I need now to get the height level of the phone. I mean I want to know if user is holding his phone 10cm above the ground or maybe 1m abouve the ground. My first thought was to use GPS but after some time I've start to think th...
common-pile/stackexchange_filtered
GVFS-WARNING **: can't init metadata tree /home/user/.local/share/gvfs-metadata/home: open: Permission denied lately i've been getting this error whenver I start gedit and the error message seems to fill my terminal buffer. PS: a day before I used nautilius to get access to usr/loacl/MATLAB directory so that I could i...
common-pile/stackexchange_filtered
Plotting Confidence intervals to multiple lines in ggplot2 I am fairly new to R and I am working on analyzing some data in ggplot2. I have one set of data that has hormone values for a type of animal. The animals came from two sites (Control, New). I analyzed the data using an ANCOVA and plotted the predicted regress...
common-pile/stackexchange_filtered
How to know when you have received an image in the browser? Let me explain myself as my question title may be a tad random. My website has a good few images, as such I want to have say a loading bar that as my browser receives and image it moves the bar x pixels to the right. Now the css behind it all isn't to bad. The...
common-pile/stackexchange_filtered
MCMC Sampling / Gibbs Sampling Had a midterm in my Artificial Intelligence class on MCMC sampling (is it the same as Gibbs sampling?). I was looking over the solution which I found online (in my midterm it was called MCMC liklihood weighting sampler, but in the attached solution its called Gibbs, is that the same?), an...
common-pile/stackexchange_filtered
Button to increment a number on screen I want, per button click, to increase the variable hey. However, it doesn't increase. What's going wrong? var hey = 0 function hi() { hey = ++hey } document.write(window.hey) <button onclick="hi()">HI</button> You need to somehow update the printed value Hmm, inde...
common-pile/stackexchange_filtered
Ruby, random number generator and if statement After running this program, it only ever returns "miss" What have I done wrong? def method print "Enter number from 0 to 4" x = gets.chomp num = rand(5) if x == num puts "hit" else puts "miss" end end while 1==1 method end thanks gets.chomp results in a String. Compar...
common-pile/stackexchange_filtered
Unit testing for non-stateless units - how? Firstly let me say I have never written a unit test in my life. I am trying to get the hang of PHPUnit, and so far it's working pretty well for me so far as "stateless" functions (that simply take in an input and return an output regardless of whatever else in the programme i...
common-pile/stackexchange_filtered
What to use instead of "to come"? In English "to come" is used loosely. In Spanish it's different, it can only be used when the person speaking invites or asks the other person to go to the place where the 1st person at. Right? If I'm the 2nd person, what should I use instead of "to come" then? Examples in English: 1) ...
common-pile/stackexchange_filtered
Creating zip using express and archiver I used the node-archiver to zip files as follows. But I get corrupted zip file. app.get('/download', async (req, res) => { const arch = archiver('zip'); arch.append('abc', { name: 'abc.txt'}); arch.append('cdf', { name: 'cdf.txt'}); res.attachment('test.zip').ty...
common-pile/stackexchange_filtered
Putting Headers on Data Files I have a number of data files of a generic file format, (I say this as I am being given files off of Google Drive, which is messing up all of the formats to throw it all into a "File" file format), which behaves similar to a text format, except it has no .txt afterward or any other file in...
common-pile/stackexchange_filtered
Uncaught TypeError: Cannot read property 'setCenter' of undefined in map 5 // this function search location and show on map function showAddressTextBox(address) { // showAddressTextBox function search location and show on map // alert(address); var infowindow2 = new google.maps.InfoWindow(); //this info...
common-pile/stackexchange_filtered
how to bypass video conversion for mp4 files? I am using the Video module on my site, and would like a would like to bypass video conversion and a user uploads a file in MP4 format. Is there any way that the bypass video conversion? The reason for this is that due to the high volume of video submissions, and the fact t...
common-pile/stackexchange_filtered
Amount of Data Calculated in a Game So... I am theorizing the development of a 2d living persistent fullsized world with simulated ecossystem, etc..., and many, many objects, but how can I handle the giant amount of data that will be calculated per instance. I mean, as the ecossystem is simulated and alive, animals wou...
common-pile/stackexchange_filtered
How to add upload profile picture field in woocommerce registration form I am trying to add a new feature in my woocommerce registration form. I have already added some fields and all are working good. Now, i want add one more field to upload profile picture but failed to do this. I have already tried this on function...
common-pile/stackexchange_filtered
p-power roots of unity in local fields Let $K$ be a number field and suppose $K$ contains no $p$-power roots of unity. Let $\mathcal{P}$ be a prime of $K$ above the rational prime $p$. Can someone prove or disprove the assertion that the local field $K_{\mathcal{P}}$ will contain no $p$-power roots of unity? Looks to ...
common-pile/stackexchange_filtered
How to play audio in cordova project on desktop browser? I have the following situation: I have phonegap project. I build it using "cordova build browser" and then run via "cordova run browser". The piece of code does not work because it seems that filename.mp3 does not exist in sounds/ dir which is in root dir (i.e. ...
common-pile/stackexchange_filtered
Building a solid vocabulary when working in a specific domain This question might be a bit vague and answers might come up quite opinionated but I don't know how to rephrase it so here it goes. How can a developer build a solid vocabulary when working in a specific domain? As we all know, naming things is one of the ...
common-pile/stackexchange_filtered
Web service working fine on browser but not from android code I am trying to create login for my application. The given url works fine when i try it in web browser but web service is not working with the following code in android application. For testing purpose i have hard coded the url link. I have already set intern...
common-pile/stackexchange_filtered
name 'listdir' is not defined I have been trying to run this cell on google colab but every time it says 'listdir' is not defined. I have imported 'os' in the previous cell before running this cell. Can anyone please help to find the error here? images = [(train_image_dir+f) for f in listdir(train_image_dir) if isfile...
common-pile/stackexchange_filtered
Recursive QuickSort in java not working I am trying to implement a quicksort in java which has the last element of the array as a pivot. However, it does not seem to be working even though on paper it should.. This is the output: before sort: 5 2 3 1 4 after sort: 3 2 4 5 1 The expected output would be 1,2,3,4,5 b...
common-pile/stackexchange_filtered
Only show a portion of a live Google sheet I want to embed a live Google Sheet inside of new google sites. works fine but I want to hide/remove the title row and column headers and just show the workspace area I have tried the following iframe code ( below ) in New Google sites and it still displays titles, row and c...
common-pile/stackexchange_filtered
What is the best way for two programs on the same machine to communicate with each other I need to pass some data (integers) from one (C++) program to another (C#). What is the fastest way to do this? P.S.: OS: Windows XP The answer might be different on Windows as opposed to something based on Unix, and C# runs well ...
common-pile/stackexchange_filtered
Beginner: Multiview app doesn't switch views correctly I wrote a basic two-view application that switches from one view to another every time I press a button. But for some reason when I run it on simulator, both views are always few pixels above the MainWindow.xib view, always being on top of it. And what's strange i...
common-pile/stackexchange_filtered
Why does deleting require 5 votes and undeleting only 3? Consider the revisions for this question, which I looked at following someone crying over lost rep another meta question here. As far as I can tell, a sum total of 9 people though it bad enough to close/delete, but only 5 were required to replenish its mana. Tha...
common-pile/stackexchange_filtered
pynput - Importing keyboard and mouse I am having some trouble importing some things from pynput library. In my code I want use the a python library (pynput) to do some actions in the mouse and in keyboard. When I import just the keyboard or the mouse it works but when importing both at some time it give me some errors...
common-pile/stackexchange_filtered
1452 Cannot add or update a child row: a foreign key constraint fails I get this error when creating a new product. This is the function: public function createProduct(Request $request) { $product = Product::create($request->all()); $product->title = strip_tags($request->title); $product->description = stri...
common-pile/stackexchange_filtered
UGC: NoSuchFieldError: HEADER_USER_ID I have configured UGC for a JSP website and I am getting the following error in the generated DCP. It seems to be looking for HEADER_USER_ID. org.apache.jasper.JasperException: An exception occurred processing JSP page /data/pub10/dcp/jsp/dcp295_4952.jsp at line 42 42: ...
common-pile/stackexchange_filtered
Using cURL or wget for multiple sites Is there a simple way to download an image file from multiple (sequentially numbered) sites, and change the filename to match the download location? For example, www.001.mysite.com/photo.jpg www.002.mysite.com/photo.jpg ... ... www.050.mysite.com/photo.jpg The photo is named the s...
common-pile/stackexchange_filtered
SonarQube upgrade 4.2 -> 4.3.2 UpdateMeasuresDebtToMinutes appears hung When upgrading SonarQube 4.2 to 4.3.2 on Windows 7 Enterprise / SQL Server 2012 / Java 7 Update 51 64bit JDK The setup screen stated: SonarQube Database is currenly upgrading. Started about 22 hours ago (14 Jul 2014 11:45) The sonar.log file is as ...
common-pile/stackexchange_filtered
Install a specific nvidia driver I've just upgraded from 14.04 to 15.04 & want to solve a problem with Nvidia drivers I've had for a while. I'm currently running using Nouveau, but this causes screen scrambles when switching users, or accessing the dash. (Nouveau was OK under 14.04) My Nvidia drivers were fine under 1...
common-pile/stackexchange_filtered
How I delete data from 'Realm Database' on button click? How can I delete specific data from realm on button click event? I have an RecyclerView and in it I set CardView where my EditText and delete button is set. I want that when I press delete button on CardView the data is deleted from CardView and also from realm d...
common-pile/stackexchange_filtered
Are there any performance differences in OS X apps based on location of install? are there any differences from a performance perspective (not access control) when a OS X application is installed(stored) in /Applications dir in the local domain vs /Users/<username>/Applications dir in the user domain? In general: No. ...
common-pile/stackexchange_filtered
How does StackOverflow reduce/prevent spam while allowing unregistered users to post? I've noticed StackOverflow allows non-registered users to ask questions by simply requiring the person to enter in their Name and Email. How does StackOverflow prevent (or reduce) spam from bots? Right now, I'm using bbPress as a web ...
common-pile/stackexchange_filtered
How to delete a line having line number using c#? My file named as test.txt contains This document is divided into about 5 logical sections starting with a feature and structure overview, followed by an overview of built in column and cell types. Next is an overview of working with data, followed by an overview of spec...
common-pile/stackexchange_filtered
set minimum height for div based on height of neighbor column using twitter bootstrap So i'm trying to make my own forums and i've decided to start with twitter bootstrap to get myself off the ground. In the left column is the poster information like the poster's username, the date posted, and any controls like edit, ...
common-pile/stackexchange_filtered
matlab averages of cell array I have the following script for importing text files into matlab which include hourly data, where I am then trying to convert them into daily averages: clear all pathName = ... TopFolder = pathName; dirListing = dir(fullfile(TopFolder,'*.txt'));%Lists the folders in the directory...
common-pile/stackexchange_filtered
Update Live Tile but which one is that? I have an application with pinned secondary live tiles, they are showing days on the back of the tile and I would like to reduce the number of days each day. Now the problem is, that I don't want to change the other properties of the tile (so Title, Images, etc), only the content...
common-pile/stackexchange_filtered
How to navigate application using MKMapView in iPhone? In my iPhone application I have used MKMapView to navigate from different pages. But when the MKMapView controll run at that time the the control is not going back again in the application. so I am loosing the application flow, and I have to run the application aga...
common-pile/stackexchange_filtered
Lambda function not inserting into Postgres RDS I am trying to insert a record into RDS Postgres using node.js lambda function. I can't tell if it is connecting to the database or not. It did insert 3 records once and then nothing. Nothing is being written to the log. Below is my code: 'use strict'; const { Clien...
common-pile/stackexchange_filtered
Error cURL AbuseIPDB through Powershell Command - Cannot bind parameter 'Headers' I'd like to ask about cURL command for AbuseIPDB, as stated in https://docs.abuseipdb.com/#check-endpoint So I tried to run the command with the following Powershell curl command" curl -G https://api.abuseipdb.com/api/v2/check \ --data-u...
common-pile/stackexchange_filtered
Ionic using Bing Maps Proxy failing and Access-Control-Allow-Origin issue I'm currently working on my first hybrid application and I'm having an issue with CORS. The Bing MAP API doesn't allow localhost or an actual device to call their Rest API. I've tried to reach Bing two different ways. First attempt was with the ...
common-pile/stackexchange_filtered
data.table - efficiently manipulate large data set I am amazed by the blazing speed of data.table. The coding below does exactly what I need however when executed on a large table it does not perform very well. convinced that this can be done faster with data.table but I do not see how. Output The output needs to be a ...
common-pile/stackexchange_filtered
Asynchronous page loading in rails with infinite loop I have a bot running an infinite loop in rails. I want to have things in the code periodically print to the view page as its running. Since I am having the bot run on an infinite loop I need some way to asynchronously load the page that will output the periodic upda...
common-pile/stackexchange_filtered
How to add two links on the same line in PHP or CSS Actually, I had created a separate file for my footer links and it is called footer.php and I had assigned some links to their respective variables. And then I used the include() feature and added that file in my main .php file. The code is given below. Code for foote...
common-pile/stackexchange_filtered
How to save multiple versions of a file on GitHub I'm fairly new to programming and thought I'd try out version control. I created a GitHub account to help me track my journey of creating my first webpage. I want to upload updated versions of my code as I go along (e.g. Stage1, then perhaps when I progress a little fur...
common-pile/stackexchange_filtered
How do I get a function pointer from a trait in Rust? How do I get over something like this: struct Test { foo: Option<fn()> } impl Test { fn new(&mut self) { self.foo = Option::Some(self.a); } fn a(&self) { /* can use Test */ } } I get this error: error: attempted to take value of method `a`...
common-pile/stackexchange_filtered
Uninstall GRUB and use Windows bootloader I have Windows 8 pre-installed, and then I installed GRUB with Ubuntu. Ubuntu is not my thing, so now I want to remove it along with GRUB. From what I have learned, with UEFI, GRUB does not overwrite the windows bootloader in the EFI partition and is stored elsewhere. How would...
common-pile/stackexchange_filtered
how to serialize my treeview control in c# namespace TreeViewControl { [Serializable] public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { string n = textBox1.Text; ...
common-pile/stackexchange_filtered
Non-static method 'getApplicationContext()' cannot be referenced from a static context I followed instructions in Android Developer to setup and create Room database, DAO and Data Entity. Everything is fine until i got an error when trying to create an instance of the database: Non-static method 'getApplicationContext(...
common-pile/stackexchange_filtered
Will a magnetic case affect my phone? sorry if the question is a bit off-topic but any help would be much appreciated. I have a Samsung S4 [I9505] and I was looking for a good protective case for it. initially I was going for a Slim TPU Gel case but it didn't feel like it would give much protection from bumps etc. I wa...
common-pile/stackexchange_filtered
How to run a C# program without needing Console.ReadLine()? After I run a program, I always need to add Console.ReadLine(); to the end in order for the program results to not go away. If I were to code: static void Main(string[] args) { Console.WriteLine("Hello World!"); Console.ReadLine(); // I need this for the c...
common-pile/stackexchange_filtered
Unity Admob Ads Showing in Editor but not in Xcode or published app I am working in Unity 2020.3.13f1. Admob banner, interstitial, and rewarded ads work fine in the editor but do not show when I test in Xcode, nor do they show when my app is live on the App store (Even after the 24 hours or however long they sometime...
common-pile/stackexchange_filtered
Why do .index files exist in the kafka-log directory? I just made a new topic, and haven't produced any message yet. A file named in<PHONE_NUMBER>0000000000.index was created in the directory /tmp/kafka-logs-1/topicname-0/, and the size of that file is really big. I opened that binary file in vi, and the contents are o...
common-pile/stackexchange_filtered
Delphi: storing data in classes vs records, memory usage reduction I have quite a lot of data to store, read and modify in memory while the application works. The data could be compared to a tree, where each node is described by limited number of strings and integers, and has quite a lot of subelements. Currently the d...
common-pile/stackexchange_filtered
Unable To Install posix-spawn on FreeBSD I am attempting to get octopress going and having trouble installing the required package posix-spawn. Here this is the error output: ERROR: Error installing posix-spawn: ERROR: Failed to build gem native extension. /home/private/.rvm/rubies/ruby-1.9.3-p392/bin/ruby e...
common-pile/stackexchange_filtered
Pandas sort via multiple columns and key So I have a pandas dataframe and I'm happy sorting it by several different columns. However, I'd like the first column (usernames) to be sorted by a lowercase value in addition to the column sorting and I can't find anything that includes both of these. This is what I have so fa...
common-pile/stackexchange_filtered
Strange control statement in Collection class I came across this code in Java API Collection class. Does it work like switch statement ? How is this idiom called ? public static int indexOfSubList(List<?> source, List<?> target) { int sourceSize = source.size(); int targetSize = target.size(); int maxCandid...
common-pile/stackexchange_filtered
Raise/handle event from/of dynamic component I'm currently facing the following problem. I have a ComponentA which renders dynamic components of unknown type (ComponentA gets these components to render via its props - importin these component types is not conceivable, as there would be too many and it can grow dynamica...
common-pile/stackexchange_filtered
Update Python 3.6 package from Deadsnakes PPA I can not seem to update my version of Python 3.6, installed from the deadsnakes ppa. sudo apt-get update hits the ppa, and sudo apt-get upgrade reports no errors. When I run apt policy python3.6, I get: python3.6: Installed: 3.6.2-1+xenial1 Candidate: 3.6.2-1+xenial1 ...
common-pile/stackexchange_filtered
PERSON A The ANFIS architecture you're proposing uses Takagi-Sugeno inference, but have you considered the computational complexity trade-off? Our missile guidance system needs real-time adaptation. PERSON B That's exactly why Takagi-Sugeno works better than Mamdani for this application. The consequent parameters are ...
sci-datasets/scilogues
How to Create a Text Filename with DateTime using C# I want to create a Filename with DateTime.Now to store the errors that catched using Exception Handling everyday. I used DateTime.ToFileTime, but the format appending for not in date format. string result = "myFile_" + DateTime.Now.ToFileTime() + ".txt"; string path ...
common-pile/stackexchange_filtered
How to extract the data basis on it is Monday or Thursday in YYYYMMDD format? I am trying to get the date of Monday or Thurday in this format YYYYMMDD For Monday it should give me this - 20130224 (as an example) For Thursday it should give me this - 20130227 (as an example) Now, if I am running my program after Thursd...
common-pile/stackexchange_filtered
Implement PATCH operation with Play forms Hi there I am getting some troubles implementing patch operation using Play framework and forms (according to https://www.rfc-editor.org/rfc/rfc6902). The idea is to then pattern match on the patch operation to decide what is the action to take. So far what I achieved to do : ...
common-pile/stackexchange_filtered
The difference between heat and temperature So as I understand it, heat energy of an object is the SUM of all the kinetic energies of the molecules of the object (up to constant factor). The temperature on the other hand is the AVERAGE of the kinetic energies of all the molecules of the object. Now when ice is me...
common-pile/stackexchange_filtered
How to tear down MikroOrm in NestJS I've recently converted my AppModule to a dynamic module so that I'm able to provide different configurations to MikroOrm depending on context (E2E tests, etc) and it currently looks like this: @Module({ imports: [ MikroOrmModule.forFeature({ entities: [Todo], }), ]...
common-pile/stackexchange_filtered
how to fix my position sticky with navigation bar problem I'm building a responsive website with a header above the navigation bar and my goal is then of course to have the navigation bar stick to the top when scrolling down. I'm new to HTML and CSS, so I'm not really sure if the order in what should be in the top of t...
common-pile/stackexchange_filtered
How to return each parameter in JSON by using JavaScript I have an array of words. I am not getting how can I convert each word into json by using JavaScript? Here is the piece of code that I am using: this.new_testing = []; this.newcontent=Contents.split(' '); console.log(this.newcontent, 'word count') ...
common-pile/stackexchange_filtered
android testing - mockito error org.mockito.exceptions.misusing.WrongTypeOfReturnValue: I try to create test for my presenter, but when I run it, I got this kind of error org.mockito.exceptions.misusing.WrongTypeOfReturnValue: ScalarSynchronousObservable cannot be returned by getContext() getContext() should return Con...
common-pile/stackexchange_filtered
Type guard to check valid type I have such code: const languages = ["en", "de", "ar"] as const; export type TranslationLanguage = (typeof languages)[number]; in these case the type of TranslationLanguage = "en" | "de" | "ar" everything is fine. But how can I implement function that checks my type and gives true/false...
common-pile/stackexchange_filtered
Use GeoJson data with Leaflet.PixiOverlay I am using Leaflet.PixiOverlay(this package) in my App in order to render a big number of data(suck as markers, shapes, geoJson data, etc) without performance issues. But the documentation of this package does not specify how to use data with GeoJson format to draw on leaflet m...
common-pile/stackexchange_filtered
How to enable RN debug mode other than debug build variant I have multiple build variants in my RN project and debug in physical device productFlavors{ gms{ applicationIdSuffix ".gms" } hms{ applicationIdSuffix ".hms" } } buildTypes{ debug{ ... } staging{...} release{...} } When I run...
common-pile/stackexchange_filtered
Use Expression<Func<MyEntity, bool>> in Linq on MyEntity.<OtherEntity>.<MyProperty> I am trying to simplify a method that returns an IQueryable A, B and C extend BaseEntity containing a enum that I want to compare. context is a entity framework dbcontext. Here is a stripped down version of the method: return context.M...
common-pile/stackexchange_filtered
Sequence of random variable with $\lim_{n \rightarrow \infty}\mathbb{E}[X_n^2] = 0$ Let $X_n, n \in \mathbb{N}$ be a sequence of random variables with $\lim_{n \rightarrow \infty}\mathbb{E}[X_n^2] = 0$. Show that $X_N \rightarrow_d X$ with $X = 0$ almost surely, as $n \rightarrow \infty$. I was thinking about showing...
common-pile/stackexchange_filtered
partial derivatives under integral sign We have $f(x,y)=\int_{0}^{y^2\sqrt{x}}\sin(t^2)dt$. How does one prove that $f$ is differentiable on $0<x<\infty,-\infty<y<\infty?$ And how does one calculate $\frac{\partial{f}}{\partial{x}}$ and $\frac{\partial{f}}{\partial{y}}$? It would be kind if you could tell where to look...
common-pile/stackexchange_filtered
Changing primary key property name on Realm Swift object model I have a Realm (Swift) object that's existed in my app for about a year now. The model for this object looks like this: class ChatMessage: Object { @objc dynamic var messageId: Int = generateId() // other properties omitted override static fu...
common-pile/stackexchange_filtered
Encrypt/decrypt using myang's Qr encoder Project Hi this a QR Encoder project found at github by myang, https://github.com/myang-git/QR-Code-Encoder-for-Objective-C i want to use the encode and decode functionality provided here, am able to successsfully create a QR code with encrypted string but am not able to decode ...
common-pile/stackexchange_filtered
Can't create an app id for a team account on app store connect I'm trying to upload an app on app store using a team account but when I'm trying to create an app id in Certificates, Identifiers & Profiles or Xcode it creates one for my personal account not the team account (I'm an admin in this one) And also I'm not ha...
common-pile/stackexchange_filtered
How can I create an Open Directory network user with a command? I know I can create a local user with: sudo dscl . create /Users/firstlast RealName "FIRST LAST" How can I create a network user on Sierra or High Sierra? Welcome to Ask Different. Can we assume you are running 10.14.2 mojave and the latest server.app ...
common-pile/stackexchange_filtered
How to close a specific folder with VBScript? I am trying to make a simple program with VBScript that closes a specific folder every time it gets opened, thus denying access to that folder. I've successfully used this code right here for many folders, but for some reason it doesn't work with C:\ProgramData\Microsoft\Wi...
common-pile/stackexchange_filtered