text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
skipping JSON property dynamically in MarkLogic XQuery
I want to call some existing code in my XQuery script in MarkLogic that takes a JSON as function parameter.
Depending on the input to my own code, I need to feed the other function a variant of the JSON so that it does contain an extra property or doesn't.
So far I... | common-pile/stackexchange_filtered |
Unbound install/config error with mounting
https://www.prado.it/2012/04/14/how-to-configure-unbound-on-ubuntu-11-10/
Following this guide to install Unbound for DNS purposes and I have ran in to a problem with the following cmd:
sudo mount --bind -n /dev/log /etc/unbound/dev/log
sudo mount --bind -n /dev/random /etc/u... | common-pile/stackexchange_filtered |
Highcharts with database
I am new to highcharts with ruby on rails. Is there any tutorial or any idea how to fetch data from database ( SQLYog Community) and display it as chart ( Highchart) using Rails ??
Someone posted an interesting videocast on this in a separate question about highcharts
Thanks !! And sorry for ... | common-pile/stackexchange_filtered |
Terms of integrating 3rd party sdk and libraries in your engine
I am developing my own engine and integrating Bullet Physics.
Now Bullet Physics is open source under Zlib license. My concern is, can original owner change the license later on to paid and how it can affect the games which already released with my engine... | common-pile/stackexchange_filtered |
Do all stem cells have a full number of chromosomes?
Do all or only some stem cells have a full number of chromosomes?
Are you attempting to distinguish between totipotent and pluripotent stem cells here?
Not really, but is that one of the differences between totipotent and pluripotent stem cells? (one has a full num... | common-pile/stackexchange_filtered |
magento white page after upgrade from 1.9.1 to 1.9.2
I have upgraded magento 1.9.1 to 1.9.2. Locally it works fine but in the production environment I am getting white screen at checkout (www.site.com/checkout/onepage/).
When I checked dev_system.log file I saw two errors.
ERR (3): Notice: Undefined variable: isParent ... | common-pile/stackexchange_filtered |
OAuth2 and email authorization for REST API backend
Overview
I am building a RESTful API application as mobile\web backend (let's call it MyBackendApp) and I'm looking for a contemporary solution for both Authentication AND Authorization of app users. Primary language for backend is Java. Looking at other apps, many of... | common-pile/stackexchange_filtered |
advanced custom fields acf_form() 'uploader' => 'basic' not working full wp media uploader showing on front end
I have a front end post submission form. I would like users to be able to add images to the content with out having access to the media library.
I understand that 'uploader' => 'basic' should show only a basi... | common-pile/stackexchange_filtered |
Ubuntu 14.04 won't install on boot SSD
I'm trying to install Ubuntu on my laptop but it doesn't detect the boot SSD. I have an alienware m14x. I exchanged the HDD for a 120GB SSD and then replaced the disk drive with the original 750 HDD for storage. It has Windows 7 Home Premium 64-bit installed on the SSD boot drive ... | common-pile/stackexchange_filtered |
Sending Bitcoins through Tor versus sending them through VPN
I bought a VPN subscription using Tor and Bitcoins. The commercial VPN service provider does not know who I am.
Below are my questions:
Could someone tell me whether sending Bitcoins through Tor provides more anonymity than sending them through my VPN servic... | common-pile/stackexchange_filtered |
Telerik Grid arbitrary fields
I need to be albe to edit multiple values in a grid
Say
"Type" is a combo
"Size" is a float
"Name" is a string
I need "Type", "Size", "Name" in the first column; and in the second I need a dropdown (Type), then a numeric editor (Size) and finally a text editor for the "Name".
I try to impl... | common-pile/stackexchange_filtered |
Installing OpenBSD 5.5 on Dell D430 - wireless card not working properly
I'm trying to install OpenBSD 5.5 amd64 on a Dell D430 (C2D) but the install requires a wireless connection at some point. It finds the wireless device but for some reason cannot connect to the router.
The error message is:
Issuing hostname-assoc... | common-pile/stackexchange_filtered |
opening powerpoint presentations in ruby via win32ole
I've got this piece of code that works for Excel.
require 'win32ole'
excel = WIN32OLE.new('Excel.Application')
excel.visible = true
workbook = excel.Workbooks.Open('c:\file.xls');
But I have trouble getting the same thing done with for PowerPoint; This piec... | common-pile/stackexchange_filtered |
Query to get column name and value
I have a table that looks like this:
emplid year JAN FEB MAR APR MAY
------ ---- --- --- --- --- ---
1234 2018 x x x Retire
5678 2018 x Terminated
9876 2018 x x... | common-pile/stackexchange_filtered |
Number of ways a committee can be formed from $4$ single men, $4$ single women, and a married couple subject to the given restrictions
A committee is to be formed from a group of $10$ people consisting of $4$ single men, $4$ single women and a married couple. The committee is to consist of a chairman, who must be a sin... | common-pile/stackexchange_filtered |
Derivative of a composite function with respect to a matrix
I would like some hints on how to derive the following function with respect to the matrix $X$:
$$ f(X)=\left\| y - \sum_k (h_k X^k)x \right\|_2^2$$
where $X$ is a matrix, $x$ and $y$ are two given vectors and $h_k$ is a (given) scalar coefficient that weights... | common-pile/stackexchange_filtered |
Where can i see which interface members to define when i'm using the interface?
Where can i see what members i have to implement when im using an interface in one of my classes?
When im using an abstract class, the intellisense would give me a lot of suggestions when im write "override", but how do i do it with interfa... | common-pile/stackexchange_filtered |
Replacing nan AND blanks in python, NOT replacing nan WITH blanks
I have a .csv file which has both nan and blanks in it, I need to replace both of them separately, say 'nan' with 'None' and blanks with 'NA', how do I achieve it.
Maybe I wasn't clear earlier, I need to replace both the nan and the blank with 2 differen... | common-pile/stackexchange_filtered |
Python - Print to html
I have a python program which prints a bunch of strings.
My program scrapes house websites through an api, and prints out the house type, bedrooms, location, and a url to an image to the IDE console.
I use PyCharm IDE to print out the results to the console. However, i would like to run this pyt... | common-pile/stackexchange_filtered |
Wrong use of joins on same table
I'm having problems to get the correct data from a table which holds different types of records, and I want to count how many of each I've got.
This is a simpler schema:
companies:
| id | name |
|----|----------|
| 1 | company1 |
| 2 | company2 |
messages:
| id | type | te... | common-pile/stackexchange_filtered |
Social sharing on mobile
On a website, one can use a social sharing javascript library like addthis in order to propose share buttons to the user without having to program everything from scratch.
Do you know any library doing the same sort of thing directly inside an android application ?
On Android we have Intents f... | common-pile/stackexchange_filtered |
$_SERVER['REMOTE_ADDR' string and changing subnets
I want to expand the IP range that my ~$_SERVER['REMOTE_ADDR'~ check for. The following works and only allows the 10.0.4.* subnet access to the site:
$chk = "10.0.4.";
if( substr($_SERVER['REMOTE_ADDR'],0,strlen($chk)) !== $chk)
$wgGroupPermissions['*']['read'] = f... | common-pile/stackexchange_filtered |
Enum - combobox binding with one item as exception
I have a Enum which I am binding to ComboBox.
But i dont want to show one enum value in combobox items.
If I try to remove after binding it is throwing error.
cmbDisplayUnit.Items.Remove(item);
Is it possible to binding to enum and still removing or atleast hiding o... | common-pile/stackexchange_filtered |
How can I specify the image_id in an ASG but use the existing launch template to provide all the pre-set details for networking?
I would like to use an existing launch template (LT) in my auto scaling group. The LT defines some networking properties but allows the instance type and ami to be chosen at launch as we have... | common-pile/stackexchange_filtered |
Console output - way to let caret jump to columns and rows
Is it possible to output such a escape code so that the caret in console moves to proper absolute location? I've seen something similar on unix console. Is this even possible on the basic and simple Windows console?
Thanks
Don't use an escape code, use SetCons... | common-pile/stackexchange_filtered |
conditionally import module to shadow local implementation
I am writing a Python script where some of the core functionalities can be done by another existing library. Unfortunately, while that library has more features, it is also slower, so I'd like if the user could at runtime select whether they want to use that li... | common-pile/stackexchange_filtered |
What is the current status of the Koenig Brothers and their bases?
In Marvel's Agents of SHIELD, Fury apparently left several secret bases under the charge of a Koenig "brother" who may or may not be
Life-Model Decoys (LMDs), aka androids.
Each brother is responsible for maintaining one of these bases, as well as t... | common-pile/stackexchange_filtered |
Basic Bootloader program to print helloworld is not working
I am trying to learn a simple helloworld bootloader program. referring this link. I have successfully generated the binary file for this assembly code using nasm assembler and run with a emulator bochs and it works fine.
But when I did the same thing directly ... | common-pile/stackexchange_filtered |
Get index of checked ChekBox in listview windows store app c#
I am developing one windows store application. There is one listview and listview contains Image , Checkbox Controls.
XAML Code:
<ListView Name="display" ItemsSource="{Binding}" SelectionMode="Single"
SelectionChanged="display_SelectionChanged"
ScrollV... | common-pile/stackexchange_filtered |
Error in processing soap fault with http 500 error in DataPower
I am new to DataPower.
I have created Multi Protocol Gateway (MPG) and create a processing policy with 3 rules.
1) Request Rule
2) Response Rule
3) Error Rule
All rules are having '*' in the matching action.
Whenever I am getting 'http 500' error with s... | common-pile/stackexchange_filtered |
django: foreign key display
My models:
class ActsInformationModel(models.Model):
name=models.CharField(max_length=50, unique=True)
prelexRespProposId1=models.ForeignKey('RespProposModel', related_name='prelexRespProposId1', blank=True, null=True, default=None)
class RespProposModel(models.Model):
respPropo... | common-pile/stackexchange_filtered |
dispatch_queue_create multiple invocations with same label
I have a requirement to execute a small set of related tasks on a custom thread created for them. The tasks will be scheduled from different classes.
I'm planning to use GCD's dispatch_queue_create to create the custom thread and schedule the task on it. Note t... | common-pile/stackexchange_filtered |
Nextjs 14 response cookies won't return to the client
I am currently working on one of my project which is mainly focused on Nextjs api router (I've mainly used node with express in the past)
I'm trying to auth a user using pocketbase as my custom database.
I'm doing user auth using email and password and then storing ... | common-pile/stackexchange_filtered |
How to get log2 fold change of RNA-Seq data for time series experiment?
I know if there is one control and one treatment group it is pretty straight forward to interpret log 2 fold change. But, I have time course experiment. I have infected cells with viruses and I harvested cells at different time points: o hr, 6 hour... | common-pile/stackexchange_filtered |
Excerpt vs content formatting woes
One of my posts has the following content:
This is a test post. Nothing more,
nothing less.
Three lines before the jump
<!--more-->
And a couple of more lines
after the jump.
Note: these were written as you see them, in the WP editor, using the HTML tab - so we have no hidden <br> or... | common-pile/stackexchange_filtered |
How to get last month row sum in cakephp 3
I need to get last month transactions amount sum , I wrote query but getting error Error: Call to undefined function App\Controller\YEAR()
// sum of total received amount
$conditions['transaction_type']=1;
$conditions['AND']['YEAR(Transactions.created) >='] = YEAR('CURRE... | common-pile/stackexchange_filtered |
Calculation with an action button and using in another ObserveEvent
Let's say I have two action buttons. When I press "Go!", I want to calculate a value and then, by the pressing the second action button, I want to use the calculated value in another calculation. This code does not work and gives an error like this:
"W... | common-pile/stackexchange_filtered |
Celery Starting a Task when Other Tasks have Completed
I have 3 tasks in Celery..
celery_app.send_task('tasks.read_cake_recipes')
celery_app.send_task('tasks.buy_ingredients')
celery_app.send_task('tasks.make_cake')
Both read_cake_recipes and buy_ingredients don't have any dependancies, however before the task make_c... | common-pile/stackexchange_filtered |
move array objects into arrays
I have an array of objects that look similar to this,
[{
name : Client 1,
total: 900,
value: 12000
}, {
name : Client 2,
total: 10,
value: 800
}, {
name : Client 3,
total: 5,
value : 0
}]
What I am wanting ... | common-pile/stackexchange_filtered |
What is the natural life span of a Clone?
In Star Wars, the Clones are introduced in the story "Attack of the Clones". In this story it was explained that they were bred from the genetic template of Jango Fett. They underwent an accelerated growth to prepare them for battle in a reasonable time. My question is, after t... | common-pile/stackexchange_filtered |
How to clone database in Microsoft SQL Server Managment Studio
So I have two databases on the same server
DB_TEST
DB_DEVELOP
I want to make a full copy of the DB_TEST with all of the data and the table structures and everything and alter the DB_DEVELOP to be the same.
I know I made something similar when I was creati... | common-pile/stackexchange_filtered |
How to know in Windows 8 if TRIM is enabled in SSD hard drive?
I have a SSD drive and Windows 8 installed.
Where can I find if my drive has trim activated?
A search for the title of your question gives the following as the first link - How to Check and Enable or Disable SSD TRIM Support in Windows 7 and Windows 8
Alt... | common-pile/stackexchange_filtered |
How apply migrations to the production server using Visual Studio 2015?
Apply code first migrations is easy working locally. Just type "update-database" into Package Manager Console to update the local database.
However, what about to update the remote database? How can I apply migrations to it?
You can change the con... | common-pile/stackexchange_filtered |
Kafka Connect Sink JsonConverter DataException: Converting byte[] to Kafka Connect data failed due to serialization error
Created an Apache Kafka cluster (3 brokers, 3 controllers, 1 worker for now) for a project and have multiple topics receiving data from a 3rd party. The worker is leveraging the confluent elasticsea... | common-pile/stackexchange_filtered |
Why is this python for range loop not working?
Simple prime function. The loop does not run when x < 2. I don't quite understand why. Can someone explain? I understand my starting range is 2, but that is only for i; why should that affect x?
Thank you.
def is_prime (x):
for i in range(2, x-1, 1):
if (x % i ... | common-pile/stackexchange_filtered |
file is being submitted automatically
In the code posted below, I want to open file-chooser on clicking anchor tag <a>. The file-chooser open successfully but the problem is that the form is being submitted too (automatically). So please tell, how can I prevent form to be submitted?
Code:
<?php
echo form_close();
... | common-pile/stackexchange_filtered |
Cmake include header only library with -I option
I have a header only library that is contained in a "headers/" directory in the main project. When compiling from terminal I include it with #include "symbolicc++.h", but I need to pass the option -I "headers/" when compiling with g++. How can I include this in a Cmake p... | common-pile/stackexchange_filtered |
Can a character use her movement to help someone else stand up?
Standing up takes half your movement, and you can also interact with one object for free during your turn. Neither of these things indicate whether or not you can help someone else stand up on your turn. If you can knock someone prone or drop prone, then i... | common-pile/stackexchange_filtered |
Do i need a separate thread lock for each method?
Here is an example of creating a concurrent hashset object that will be accessed by multiple threads. The 'Add' and 'Remove' methods are both locked via the lock object, _threadLock. Do I need a separate _threadLock for each of the methods or can I share it like it is b... | common-pile/stackexchange_filtered |
From where i can download jwplayer.js
I am not getting a location from where i can download the jwplayer.js . I searched on the google and found solution at the support to download the jwplayer.js from https://account.jwplayer.com/#/account but i did not found any thing here. it is just showing my profile informati... | common-pile/stackexchange_filtered |
Array values changing unexpectedly
I am using cakephp 1.2 and I have an array that appears to have a value change even though that variable is not being manipulated. Below is the code to that is causing me trouble.
PLEASE NOTE - UPDATE Changing the variable name makes no difference to the outcome.
function findCountByS... | common-pile/stackexchange_filtered |
Django view doesn't accept POST from html
I am making a login view, but I get an error indicating that POST method is not allowed.
This is the view class:
class LogIn(View);
def get(self, request):
if request.method == 'POST':
username = request.POST.get('email')
password = request.... | common-pile/stackexchange_filtered |
How to get values inside a chart without clicking
I used import { Chart } from 'chart.js'; to show charts inside my app and used the following in ts file
ionViewDidLoad() {
console.log("milk total",this.chartValue);
this.barChart = new Chart(this.barCanvas.nativeElement, {
type: 'bar',
... | common-pile/stackexchange_filtered |
Distinct Log Files For Error,System Queries,Query Debug For Postgresql
Currently I am working on PostgreSQL Performance Analysis where I am using prefix %t %d for logging.
When I try to analysis log files, I found that lots of errors, logs outcome of analyse vaccum and system related process, those logs occupy maximum... | common-pile/stackexchange_filtered |
Does ASLR protect against a buffer overflow within a struct?
Assume a simple struct:
struct test {
char variable[4];
char variable2;
}
If I write something like variable[4] = '\0' there is a buffer overflow which modifies variable2.
Does ASLR prevent this buffer overflow?
ASLR never prevents any buffer overflo... | common-pile/stackexchange_filtered |
Import collection to non-local address with Mongo restore
I'm trying to copy over a collection from an instance of a mongoDB on my local machine to a collection hosted by mongoLabs.
I'm able to dump the collection into a dump directory, but when I try to import with the command below I get a: No such file or directory:... | common-pile/stackexchange_filtered |
How to link a subfolder from one git repository into another?
I have 2 git repositories in following structure.
Repository1 -> src
|
-> res
Repository2 -> src
|
-> res
I want to link subfolders in Repository2 to Repository1, so that final folder structure would look... | common-pile/stackexchange_filtered |
Image transformation by homography matrix in C++ using OpenCV (warpPerspective)
I'm trying perspective transformation of an image using a homography matrix.
Given translation and rotation, I made a homography matrix and applied it to the perspective transformation as:
Mat srcImg = imread("tests/image3.jp2", I... | common-pile/stackexchange_filtered |
Error in dplyr summarise_impl(.data, dots) : expecting a single value
I want to standardize the changesize as the following code,and It seems to me there is no problem in my code. Why this gives me the error as
Error in summarise_impl(.data, dots) : expecting a single value
str(pricechange_0.5_2)
Classes ‘tbl_df’, ‘t... | common-pile/stackexchange_filtered |
why is my Unity photon Pun2 import not working?
I'm trying to import unity Pun2 free assets but when i try to access any of the method i get an error. also all the imported scripts are showing errors. i have checked supported unity version for pun2. it says 2017.4.7+ and i'm using 2019.4.11f
Please someone help me i'm ... | common-pile/stackexchange_filtered |
How to show that two arcs are parallel with respect to poincare metric of the unit disc?
Show that two circular arcs in the unit disc with common end points on that unit circle are noneuclidean parallels in the sense that the points on one arc are at constant distance from the other.
For the sake of clarity of notation... | common-pile/stackexchange_filtered |
Using another column in where clause other than primary key
I am converting existing Query to StrongLoop Loopback ORM and have hit a standstill.
My Query :
SELECT
DISTINCT(tog.grp_id) AS grp_id,
tog.grp_desc AS grp_desc
FROM trmpt_usr_grps tug
LEFT JOIN trmpt_org_grps tog ON tog.grp_id = tug.grp_id
LEFT JOIN trmpt_... | common-pile/stackexchange_filtered |
Google assistant found a bill I need to pay from my email but I've lost the notification. Where can I find the full list?
On my pixel there's an app called "google". From there, More -> Settings -> Notifications -> Bills. I can toggle this option on and off but can't find a list of bills it actually found. Is this avai... | common-pile/stackexchange_filtered |
Inserting duplicate values into a table using $wpdb
I have a table named wp_q33uds_campaign in my MySQL database, which is defined using a plugin as follows:
$sql = "CREATE TABLE `$tablename`(
`user_id` INT(20) NOT NULL AUTO_INCREMENT,
`tweet1` VARCHAR(200) NOT NULL,
`date1` VARCHAR(... | common-pile/stackexchange_filtered |
Appositive -with closing statements
https://www.grammar.com/the_correct_way_to_use_commas_with_names_and_titles
If when writing an obituary and one wrote as a closing comment in a written obituary not in direct voice:
She will always be my friend Sarah.
What is the correct punctuation?
She will always be my friend -... | common-pile/stackexchange_filtered |
Backup strategy for build tool hosted on Azure VM
We are hosting TeamCity (Continunos Integration) and Atlassian Jira and Confluence tools in the same Azure VM with Linux Ubuntu (LTS 14.04) as OS.
As all the tools reside on the same VM, would a periodic VM backup be the best approach to backup them? Or rather implement... | common-pile/stackexchange_filtered |
What does it mean when $u$ and $v$ are functions of a single variable?
I am currently trying to learn how to do integration by parts again (haven't done it for years) and am stuck on the very first line of the lecture. The lecturer says that we should "recall the product rule, if u and v are functions of a single varia... | common-pile/stackexchange_filtered |
Getting each individual digit from a whole integer
Let's say I have an integer called 'score', that looks like this:
int score = 1529587;
Now what I want to do is get each digit 1, 5, 2, 9, 5, 8, 7 from the score using bitwise operators(See below edit note).
I'm pretty sure this can be done since I've once used a si... | common-pile/stackexchange_filtered |
PHP Language Server error on VSCode: Connection to server got closed. Server will restart. Language server exited with exit code 255
I've been using VSCode with the PHP IntelliSense extension (by Felix Becker) for a long time. Recently, an error is taking place every time I start VSCode:
Connection to server got close... | common-pile/stackexchange_filtered |
I am having trouble using the addition formula to derive the identity from this problems
Use the addition formula to derive the identity:
$$\cos(x - \frac{\pi}{2}) = \sin x$$
Do you mean $\cos{((\pi/2)-x)} = \sin{x}$?
Once you have corrected the statement of the problem, can you write out what happens when you use th... | common-pile/stackexchange_filtered |
.then() fires before previous .then() has returned
I'm pulling category information from our local point of sale database (3rd party software) and trying to write it into a WooCommerce store. I'm also storing the data to my own database to maintain relationships between the two systems. I'm using promises to sequence e... | common-pile/stackexchange_filtered |
Prove that $\text{ex}\left(n, \begin{pmatrix} 1 & 1\\ 1 & 1\end{pmatrix}\right) = \Theta(n^{3/2})$.
I was reading the thesis http://www.renyi.hu/~keszegh/papers/szakdolgozat.pdf, and they cite Theorem 2.6 without proof (because apparently it is a well-known fact from extremal graph theory).
The extremal function $\text... | common-pile/stackexchange_filtered |
Lemma 1 in the paper by Brassard, Hoyer, Tapp (1998) on Quantum counting
In the paper by Brassard, Hoyer, Tapp (1998) on Quantum Counting we have the following expression for the state:
$$|Y\rangle =\sum_{i\in\mathbb{Z}}x_i|i\rangle |Y_i\rangle.$$
Now we have a quantum algorithm $\mathcal{A}$. Then we have the operator... | common-pile/stackexchange_filtered |
Putting logback.xml in application, what about people who want their own logback.xml?
In my program there are two modes: With GUI and without a GUI. when there is a GUI, its imperative that all logging statements be sent to the GUI, otherwise there's really no point. Without a GUI though it doesn't really matter.
The ... | common-pile/stackexchange_filtered |
Issues with Lemon Sappling from seed
I started growing this lemon sappling from a seed a year ago and it doesn't look very healthy, also is it too small? Any tips?
Pot seems awfully small for a year-old tree unless you are going for Bonsai...
Are you aware that citrus fruit don't grow true to type? ie the plant you ... | common-pile/stackexchange_filtered |
url rewrite proxy pass
This is to do with domains and URL mapping ...etc. I tried with apache and reverse proxy, rewrite, can't get it to work so far.
Scenario.
Target Customer owns domain www.customer.com , wants his users to use the site using URLs like
www.customer.com/a/b/c?blah
We have implemented the software f... | common-pile/stackexchange_filtered |
discard (replace) bracket in javascript failed
str = "["1,2,3"]";
arr = str.replace('[','').replce(']','').split(',');
the result of 1 became, ""1"? How to convert above string into a proper array?
First of all there is error in your first line it should be like either
str = "[\"1,2,3\"]";
or
str = '["1,2,3"]';
Si... | common-pile/stackexchange_filtered |
what about CopyMemory copy more bytes than VirtualAlloc allocated
please look this code , in my machine , it do not raise error , but I do not understand why can I copy more bytes than VirtualAlloc allocated,is this operation safe ?
PBYTE pNewBuffer = (PBYTE) VirtualAlloc(NULL,3,MEM_COMMIT,PAGE_READWRITE);
B... | common-pile/stackexchange_filtered |
How do I catch someone falling from a short height without hurting or bruising them
I am the backspot in the stunts for cheer and I keep catching our flyer but I am not absorbing her fall so she has bruises underneath her arms. What is the physics of catching her without hurting her?
I’m voting to close this question... | common-pile/stackexchange_filtered |
Perforce: How to resolve pending changes when files have been moved by another submitted change
Context: Someone does some restructuring work on a large Perforce depot under active development, and p4 moves files around while they are still being worked on. Everyone else needs to keep their pending changes, but move th... | common-pile/stackexchange_filtered |
What is the best practice storage method for flour to avoid bugs?
I have recently decided that I'd rather have base ingredients that I am store in my pantry in order to make more meals from scratch as opposed to getting things premade. A friend of mine told me there's no way that they would store flour anywhere but the... | common-pile/stackexchange_filtered |
A positivity problem involving the number of ways of expressing $n$ as a product of $k$ factors
Let $d_k(n)$ denote the number of ways of expressing $n$ as a product of $k$ factors, and let $$D_k(x)=\sum_{n\leq x}d_k(n)$$ be the summatory function. During a study of Mertens' function I was lead to consider the zero dis... | common-pile/stackexchange_filtered |
Is there a better way to check child params?
Is there a better way to check for items_attributes than the following code? I have to check params[:order] first since sometimes that may not exist, but I hate the look of the long conditional.
if params[:order] and params[:order][:items_attributes]
UPDATE for ruby 2.3, no... | common-pile/stackexchange_filtered |
How do use Transitions and Picture in Picture elements at the same time? iMovie 11
So basically my subject says it all, let me elaborate.
I have a bunch of videos and I want to add transitions, no problems yet, but if I want to add a PiP image, you know like a watermark, transitions stop working.
Is there any workaroun... | common-pile/stackexchange_filtered |
Why did Facebook suddenly switch from using the popup auth instead of the lightbox auth when calling FB.login from a canvas app?
Suddenly, on between 4/23/2013 and 4/24/2013, Facebook abruptly,and without notification, stopped using the iframe lightbox version of the auth dialogue for Canvas apps and replaced them with... | common-pile/stackexchange_filtered |
Difference between math.exp(2) and math.e**2
While programming I noticed a difference between the result of math.exp(2) and math.e**2. As you can see below, this difference does not arise when calculating e^1.
Not being an experienced programmer, I wondered why this differs?
I assume it has something to do with roundi... | common-pile/stackexchange_filtered |
Why did King Shantanu wait to see his seven sons die at the hands of Brahmaputri Ganga and not marry another woman?
I am watching B.R Films' series on "Mahabharat". In Episode 1 of which the union between King Shantanu of Hastinapur with Brahmaputri Ganga has been shown. She goes on to kill the sons born during the mar... | common-pile/stackexchange_filtered |
Could not find the association, Rails 3
class Membership < ActiveRecord::Base
belongs_to :role
belongs_to :user
end
class User < ActiveRecord::Base
has_many :roles, :through => :memberships
end
class Role < ActiveRecord::Base
has_many :users, :through => :memberships
end
and my View
<% for role in Role.find... | common-pile/stackexchange_filtered |
document.getElementsByClassName().onclick with dynamic elements
I am creating a Javascript program where I would like to make styling changes to an element by its class name. There are multiple elements with this class name but I want to target the one that is clicked. These are dynamically created.
The reason I have n... | common-pile/stackexchange_filtered |
Https with Amazon linux 2 , receiving server not found error
I am using elasticbeanstalk : PHP 8.1 running on 64bit Amazon Linux 2/3.5.6 .
I have followed the bellow guidlines to establish https connection :
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/https-singleinstance-php.html
packages:
yum:
mod24_... | common-pile/stackexchange_filtered |
How do I use dynamically loaded components with vue3?
I have been a happy user of httpVueLoader for a while, as it allowed me to use a fairly simple setup: libraries off CDN, a server serving components statically, and no compiling steps in the development process.
This is great for me as I do my backend stuff in anoth... | common-pile/stackexchange_filtered |
Mysql dump restore delete data if it has FOREIGN_KEY_CHECKS settings
I have db_dump.sql
-- MySQL dump 10.16 Distrib
10.1.23-MariaDB, for Linux (x86_64)
--
-- Host: localhost Database: school
-- ------------------------------------------------------
-- Server version 10.1.23-MariaDB
/*!40101 SET @OLD_CHARACTER_... | common-pile/stackexchange_filtered |
Sorting a Dictionary by Double value Swift
I have a Firebase database with place names and coordinates, having fetched both and putting each of them into their own Array and then into a Dictionary, I want the Dictionary sorted by the nearest location/lowest Double.
I have looked at tonnes of previously asked questions ... | common-pile/stackexchange_filtered |
How to intercept all http requests using AngularJS?
My Question is a bigger and broader version of this question. I want to intercept all http requests issued inside an AngularJS function. Later I need to alter the request URL and than pass it to the server..
How can I do that ? So far I have used $httpProvider and $q... | common-pile/stackexchange_filtered |
Is this sentence lignuistically correct?
This is a definition from stockedge.com about Business Houses.
Business Houses are a public or private structure business that forms a group of various companies dealing in different segments
Is the definition from stockedge.com linguistically correct? Shouldn't it either be: "B... | common-pile/stackexchange_filtered |
Profile Pages - URL Parameter
I have made this code:
<?php
if (isset($_GET['name'])) {
$username = mysql_real_escape_string($_GET['name']);
if (ctype_alnum($username)) {
//check user exists
$check = mysql_query("SELECT user, bio, permisos FROM usuarios WHERE user='$user'"... | common-pile/stackexchange_filtered |
Sum in PHP with HTML Form using Jquery
I am new with jquery and want to create a very very simple page to learn a bit about. I am trying to make a form that sends its values to php. Php sum it and returns the results. Jquery show it in the page, dynamically.
This is my html and javascript:
<html>
<head>
<title>null</... | common-pile/stackexchange_filtered |
Undo a directory remove in HAMMER, DragonFly BSD
In DragonFly BSD, you have the neat functionality of transaction history for all files, which you can inspect using undo -a <filename>. If you remove a file you can bring it back to life using undo -o <output_filename> <removed_file>. Is there any similar functionality i... | common-pile/stackexchange_filtered |
HTTP LIVE STREAMING on Apache
I Am Using An Ubuntu server with apache installed i have 3 diffrent bitrates:
http://mysite.local/Adaptive/128/_playList.m3u8
http://mysite.local/Adaptive/512/_playList.m3u8
http://mysite.local/Adaptive/2048/_playList.m3u8
in each directory there is segment.ts files with their bitrate
and... | common-pile/stackexchange_filtered |
Azure web role deploy does not copy non-project files
We are trying to deploy an AngularJs website to azure that is build with gulp. So we develop in a source application and gulp copies the files to the dist project. The dist project is a Azure cloud source Web Role. The "compiled" files are inside of the project fold... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.