text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
Correct way to architect an single insert event from Fragment
Imagine that I have a simple modal with static data rendered.
This data is passed as an Parcelable argument to the modal fragment. When the modal is opened, I want to add it to the userHistory database, a simple insert which I don't expect any kind of return... | common-pile/stackexchange_filtered |
How do I report a typo on the Unity website?
at http://unity.ubuntu.com/about/
A powerful desktop and netbook environment things brings consistency and elegance to the Ubuntu experience.
I suggest "things" has to go in "things brings"
Bugs on the Ubuntu Website can be reported directly in Launchpad:
https://launchpad... | common-pile/stackexchange_filtered |
I want to display rows in a Document Library in two columns side by side in SharePoint Designer, XSL
I am working in a rowview template, which basically iterates through all of the row items and displays them according to what i have set them at.
<table>
<tr>
<td>
<choose>
//different images for differ... | common-pile/stackexchange_filtered |
C++ "Error: a nonstatic member reference must be relative to a specific object"
I'm trying to include experiencecalculator from a class but I get this Error: a nonstatic member reference must be relative to a specific object.
#include "stdafx.h"
#include <iostream>
#include <string>
#include <stdio.h>
#include <iomanip... | common-pile/stackexchange_filtered |
Speed up data transfer from db to application
I have build an application that handles data stored in a MS SQL server database. This server is hosted externally of our company and has to be connected to via SSH because of company rules.
On a regular working day it takes about 7 minutes to retrieve a list of data, while... | common-pile/stackexchange_filtered |
Is it possible to add a nuget package as runtime only dependency?
I'm working with the following projects:
MyFramework.csproj (class library)
MyCustomerApp.csproj (class library)
References MyFramework
MyLauncher.csproj (Executable program)
references MyLauncherDependency.nupkg
MyCustomerApp.csproj is the 'runnabl... | common-pile/stackexchange_filtered |
Storing keys in KeyChain with KeyChainItemWrapper
I'm using KeyChainItemWrapper class, provided by Apple's Sample Code to save the authentication token to the keychain.
KeychainItemWrapper *keychain = [[KeychainItemWrapper alloc] initWithIdentifier"JetTaxiApp_AuthToken" accessGroup:nil];
But when I'm trying to set t... | common-pile/stackexchange_filtered |
Behavior of matrix rank under thresholding of its elements
Let $A$ be a $n \times n$ real matrix of, say, rank $r$. Consider the matrix $$\max \{0,A\}$$ whereby each negative element of $A$ is set to $0$ and the non-negative elements are left unchanged. Is there anything known about by how much the rank of $A$ can incr... | common-pile/stackexchange_filtered |
Why is my istream going bad after I call getline with it
I am writing code for a coding class, and I am writing a class called MyString which is supposed to be able to store a dynamic char array that acts like a String. However, when writing a read() function that is meant to act like the getline() function, I ran into... | common-pile/stackexchange_filtered |
Git: how to mark a file as conflicted after "git merge-file"?
I've been using "git merge-file" to help me port code from a different repository. This works great.
However, when a merge conflict happens, though "git merge-file" will properly report it, the file isn't marked as needing resolution in "git status". In the ... | common-pile/stackexchange_filtered |
Looping to find related records
Looking for assistance/direction in setting up a loop? function to find related records in a table.
The table (tblTransactions) holds information about various transactions we are tracking. I am also using this table to reference a predecessor transaction. Now I am seeking a way to l... | common-pile/stackexchange_filtered |
batch file for merging large CSV in one excel sheet
I have large CSV multiple file say 20-30mb which has same header however the number rows of those files are different. I need a batch file which will copy the content of all the CSV file in one excel sheet.
Hope you guys will help me in creating a batch file please.. ... | common-pile/stackexchange_filtered |
"Biztalk projects" icon missing in Visual Studio
I have Biztalk 2002 and Visual Studio 2003.
In Visual Studio I create a blank solution, I right click on the new solution to add a new project, which I want to select "Biztalk Projects". However, the BizTalk Projects selection is missing from my environment.
Only C#, C+... | common-pile/stackexchange_filtered |
Need help wiring a new double pole line voltage thermostat
[
Just bought my first home and this is my first time posting, so please forgive me if my terminology is incorrect.
I currently have bedrooms upstairs each with 1 baseboard heater and thermostat for each. The circuit breaker is off and I've undone most of the w... | common-pile/stackexchange_filtered |
Firebase check if a value exists without reading a snapshot or trying a write (for unique usernames)?
I've been stuck on this problem for many hours now, so any help is appreciated. Trying to make an Android app with Firebase for user authentication (simple-login email and password) along with unique usernames. I have ... | common-pile/stackexchange_filtered |
jConfirmation on top of dialog
I'm new to html& jquery. I'm having a dialog and while trying to close it, I need to ask a confirmation message, which should be displayed on top of the existing dialog. I tried using jconfirmation, but it comes up after closing the existing dialog. But I need the confirmation to come on ... | common-pile/stackexchange_filtered |
SyncFusion WPF ComboBox in Grid- How to set display text on OnCommitCellInfo event
I have a SyncFusion ComboBox dynamically added in SynckFusion:GridControl with following code:
SchoolGrid.Model[rowIndex, columnIndex].CellType = "ComboBox";
SchoolGrid.Model[rowIndex, columnIndex].ItemsSource = itemSource;
S... | common-pile/stackexchange_filtered |
Basic circuit analysis question
Why current is negative in this situation? Because EMF and current directions are the opposites?
Can someone give me a good explanation on relationship between current and EMF?
When the current is negative it means that it is actually flowing in the opposite direction of the arrow. Fo... | common-pile/stackexchange_filtered |
Elasticsearch + Kibana, no logstash, web issue
I have a AWS instance, set up a log aggregator. I would like to setup Kibana and Elasticsearch there. Kibana went up and configured itself, but it doesn't connect to Elasticsearch, which is running on the same machine. The error in /var/log/elasticsearch/elasticsearch.log ... | common-pile/stackexchange_filtered |
Unable to use wagtail with multiple databases
As the title suggests, I'm finding it difficult to use multiple databases with Wagtail.
My Objective is simple: Implementation of a scenario where all the Django as well as Wagtail tables will be created in the sqlite database for now rather than in the postgreSQL db. ... | common-pile/stackexchange_filtered |
using the same linker ld script file target for two files
lets assume I have a memory allocation that looks like this:
MEMORY
{
firstfile : ORIGIN = 0x00000000, LENGTH = 0x2000
secondfile : ORIGIN = 0x00002000, LENGTH = 0x6000
}
now I want to use the same ld script for two different files. 'firstfile.c' and ... | common-pile/stackexchange_filtered |
Mod Rewriting directory structure to appear differently
I hate having to ask for help, but editing .htaccess is one of those things in life that I cannot and will not ever wrap my head around. I've been at this for months trying to learn, and I've got nowhere. I finally admit defeat and come seeking help!
I have a dire... | common-pile/stackexchange_filtered |
Styling md-tooltip (Angular Material 1.1.3)
I have a mat-tooltip that I was styling through a CSS like this:
mat-tooltip .mat-content {
// custom values, styling is not applied
}
However since 1.1.2 release of angular material this styling is not being applied to my tooltips. Has anybody encountered a similar issu... | common-pile/stackexchange_filtered |
How can I extract a NSDictionary from an NSDictionary on a lower level
I have an NSDictionary that contains an NSDictionary which also contains NSDictionaries. Now I have code to extract what I need when I only have the website. This is my code.
NSInteger selectedRow = [self.myTableView selectedRow];
NSString *current... | common-pile/stackexchange_filtered |
Laravel + vuejss app Api not working in Subdomain subdirectory in live
I am trying to deploy code to a live server built in laravel vuejs.i have subdomain.and in sub domain i have created a subfolder. I have followed this link .The issue is that the project runs but any api is not working. It gives 404. From the consol... | common-pile/stackexchange_filtered |
How to disable css warning "Unknown property" in Eclipse Mars?
I get many "Unknown property" warnings in my css files.
This might be due to the fact that I have e(fx)clipse 2.0 and the Eclipse Web Developer Tools installed.
If I open the css files with the e(fx)clipse css editor and add /SuppressWarnings/ the warning... | common-pile/stackexchange_filtered |
using parameter text file in bash
How can I change 3rd field of records by depending on another file? Is it possible to use awk?
Sorry I am new to this
Example:
Records
xxxx xxxx 1234 xxxx
xxxx xxxx 5678 xxxx
Parameter (another file)
1234,9001
5678,9020
My expected output is
xxxx xxxx 9001 xxxx
xxxx xxxx 9020 xxxx
... | common-pile/stackexchange_filtered |
Is there any function similar to stristr() in PHP 5.2
Is there any function similar to stristr()? I want to use stristr(), but I can't because my PHP version is 5.2.9.
So I need a similar function which gives the same functionality.
<?php
$email =<EMAIL_ADDRESS>echo stristr($email, 'e'); // outputs<EMAIL_ADDRESS>echo s... | common-pile/stackexchange_filtered |
RegEx: How to match a whole string with fixed-length region with negative look ahead conditions that are overriden afterwards?
The strings I parse with a regular expression contain a region of fixed length N where there can either be numbers or dashes. However, if a dash occurs, only dashes are allowed to follow for th... | common-pile/stackexchange_filtered |
Responsive website: why would touchstart be needed instead of click?
I'm developping a complex Single-Page-Application using ReactJS.
This page was initially a desktop browser application with lots of "onclick" listeners everywhere, including internal code, but also external plugins/libs that we can't modify easily.
... | common-pile/stackexchange_filtered |
Unable to load static file in django 1.8
Here the relevant configuration for settings.py:
import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'dj... | common-pile/stackexchange_filtered |
Construct a monotonic function $f$ on $\Bbb R$ so that $f'(x)$ exists (finitely) for every $x\in \Bbb R$ but $f'$ is not a continuous function.
This is an exercise from Rudin's Real and Complex Analysis book.
Construct a monotonic function $f$ on $\Bbb R$ so that $f'(x)$ exists (finitely) for every $x\in \Bbb R$ but $... | common-pile/stackexchange_filtered |
Confusion about setting something.prototype.__proto__
In the code for the Express module for Node.js I came across this line, setting inheritance for the server:
Server.prototype.__proto__ = connect.HTTPServer.prototype;
I'm not sure what this does - the MDC docs (https://developer.mozilla.org/en/JavaScript/Guide/Inhe... | common-pile/stackexchange_filtered |
Whats missing in this code, and is it right?
I have to write a code in c, where the user can type numbers above 0.
If the user types a number below or = 0, then following will be the
output: the minimum of the numbers, the maximum, the average, the sum
and the quantity of the numbers. I have to use the scanf function i... | common-pile/stackexchange_filtered |
Openstack: Are components related to a keystone::project auto garbage-collected upon project deletion?
Hello dear community,
in the research of how to properly delete projects and their resources via the OpenStack API I was only able to find a hint in the official python sdk, the project_purge.py (docs). Here deletion... | common-pile/stackexchange_filtered |
Azure Logic App office 365 outlook connection issue
I am unable to create office 365 outlook connection in azure logic app.
It shows me following error-:
Create and authorize OAuth connection failed. Connection test uniqueness failed.
Can anyone please help me to resolve this issue.
One of the reasons you are receiv... | common-pile/stackexchange_filtered |
How do I suppress the "Save a local copy" prompt in clear case?
Background
In clearcase, whenever you uncheckout, or check in files, you get a prompt that says:
Save private copy of <file> ? [yes]
For each individual file.
Problem
I am trying to check in hundreds of files at once with a script and I know I don't want ... | common-pile/stackexchange_filtered |
recordFetchedBlock on CKQueryOperation not being called
I need to query for CKRecords of the recordType "Event". When I call recordFetchedBlock, I will add those records to my array. However, recordFetchedBlock is never getting called. Please help! Thank you:
//TODO: Query for all Event records
var database: CK... | common-pile/stackexchange_filtered |
How to prove that, if two numbers are equal $\mod2$ and$\mod3$ ,they are equal$\mod 6 $?
I was wondering if it could be proved without using the Chinese remainder theorem, arithmetically.
Thank you
If $2\mid a-b$ and $3\mid a-b$, then $6\mid a-b$
Technically you don't need the full power of the Chinese remainder theo... | common-pile/stackexchange_filtered |
iOS FCM token issue "NotRegistered"
I am attempting to call the API "https://fcm.googleapis.com/fcm/send" using my server key to send an FCM to a specific token. However, I am encountering an issue with the following response.
Request:
{
"to": "<MY TOKEN>",
"data": {
"body": "Test Notification !!!",
... | common-pile/stackexchange_filtered |
How do I move my IIS web site to be under the Default Web Site?
I have the Default Web Site in the IIS, i have a second web site that i want to use the same binding as the default. Right now it creates a second website.
As is
I want move the website to be under the default web site like the one below.
To be
I hope i ma... | common-pile/stackexchange_filtered |
Visual Studio Code Ethereum tutorial
Are there any tutorials on how to use MS Visual Studio Code to write contracts in solidity?
Not sure on specific VS tutorials, but this is a generic tutorial for solidity:
http://solidity.readthedocs.org/en/latest/
which should work on: https://visualstudiogallery.msdn.microsoft.co... | common-pile/stackexchange_filtered |
Is reaching the end of a C array legal from the standard view point?
Today, I encountered a piece of C code that looked pretty much like this:
void my_func(unsigned int *);
int main() {
unsigned int a[8];
// init_a(a); => a is properly initialized
my_func(a);
}
void my_func(unsigned int * a) {
unsigned in... | common-pile/stackexchange_filtered |
What is the equivalent to a VirtualBox setting in Qemu?
I'm trying to create a Packer template that has both a VirtualBox and a Qemu builder for the same thing. The VirtualBox one works fine, but with Qemu, I'm having some difficulty figuring out how to setup the networking properly.
More specifically, in the VirtualBo... | common-pile/stackexchange_filtered |
How to put condition based query for MySQL
I want to create a forum.
Scenario:
When a user click on question list from forum, It will redirect a page where he can find the respective Question and list of answer,
Whenever i used below mentioned query, I found the question from the question table (im_forum_question) on ... | common-pile/stackexchange_filtered |
How deep should a squat be?
Recently, I've read some articles that suggest that you should go below 90 degrees.
On the other hand, I've talked with a trainer in my gym, and he usually places a bench behind him so that he couldn't go below 90.
What is your take? Below 90 or 90?
Note: When I'm talking about degrees, I ... | common-pile/stackexchange_filtered |
Bind Tooltip Visibility to variable so that it shows text conditionally in code-behind
If I have a class that holds a static variable that will contain the Visiblity status of a Tooltip, how would I write the code-behind to dynamically change the Tooltip visiblity when the visiblity variable changes?
i.e. When Tooltip ... | common-pile/stackexchange_filtered |
Truecrypt compromised? (Coldboot attack)
In light of recent developments in computer forensics and "password recovery" utilities, can encryption technologies such as TrueCrypt still be relied on for a high degree of protection?
It would seem to me as though the ability to retrieve decryption keys from a device's RAM (e... | common-pile/stackexchange_filtered |
How do I return an index of where a number should go if it isn't found in a Binary Search in JAVA
So I have a binary search code that finds where a number should be placed to maintain sorted order. I've been at this for a little over an hour and a half so far trying to figure this out so I could use a push along.
What... | common-pile/stackexchange_filtered |
ADB Batch Script
I really need some help with my syntax and getting this to run right. So im trying to automate an entire kodi, and llama install just by entering your ip into a batch file. Any assistance would be much appreciated.
cls
echo.
echo You will install an app
echo The app need to be in your ADB-Folder
echo B... | common-pile/stackexchange_filtered |
Creating csv file in Scala
I am trying to to create a csv file in Scala by getting data in the form of JsValue from a third part API.
My method to save data to CSV file is :
def saveToCSV(str:Seq[JsValue]) = {
val outputFile = new BufferedWriter(new FileWriter("Result.csv"))
val csvWriter = new CSVWriter(outputFile... | common-pile/stackexchange_filtered |
Getting value from contenteditable div
Up to this point, I've been using a textarea as the main input for a form. I've changed it to use a contenteditable div because I wanted to allow some formatting.
Previously, when I had the textarea, the form submitted fine with Ajax and PHP. Now that I've changed it to use a cont... | common-pile/stackexchange_filtered |
Purpose of storing variables in web.xml?
A lot of the advice on the web on storing variables which may change depending on the env/other conditions is to put them in web.xml, but isn't the web.xml within the war file? even if you find the exploded war and change it, wouldn't it get overriden if you update the war file?... | common-pile/stackexchange_filtered |
Stringgrid with buttons
1st Question:
How do you call the part in stringgrid that is not visible? You need to scroll to see it.
For example:
There are 20 rows in a stringgrid but you can see only 10 at a time. You need to scroll to see other 10. How are the "hidden" ones called?
2nd Question:
I know this is probably ... | common-pile/stackexchange_filtered |
How to manipulate iOS conversation's streams?
I found two very useful topics here and here. But I need somehow to change speaker/mic stream. For example, apply some effects or stop audio from being played to user at all. So my question is not about recording, but about manipulation of audio in real. Is there the way I ... | common-pile/stackexchange_filtered |
Python3 reques with cert and key "verified fail"
I'm trying to request data from endpoints, I can do that with curl -k --key a-key.pem --cert a.pem https://<endpoint>
But when I using python3 to do that, I failed every time
Examples:
With curl:
root@control-plane-0:~# curl -k --key /etc/kubernetes/a-key.pem --cert /etc... | common-pile/stackexchange_filtered |
How can i associate a library symbol with an existing class
I am using Flash Develop for compilation ( Not Flash IDE )
Here is a sample code :
[Embed(source = 'assets.swf', symbol = 'app.view.CustomButton')
var customButton_Class:Class ;
var customButton_Instance ;
customButton_Instance = new customB... | common-pile/stackexchange_filtered |
No module named (image_dehazer)
I was loading image_dehazer library, but it didn't work....
this is part of the error message and I don't know what to do !!
Collecting image_dehazer
Using cached image_dehazer-0.0.4.tar.gz (5.0 kB)
Using cached image_dehazer-0.0.3.tar.gz (4.9 kB)
Using cached image_dehazer-0.0.2.t... | common-pile/stackexchange_filtered |
Multiplicative even and odd functions?
An even function satisfies
$$
f_e(x) = f_e(-x)
$$
and a odd function
$$
f_o(x) = -f_o(-x)
$$
Every function can be split into an even and an odd part
$$
f(x) = f_e(x) + f_o(x) = \frac{1}{2}(f(x)+f(-x)) + \frac{1}{2}(f(x)-f(-x))
$$
Now even and odd functions are basically related t... | common-pile/stackexchange_filtered |
How to export an encrypted non-seedless electrum wallet into bitcoin-qt?
How to export an encrypted non-seedless electrum wallet into bitcoin-qt?
Is it even possible?
Cheers
Does this answer your question? Migrating from Electrum => Bitcoin core
You'll have to import the addresses. See electrum2core.
| common-pile/stackexchange_filtered |
Rich Text Editor with extra or external plugins support
I am looking for a free rich text editor which supports extra or external plugins like MathType and Chemtype. I tried with CKEditor5 via its official documentation in Angular 13, but it gives some build errors, and conflicts after executing the program installatio... | common-pile/stackexchange_filtered |
How to properly use Dagger 2 to callback from adapter to activity/fragment?
I'm talking about the new architecture that was presented on the last Google IO.
Now I have the next implementation:
public class ThumbnailsAdapterViewModel extends ViewModel {
MutableLiveData<ThumbnailSelected> thumbnailSelectedMutableLiv... | common-pile/stackexchange_filtered |
how to store multilevel JSON in powershell
I want store JSON in powershell variable so that i can use them in Invoke-Request GET,POST,etc.
like below
$body = @{
username = 'some username'
password = 'some password'
}
$body = $body | ConvertTo-Json
it gives me JSON like
{
"username" : "some username"
"password" : ... | common-pile/stackexchange_filtered |
fetch data from two tables but only from first table sql
i have two tables(foregin key) first is 'question' and second is 'answer' it's like a quiz. 'question' table have only question's and 'answer' tables have only options.
now i want to fetch data from both tables but from first table i want only one row (ex. id = 4... | common-pile/stackexchange_filtered |
Any difference between DOMAIN\username and<EMAIL_ADDRESS>I'm trying to troubleshoot an obscure authentication error and need some background information.
Is there any difference between how Windows (and programs like Outlook) process DOMAIN\username and<EMAIL_ADDRESS>What are the proper terms for these two username fo... | common-pile/stackexchange_filtered |
Create a regular expression in htaccess for seemingly complicated subdomain with folder
I have many URLs like this:
http://blog.domain.org/blog/bid/365332/a-page-here
The number folder after "bid" changes and is random for every URL and "a-page-here" is different for every URL.
I need the regex to direct this type of U... | common-pile/stackexchange_filtered |
access session data of opencart through php file
I am new to opencart. I have my basic php code at http://localhost/testphp
and my opencart is installed at http://localhost/opencart. What I want to do is that in testphp, I have a page in which I want to check that if any user is logged in or not at opencart.
If it is l... | common-pile/stackexchange_filtered |
How can I enter number digit by digit in field /selenium
So I have verification code that contains 7 fields and I have verification code itself. How can I enter this code by number in every field? I tried to do List, but my skills are not that good.
Is it possible to share any screenshot? so that we will able to help... | common-pile/stackexchange_filtered |
Wordpress :Error in site title with multi language
I have site with 3 language
1- Arabic
2- English
3- France
The problem is in page title,i set the title for all language like :
مجمع البحوث العربية
This title work good in Arabic language , but when open as English is show me like:
طھظپط³ظٹط± ط§ظ„ط¹ط´ط± ط§ظ„ط£ط®ظٹط±... | common-pile/stackexchange_filtered |
Mod_Rewrite URL
Current URL:
http://localhost/blog/profile.php?username=Username&page_type=following
I want it to be:
http://localhost/blog/profile/Username/following
Current .htaccess:
RewriteEngine On
CheckCaseOnly On
CheckSpelling On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCo... | common-pile/stackexchange_filtered |
ArcGIS Pro will not display symbols on map
Using ArcGIS Pro with an imported data file of state plane UTMS. The file imports nicely, but I can not get symbols to display. I have applied simple black circle symbols, but they do not display. If I select a point in the attribute table, the selection will show on the ma... | common-pile/stackexchange_filtered |
Cleaning rat poison? (UK)
So i rent a studio in an old house, carpets everywhere, barely got through to the landlord to change the kitchen to anything but carpet....
Been here for like 5 years, about 2 years ago i though i had a mouse/rat problem. placed poison around it was never touched, but there are definitely hole... | common-pile/stackexchange_filtered |
How to round a datatime LocalTime to the onkly datatime. Not to the time with hours
I have got a code:
DateTime dzienStart1;
DateTime dzienStop1;
dzienStart1 = dzienStart.ToLocalTime();
dzienStop1 = DateTime.Now.ToLocalTime().AddMonths(-2).AddDays(-1.0);
Whem I look at a date in debbuger i getting in first date +2 ho... | common-pile/stackexchange_filtered |
dynamically set checkbox checked if value present in database
How to dynamically checked checkbox based on database value which are present or not null
@foreach (abc.Models.xyz entry in entrydetails)
{
<div style="height:auto !important;max-height:160px; overflow-y:auto;width:79%;">
@{
... | common-pile/stackexchange_filtered |
Using If statement to add a timestamp if a tick box has been ticked
I have a sheet which contains a tick box (cell C36). I have changed the data validation so when ticked, the cell = 1 and when un-ticked it = 0.
Now i would like a script that when C36 = 1, it puts a time stamp (HH:mm) in B39 without using the NOW() fun... | common-pile/stackexchange_filtered |
Partial Derivative Of An Exponential Gaussian Function
When trying to find the first partial derivatives for the function $\psi(x,t)=ae^{-(bx+ct)^2}$,
I am getting the following answers:
$$\frac{ \partial \psi}{\partial x}=2bae^{-(bx+ct)^2}$$
and
$$\frac{ \partial \psi}{\partial t}=2cae^{-(bx+ct)^2} $$
This does not a... | common-pile/stackexchange_filtered |
In XSLT how do you test to see if a variable is set?
When using XSLT how does one test to see if a variable has a value? Or more specifically, how do you properly nest the xsl:value-of method below so that it returns '' rather than failing to transform, when a value has not been assigned?
Declaration options could po... | common-pile/stackexchange_filtered |
Azure Devops deploy docker image to ACR using deployment job
I'm trying to deploy a docker image to Azure Container Registry via an Azure Devops pipeline. Now this works fine when I run it with this script:
trigger:
- master
variables:
# Container registry service connection established during pipeline creation
do... | common-pile/stackexchange_filtered |
Search and replace strings that are not substrings of other strings
I have a list of replacements like so:
search_and -> replace
big_boy -> bb
little_boy -> lb
good_dog -> gd
...
I need to make replacements for the above, but at the same time avoid matching strings that are longer like these:
big_boys
good_little_boy
... | common-pile/stackexchange_filtered |
Comparing register values in x64 Assembly
I'm trying to figure out a puzzle based on the existing values in the assembly registries.
I keep running into trouble at this line
cmp %sil,0x12(%rdi)
jne ...
The 12th offset for %rdi and %sil do in fact contain the same values when I examine them in the debugger, but t... | common-pile/stackexchange_filtered |
Calling javascript function within angular controller?
I have a Angular controller showing a Google Map (via NgMap). On the map i can add markers by clicking on the map. When clicking, a marker is set at the position and a infoWindows is opened. The window contains a link to a javascript function.
My problem is, that i... | common-pile/stackexchange_filtered |
Relating scaling and critical exponents in the Ising model
I'm reading the chapter about the renormalization group in Yeoman's book "Statistical mechanics of phase transitions" and I'm puzzled about how the author relates the scaling of the RG with the critical exponents. We have some RG map on the Hamiltonian $H\right... | common-pile/stackexchange_filtered |
Timezone for my country doesn't give correct answer
I am trying to echo date, simple code, but result is not correct for my country.
Result is 04.10.2014 and it should be 03.10.2014
Here is my code
PHP
<?php
date_default_timezone_set("Europe/Sarajevo");
$my_date = date("d.m.Y");
echo $my_date;
?>
adjust time on se... | common-pile/stackexchange_filtered |
Node.js: OAuth2Strategy requires a clientID option
I am setuping the MERN stack project, which was created by another developer and I am getting the error:
node_modules/passport-oauth2/lib/strategy.js:82
[0] if (!options.clientID) { throw new TypeError('OAuth2Strategy requires a clientID option'); }
[0] ... | common-pile/stackexchange_filtered |
How to train GPT2 with Huggingface trainer
I am trying to fine tune GPT2, with Huggingface's trainer class.
from datasets import load_dataset
import torch
from torch.utils.data import Dataset, DataLoader
from transformers import GPT2TokenizerFast, GPT2LMHeadModel, Trainer, TrainingArguments
class torchDataset(Dataset... | common-pile/stackexchange_filtered |
How to get value inside <td> which is inside tr[2] by finding a text whose <th> is inside tr[1] using java
I am new to selenium and I need to get the value £1000 which is inside
td class='ng-ngclass' /td
and i need to find that by finding text 'Wrapper1' from
th class="ng-ngclass" colspan="3" - Wrapper1 - /th
I s... | common-pile/stackexchange_filtered |
ReactJs dynamic html, binding values to the child class
I'm trying to create a plugin for an audio player where the user can specify their own optional html. The html that the user does specify should have certain properties that are defined in the player file.
At the moment in the plugin, the render method looks like ... | common-pile/stackexchange_filtered |
How can I manage browser cache in PHP?
My idea is simple, take all css files and generate one minified in a time of change in some css file. Then tell the browser to clear the cache. If there is an unchanged file in browser cache then use it - so user don't need to redownload it every time.
I'm using the following snip... | common-pile/stackexchange_filtered |
Transfer data between forms in borland c++ builder
I designed two forms in c++ builder:
TfrmMain
TfrmChooseName
In TfrmMain class I have button named btnNext. when btnNext is clicked, code below runs and creates new TfrmChooseName.
frmChooseName = new TfrmChooseName(this);
this->Hide();
frmChooseName->ShowModal();
th... | common-pile/stackexchange_filtered |
ambari-agent can not reach ambari-server
When I finished install ambari-server with httpd local repository and Comfire Hosts on webUI, I got some error as follow:
INFO 2018-05-27 15:39:16,776 NetUtil.py:70 - Connecting to https://master:8440/ca
ERROR 2018-05-27 15:39:16,787 NetUtil.py:96 - [Errno 8] _ssl.c:493: EOF occ... | common-pile/stackexchange_filtered |
Reading the contents of a file whose name is stored in a variable
The following code first creates a list of all the files in a folder called films, then attempts to access the contents of a specific file. I know how to do this if the file's name is a literal, but can someone please explain how this can be done if the ... | common-pile/stackexchange_filtered |
how to pivot a table in excel?
I have my data in excel in the following presentation:
As you may see, in the first column I have the date and in the second column I have some values. However, I would like to have my data like this:
I would like to have my data grouped by month and year and shown in the image below. I... | common-pile/stackexchange_filtered |
Get MAC addresses for all clients in AD
I would like to extract from an Active Directory the MAC Address of every hostname/client. Actually use this command but what's necessary to add to see the MAC Address?
Get-ADComputer -Filter * -Properties OperatingSystem,IPv4Address,MACAddress | select Name, IPv4Address, Operati... | common-pile/stackexchange_filtered |
Degrees of Freedom as Defined by Discipline
I've just begun a machine learning course and I've been confused over my professors use of the degrees of freedom terminology. I've picked up that while in statistics talking about degrees of freedom typically assumes you are referencing the degrees of freedom of the error te... | common-pile/stackexchange_filtered |
How to log the sdk ver of VungleAdsSDK(7.1.0) in obj-c ,i used the VungleAdsSDKVersionNumber & VungleAdsSDKVersionString[] but not getting crrct ver
updated vunglesdk to vungleadssdk , but not able to log its sdk version in xcode obj-c
i tried using these 2 methods specified in the header file . but not correct version... | common-pile/stackexchange_filtered |
Where can I post a question about a problem with mobile phone?
Where can I ask questions about a problem with Samsung J7 mobile phone?
Android Enthusiasts is the right place for you, as Samsung J7 is an Android phone.
I am an experienced user on Android Enthusiasts, and before you post your question, please make sure
... | common-pile/stackexchange_filtered |
How to get into Dart Docker container's shell?
I'm trying to access the my Dart Docker container's shell
$ docker-compose exec dartserver sh
but I'm getting this error message:
OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "sh": executable file not found in $PAT... | common-pile/stackexchange_filtered |
if a balloon full of warm air was placed in a refrigerator, what is the result?
If a balloon full of warm air was placed in a refrigerator, What will happen to the Ballon ?
What do expect from Charles law? How is volume related to temperature?
LOL -- Not being exposed to the UV rays of the sun means that the ballon... | common-pile/stackexchange_filtered |
how to prevent reopening new window using jQuery?
I've recently posted a new question in How jQuery can prevent reopening a new window?. At that post, I mentioned to my need for something on F2 key.
Now I want to ask another question similar to the question above; This time for clicking on a link.
I have a link that op... | common-pile/stackexchange_filtered |
GTK applications looking bad
I'm running ArchLinux and gnome shell 3.16.1.
GTK+ theme: Evopop-gtk-theme
Icons: Adwaita
Global dark theme.
Running applications like nautilus, gnome-tweak-tool, dconf, system-monitor, gnome-terminal I get the style I have configured.
The problem is when I run other applications like Fil... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.