text
stringlengths
70
452k
dataset
stringclasses
2 values
88 level on a particular digit in a numeric array? I was working on a brute-force implementation of this RosettaCode challenge. I wanted to be able to handle numbers bigger than USAGE BINARY-DOUBLE so I wrote a dead simple bignum routine for adding. If I want to limit myself to a certain number of iterations and that n...
common-pile/stackexchange_filtered
create new table - missing parenthesis need to create this but its saying missing left parenthesis? CREATE TABLE active_units2(agency_code varchar2(10) not null, unit varchar2(10) not null, supp_unit_1 varchar2(10) not null, supp_unit_2 varchar2(10) not null, supp_unit_3 varchar2(10) not null, supp_reqmt v...
common-pile/stackexchange_filtered
Kinetic energy from Euler and continuity equations vs work done by buoyancy force I have a feeling there's something elementary to it, but I can't seem to understand why I get these answers. I am interested in a stationary 1D inviscid fluid described by the Euler and anelastic continuity equations: \begin{equation} \rh...
common-pile/stackexchange_filtered
How to set ps as shortcut to open powershell The question says it all. I want to learn and use powershell as my go to terminal in windows and I want powershell to open if I type Win+R followed by ps. Much like how cmd is used to open command prompt. https://superuser.com/questions/193000/running-programs-by-typing-so...
common-pile/stackexchange_filtered
Did AD&D players use Leomund's Tiny Hut to keep out enemies? Brandes Stoddard has a fun article called Leomund's Tiny Problem, where he discusses ways in which Leomund's Tiny Hut is "highly exploitable" in D&D 5e, and offers suggestions on how to fix it. The article provides an interesting history of the way the spell ...
common-pile/stackexchange_filtered
Is it possible to change the playback rate value of a Spotify track playing on my website? The thing is... Spotify doesn't seem to create an audio or video element to play these tracks so I can change the playback rate from the element reference, it creates an <iframe> element instead: <iframe src="https://sdk.scdn.co/...
common-pile/stackexchange_filtered
Calling a method from another class inside JSF Managed Bean In a Java Web Project(JSF+Spring), i want to do this: i have a search box in index.xhtml, i want that when i click search button, a method called from a class, and then result get's back: this is index.xhtml: <h:body> <h:form> <h:inputText value="#...
common-pile/stackexchange_filtered
Confusion about proving there is no finite measure on a countable set $X$ other than the trivial measure which assigns measure $0$ to every set. A measure $\nu$ is finite if $\nu(X) < \infty$. Let $X$ be a countable set and let $\mathcal A$ be the $\sigma$-algebra of all subsets of $X$. Prove there is no finite measure...
common-pile/stackexchange_filtered
Adding Vector Data - GML format with WFS Transport (possible bug?) I'm trying to add features to my OpenLayers map, by querying a publicly available WFS server which serves GML data. // initalize the map var map = new ol.Map({ layers: [ new ol.layer.Tile({ // OpenLayers public map server ...
common-pile/stackexchange_filtered
Google SQL instance stuck after operation "restore from backup" After I proceed to restore database from automated backup file generated on Mar 13, 2019, the SQL instance stuck in this state forever:" Restoring from backup. This may take a few minutes. While this operation is running, you may continue to view informati...
common-pile/stackexchange_filtered
How can I make Onboard, the visual keyboard, open in Ubuntu on startup? I am working with an application using a touch screen. For this, I need Onboard (the on-screen keyboard) to open from Ubuntu's startup time with a fixed width and height. I also need to get a reserved screen position for placing Onboard (which mean...
common-pile/stackexchange_filtered
Google Sheets conditional formatting a row based on finding either of two words in a string Users are able to enter a string into a cell. If the string contains either the word "Letter" and/or the word "Note", the entire row needs to turn red. These words are not case sensitive. I can create two conditional formats for...
common-pile/stackexchange_filtered
Opposition members in cabinet After the recent collapse of government and appointment of a new Premier in British Columbia, it was suggested by MLA Andrew Weaver that — as he was not a member of the governing party — he could not be appointed as a member of the new Cabinet. Our Constitution Act is pretty vague on this,...
common-pile/stackexchange_filtered
Extracting Specific record from webservice XML How would i go about extracting specific information from the XML returned from a webservice. The webservice is called from an embedded webbrowser in a C# windows form. I was thinking that mabey i could save the displayed data as XML file and read from that though it would...
common-pile/stackexchange_filtered
How can Mybatis generates duplicate Id?Or I should not blame it? I got duplicate ID by the following CREATE STATEMENT and Mapper file. The Datebase I using is DB2. Could anyone help? Thanks a lot! [CREATE TABLE] CREATE TABLE SUP_BCP_TRANS_FLOW (ID INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY, SERIAL_NO VARCHAR(40)...
common-pile/stackexchange_filtered
Can you reset the nether? Im new to minecraft . I finally got into the nether and was disapointed. I could not find a nether fortress . Can i reset the nether? If i can please let me know. Im on Pc You can't reset the nether, but there are some tricks for finding Nether fortresses. From the Minecraft Wiki article for ...
common-pile/stackexchange_filtered
Can not read property "document" of undefined - ApexCharts I'm attempting to import apexcharts into my nuxt project. I've used both the vanilla lib and vue wrapper. Simply importing the library causes the following error Like I said, i've attempted importing both import ApexCharts from "apexcharts" and import VueApex...
common-pile/stackexchange_filtered
Auto reloading Flask app when source code changes I know for a fact that Flask, in debug mode, will detect changes to .py source code files and will reload them when new requests come in. I used to see this in my app all the time. Change a little text in an @app.route decoration section in my views.py file, and I coul...
common-pile/stackexchange_filtered
Force landscape in specific view controller using swift I have app in portrait oriantation for all the view's. I need to make a landscape for specific views. I found this. Put this in the viewDidLoad(): let value = UIInterfaceOrientation.LandscapeLeft.rawValue UIDevice.currentDevice().setValue(value, forKey: "orientat...
common-pile/stackexchange_filtered
Why does this Ruby method need to be a class level method? Here's a classic fizzbuzz in Ruby: class PrimeChecker def print_em 1.upto 100 do |fizzbuzz| if (fizzbuzz % 2) == 0 && (fizzbuzz % 5) == 0 puts "fizzbuzz: " + fizzbuzz.to_s elsif (fizzbuzz % 5) == 0 puts "fizz: "+fizzbuzz.to_s ...
common-pile/stackexchange_filtered
jsonwebtoken Typescript Compiling issue? I'm trying to compile a typescript file and it keeps throwing this error from the compiler: error TS2339: Property 'payload' does not exist on type 'string | object'. Property 'payload' does not exist on type 'string'. Code in question: decode(token: string): any { const dec...
common-pile/stackexchange_filtered
Using cmake, how to link an object file built by an external_project statement into another library? In our project, we want to use a third-party library (A) which is built using autotools and which generates an object file (B) which we need @ link time of one of our libraries (C). external_project( A ... ) set...
common-pile/stackexchange_filtered
Sum involving harmonic series and sine of integers Consider the sum $$ S_n= \sum_0^n \frac{\sin^2(k)}{2k+1}.$$Is it convergent ? Can it be evaluated in the form of a closed expression for any $n \in \mathbb N$ or for large $n.$ Can we somehow use Fourier series? Thank you for any help in advance Every time $k$ goes ...
common-pile/stackexchange_filtered
Could Wolverine survive a nuclear bomb? According to the Marvel wiki on adamantium , A sufficient amount is capable of surviving multiple nuclear explosions with no damage. And an answer on another question here says that Wolverine can regenerate with only his skeleton left (the other, IIUC, says he doesn't even nee...
common-pile/stackexchange_filtered
Next JS code inside getInitialProps not executes after page reload I'm integrating NextJS into my React app. I face a problem, on page reload or opening direct link(ex. somehostname.com/clients) my getInitialProps not executes, but if I open this page using <Link> from next/link it works well. I don't really understand...
common-pile/stackexchange_filtered
How to make a realistic boucle material? I studied geometry nodes for a few days. Actually it was very easy, here is the result: https://drive.google.com/file/d/1X0YZoqVyWqt7sBbAFg85wSHSf1k4qmHg/view?usp=sharing I am working on a project with bouclé material, but the bouclé material always looks very bad. I have tried...
common-pile/stackexchange_filtered
Haman's sons in three p'sukim Me (quoting Ester 9:7–10): 7 And Parshandasa and Dalfon and Aspasa 8 and Porasa and Adalya and Aridasa 9 and Parmashta and Arisay and Ariday and Vayzasa, 10 the tensome of the sons of Haman ben Ham'dasa, terrorizer of the Jews, they killed.... My kid: Why are the ten names split up over ...
common-pile/stackexchange_filtered
Create unique array based on property I want to create an array that does not have repeated object(all objects are unique) based on object property and if it is unique I want to push it to this array. Before sending it to my function I use: vm.initResponse = angular.fromJson(response); That push $$hashKey to each obje...
common-pile/stackexchange_filtered
How to update mkdir in order to install express-generator without warnings? I was going to install express-generator on windows computer. I used this npm install -g express-generator command in cmd and it gave me this npm WARN deprecated<EMAIL_ADDRESS>Legacy versions of mkdirp are no longer supported. Please update to ...
common-pile/stackexchange_filtered
About the pattern matching algorithm in OCaml I am writing a compiler for a functional language I designed with OCaml. I want my little language to have the feature of pattern matching, however, I got stuck in coming up with an algorithm to implement it. It seems really complicated as I dig into the problem. I can't fi...
common-pile/stackexchange_filtered
ESP8266 Stops Working After A While (Unknown Problem) have an esp8266. i'm trying to create a DDNS updater. it has to wait 5 min then do a GET request to a URL. Here's my code: /* Code For DNS Updater.*/ #include <ESP8266WiFi.h> #include <ESP8266HTTPClient.h> #define LOOP_TIME 300000 const char* ssid = "SomeSSID"; c...
common-pile/stackexchange_filtered
Any major difference between Eclipse and Eclipse-EE? Any major difference between those two? In terms of code editing and compilation - no. The Eclipse EE has features to support "enterprise stuff". If you do About Eclipse -> Installation Details, you can see the features that get installed with each one
common-pile/stackexchange_filtered
How to query an array list in a Firebase document? I'm trying to query my database for an android application, if a username is in the 'fave' array field of my database and if so then change the background of an image. My database is set up like this... I don't know if i'm doing it right but currently i think i may be...
common-pile/stackexchange_filtered
subscribe function in angular 2 I want to see the result returned from the service in the same subscribe method or in the ngOninit method(commented one) but neither of the place it showing the result even it is fetching the result from the service.. ngOnInit() { this.cityAreaService.getCities().subscribe(data => { ...
common-pile/stackexchange_filtered
How to create 2 incompatible number-like types in TypeScript? I've been trying to figure out how to create 2 mutually-incompatible number-like/integer types in TS. For example, in the code below, height and weight are both number-like, but the concept of adding them together or treating them equivalently is nonsensical...
common-pile/stackexchange_filtered
Combination of line profiles When combining two line shapes (for example a Gaussian and a Lorentzian), the effect of Both of them combined is the convolution of both (with a Gaussian and a Lorentizan,this is the Voigt function). I am wondering what is the reason that a convolution arises. I saw the explanation here: ht...
common-pile/stackexchange_filtered
reading in many tables from SQLlite databases and combining in R I'm working with a program that outputs a database of results. I have hundreds of these databases that are all identical in structure and I'd like to combine them into ONE big database. I'm mostly interested in 1 table from each database. I don't work wit...
common-pile/stackexchange_filtered
How to create a custom discount “Gift card” in Magento 1.9 at cart page The functionality will be = Enter Gift Card number(16 digit) Enter Gift Card Pin(6 digit) Enter Amount(amount entered by user) I have already created the above mentioned input fields in the cart page.but dont know how to proceed further. website:...
common-pile/stackexchange_filtered
Assigning too many parameters for procedure when having just only one table value parameter I'm using asp.net(C#), .NET 4, SQL Server 2012, IIS7. I want to import the excel data to sql server by using table valued parameters. but I'm experiencing a problem. Here is the partial code: C# //extract excel data, only 10 fi...
common-pile/stackexchange_filtered
Symmetrical monoidal $2$-category of cohomological correspondences My question is whether a symmetric monoidal $2$-category of ``cohomological correspondences'' has been been rigorously constructed anywhere in the literature. Let me be more precise about what I mean. Let us fix a base field $k$ and a prime $\ell$ inver...
common-pile/stackexchange_filtered
Where exactly the data-cy or data-test-id attribute to the element to test can be added? I am a beginner for the Cypress automation testing. I have gone through the good practice document for Cypress E2E where it suggests to use data-cy or data-test-id for element selection. This might be a simple and dumb question but...
common-pile/stackexchange_filtered
Filter and display data Here was my last question, and here is the solution i've adopted. But i have another issue. This is how i want to display my categories but i have also sub-categories inside a category. <ul> {{#each group in groups}} <li class="col-md-2"> <ul> {{#each category in grou...
common-pile/stackexchange_filtered
Are there additional benefits to fielding max-rank soldiers? One of my soldiers is rapidly approaching Colonel, the highest rank. Once he gets there, is there any incentive to keep bringing him for missions, apart from the obvious advantage of having a strong soldier on the field, i.e. will the additional kills advance...
common-pile/stackexchange_filtered
VS2010 Publish website not copying some files My web application has two build configurations, Dev and Prod. There is a custom build step that will copy some extra config files to the bin folder, and the files are different depending on the build configuration. This all works well when I do a build, but when I Publish ...
common-pile/stackexchange_filtered
Use same instance of socket across React application The goal is to initiate a socket connection in App.js on app start and then make this exact socket instance available to other components that are loaded with Router. Online research suggests passing socket to a nested component as follows: const socket = io(); ... r...
common-pile/stackexchange_filtered
Tensorflow .batch does not separate tensors correctly I have an array of shape (1, 6354944) array([[ 9.15527344e-05, -6.10351562e-05, 6.10351562e-05, ..., 1.01928711e-02, 7.92236328e-02, -2.69470215e-02]]) And converted them to tensor slices stream = tf.data.Dataset.from_tensor_slices(reshaped_data) But when I...
common-pile/stackexchange_filtered
Number of edition in git repository Please, how can i compute the total number of line edited in git repository ? i'm trying this line commande: git log --oneline --shortstat but it returns the number of edition per files. How can i obatain the total number ? the addition of all edition ? How can i obtain the total l...
common-pile/stackexchange_filtered
firebase serve and debugging functions? I ran firebase serve --only-functions Then ran functions inspect addMessage So I could debug the addMessage function. Debugging however did not work. Running firebase deploy addMessage --trigger-http firebase inspect addMessage Did work and allow me to debug but it doe...
common-pile/stackexchange_filtered
How to prevent one specific app from reopening, or delay it I'm on Catalina 10.15.7, this reopening feature is awesome and really useful but some of my apps when opened by it since it's too early when this happens, they won't function property I have to close them and open them again, is there any ways that I can delay...
common-pile/stackexchange_filtered
ggplot: how to plot a stack bar plot with dodge position I have a dataset like: region country urban_rural treatment potential ---------------------------------------------------- Africa Kenya 1 chlorine compatible Europe England 2 non_clorine not compatible Africa Kenya 1 ...
common-pile/stackexchange_filtered
Symfony 1.4: Programmatically set environment for CLI I have a project built on Symfony 1.4 and it has multiple environments - each developer has their own copy installed on their local machine and therefore has their own environment. I am able to dynamically set the environment in index.php, but how can I do this for ...
common-pile/stackexchange_filtered
Passing an Argument in a periodic runnable task execution using handler in Android I have created a periodic execution of runnable task by using handler in android, but I want to pass an argument in that periodic task execution, I have tried 2 approaches to pass an argument, 1 - By declaring a class in the method void ...
common-pile/stackexchange_filtered
JMeter: Unzip request while recording Is there a way to decompress HTTP requests while recording them with JMeter (v5.0)? The request body contains zipped (gzip) JSON data. The current solution is very cumbersome. We are extracting the unzipped request body from the browser (Internet Explorer / private mode). We are us...
common-pile/stackexchange_filtered
Second Order differential equation problem I this trying to solve $y'' = yy'$ with $y(0) = 1, y'(0) = 1.$ I know $y' = 1/x'$, $y'' = -x''/(x')^3$ . Then I tried substitute $u = x'$. So $du = x''$. $y'' = -du/u^3$. Then $\int y'' = \frac{1}{2u^2}$. I am a bit confused at this point. Could someone point out how to procee...
common-pile/stackexchange_filtered
Django with two __in queries slower than retrieving separate querysets I have a reasonably complex database consisting of a model, Bar which may have several Spams, implemented by a ForeignKey relationship (each Spam knows which Bar it belongs to). A further model, Foo has exactly two Bars. Here's the relevant bit of m...
common-pile/stackexchange_filtered
How can I repeatedly read user input using Scanner java I am trying to create a simple menu for my program that reads user input. Here's the code: public void menu() { String command; System.out.println("To operate with words write: a"); System.out.println("To operate with products write: b"); ...
common-pile/stackexchange_filtered
How to dump memory of virtual machine running in linux? I have a windows virtual machine installed using qemu. I want to know how can I dump the entire ram memory of guest system from host system like bin2dmp do in windows. I have read here that it is possible but not able find out how to do that. So any help with that...
common-pile/stackexchange_filtered
Parsing UTC time to CET/CEST The data I fetch from DB is in UTC time. I need to convert it to CET/CEST. I am using below code. I am not sure if both CET and CEST will be taken care of. Please let me know if it takes care of CET and CEST ? DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:s...
common-pile/stackexchange_filtered
Is there an MSSQL service or app that can act as a router of traffic? I am aiming to setup a router/jump/forwarder/gatekeeper where the service sits on internal network and is whitelisted to connect to AWS RDS. So instead of internal apps connecting directly to AWS RDS, they can connect via this jump server. This woul...
common-pile/stackexchange_filtered
How to read a json file in databricks from any workspace folder I have a simple json file(test.json) located in workspace folder(TestWS) I created as shown below: I want to read the json file from a notebook present in Repo Workspace. I am using simple command in python import json with open(f"/TestWS/test.json","r")...
common-pile/stackexchange_filtered
make raspberry appear as SSID I have a nodejs server in my raspberry and I want people to be able to connecto to it just connecting to the raspi. The ideal scenario is where in my phone I see the raspi SSID, I connect to it. Then I open chrome enter the ip:port of the raspi itself and it works. Nothing fancier. What I...
common-pile/stackexchange_filtered
Keeping User Logged In With JWT Please I would like to know how do I keep a user logged in using JWT through a REST API. Because the token given by JWT expires within a particular time frame and within this time frame it could be possible that the user is still on the app. I am thinking of allowing the client side appl...
common-pile/stackexchange_filtered
Phonegap basics - designing ui for iphone and android I'm developing an application both for Iphone and Andriod using Phonegap. I came up with all kinds of plugins JQuery, JQTouch and more, What is the recommended way of doing this? Meaning-designing a generic UI (tabbars, tables, navigation bars etc') for both Iphone...
common-pile/stackexchange_filtered
Unable to invoke method setAutomaticRecoveryEnabled for ConnectionFactory in Rabbitmq I am trying to setAutomaticRecoveryEnabled for my connection factory. However, I get a compile error unable to recognize the method setAutomaticRecoveryEnabled for factory object. import com.rabbitmq.client.ConnectionFactory; Connec...
common-pile/stackexchange_filtered
How can I extract font information while isolating the scope of the target font? (I had to change the title of this question, sorry early viewers.) I knew all along that I had serious scope issues, but the code was "good enough" until now. My code was working fine for me because I was using fonts that had enough glyphs...
common-pile/stackexchange_filtered
Date of birth fields We're trying to have the date-of-birth field for our contacts displayed in dd-mm-yyyy format when using mailings but despite me altering every single relevant setting in Civi...our test mailings still display the date of birth in yyyy-mm-dd format? Why might this be? It would help if you could sta...
common-pile/stackexchange_filtered
Map xml file with extracted information I am trying to map one xml file to another, based on a configuration file (that too can be an xml file). Input <ia> <ib>...</ib> <ic>...</ic> </ia> Output <oa> <ob>...</ob> <oc>...</oc> </oa> Config <config> <conf> <input>ia</input> <output>o...
common-pile/stackexchange_filtered
Sorting ng-repeat elements dynamically according to date I want to order by elements according to date. <ion-item ng-repeat="item in PortfolioIdeaList | orderBy:'CreatedDate'" style="background-color:rgb(25, 26, 0);" ng-click="ShowIdeaDetails(item.Id)"> <div class="row"> <div class="col col-80...
common-pile/stackexchange_filtered
documents4j not saving file after conversion I have converted a .docx file to .pdf using documents4j however the pdf is not showing even the logs shows successful conversion. 26-Jun-2020 21:45:38.163 INFO [http-nio-80-exec-423] com.documents4j.conversion.msoffice.MicrosoftWordBridge.startUp From-Microsoft-Word-Converte...
common-pile/stackexchange_filtered
Replacement of old modules with updated ones in PERSONAL.XLSB I have written a vba code in a workbook (with many modules) and I need to send the archive (such as Setup.XLSB) including the new code to other people at my work. After they open the Setup.XLSB and click an installer button in order to Call the install_new_...
common-pile/stackexchange_filtered
How to deal with big files in Git? We have a Maven project that is a testing suite, composed of some relatively big xml files (+30mb and one file of 1gb), which are actually SoapUI projects. The usual development cycle is that the testers are going to modify these files and add/or add new ones. How do we should version...
common-pile/stackexchange_filtered
What does 'The Dark Side of the Moon' mean? One of the most famous albums of Pink Floyd is 'The Dark Side of the Moon'. Besides the title of the album, this phrase also appears in the lyrics of one of the last songs of the album, 'Brain Damage' And if the cloud bursts, thunder in your ear You shout and no one seems to...
common-pile/stackexchange_filtered
Some source code not showing at all when not formatted correctly I came across a question where some of the HTML was missing in the question, and the OP had posted it in a comment underneath, so I took it upon myself to edit this code into the question. However, when I went to edit the question, that code was already t...
common-pile/stackexchange_filtered
Asp NetCore 2 Required validation - ModelState Valid is true when in error I'm trying to get some required field validation working in AspNetCore 2, and what I expect to happen, isn't happening. Model [Required(ErrorMessage = "The game name cannot be blank")] [StringLength(100,ErrorMessage = "The game name must be betw...
common-pile/stackexchange_filtered
How to call the result from another method in the same Activity in Android I am working on a calculator, and I faced some problems with it. When I try to run the program, it is okay to show the first screen to let me enter the number (in the situation that I ignored the last 2 code of setText for result). After I put t...
common-pile/stackexchange_filtered
How to use foreach loops in one foreach loop How to use two foreach loops in one foreach loop. foreach ($user_package as $package_id) { $package_detail = Package::all()->where('id','=',$package_id->package_id); } foreach ($package_detail as $package) { $package_amount = $package->price; $package_tagline = ...
common-pile/stackexchange_filtered
Subversion Merge between multiple working copies? We've completely lost our repository and we have 8 developers with uncomitted changes. Restoring from backup is assumed to be not possible. If one person could have access to all the working copies (either file copy or remote share) is it possible to merge changes in o...
common-pile/stackexchange_filtered
Object_list always empty the app is working this way. That i have a simple news adding model as below: class News(models.Model): title = models.CharField(max_length=100) publication_date = models.DateField(auto_now_add=True) content = models.TextField() the view def homepage(request): posts= News.obj...
common-pile/stackexchange_filtered
Name for a tax that captures all goods and services produced? Is there a name for a consumption tax that basically captures the GDP (all goods and services produced in the nation)? Value-Added Taxes (VAT) are supposed to capture most goods and services produced in the private sector, but there can be exceptions within...
common-pile/stackexchange_filtered
Limit identical input in database to a certain count I know that we can limit an identical input in database to only one by the keyword UNIQUE, but how about limiting it to more than one? For example, 3,4? Is there a way to achieve this? The only way is to do it on your way by checking that amount before doing a new i...
common-pile/stackexchange_filtered
What is the difference between a function expression vs declaration in JavaScript? What is the difference between the following lines of code? //Function declaration function foo() { return 5; } //Anonymous function expression var foo = function() { return 5; } //Named function expression var foo = function foo() { r...
common-pile/stackexchange_filtered
hide/disable <div> and <a> onlick of and image but restore them when it backs to original status Please see the live example: http://jsfiddle.net/greedylan/ftmg4kbs/ Is there a way to turn off the div.mask and <p>resistor</p> after clicking the thumbnail? I don't need the mask and title bar when the it shows the bigger...
common-pile/stackexchange_filtered
Ubuntu Font Family and Mac OS X confusing font name and font I really like the Ubuntu Font Family, and frequently use it in my documents. At school, I want to be able to use the font family so my documents that make at home using Ubuntu show up correctly at school. However, we do not have permission to use Font View (w...
common-pile/stackexchange_filtered
The afternoon light streamed through the conservatory windows as Daksh adjusted his glasses, studying the geometric patterns cast by the latticed roof structure above. This whole business of how we perceive depth fascinates me, Collins. When I look up at those intersecting beams, they seem to converge toward a vanishi...
sci-datasets/scilogues
Redirect if query string match on nginx How can I do a redirect if there's a query string on nginx? Additionally, the query string must not come with a trailing slash before, for example: www.url.com?id=xxx Any help would be very appreciated. rewrite does what you want
common-pile/stackexchange_filtered
Slug URL Generator Just a slug generator. I'm wondering if this can be simplified any further. Many thanks. <?php function slug($string) { // Replace all non letters, numbers, spaces or hypens $string = preg_replace('/[^\-\sa-zA-Z0-9]+/', '', mb_strtolower($string)); // Replace spaces and duplicate hyphen...
common-pile/stackexchange_filtered
help with a simple equation with powers and logs I've been trying to prove $n^\frac{1}{n} > (n+1)^\frac{1}{n+1}$ and I got to an equation in the midst of it, don't know whether it's correct or not $x^\frac{1}{x} + x^{1+\frac{1}{x}} = 1/3$ for a lower boundary point for the correctness of the eq. above. I'm doing it for...
common-pile/stackexchange_filtered
How to maintain session after successful user login in node.js in API call I have tried this but this is not working. Please help me to understand what I'm doing wrong. app.js var session = require('express-session'); app.use(session({ secret: 'intelligenseintelligensein', // session secret resave: true, saveUnin...
common-pile/stackexchange_filtered
What are the two closest countries that do not share a border? Are there any closer than Namibia/Zimbabwe (which are separated by "less than 200 metres of riverbed", belonging to Botswana, according to Wikipedia)? I'm interested specifically in the case where the countries don't share a land border, but are separated b...
common-pile/stackexchange_filtered
Pandas Dataframe keep rows where date is between two dates (seperate columns) I have a dataframe that looks similar to this : Price From To 300€ 2020-01-01 2020-01-07 250€ 2020-01-04 2020-01-08 150€ 2020-02-01 2020-02-04 350€ 2020-02-04 2020-02-08 And th...
common-pile/stackexchange_filtered
PHPUnit: How do I create a function to be called once for all the tests in a class? I have a PHPUnit test case class (consisting of some test functions). I would like to write a oneTimeSetUp() function to be called once for all my tests in the class (unlike the standard setUp() function which is called once for each te...
common-pile/stackexchange_filtered
How much time to wait for an action on my question after offering a bounty I've offered my first bounty on one of my questions, and I'm not sure how long I should wait to notice a movement or at least increased number of views. It's been about an hour and only one new user read my question after that! Is that normal, o...
common-pile/stackexchange_filtered
How to use htaccess to redirect all but one subdirectory It's been a while since I've messed with .htaccess and I can't seem to get this quite right. I have a site, say example.com, where I want example.com/* to redirect to example.com/collector.html except for URLs under the subdirectory example.com/special, which I w...
common-pile/stackexchange_filtered
Windows ML's OS requirement What is the minimum Windows OS Version required for Windows ML. I understand it needs Windows 10 SDK build 17723 and above, however will WinML apps built using this SDK work on Windows 10 RS4? Figured it. You need Windows 10 RS5 and above for running Windows ML if you don't want to install ...
common-pile/stackexchange_filtered
Implementing Runnable vs. extending Thread Why is implementing Runnable a better option than extending from Thread class? This way you decouple the computation (the what) from the execution (the when and/or the how). With Runnable or Callable, you can for instance submit many work/computation to an Executor which wil...
common-pile/stackexchange_filtered
Find n minimum. There are $100$ countries participating in an Olympiad. Suppose $n$ is a positive integer such that each of the $100$ countries is willing to communicate in exactly $n$ languages. If each set of $20$ countries can communicate in at least one common language, and no language is common to all $100$ countr...
common-pile/stackexchange_filtered
Creating an array of custom objects from nested data structure I'm working on a project that requires me to massage some API data (shown in the snippet below as 'apiData'). The data structure I ultimately need for the charting library I'm using (Recharts) is this: [ { date: '2018-04-24', TSLA: 283.37, AAPL: 250.01 },...
common-pile/stackexchange_filtered
JAVA_HOME errors when run without sudo Hello I am on Linux Mint 16 KDE 64. I have OpenJDK 7 installed and Oracle JDK 7 and if I run Intellij as a normal user I get: 'tools.jar' seems to be not in IDEA classpath. Please ensure JAVA_HOME points to JDK rather than JRE Also if I run gradle build on any of our projects...
common-pile/stackexchange_filtered
I can not install ClamAV to my Ubuntu 18.04 machine I'm trying install ClamAV antivirus to my Ubuntu desktop machine, but I got some errors: $ sudo apt-get install clamav clamav-deamon -y Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable...
common-pile/stackexchange_filtered
Run nginx in static IP of server Sorry for my bad English, I can't explain it well. I have a VPS with Windows Server 2012 with Nginx and run a Node server at port 4000 and React client at port 3000. In remote desktop website run at localhost address but when I use static IP of server in other device, I get any response...
common-pile/stackexchange_filtered