text
stringlengths
70
452k
dataset
stringclasses
2 values
How does tf.estimator.LinearClassifier prediction work? I have a TF model which is a tf.estimator.LinearClassifier built using the FTRL optimizer with L1 regularization. I have a sparse column with a couple of million of string keys and a couple of real valued columns. The problem is that I want to extract the model ...
common-pile/stackexchange_filtered
Stop Galleria from looping slideshow I have the latest version of Galleria (1.2.6), I'm using the Classic theme with Picasa plugin. I have set the slideshow on autoplay, however I would like the slideshow to STOP after playing through all the images. Also, I would like Galleria to stop/return to the first image - is th...
common-pile/stackexchange_filtered
Is there a way to get the GraphQL schema Object combined by NestJS v6? I'm looking for a way to get the combined GraphQL schema from NestJS v6, in order to mock the schema interface with addMockFunctionsToSchema from Apollo, for testing purposes. i.e. https://www.apollographql.com/docs/graphql-tools/mocking/#addmockfun...
common-pile/stackexchange_filtered
Automating assignment in initialize() methods for Reference Classes in R I'm working with a reference class with a few dozen fields. I've set up an initialize()method that takes a list object in. While some of the fields rely on further computation from list elements, most of the fields are directly assigned from lis...
common-pile/stackexchange_filtered
How to connect to a remote meteor mongodb using robomongo I am using Meteor. Which is installed on another server. I want to access its mongodb from another [Ubuntu Machine]. Now how can I access that mongodb via robomongo or any other tool? Any guidance or help would be appreciated. In Robomongo in the upper left: C...
common-pile/stackexchange_filtered
read a file with both text and binary information in .Net I need to read binary PGM image files. Its format: P5 # comments nrows ncolumns max-value binary values start at this line. (totally nrows*ncolumns bytes/unsigned char) I know how to do it in C or C++ using FILE handler by reading several lines first and read t...
common-pile/stackexchange_filtered
XCode and svn client certificates I've been stuck on an error in Xcode for over a year: "The server “my.servername.net” requires a client certificate." I have svn client certificates correctly setup on my Mac and can properly access our internal svn via the command line. I can also browse it via Safari. For whatever re...
common-pile/stackexchange_filtered
Redis performance on Windows localhost I have a Redis instance installed on my local machine. The instance contains 147,848 serialized objects. I need to retrieve all objects and then apply some logic. I cam to know that there is no way to retrieve all objects at once so first i get all keys as var keys = client.GetAl...
common-pile/stackexchange_filtered
TextField in Compose : Double Tap to select text is not working I am playing with Jetpack Compose. In previous Android Views, we could double tap on a word in an EditText/TextInputLayout/TextInputEditText to select the entire word, and provide options like copy-paste, select-all, etc. This does not work with Jetpack Co...
common-pile/stackexchange_filtered
CodeChecker Warning: file contents changed or missing since the latest analysis I executed locally a static analysis using Codechecker. Now I want to store the results (generated in the reports folder) in CodeChecker database using the command CodeChecker store ./reports --name my_first_run --url http://<codechecker_ip...
common-pile/stackexchange_filtered
How to sort HashMap<String,ArrayList> in Android? How to sort HashMap<String,ArrrayList<String>>? I am fetching contact name from phone contacts like: "String name = cur.getString(cur.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));" And stored it into one HashMap<String,ArrayList<String>>. But all contacts I ...
common-pile/stackexchange_filtered
No output to terminal after inserting a module with insmod I am following the following tutorial, trying to learn how to develop device drivers, and in Chapter 2, the focus is to develop a working module and insert it into the kernel. I used the following code (hello.c): #include <linux/init.h> #include <linux/module.h...
common-pile/stackexchange_filtered
Fourier transform of time-shifted complex conjugate I want to do a Fourier transform of a time-shifted complex conjugate function, $\exp(iat)\bar{f}(t)$ where $a$ is a real, positive constant. If the Fourier transform of the original function is $\exp(iat)f(t) \rightarrow F(\omega-a)$ then does it mean that $\exp(iat)\...
common-pile/stackexchange_filtered
The spectroscopy data from the cerium compound is confusing me. The f-electrons should be completely localized, but we're seeing this intermediate behavior. That's exactly what the Anderson model predicts though. The f-orbitals aren't purely localized - they're hybridizing with the conduction band, creating this mixed...
sci-datasets/scilogues
What is git status -uno in git When I type git status There is message saying It took 2.39 seconds to enumerate untracked files. 'status -uno' may speed it up, but you have to be careful not to forget to add new files yourself (see 'git help status'). nothing to commit, working tree clean I type git help status and r...
common-pile/stackexchange_filtered
Trim a string with an array list I want to be able to trim a string where values match an array like this $image_formats = array('.png','.jpg', '.jpeg', '.gif'); $file = 'image1.png'; $file_stripped = trim($file, $image_formats); Wanted Result: 'image1' Is there a function for this, whats the best method to go about ...
common-pile/stackexchange_filtered
Flow rate in split bottleneck Water flows from top to bottom. First there are two pipes, one with $10$ LPM max flow rate, and another with $20$ LPM max flow rate. They both go to another pipe, which is $20$ LPM max flow rate. The total flow rate will be $20$ LPM, because of the lower pipe bottleneck. What would be the ...
common-pile/stackexchange_filtered
Is it possible to use .svg files with React Native without converting them? I have found many answers about converting .svg files to rasterized formats, however I would prefer to keep it as a single svg file. I got excited when I found react-native-svg, but was then disappointed when I saw their image example used a .j...
common-pile/stackexchange_filtered
How to calculate conflict into two git branches without needing to do the actual merge? I have a repository in github, which main branch is named master and the following situation: A contribution of code in a PR (let's name PR-A) from branch feature/pr-a to master. A contribution of code in a PR (let's name PR-B) fro...
common-pile/stackexchange_filtered
How to merge when each row on table A needs multiple rows from table B in SQL Server I have two tables. InstructorRelated TermCode |Term_Seq_ID |Subject|Course|QuestionNbr|InstructorName |Instructor_Pid|Mean |StdDev FS15 |1154 |ACC |201 |5 |SKYWALKER, LUKE|BR549 |4.349|1.033 FS15 |1...
common-pile/stackexchange_filtered
Adjusting a php function so that it displays link in the form of:- '/widgets?pg=2' instead of 'products.php?cat=20&pg=2' I added the following .htaccess rule:- RewriteRule ^widgets$ products.php?cat=20 [QSA] So now I have a simple link called 'widgets' which leads to the 'widgets' category 1st page. However, the lin...
common-pile/stackexchange_filtered
input and a on one click So i have an a href that clears the filters and i have an input that sets the value of other filter as empty. On a href click i want it to also clear the other filter. I have tried multiple things but none of those were working. It may be done with jQuery, or pure html. This is my a href: <a hr...
common-pile/stackexchange_filtered
raspbian with qemu won't boot up I tried to create a vm for raspbian in ubuntu. I made a few changes in the raspbian to test if it works in other machines or not. After that i copied the edited image into my computer. Now i try to boot it with qemu but each time qemu opens, i can't see the raspbian. Here is my work qe...
common-pile/stackexchange_filtered
Can I repeat the last UI command? I know that I can use . to repeat the last editing command. Is there a way to repeat the last UI manipulation command? For example, I can write 10<C-W>- to shrink a window by ten rows. It'd be nice to be able to press ⟨some key⟩ to easily repeat this command if I want to shrink it more...
common-pile/stackexchange_filtered
Clarification needed: SP List Graph api webhook notifications I've created a Graph subscription for changes (ChangeType = "updated") in a Sharepoint List according to docs; and am also receiving notifications with no issues. But... why does the resourceData of the notification contain just one property? [...] "resource...
common-pile/stackexchange_filtered
Young researchers analyzing samples in a biotech startup laboratory. PERSON 1 Why does the scattered light show different frequencies when we shine the laser on this protein sample? PERSON 2 Most photons bounce back unchanged, but some interact with the molecular vibrations. When a photon hits a vibrating bond, it ca...
sci-datasets/scilogues
Where are the default crontab instructions kept? When I run crontab -l on a new user that does not have any crons yet, the result is like this and the command fails and exits no crontab for [user] If I run crontab -e on a new user the result is as follows and the crontab editor opens. no crontab for [user] - using an ...
common-pile/stackexchange_filtered
Correct manners of getting value I think, that all manners of getting value are correct, but I want to ask. lockedList is ArrayList and I want only 1 thread to get the value. public T get1(int index) { lock.lock(); try { return lockedList.get(index); } finally { lock.unlock(); ...
common-pile/stackexchange_filtered
Spyder console self defined module not updated I import a function from a self defined module in spyder console as: from self import ver1 now if i edit the self and add a ver2 function and do this: from self import ver2 I get an error: ImportError: cannot import name ver2 I have tried this: (i delete the self.pyc fi...
common-pile/stackexchange_filtered
!role error in keycloak while accessing a resource I have secured my rest api with Keycloak. After authentication, when I try to access rest API , I get: 403 error. Unable to access rest api. Reason !role. In configuration I have specified role as *: ConstraintSecurityHandler securityHandler = new ConstraintSecur...
common-pile/stackexchange_filtered
Merge two lists (string and int) together My problem is that I have 2 lists, that I get dynamically but they will be of same size every time, and I need merge them in one list, for example I have List<string> chars = [aaa],[bbb],[ccc]; List<int> numbers= [1][2][3]; I want to get 3th list that will have combined data ...
common-pile/stackexchange_filtered
Correct way to suspend coroutine until Task<T> is complete I've recently dove into Kotlin coroutines Since I use a lot of Google's libraries, most of the jobs is done inside Task class Currently I'm using this extension to suspend coroutine suspend fun <T> awaitTask(task: Task<T>): T = suspendCoroutine { continuation -...
common-pile/stackexchange_filtered
Express routes, More DRY method of passing data to routes I have several mongodb models, which I am passing through to my routes. The approach I'm taking leaves a lot of repeated code. var AboutData = mongoose.model( 'AboutData' ); var BlogData = mongoose.model( 'BlogData' ); app.get('/about', function(req, res...
common-pile/stackexchange_filtered
How (and by whom) are financial decisions made in the Catholic Church? Coming from a denomination that doesn't subscribe to one earthly central Church authority, or a rigid structure, I find it very interesting to learn about denominations that do have such a structure. While browsing through the "Gospel Topics" secti...
common-pile/stackexchange_filtered
EJB2.1 hello word application configuration issue I am trying to make hello world EJB2.1 application in RAD6 with Web sphere application server. But i'm unable to understand that which file i've to edit in RAD6 for doing changes that we do in jboss.xml while using jboss. Some lines of codes from jboss.xml:- <ejb-name>H...
common-pile/stackexchange_filtered
How to loop through selected data in SQL Server? I want to select multiple rows of data from a table and add it onto another one. For example: Select * from Table1 which would return id | name 1 | Chad 2 | Mary 3 | Denise I want to add these rows of data to Table 2 Insert(id, name) values(@id, @name) Thank you! ...
common-pile/stackexchange_filtered
ElasticSearch NEST DSL Query Cross Fields Query I am trying to convert following ElasticSearch DSL Query to NEST and it seems something is not correct. Here is my DSL Query: { "query": { "multi_match": { "query": "AJ", "type": "cross_fields", "fields": ["name", "s...
common-pile/stackexchange_filtered
Fit More Widgets on Wordpress Footer My theme shows that I can fit up to 4 widgets in the footer as shown in the demo site here: http://demo.woothemes.com/?name=simplicity But I can only fit 2 on mine when I'd like to have 3. Here's my site for my assignment: http://www.brightpixelstudios.com/ I'm guessing I'll need to...
common-pile/stackexchange_filtered
ADB2C Custom Attribute String Data Size What is the max size (number of characters) that a String Custom Attribute can hold on Active Directory B2C? The maximum length for a String property is 256 characters. For more information, see Directory schema extensions | Graph API concepts.
common-pile/stackexchange_filtered
Select how many documents are in other table for each person I have 3 tables. Client,Documents and ClientDocuments. The first one is the clients,where the information for each client are. The second one is the documents, which document can go in the system. The third one is the ClientDocuments, which client has which d...
common-pile/stackexchange_filtered
Greyed out folder in GitHub repo? Hey so I pushed a new folder to my GitHub repository and well it is greyed out. Why? I'm new to git and have probably done something to git to cause this so how can i start from fresh? Here's a link to my repo: https://github.com/ZoidinCode/ZoidinCode.github.io/tree/master/dist I've un...
common-pile/stackexchange_filtered
Cannot read property 'viewManagersNames' of undefined I'm trying to create an ExpoPixi.Sketch View in React Native, but an error, 'Cannot read property 'viewManagersNames' of undefined' shows when the App loads. I cannot find anything on this error online. import React from 'react'; import { Text, View, StyleSheet } fr...
common-pile/stackexchange_filtered
Linq-To-Sql with WCF, Models, and POCO ViewModels Disconnected "DataContext" Timestamp/Rowversion I have a Linq-To-Sql based repository class which I have been successfully using. I am adding some functionality to the solution, which will provide WCF based access to the database. I have not exposed the generated Linq c...
common-pile/stackexchange_filtered
Limit a hashed and encoded string to 44 characters: NodeJs Here is a sample input. 426155Grtyhr8888xxxxxxx7777BDTR56654.88555G77D6666FF555W44RT46G666D55TY_3rtyDeeeeeEEE9 And follow the steps given bellow. add a salt to the string. My salt is: 'tttttttttt' Hash this salted string using "SHA-256". encode using base64...
common-pile/stackexchange_filtered
Create Database Instance from Model *Seems like there is some confusion. I created a SQL Server Compact Edition file and can see it from the Server Explorer. I can also right click and add tables manually. What I want to do is run the generated sqlce file to add all of the tables and columns from my model to the SDF...
common-pile/stackexchange_filtered
Is it safe to mix pthread.h and C++11 standard library threading features? Can I spawn a thread with pthread_create and use std::mutex inside of it safely? I would think that if std::mutex is implemented as a pthread_mutex_t then it would be fine but I don't see this documented anywhere For example: #include <pthread.h...
common-pile/stackexchange_filtered
How to query with orWhereMonth in laravel query builder? How can I convert this into laravel query builder? select *, (col1 + col2 + col3) as total where (MONTH('date_') = '01' OR MONTH('date_') = '02') AND YEAR('date_') = '2019' AND paid = 1 I tried this but I think it is not returning correctly. $carDataAm = DB::tab...
common-pile/stackexchange_filtered
How to resize the Legend Item Wndow in Map Composer? I am just wondering if there is any simple way (no messing with codes) to adjust this Legend Item Window in Map Composer. I am using QGIS 2.14 in windows 8. A much larger (taller) window would really help, rather than this 2-cm window that is so hard to scroll when y...
common-pile/stackexchange_filtered
Can I create a Batch File to create subfolders and maybe rename existing subfolders? I have very limited if any knowledge of coding. So I'm not sure if this can be done through creating a batch file. I'm on Windows 10 btw. I have a large database of 'client' folders. Perhaps this would be the parent folder, if not.. Th...
common-pile/stackexchange_filtered
VB.NET Progress Bar issue I want another form to open with a progress bar when a button is clicked. So far the execution freezes for a couple of seconds and then the progress bar form opens up with the progress bar full, and then closes. I want the main form to pause execution so that the file isn't written until the p...
common-pile/stackexchange_filtered
What is the use of declaring a pointer to a structure with typedef? As in the image I've declared a pointer to a struct, one with typedef keyword and another without typedef keyword, and I'm trying to assign the address of the same user-defined array, but I'm getting an error at line number 19. When I comment out line ...
common-pile/stackexchange_filtered
laravel php artisan migrate When I run php artisan migrate In Connection.php line 664: SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client (SQL: select * from information_schema.tables where table_schema = aviandb and table_name = migrations) In ...
common-pile/stackexchange_filtered
Developer Console can SELECT or COUNT() more than 50.000 records. Why not Apex? For years people were looking for ways to query more than 50.000 records in Salesforce without running into Too many query rows: 50001. Event doing a COUNT() query was impossible. By accident, I just did a query on a type with more than 1 m...
common-pile/stackexchange_filtered
Saving a game state to a file I'm now at a point where I need to save the current game state. I'm using libGDX and did add the kryo lib to my project and did some testings. Question: Do I have to override the file every save or can I override only the bites that change from one class. Do I have to create allways a new...
common-pile/stackexchange_filtered
What's hatched on my rose? While watering my rose plant this morning, I noticed it was covered in tiny brown bugs: They're on most of the leaves of the plant. What are they? Is there anything I can do? The plant is currently kept inside - should I move the plant outside to avoid an infestation? I agree they do look ...
common-pile/stackexchange_filtered
Buildozer errors while converting kivy to apk in colab For detailed logs and the code please check my colab notebooks below: most basic attempt: https://colab.research.google.com/drive/1FhDPxcxOy562cl9hlLnTTotxnpKbe7Wk?usp=sharing p4a manually: https://colab.research.google.com/drive/1zB1xK1lCNjpd7Z3JZz2vrh0yul7HZ0wY...
common-pile/stackexchange_filtered
How can I get started developing extensions for python IDLE? How can I develop extensions in IDLE? In IDLE's preferences I've seen this and would love to learn how to make my own extensions: <pythondir>/Lib/idlelib/extend.txt explains how to write an extension module with an extension class. <pythondir>/Lib/idlelib/...
common-pile/stackexchange_filtered
React Native header / bottom tabbar jumping on first app load I have a single application which includes only navigation packages. On IOS, all is fine but on Android, header and/or bottom tabbar seems like jumping (maybe recalculating their positions). This happens only when I use navigation components and only when ap...
common-pile/stackexchange_filtered
Designed table cannot be saved in SQL Server Management Studio I am trying to design a table in Microsoft SQL Server Management Studio. I can modify it but cannot be saved, anyone knows the problem how to fix? Details, Details... I'm guessing you get an error message? if so, what is it? You may as well have said "I ...
common-pile/stackexchange_filtered
Replacing Leading Minus Signs in Environment In this question concerning negative signs and the alignment of entries in matrix environments, Heiko Oberdiek gave a great answer in which he uses a user-defined command called \matminus instead of the usual -. How can I define a matrix environment that will automatically p...
common-pile/stackexchange_filtered
T-invariant subspaces of V. Let T be a linear operator on a vector space V over F.If W1,W2,........,Wk are T invariant subspaces of V, prove that summation i=1 to k Wi and intersection i=1 to k are T invariant subspaces of V. What have you tried? The result is almost immediate, so where did you get stuck? Let $S:= W_...
common-pile/stackexchange_filtered
Tracking a branch with Git submodule where some clients < 1.8.2 Git 1.8.2 added the possibility to track remote branches with submodule (which is awesome). # add submodule to track master branch git submodule add -b master [URL to Git repo]; # update your submodule # --remote will also fetch and ensure that # the late...
common-pile/stackexchange_filtered
mysqli array fetching is not getting data I have to fetch result in single row but I can't run multiple rows. How can I fix this? $stmt = $this->conn->prepare("SELECT * from user where id=?"); $stmt->bind_param("s", $id); if($stmt->execute()){ $result = $stmt->get_result()->fetch_array(MYSQLI_ASSOC); $stmt->close();...
common-pile/stackexchange_filtered
Is it possible to mock a type with an attribute using Rhino.Mocks I have this type: [RequiresAuthentication] public class MobileRunReportHandler : IMobileRunReportHandler { public void Post(MobileRunReport report) { ... } } I am mocking it like so: var handler = MockRepository.GenerateStub<IMobileRunReportHa...
common-pile/stackexchange_filtered
Mutate and if else function to create new column It may be a very easy question, but so far I failed. My dataset looks like this Duration Unit 1 day 3 month 5 weeks What I want to do is to create a new column for the number of days depending on the unit. So 3 months should be 90 days, 5 weeks should be ...
common-pile/stackexchange_filtered
Uniform continuity of continuous functions on compact sets Assume that $f: \mathbb R \rightarrow \mathbb R$ is continuous function on the compact set $A$. Does for any $\varepsilon >0$ exist a $\delta >0$, such that $$ \lvert\, f(x)-f(y)\rvert<\varepsilon \,\,\,\,\,\,\textrm{for every}\,\,\,\, x,y\in A,\,\, \text{wit...
common-pile/stackexchange_filtered
How to specify structured streaming time based window in straight Spark SQL We are using structured streaming to perform aggregations on real time data. I'm creating a configurable Spark job that is given a configuration and uses it to group rows across tumbling windows and performs aggregations. I know how to do thi...
common-pile/stackexchange_filtered
how to access an s3 bucket given user name and keys? a friend gave me information on his s3 bucket, so I can look at his logs: user name access key secret key A lot of the material I have is to access your own bucket, but how do people share a particular s3 bucket? If you are using his username, access key, and secr...
common-pile/stackexchange_filtered
how to disable specific date in angular bootstrap datepicker I am using angular ui bootsrap datepicker with this version (2.5.0): https://angular-ui.github.io/bootstrap/#!#datepicker I want to disable specific dates. for example, every 29th and 30th on each month. how can i do it? have you tried date-disabled att...
common-pile/stackexchange_filtered
TaskExecutor is not working Spring Integration I have setup File poller with task executor ExecutorService executorService = Executors.newFixedThreadPool(10); LOG.info("Setting up the poller for directory {} ", finalDirectory); StandardIntegrationFlow standardIntegrationFlow = IntegrationFlows...
common-pile/stackexchange_filtered
ArcMap calculate area automatically after edit Is there any way to calculate area automatically when I edit a polygon? I mean, is there any function there I can use on area field and update itself when I finish editing? If you keep your data in a file geodatabase the area in the SHAPE_Area field is automatically updat...
common-pile/stackexchange_filtered
HTML5 Canvas - Can I handle a video with Easeljs into a canvas tag? I would like put a video into a canvas tag and handle from there, eg. color, control playback with scroll etc... But I didn't undertand how it's possible (and if) by Easel lib. JAVASCRIPT function init(){//init() is in Body -> onload stage = new cr...
common-pile/stackexchange_filtered
Linear Regression (OLS): Confidence Intervals are not being calculated accurately using Statsmodel summary_Frame() Incorrect Confidence Intervals I want to calculate the confidence interval of my forecasted values from OLS model in python. I found a function in statmodel that helps you create a dataframe of each foreca...
common-pile/stackexchange_filtered
Does bootstrap popover have a DOM loaded event, or equivalent way to find out? I'm creating a bootstrap popover in javascript on an element, and I need to do some work after the popover DOM has been written. I have the following so far. // bootstrap popover element.popover({ ...
common-pile/stackexchange_filtered
Is there a way to make the WKWebview a firstResponder? The Main idea is to reload the WKWebView if there is no touches or presses detected (i.e When webView remains inactive for some timeinterval ) . I tried the way to implement touchesBegan(_:with:) and touchesEnded(_:with:) I have overwritten those functions . But t...
common-pile/stackexchange_filtered
how to visualize entities of code first I have a simple query.I have searched it many times but not getting satisfactory result. I want to generate a diagram for all the entities(Code first) and relationship between them.I have total 19 classes so far.I have seen some articles on Reverse engineer code first.Bu...
common-pile/stackexchange_filtered
How do Busniess Rules fit into or with the Entity Framework generated Entites? Let's say I am using a traditional 3-layer application (UI-BLL-DAL) in a .NET application, where would the busniess rules be applied in reference to the generated Entity class? Would you extend the entity with a partial class and add the rul...
common-pile/stackexchange_filtered
Ansible Playbook: Exchange variable between playbooks I need an idea how can I use output variable of one Playbook in another playbook. they both are called using include statement Detailed Explanation: I have one master playbook and two child playbooks. I want to use output variable of child1 playbook as in child2 pl...
common-pile/stackexchange_filtered
Flask-SocketIO broadcasting to client I read in Flask documentation (https://flask-socketio.readthedocs.io/en/latest/#broadcasting) that emitting a message to a client can be triggered by an event that originated in the server. So I decided to try that out. The idea is that client sends number 15 to server every second...
common-pile/stackexchange_filtered
replace up to nth match With sed I read that you can replace all matches starting with the second You can combine a number with the g (global) flag. For instance, if you want to leave the first word alone, but change the second, third, etc. to be DELETED instead, use /2g: example sed 's/foo/bar/2g' a.txt Howev...
common-pile/stackexchange_filtered
Copying a value (object) from a Dictionary of objects I'm going mad with value vs reference in relation to dictionaries. How come when I do this: Object obj = ObjDictionary[key]; obj.intproperty ++; C# increments the intproperty of the corresponding object in ObjDictionary as well as obj itself. This suggests to me ...
common-pile/stackexchange_filtered
Stripe with Django - make form clean() method return value that isn't a form field I am integrating Stripe payment processing into my Django app, and I can't figure out the 'correct' way to verify the customer's card information and insert a row into my Users table that contains the user's Stripe Customer ID. Ideally, ...
common-pile/stackexchange_filtered
rounding cells up when the number hits X.60 I'm making something in excel which calculates my hours I work a week/month, when a number gets to 30.60 (two shifts which when finishing on the half an hour) it calculates it as 30.60*wage=not the right pay. so far I have =ROUND(SUM(C6:I6),0) which rounds up the number, whic...
common-pile/stackexchange_filtered
translation invariance of expectation value of hit counting variable for Lévy process Let $(X_t)_{t \in [0, \infty)}$ a $\mathbb{R}$- valued Markov process (in my question I'm primary interested in dealing with Lévy process), $s, a, u >0$, $I(a) := \{[k \cdot a, (k+1) \cdot a] \ : \ k \in \mathbb{Z} \} $ the family of...
common-pile/stackexchange_filtered
Android SDK makes my MacBook Pro shut down When I run an android studio on my Mac it opens perfectly. After Gradle built it shows "indexing..." message and my Mac freezes and shuts down. I tried installing IntelliJ and tried running it to create a project with android SDK, but I see the same problem the MacBook shuts d...
common-pile/stackexchange_filtered
Why does my Python function work in the console, but not when called within code? I'm trying to learn Python by working through the problems on the Project Euler website. I know exactly what I want my code to do, and my method works on paper, but I can't make the code work. GitHub link: https://github.com/albyr/euler-p...
common-pile/stackexchange_filtered
Some xml files in layout folder are small, some are normal I created xml files for different screen sizes. I have layout, layout-large, layout-normal and layout-xlarge folders. In layout folder some of the xml files are shown as small screen on visual editor. here is my manifest codes <supports-screens android:a...
common-pile/stackexchange_filtered
"Triple Join"?? Can an INNER-JOIN have have an add'l query after 'WHERE' to exclude rows from a 3rd table? Ok this (truncated query) runs fine. Got some expert advice a month ago to fix it. SELECT * FROM artWork WHERE art_id in ( SELECT art_id FROM artWork AS a INNER JOIN userPrefs AS u ON (( ((u.media_oil='1...
common-pile/stackexchange_filtered
Working with Dash Cytoscape from data frame Let us say, I have the following table. df source target Weight A B 10 A C 8 C F 8 B F 6 F D 6 B E 4 I able to manage to plot it using networkx library. AND I w...
common-pile/stackexchange_filtered
Patroni Postgres Cluster, what does 'TL' mean in the output of 'patronictl list' Executing. patronictl list Produces + Cluster: psql-core03-uat-kong<PHONE_NUMBER>458676291) ------+----+-----------+ | Member | Host | Role | State | TL | Lag in MB | +------------------------+---------------+...
common-pile/stackexchange_filtered
How to fit a webpage to different screen sizes without disturbing its original width? I was flirting with an idea of making a bookmark app which might let users bookmark only a section of a page like in this image. They will click twice on the page to mark two horizontal lines. Area between these lines will be highligh...
common-pile/stackexchange_filtered
How do I find an inverse for this injective multivariate function? I have come up with an injective multivariate function that puts out a unique value for every configuration of four positive natural numbers provided that $\omega\ge\psi\ge\chi\ge\theta\ge1$ $f(\omega,\psi,\chi,\theta)= \frac{\omega^4+2\omega^3-\omega^2...
common-pile/stackexchange_filtered
Jupyter Notebooks stuck at In[*]: I reinstalled Anaconda with base Python 3.7. In my base environment, my Jupyter notebooks will not work. I receive the following error in my prompt as I'm trying to run the notebook: [I 19:07:37.057 NotebookApp] Starting buffering for 39b758d6-fcaa-4f2d-b10f-235ad7b39292:2380a18e272242...
common-pile/stackexchange_filtered
How can I fix error "InvocableMethod methods must be in version 33 or higher"? I tried to get a value from flow. This is my code which cause error "InvocableMethod methods must be in version 33 or higher": @InvocableMethod public static List<List<Opportunity>> getOppIds(List<String>Ids) { return new List<List<Oppor...
common-pile/stackexchange_filtered
How to encourage players to not lessen their own gaming experience with mods and cheats? In many games (often single-player computer games) there's a built-in way to alter gaming experience; either by modding (e.g. Minecraft, most games on Steam Workshop and Nexus Mods) or by some in-game way to cheat (console commands...
common-pile/stackexchange_filtered
What is status_of_proc, and how do I call it? In the init script of nginx in Debian 7 (Wheezy) I read the following exerpt: status) status_of_proc -p /var/run/$NAME.pid "$DAEMON" nginx && exit 0 || exit $? ;; This code runs just fine and sudo service nginx status outputs [ ok ] nginx is running...
common-pile/stackexchange_filtered
Group and Compare multiple dataframe columns with conditions in Python I'm tryng to print out the states with highest population in each region. Code Sample: # all unique regions region_unique = data['Region'].unique() # highest population max_pop = data['population'].max() How can I chain the above lines of code and...
common-pile/stackexchange_filtered
HDFS disk usage How to display Non dfs used % ? If i use hdfs dfsadmin -report command it display like this Name: <IP_ADDRESS>:50010 (aline.node5.cdc) Hostname: aline.node5.cdc Decommission Status: Normal Configured Capacity:<PHONE_NUMBER>0 (43.73 GB) DFS Used: 13463552 (12.84 MB) Non DFS Used:<PHONE_NUMBER>6 (28....
common-pile/stackexchange_filtered
z-index cross-browser incompatiblity This is the CodePen of a very short simple code. only html and css, and Bootstrap It shows a very basic Bootstrap carousel with an added white transparent overlay. The carousel caption should appear on top of the overlay, but it doesn't appear like that in Chrome Browser. Firefox,...
common-pile/stackexchange_filtered
Change div colour based on query param ember I am attempting to send a query param through the {{#link-to}} helper, get the query param in my route and then dynamically change the colour of a div based on the param sent through. I can see I am getting the correct ID but nothing seems to be happening on the page. Here ...
common-pile/stackexchange_filtered