text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
GCC cannot find stdio.h with OS X even though command line tools is installed
I'm using OS X 10.10.4 and am having trouble compiling .c files. Most help I've found on this issue suggests installing Xcode's command line tools however, trying to do so gives
xcode-select --install
xcode-select: error: command line tools ... | common-pile/stackexchange_filtered |
VBA: Find and replace text
In my word document, there are multiple instances of ABC, but only one of ABC123.
My task is to find the one instance of ABC123 and copy it onto a separate word document. As there are thousands of documents I will need to sort through, I would like to make a macro to relieve some of the pain.... | common-pile/stackexchange_filtered |
CockroachDB C++ transaction retry issue
I'm trying to run the basic C++ example, basically:
void executeTx(
pqxx::connection *c, function<void (pqxx::dbtransaction *tx)> fn) {
pqxx::work tx(*c);
while (true) {
try {
pqxx::subtransaction s(tx, "cockroach_restart");
fn(&s);
s.commit();
... | common-pile/stackexchange_filtered |
Adding a HTML table to a bookmark in a Word document with Excel VBA
There are 2 parts to my macro. 1 part creates emails and 1 part creates a Word Document. We use the Word feature when we don't have an email address. This is an Excel macro using VBA.
The email macro creates a table (3 column) with the details, a bl... | common-pile/stackexchange_filtered |
"Pre-commit" command is not found by bash but is installed on macOS
Problem Description
I'm having trouble making commits, when I try to make a commit with the command, for example:
$ git commit -m "add readme"
pre-commit not found. Install pre-commit with the command pip3 install --user pre-commit or follow the steps ... | common-pile/stackexchange_filtered |
Secure Passwordless MFA authentication on mobile app
I want to secure my mobile app with a passwordless MFA mechanism.
The registration/login flow would be:
You register you account online with a username and a mobile phone (an OTP will be sent to verify the phone number).
You login to the app for the first time by pr... | common-pile/stackexchange_filtered |
Displaying validation errors on "new" view
In this section of the Rails guide, it is instructed to add @article = Article.new in the new method of ArticlesController, explaining that otherwise we won't be able to access @article.errors.
From what I understand, @articles = Article.new creates a new instance of Article, ... | common-pile/stackexchange_filtered |
Material UI: How to change font size of label in React Material Ui Stepper?
In React material ui, I want to change font size of stepper label. How to acheive that?
function getSteps() {
return [
"OPTION 1",
"OPTION 2",
"OPTION 3"
"OPTION 4"
];
}
Perhaps you could add a custom... | common-pile/stackexchange_filtered |
Using cfx to make a Thunderbird addin
I'm trying to make a Thunderbird addon that will call external code to produce a lump of data to attach to an outbound email, labelled as some custom type so a recipient mailer can just be told to use our app to handle such inbound attachments. Regardless of implementation detail, ... | common-pile/stackexchange_filtered |
14.04 updates broke Java
Yesterday (8/15/2018) the regular Ubuntu updates on 14.04 LTS caused Java to stop working on two different VirtualBox machines. Netbeans 8.2, reliable until now, can no longer start up, and after a delay I get a kernel oops in the java process.
After this happened to my first machine, I made a... | common-pile/stackexchange_filtered |
Why is off-centered prior necessary for HMC sampler?
In this PyMC3 tutorial on Bayesian Mixed Effects Models, there is some Re-parameterization "to avoid chain divergences."
with pm.Model(coords=coords) as hierarchical:
# Hyperpriors
intercept_mu = pm.Normal("intercept_mu", 0, sigma=1)
intercept_sigma = pm.... | common-pile/stackexchange_filtered |
Found matches if multiple needles
Sorry, I couldn't find the answer to this, but I'm using str_contains to find matches of a str within another str.
str_contains($haystack, $needle);
However, is there a way to have multiple needles or do I need to use this function several times?
There is no built-in function to do t... | common-pile/stackexchange_filtered |
in `initialize': string contains null byte Ruby
I wrote the following code on my desktop and it worked fine. I downloaded it on my laptop, downloaded ruby (v1.9.3), and tried to run it but got the following error. I'm pretty sure it has to do with Ruby being used for the first time but never got this problem on my desk... | common-pile/stackexchange_filtered |
Solution For Bypassing a Step: Text To CSV Pandas
I read text file with header=None because first 6 lines are unnecessary and becoming obstacle in using '|' as delimiter. Because I need to convert text file in csv file.
Then I need to convert that file into csv file and I again need to import 27evening.csv file by us... | common-pile/stackexchange_filtered |
How solve react native tls/ssl network error?
I use graphql server(in graphql-yoga library).
and I apply the certificate created by the openssl command to the 'https' option.
then I connect graphql-playground through pc chrome browser with using 'https' protocol.
It worked fine.
but It not worked in apps made with reac... | common-pile/stackexchange_filtered |
ObjectDataProvider with MethodName , Refresh not working
I am a newbie to WPF. I had created a window for adding customers and wrote the code-behind in VB and everything works fine: The entry is inserted into the database successfully. Now, I have a problem in refreshing the dataGrid.
Here's my DataGridBinding
<Datagr... | common-pile/stackexchange_filtered |
Getting the current Application and Document from IExternalApplication - Revit
While executing IExternalCommand i can easily obtain the Application and Document via ExternalCommandData
UIApplication uiApp = commandData.Application;
Document doc = uiApp.ActiveUIDocument.Document;
Transaction tran... | common-pile/stackexchange_filtered |
Finding a VBAS defnied Named Range definition
a valueI've inherited a large VBA project and whilst I have lots of dev expereince I have a small amount of VBA. The code reads data off a sheet in the form:
Intersect(Range("colName"), .Rows(intCurrentRow)).Value
Where colName is a named range, or so I thought. I have sea... | common-pile/stackexchange_filtered |
Do the Gemara and the Rema prohibit, or encourage, women putting on talit and/or tefillin?
An article in Ynet Judaism (in Hebrew) addresses the recent controversy regarding the prayer of Women of the Wall at the western wall. And claims the following claims:
אף אחד גם לא הקריא להן את הגמרא שמספרת על ברוריה אשת רבי מאי... | common-pile/stackexchange_filtered |
How can I make my button be clicked under some certain circumstances?
I am a beginner into front-end Development and I am trying make this Clicker game. When I press
increase, the value is increasing by 1. After 20 clicks (at my choice), you can press upgrade and
get your clicks doubled. The problem is that after 20 cl... | common-pile/stackexchange_filtered |
Laravel Artisan CLI safely stop daemon queue workers
In order to process large numbers of jobs, I run a variable number of queue workers depending on howmuch work there is to complete. I don't want to run more workers than are necessary to complete the work that needs to be done in a time period that we deem appropriat... | common-pile/stackexchange_filtered |
Objective-C memory management and nil?
In my book a *joystick that was assigned @property (nonatomic, retain), and it wasn't released only set to nil in the -dealloc method. In the -init method, the same joystick was set to nil. What does this mean?
If it's not released in the dealloc, that's a memory leak if it's al... | common-pile/stackexchange_filtered |
Separate text from hyphens line
I am wondering if there is a better approach than what I am currently taking to parse this file. I have a string that is in the general format of:
[Chunk of text]
--------------------
[Another chunk of text]
(There can be multiple chunks of text with the same separator between them)
I a... | common-pile/stackexchange_filtered |
Gulp appending to files, not overwriting
I'm trying to concatenate my JS files and run them through Babel for a new project, but instead of overwriting the destination file on each task run, my gulpfile only appends changes to the file. So my destination file ends up looking like this:
console.log('hello');
//# source... | common-pile/stackexchange_filtered |
Silverlight 4: Resolving Microsoft.Silverlight.CSharp.targets was not found?
I've been upgrading some Silverlight 3 apps to Silverlight 4 in Visual Studio 2010. My Silverlight 3 apps open fine in Visual Studio, but SL4 apps don't, with the following error:
C:\Path\To\MyProject.csproj : error : Unable to read the proje... | common-pile/stackexchange_filtered |
Organizing Dynamics CRM customizations and update test environment
We are actually reorganizing our CRM customizations. Till now we had one main solution which was containing all the customizations and now we would like to split it by technical matters.
So now on our development instance, we have 4 unmanaged solutions... | common-pile/stackexchange_filtered |
Tabs not coming in bottom when using fragment tab host
Hi I am using FragmentTabHost to display some tabs in my application.
Tabs are displayed but not appearing at the bottom. Here is my layout code for activity
<android.support.v4.app.FragmentTabHost
xmlns:android="http://schemas.android.com/apk/res/android"
android:... | common-pile/stackexchange_filtered |
Android: Activity taking too long to display because of web service Http Request
One of my activities make a http request to a webservice to get some weather data when I start the application.
The issue that the activity will take 3-4 seconds to display because of the webservice request. ( Tested on actual device )
I k... | common-pile/stackexchange_filtered |
Logback-classic conflict with SLF4J through different dependencies
I have an internal library that was upgrade to use logstash which has a mandatory dependency to logback, hence logback-classic (which has its own slf4j appender internally of its packages, which means I can't exclude any library here).
When I try to use... | common-pile/stackexchange_filtered |
Do jQuery ajax calls using JSONP need to be modified (or avoided) due to Rosetta Flash exploit
The fix for the Rosetta Flash exploit is for a service to prepend an empty comment (/**/) to the callback function invocation.
Instead of returning:
my_callback({key1:"value1",key2:"value2"})
it must now produce:
/**/my_call... | common-pile/stackexchange_filtered |
Adding arrays in php
Arrays have been comprehensively covered but am still stumped about how to go around this. I have two arrays which i want to merge without overwriting duplicate keys i.e.
Array1
(
[0] => 0
[1] => 1
[2] => 1
[3] => 1
[4] => 1
[5] => 0
[6] => 0
)
+
Array2
(
[0] => 0... | common-pile/stackexchange_filtered |
Trying to submit a javascript variable as a placeholder value with no user input. Next.js
There are four inputs in my form; token_name, token_expire_date, token_issue_date, token_value. The first two require user input however the second two do not (token_issue_date, token_value). These fields are are predetermined how... | common-pile/stackexchange_filtered |
Accesor method is not recieving var from mutator method
I am making a basic calculator on eclipse, java. But I have a problem with one of the methods as it doesn't accept the right variable.
I know that the problem is in the calculateDifference() and setCurrentValue() method.
public class Dollar {
static int start... | common-pile/stackexchange_filtered |
Derivation of an interpolation function with multiple arguments
I have the following interpolation function:
f[x_,a_,b_]:=70 s[a,b][[1,1,2]][x]
where s[a,b] is the solution of a differential equation.
s[a_, b_] := NDSolve[{
H2[x] == Rx[x]^2 + G[x, a, b],
H2[xmax ]== 1,
H2'[xmax] == Ans[xmax, a, b],
H2''[x... | common-pile/stackexchange_filtered |
Squashing a Large Branch with Several Merges with Itself
I have a feature branch off of master as shown below.
--S1-- (side branch)
/ \
/ \
-F1---F2---F3---F4---F5--> (feature branch - HEAD)
/ / / /
/ / / /
--... | common-pile/stackexchange_filtered |
Component Updating Out of Order Vue
Here is the following code I have using Bootstrap, Vue, and Axios:
SETUP:
*Ignore the tab-contents in component_a
main.js
Vue.component('component_a', {
props: ['info'],
template: `<div>
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center ... | common-pile/stackexchange_filtered |
Incoming shortwave radiation for SEBAL in GEE
I am trying to create incoming shortwave radiation for SEBAL model in GEE. Unfortunately, the error occurs: <quote Image.select: Pattern 'EARTH_SUN_DISTANCE' did not match any bands. >quote
var filtered = landsattoa.filterDate('2021-01-01','2021-12-31')
... | common-pile/stackexchange_filtered |
How to change attribute of MIMEMultipart object?
from email.mime.multipart import MIMEMultipart
msg=MIMEMultipart('mixed')
msg['To']='test'
msg['To']='test2'
print(msg)
produces
Content-Type: multipart/mixed; boundary="===============1302686855105723805=="
MIME-Version: 1.0
To: test
To: test2
--===============1302686... | common-pile/stackexchange_filtered |
In GWT, how can I make my widget escape the display bounds of its containing widget?
So for example, if a context menu was too small for its panel when the menu opened, I should like the menu to spill out of the panel in order to display properly.
In Swing, you can arrange for the widget to render on a 'glass pane' whi... | common-pile/stackexchange_filtered |
PipeInputStream and PipeOutputStream synchronous or asynchronous?
I'm reading a Java book I found a sentence that seems incorrect:
When reading, if there's no data available, the thread will be blocked until it new data will be available. Notice that this is a typical asynchronous behavior, the threads are communicati... | common-pile/stackexchange_filtered |
Is it okay to recreate class component state behavior using useReducer?
so in react hooks we may have multiple states in our component:
const [stateA, setStateA] = useState(0);
const [stateB, setStateB] = useState('Hello World');
const [stateC, setStateC] = useState(true);
but there is a case that we need to update mu... | common-pile/stackexchange_filtered |
Finding the determinant of a matrix with $0$s on the diagonal, $1$s in the first row and column, and $x$ elsewhere.
How do you attempt to solve the deterimnant of
$$D_n=\begin{vmatrix}
0 & 1 & 1 & 1 & \cdots & 1 \\
1 & 0 & x & x & \cdots & x \\
1 & x & 0 & x & \cdots & x \\
1 & x & x & 0 & \ddots & \vdots \\
\vdots & \... | common-pile/stackexchange_filtered |
Making iptables easier to maintain
My network is completely locked down except for a few sites which are whitelisted. This is all done through iptables, which looks something like this:
# Allow traffic to google.com
iptables -A zone_lan_forward -p tcp -d <IP_ADDRESS>/24 -j ACCEPT
iptables -A zone_lan_forward -p udp -d ... | common-pile/stackexchange_filtered |
Dialog flow Agent Query with input String in Japanese / Arabic
I am using dialog flow V1 Apis to query the agent. There is a scenario where the input query string is not english. The language I want to send in is a Japanese / Arabic string
Sample Request
endpoint = "https://api.dialogflow.com/v1/query?v=20150910";
JSO... | common-pile/stackexchange_filtered |
Jquery Font size resize to divs height?
Is there any way to adjust the font size to the height of an div box or an ?. I know there are many ways to adjust the font size to the width of the parent element, but i cannot find something to adjust the font size to the height.
I have several lines in a table:
<table>
<tr>
... | common-pile/stackexchange_filtered |
Adding UserControl dynammiclly to a panel on buttonClick
In my form I have a button and I want to add a user control to a panel each time it's clicked:
public partial class AddInstanceForm : MetroForm
{
private List<Material> material { get; set; }
public AddInstanceForm()
{
Initi... | common-pile/stackexchange_filtered |
Highcharts Legend formatting
I have a line chart which includes 3 lines with 3 different names : Apple, Orange, Watermelon. I would like to add text to each of these legends, for example: Apple - 123, Orange - 456, Watermelon - 789. Could anyone help me how can I do that ?
Thank you in advanced !
Use legend.labelForma... | common-pile/stackexchange_filtered |
java generic class extends the generic argument
Short version:
What is the correct syntax to make a class extends its generic argument:
class A<T> extends T {} // doesn't compile
Long version:
I have a base abstract class (the following code has been shortened just for this post purposes)
abstract class D {
abs... | common-pile/stackexchange_filtered |
is Lucene + classic query search syntax same as using AND
A Lucene query of the form
field1:+"term1" field2:+"term2"
seems to be equivalent to
field1:"term1" OR field2:"term2"
I expected it to be equivalent to
field1:"term1" AND field2:"term2"
(i.e for my particular query on my database query 1 and 2 are returni... | common-pile/stackexchange_filtered |
Automate a deployment task (Use case)
What is the best approach to automate a deployment with the following constraints:
The repository located on bitbucket.
Steps:
pull latest changes from the master branch.
increment the version using this command "npm version patch".
execute build task.
push changes into the repo... | common-pile/stackexchange_filtered |
Why do object-boundaries look better on a badly rectified image?(openCV stereo correspondence)
I got 2 pictures which is almost parallel, and not positioned very far from each other.
I'm using OpenCV to try to create a disparity map (Stereo correspondence).
Because I'm trying to use it in a real world scenario, the use... | common-pile/stackexchange_filtered |
objectCast Sideways casting
I'm trying to replace all dynamicCasts in my code with QT's objectCast. But I've run into a bit of a snag. Here's the hierarchy of my objects:
class ABase : public QObject
class IAbility; // Registered as Qt Interface
class ISize; // Registered as Qt Interface
class Derived : public ABase,... | common-pile/stackexchange_filtered |
What is 'Normalized frequency in the range [0,1)', à la DTMF & Goertzel algorithm
I have a functioning DTMF program. It takes a larger signal and breaks it up into many small components, then analyzes each segment with an FFT to determine if the magnitude of the response for a particular "bin", corresponding to a speci... | common-pile/stackexchange_filtered |
PHPUnit CakePHP 4.X - mock up the identity object, but how?
i written a webaplication with cakephp 4.x. In my controller(AppController.php) i have implements the following:
...
public function beforeRender(\Cake\Event\EventInterface $event)
{
#Load User_ID
if($this->Authentication->getIdentity()){
$id... | common-pile/stackexchange_filtered |
Explanation of the Monero Daemon running arguments
I started the monero daemon via the GUI on Mac OS X. I downloaded the binary unpacked from monero-gui-mac-x64-v<IP_ADDRESS>.tar.bz2.
When I do a simple $ ps aux | grep monero from the command line I get the following two entries:
/private/var/folders/p_/{really long ra... | common-pile/stackexchange_filtered |
how to divide a circle into 60 part in java gui
I want to have a circle which works like a second-hand of a clock but I have a text field instead of a clock handle.for example when the second-hand of the clock is 30 the text field is in the lowest place of the circle and its text is 30.But I cant divide the circle into... | common-pile/stackexchange_filtered |
Xamarin Android Emulator Failed
When I try to install the Xamarin Android Emulator v27.3.9 it fails to installed.
Is there anyway around this? anything I can do it fix this
Any error messages?
I just get the message installing Android emulator 27.3.9 failed
Well, it’s hard to say where the problem is.You can fir... | common-pile/stackexchange_filtered |
Subscript out of range when dealing with CountIF over multiple arrays
I have code that takes values from the spreadsheet and stores them into an array (Array named JanDates) those values are the days of every month in a year taken from a spreadsheet. I then have another array to store values from a CountIF function tha... | common-pile/stackexchange_filtered |
How to implement MVVM in Windows Phone 8.1 app (xaml)?
Could anyone give an example of implementation? Is it done with ViewModel implementing INotifyPropertyChanged (and raising events, as it's done in Silverlight) or some other way? How is ViewModel bound to the view?
All examples I've found so far are incomplete or o... | common-pile/stackexchange_filtered |
ODI 12c Smart Import into Exec Repository with SDK behave like importing into Dev Repository
I try to smart import an XML file generated from an Exec Repository via ODI client to another Exec Repository with the SDK. I am using ODI <IP_ADDRESS>.
I already had a java program that was working fine in 11g (<IP_ADDRESS>) b... | common-pile/stackexchange_filtered |
S3 sync exclude piggyback of .gitgnore
Is there anyway to specify for the aws s3 sync command to exclude file patterns as outlined in an .gitignore file?
I have a code build pipeline which I want to trigger but have it run against my local files for testing changes I don't want to check-in.
You would need to convert t... | common-pile/stackexchange_filtered |
How to apply a function on the output of nn.conv(). nn.conv3d()
Assume I have a output from 3D nn.conv(),or nn.conv3d()
The output is a tensor in following shape:
[1(batch),28(depth), 28(rows), 28(cols), 32(channels)]
<tf.Tensor 'Relu_1:0' shape=(1, 28,28, 28, 32) dtype=float32>
I want to apply a function on each 28x2... | common-pile/stackexchange_filtered |
how to understand java String source code
How does it works?I cant understand how it gets to the point that, every time a new string has been created once you change something in the original one. What are offset, value and count standing for?
private final char value[];
private final int offset;
private fina... | common-pile/stackexchange_filtered |
Distribution of Ordered statistics.
We are given a sample of size $n$ ($X_i$), the ordered statistics are as follows:
$Y_1\leq Y_2 \leq Y_3$. . . . .$Y_{n-1}\leq Y_n$
I am trying to establish the the probability density function of $\alpha$th ordered statistic i.e $f_{Y_{\alpha}}(y)$.
The solution goes as fol... | common-pile/stackexchange_filtered |
Express routers
I am developing content preprocessor on NodeJS
I have 3 concrete ways of preprocessing:
building html
building xhtml
building xml
Each way is very different from each other (different middlewares)
So I initialized 3 routers:
var xmlRouter = express.Router();
var xhtmlRouter = express.Router();
v... | common-pile/stackexchange_filtered |
converting vbscript into c#.net/VB.NET?
Well I am stuck into a problem. I have one VBscript script which I need to convert in C#.NET(VB.NET would also work). I am new into programming, not having much idea of how to do it? One traditional way is to write the same in C#. But I have little less time. is there any convert... | common-pile/stackexchange_filtered |
React loop through and create element
I have array of items in the following structure.
[{column: 1, name: 'one'}, {column: 2, name: 'Two'},{column: 2, name: 'Three'},{column: 3, name: 'Four'}]
Need to loop through the array and items with same column value should be wrapped in single parent.
Like,
<div class="parent"... | common-pile/stackexchange_filtered |
Open urls from a mark_text() data table that was filtered based on chart selections
I'm trying to display a table of url values based on interactive selections.
I am able to display it, following the example on the docs, but I want to be able to click on one of the urls in the table and have it open it in a new tab.
Id... | common-pile/stackexchange_filtered |
How do make ImageAwesome react to hover (change foreground color) like a textblock on a button in WPF?
I have found a workaround by using unicode instead of ImageAwesome but I would much rather not have to look up all of the icons' unicode of all of the font awesome icons I am using in my program.
The font awesome pac... | common-pile/stackexchange_filtered |
Why aren't all my processes starting at once?
I have a process that adds up a bunch of numbers:
def slow(x):
num = 0
for i in xrange(int(1E9)):
num += 1
And I start 500 of these.
for x in range(500):
out.write("Starting slow process - " + str(datetime.now()) + "\n")
p = multiprocessing.Process(... | common-pile/stackexchange_filtered |
Laravel blade "request()->is()" syntax issue
I am using the following piece of code to make a link appear active.
<a href="/profile/{{ $user->id }}" class="{{ request()->is('/profile/'.$user->id) ? 'text-blue-500' : '' }}">View Profile</a>
It was working previously for links which weren't dynamic. But now when I'm pass... | common-pile/stackexchange_filtered |
What are the meanings of the field 'on_cpu' in struct task_struct and the field 'cpu' in struct thread_info?
I want to know which cpu the current process is running on in Linux system,
and I have two choices —
get the field on_cpu in struct task_struct or
get the field cpu in struct thread_info.
I write a kernel m... | common-pile/stackexchange_filtered |
Difference between QML's Component and Instantiator?
The QML types Component and Instantiator appear to do similar things; create QML objects on demand, as opposed to when parsing their definitions. So what's the difference? Why would I want to use one over the other?
An Instantiator creates instances of the given C... | common-pile/stackexchange_filtered |
WrappedComponent is undefined
I am stuck trying to implement graphql with react-apollo and graphcool. I am following this Tutorial
My code with the request query looks like this :
import React from 'react';
import { graphql } from 'react-apollo'
import gql from 'graphql-tag'
const ALL_INSPECTIONS_QUERY = gql`
# 2
... | common-pile/stackexchange_filtered |
Java / Swing app fails to transition to fullscreen on OS X
I'm using a JOGL FPSAnimator and Apple's FullScreenUtilies class. I implemented this some time ago, and it worked fine. Here is my code for enabling the native OS X fullscreen capability, similar to other code on SO and around the web:
String className = "com.... | common-pile/stackexchange_filtered |
What is a UUID?
Well, what is one?
You should also note that a GUID is the same thing.
Well, a Microsoft GUID is the same thing.
@Dave that link was enough to answer this question.
@Dave online UUID generator links seems broken.
Online uuid generator: https://www.uuidgenerator.net/
It's an identification number t... | common-pile/stackexchange_filtered |
What originated the use of hawkish in a figurative sense?
Hawkish in a figurative sense is often used to refer to politicians who are in favor of using force rather than diplomacy to achieve something. By extension hawkish is used in financial or economic contexts to refer to an aggressive tone used to indicate possibl... | common-pile/stackexchange_filtered |
List field: translated values are not translated
In my Drupal 8 project I have some list fields. For example maybe a field "project type" with the following key|values, coming from the original language German:
1 -> öffentliches Projekt
2 -> privates Projekt
Which I translated in the field's settings:
1 -> public proj... | common-pile/stackexchange_filtered |
Android:how to pass objects from a non-activity (view) class to an activity?
I have a class (Called Doodling:))) that extends view and an activity (Called DrawActivity) that displays that view. I need to pass the bitmap object created by my doodling class to the draw activity. Is it possible to do that? And if yes,How?... | common-pile/stackexchange_filtered |
IRFZ44N getting very hot in Peltier driving circuit
I have got a question about my Peltier driving circuit. First of all this is a drawing of my circuit:
I am confused because only 1 of my IRFZ44N gets very hot, even though I ran the same gate signal to both of them. The Peltier that I have uses have maximum current o... | common-pile/stackexchange_filtered |
mod rewrite question mark and ampersands
The first GET argument should have a ?. When i try this url i'm not able to $_GET['type']
http://localhost/category/general?type=pages&v=1
it only works with an &, when i use $_GET['type'] i get pages
http://localhost/category/general&type=pages&v=1
Here is my mod rewrite..
R... | common-pile/stackexchange_filtered |
What is a more accurate translation of the title of Legend of the Galactic Heroes?
Several people have mentioned to me that the title of Legend of the Galactic Heroes is based on a rather "interesting" translation. What would be a more accurate translation of the original title (銀河英雄伝説 Ginga Eiyū Densetsu)? I've also h... | common-pile/stackexchange_filtered |
Patch SUPEE 11086
My Magento version is <IP_ADDRESS>
Which file should I choose between the below given options?
PATCH_SUPEE-11086_CE_<IP_ADDRESS>_v1-2019-03-26-03-03-13
PATCH_SUPEE-11086_CE_<IP_ADDRESS>_v1-2019-03-26-03-03-50
It's not clear to me..
may be not useful any one because your magento version no patch i... | common-pile/stackexchange_filtered |
Removing a key with empty values from a map so they are not included in a query of a REST GET request
I have a Query class which holds the queries i can send like so:
Class Query {
Integer product_id
Integer collection_id
Integer id
}
I use object mapper to convert my Query object to map like this:
def q = ne... | common-pile/stackexchange_filtered |
Assign what res.json return to variable in Node.js
I'm building a social network - and for that I use Node.js. I'm new to the subject, and this's my first post on the subject, I'll be happy if you understand me.
In my social network I want to use an algorithm that has it in the "npm" kmeans algorithm.
I try to keep wit... | common-pile/stackexchange_filtered |
GraphQL resolver logic - Call query/mutation from mutation?
I am creating a workout/exercise logger, where user's can add a log of their set of an exercise to their account. User's will also be able to see their history of workouts and exercises (with set data). I am using mongoDB to store this data, with GraphQL and m... | common-pile/stackexchange_filtered |
"Engineer at the Quality Assurance Department" vs. "Engineer of the Quality Assurance Department"
Which preposition do we use? Which one is better here?
John Smith, Process Engineer at the Quality Assurance Department.
John Smith, Process Engineer of the Quality Assurance Department.
John Smith, Process Engineer ... | common-pile/stackexchange_filtered |
For-loop return array value
I'm trying to insert url for menu through mustache template. But just the first value is being returned for the array.
Or is this the return method wrong
var main_menu_link = ["main_dashboard.html", "#", "online_dashboard.html","index.html","#","#","#"];
var url = "";
var... | common-pile/stackexchange_filtered |
colocate_gradients_with_ops argument in TensorFlow?
I'm trying to understand what this argument does, the TF api docs for AdamOptimizer's compute_gradients method say the following -
colocate_gradients_with_ops: If True, try colocating gradients with the corresponding op.
but it is not clear to me. What does colocating... | common-pile/stackexchange_filtered |
Existence of solutions for $x'=f(t,x)$ for $f$ not necessarily $C^1$, but with other conditions
Let $f:\mathbb{R}\times\mathbb{R}^n \to \mathbb{R}^n$ be a continuous, locally Lipschitz function that satisfies the following condition:
$$|f(t,x)|\leq C(1+|x|)\; , \forall (t,x)\in \mathbb{R}\times\mathbb{R}^n$$
Show that... | common-pile/stackexchange_filtered |
Get remote page title from url in foreach
How can I return titles of sites in foreach, codeigniter.
The code works, but takes too long to load.
<?php
foreach ($links->result() as $value) :
$url = $value->lnkUrl;
$domain = parse_url($url, PHP_URL_HOST);
$web_link = "http://".$domain;
... | common-pile/stackexchange_filtered |
Add HTML5 required attribute to webform fields set as required
Could someone advise me how to use a hook to add the HTML 5 required attribute to all inputs that have been selected as 'required' within webforms.
Webforms already adds class 'required' but the HTML 5 required attribute provides great instant validation in... | common-pile/stackexchange_filtered |
One column value missing and no values are shown for entire row
Below is expected results Below is code I work my actual out on , but if there is no procurement done then it returns a blank row
SELECT PRJ$Projects.project_id
,VW_QUOTE_SECTION_TOTALS.Quoted_section_total "Amount"
,VW_SECTION_TOTALS.Costed_sectio... | common-pile/stackexchange_filtered |
djoser activate account by link
How to activate after click on the link send by djoser?
my settings
'''
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'djoser... | common-pile/stackexchange_filtered |
When to use Angular 2 factory functions?
I can't imagine a situation where I need to use a factory provider.
According to the offical docs https://angular.io/docs/ts/latest/guide/dependency-injection.html the situation is that one may not be able to access a service (service-b) from within another service (service-a),... | common-pile/stackexchange_filtered |
Should the requirement for 100 questions in a tag for tag badges be removed?
Inspired by a poor soul who wanted a my-little-pony badge.
waffles describes this here as an anti-gaming feature. However, I'm not sure if that's necessarily true. If anything, it seems to me that this would simply encourage more abuse, by r... | common-pile/stackexchange_filtered |
Devise + LocomotiveCMS - Remember the page I was trying to visit before being asked to log in
I'm trying to add a simple feature to locomotivecms (github). A very simple feature: currently users are redirected to the "main admin hub" (/admin/) after logging in - even if they were trying to edit a different page. I want... | common-pile/stackexchange_filtered |
site level folder read/write/delete permissions from web page
I am hoping that someone could offer some assistance in helping implement some functionality on a production server.
I have a link on a VB.net aspx page that needs to open a folder in a subdirectory of a web site and provide read and write permissions so tha... | common-pile/stackexchange_filtered |
Order of resolution for multiple awaits on one promise
If multiple tasks are waiting on a single promise, is there a guaranteed/specified by a standard order in which those tasks will begin executing once the promise is resolved? For example, consider the following
var promise = null;
function setPromiseIfNeeded() {
... | common-pile/stackexchange_filtered |
Get data from both side of a query
I've the following query but if I search a data contained in table_b or table_c or table_d I don't get result can you pls. explain me why and correct the problem?
SELECT c.contratto,nominativo, email_pers,dt_ch_conto
FROM clienti AS c
LEFT JOIN table_b AS s ON (c.contratto=s.contratt... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.