text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
PHP - bindValue in a loop calling a stored procedure to insert, only works on first call
I have a stored procedure in MySql to insert some rows. The stored procedure works fine when calling from the command line and with different values.
Now I have a php script that scrapes a page and then tries to insert items into ... | common-pile/stackexchange_filtered |
When trying to ping and get records of dns domain, I get unexplained error
I am very new to golang, and I am using the dns library from github.com/miekg/dns to do this. I'm just trying the library out. I first call upon google.com in a loop which calls the domain 10 times, then averages the 10 pings. It does this with ... | common-pile/stackexchange_filtered |
bootstrap make accordion responsive?
I'm using the Bootstrap 3 Accordion Collapse,right now everything loads in one column, how can I make it so the panels use multiple columns in desktop resolution and one column in mobile mode?
<div class="row">
<div class="panel-group" id="accordion">
... | common-pile/stackexchange_filtered |
how to call functions/methods within CMS block or page?
We are trying to make all our blocks and pages static so that designer or anyone else can easily change the content or design of the website, however. There is a feature that uses our own custom module. So, the template that we want to make static is calling metho... | common-pile/stackexchange_filtered |
How is there room for further sanctions against North Korea?
As United States continues to augment sanctions against North Korea, is there a point where all avenues are theoretically exhausted for further sanctioning?
It always surprises me when a US President threatens or announces more sanctions on North Korea. What... | common-pile/stackexchange_filtered |
Finding injective map from a rational coordinate to natural number
Let $(p, q)$ be a rational coordinate in range $[0,1] \times [0 , 1]$. My goal is to show that for each $(p,q)$, I can find a unique natural number $n$.
My current approach is to find an injective function which takes $(p, q)$ to a natural number.
Since... | common-pile/stackexchange_filtered |
Can We connect LED on AC line
I see that LED light is replacing nowadays every old style light. I open one LED bulb and found that had a little SMPS inside it. Those convert AC line voltage to DC to supply the LED.
Wondering we can design to connect LED's on directly on AC line . It will improve efficiency
As per attac... | common-pile/stackexchange_filtered |
Set title of an Android Item
Is it possible to set the title of an Android Itemin the Java code. I know its possible in the xml file but I want to do it dynamically from within my Java Code. So this was my existing XML file:
<item
android:id="@+id/txn">
android:title="@string/txn">
<menu>
<group ... | common-pile/stackexchange_filtered |
QuickSort in C++ will not finish sorting
Could someone please help me and tell me why quick sort algorithm will not sort the final element?
When I input:
6 89 2 78 12 19 99 43 7 63
I get an ALMOST sorted:
2 6 7 12 78 19 43 99 63 89
I have tried to figure this out my self, but when I work my way thought the code a... | common-pile/stackexchange_filtered |
Casting fragment to AutoCompleteFragment gives error
I want to initialise my place_autocomplete_fragment, but my getFragmentManager().findFragmentById() returns a casting error (cannot convert Fragment to PlaceAutocompleteFragment). I have already tried changing my Fragment import, but it did not solve anything for me.... | common-pile/stackexchange_filtered |
Errors installing Zoom conferencing
I downloaded zoom from https://zoom.us/download?os=linux
Wrote the following installation code. Installation started, bud then there is this "Error were encountered while processing: zoom
Does not tell me much...
~$ sudo dpkg -i Downloads/zoom_amd64.deb
Selecting previously unselecte... | common-pile/stackexchange_filtered |
Scroll parent to top from app part
Is it possible to scroll (iframe) parent to top from javascript of a app-part/addin-part?
Anyone with a verfied solution?
Try to add onload="window.parent.parent.scrollTo(0,0)" to the body tag in app part.
nope, didnt work. Ive tried most of the "this might work?"-solutions, thats w... | common-pile/stackexchange_filtered |
DirectX 11 - Drawing multiple viewports RSSetViewports with an array of CD3D11_VIEWPORT
I've set up my vertex shader and my pixel shader.
I then created a vector to represent my viewports (4 in total in this case):
std::vector<CD3D11_VIEWPORT> view_ports;
I've populated the vector and all 4 elements have the same defa... | common-pile/stackexchange_filtered |
Header full width in woocommerce
I am stuck trying to get the header full width in the woocommerce pages of my website.In every other page its full width.There is an element style that gives width 90% and i cant seem to find how to change it.Anyone any ideas?Thanks
codes i used
#top-classic.header-style2.top.header-li... | common-pile/stackexchange_filtered |
simple screen rotation on Android
I've looked for how to not reload whole activity when rotating screen in android app. Finally, I figured out that using only
android:configChanges="orientation"
in activity definition in AndroidManifest is really enough. When I rotate the phone, the activity doesn't reload, all my vie... | common-pile/stackexchange_filtered |
How to tell ORMLite not to override values in DB with null
I'm using ORMLite for Android to store data in a SQLite database.
In some cases I receive incomplete information from the WebService and therefore some of my object values are null. ORMLite then tries to store the new object (with the null values) into SQLite d... | common-pile/stackexchange_filtered |
How to pass the SSL config like truststore location and password?
Right now I have configured my Kafka server with a self-signed certificate.
version: '2'
services:
zookeeper:
image: wurstmeister/zookeeper:latest
ports:
- 2181:2181
hostname: zookeeper
kafka:
image: wurstmeister/kafka:2.11-2.0.... | common-pile/stackexchange_filtered |
Best approach for content inside fixed with listing container
The following is a wireframe of a listing which I am working on and I have couple of questions that needs to be clarified. As you can see, this is a tiled listing and it consists of an image, some text ( a title, desc, etc ) and action buttons. My questions ... | common-pile/stackexchange_filtered |
Nginx and Nagios passing through FastCGI Handler, 403 Error
I'm currently working on the renewal of my Web plateform and switching from Apache to Nginx.
So I've to test all our administrative and internal applications before doing it.
Well, so far, I didn't face any problems, BUT it would be a little bit too easy witho... | common-pile/stackexchange_filtered |
How do I skip a column entry on INSERT when a value is blank in SQL?
I'm inserting lots of rows into a database and some of the columns are blank for some of the rows.
How can I insert without assigning a dummy value to these blank fields?
1 INSERT Leads VALUES('name', 'cityName', 5, 'anotherValue')
2 INS... | common-pile/stackexchange_filtered |
Create a Menu for users to choose whether they want to add/remove/search for numbers using an array
I want to build a simple user Menu for the user to add/remove and to search for numbers through an array. However, the problem that I am facing is that after successfully running the code and adding numbers to a global a... | common-pile/stackexchange_filtered |
Find everything that's not an email address using only regex
I need to find everything in a string that is not an e-mail address.
Here is my version of how to find an e-mail address.
^[a-zA-Z0-9_.-]+@[a-zA-Z0-9][a-zA-Z0-9-.]+\.([a-zA-Z]{2,6})$
I want to modify this regex to find the inverse--everything other than the ... | common-pile/stackexchange_filtered |
Facebook posting gif issue
I do have a problem while posting gif to facebook from my web app.
<head>
<meta name="viewport" content="width=device-width">
<title>Gif</title>
<meta property="fb:app_id" content="322819664717135">
<meta property="og:site_name" content="ADZZY">
<meta property="og:url" content="http://www.ad... | common-pile/stackexchange_filtered |
How can i update a directive $scope from other directive contoller in Angular.js?
I have a diretive with a list of events loading from my service service:
.directive('appointments', [function () {
return {
restrict: 'CE',
scope: {
ngTemplate: '=',
},
... | common-pile/stackexchange_filtered |
The truth value of a Series is ambiguous python dataframe
I am new to python pandas. I build a small function and now I always get the following error:
The truth value of a Series is ambiguous. Use a.empty, a.bool(),
a.item(), a.any() or a.all().
I know that this error was already discussed in other question, howev... | common-pile/stackexchange_filtered |
Render raster tiles from a Mapbox GL style
I'm struggling to put together the appropriate stack for rendering raster tiles (for display of slippy maps) from a given Mapbox GL style.
Style specifications: First there were the Mapnik XML stylesheets, which were then superseded by CartoCSS, which in turn are to be replace... | common-pile/stackexchange_filtered |
Correct way of downloading a file with POST data using WebClient
I currently have an app that posts data to a web server, then downloads the response. I use UploadDataAsync to achieve the result, using the following:
using (var client = new WebClient())
{
var dataToPost = Encoding.Default.Ge... | common-pile/stackexchange_filtered |
how do I 3D Plot f(x,y,z)=0
I am very new to mathematica and was wondering how I could 3Dplot -5(x-2)-7y+3(z+4)=0 I've tried 3DPlot and Contour but neither have seemed to work.
PLease help.
Look up ContourPlot3D[].
@J.M. it is 2D case but I think it is good enough to be a duplicate, what do you think? How can I plot ... | common-pile/stackexchange_filtered |
PHP md5 insertion in localhost
I am trying to insert an md5 value for password field. When I check the query, for example:
c4ca4238a0b923820dcc509a6f75849b
but it is getting inserted as
c4ca4238a0b923820dcc509a6f7584
(Note that 9b is missing to the original value)
My query code is:
INSERT INTO employee_list (employ... | common-pile/stackexchange_filtered |
How to resolve unable to find device with the name: "Nexus 4 (Lollipop)" in xamarin
I have been battling with xamarine ide for a while now, I was unble to deploy my app to the emulator. Although I am a novice to xamarine IDE. The version am using is Xamarine Studio 6.3
pls I want someone to guide me here maybe I am mi... | common-pile/stackexchange_filtered |
How to get permission for Driver Distraction optimized?
I want to code an automotive app which should simply display a map while the user is driving. I am developing with Android Studio 4.0.1 and in Kotlin. In order to create an emulator for testing, I used Android Studio 4.2 Beta 1 to download an automotive system ima... | common-pile/stackexchange_filtered |
alert popup before delete using jquery in ascx page for link button calling in onClientClick
please help me in creating a alert before deleting a row in gridview, as for my requirement i created a grid in ascx page and calling in aspx page. I have a LinkButton for deleting and the functionality is working fine but i'm ... | common-pile/stackexchange_filtered |
Why is my Angular FormGroup Valid when a control that is marked as required is empty?
I am trying to setup a basic form validation for a select.
In my constructor I have the following FormGroup
this.formSubmission = new FormGroup(
{
triggers: new FormControl(['', [ Validators.required]])
}
)
I have a button o... | common-pile/stackexchange_filtered |
Is there a characterization of linear isomorphisms of the space of skew symmetric matrices?
Let $M_n^s$ denote the $\scriptstyle\binom{n}{2}$ dimensional space of $n \times n$ skew-symmetric matrices. Is there a characterization of linear isomorphisms that take $M_n^s$ into itself. If $n=2$ then any isomorphism
$$Q:M_... | common-pile/stackexchange_filtered |
Go. Get error i/o timeout in server program
I wrote simply server program to received data form client. I little not understand what sometimes I get error read tcp4 IP:PORT i/o timeout from function
int, err := conn.Read([]byte) event time set in function SetDeadline() not was exceeded. I present some part of my code,... | common-pile/stackexchange_filtered |
Braintree Apple sandbox Pay shows payment not completed error after scanning finger prints iOS
I have implemented Braintree which supports Apple Pay. But I am facing a problem. Everything is running properly but whenever I try to make payment it shows me the "Payment not completed" sign. I have checked that my domain i... | common-pile/stackexchange_filtered |
Mongo db decimal to string is not working as expected
I am using MongoDB to do some calculations as per below.
Creating one collection called "Numbers"
Insert a big number let's say 2^64 ( we can store this big as MongoDB support decimal128 as default data type)
// inserting
db.numbers.insertOne({newBig:<PHONE_NUMBER... | common-pile/stackexchange_filtered |
Nixpkgs Overlays: Why are some non-overwritten attributes different between "super" and "self"?
Background
When I've added the first Overlay for Nixpkgs, I found out that a bunch of system utils got built for a different version:
these derivations will be built:
/nix/store/028dqnwq36xja16gba3gckq5mcprpn06-postfix-ma... | common-pile/stackexchange_filtered |
What is the best service to use for data pipelines on GCP
I wanna deploy service (python script that uses Apache Beam) on my project on GCP with execution time sometimes up to 24h. I need this service with the data pipeline to be always working. Also I have a web application that's gonna use the results from the data p... | common-pile/stackexchange_filtered |
Birt - Using Amazon Javascript SDK In Report
I am very new to Birt just started two weeks ago, I could not find any related topics in the forums so I am posting a new one, please share the reference if the issue has already been discussed,
I have some image files stored in Amazon S3 bucket which uses secured URLs, so I... | common-pile/stackexchange_filtered |
How to install XcodeColors with Xcode 4.6?
Using CoconutKit, I wanted to see all their logs in color. Sadly, I did not get XcodeColors to run.
Supposedly, I was to copy XcodeColors into the Xcode plug-ins path:
/Library/Application Support/Developer/Shared/Xcode/Plug-ins
Not only the Plug-ins folder did not exist, b... | common-pile/stackexchange_filtered |
Compare integer in the list of integer array
In Javascript, I have a list of integer arrays in a single List. How can I compare the integer in the list?
var childOne = [];
childOne.push(3);
childOne.push(1);
var childTwo = [];
childTwo.push(4);
childTwo.push(2);
var main = [];
main.push(childOne);
main.push(childTwo... | common-pile/stackexchange_filtered |
Find and replace in multiple files
OK, whats the best solution in php to search through a bunch of files contents for a certain string and replace it with something else.
Exactly like how notepad++ does it but obviously i dont need the interface to that.
foreach (glob("path/to/files/*.txt") as $filename)
{
$file =... | common-pile/stackexchange_filtered |
Undefined variable Call Stack #TimeMemoryFunctionLocation 10.0006379256
Good day!
I am having this problem on the update part of my code. Whenever I click my button for update, it gives me this error: Undefined variable Call Stack #TimeMemoryFunctionLocation 10.0006379256 . What did error did I made? Please I need your... | common-pile/stackexchange_filtered |
SQL Server char(1) and char(2) column
I need a table for bookkeeping all types in the data model. I don't have that many types but a fair deal of 'em. Ideally short descripive names would work well.
So I did this:
CREATE TABLE EntityType
(
EntityTypeID char(2) PRIMARY KEY,
EntityTypeName varchar(128) NOT NULL
)... | common-pile/stackexchange_filtered |
How can I enter information in a search bar using the requests module?
I am trying to scrape data from this website: https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi
I have a list of scientific species names that I want to enter in the search bar one by one, and then extract relevant information from the page u... | common-pile/stackexchange_filtered |
Trouble passing parameters to a scriptblock
I am having alot of difficulty passing parameters to a script block in powershell.
$delScript={del C:\DateResults\* $args[0] $args[1] }
$result0 = Invoke-Command -ComputerName $targetServer.TrimStart("\\") -Credential $credentials -ScriptBlock $delScript -ArgumentList... | common-pile/stackexchange_filtered |
Check if <div> has been asynchronously loaded with data-url
I have a JSP with the following <div>:
<div class="articleInfo" data-url="${article.url}/infoSheet"></div>
If there is any data available for the article, then it will be populated inside the <div> like this:
<div class="articleInfo" data-url="${article.url}/... | common-pile/stackexchange_filtered |
Neovim 0.10 colorscheme changes affecting highlighting in terminal
After upgrading to neovim 0.10, some autocommands such as autocmd ColorScheme * hi Normal ctermbg=none have stopped working in terminal. For me this happens in windows subsystem for linux through windows terminal. The reason and workaround is documented... | common-pile/stackexchange_filtered |
SSIS Capture OLEDB error in dataflow task
I am wondering if there a way to capture OLEDB error in code, as they are showing on progress message. The system variable "ErrorCode" and "ErrorCodeDescription" is too brief.
I would like to use a script component to save the failed row data with real error message (in my cas... | common-pile/stackexchange_filtered |
Limit the number of elements appended to array - Python
I have a stream from an API that constantly updates the price. the goal is to compare the last two prices and if x > Y then do something. I can get the prices into an array, however, the array grows very large very quick.. How can I limit the number of elements... | common-pile/stackexchange_filtered |
Grammatically correct plural / singular endings
Using a for loop, I have created a counter for late items by looping through items retrieved in a web request, setting a property of late as true if conditions are met, and incrementing the counter.
Using *ngIf, I could do the following:
<h5 *ngIf="lateCount != 1">You hav... | common-pile/stackexchange_filtered |
Can't get user email
here is my settings.php concerning facebook:
SOCIALACCOUNT_PROVIDERS = \
{ 'facebook':
{ 'METHOD': 'js_sdk',
'SCOPE' : [ 'email', 'public_profile', 'user_friends' ],
'FIELDS': [
'id',
'email',
'name',
... | common-pile/stackexchange_filtered |
Git push stopped at total
While push my project on git hub the cmd stop at total, like the image below
enter image description here
There are some ways you can retry:
Is the content you push is big
The Internet connection got a problem
Try to add some local commit and try to push again
the problem was with internet... | common-pile/stackexchange_filtered |
Remove project from TFS Source Control when Collection/Team Project don't exist
I have a Visual Studio Solution (2010) containing code projects that were under source control in Team Foundation Server 2010. That collection/project no longer exists, but the code was not removed from the collection. The collection and pr... | common-pile/stackexchange_filtered |
Python 3.3 import matplotlib in Windows don't get along
Well I have Python 3.3 and I need matplotlib to function properly.
I used the pip install matplotlib to install it.
Have installed Six, dateutils, Scipy, numpy and even pyparsing for it to work.
But when I import the function "import matplotlib as mpl" it brings... | common-pile/stackexchange_filtered |
What are the unique design considerations for space bound nuclear reactors (TOPAZ, SNAP 10-A), and their respective dangers?
While the US has claimed only sending one nuclear reactor (SNAP 10-A) into space, Russia has sent many. Here on earth we've adopted a Defense in Depth strategy to design for safety controls. Th... | common-pile/stackexchange_filtered |
Updating a Bayes factor
A Bayes factor is defined in Bayesian testing of hypothesis and Bayesian model selection by the ratio of two marginal likelihoods: given an iid sample $(x_1,\ldots,x_n)$ and respective sampling densities $f_1(x|\theta)$ and $f_2(x|\eta)$, with corresponding priors $\pi_1$ and $\pi_2$, the Bayes ... | common-pile/stackexchange_filtered |
Triangle in descending output
Why is it the output enters new line after 3? like this:
9
8 7
6 5 4
3
2 1
any number i input it always enters a new line after 3. My target output should be like this when i input 9:
9
8 7
6 5 4
3 2 1 0
Will you please clarify to me why is it enters a new line after 3?
public class Tr... | common-pile/stackexchange_filtered |
Fibonacci nim winning strategies in different situations
Rules of fibonacci nim:
Fibonacci nim is played by two players, who alternate removing coins or other counters from a pile. On the first move, a player is not allowed to take all of the coins, and on each subsequent move, the number of coins removed can be any n... | common-pile/stackexchange_filtered |
HP hardware problems on Xubuntu 16.04
I've installed Xubuntu to my detachable computer Pavilion x2 but some components are not working (speakers, card reader etc.). and system cannot see the battery so i cannot see the battery percentage.
I thought it is related with drivers. But when i entered additional drivers ther... | common-pile/stackexchange_filtered |
how to hide id from an url using htaccess mod-rewrite?
I am using this code in my htaccess to rewrite my urls
RewriteRule ([0-9]*)-([^/]*)\.html$ index.php?menu_id=$1&menu=$2 [qsappend]
This rewrites my URL to:
www.site.com/1-home.html
Where 1 is the id(menu_id) and home is the name of menu.
I have been looking arou... | common-pile/stackexchange_filtered |
How to add embeds in Discord V12
I'm new to javascript and programming.
I'm trying to add embeds to my commands but I'm struggling quite badly.
This is what my code looks like:
client.on('message', async (message) => {
if (message.content.toLowerCase() === '?help') {
const embed = new Discord.Message... | common-pile/stackexchange_filtered |
Navigating to destination between graphs
The official demo NavigationAdvancedSample) shows a workaround handling multiple stacks.
Briefly, it demos 3tabs: Home, Leaderboard, Register, every tab has its own graph. Leaderboard Tab graph has two fragments, Leaderboard as startDestination which has a list of items, click t... | common-pile/stackexchange_filtered |
Do too many google chart scripts affect adsense loading
I have a fairly dynamic website that uses google visualization api. (Every page displays 6 to 10 charts.)
<script type='text/javascript'>google.charts.load('current', {packages: ['corechart','line']});</script>
Google loads several js files as a result of the abo... | common-pile/stackexchange_filtered |
Selenium - org.openqa.selenium.WebDriverException: b is null
I am always getting this below exception while running my tests with Selenium Webdriver.
I have done some Googling but couldn't find anything related to this exception but found that this exception occurs when you are executing JavaScript in your code but I a... | common-pile/stackexchange_filtered |
Regular Expression replace special characters, only if not part of word
I have the following string:
'United Breaks Guitars': Did It Really Cost The Airline $180 Million? http://ow.ly/htPVk
Currently, my regex pattern looks like this: [^A-Za-z-0-9- - / -$]
I'm not an expert on regex and I've been playing around with ... | common-pile/stackexchange_filtered |
Python selenium webdriver wait is taking longer then it should
I have a 'WedDriverWait' for a presence of element which works fine if the page loads correctly but occasionally the page doesn't load (I just get a blank page) and then the 'wait' is about 5 mins rather then the 45secs I have it set to.
The code:
import s... | common-pile/stackexchange_filtered |
how do I install Vuze 5.2?
Currently Vuze <IP_ADDRESS> is installed from apt-get.
I want to update to the latest Vuze version. Can I download a JAR? I hesitate to manually install software.
current version is 5.2 on vuze.com -- quite a leap.
If I install from the website, what impact will this have on the system? I... | common-pile/stackexchange_filtered |
q?=admin page accessible for anonymous
How do I prevent this? I'm not sure what is causing this. This site is running over 60 modules now and yesterday I noticed something changed my admin_menu toolbar layout, but don't know if this has to do anything with this.
Check the user permissions. The anonymous role might ha... | common-pile/stackexchange_filtered |
Custom keyword suggestion in IntelliJ
I have a custom Javascript API implemented in C++ that I want to make work like any other API that IntelliJ can parse, i.e. I want keyword suggestions and highlighting. Being implemented in C++, the javascript API is made up of glue code that generates the API in runtime. So there... | common-pile/stackexchange_filtered |
Magento - catalog.xml not using correct template
Noob developing a Magento theme and I can't seem to figure out why Magento is not using the path I specify in the setTemplate action on catalog.xml.
I've got my own theme in /app/design/frontend/default/mycustomtheme and I've been patching files over from the base and ma... | common-pile/stackexchange_filtered |
return to previous page with form complet
Basically I have a registration form and when I click the submit button check if the email is valid.
However if there is a record of an error I do "header (" location: ". $ _SERVER ['HTTP_REFERER']);" to go to previous page.
When this happens you need to write it all again in t... | common-pile/stackexchange_filtered |
KVM, protocols for communication
What protocols does KVM use to communicate with host machine? I'm trying to network analyzer but still it is not really clear.
You have to be more specific here. Which communication are you referring to? Did you find anything with the network analyzer? Post that if you have it.
@Gr... | common-pile/stackexchange_filtered |
zsh ls: look for multiple extensions, no error if some don't exist
In a zsh terminal I want to ls all video files, that is all files ending with .mp4 or .mkv or .avi or .mov (for example).
When I do ls *.mp4 *.mkv *.avi *.mov it does what I want, except if there are no files with one or more of the given extensions.
E.... | common-pile/stackexchange_filtered |
Check if a Type derives from a Interface with more than one Generic Argument
I have a question about loading types with reflection. I am attempting to filter the list of types in an Assembly by those which implement an interface with two generic parameters. I don't intend to explicitly tell which types are those generi... | common-pile/stackexchange_filtered |
Re - LINK : fatal error LNK1561: entry point must be defined while compiling SDL2 project with VS2022 Buildtools
I am trying to compile this code -
//main.cpp
#include<SDL.h>
int main(int argc,char* argv[])
{
if(SDL_Init(SDL_INIT_VIDEO))
{
return 1;
}
SDL_Window* window=SDL_CreateWindow("P... | common-pile/stackexchange_filtered |
How do I make my app display a timer and let the user type their own inputs?
Sorry to clutter your screen with a noob question.
I'm making a pomodoro timer app (My first app outside of unity games)
I just need to know how to make the timer display, and how to make it count down from whatever number the user input.
I'... | common-pile/stackexchange_filtered |
c++ operator overloading logical opertors
Hi I was wondering how I could tackle this problem,
I need to overload +, - and * operators but need to replace them with Logical operators for example;
"+" should use OR
0+0 = 0 , 0+1 = 1, 1+1 = 1 ,1+0 = 1
would i have to place in the overload some sort of if statment?
Any hel... | common-pile/stackexchange_filtered |
Apply a tag to a topic in a Google Group based on containing text
I'd like to scan a Google Group (thats been created in Google Apps for Business) and add a 'tag' to all topics that match criteria (based on a containing text string).
For Example: I have a Google Group Collaborative Inbox that has 1000's of topics (as ... | common-pile/stackexchange_filtered |
How do you trust two different cloud provider servers?
I've found a question with an answer here on Security StackExchange or on Unix StackExchange, but I can't find it anymore apparently :( If you find this answer already, help would be appreciated, I already searched both places extensively.
What I want to achieve is... | common-pile/stackexchange_filtered |
error happen, when using lager's trace?
when using lager's 'trace' as follows:
lager:trace_file("/var/log/peter/lager_test_a_debug.log",[{module,lager_test_a}],debug),
lager:trace_file("/var/log/peter/lager_test_http_server_debug.log",[{module,lager_test_http_server}],debug),
'lager_test_a' is gen_server module, and i... | common-pile/stackexchange_filtered |
Automatically print the result of expressions in non-interactive Python
I would like to find a way where the execution of Python scripts automatically write the result of the expressions in the top level, as is done in interactive mode.
For instance, if I have this script.py:
abs(3)
for x in [1,2,3]:
print abs(x)
a... | common-pile/stackexchange_filtered |
Can I remove all ".0000" appearances on my webshop?
I am working on an e-commerce website where 500 products + specs are automatically imported from a CSV-file.
Unfortunately some of the specs have ".0000' in addition to the main number.
For example:
Product 1:
Depth: 40.0000
Height: 78.0000
Width: 125.0000
Product 2... | common-pile/stackexchange_filtered |
GRPC. Testing Context
Currently we able to test positive cases following way:
class AuthServer(auth_grpc.AuthServicer):
def __init__(self, *args, **kwargs):
print("Initializing auth server..")
super(AuthServer, self).__init__(*args, **kwargs)
def register(self, request, context):
return... | common-pile/stackexchange_filtered |
Alter" VLOOKUP" code to run Cell by Cell not on entire range
I am tring to alter this code FindReplace_With_Offset_1 to FindReplace_With_Offset_2
FindReplace_With_Offset_1 Run on a Col Range and it works fine
I need FindReplace_With_Offset_2 to run only on each Cell in the Col Range i.e. I need each cell to be its own ... | common-pile/stackexchange_filtered |
Clearing a binary search tree
I came across this method to clear a binary search tree. The code is given in a textbook. Why must a node temp be created and deleted in the end? Why not delete the subroot instead of making it null?
void Binary_tree<Entry> :: recursive_clear(Binary_node<Entry> * &sub_root)
/* Post: The s... | common-pile/stackexchange_filtered |
How can I move mail from one server to another?
I currently host mail accounts on a VPS, which I want to move to a hosted CPanel account.
Mail is handled by Postfix and Dovecot, but I don't know much about the server I want to move the mail to.
How can I move the mail files to the new host?
As per John Siu's comments, ... | common-pile/stackexchange_filtered |
Can I add a fingerprint without allowing it to unlock the phone?
Some of my more secure applications offer fingerprint unlocking. This would be convenient to use, and I don't foresee any security issues with someone using my fingerprint because I would have had to have unlocked the phone with a pattern for someone to g... | common-pile/stackexchange_filtered |
woocommerce set subscription start date
Using WooCommerce Subscriptions plugin:
I'm looking for a way to automatically make the start date (and therefore end date) of a simple subscription.
We've tried renewal sync of payment dates but for various reasons we've changing to subscriptions that don't renew but only last ... | common-pile/stackexchange_filtered |
How prove this $\frac{1}{\cos{A}}-\frac{\sin{\frac{A}{2}}}{\sin{\frac{B}{2}}\sin{\frac{C}{2}}}=4$
in $\Delta ABC $ not An equilateral triangle, let
$$\begin{vmatrix}
2\sin{A}\sin{C}-\cos{B}&2\sin{A}\sin{B}-\cos{C}\\
4\sin{\dfrac{A}{2}}\sin{\dfrac{B}{2}}\sin{\dfrac{C}{2}}+\cos{B}&4\sin{\dfrac{A}{2}}\sin{\dfrac{B}{2}}\si... | common-pile/stackexchange_filtered |
How many characters can we get in a SELECT or a PRINT statement?
I have a varchar(max) variable named as QUERY. I'm storing a bulk of create queries in it. Its length is almost 65000+ characters. But whenever I print it or select it, it does not returns me the whole result.
DECLARE @QUERY AS VARCHAR(MAX)
SET @QUERY='';... | common-pile/stackexchange_filtered |
Django Form Checkbox Automatically Update Database via Ajax
I can find lots of information on how to make a checkbox that automatically updates the database onclick using php/ajax rather than having a user click the checkbox then press another button to submit the form, but I can't find anything on doing this in Django... | common-pile/stackexchange_filtered |
Why can't I get past sign in on my php form? Session issue maybe?
I have my site hosted on collegeknowledge.ie - and it works fully on my localhost. Anyone can go to that link and sign up and they'll successfully be written to the database. My signin code works on my localhost and the session starts, however on my host... | common-pile/stackexchange_filtered |
Can I modify woocommerce themes that are under the GNU General Public License, version 2
Under the license it says:
"Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed."
Does that mean I can't modify the source code(template files, css, html etc), even... | common-pile/stackexchange_filtered |
Why there is no 3-category or tricategory of bicategories?
I recently asked this question on MSE.
So I want to move it here in hope to gain a more wordy answer.
I have read around about bicategories, lax functor, lax natural transformation and modifications. I know that we have a 1category of Bicategories and lax funct... | common-pile/stackexchange_filtered |
Sorting by string with numerics and spaces
I have a list of units that are named by 'Codes' and displayed like so:
NP/417A
NP 416
NP/418F
NP/418C
NP111
NP112
These units are queried from the database in the following object:
var units = _unitService.GetBySiteId(site.SiteId);
Which can then be used to order the units... | common-pile/stackexchange_filtered |
in TKInter Why am I getting an error - takes 1 positional argument but 2 were given
Just learning Python and TKInter and have come across this error in my code. Don't know what I'm missing and hoping someone can help. I've included the button code and the function to show you what I have.
def change_font(self):
sel... | common-pile/stackexchange_filtered |
APISARA
The numbers don't add up. If molecular viscosity were driving accretion in these disks, material would take billions of years to spiral inward. But we observe accretion happening on much shorter timescales.
THANATCHA
That's exactly the puzzle that stumped theorists for decades. The gas clearly needs to shed an... | sci-datasets/scilogues |
When calling selector that has NSAutoreleasePool, why are somethings in Pool left allocated after releasing it?
I am calling a selector which I want to use to fire off a background process with the following
[self performSelectorInBackground:@selector(startSync) withObject:nil];
For an example, lets say startSync look... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.