text
stringlengths
70
452k
dataset
stringclasses
2 values
Why can I not publish npm module to Google Artifact Registry? I run npx google-artifactregistry-auth --verbose And I seem to log in properly... Retrieving application default credentials... Success! So now I try to deploy and get... npm ERR! code ENEEDAUTH npm ERR! need auth This command requires you to be logged in ...
common-pile/stackexchange_filtered
Lists the organic groups current user is not a member I want to create a view that lists the groups user is not a member of. Tried to add the filter criteria -:(author)user:current(no),but it displays the groups user is a member & only filters the groups manage(created) by user. Views-:7.x-3.7 og-:7.x-2.3 what exact...
common-pile/stackexchange_filtered
JUnit parameterized Tests Getting the parameter after the test So here's my dilemma. I have been using Selenium, TestNG, and iText to generate nice PDF reports from the results of an automated Test run, but I was told recently that they didn't want competing libraries TestNG vs. JUnit, and was told to start using JUnit...
common-pile/stackexchange_filtered
Awkward word/line breaks in Firefox I am getting awkward word/line breaks sitewide in Firefox at trac3.com I have read numerous threads here and elsewhere in search of an answer. I've tried seemingly endless combinations of white-space, word-wrap, word-break and hyphen, but with no success. I don't know that I can rea...
common-pile/stackexchange_filtered
how to change float 5.0 to number 5 in list of lists I have the following list X=[[[0, 'rating'], [1, 4.0], [2, 5.0], [1, 5.0], [0, 4.0], [8, 5.0], [3, 2.0], [5, 5.0], [4, 3.0], [2, 5.0]]] y=[1, 1, 1, 1, 1, 0, 1, 0, 1, 1] And I want to fit with sklearn.linear_model in order to classify and count the accuracy of the tr...
common-pile/stackexchange_filtered
Emacs syntax highlight for subtitle files like as .srt .smi I found that Emacs has a mode for subtitle files like as .srt .smi. However it doesn't do any syntax highlighting on those sort of files. If there's a way to do that, please let me know. Thanks. This mode https://github.com/naokiri/subtitle-mode/blob/master/s...
common-pile/stackexchange_filtered
RabbitMQ client with SSL connection throws SSPI exception When using the RabbitMQ client with SSL enabled, CreateConnection(); throws an exception. The inner exception is with SSPI and inside that a token invalid exception. The RabbitMQ server has been tested in java and works as expected, so the problem must lie in th...
common-pile/stackexchange_filtered
Derivative of four-vectors I have to take the derivative of $(P+2k-2q)^2$ with respect to $k^{\alpha}$. What I am doing is writing $(P+2k-2q)^2=(P+2k-2q)^{\alpha}(P+2k-2q)_{\alpha}$ Then its derivative comes to be $2(P+2k-2q)_{\alpha}$ Is this right or do I have consider both cases? For example we can write: $(P+2k...
common-pile/stackexchange_filtered
Is it true $GS(TA)=T GS(A)$ where GS denotes the Gram Schmidt process and $T \in O(n,\mathbb R)$? Let $A$ denote an $n \times n$ matrix.Suppose $GS:GL(n,\mathbb R) \to O(n,\mathbb R)$ denotes the Gram Schmidt orthogonalization process.Is it true that GS(TA)= TGS(A) where $T$ is an orthogonal matrix? I think the cl...
common-pile/stackexchange_filtered
Getting Null data from google adwords api I want to fetch location details for all the ads from google adwords but I am getting null entries.I am not able to get any data from adwords api .Help me in That as according to my knowledge there is not problem with my code and I am not able to find any solution for that.My c...
common-pile/stackexchange_filtered
Flatten list containing ints and list of ints How would you flatten the list l: l = [1,2,[3,4,5],6,7] giving the list: [1,2,3,4,5,6,7] This is not the same as flattening: l = [[1],[2],[3,4,5],[6],[7]] as addressed here: How to make a flat list out of list of lists where l in this case contains only a list of l...
common-pile/stackexchange_filtered
DASK: Is there an equivalent of numpy.select for dask? I'm using Dask to load an 11m row csv into a dataframe and perform calculations. I've reached a position where I need conditional logic - If this, then that, else other. If I were to use pandas, for example, I could do the following, where a numpy select statement ...
common-pile/stackexchange_filtered
GROUP BY problems in Google Big Query I'm new to Google Big Query (and Stack Overflow), mainly testing the speed at which Big Query manages to process both well-crafted and poorly-crafted queries. I'm having difficulty with a cumbersome query that runs (slowly) on MySQL. Big Query complains about the GROUP BY contents....
common-pile/stackexchange_filtered
NSFetchedResultsController - Delegate methods crashing under iPhone OS 3.0, but NOT UNDER 3.1 Hey guys, so I've got my NSFetchedResultsController working fine under the 3.1 SDK, however I start getting some weird errors, specifically in the delegate methods when I try it under 3.0. I've determined that this is related ...
common-pile/stackexchange_filtered
Binary variables with multiple indices I'm new to Cplex and I'm working with the python API. I have a variable $w^t_{iksm}$ and I could just find the binary_var_cube function which only accepts 3 indices. I'm then using this $w$ to define $X^z_{ij}$ and $Y_{im}$ which are my decision variables. My question is, how shou...
common-pile/stackexchange_filtered
What is the cause of this log message in android studio I am trying to play videos using webview and whenever the play button is clicked, i get the following in my log. W/Chrome_InProcGp: type=1400 audit(0.0:35414): avc: denied { call } for scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:mtk_hal_pq:s0 tclass=binde...
common-pile/stackexchange_filtered
Switch from mySQL to mariaDB timestamp messup I have switched from MySQL to MariaDB which has caused some "minor" problems. One has been bugging me for hours now and i can't find the solution. I moved my database by exporting it from MySQL and importing it into MariaDB which went well.. When one of my update queries di...
common-pile/stackexchange_filtered
how to make jquery mobile display larger elements? I am developing a jQuery Mobile application for a tablet and found that the default element size is somewhat small. I tried to change the meta initial-scale with no luck :( Is it possible to make jQuery Mobile scale up everything, say by 30%? Perhaps, a CSS trick would...
common-pile/stackexchange_filtered
Adding color to the max value in a dynamically generated chart? The jsfiddle link is here http://jsfiddle.net/MzQE8/110/ The problem here I feel is in my JavaScript. I input values to the series object in a HighChart from an array. On the array I am trying to find index and the value of the maximum element and then I ...
common-pile/stackexchange_filtered
Are Poisson brackets preserved during a canonical transformation? Fix a Hamiltonian $H(q, p, t)$. Definition: A transformation $(q, p, t)\mapsto (Q(q, p, t), P(q, p, t), t)$ is said to be canonical iff for the Kamiltonian $K$ defined as $H(q, p, t)=K(Q(q, p, t), P(q, p, t), t)$, $(q(t), p(t))$ satisfies Hamilton's equa...
common-pile/stackexchange_filtered
Promises inside foreach in angular 4/typescript How is the best way to call a promise inside a foreach? I have an array and need to send each item to RestFull API. But at the same time, I have to check if the response its true ( i have a counter 'errorSendPayment'). After all requests I wonder sending a boolean or Prom...
common-pile/stackexchange_filtered
Fetch individual attributes only once each I am new to Core Data and am attempting something which seems to be simple but is elusive to me. Entity: Person Attribute: First Name I would like to fetch all First Name attributes but only have each one show once. That means that if "Peter" exists 5 times it would only be fe...
common-pile/stackexchange_filtered
phonegap barcode scanner not scanning pdf417 bar code I am trying to scan pdf417 barcode, using this https://github.com/phonegap-build/BarcodeScanner repository.My main aim is to scan US driver's license and get whole detail of it,but it always show wrong result and different format UPC_E, EAN_8 even when i scan pdf417...
common-pile/stackexchange_filtered
Is there any datatype or method that calculates the sum of previous array cells in the present cell? For example if the given array is 1,6,3,2,7. I want to store it in an array in a way given below: 1,7,10,12,19 where a[2]=a[1]+a[2] and so on. Is there any datatype where i can store in this manner or any methods a...
common-pile/stackexchange_filtered
Power BI slicer dropdown with array values I want to create a slicer for availableDataTypes field. I have array of values in availableDataTypes field.In the dropdown I want only [1],[2],[3] & none Options It should be a multiselect dropdown. If I select [1] in dropdown it should show me result of rows with availableDat...
common-pile/stackexchange_filtered
Why is my NPM cache folder in ./false/_cacache? I am on an NPM project using Docker, PhpStorm, VS Code and runs locally and through Docker. Under which circumstances is this folder put into ./false/? Has anyone encountered this in the past and would share what they found out? project-root-dir |__ false |__ _cacache ...
common-pile/stackexchange_filtered
Working with Javascript classes the right way Comparable questions have surely been asked before but I'd like to hear some words about my specific way of implementing Javascript classes. Let me first start with a Javascript example taken from a real-life application I've been working on recently. Example PageControl= n...
common-pile/stackexchange_filtered
how to see data going to output while debugging? I wonder if I can see data going to an output file during each iteration while debugging. Using DEBUG option allows me to see what is going on during each iteration but I can’t see which data got written to an output file during each iteration. I think it is important t...
common-pile/stackexchange_filtered
M2M in lua or javascript for M2M application which is better among Javascript and Lua? everyone talks about LUA when it comes to M2M applications.i am aware of javascript very much. so is it worth learning Lua and later implemnting to M2M applications instead of javascript? Possible Shark vs Gorilla? its machine to...
common-pile/stackexchange_filtered
What are some of the most important conclusions of Game Theory? This post has some good recommendations on prerequisite knowledge. I'm a first-year undergraduate. There are plenty of examples of applications. For example, here. I'm learning through MIT lectures online from this resource. To really see the big picture ...
common-pile/stackexchange_filtered
Android java: button's color toggling 'line' @ bottom doesn't toggle properly I've researched this high & low, both on here, and the intertubes in general. Unfortunately, I've found nothing applicable, even on the 'droid java API for the Button class. In my application, I have a button that I'm using to toggle playbac...
common-pile/stackexchange_filtered
How to download a csv file from django docker container I have an mounted django app using docker-compose. I also have generated a csv file in the server django app directory and inside the docker container. server django directory /restapi |*filename.csv |*app1 |*app2 inside docker container directory /django |*filen...
common-pile/stackexchange_filtered
Gradle dependency management to force version What is the best way to do dependency management like in Maven <dependencyManagement> tag ? I did some research online and found out there are a few options: Spring gradle dependency management plugin https://docs.spring.io/dependency-management-plugin/docs/1.0.8.RELEASE/r...
common-pile/stackexchange_filtered
Read a log file line by line I am trying to read a file line by line and look out for lines that contain the string "Inside /buyairtime" in it, then get the AppSessionId from that line, after that use the AppSessionId to get the requestBody that should be in the next line and retrieve the transactionId. I am able to re...
common-pile/stackexchange_filtered
ASP.NET Programmatically adding button with an event I am making a dynamic table that will add rows whenever the add row button is clicked. I am creating the button programmatically and adding it to the table header. Below that button, and on the same column there will be delete row buttons too. I am having a problem t...
common-pile/stackexchange_filtered
How to remove the first n character from all the cells in a column using python pandas? df['opposition'].apply(lambda x: x[2:]) Please help me to understand the lambda function and how it works in this case. Few things at play here: df[column].apply(f) takes a function f as argument and applies that function to ever...
common-pile/stackexchange_filtered
MySQL server would not start after config change I have MySQL server installed on an AWS EC2 micro instance. The server was starting/stopping properly with sudo service mysql start/stop, but it stopped working since I made minor changes to the config file (changed port values and commented out bind address line). Now w...
common-pile/stackexchange_filtered
Using <p:fileUpload > with the <h:inputText> doesn't get the inputext mapping value while uploading I am using PrimeFaces <p:fileUpload > with <h:inputText> inside. The problem which i am facing is when i upload image and add the title for the image, the images are uploaded but the inputText values will contains null,d...
common-pile/stackexchange_filtered
BindingOperations.EnableCollectionSynchronization in WinRT I am writing a Windows 8 store application where I have a view model that contains a rather large observable collection. Every once in a while we get an event from the model that causes us to start a pretty long process to update the observable collection. It w...
common-pile/stackexchange_filtered
Watin and HttpWatch Compile Error? I'm trying to get the following code to work using both Watin and HttpWatch. I'm getting a compile error of 'The type or namesapce 'IEBrowser' could not be found (are you missing a using directive or an assembly reference?) I have HttpWatch, Interop.SHDocVw, WatiN.Core, and Microsoft....
common-pile/stackexchange_filtered
Class method return list/array I am trying to return a numpy array when calling a class method from a class initialized as a list. import numpy as np class test_object: def __init__(self, val=1): self.value = val @staticmethod def generate(number=5): # create list of test_objects ...
common-pile/stackexchange_filtered
create account with my stackoverflow credentials I accidentally created my account with a google credential and now do not have any reputation - not even to put this onto meta :-( Can some moderate please correct and link it to my stackoverflow credentials (user TaW) this so I get the usual 100 points..? tia, tw Simp...
common-pile/stackexchange_filtered
Differentiate contacts as donors vs. class participants I need to differentiate contacts who are donors to our organization from those who are class participants. Some will be both but funds need to be differentiated. How do I do this? Welcome to StackExchange! This sounds like a good question but you could make it be...
common-pile/stackexchange_filtered
Avoid mistaken "double-click" non-response when clicking a Windows taskbar tab and immediately clicking it again to send to background? When I click a taskbar tab to highlight that program's window, sometimes I only want a quick peek, and so I quickly click it again to send it to the background. Unfortunately, Windows ...
common-pile/stackexchange_filtered
Multi-site Failover Cluster Instance for HA and DR to alwaysON Availability Groups In my company we have chosen to implement Multi-site SQL Server Failover cluster. Basically Data center A has 2 nodes (Active/Passive) and Data Center B geographically located acts as the DR. I believe there will be a SAN replication fr...
common-pile/stackexchange_filtered
Defining a custom if command In the following minimal example, I am able to define a custom \if* command based on ifcsname, however when I use it inside \loop construct I get Extra \fi errors \documentclass{article} \makeatletter \def\defMyCmd#1{% \expandafter\def\csname @@included@entry@#1 \endcsname{Defined}} \def...
common-pile/stackexchange_filtered
Can't find what the unexpected token on React Native project Start my app with very simple code but have SyntaxError /Users/user/myApp/index.ios.js: Unexpected token (7:6). import React, { Component } from 'react'; import { AppRegistry, Text } from 'react-native'; class HelloWorldApp extends Component { render() { ...
common-pile/stackexchange_filtered
Is there anything wrong with how I use the Copy-Item cmdlet? So, I am trying to copy a users home folder with all of its subdirectories into a folder on my desktop called (username)_removed, but its saying "Copy-Item: Container cannot be copied onto existing leaf item." Here is my code: $names | foreach-object {Copy-It...
common-pile/stackexchange_filtered
jQuery datepicker onSelect set multiple row values On the select event of the datepicker I need to add and set values in multiple rows. In other words, I have something like this... Days Value Row 1 7 Row 2 2 Row 3 3 I have the "Days" and "Value" columns as textboxes. When I select a date from the da...
common-pile/stackexchange_filtered
Send email to revision editor instead of node author I am currently using the Workbench Moderation module to allow pieces of content to be moderated and go through an approval process before being published. This all works great. Part of my process is to send an email to a user when their edited content has been approv...
common-pile/stackexchange_filtered
Keep every data entry per ID given one condition the following data is given: ID CODE 1 A 1 B 1 C 1 D 2 A 2 B 2 C 3 C 3 D I need to keep the IDs and every CODE documented, GIVEN that code A is documented. Further, is it possible to count how many DISTINCT IDs are excluded due to this cir...
common-pile/stackexchange_filtered
AIR Android GCM ANE MismatchSenderId Has anyone been able to get the Android AIR extension http://myappsnippet.com/gcm/ to work? I'm well aware of how to setup GCM. But when using the extension above I can not stop getting the MismatchSenderId error. I've used https://github.com/freshplanet/ANE-Push-Notification and i...
common-pile/stackexchange_filtered
Print corresponding elements from two lists I have two lists xx and yy where aa = {1, 2, 3, 4}; bb = {12, 13, 14, 15}; cc = {23, 24, 25, 26}; dd = {34, 35, 36, 37}; xx = {aa, bb, cc, dd}; yy = Transpose[xx]; After Transpose, xx = {{1, 2, 3, 4}, {12, 13, 14, 15}, {23, 24, 25, 26}, {34, 35, 36, 37}} yy = {{1, 12, 23...
common-pile/stackexchange_filtered
How to write a Lucene query that returns all words containing the letter "t"? I tried this Lucene code example, which worked: http://snippets.dzone.com/posts/show/8965 However changing: Query query = parser.parse("st."); to Query query = parser.parse("t"); returned zero hits. How to write a Lucene query that return...
common-pile/stackexchange_filtered
Check if NSString end with string I would like to check if my NSString end with @2x.png (case insensitive). How can I do that? I have this code now, but it seems to ignore the @2x part. NSString *fileName = [_sourcePath lastPathComponent]; [fileName stringByReplacingOccurrencesOfString:@"@2x" withString:@""]; ...
common-pile/stackexchange_filtered
Cache Files: How do you protect them, if they must have write permissions? I use a simple Cache library I wrote, which saves the data I want to have cached, into files under /var/www/my_site/cache/ This directory has read/write permission for everyone, so the apache process, executed by the user apache, can CRUD cache ...
common-pile/stackexchange_filtered
gdata-objectivec Architecture armv7 error in video sharing on youtube from iphone sdk i am using gdata-objectivec library for video sharing on Youtube from my app, i am using xcode 4.6 and iOS 6.0 to do this but the compiled static library "libGDataTouchStaticLib.a" does not support for the architecture armv7 and armv7...
common-pile/stackexchange_filtered
How to reference a scriptmanager from HttpContext.Current.CurrentHandler? I reference the current page in a class with Page page = HttpContext.Current.CurrentHandler as Page; I know need to reference ScriptManager1. What the syntax ? Thanks. ScriptManager sm = (ScriptManager)page.FindControl("ScriptManager1"); if(s...
common-pile/stackexchange_filtered
Can I use SELinux to add an extra layer of protection against 0-day VM escape exploits in KVM/QEMU? My host is Fedora, and I want to add an extra layer of protection against 0day KVM/QEMU exploits that execute code on the host. For example there have been CVEs where if we run a specially crafted malicious windows execu...
common-pile/stackexchange_filtered
how can i rotate a Texture2D in XNA game studio? hi i have to rotate a Texture2D, but i dont know why. its like a have a picture and i need to rotate it 180° because it's on the head and should be right. the problem is, i need to do it before i use spriteBatch.Draw, is this possible? The texture will be rotated by 180...
common-pile/stackexchange_filtered
automatic mounting of encrypted zfs dataset As a newbie to zfs, I am having trouble getting an encrypted dataset mounted during boot. The dataset is protected with a raw key and not a passphrase. This is how I created the zpool and the dataset: # zpool list no pools available # zpool create ZPOOL -m /media/ZPOOL -o au...
common-pile/stackexchange_filtered
Trying to call this method in my view and pass the input to the method argument Here is my method in my user controller: def donation_custom(amount) @user = current_user @user.amount_donated += amount @user.save redirect_to root_path, :alert => "thanks for donating" end I just need a simple input ...
common-pile/stackexchange_filtered
Comments section and Footer in News articles are not visible I am facing an issue for News articles where it doesn't render Comments section and Footer. Following are the details: Issue: News article do not load/render completely. Comments section and Footer don’t show up. After refreshing the page, the page loads/rend...
common-pile/stackexchange_filtered
Extracting files from directory via loop I am running a loop which needs to access circa 200 files in the directory. In the folder - the format of the files range as follows: Excel_YYYYMMDD.txt Excel_YYYYMMDD_V2.txt Excel_YYYYMMDD_orig.txt I only need to extract the first one - that is YYYYMMDD.txt, and nothing else I...
common-pile/stackexchange_filtered
Fast way to apply the function for a number to pandas.series The problem is described for the specific case here, but it would be valuable for lots of similar project. One pandas.series called month contain the month date of each sample in the format of int (1,2,3,4,...). I want to change it into the style of "01,...
common-pile/stackexchange_filtered
Dynamic Pivot Table in SQL Server Hello I have the following table and I want to pivot the EcoYear to be across the top but there aren't a set amount of years and the years could start anytime. In addition, different cases will have different starting years so I need it to pad 0 instead of null. CaseID EcoYear NetInv ...
common-pile/stackexchange_filtered
Objective C - Empyt Elements I wrote a program that produces an xml file; all works fine except that empty elements appear as follows in the xml file <key id="0"><key/> instead of: <key id="0"/> This causes errors when the xml is accessed. P.S. I have to follow the DTD stored here: /System/Library/DTDs/KeyboardLayou...
common-pile/stackexchange_filtered
How can I inject virtual DOM as string to dynamically render customized react components As what the subject said ,I need to inject virtual DOM as a string to dynamically render customized react components. I will use bellow code to help explain my intention. I have defined bellow two components: class Component_A exte...
common-pile/stackexchange_filtered
MATLAB code for solving fractional order partial differential equation through q-homotopy analysis transform method (q-HATM) Currently, I'm doing research about fractional order partial differential order and trying to solve it using homotopy analysis method with Laplace transform which is known as q-HATM. Then, solve ...
common-pile/stackexchange_filtered
COM interop question Am using COM interop in my C# application. I've this line of code: IMyInterface objData = MyCOMClass.GetData(); My question here is: Do I need to release resources on objData by using? System.Runtime.InteropServices.Marshal.ReleaseComObject(objData); Thanks for reading. possible duplicate of Best...
common-pile/stackexchange_filtered
How to know if EventWaitHandle.Set was invoked Is there a way to know which EventWaitHandle was invoked. i have two custom class with 2 different System Wide Event names. The reason I had them is to distinguish which function to trigger. The problem I have right now is how can I distinguish which event was triggered? E...
common-pile/stackexchange_filtered
Kenlm language model scoring with Java on Windows I'm mid-way through a Java project using a '.arpa' file to extract n-gram probabilities. Ideally I would like to use a '.klm' file (created using the '.arpa' file), similar to: model = kenlm.LanguageModel('languageModel.klm') model.score('The dog chased the ball.') how...
common-pile/stackexchange_filtered
Raster calculator - problems with syntax I have a raster layer with values ranging from 0.00597303 to 0.102894 and I want to assign specific number representing a group to specific range of values: Group 4: x >= 0.1 Group 3: 0.01 <= x < 0.1 Group 2: x < 0.01 I am using the following syntax: ("Ri_Q50@1" >= 0.1) * 4 + (...
common-pile/stackexchange_filtered
Angular data services with RxJS I am programming an Angular application, which talks to a REST-like backend. The UI consists of a master/detail page, where an element is selectable on the left side and the details are shown to the right. Using angular router, router outlet etc. The selectable items show a summary of th...
common-pile/stackexchange_filtered
Get previous item from iterable JS object? Is it possible get the previous item from iterable JS object? where tokens is an iterable object (not array). for (let token of tokens) { //token === the current token //const last_token = ??? } Make a let last; variable and keep the previous item there? if it's an obje...
common-pile/stackexchange_filtered
How can I get the IServiceProvider from a class library where the serviceProvider is builded in startup.cs? I inject some service in Startup.cs of a Asp.Net Core Web. It looks like this: public class Startup { public void ConfigureServices(IServiceCollection services) { services.AddSingleton<IStaffServi...
common-pile/stackexchange_filtered
Can a foreign tourist attend Okinawan language class in Naha? I arrived in Naha, Okinawa yesterday and took an interest in the local language as usual since languages are one of my hobbies. Okinawan is a dying language separate from Japanese that is not mutually intelligible with Japanese (though there is also an Okina...
common-pile/stackexchange_filtered
can an excel respond to an key press event when the excel itself is not active I have a macro enable excel file.What I want is describing below- Open the excel write a application onkey event. run this untill this I have done. the excel is responding to the keypress event. Now I want this- Minimize the excel.Thus t...
common-pile/stackexchange_filtered
how to check if $_GET has empty values in all the elements? I have a form and if the user pass in nothing, the url query will have the an element name with empty value: xxx.com/?id=&name= I wanted to check if the $_GET session is empty based on the values in the elements. if(!empty($_GET)) doesn't work because it to...
common-pile/stackexchange_filtered
Associating new records in a subform with record in parent form I am working on a purchasing database in MS Access 2010 for a non-profit, and have encountered a problem that I can't seem to solve using other resources. I have two tables relevant to this discussion, one of purchase orders, and one of line items. Each li...
common-pile/stackexchange_filtered
Replacing null and undefined values in json value with empty("") I'mm getting a JSON response with lots of null and undefined values. I need to replace all null and undefined values with an empty string (""). Below is a sample response I'm getting: { lecCicode: null lecOrderNo: null loccType: "Z" nccrCode: nul...
common-pile/stackexchange_filtered
setting a cookie in php I am trying to set a cookie, whas wrong with this as I am getting an error. Warning: setcookie() expects parameter 3 to be long, string given in /home/admin/domains/domain.com.au/public_html/setcookie.php on line 6 <?php $cookie_name = "test_cookie"; $cookie_value = "test_string"; $cookie_expir...
common-pile/stackexchange_filtered
why my ListView never calls onItemClick? I have really searched a lot on google, stack overflow , and found this : OnItemCLickListener not working in listview ANDROID. But seems sunshine's answer not works for my case. Other answers are all similar ones. I have tried the following approaches: add android:focusable="fal...
common-pile/stackexchange_filtered
external javascript doesn't read a file into directory I have this code: function myFunction (){ var xr = new XMLHttpRequest(); var url = "saveNewText.php"; var text = document.getElementById('editable').innerHTML; var vars = "newText="+text; xr.open("POST", url, true); xr.setRequestHeader("Co...
common-pile/stackexchange_filtered
Barcode input into database fails in php When i scan a barcode in "form" it automatically inserts it in database but two first digits are missing (two first zeros) . So , for example if a barcode<PHONE_NUMBER>800002 is scanned and inserted into database only number<PHONE_NUMBER>0002 is inserted without first two digit...
common-pile/stackexchange_filtered
Why can't a reflective barrier raise an object's temperature past a heat source's temperature? Say I have a 1 $m^2$ source of visible light emitting 1,000W worth of light. This is shining down upon 1 $m^2$ of ground. If we treat the ground as a blackbody, my understanding is that eventually it'll heat up until it reach...
common-pile/stackexchange_filtered
Every $3$-critical graph is an circle of odd length Let $G = (V, E)$ be a $3$-critical graph. Show that $G$ is a circle with odd length. One could start the following way: Since $G$ is $3$-critical, we can assume that $G/v$ has chromatic number $2$ for every vertex $v \in V$. This is equivalent to $G/v$ being a bipar...
common-pile/stackexchange_filtered
Entity Framework: Update related entities I have two entities: Invoice and InvoiceDetail. Invoice has an InvoiceDetails member. When I create an obcjet it works as expected. The framework inserts the Invoice and the InvoiceDetail rows in the database. $.ajax({ url: "/Invoices/Index", data: JSON.stringify({ ...
common-pile/stackexchange_filtered
Extract result set from a execute sql task and store it in a excel file? I have a execute SQL task, that needs two input variables and a output variable to run. The SP returns a table that i'm storing in ResultSet parameter. I want to store the values in this ResultSet parameter in a excel file. From my internet resear...
common-pile/stackexchange_filtered
Windows authentication. User gets prompted - ASP.NET I have the following settings: Web.config Authentication Mode = "Windows" Virtual Directory -> Enable anonymous access - UNCHECKED -> Integrated Windows authentication - CHECKED When a user goes to the default page on the intranet, he gets prompted to enter the user ...
common-pile/stackexchange_filtered
html table rowspan but do not stretch the row background I have created a table where the middle row spans over 2 rows. I would like to span the content in the row over 2 rows, but not span the background This is what my table looks like currently current table I would like to keep the specific row colours like in this...
common-pile/stackexchange_filtered
Writing a fast function to check elements in a matrix I'm trying to write a function that checks the elements in a matrix and returns another matrix of the results in booleans. The input: X: The list of 2D age array as described above. The output: The function should return a 2D array with the entries of either 0 or 1 ...
common-pile/stackexchange_filtered
CENTOS 8 - cannot bind to UDP port from service I did a fresh install of powerdns on CentOS 8 Desktop. When running the service on port 53 everything runs without issue. When changing the port 5300 it errors out. I receive this error message: visitel-vpn1.localdomain systemd[1]: Started PowerDNS Authoritative Server. L...
common-pile/stackexchange_filtered
C++ pause/resume system on large operation I have a C++ program that loads a file with few millions lines and starts processing, the same operation was done by a php script, but in order to reduce the execution time I switched to C++. In the old script, I checked whether there is a file with the current operation id in...
common-pile/stackexchange_filtered
POCO: How to use PartHandler for attachments? I use MailMessage message; session.retrieveMessage((*i).id, message); ( MailMessage: http://pocoproject.org/docs/Poco.Net.MailMessage.html ) And message contains a MIME email. I want to extract the attachments and text from message. As said here http://www.appinf.com/docs...
common-pile/stackexchange_filtered
CS0119 in compiling C#, Error at Task parameters I've been working on a Discord Bot, and I get a really bad error. I'm a beginner. I'm sorry if it's a dumb error, I probably didn't even knew C# basics more than a month ago. private async Task Filter(SocketMessage arg) { } public async Task StartInterpretation() { ...
common-pile/stackexchange_filtered
invertible elements of polynomial ring what is invertible elements of polynomial ring $k[x_1,...,x_n]$ ? for case $n=1$ we have $k[x_1]$ and $$ p(x)=a_{0}+a_{1} x+\ldots a_{n} x^{n} $$ then $p(x)$ is invertible element such that $a_{0}$ is a unit in $R,$ and the remaining coefficients $a_{1}, \ldots, a_{n}$ are nilpo...
common-pile/stackexchange_filtered
How to calculate the number of seconds when a TOTP will expire in? I am generating a simple token in my node app using notp: var notp = require('notp') notp.totp.gen("ciao", {}) // => 345678 I want to build a visualization similar to the one that Google Authenticator gives, and I need to know the number of seconds (or...
common-pile/stackexchange_filtered
Azure Logic App - Check multiple conditions I am trying to check the files count in array and perform below actions If Count is 0, No action If Count is 1, perform a specific action If Count is greater than 1, perform another set of action. I am using length expression to check the array file count using length(body(...
common-pile/stackexchange_filtered
Using eval and require I have a javascript object that stores strings and a string which contains a require statement (in _availComponents). However when I try to use eval to execute the string, it says require is not defined This is the code I'm using module.exports = Manager with webpack. Obviously scope is an issu...
common-pile/stackexchange_filtered