text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
Xamarin Forms Bug?
In one of the standard Pixel device emulators, while running your app, if you go into "sleep" mode by pressing the power button, then wake the device up-- and do this twice -- then the UI becomes unresponsive, but actions will fire if you press buttons--you just won't see the UI update or the screen ... | common-pile/stackexchange_filtered |
How to make soft/rounded edges using PathGeometry in .xaml C#
I am trying to draw in C# for the first time and I have a problem with positioning.
I made some background but I have problem to finish it. I always destroy the whole figure...
I need to change down edges and make them soft/rounded like on mobile screen. I h... | common-pile/stackexchange_filtered |
calculate average with a dynamic filter
I have a set of data that looks something like the attached, I would like to create a matrix that allows me to calculate the average size by the number of months selected. For example, if the filter is set on Jan and Feb, the average for city abc would be zone 1 (848) and zone 2 ... | common-pile/stackexchange_filtered |
Excel 2003 Freezes When Worksheet with PivotTable Selected
All of the sudden, my Excel 2003 began an odd behavior today. Whenever I click on a worksheet tab that has a PivotTable on it, I become unable to click on any other tabs or on the menu with the options to minimize, maximize, and size at the top left of the wor... | common-pile/stackexchange_filtered |
How to show a dialog on top of a locked screen with Jelly Bean
I have an Eclair based app that shows a full screen dialog on a locked phone. The dialog appears, and once the dialog disappears (because a user clicked a button on it), the locked screen is shown to the user for them to enter a passcode. All desired behavi... | common-pile/stackexchange_filtered |
How do I use compc to build a swc that dynamically links in Flex components?
In Flash Builder 4.6, when managing a Flex project, under the Build Path options for a Flex Library Project, I can select between "external" and "Merged into code" Framework linkage, with "external" being the default.
How can I use external li... | common-pile/stackexchange_filtered |
Oracle regexp to match only digits after certain combination of signs
I have a string which roughly looks like: XXXXXXXXX - 1234567 XXXXXXXX,
where X can be either digit, string or sign (<,>,. or space).
I need to extract only these numbers after ' - '.
I have tried following:
select regexp_substr('17.12.12 <XXXX... | common-pile/stackexchange_filtered |
How to achieve drop-shadow with no blur in React Native
I'm new using React Native and I'm trying to map the following component (made in web) but for React Native with no success:
Elevation and shadow properties does not do the trick because they add some blur to the resulting shadow. Which would be the proper way to... | common-pile/stackexchange_filtered |
Linux SSH database transferring between two databases MySQL
This is the situation: I have server with linux, and there is two databases in it. I need to make a cron job to transfer some data from db1 to db2. The thing is i need this:
db1->table1->column1 + db1->table1->column2 + db1->table2->column1 TRANSFER TO db2->ta... | common-pile/stackexchange_filtered |
Martin: The apartness approach seems backwards at first - defining when points are separate rather than when they're close. But I'm starting to see why Bishop found classical topology inadequate constructively.
Stephen: Exactly. When we can only prove that two points aren't equal by exhibiting a concrete separation, a... | sci-datasets/scilogues |
How to open powerpoint from Windows 8.1 app
I am trying to build an windows 8.1 app that open powerpoint file from local computer in full screen, and within that it contain three buttons to perform next ,previous and exit. I was able to do so using winform but not in WPF. In winform I used panel control in which I embe... | common-pile/stackexchange_filtered |
Coming "down" or "up" (traveling from one place to another)
In English (at least US English), it is common to use "up" and "down" when giving directions. For example:
When are you coming down to visit us?
I went up to see him for the weekend.
The "up" and "down" can refer to either north/south or higher/lower elevati... | common-pile/stackexchange_filtered |
"Invalid security token" while using urllib2
I am trying to get the content of a http request using a python script. But I am receiving
Invalid security token error while executing it.
Here is the following snippet
#!/usr/bin/python
import urllib2
username="username"
password="password"
url='some_url'
def encodeUserD... | common-pile/stackexchange_filtered |
How should we deal with ill-founded questions?
Inspired by this question on the parent site.
Somewhat related to this meta question, but people who ask ill-founded questions are not necessarily cranks.
People will continue to ask questions like "how do I prove X?" for false statements X. What is the best way to deal... | common-pile/stackexchange_filtered |
Msfvenom format specifier
In msfvenom what does it mean exactly when i specify the format to C or Python? And what is the format 'raw' for? I know, when the format is psh-cmd it runs in the command prompt and when it is exe it runs as a normal executable, what about the others?
msfvenom -p windows/shell/reverse_tcp -f ... | common-pile/stackexchange_filtered |
"No default Matlab path found" When trying to install packages
I'm on an academic license for using mathematica, so I need to be connected to my institute network through the VPN. By while installing i get the error.
I tried to run following command: sudo apt-get install openvpn
Reading package lists... Done
Building d... | common-pile/stackexchange_filtered |
How to flush the serial port struct serial_icounter_struct
I am working on serial communication with linux driver. In which I am using tcflush() call with TCIOFLUSH to flush port.
Also I am using serial_icounter_struct to get the port statistics of rx,tx,parity,overrun etc.
I want to clear the serial_icounter_struct w... | common-pile/stackexchange_filtered |
How to work with third-party libraries when doing unit-testing?
I'm a newbie when it comes to unit-testing, I've tried to do a unit-test with Karma and Jasmine from an app that already existed.
Basically the app has a lot of dependencies from different third-party libraries being used. So when I tried to create a unit-... | common-pile/stackexchange_filtered |
Did Swami Vivekananda ever write a book called Gnana deepam?
So, I found these suspicious pictures in twitter.
Christian preachers and missionaries are badly needed for India. Let them come here in hundreds and thousands. Teach us about the Holy life and history of JESUS. Let His spiritual teachings penetrate the hea... | common-pile/stackexchange_filtered |
BeautifulSoup4: Missing Parsed Table Data
I'm trying to extract the Earnings Per Share data through BeautifulSoup 4 from this page.
When I parse the data, the table information is missing using the default, lxml and HTML 5 parsers. I believe this has something to do with Javascript and I have been trying to implement P... | common-pile/stackexchange_filtered |
Prove that for all positive integers n, $20^{2n} + 16^{2n} −3^{2n} −1$ is a multiple of 323
Prove that for all positive integers n, $20^{2n} + 16^{2n} −3^{2n} −1$ is a multiple of 323
I tried to prove by induction, no luck
Step 1: Base Case (n = 1)
$20^{2(1)} + 16^{2(1)} - 3^{2(1)} - 1$
$= 646$
The expression is divisi... | common-pile/stackexchange_filtered |
Finding a frame for a vector bundle in a smooth manifold with a connection
I am trying to solve the following exercise:
Let $P$ be a vector bundle over a smooth manifold $M$ with a connection $\nabla$, and let $p \in M$ . Show that there is an open set $U$ of $M$ with $p \in U$ and a frame $E_1, \ldots, E_k$ of $P$ def... | common-pile/stackexchange_filtered |
convert List of hashmap into set
i want to cast List<HashMap<String, Object>> into Set<StudentInfo>
i have method
public List<HashMap<String,Object>> getStudentData(studentId);
i want to convert the result into Set so i used
Set<StudentInfo> studentFilteredInfo = new HashSet<>();
List<Map<String, Object>> studentCom... | common-pile/stackexchange_filtered |
Ember simple auth tests failing intermittently
I am struggling to debug failing tests on an Ember 3.0 app. I have a login form using ember-simple-auth. The authenticate action looks like this:
let { identification, password } = this.getProperties('identification', 'password');
this.get('session').authenticate('authenti... | common-pile/stackexchange_filtered |
Router-outlet not appearing below navbar module
I am trying to create a website using angular. I am done with the navbar, but when I try to add the next module, it is not appearing under the navbar module.
The app.component.html looks like this:
<app-navbar></app-navbar>
<router-outlet></router-outlet>
And my homepage... | common-pile/stackexchange_filtered |
Restrict access to admin area by IP
What is the best way to restrict the access to the admin area by IP in Magento? Bear in mind that admin can work either from /admin or index.php/admin
You can place the following codes into your .htaccess file:-
RewriteCond %{REQUEST_URI} ^/(index.php/)?admin/ [NC]
RewriteCond %{REM... | common-pile/stackexchange_filtered |
How to loop through pandas df column, finding if string contains any string from a separate pandas df column?
I have two pandas DataFrames in python.
DF A contains a column, which is basically sentence-length strings.
|---------------------|------------------|
| sentenceCol | other column |
|-------------... | common-pile/stackexchange_filtered |
keybase/coinbase
How can I export xlm from keybase to coinbase?
Keybase app says, "Stellar transactions are no longer supported in keybase app", "Please export your stellar balances to alternative wallets using your secret keys"
However, there are no options (that I can see) to export wallet!
Additionally, I have trie... | common-pile/stackexchange_filtered |
Why is the print statement in the class executed when an object isn't even created?
When I run the code below the output is "hello".
However, the print statement is part of the class pl, and i never created an instance of the class pl, so why is the print statement being executed?
class pl:
def __init__(self,a,b):
... | common-pile/stackexchange_filtered |
A parametrization for $\frac{\sin(x)}{x}$ as a revolution surface around $y$ axis
I'm looking for a parametrization for $\frac{\sin(x)}{x}$ as a revolution surface arround the $y$ axis.
I have tried $X(x,y)=\Big(\frac{\sin(y)\sin(x)}{x},x,\frac{\cos(y)\sin(x)}{x}\Big)$.
ParametricPlot3D[
{Sin[y] Sin[x]/x,x ,Cos[y] Si... | common-pile/stackexchange_filtered |
Identity Column Inserting Null With MVC Code First
I am using MVC to generate my database. I have the following code structure in my UserProfile class:
[KeyAttribute()]
[DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)]
public int UserId { get; set; }
public string UserN... | common-pile/stackexchange_filtered |
Number of ways of arranging three boys and two girls in a line of five chairs so that the girls are adjacent
We have $3$ guys and $2$ girls who are going to be seated on five lined-up chairs. The question is how many ways can they sit so that the girls stay next to each other.
My thought is that (if we number the chai... | common-pile/stackexchange_filtered |
Expectation of Ito Integrals.
Consider the stochastic differential equation:$$dx(t)=f(x(t))dt+g(x(t))dB(t)$$
where $B(t)$ is the standard brownian motion.
Is the following always true:
$$\mathbb{E}\int_0^tH(x(t))dB(t)=0$$
If it is not true in general, what are the conditions on the function $H(x)$ that makes the equali... | common-pile/stackexchange_filtered |
Does Tensorflow Lite support the TimeDistributed layer?
I'm currently working with a Keras model with TimeDistributed, Conv2D and Bidirectional(LSTM) layers (code example below) and I'm trying to convert to TF Lite.
x = TimeDistributed(Conv2D(16, kernel_size=(3,3), strides=(1,1), activation='tanh', padding='same'))(inp... | common-pile/stackexchange_filtered |
Cannot retrieve a Google Profile for editing
I'm trying to retrieve a Google Profile for editing from the Profile API using the C# .NET GData SDK but authentication seems to be failing. I'm using a number of other Google API's and can authenticate with them just fine and am using the same code approach:
var settings = ... | common-pile/stackexchange_filtered |
ChatMessages.Add(message) is not hit
I'm getting started with simple signalR application. When user puts his "name" and "room". It is sent to my hub
//This is Index page
public async Task<ActionResult> OnPost()
{
UserConnection userConnection = new()
{
Name = UserInput,
... | common-pile/stackexchange_filtered |
Upload file in PHP using DAV Protocol
Can someone please advise on uploading a file using the DAV protocol in PHP? I have had a look around the web and everything seems pretty over-complicated.
I will need to be uploading image files server side after user upload to a directory over DAV - is there a good PHP class avai... | common-pile/stackexchange_filtered |
Method naming convention in Scala -- mutable and not version?
This example is trivial just to show the point.
Let's say I use matrix library, but is lacks some power, let's say doubling every element in matrix is so crucial for me, I decide to write a method doubleIt. However, I could write 2 versions of this method
m... | common-pile/stackexchange_filtered |
Removing/Appending images with radio button
I have a set of radio buttons I'm using to append and remove images within a div. My image sources are in a data set value within the radio buttons:
<input class="radioGroup" name="radioGroup" type="radio" id="radio1" data-source-image="/image1.jpg" data-source-desc="This is ... | common-pile/stackexchange_filtered |
syslog stops logging after log rotation
Every time after newsyslog rotates the log file, syslog stops logging into the file. Until a syslogd restart is done.
(myserver:wheel)# logger -p local1.info -t myprocess "hello thiru"; ll myfile.log; cat myfile.log
-rw-r--r-- 1 root wheel 0B Nov 10 11:26 myfile.log
(myse... | common-pile/stackexchange_filtered |
SSRS data set variables not read by the other data source query
I have an issue in querying 2 datasets in SSRS. I have 4 datasets out of which 3 points to 1 data source and 1 point to the second data source.
The parameters of the report get the values from the datasets of 1 data source. Then once the parameters are ass... | common-pile/stackexchange_filtered |
Calculating fields in confirmation email
Is it possible to:
Set a number value for a dropdown, but don't show it in the UI (can be in the source)?
Take the values from the multiple fields and multiply/add them and send the output in the confirmation email?
Looking to create a form that people can fill out and send t... | common-pile/stackexchange_filtered |
Compute Coordinates From Arc Length In Snell's Law
I want to build a raytracer for materials of continuous optical density. I found (or actually someone on Reddit found it for me) this article, which is basically exactly what I needed. Just a minor thing, it would be nice to have an inverse function of the arc length... | common-pile/stackexchange_filtered |
Get Header Request Javascript: cURL working, fetch forbidden
i want to GET Request the Header of this link https://soundcloud.app.goo.gl/u6XXuqp3Q7Q7WXgH8 in a React App. When doing a simple request
request('https://soundcloud.app.goo.gl/u6XXuqp3Q7Q7WXgH8', function (error, response, body) {
console.error('error:... | common-pile/stackexchange_filtered |
Android why does this NOT throw wrong thread exception?
I was under the impression that views can only be manipulated from the main thread... however, why does this NOT crash:
public class MainActivity extends Activity {
TextView tv;
@Override
protected void onCreate(Bundle savedInstanceState) {
sup... | common-pile/stackexchange_filtered |
Given members $x$, $y$ of subroup $HN$, show that $xy^{-1} \in HN$?
Let $H$ and $N$ be subgroups of a group $G$, with $N$ normal in $G$.
It is given that $HN$, the subset of $G$ consisting of elements of the
form $hn$, where $h \in H$ and $n \in N$, is a subgroup of $G$.
Given members $x$, $y$ of subgroup $HN$, sh... | common-pile/stackexchange_filtered |
HowTo test Modal emitter in Angular2?
This is my class component:
export class GoalSettingsPage {
public goal: Goal;
dismiss() {
this.viewCtrl.dismiss();
}
}
This is my test:
it('should emit on click', () => {
let g = new Goal()
let settingModal = Modal.create(GoalSettingsPage... | common-pile/stackexchange_filtered |
Identification of plant gall / seed pod
I hope someone can anyone identify this plant material found in a meadow beside a river in UK. The nearest trees are about 50m away, across the river.
It is about 10cm long; flattish, soft and fleshy. There is a suggestion of a stalk at one end. It's been trodden on, so it might ... | common-pile/stackexchange_filtered |
Listing directories with a specific one first
Is it possible in unix shell to get all folders, starting with specific one? For example I have folder1 and folder2, after I use "tree" I get them both like: folder1, folder2. But I want to get: folder2, folder1. ( in a different sequence)
What kind of 'different sequenc... | common-pile/stackexchange_filtered |
Quick Settings Toggle in Android N
I'm trying to add a quick settings toggle to my app in Android N. The quick tile shows up, but it doesn't do anything when clicked. I can see the visible feedback when touched, so I know that it is recognizing the click, but it doesn't do anything when clicked.
Here's my service code:... | common-pile/stackexchange_filtered |
LAMP/MySQL - run time delay during SQL batch insert
I have a SQL batch insert statement that is properly indexed and verified via explain. I am creating 73 rows with the batch insert. As part of the batch insert I am recording the date/time stamp using NOW() on each inserted record.
During the insert, after 68 record... | common-pile/stackexchange_filtered |
Unable to incorporate birth pulses in a SIR model using deSolve
I am working on a SIR model with birth pulses, using deSolve package. With the following code, I expected birth pulses at time step 0, 12 and 24, but the output reveals that there are no birth pulses-actually no births at all!
library(deSolve); library(gg... | common-pile/stackexchange_filtered |
"Subject" and "predicate" in sentences starting with "there"?
A third grade student has been asked to find out the subject and the predicate in the sentence:
There are a book and a pen on the table.
Here, it says that the real subject is "a book and a pen" but I know that "there" can also be called a "dummy subject"... | common-pile/stackexchange_filtered |
How can I change component without changing URL in Angular?
I would like to change component without changing URL. Let's assume that I have a component register. When I open my website I have url www.myweb.com. Then I would like to register by clicking sign up. I would like to display my component register without chan... | common-pile/stackexchange_filtered |
Which is the correct way to say it "who are you spending it with?" Or "whom are you spending it with?"
As per the grammar rules, if "I" is the subject of the sentence then the other person must the object. And generally whom is used in the objective form but in this case the prior format is more common than the latter.... | common-pile/stackexchange_filtered |
Detrrminant of a matrix
I need to prove that $\det A_n \ne 0$, if $a_i \ne a_j$ and $a_i \ne 0$, where
$A_n$ is a matrix with the first row
$a_1 +a_2, a_2+a_3, \ldots , a_{n-1}+a_n , a_n$.
Second row consists of all products of two elemnts where at least one is $a_i$ or $a_{i+1}$ for $2i$ - entire. For example $a_{12... | common-pile/stackexchange_filtered |
jdk1.8.0_25 no javac.exe
I've seen other questions like this but not concerning JDK1.8.1_25. There is no java.exe fin in the bin file. In fact there isn't much in the bin file at all like there is in JDK<IP_ADDRESS>. So when I'm trying to execute java programs from the cmd line, nothing is happening. When I type javac ... | common-pile/stackexchange_filtered |
Java processes vs. threads for thread affinity
I recently wrote some code[1][2] that tried using JNA to make calls to sched_setaffinity in an attempt to set the affinity of the process to a particular core. The first argument of the function sched_setaffinity is the process id.
Calling the function with pid as 0(referr... | common-pile/stackexchange_filtered |
Can you develop Desktop(.exe) In Visual studio?
I Started learning Python 3-4 months ago and today I accidently saw a friend use VS 2019
I became curios and searched up the usage for it using python
It says Build WEB APPS using python...
Can I make .exe apps using VS 2019 using PYTHON by any chance?
VS will do nothing... | common-pile/stackexchange_filtered |
How to get duration a video - laravel
I want to get the duration of my videos when I upload them.
To do this, I upload my videos like this:
$video = Carbon::now()->timestamp . '_' .
$request->file('video')->getClientOriginalName();
$request->file('video')->move(
$this->getCorrectPathOn... | common-pile/stackexchange_filtered |
Changing image back to original after it is changed on hover?
I am attempting to use jQuery to hover over an image while it changes the other. I have that part done, the part I don't understand is when I hover over the image and then move the mouse off of it, how do I get the original image to come back? Any help would... | common-pile/stackexchange_filtered |
How do I check if a network drive is online/offline without my program hanging?
I want to do some IO operations (reading files, listing folder content, etc) on a shared/network folder (\\JoulePC\Test\). If the folder is offline then the program will freeze for quite a while EVERY TIME I try to access it.
What I need t... | common-pile/stackexchange_filtered |
Screen resolution scale in JavaFx game
I'm creating a board game in JavaFx, and it works fine in my desktop PC, with a 1920x1080 screen. When i try to open it in my Laptop (which is 1920x1080 as well, but with the default screen size at 125%), it doesn't show the elements properly anymore (their size overflows the boun... | common-pile/stackexchange_filtered |
android.support.v7.widget.SwitchCompat render error in targetSdkVersion 24 (Android N)
I am using
dependencies {
compile 'com.android.support:appcompat-v7:24.0.0'
}
for
android {
compileSdkVersion 24
buildToolsVersion "23.0.3"
minSdkVersion 18
targetSdkVersion 24
}
I have an Activity with a theme
<st... | common-pile/stackexchange_filtered |
Can we use bash here document to run perl script?
I run the below perl script as a bash here document. My intention is that a variable is read from STDIN, then the arithmetic calculation is done and then printed.
However, the program is finished at once without waiting for input from STDIN.
A warning "Use of uninitiali... | common-pile/stackexchange_filtered |
Not allow same email to register multiple times
I would like my newsletter signup to only allow diffrent emails to signup and not allow the same email to sign up multiple times with a message email is allready in use. I cant seem to figure it out any help would be appreciated. The code is below i added the code i thoug... | common-pile/stackexchange_filtered |
How to use vlookup and countif together to get needed result
I am trying to come up with result for the following problem:
I have a spreadsheet with two sheets - Report and Groups.
Report sheet has two columns - UPI and Disabled groups
Group sheet has three columns - UPI, Group Name and Status.
Every time I type 'Disab... | common-pile/stackexchange_filtered |
Need guidance to simplify this query
We have a huge query with many conditions.
However, we feel that some of the conditions are irrelevant
can you please let me know if where clause here, can be removed
Please find below excerpt of the huge query ( the sub-query) with where clause
SELECT f1, ... f10
FROM A
JOIN
SELE... | common-pile/stackexchange_filtered |
Flutter drag and drop items between multiple lists
I'm trying to implement a two-level drag and drop list in Flutter with draggable sections and draggable items within those sections, that can be dragged from one section to another. I found the drag_and_drop_lists package. Functionality-wise it is exactly what I'm look... | common-pile/stackexchange_filtered |
Recover DHCP lease if it has been lost
So my system lost it's DHCPv4 lease. Since this is the WAN uplink, the system then became unreachable. I can't see any trace that it has tried to recovery from this.
Apr 3 00:31:47 mistik systemd-networkd[1519076]: vlan20: DHCP lease lost
Apr 3 00:31:47 mistik systemd-networkd[1... | common-pile/stackexchange_filtered |
How to restart the program? (Restart button in game)
I am making a game and when you loose there is a Play Again button. I'd like to when you hit that have the game totally start over. It may seem like a basic question but it's within a class and it's not at the end of the program so it can't just be one big while to g... | common-pile/stackexchange_filtered |
Looking to update from google-analytics.com/ga.js to stats.g.doubleclick.net/dc.js with old code
I would like to change google-analytics.com/ga.js to stats.g.doubleclick.net/dc.js
My current code (old, but afraid to change it -- inherited) is
<script type="text/javascript">
var gaJsHost = (("https:" == document.locatio... | common-pile/stackexchange_filtered |
Unity Container with Composition Root
I am new to DI and unity container. I am trying to use Unity with Composition Root. I have all my unity mappings/registrations in app.config file and just want to centralise all the resolve calls for my application.
The Application has many classes and very nested object graph crea... | common-pile/stackexchange_filtered |
How can I hide children of draft pages using wp_list_pages()?
I'm displaying a simple sitemap with wp_list_pages();
$args = array(
'sort_column' => 'menu_order',
'title_li' => '',
'post_status' => 'publish'
);
wp_list_pages( $args );
The problem is that by default this also shows the published children o... | common-pile/stackexchange_filtered |
How can we get CA's public key?
To get a public key of some organization or someone we want to send an encrypted message to, we need to make a request to CA asking that organization's public key. CA then returns X509 certificate. It contains CA's signature. To decrypt it we need to have a CA's public key. How can we se... | common-pile/stackexchange_filtered |
Live output status from subprocess command Python
I'm writing a script to get netstat status using subprocess.check_output.
cmd = 'netstat -nlpt'
result = subprocess.check_output(cmd, shell=True, timeout=1800)
print(result.decode('utf-8'))
The above is running perfectly. Is there any way to get the live-streaming out... | common-pile/stackexchange_filtered |
An invalid provider type has been specified
I have the following code to generate electronic documents (SUNAT). I have tried to capture the key of a .pfx with "RSACryptoServiceProvider ()" and "X509Certificate2 ()" of the variable "certificate" to the variable "rsaKey" that contains the data (The digital certificate, t... | common-pile/stackexchange_filtered |
Write GeoJSON As Feature Object in Postgis
I'm trying to create a geofence/circle from a lat/long set and I'm close except that the GeoJSON that PostGIS creates differs in structure from the client library that our front-end uses. Here is my python to create the geofence:
session = DatabaseSessionService().create_sess... | common-pile/stackexchange_filtered |
Importing package in client mode PYSPARK
I need use virtual environment in pyspark EMR cluster.
I am launching application with spark-sumbit using the following configuration.
spark-submit --deploy-mode client --archives path_to/environment.tar.gz#environment --conf spark.yarn.appMasterEnv.PYSPARK_PYTHON=./environment/... | common-pile/stackexchange_filtered |
GTK - How to style a button in headerbar?
I want to set color like blue and red in a application, is something like
this image.
I imagine that I can do it with css styles, but if is there other way much more simple like set a property or a class.
I use GTK 3.12 and Python, but you can show me examples in other lenguag... | common-pile/stackexchange_filtered |
How to send a message to a running app (Node.js)
I have a running app called "app.js" it keeps running to do some task.
How can I let the user run another process of the app just to send a message to the current running process to tell it to do something.
node app.js reload
One solution is utilizing some sort of stor... | common-pile/stackexchange_filtered |
Is it possible to download complete webpage using typhoeus instead of HTML only in Ruby?
I am using ruby to download a complete web page using typhoeus, but it downloads only HTML,
request = Typhoeus::Request.new(
"www.example.com",
method: :get,
headers: { Accept: "text/html"... | common-pile/stackexchange_filtered |
Limit of the composition function $\sin(\cos(x))/\cos(x)$ at $\pi/2$ in Apostol Exercises 3.8
In Apostol calculus exercise there is a bunch of exercises where we need to find a limit of a composite function. One example is this:
$\lim_\limits{x \rightarrow \frac{\pi}{2}} \frac{\sin(\cos(x))}{\cos(x)}$
Well, intuitively... | common-pile/stackexchange_filtered |
Databricks job cannot find python library imported in the cluster
I am trying to run a cron job on my notebook and I get an "no module found" error. When I look at the job logs this is the full error:
ModuleNotFoundError Traceback (most recent call last)
<command-2307930105977041> in <module>
... | common-pile/stackexchange_filtered |
HTML address validation pattern
Can any one help me with regex patter to allow address validation based on below limitations:
Allow only alphanumeric characters, spaces, apostrophes ('), dashes (-), commas, (,), periods (.), number signs (#), and slashes (/),
Must contain at least one numeral, one alphabetic character... | common-pile/stackexchange_filtered |
Touch events with D3.js and TUIO
I have my D3 Map which will show several data and right now I'm stuck with the implementation of multi touch and the d3.slider and in general touch events. This video shows what it does right now. I can spawn points with the d3 slider and pan around the map. All this was achieved by usi... | common-pile/stackexchange_filtered |
How to Restrict a Standard macOS Account While Allowing System Updates and Specific App Updates?
I'm using macOS Sonoma (latest version, as of December 2024), and I have a MacBook with the following setup:
I am the admin account holder.
A standard account is used by someone else (a trusted individual).
The standard acc... | common-pile/stackexchange_filtered |
Optional parameters in python dict
Is there a way to include optional parameters into Python dictionary?
For example, I have the following return statements for get requests. They are dependent on the input and mostly identical.
If the region is passed as an input parameter, we have:
if region:
return {
's... | common-pile/stackexchange_filtered |
Do Interlocked.Xxx methods guarantee value updated in all data caches?
Example:
Thread a: Interlocked.Increment(ref x);
Thread b: int currentValue = x;
Assuming thread b executes after thread a, is "currentValue" in thread b guaranteed to be the incremented value? Or, does thread b need to do a Thread.VolatileRead... | common-pile/stackexchange_filtered |
how to display all percentages on Google PieChart
I'm facing two problems.
How can I make sure that the whole legend can be seen under the graph? Indeed when the legend is too big three points are added.
My other problem concerns pie charts. How to make all the percentages appear on the graph, by default it puts them ... | common-pile/stackexchange_filtered |
Mat-form-field - Styling when out of focus and with text in mat-input
How can I make it so that the out of focus styles don't apply when there is text inside the mat-input while simultaneously being out of focus?
I want to keep these styles when out of focus and with text:
But right now this is what I'm getting when o... | common-pile/stackexchange_filtered |
Access HttpServletRequest from an Authenticator using Dropwizard
Using DropWizard(Jersey Server), Is it possible to access HttpServletRequest from an Authenticator?
I would give it an attribute.
I tried with:
@Context
private HttpServletRequest servletRequest;
But it's not injected.
I registered my Authenticator using... | common-pile/stackexchange_filtered |
Why FirstName, LastName, Company field not found in FieldPermission query result?
I'm trying to get all fields and its read and write permission using below query
SELECT Field, PermissionsRead, PermissionsEdit FROM FieldPermissions WHERE SObjectType ='Lead' AND parentId IN ( SELECT permissionSetId FROM PermissionSetAss... | common-pile/stackexchange_filtered |
How to move all vertical scrollbars to the left side?
I am left-handed and recently started using the touchscreen on my laptop more. There is even a bluetooth connected stylus available for it that works quite well for painting with applications like MyPaint or Gimp.
However, whenever there is a dialog or window that h... | common-pile/stackexchange_filtered |
How to find the number of lines in a text file given input in a program
We have to create 2 programs sortwords.c and print_anagrams.c
We are then supposed to type the command (to obtain the output):
./sortwords < wordfile.txt | sort | ./print_anagrams > anagrams.txt
In the sortwords.c program, I'm using gets() functi... | common-pile/stackexchange_filtered |
JAXB unmarshalling returns null attributes command line
JAXB unmarshalling returns null attributes when I run the jar in command line. But works fine with eclipse.
File file = new File("oozie1.xml");
JAXBContext jaxbContext = JAXBContext.newInstance(com.ClassGen.ObjectFactory.class);
Unmarshaller jaxbUnmarshaller = jax... | common-pile/stackexchange_filtered |
Hiding & Unhiding Excel Rows
Here are my requirements:
The user will select 1 - 10 in a drop down list, which unhides up to 10 groups of rows below this. Let's call each group to be hidden/shown "X", and X consists of about 13 rows, and there are 10 X's stacked vertically on the sheet. Therefore, when a user selects '2... | common-pile/stackexchange_filtered |
Why does the root element in layout xml file have height and width as match_parent
When I create a new android project using eclipse for android developers, it generates all the files which includes the layout XML file. I checked the root element (LinearLayout) in it and its attributes are,
android:layout_width="match... | common-pile/stackexchange_filtered |
How can I see a list of status-completed questions sorted by when they were completed?
I'd like to see a list of "status-completed" questions so I can tell what has changed lately. Right now you can see everything with that tag, and you can sort by date. However, this is the date the question was asked, not when the su... | common-pile/stackexchange_filtered |
How to validate format of data using glob in python?
I have a list of different files in my folder and these files have several formats, like PDF, txt, Docx and HTML. I want to validate the format of the files in python.
Here is my attempt
import os
import pdftables_api
import glob
path = r"myfolder\*"
files = glob... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.