text
stringlengths
70
452k
dataset
stringclasses
2 values
AWS SSH Login continues to fail even with new EC2 instance [Permission denied (PublicKey)] I just started working with AWS to create a wordpress site on an EC2 instance (using the tutorial at https://www.youtube.com/watch?v=4WR7EFFLF04). Everything was working fine until I tried to add an SSL certificate using another ...
common-pile/stackexchange_filtered
Diphthongoids and diphthongs In Russian linguistics, there's a term дифтонгоид (diphthongoid). For example, in textbook Современный русский литературный язык (Modern Standard Russian) by S.V. Knjazev and S.K. Pozharitskaya, it is introduced as a unit opposed to a true diphthong (Knjazev argues that a true one should ha...
common-pile/stackexchange_filtered
How to make HTML5 Geolocation more accurate? I've been playing with the HTML5 Geolocation options and noticed that the results can be a bit erratic and wondered if there was a way to get them more consistent. I've been doing all of my tests on an iphone 5 and just using the standard getCurrentPosition code with enableH...
common-pile/stackexchange_filtered
Add order Laravel I am adding order to database. It works like this: When ordering is clicked, the order is created in the Order table, at the same time the product items are also added to the OrderItem table, via the order_id foreign key. But I don't know how to get the order_id, because it is added at the same time, ...
common-pile/stackexchange_filtered
Eclipse deployment assemble cannot find entry for project I converted X normal java project to maven project. Earier this X project was used in the deployment assemble of Y project, now when I am the X project into the deployment assembly of Y project , I am getting can not find entry for X project. Don't try to ad...
common-pile/stackexchange_filtered
Understanding a probability inequality from Billingsley's Converegence of Probability Measures In the below proof, I cannot figure out how we get the final inequality. Namely, how do we show that $$P[\tau_i^n - \tau_{i-1}^n \ge \delta' | \tau_q^n < m] \ge 1-\eta/P[\tau_q^n < m]$$ from (16.29)?
common-pile/stackexchange_filtered
how to import 'tf.contrib.seq2seq.dynamic_decoder' in tensorflow2.0? I used 'tf.contrib.seq2seq.dynamic_decoder' in tensorflow1.0 and now I want to use it in tensorflow2.0; but I don't know how to import it in tensorflow2.0 In TensorFlow 2.0, seq2seq module has been moved to TensorFlow addons To install it run: pip i...
common-pile/stackexchange_filtered
Is there any disadvantage to slipping as a way to lose altitude? I learned how to slip during my powered training as a way to lose altitude when too high and, of course, a way to track the runway center-line during a crosswind landing. Quite a bit more emphasis was put on slipping during my glider training. I guess th...
common-pile/stackexchange_filtered
FileInputStream("hello.txt"), doesn't work unless I specify an absolute path (C:\User\Documents etc) Hi is there any way I can get FileInputStream to read hello.txt in the same directory without specifying a path? package hello/ helloreader.java hello.txt My error message: Error: .\hello.txt (The system cannot...
common-pile/stackexchange_filtered
Add click function to all apps listview android I have made an application where i can see all of my apps in a listview which works very well. However, i cannot click it because i haven't added a function for it, how can i add a click function to the listview? Here is my code: Java code: public class AllAppsActivity ex...
common-pile/stackexchange_filtered
Athena pagination and performance issue I have huge data set in S3 and using AWS Athena I am trying to query it, below 3 parameters are input for my query. marketplaceId startIndex endIndex but it's took 16 seconds to query just 50 records. ( I am using python to query data from Athena --> S3) What I am doing wrong h...
common-pile/stackexchange_filtered
Do individual rest masses change in a relativistic elastic collision? Consider a classical isolated relativistic elastic collision of two free scalar point masses in 1 D. The aim is to get the final velocities of the particles given initial rest masses and initial velocities in some inertial reference frame. The q...
common-pile/stackexchange_filtered
ASP.NET Client Application Services Authentication and WCF I have a WPF application that uses Client Application Services to allow authentication (username/password logon) against a related web application that uses Forms authentication and the SqlMembershipProvider/SqlProfileProvider/SqlRoleProvider. This all works an...
common-pile/stackexchange_filtered
Power BI - Add slicer for thousands and millions Does anyone know how you can add a power BI slicer so that the values in a matrix go from thousands to millions based on the selection of another slicer? So if I select all business units then the sum of all values are returned in millions, else if i select one business ...
common-pile/stackexchange_filtered
Take <span> class and put in <a> attribute jquery I have html like this. <span class="gallery-open-item year-icon-Yes 2010"> <a href="/year/none"> </a> </span> I need to check using jQuery if span.gallery-open-item has year-icon-Yes class, and if so take the next (for this example is 2010) class and place it in the hr...
common-pile/stackexchange_filtered
Custom Events not firing in ASP.NET I have an aspx page Page1.aspx where an event is raised: private void helper_Response(Results pagedResults,Wrap wrap) { // Do database calls } In the same file there is a Load() inside it is called like this: void Load() { test = new Helper(); test.responseevent += new ...
common-pile/stackexchange_filtered
Will exit(0) be bad in an othewise "empty" block? I've tried to read up on the difference between return EXIT_SUCCESS; from main() and calling exit(EXIT_SUCCESS) from anywhere, and the best resource I've found so far is this answer here on SO. However, there is one detail I'd like to have cleared up. To me, the most co...
common-pile/stackexchange_filtered
Multipass VM size on disk too large I have a multipass VM for running Kubernetes. Some Kubernetes workloads took up a lot of space in the VM. I have cleared that space within the VM now but on the host machine the space occupied on the VM has not gone down. In fact it has gone up from 37.2 GB to 46.2 GB! How do I recla...
common-pile/stackexchange_filtered
Where is the geth.exe in the Ethereum mist? I'm running Ethereum Mist on Windows 7. Mist Version is 0.8.6. I can't find the geth.exe in the Mist github. https://github.com/ethereum/mist In the version 0.8.2, the geth path was "mist\nodes\geth\win32-x64\geth.exe". Anyone help me. @Mikkel, why is it ruby? My apologies,...
common-pile/stackexchange_filtered
How do rolling airframe missiles steer? There are a certain type of missiles that roll constantly in flight, so-called rolling airframe missiles. Missiles found in the category range from various MANPADs, to the creatively named RIM-116 Rolling Airframe Missile. Wikipedia explains that by rotating in flight, only one p...
common-pile/stackexchange_filtered
Is there any way to convert string into a QWidget in PyQt5? How to Convert 'Str' into a 'Qwidget'? (Initialize my dictionary outside the class method) ... dict_link = {'11': 'self.container11', '12': 'self.container12', '13': 'self.container13', '14': 'self.fcontainer14'} kj =...
common-pile/stackexchange_filtered
Can anti-vaxers be sued for medical malpractice? Vaccine stuff has been in the news lately. It occurred to me that telling people not to get vaccinated could constitute medical advice. Here is my question: if someone tells you not to get vaccinated, and then you get really sick with something you could have been vaccin...
common-pile/stackexchange_filtered
Set Publish Date for CMS Pages in Magento I would like my homepage to change daily. Is it possible to set dates for the homepage of magento to change daily? I would like a different homepage to be published each day of the week. Is this possible? I am using Community edition 1.7 Magento OOB does not have such a featur...
common-pile/stackexchange_filtered
Is there an equivalent tool like ruby-prof for node.js? I want to profile a Jest test, but I only want to see the behavior for some specific methods. In ruby, I can do that with ruby-prof, but is there an equivalent tool like it for node.js or jest? You can use console.time in node.js for the same if that's what you'r...
common-pile/stackexchange_filtered
Apache with Perl FastCGI - Internal Server Error I can't get Apache and FastCGI for Perl running properly on Debian 12. What I have done so far: apt-get install libapache2-mod-fcgid a2enmod fcgid My Vhost file looks like this: <VirtualHost *:443> ServerAdmin<EMAIL_ADDRESS> ServerName test.example.org Docume...
common-pile/stackexchange_filtered
App Not Downloading Newest Version Of File [Java] Okay, I've been trying to figure this out for a few hours and it's starting to kill me. I wrote a primitive version checker for an app I work on every once and awhile. It's just a simple for fun project. The version checker has been a pain though. It was working the fir...
common-pile/stackexchange_filtered
How to programmatically use the built in search functionality How to programmatically use the built in search functionality to get the results and displays in the app part? I have found some jQuery REST search api code and it seems working when I try to add my own textbox and button to search results. But what if i wan...
common-pile/stackexchange_filtered
How to get msmq message "received" when queue is set to Authenticated? I'm using WCF 4.0 and the service is hosted in IIS (WAS), with a net.msmq address. I'm starting out by simply sending an int through a method. In my web.config I have the following. Note- I can't hook to AD because of other restrictions. Even withou...
common-pile/stackexchange_filtered
How to split path and parameters in python flet? I tried to use flet.page.query to pass some parameters to the page, but ran into some problems. My match page.route: path handler reads the parameter string after the ? part of the path string and I can't seem to separate them at all because it seems page.path is not a s...
common-pile/stackexchange_filtered
Checking for when a double is a Zero I have a quick question. Its rather simple but I am very confused. I am creating a timer in C using the terminal. I am using SIGALRM to send signals that subtracts the value of SUBTRACT_CONST. I am assuming that there are 25 TICKS_PER_SECOND or 1/25 which is 0.0400 my subtract const...
common-pile/stackexchange_filtered
Checking if "continuous" when $x$ is 1 and reaches 1 I have $$f(x) = x \left| x - 1 \right|$$ Here my given value for $x$ is 1 And I need to test if the function is "continuous" when $x$ is $1$ and also when reaching $$ f(1)$$ $$ \lim\limits_{x \to 1} f(x)$$ So I plug in 1 to the equation to find out the value of $f(1...
common-pile/stackexchange_filtered
Openproject 7 : File to import not found or unreadable: helpers/functions After a fresh install of Openproject (stable/7), I get the following error message when accessing localhost:3000 for the first time : Showing /home/stephane/www/openproject8/app/views/homescreen/blocks/_upsale.html.erb where line #6 raised: File...
common-pile/stackexchange_filtered
C'est de leur faute à tous I have heard the following sentence in the TV series Marseille: C'est de leur faute à tous! The English subtitle says "It's all their fault". Is the preposition "de" necessary here? Where is the "all" in the French sentence? Literally, I translated the French sentence to "It's their fault t...
common-pile/stackexchange_filtered
String with timestamp changing in airflow dag I am trying to use the datetime as a unique identifier for a s3 folder that I create in an airflow dag. However, the datetime string seems to be changing despite no work on my part. Does anyone know why? dag.py import utility from datetime import datetime, timedelta import ...
common-pile/stackexchange_filtered
How to replicate data between tables on linked servers? Good Day I have created a linked server on my SQL Server to my MySQL Database. The SQL Server Database is Called Main and the Table I am looking at is called ORDR. The MySQL Linked server connection is called MySQL_Link and the table I use in there is also called ...
common-pile/stackexchange_filtered
Rails Installer. Terminal says Rails was installed, but then says it's not I'm trying to install Rails with the package available at installrails.com. When I type "rails --version" into the terminal, I get this: Rails is not currently installed on this system. To get the latest version, simply type: $ sudo gem ins...
common-pile/stackexchange_filtered
Buttons with a textarea on web page Could someone please point me at a resource that shows how to add buttons to a textarea on a web page? Similar to Yahoo mail where an email address is turned into a button with a cross for removal. In fact exactly how tags are added to the Tags textarea on this site. There are very ...
common-pile/stackexchange_filtered
Integration Segment with Salesforce, adding an action All I want to do is, Add Salesforce as destination From the Track Object, get a field Update to Salesforce I created a custom action But it does not work everytime it inserts a lead My action is not executed What am I doing incorrect? Below image I am testing to...
common-pile/stackexchange_filtered
JavaFX WebView: how to block resources from a specific website? Is there a way to block resources (images, scripts, css sheets, etc) from either a specific website or all websites when using the JavaFX WebView? Basically, I would like to stop the src attribute and href attribute from working depending on their content....
common-pile/stackexchange_filtered
Create and set custom keyboard layout I want to create and set a custom keyboard layout with setxkbmap. I created a file in ~/.xkb/prog with this content: partial default alphanumeric_keys xkb_symbols "basic" { include "latin(type4)" name[Group1]="es for developers"; key <AE01> {[ 1, exclam, e...
common-pile/stackexchange_filtered
How to serialize data not coming from the request and properly validate it (ModelSerializer in Django Rest Framework)? Using Django Rest Framework 3, Function Based Views, and the ModelSerializer (more specifically the HyperlinkedModelSerializer). When a user submits a form from the client, I have a view that takes the...
common-pile/stackexchange_filtered
Integration of an application with keycloak for SSO using open id connect I have an application which developed few years back using .netcore 3.1. Now want to implement the SSO using keycloak with open id connect. Currently, when I run the app it can direct to keycloak sign in. But when successfully signed in, it can d...
common-pile/stackexchange_filtered
Will it be possible to upgrade the Windows 8.1 (Pro) Preview to the release version? I'm contemplating upgrading from Windows 8 to the new Windows 8.1 Preview, but I've been unable to find whether it will be technically possible to upgrade from the preview to the full release. It apparently is with Windows RT, but I've...
common-pile/stackexchange_filtered
Command line program to create website screenshots (on Linux) What is a good command line tool to create screenshots of websites on Linux? I need to automatically generate screenshots of websites without human interaction. The only tool that I found was khtml2png, but I wonder if there are others that aren't based on k...
common-pile/stackexchange_filtered
A main activity call a intent and the original receiver was killed A main activity call a intent to do something(like install a certain apk)and main activity have a receiver to monitor the intent ACTION; but the problem is, for some case, main activity will be killed if the memory is not enough, the intent receiver to...
common-pile/stackexchange_filtered
How to run Zero-K under Linux Welcome, I followed the howto on http://zero-k.info/Wiki/Download on my Linux Mint 15 64 bit Cinnamon. After logging-in here and there opening the Lobby with mono Zero-K.exe and pressing the big button Play Now on "http://zero-k.info/Missions/Detail/156", I believe after waiting for the ma...
common-pile/stackexchange_filtered
Sticky headers on SliverList I've seen new flutter video and seen some interesting. (It's not typical sticky header or expandable list, so I don't know how to name it) Video - watch from 0:20 Does anybody know how can I create such type of list with headers using SliverList? One way is to create a CustomScrollView an...
common-pile/stackexchange_filtered
how to place icon button wherever and as i like in kivy I want to make a toolbar in my app where the icons are placed in the top right and i want to place them as i like . I want to make them small and i have a little bit of spacing between them at the top right , and the top left will be the logo. Thanks a lot I tried...
common-pile/stackexchange_filtered
User memory limit exceeded I am studying land degradation and working on implementing the performance sub-indicator for land productivity based on ecoregions, linked to the LULC cover in 2022. However, I keep encountering the "User memory limit exceeded" error (Error code: 3). To address this, I've divided the study ar...
common-pile/stackexchange_filtered
How to write a function that recognises unbalanced brackets I am trying to write a function that checks if a syntax is correct or not. If it is correct it returns 'ok' else it returns the index of the error. So far my code works if it is correct, if the error is at the first index or last index. Finding errors inbetwee...
common-pile/stackexchange_filtered
Node JS - Server doesn't react to requests I set up a Node JS server, and made a request to it, it just loads and loads and eventually says "Server not found". Here is the code for my file: var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.en...
common-pile/stackexchange_filtered
What about Firefox in Mac is altering the scroll event listener? The full example is here: https://codepen.io/builtbyvern/pen/MWmLgqd?editors=0100 I'm attempting to build a video that animates to a part that matches the percent scrolled to. It works great in every browser except one: Firefox on MacOS. It appears that F...
common-pile/stackexchange_filtered
Producing multiple plots for multiple timestep values I am aiming to show the accuracy of a numerical solution and how this varies with the value of timestep chosen. The numerical solution is produced using the following code: def f(te3): y3 = -r3*(te3 - te_surr) #y is the derivative return y3 for i in range(...
common-pile/stackexchange_filtered
Python-docx style format I am using python-docx to output a Pandas DataFrame to a Word table. About a year ago, I wrote this code to build that table, which worked at the time: table = Rpt.add_table(rows=1, cols=(df.shape[1]+1)) table.style = 'LightShading-Accent2' Where Rpt is a Document from a template. Now, I get...
common-pile/stackexchange_filtered
How to produce CorelDraw file from LaTeX? It is possible to produce CorelDraw file (instead of PDF) by LaTeX? One of my publishers for some reason can't accept my book in PDF and asking for CorelDraw. I don't really know why and trying to find a way to create that file. Have you seen LaTeX in CorelDRAW? Maybe it could...
common-pile/stackexchange_filtered
Why do people care about reversibility in molecular dynamics simulations? When carrying out a molecular dynamics simulation, one has to choose an ensemble. Depending on the problem, one usually works in the microcanonical (NVE), canonical (NVT), or grand canonical ensemble (NPT). In the NVE ensemble, maintaining revers...
common-pile/stackexchange_filtered
What are the advantages of tables with declension endings to study a declension system? Update: What I'm asking is if there's any evidence in the field of language learning stating if a mere table with declensions is useful for learning those declensions. This is opposed to the usual method of learning the declension b...
common-pile/stackexchange_filtered
How to read from application.properties and set as Job Parameter in Spring Batch I want to read from my application.properties , the input and output paths for my Spring Batch application, and set them to the jobParametersBuilder, so I can access them throughout the job execution (to assign them to readers and writers)...
common-pile/stackexchange_filtered
How to add a custom field with a random value to all the post I'm trying to add/update a custom field values for all the post for my wordpress site with the code below ... in phpmysql INSERT INTO wp_postmeta (post_id, meta_key, meta_value) SELECT ID AS post_id, 'views' AS meta_key 'RAND(6)*20' AS meta_value FROM wp_po...
common-pile/stackexchange_filtered
Is this Axemaster homebrew barbarian Primal Path balanced? A little bit ago, I was exploring my first Barbarians, and noticed that a big, scary Greataxe was nearly always more effective than a Barbarian with two handaxes or even two battleaxes! So, I designed my own Primal Path that makes the rather flavorful dual-wiel...
common-pile/stackexchange_filtered
Do you think these sentences are acceptable? I'm a graduate student who studies linguistics in South Korea. Now, I'm writing a final term paper about 'Sluicing' which is a kind of an ellipsis structure in English. However, I lack in English intuition to determine whether the following sentences are acceptable to Engli...
common-pile/stackexchange_filtered
What size UIToolbarbutton's icon should be? I'm trying to create a tool bar like below image. Surely I have different buttons and also different icons. But the question is that what size should be the icons that I will use for this buttons? Apple has extensive and very specific guidelines for icons and images in it's...
common-pile/stackexchange_filtered
How do I check if a Firestore document exists before I update it? I'm newish to Swift and new to Firestore and am running into an issue that I can't solve. I have the code below which is supposed to check for a document at the UserReference location in Firestore. If it doesn't exist, it should create a new document tha...
common-pile/stackexchange_filtered
What exactly is a dimension? How do you exactly define what is and isn't a dimension? I heard somewhere that it is "anything you can move through" but if that is right, why wasn't time and space considered a dimension before Einstein? Dimension of what? You may want to look at the (mathematical) definition of dimensi...
common-pile/stackexchange_filtered
Copy a std::vector to a repeated field from protobuf with memcpy At first I have this simple protobuf file message messagetest { ... repeated float samples = 6; .... } Which creates a headerfile with this methods //repeated float samples = 6; inline int samples_size() const; inline void cle...
common-pile/stackexchange_filtered
Use AVFoundation Still Image I am taking a still image with AVFoundation like below and I am trying to use the captureImage (UIImage) to be displayed on a different view controller and no matter what I try that image captureImage wont display anywhere. My question is that using that captureImage as is, is that a compl...
common-pile/stackexchange_filtered
Faster Kmeans Clustering on High-dimensional Data with GPU Support We've been using Kmeans for clustering our logs. A typical dataset has 10 mill. samples with 100k+ features. To find the optimal k - we run multiple Kmeans in parallel and pick the one with the best silhouette score. In 90% of the cases we end up with ...
common-pile/stackexchange_filtered
practice of omitting notes in jazz piano I'm trying to find a name for the practice of omitting notes in jazz piano. There was an American jazz pianist (black I think) who was famous for it. His show piece was to start playing "Mac The Knife" and omit notes till the tune just disappeared. Then he would add notes bac...
common-pile/stackexchange_filtered
What kind of data I can retrieve from google with gclid and client id? I add analytics.js script on my website. Also, some visitors of my website come from adWords. So, I have website visitor identificators: ClientId from _ga cookie GCLID time-to-time from query parameter Does it possible retrieve "search keyword" an...
common-pile/stackexchange_filtered
K&R 2-7 - Invert a bitfield from a number This is my solution to the Exercise 2-7 of K&R C book. The assignment is: Write a function invert(x,p,n) that returns x with the n bits that begin at position p inverted (i.e., 1 changed into 0 and vice versa), leaving the others unchanged. Note: It's assumed that the rigthmo...
common-pile/stackexchange_filtered
Bacon's cipher: An Intro to Steganography This little piggy went to market, this little piggy wrote some code... Ah wait, we're not talking about that bacon, we're talking about Sir Francis Bacon! Specifically, the cipher Bacon devised in the late 1500s, as a method of hiding a message within another message, a method ...
common-pile/stackexchange_filtered
Android app will not terminate My Android app sends the user off to a URL. How do I exit an app and remove it from being a recent view completely after starting webbrowser? If the user then goes and clicks on the app to run it again, there is a crash because it was started while another instance was still running in th...
common-pile/stackexchange_filtered
Should flagging content as offensive allow the input of additional context? Consider the question Textures in OpenGL turn white over time, which is a fairly good, specific question with sample code. It contains the following line, which may be offensive to some users: I would imagine, that as I amass more textures I ...
common-pile/stackexchange_filtered
FlowLayout for Android Widgets Romain Guy created a great presentation and sample implementation for a FlowLayout in Android Activities (which he links to in the answer to this question: How can I do something like a FlowLayout in Android? ) I would love to use something like this in an App Widget but they seem to be e...
common-pile/stackexchange_filtered
Change HTTP response body right before sending I want to give a client the possibility to dynamically select only certain columns of the entities to query when communicating with our rpc API. For example by specifying an array of strings with the fields to select with point notation for navigation properties. { "js...
common-pile/stackexchange_filtered
recognize that user call somebody how to regognize that user call somebody from code?(means i have an app and want to do sth when user call somebody) You can't do that I'm afraid, firstly your app won't be running when they are calling someone and secondly you can't access the phone functions from the SDK. Might be p...
common-pile/stackexchange_filtered
permission error:- dynamic user:predicate modifying static procedure predicates/2 I have some codes in Prolog, and when compiling I have some errors as the following: PERMISSION ERROR- dynamic user:examples/2: modifying static procedure examples/2 This is my partial code(that's for testing): /* This part is for crea...
common-pile/stackexchange_filtered
Power BI - Use slicer to fetch file from folder I have files in a folder which have same structure. The only difference between them is that for each day a new file is created which is named as date of the day. So if file is created on 11th November 2019, its name would be 11092019.xlsx. I have created a slicer which f...
common-pile/stackexchange_filtered
Polar and Parametric Plots not showing up I bet this has asked before, but I can't seem to find an answer anywhere. I have x and y functions which, individually plotted, are showing up fine, but when I try to plot the parametrically, the graph does not show up. I absolutely cannot figure out why this is occurring, and...
common-pile/stackexchange_filtered
How to optimize the query of datetime condition? I have a table cashflow and 4 index [is_dp], [is_wd], [is_dis], [time]. `is_dp` tinyint(1) => (0,1) `is_wd` tinyint(1) => (0,1) `is_dis` tinyint(1) => (0,1) `time` datetime This table have 3 million up rows. My query is : 1. SELECT * FROM `cashflow` WHERE is_dp...
common-pile/stackexchange_filtered
How to extract subject key identifier from x509 certificate through openssl I've created a x509 certificate using ec prime256v1 thorough openssl. Can someone please let me know the way to extract subject key identifier from it using any openssl cli? Thanks in advance. Do you want to read the field in the certificate o...
common-pile/stackexchange_filtered
How to combine multiple libraries middleware in Nextjs 14? I have a problem with 2 libraries that I want to implement in the NextJS app: Supabase (pkt 4) & the next-intl. Both of them share middleware methods that return right-away the NextResponse. I was trying to utilize both of them but failed all the time returning...
common-pile/stackexchange_filtered
django template tag check if image exists I've got a portion of my app that allows a custom logo. Default object (and object view) state is no custom logo, but if one exists, replace the header with a custom logo navbar. logo is a standard ImageField on co(mpany) model: models.py: class Co(models.Model): logo = ...
common-pile/stackexchange_filtered
BASH brace expansion from a string variables How do I expand a brace expansion that originally come from a string variables ? Note that the string variable is a requirement. #!/usr/bin/env bash TEXT_DIRS='opt/*/{doc,gtk-doc}' My intention is reading a bash source from zsh, or maybe other language as well such as Perl...
common-pile/stackexchange_filtered
Java 8 or higher, removing values from char array what would be the least verbose way to remove one item by value from char[] core java 8 > ? char[] c = new char[] {'a', 'b', 'c'}; I want remove 'b' for egz. Does this answer your question? Removing an element from an Array (Java) Arrays have fixed size so please ...
common-pile/stackexchange_filtered
NUXT 3.5.1 using generic type in setup script tag raises an error " Unresolvable type reference or unsupported built-in utility type"" I made an application using NUXT 3.5.1 but when I am trying to use the Vuejs 3.3 new feature generic in the setup script it raises an error : <script lang="ts" setup generic="T"> const ...
common-pile/stackexchange_filtered
Populating a dictionary from text file I'm trying to populate a dictionary from a text file which has two columns author and title divided by a comma. My code is below f = open('books.txt', 'r') books = {} for l in f: author,title = l.strip().split() if author in books: books[author].append(ti...
common-pile/stackexchange_filtered
Is it possible for a single torque to rotate a sphere of uniform density at rest from one arbitrary orientation to another? If I had an object at rest in some arbitrary rotational position, is it possible to apply a single force to it in order to rotate it to a second rotational position? This would be assuming the obj...
common-pile/stackexchange_filtered
python and XML: how to place two documents into a single document Here's my code: def extract_infos(i): blabla... blabla calculate v... dom = xml.dom.minidom.parseString(v) return dom doc = xml.dom.minidom.Document() for i in range(1,100): dom = extract_infos(i) for child in dom.childNodes: ...
common-pile/stackexchange_filtered
How to evenly distribute resistance on a 3D Vector? I am making a game in Godot where different places will have different resistance against movement, and I use this code:` direction.x = move_toward(direction.x, 0, resistance * delta) direction.z = move_toward(direction.z, 0, resistance * delta)` So if my velocity is...
common-pile/stackexchange_filtered
Jackson writeValueAsString() throws JsonMappingException periodically seeing periodic exceptions thrown when calling writeValueAsString() to marshall to JSON periodically...but, they always work when retried... This is thrown by Jackson's API (v2.7.5) when parsing/marshaling a (non null) Java Date value to JSON... here...
common-pile/stackexchange_filtered
Pyspark - "Recursive" function involving last day I'm working on a process in pyspark which I have a dataframe and I'm trying to add one more column (using withColumn method). The problem is that the formula is: STATUS1 = If 'PETP-today' > 0 then 'Status1 last day' + 'PETP-today' else 0 Each result for Status1 involv...
common-pile/stackexchange_filtered
Co-using folder with root I'm searching for a workaround for creating a folder which will be fully co-used with root and user including new subdirectories. Example of usage: I have an application which sometimes needs to run under root. The application has some global configuration files and project configuration fi...
common-pile/stackexchange_filtered
Adding a detailed gradient border to simple div Basically, I was wondering if it were possible to create a detailed gradient type border like the one in the picture, and apply it to a simple box. I made the preview in photoshop. Here's your answer: http://stackoverflow.com/questions/2717127/css3-gradient-borders I d...
common-pile/stackexchange_filtered
ORA-14400: inserted partition key does not map to any partition I try to create table from ORACLE setup script After I run the script SQL> @home/oracle/Desktop/Setup.sql Following output appears: Table dropped. Table created. Index created. INSERT INTO tab1 ERROR at line 1: ORA-14400: inserted partition key does not m...
common-pile/stackexchange_filtered
Why is solving for a 2x2x2 tensor with specific conditions so slow? I am trying to find the space of all 2x2x2 tensors such that on each dimension the sub tensors are orthogonal. I ran the following wolfram desktop code: Solve[ a*Conjugate[e] + b*Conjugate[f] + c*Conjugate[g] + d*Conjugate[h] == 0 && a*Conjugate[d]...
common-pile/stackexchange_filtered
Is there a way to check if an object is undefined in typescript? I have read a Github issue that says there was no consensus on using T? as a way to see if a type is null | undefined which is a shame. I also read recommendations not to use null so I've set "strictNullChecks": true, in my tsconfig but with the code belo...
common-pile/stackexchange_filtered
chain of Actions - unable to select a submenu Maybe somebody can help me figure this out. I want to be able to create a chain of Actions using java and Selenium webdriver. Here is what the source of the webpage looks like: <li id="menu-item-14" class="menu-item menu-item-type-post_type menu-item-object-page current-m...
common-pile/stackexchange_filtered
Proposition about regular functions on an affine variety I have the following basic issue: Let $X$ be an affine variety in $\mathbb{A}_{k}^ {n}$. Co-ordinate ring of $X$ be $A(X):= k[x_1,\ldots ,x_n]/I(X)$ whereas $K(X)$ be its quotient field. $$ \mathcal{O}_{X,p}:=\{f/g :g(p)\neq0; f,g\in A(X)\} \\ \mathcal{O}_{X}(U)...
common-pile/stackexchange_filtered
How to dismiss keyboard in SwiftUI Keyboard when pressing done? In SwiftUI, TextField("", text: $input) has this automatic behavior, when you press done, the keyboard is dismissed. This is exactly what I wanted with the done button. However, if you use TextField("", text: $input, axis: .vertical) the done button will b...
common-pile/stackexchange_filtered