text
stringlengths
70
452k
dataset
stringclasses
2 values
Google Primary Calendar for user contains no ConferenceProperties or no AllowedConferenceSolutionTypes I'm using Google Calendar API for export events to user's primary calendar. I get the following error during creation for hangoutsMeet type for only one of 3K+ users and user's primary calendar either contains no Conf...
common-pile/stackexchange_filtered
Best practice for showing a lot of lines on grid I have a program that reads a file and creates about 1000 points (X,Y coordinate) from the files content. I want to display these points as small crosses on a grid (basically a kind of chart). this is how it should look like (the green and blue crosses) Currently I am ...
common-pile/stackexchange_filtered
Getting the ID of the element that fired an event Is there any way to get the ID of the element that fires an event? I'm thinking something like: $(document).ready(function() { $("a").click(function() { var test = caller.id; alert(test.val()); }); }); <script type="text/javascript" src="starterkit/jq...
common-pile/stackexchange_filtered
flutter: Another exception was thrown: RenderPointerListener object was given an infinite size during layout I have an issue with my Code... I dont know how I can fix that problem. I want to do a reoderableList but everytime I am drag and drop one task, the hole tasks in the ios simulation are changing into one task an...
common-pile/stackexchange_filtered
How do I fix 'A source stream node in the topology does not have a source' error in Microsoft Media Foundation? I'm attempting to setup a topology object in my C# wrapper for MMF to start capturing from a capture device as a source. I have an existing and activated IMFMediaSource object, so I create the topology node, ...
common-pile/stackexchange_filtered
Difference between "SuperInterface of an Interface" vs "Direct SuperInterface of an Interface" in Java? How can an Interface override a method of Object class? Why 'Collection' Interface Overrides equals(Object o) method and hashCode() method of Object class? https://docs.oracle.com/en/java/javase/11/docs/api/java.base...
common-pile/stackexchange_filtered
Why are locks needed in an instantiated class? Doesn't every instance have its own data etc? In C#, a class level variable would not be thread-safe (any exceptions to this? Let me know). So I would have to wrap the usage of this variable (like in a method in the same class), in a lock. However, the very idea of using n...
common-pile/stackexchange_filtered
How to create Transparent panel in c#.Net I have a Panel on windows Form with few controls inside panel, Can i make panel completely transparent. (It should give the feel that controls are placed directly on Form) Can you clarify by what you mean by transparent? Do you mean Aero level of Transparency? I don't know wh...
common-pile/stackexchange_filtered
php bin/magento setup:di:compile Errors when i run php bin/magento setup:di:compile on cmd this error will occur: Compilation was started. Plugin list generation... 8/9 [========================>---] 88% 10 mins 392.0 MiB In ErrorHandler.php line 61: Warning: file_put_contents(C:/xampp/htdocs/magento/generated/metadat...
common-pile/stackexchange_filtered
Is there a R package that does spatial regularization? By spatial regularization I mean the method described in Aitkinson and Curran (1995) "Defining an Optimal Size of Support for Remote Sensing Investigations", or Section 4.8 of Webster and Oliver (2007) Geostatistics for Environmental Scientists which is a way of ...
common-pile/stackexchange_filtered
german.ldf not found I use Texmaker and I used the assistant to start a new document. There I can choose some options, including a babel-package. I chose german, but when I compile the document, the compiler says "Unknown option 'german'. Either you misspelled it (babel) or the language definition file german.ldf was...
common-pile/stackexchange_filtered
Java input stream buffers object? I have a client-server application where the server sends all clients a list of all clients every time a new client socket joins. The problem is, that when a new client joins it gets the right list but the old clients get the old list they got when joining themselves. Sort of like they...
common-pile/stackexchange_filtered
Inconsistent results between nodetool status and netstats I'm running a production cluster of cassandra 3.11.4 and, after replacing a dead node I see inconsistent results running nodetool status on the nodes of the cluster. From the node I just rerolled if I see the node is in Mode: JOINING when running nodetool netsta...
common-pile/stackexchange_filtered
Transition not being captured by subtree & attribute breakpoints Chrome developer tools I have a webpage on which if a tab key is pressed when in the last textbox a side pane from the right slides(like a side menu). In chrome development tools I can see it is an aside tag with classes control-sidebar control-sidebar-da...
common-pile/stackexchange_filtered
Migrating from NGINX to AngularCLI I have been using Nginx for my angular2 application. now I decided to migrate to the angular-CLI server. I am facing issues with setting cookies In Nginx, I use proxy_cookie_path to define cookie path. how to do this in angular CLI server { listen 80; server_name "a2di...
common-pile/stackexchange_filtered
Help with changing iframe ajax Hello there ok i may be wrong about this and if i am then i am sorry. But is it possible to change the screen with ajax by looking at whats after the "#" in the link. because when im on facebook i know that it is all an iframe yet when the screen changes so does the text after the "#". Is...
common-pile/stackexchange_filtered
What is wrong with this code to calculate angles between vectors in R My df is like this: > dput(df) structure(list(ID = c(1L, 1L, 1L, 2L, 2L, 2L, 3L, 3L, 3L), x1 = c(173L, 185L, 190L, 231L, 267L, 185L, 190L, 233L, 260L), y1 = c(299L, 321L, 360L, 361L, 377L, 321L, 360L, 363L, 309L), x2 = c(260L, 230L, 230L, 172L, 2...
common-pile/stackexchange_filtered
Load image for UIImageView from the net with security I'm trying to load an image into an UIImageView from the internet. This is no problem, but what I want is the image be secured with user credentials. So if you go to the direct link of the image, you get an login popup (secured directory). How can I pass those user ...
common-pile/stackexchange_filtered
Use variable from inside IF statement I'm pulling through some data from a SOAP feed and then displaying it. I want to choose some text to always show if in the feed. But I always want 6 to be shown (the rest if any will be shown using a more button). To find out if the text I want is in the array I'm using this: <?ph...
common-pile/stackexchange_filtered
Notify if Puppet wants to change something I am currently working on implementing Puppet in our environment, and I have a request I don’t know if Puppet itself can fulfill: If I have a configuration file at /etc/myconfig.conf, and I want it to be written only if it does not already exist, then I could achieve that via ...
common-pile/stackexchange_filtered
Caused by: java.lang.ClassCastException: com.google.appengine.api.datastore.Text cannot be cast to java.lang.String I am trying to download a Excel on my local computer from my web application deployed on Google App Engine. The Entity from I get the data, have not Text fields. All the fields are String. However, when ...
common-pile/stackexchange_filtered
"unanswered" questions -> "my tags" - some questions missing and/or unclear sort order Hi, So I'm trying to use "unanswered" -> "my tags" list on SO: https://stackoverflow.com/unanswered if you click on "unanswered", this gets "my tags" selected by default. https://stackoverflow.com/unanswered/tagged?tab=mytags if you...
common-pile/stackexchange_filtered
Redirect wordpress search query if its a tag i have modified this function to make it redirect search query if it a tag example if searchQuery='football' then redirect to /tag/football/ function redir_search($a) { if (is_search()) { global $wp_query; $s_str = $wp_query->query_vars['s']; if(!empty($s_str))...
common-pile/stackexchange_filtered
VB to c++ or c#? I am trying to translate this code but I don't understand how to use the GET / PUT part of the code in another language like c++ or c#. This is the code : Private Sub cmd_Click() Dim i As Integer, a As Integer a = 10 For i = 1 To a Dim file As String Open "txt" For Binary As #1 file = Space...
common-pile/stackexchange_filtered
problems in copying from a file to another and removing adjacent duplicate characters I have this exrcise. I need to read from a file a text and copy this text to a second file but I need to remove adjacent duplicate characters, for example "aabbcc" --> "abc". that's the basic idea. this is my solution, #define _CRT_S...
common-pile/stackexchange_filtered
Flutter : Sharing Multiple Images Outside the App with Descriptions I am working on adding functionality to share multiple user-selected images and their descriptions outside the app, such as on WhatsApp or Instagram. Currently, I am using the share_plus package. When sharing a single image with a description, it displ...
common-pile/stackexchange_filtered
Copy a xml node to another node I am a newbie to XML PHP and XPATH. I have an XML file as follows <?xml version="1.0" encoding="UTF-8"?> <sections> <section name="Windows 7" id="7"> <section name="Registry" id="29"> <section name="hkcu" id="30"> <section name="software" id="31"> </section> ...
common-pile/stackexchange_filtered
Construct artificial slightly overlapping data for PCA plot I am trying to construct artificial data which show two distinct groups in a PCA plot. However, the two groups should still slightly overlap. The following approaches came the closest but I am still not happy with it. Even changing the parameters in rnorm and ...
common-pile/stackexchange_filtered
Check if value if present in multidimensional array Im working on a way to check if a array contains a value, if not dont run inner code. As the example below there are a couple of languages, but in this case the 'en' language is not present, so if the current translation is 'en' and the 'en' language is not present in...
common-pile/stackexchange_filtered
Normal distribution of the mean of a uniform distribution I have $\bar{X}$ which is the mean of the numbers from the uniform distribution of $[0, 1]$ with $n = 100$. I know that $\mu = \frac{1}{2}$ and $\sigma^2 = \frac{1}{1200}$, thus, $\sigma \approx 0.028 $, I need to find the probability of $\bar{X}$ having a value...
common-pile/stackexchange_filtered
How to make a box2d Body object collidable with the other Body How to make a com.badlogic.gdx.physics.box2d.Body object collidable with the other Body in Scene2d(libgdx) while working with the Box2d extension, when both the body types are Dynamic.? They should be collidable by default, you need to do something, if you...
common-pile/stackexchange_filtered
AWK match on term. Columns don't line up Been trying to figure this one out for a while now. Went through this site and googled like crazy. It would be greatly appreciated if someone could help. I have some log files with no headers and columns are all over the place. Meaning that an item like src=<IP_ADDRESS> could ...
common-pile/stackexchange_filtered
Is WMC0011 issued because the the C++/WinRT Xaml Compiler does not yet deal with element tags? Xaml excerpt: <local:EditOrientationRadioButton Grid.Row="0" Grid.Column="0" EditOrientationTag="Left" Checked="OnOrientationRadioButtonChecked" C++/WinRT excerpt: radioButton.EditOrientationTag(); Xaml Compiler...
common-pile/stackexchange_filtered
Is a Barbarian 1/Warlock n effective as a tank? Playing my first 5e game soon. We're using PHB material only for characters. Is it possible to have a character that is sort of the main tank/off tank with a character who will start as a barbarian and then only take warlock levels? My half-orc's stats as rolled (after ra...
common-pile/stackexchange_filtered
Control Hulu playback with Universal/Media Center Remote? Is it possible to control video playback on Hulu and broadcaster web sites (nbc.com, cbs.com, etc) with a Universal or Media Center remote? I have a Logitech Harmony 659 remote I use for Windows Media Center, and I have a cordless mouse I can use, but it would b...
common-pile/stackexchange_filtered
Proving that the set of deciders is not Turing-recognizable Let $A$ be the language consisting of descriptions of Turing machines $\{M_1, M_2, \dots \}$, where each $M_i$ is a decider. Prove that $A$ is not Turing-recognizable. Then suppose $A$ is Turing-recognizable and suppose $s = \{s_1, s_2, \dots \}$ is a set of a...
common-pile/stackexchange_filtered
How do you build an End portal in the Nether? In creative mode, how can you build an End portal in the Nether? Placing End portal frames in the usual configuration and putting eyes of Ender in them doesn't have any result. The frames and eyes are there, but no portal forms. I think they only work in the overworld bec...
common-pile/stackexchange_filtered
Undefined method each I have a show controller that pulls a record from a model (code below) def show @protocol = Protocol.find(params[:id]) end Now, I inspect @protocol and it is in fact returning an object: My view is named show.html.erb and the code in show.html.erb is: <table id="test-table"> <the...
common-pile/stackexchange_filtered
How do I change or delete the album cover image shown in rhythmbox? I have Ubuntu 12.04 installed, and I have some wrong covers associated with albums. I've already disabled the cover plug-in, but the wrong covers that were downloaded are still being shown when I play the songs they are associated with. I want to kno...
common-pile/stackexchange_filtered
How to store data for a household I'm looking for a way to store data for a Google Assistant action for all devices/users in a household, without requiring voice matching to identify a user. I know you can store data in user.storage, but I don't necessarily want to require voice matching to link to a user, and if I use...
common-pile/stackexchange_filtered
Draggable snap to class but not to specific item I try Jquery UI Dragabble, and I want to snap to a class of elements, but to not snap to an element which is part of that class (Sorry for my English). I mean something like this: $( "#selected" ).draggable({ snap: ".elements", snapCancel: "#special_element" }) ...
common-pile/stackexchange_filtered
what happens to a "local" var after expression? Note: "local" meaning contained with in {} What happens to localVar after func has been expressed? var constantVarHolder = Int() func NameOfFunc(){ var localVar = Int() if X = 0 { localVar = 3 } else { localVar = 4 } constantVarHo...
common-pile/stackexchange_filtered
Ruby Console: How to Keep 'gets' from adding a new line when the user inputs Why does gets always add a new line when the user inputs the number of boxes? I want the next print statement to be shown on the same line as the input. print "Enter the number of boxes: " boxes = gets.chomp print "Enter number of...
common-pile/stackexchange_filtered
Why is the nose of the Mig-21 shaped so differently compared to other fighter aircraft? If you look at this picture below, you will notice that the nose portion of the Mig-21 has a unique conical shape which is completely different from the nose of the F-16. (Source) (Source) So what explains the conical design of the...
common-pile/stackexchange_filtered
Pillow: How to gradient fill drawn shapes? I researched quite a bit already, and all that I found was how to apply gradients to text generated with Pillow. However, I wanted to know how can I apply a gradient instead of a regular single color fill to a drawn shape (specifically a polygon). image = Image.new('RGBA', (50...
common-pile/stackexchange_filtered
Blender Mouse Over not returning correct HitObject So I have a Python controller which has two sensors hooked up to it, a Mouse Left Button sensor and a Mouse Over sensor, both have TRUE level triggering enabled with a frequency of 0. The Python controller is linked to a script which is shown below: # Gather informati...
common-pile/stackexchange_filtered
How to create private key and public key with web3? I want to create a private key and public key, basically a new account in Ethereum using web3. But I want to generate a private key that is 32 bytes in length. Does anyone know how to generate the same? I used the following code, but not able to generate a 32 bytes lo...
common-pile/stackexchange_filtered
why a contract alway is itself interface? like(contract Wolf is IWolf; contract Lostpoets is ILostpoets ) I can understand the reason of why there is a IERC721, because it's standard. BUT I can not understand why lots of project's contract is itself's interface, like contract Woolf is IWoolf {} contract Lostpoets is Il...
common-pile/stackexchange_filtered
getElementById Button not opening virtual window onclick I need a window to open a login page as a virtual window when the button is clicked, and the window isn't opening I don't know how to fix this at all, i'm not very experienced in JS at all, and I did not write the original code, i had paid someone to do it. <butt...
common-pile/stackexchange_filtered
Make integer in For Loop Superscript Okay, so obviously you can't make an integer a superscript since it's a number. I need you guys. How would I take the integer from the loop and make it into a string so I can .sup() it. I'm open to using an array. Here is the original var n; for (let i = 0; i <= 31; i++) { n = M...
common-pile/stackexchange_filtered
Get Facebook Profile Picture in higher resolution I was looking for the best way to get a user profile picture with the Facebook Graph API. Looking through the documentation, I've found this: You can specify the picture size you want with the type argument, which should be one of square (50x50), small (50 pixels wide,...
common-pile/stackexchange_filtered
why the degree of $P(x)$ in remainder theorem cannot be equal to "$0$"? As per the statement of the remainder theorem: Let $P(x)$ be any polynomial of degree greater than or equal to $1$ and "$a$" be any real number. If $P(x)$ is divided by $(x-a)$, then the remainder is equal to $P(a)$. In the statement of the rema...
common-pile/stackexchange_filtered
Spring Cloud AWS and Fargate I moved an application using Spring Cloud AWS (2.1.0.RELEASE) from an ECS/EC2 instance to ECS/Fargate and it crashes on boot, unable to retrieve credentials from the instance. The EC2 instance did not have credentials, so this was a surprise. In both cases, the role should provide all the p...
common-pile/stackexchange_filtered
Entropy of Random Variable X, given Y and Z I'm trying to obtain the mutual information between random variables X and Y,Z, as below: $I(X;Y,Z) = H(X) - H(X | Y,Z)$ I know that, $H(X) = \sum p(x,y)\log\left(\frac{p(x,y)}{p(y)}\right)$ and $P(X|Y,Z) = \frac{P(x,y,z)}{P(y,z)}$ However, I don't know how to define H(X|Y,Z...
common-pile/stackexchange_filtered
In MVC4, WebSecurity.InitializeDatabaseConnection causes Cannot open database requested by the login I'm trying to create a simple login using simple membership, I noticed that when database is already created I am able to run the application with no errors, however when I try to run the application without an existing...
common-pile/stackexchange_filtered
Adding a Swing button to a program that draws with AWT I have a program that draws a random triangle. I wanted to add a button that, upon clicking, would erase and regenerate another random triangle. I tested to see if I could make a button show up in another program, SwingButtonTest.java, (This is how I roll, I'm lear...
common-pile/stackexchange_filtered
Sentence Completion: "The narratives that vanquished people.. manage to ____ the victor's triumph.. " Here is the sentence: The narratives that vanquished people have created of their defeat have, according to Schivelbusch, fallen into several identifiable types. In one of these, the vanquished manage to (i)_____ ...
common-pile/stackexchange_filtered
Ignore non compatible character sets I am getting an error while trying to restore data from a dump file. # mysql < /tmp/Dump20200101.sql ERROR 1273 (HY000) at line 1: Unknown collation: 'utf8mb4_0900_ai_ci' I can edit the dump file and change the character set. CREATE DATABASE IF NOT EXISTS somedb_25122019 /*!4010...
common-pile/stackexchange_filtered
It can't calculate count(*) in a query onto DB2 database I want to do a count(*) of the number of a rows fom a DB2 database. The basic query is the following: select SUBSTR("Request_Detail",LOCATE('/',"Request_Detail")+1,LOCATE('/',"Request_Detail",LOCATE('/',"Request_Detail")+1)-LOCATE('/',"Request_Detail")) from "...
common-pile/stackexchange_filtered
typescript mocha unit tests run twice All my typescripts unit tests are under test/unit. All test files end with "test.ts". When I run using the following command it appears all tests are running twice. I think tests run for both .js and .ts even I specified extension for test files. npx mocha -r ts-node/register -t 10...
common-pile/stackexchange_filtered
C# validate least condition of element from 2 lists A and B in which B contains a list that refers to A's property I'm using Xamarin Forms 5.0 and C# 8.0 and would like to validate least conditions from the 2 following scenarios: *Provided JSON data { "part": [ { "id": "1234", "name"...
common-pile/stackexchange_filtered
Cannot read property 'settings' of undefined while inline editing Telerik Grid I've enabled in-line editing on my Telerik grid. However, whenever I click on a cell, I get an error saying "cannot read property." After some investigation, I realized that the issue is caused by having a main form already created and using...
common-pile/stackexchange_filtered
Mergesorting an object, not sure what goes wrong So to the question: I've been trying to apply mergesort on an array of objects that contain 3 ints, in terms of defining who is bigger than the other I'm positive it works right. My problem is that (I think) it doesn't work well in the recursion bit. So this is a homewor...
common-pile/stackexchange_filtered
Page style changing on code generated by PHP when compared to static HTML I'm currently working on a product page with dynamically fitting divs for the products. Those work perfectly when testing straight with HTML code, but when the exact same code comes from the PHP script the CSS styling slightly changes, completly ...
common-pile/stackexchange_filtered
LibGDX build failed to apply plugin [id 'org.gradle.idea'] I've downloaded the LibGDX setup app and when trying to build a project with IDEA plugin support i got: FAILURE: Build failed with an exception. * What went wrong: Task 'idea' not found in root project 'Game'. * Try: Run gradlew tasks to get a list of availab...
common-pile/stackexchange_filtered
Right Click ,Left Click and press Enter does not work for searched desktop app result Let me describe you the problem briefly by using images. When I search for old windows app such as Snipping tool ,Paint ,etc... through windows 10 search box like this: When I try to right click, normal left click or even when press...
common-pile/stackexchange_filtered
Automatically Filling Form Fields in MS Access 2010 Hi I have a table Exhibit_Testing with the following fields: 1) ReferenceNo ( Automatic Number) 2) Region_Name 3) Branch_Code 4)Branch_Name 5) AOM 6) Observation 7) Status 8) Date_Recieved 9) Date_Checked I want to create a Data Entry Form where if I enter Branch_Code...
common-pile/stackexchange_filtered
Toolbar customization works only on horizontal toolbars ALL, I'm trying to add the toolbar customization functionality to my program. Everything works when the toolbar is horizontal on on top. When the toolbar is vertical on and the left, calling https://developer.apple.com/documentation/appkit/nstoolbar/1516979-runcus...
common-pile/stackexchange_filtered
M/G/1/K - evalutate birth and death rates Within a queue with capacity = K and exponential interarrival times, death rate is μ and birth rate λ. A packet is discarded when the queue is full. When the source is active there's a probability p1 > 0 that a packet is discarded at arrival. Moreover there's a probability p2 >...
common-pile/stackexchange_filtered
How to find private key on build.secondstate I'm a beginner in ethereum application developing. Actually I started some days ago with a book and now I tried to build my first smart contract using BUIDL, actually at this site: https://buidl.secondstate.io/. I send 0.10$ to my default address, just to try to "deploy to t...
common-pile/stackexchange_filtered
Is it possible to integrate selenium with any AI tool that gives it capability to have better or AI (artificial intelligence) ways to locate elements We are working on selenium framwork which uses Java as framework language. There are more than 400 + test scripts written in our framework. This application is mostly sta...
common-pile/stackexchange_filtered
Insert form values in the database I am new to Drupal 7, and I am trying to insert the form values in a database table. I used many ways to do that, but I am not getting successful result. What is wrong with the code I am using? drupal_write_record('formtest', $data); function form_test_form_submit($form, &$form_state)...
common-pile/stackexchange_filtered
PowerShell - want to automatically run a .ps1 at a certain time of a {work}day and then get an email with the output Lets start with that I'm just now learning PowerShell. So, I'm monitoring drive space on all the servers in our company and I'd like to automate the process. This is what I got $disk = Get-WmiObject Win...
common-pile/stackexchange_filtered
Generate x5c certificate chain from JWK I am using nimbus-jose-jwt 5.14 and I generated RSA key pair with the following code KeyPairGenerator gen = KeyPairGenerator.getInstance("RSA"); gen.initialize(2048); KeyPair keyPair = gen.generateKeyPair(); JWK jwk = new RSAKey.Builder((RSAPublicKey)keyPair.getPu...
common-pile/stackexchange_filtered
How to return data from Ember Controller to my component inside View? How can i return data from my Controller to my component inside View? This is my component {{#each model as |lineItem index|}} <tr> <td> {{global.daterange-picker startDateMoment=startDate(lineItem.date) ...
common-pile/stackexchange_filtered
Hierarchical statistical diagrams I would like to create a diagram like the one below in LaTeX (probably with TikZ). This diagram and others can be found on this website. It looks like it was made with LaTeX, but I am not entirely sure. How can I approach this problem? Does TikZ provide an easy notation or template for...
common-pile/stackexchange_filtered
Check if file path is block device in Python I have some file path in Python under Linux and I need to figure out if it's a block device - representation of disk or partition. This information is visible when typing ls -l, e.g. brw-rw---- 1 root disk 8, 1 09-12 18:01 /dev/sda1 I mean letter b on start of this output. ...
common-pile/stackexchange_filtered
Unfurl a string Given a square string, produce all the output for the string at every stage of unfurling. The string must unfurl in a clockwise direction one quarter turn at a time. Examples Input: A Output: A Note: I'll also accept the input duplicated for this particular test case only if this helps reduce your byt...
common-pile/stackexchange_filtered
Add items to combobox in WPF within a canvas Good day, I want to add specific items to my combobox, but am running into an error. Code: Add-Type -AssemblyName PresentationFramework [xml]$Form = @" <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Title="Printer GUI" Height="465" Width="375...
common-pile/stackexchange_filtered
Registration user using JSF, JPA, how to hash password? I want to create users in database with md5 password, but I don't have idea, how to do it best. I am using JSF (+PrimeFaces) and JPA. Pieces of code: registration.xhml: <p:password id="password" value="#{userBean.password}" match="repeatPassword" required="true"...
common-pile/stackexchange_filtered
Copy files with Gulp.js I've been trying to copy a series of html pages from my src folder to my dist folder using Gulp. I've looked online and for some reason what should normally work is not working for me. my folder structure is like this: Here is my gulpfile: var gulp = require('gulp'), sass = require(...
common-pile/stackexchange_filtered
Add a new element to an array without specifying the index in Bash Is there a way to do something like PHPs $array[] = 'foo'; in bash vs doing: array[0]='foo' array[1]='bar' "How to add/remove an element to/from the array in bash?" Yes there is: ARRAY=() ARRAY+=('foo') ARRAY+=('bar') Bash Reference Manual: In the ...
common-pile/stackexchange_filtered
After upgrade, raw sql queries return json fields as strings on postgres I am upgrading a Django app from 2.2.7 to 3.1.3. The app uses Postgres 12 & psycopg2 2.8.6. I followed the instructions and changed all my django.contrib.postgres.fields.JSONField references to django.db.models.JSONField, and made and ran the mig...
common-pile/stackexchange_filtered
Why is this only centering when I'm zoomed in? (using bootstrap) If you put the below code in fullscreen, the elements are only centering on the page once I'm zoomed in enough. How can I make it so it's centered regardless? .col-centered { float: none; text-align: center; } .col-centered table { margin: 0 ...
common-pile/stackexchange_filtered
mcntl_fork() vs system('program.php 1 2 3 4 &') I run into some problem and I am wondering what would be the best practice? I have a parent program, which permanently checks a DB for a queue. When there is something in the queue, it forks a child and does multiple updates on the DB, until the end conditions are met and...
common-pile/stackexchange_filtered
Using blank-line delimited records and colon-separated fields in awk I'd like to be able to work with a file in awk where records are separated by a blank line and each field consists of a name followed by a colon, some optional whitespace to be ignored/discarded, followed by a value. E.g. Name: Smith, John Age: 42 N...
common-pile/stackexchange_filtered
Android FileSystem layout on Playbook I'm unfamiliar with how the Android player sees the file system. Previously in Air apps I would create a directory in Documents to save my app's files in. What directory should I use for storage in an Android app? As far as I know, the Blackberry emulator for Android apps copes pe...
common-pile/stackexchange_filtered
search engine - the state has a different value than input the search engine does not work, namely: going into devtools and the network tab when I type e.g. cow I have http: // api / Routes / Search? word = co when I add spaces I have: http: // api / Routes / Search? word = cow and searches and when I delete everything...
common-pile/stackexchange_filtered
Add onclick with css pseudo-element after Is it possible in my css file to do something like that?: .myclass:after{ content:"click me"; onclick:"my_function()"; } I want to add after all instances of myclass a clickable text, in the css style sheet. If it is not possible, that's the answer I was looking for. I...
common-pile/stackexchange_filtered
Uniform convergence of the following series: Does the following series converge uniformly ?$$\sum_{n=0}^{\infty} \frac{-1^n} {x+n} \ for \ (x\in R^+)$$ My thought: for pointwise convergence: $$ \lim_{n \rightarrow \infty} \frac{-1^n} {x+n} =0 $$ so $$|f_n(x) - f(x)|=|\frac{-1^n} {x+n}|$$ now for the function $$g(x)=\fr...
common-pile/stackexchange_filtered
Selecting rows based on values in another row I have a pyspark dataframe where the first and second column contain common values: +-------------+----------+------+ | x | y |z | +-------------+----------+------+ | 00111| 50012| a| | 00111| 10131| a| | 00111| ...
common-pile/stackexchange_filtered
Flask error "cannot concatenate 'str' and 'NoneType' objects" when POSTing multipart form data So I'm using flask to receive form data, which has worked fine with url-encoded data (application/x-www-form-urlencoded). I can just access the request.form in my routing functions. However if I try to instead send data using...
common-pile/stackexchange_filtered
python style: list of strings vs string.split() In modules where a set of string literals is needed it can be declared as values = ['hello', 'world'] But I have seen many experienced python programmers write values = 'hello world'.split() obviously considering it more readable. (I also think I have seen this in the p...
common-pile/stackexchange_filtered
How Do I Activate the Gen 7/Previous Gen Post-Game Crossover Story? I've finished playing Pokemon Ultra Sun quite some time ago but I could never figure out how to activate the cross-over story (where Team Rainbow Rocket would invade Alola). I sincerely hope this story is still playable, because that was the sole reaso...
common-pile/stackexchange_filtered
Local Development with Palantir Foundry Code Repositories I'm exploring ways to enhance my development workflow with Code Repositories, and I was wondering if there’s a method to work locally in Foundry, similar to how one might develop using Snowpark. Specifically, I'd like to connect to Snowflake from my local enviro...
common-pile/stackexchange_filtered
How do I modify directory timestamps when File Explorer is open? My application creates files and directories throughout the year and needs to access the timestamps of those directories to determine if it's time to create another one. So it's vital that when I move a directory I preserve its timestamps. I can do it lik...
common-pile/stackexchange_filtered
SASS generating URLs for multiple static The idea is that I use some mixin to generate domain for the images. Assuming I have 2 domains which have the same images I want to be able to load half the images from one domain and half from another. in PHP this is something like $domains = array('domain1', 'domain2', 'domain...
common-pile/stackexchange_filtered
How to forbid creation of new class attributes in Python? This may appear as a very basic question, but I couldn't find anything helpful on SO or elsewhere... If you take built-in classes, such as int or list, there is no way to create additional class attributes for them (which is obviously a desirable behavior) : >>>...
common-pile/stackexchange_filtered
How to run parallel test cases in selenium grid? I have only one test case and i want to run that particular test case on two different machines say one in windows and other linux. How can i configure my nodes or selenium framework so that it can run my test case parallely on different machines at the same time.I have ...
common-pile/stackexchange_filtered
laravel-jsvalidation not using all rules I'm using laravel-jsValidation, https://github.com/proengsoft/laravel-jsvalidation and my problem is that only the first rule in my list of rules is used. In example below, the js will halt submit only if 'title' field is empty. What am I doing wrong? No errors whatsoever, backe...
common-pile/stackexchange_filtered