text
stringlengths
70
452k
dataset
stringclasses
2 values
Why doesn't <numeric> require/allow std::, but <cmath> does? Why, at least in my code, does <numeric> NOT require or ALLOW std::? I'm following along with a YouTube SDL2 tutorial, and IntelliSense has squiggled all my trig functions. In the process of experimenting, I removed all the std:: and it worked and compiled fi...
common-pile/stackexchange_filtered
Excel VBA - Using range variable to dynamically set range a set # of cells I currently have my code looking down a column in a specific worksheet for a certain value in a cell. If it finds that value in a cell, it uses that cell as the anchor location for the rest of the subroutine. Here is the relevant code. With Dail...
common-pile/stackexchange_filtered
Civireport vs Views What is the best practice between CiviReport and Views ? (Except the fact than Views enables to order the columns, which CiviReport does not) Why and when should we use one rather than the other ? A basic difference is that CiviReport is CMS-independent whereas Views is a Drupal module so those run...
common-pile/stackexchange_filtered
sw directory reference On this page I noticed a reference to the /sw directory. I would like more info on this directory. For example, is /sw a Mac only convention or is it used on other systems? /sw is used by the Fink project. Admittedly it does not conform to the Filesystem Hierarchy Standard.
common-pile/stackexchange_filtered
Maven : unable to find java.lang issue on OS X I getting the below issue when I tried mvn clean install obviously it is unable to find the run time jar but what I need to do ? the error log : [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] Failure executing jav...
common-pile/stackexchange_filtered
Create standalone executable c++ embed Lua dymamic library link? (eclipse,ubuntu) I create a c++ program and embedding Lua script. I use dynamic link to Lua library (not install Lua). In Lua file embedding i just print a message "Hello Lua". so how to i make standalone executable c++ embed Lua library and i can run it ...
common-pile/stackexchange_filtered
How can I modify the internal swarm load balancer IP address? I have a docker swarm in a cluster of machines and my use case is deploying several standalone containers that need to be connected which have static IP configurations, so I created an overlay to connect all the nodes of the swarm. I don't use/want to use an...
common-pile/stackexchange_filtered
How I Can Delete Custom Post Type URL i create a Custom Post and i don't want them has a URL. There is a URL like that = site.com/custom-slug/and-id-or-title and i don't want this, how i can do that? Thank you already! If I correctly understand the question you're asking, you don't want your CPT to be directly availa...
common-pile/stackexchange_filtered
AngularJS hide any parent div using ng-click in a child element I already know about ng-if and ng-show methods of showing/hiding DOM elements. In this case, however, I have about 100 div elements, each with multiple child span elements, and whenever a span is clicked, I want the parent div to hide. Example: <div>Displa...
common-pile/stackexchange_filtered
How do I pre-cache images for quick viewing with javascript? I have a webpage where I want the user to see a new image when they put thier mouse over a certain part of the image. I used an image map. <img src="pic.jpg" usemap="#picmap" /> <map id="picmap" name="picmap"><area shape="rect" coords ="10,20,30,40" onMouseO...
common-pile/stackexchange_filtered
can't delete an element from a hashmap I created a hashmap to store object Person, the key is a String (Person's email address). I am trying to delete an entry in the hashmap using the key but not sure why it won't delete it. What went wrong? My code and the output are included. any help is appreciated! import java....
common-pile/stackexchange_filtered
How can I submit a job form Zeppelin as a specific user? I am running Zeppelin on my cluster with user accounts set up, and I can log in to Zeppelin with my credentials, but all jobs submitted by all users show as being submitted by the user 'zeppelin'. Is there a way to have Zeppelin submit jobs to the cluster from a ...
common-pile/stackexchange_filtered
Archiving a huge database(oracle) without impacting processes that inserts records to it We have an audit database (oracle) that holds monitor information of all activities performed by services (about 100) deployed on application servers. As you may imagine the audit database is really huge because of the volume of re...
common-pile/stackexchange_filtered
Compute percentile and max value per variable Bash Gurus, I need to compute the max and percentile numbers for each item in the list, using awk aa 1 ab 3 aa 4 ac 5 aa 3 ad 2 ab 4 ac 2 ae 2 ac 5 Expected output Item 90th percentile max value aa 3.8 4 ab 3.9 4 ac 5 ...
common-pile/stackexchange_filtered
Plot confusion matrix using tensorflow on CNN classification I'm trying to plot a confusion matrix to analyse my train and test and I'm having difficulties to print/plot the matrix. I'm using convolutional neural networks with Tensorflow for classification, and I have 3 labels to classify. That's how I'm trying to prin...
common-pile/stackexchange_filtered
Permalinks causing wp-json to 405 I have 3 sites I am working with and only the main domain is having this disruption. We have a staging site with no issues, and another subdomain with no issues as well. The main domain when updating certain plugins is coming back with a 405 rest_forbidden error. Our staging site has ...
common-pile/stackexchange_filtered
How to change values of ListView elements in Codebehind I'm trying to create a table with Listview and one of the fields I'm using is supposed to show a hyperlink to a more detailed view of the data shown, how I want to do that is by using FindControl on the ID of that item and then changing the value into a hyperlink ...
common-pile/stackexchange_filtered
Is there a particular function to retrieve then delete random array element? I know I can do this in a couple of steps, but was wondering if there is a function which can achieve this. I want to array#sample, then remove the element which was retrieved. How about this: array.delete_at(rand(array.length)) This is ess...
common-pile/stackexchange_filtered
Can we prove that the object is not tilted from photo(s)? This is an image of Al-Masjid an-Nabawi. Can we from this image, or from combination of images available online say with a certain degree of confidence (prove?) that this red circled minaret is vertical, not tilted as it is claimed? (Original bigger version is a...
common-pile/stackexchange_filtered
ASP.NET MVC : 2d array is null after being passed from javascript to MVC controller action I have a 2d array of strings (12x5) that I want to pass from a javascript function to an asp.net mvc controller action. Using developer tools in IE I know that the array is populated with what I want it to be, so the issue is in ...
common-pile/stackexchange_filtered
The meaning of この+own personal name One of the villains of ジョジョの奇妙な冒険, Dio, frequently refers to himself as「このディオ」 (to the point it became a meme). What's the meaning of this grammar: この+own personal name? Is it just emphasis? Or are there other nuances? (might be related to What is the nuance of この + [first person pro...
common-pile/stackexchange_filtered
use dup2 to redirect printf failed The code is following. Q1: If dup2(fd3, STDOUT_FILENO), string2 will be in log.txt. If dup2(g_ctl[0], STDOUT_FILENO), string2 won't be received by g_ctl[1]. string1 and ls -al output will be received, Why ? Q2: The third library have some stdout/stderr log, if using dup2(socket_fd, ST...
common-pile/stackexchange_filtered
text field cursor issue in chrome I am using following css in my form section. CSS .username input{ background-color: #FFFFFF; border: 2px solid #DDDDDD; border-radius: 5px 5px 5px 5px; color: #9E9E9E; height: 30px; width: 330px; padding:0px 10px 0px 0px; padding-left:10px; margin:15px 0px 0px 0px; line-heig...
common-pile/stackexchange_filtered
Match a View in WebView from Espresso in Android I want to match the user name text field inside a WebView which loads the Salesforce login page (but can also be applied to any other page with text fields). I have tried with: onView(withHint("User Name")).perform(typeText("test@sf.com")); But that doesn't work. Any b...
common-pile/stackexchange_filtered
HTTPS implementation. Should I change pre-head tags? I implemented HTTPS on all the webpages of my website. My browser tells me it's a "Secure connection" with a green signal. I double-checked that all the images, CSS files, JS files, etc. were HTTPS, and I think it's everything ok. However, I'm still using the followi...
common-pile/stackexchange_filtered
Compare distributions of values in two arrays (of same size) using range argument I want to compare distributions of values in two arrays (of same size), but the histogram display changes when I specify range argument: def plot_compare(values1, values2, bins=100, range=None): fig = plt.figure(figsize=(8,6)) ax ...
common-pile/stackexchange_filtered
Wine Tasting Problem (Probability) Mr. Kim claims to be a connoisseur of wine. To test his expertise, he is given 8 cards with the names of 8 types of red wine. He is then presented 8 glasses of these wines and, after tasting them, he has to put one card at each glass. To be acknowledged as a connoisseur of wine, he sh...
common-pile/stackexchange_filtered
Under what condition on $f$ is $f(d(x,y))$ a metric $f:\mathbb{R}\rightarrow \mathbb{R}$ and $(X,d)$ is a metric space. Under what condition on $f$ is $\rho:X\times X \rightarrow \mathbb{R} $ given by $$\rho(x,y)=f(d(x,y))$$ also a metric? My attempt (intuitively): $f$ must be defined everywhere (well defined) i.e. it...
common-pile/stackexchange_filtered
cakePHP security I am thinking of using cakePHP to build a web app. My question is how much of security stuff will I have to code myself to prevent (SQL injection etc)? What security stuff cakePHP takes care of by itself and what will I have to code? http://book.cakephp.org/view/1296/Security-Component cake does a lo...
common-pile/stackexchange_filtered
History of history Is there a way in github to see the history of a branch's history? What I mean is that a branch is obviously just a pointer to a commit hash. What I want is every time the hash being pointed to by the branch changes on the server, for that change to get logged somewhere, i.e. in gitorious every time ...
common-pile/stackexchange_filtered
Why doesn't the map charge correctly? I have uploaded the map from a zip file. After loaded if you change the zoom level, the part that is outside the mobile screen is not loaded correctly. Why doesn't it work? Thanks! Loaded map is from cached data and remaining is not loading as Data connection is off, assumption a...
common-pile/stackexchange_filtered
Expression of $x^n+\frac1{x^n}$ by $x+\frac1{x}$ where $n$ is a positive odd number. There was a problem in a book: Denote that $y=x+\dfrac{1}{x}$, express $x^7+\dfrac{1}{x^7}$ using $y$. It's not a hard question, but I find a special sequence: $x+\dfrac{1}{x}=y\\x^3+\dfrac{1}{x^3}=\left(x+\dfrac{1}{x}\right)^3-3\lef...
common-pile/stackexchange_filtered
How long can you wait/hang out at the Oakland airport lobby? I have an early morning flight at 6:00 am from OAK (Oakland airport). The public transport doesn't get there early enough in the morning so I'm planning to take it the night before and arrive around midnight. Is it okay to just chill in the lobby for a few ho...
common-pile/stackexchange_filtered
Android Google Maps Activity only shows small crosses I currently have a Google Map Activity which is apparently working well but doesn't show the map (this sounds stupid!) Here is a picture that will make you understand better my problem: I already confirmed my apiKey, checked the tutorial over and over and even the ...
common-pile/stackexchange_filtered
String format doesn’t show int number 1 I have this method that receives seconds (as an integer) and returns a string with the years, days, hours, minutes and seconds. When any of the values (years, days, hours, minutes or seconds) = 1 it's not formatted. I have tried to parse to a string but still doesn't work. Does a...
common-pile/stackexchange_filtered
Show that a subspace is closed in a Hilbert space $H$ If $T$ is a bounded linear operator in a Hilbert space $H$, and $T$ is self-adjoint and is equal to its inverse, how can I show that $\widehat{H} = \{h + Th : h \in H\}$ is closed? If I consider the sequence $\{\widetilde{h_n} \}$ with $\widetilde{h_n} \equiv h_n+Th...
common-pile/stackexchange_filtered
Can we add a subordinate enterprise certificate authority linked to an existing enterprise Root certificate authority The Root CA is domain joined. The Sub CA will be domain joined. The Sub CA will deliver workstation Authentification (template) to PC clients via GPO. Is there any known issue with this configuration? S...
common-pile/stackexchange_filtered
why the way to call asynchronous is wrong? const before = () => { const p = new Promise((resolve, reject) => { // resolve('before') console.log("ok"); reject(new Error("error!!!")); }); return p; }; const handleClick = () => { const p = new Promise((resolve, reject) => { r...
common-pile/stackexchange_filtered
good book on Jquery and it's compatibility with asp.net Any recommendations? I have used Jquery already but I would like to really delve into it and find out how I can use it with asp.net, specifically instead of updatepanel and ajax toolkit. I use asp.net forms. Regarding jQuery, I found jQuery in Action very useful...
common-pile/stackexchange_filtered
ListItemTemplate stopped working after latest SAPUI5 update 1.56.5 I upgraded to the latest version of SAPUI5 - 1.56.5 and the ListItemTemplate inside Combobox stopped working. Although the dropdown length is equal to the number of items supposed to be displayed, there is no text displayed in the dropdown. var form...
common-pile/stackexchange_filtered
How to delete all posts from a custom post type? I want to delete all posts from a custom post type "TV-Serie". The number of all posts in this post type are 150,000. Moreover, when I try to delete them all manually while selecting more than 500 posts at once this provides "timeout error". Any idea on how to delete the...
common-pile/stackexchange_filtered
jQuery Carousel not repeating I am trying to create a carousel for my site and am having trouble getting the slides to move to the back of the list, so it is a continuous stream with no white space. Here is the code: <div class="maskleft"></div> <div class="maskright"></div> <div class="slideshow"> <div class="vie...
common-pile/stackexchange_filtered
Make an array function of javascript Is it possible to make a function like an array? so that the following functions can become simple and be easily edited. function q1() { var theForm = document.forms["contact-form"]; var quantity = theForm.elements["q1"]; var howmany = 0; if (quantity.value != "") { howm...
common-pile/stackexchange_filtered
Flex cancel a change event on a Tree Brief details: I'm using Flex 3.5. I have a Tree component that's used as a navigation menu between different 'pages'. When the user clicks a certain option in the menu, I switch the 'page' by switching between State components in my application. The thing is that when the user inde...
common-pile/stackexchange_filtered
Error in block pushing thread : Kafka Spark streaming The following error occured while running kafka consumer: ERROR receiver.BlockGenerator: Error in block pushing thread java.io.NotSerializableException: org.jnetpcap.packet.PcapPacket at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1183) a...
common-pile/stackexchange_filtered
how to read the contents of file and convert it into dictionary in python I have a text file (applications.txt) containing n number of lines of data (with 2 delimiters) in the below format. 1) mytvScreen|mytvScreen|Mi TV,Mí TV, My Tv, TV 2) watchNextScreen|watchNextScreen|Seguir viendo,Mi TV Seguir viendo 3) recordin...
common-pile/stackexchange_filtered
How to get flat files with no file structure as source and insert same data into table as target in IICS I wanted to get the flat files as source without any file structure specified using IICS(Informatica Intelligent cloud services). Flat files names can be anything, and structure also will change any. And also need t...
common-pile/stackexchange_filtered
How can I fix Laravel 5.1 - 404 Not Found? I am trying to use Laravel 5.1 for the first time. I was able to install it and https://sub.example.com/laravel/public/ is displaying what is should. However, views I create are giving me a 404 error Page not found. Here is what I have done so far: I created a controller in la...
common-pile/stackexchange_filtered
why does applying probability distributions and transformations result in the same value? I'm applying multiple Beta, Gamma and HalfNorm Transforms to each column of my pandas dataframe. The dataframe consists of marketing spend; each row indicates spend per week and each column indicates type of spend: The python fun...
common-pile/stackexchange_filtered
Column identified in an update from a returned value I trying to update one table with column variable. Example: Table: BILLING (ORIGIN OF DATA) Columns: - CUSTOMER - PERIOD - REVENUE TABLE: BILLING_MONTHLY Columns: - CUSTOMER - M201301 (this value is REVENUE per year/month) - M201302 (this value is REVENUE per year/...
common-pile/stackexchange_filtered
Extract only text part of email body using javamail, without html content In my project I am required to read mails and save its content in hard drive, from a MS Exchange email box using javamail. But I found that even the simplest email I receive is saved with html content, like head body and so on, even when I only w...
common-pile/stackexchange_filtered
SQL - query as parameter I have code: DECLARE @sqlQuery NVARCHAR(4000); DECLARE @stn NVARCHAR(4000); SET @stn=N'SELECT cast(isnull(SUBSTRING(CDN.DokSumT(16,739684,1045,1,32768,1,1,739684,1,2,1,0,78877,0,3,1,1,0,0,0,0,0,-1) , 9 , 7 ),0) as decimal (28,4))'; SELECT @sqlQuery = 'SELECT GIDNumber, Name, @stn as stn FROM Ta...
common-pile/stackexchange_filtered
Adding an Image to a sqlite database I've been struggling for a while now with this, and i want to be able to store an image to my database. I know storing an image to a database directly is bad practice but i simply do not know enough to be able to do it another way. So, i'm currently stuck with a few issues. Firstly...
common-pile/stackexchange_filtered
Can I use percentage units for box shadow? That's it :), Is there a way to make a box shadow in css with percentage units? I'd like if it were with pure css. But if you guys think js is the only way, please let me know how... Why would you need this? You can't do this with CSS because how would the percentage be arbit...
common-pile/stackexchange_filtered
Header Files Mystery Possible Duplicate: what is the difference between #include <filename> and #include “filename” Why do we use Quotation Marks ("...") for custom build classes and braces for built in classes(<...>)? Yeah, from what I've heard, angle brackets (<'s) are used to denote that the header was provided ...
common-pile/stackexchange_filtered
how to do "or" in substring matching for bash echo `expr "hello" : '\(hi|hello\)'` echo `expr "hi" : '\(hi|hello\)'` obviously i'm trying to match "hello" and then "hi" to regex hello and hi, but neither matches. how do i express it properly?? expr doesn't support extended regex This came as a surprise to me, since ...
common-pile/stackexchange_filtered
Anyone have a pointer for what is needed to make an MP3 Tag applicaiton? I get FLAC files a lot and want to automate the taging of the end point MP3 files after I have converted them. What is my best library to interface with? Vista machine and C# for my code base. The flac files come with a text file for the show, ...
common-pile/stackexchange_filtered
Inserting a variable from a batch file into a text file How would I insert a variable previously established in a batch file into a text file. I have the inserting text into a text file down, i just cant figure out the insertion of a variable. What I am doing SET name = "Casey" ECHO "Hey" + name > file.txt The resul...
common-pile/stackexchange_filtered
How to undo flagging? I've erroneously flagged an answer as spam (some anonymous user tried to edit it by seemingly injecting some spam and this confused me), how do I cancel my action? I think you cannot undo a flag, but a single spam flag has no consequences for the flagged post (it takes 6 spam flags to delete). @...
common-pile/stackexchange_filtered
How to use arbitrary text as node name in tikz graph in a simple way? I would like to use tikz graph to draw graphs of function calling relations. But I have trouble with function names from C programming language, where underscore is allowed in a function name. \documentclass{article} \usepackage{tikz} \usetikzlibrary...
common-pile/stackexchange_filtered
Custom short citations style (philosophy-verbose) I need to make a change to a LaTeX template. Specifically, in the \footcite that, after researching, I don't know how to do. This would be as follows: include the short name (not just the surname) in the \footcite. I give you an example. After I have cited a book for th...
common-pile/stackexchange_filtered
D3: How can I change data in an existing bar chart I have successfully build my initial bar chart. Now I want to add more bars to that existing chart using transitions to have a nice user experience. Here's my code: var data = [23, 85, 67, 38, 70]; //dummy, normally much more labellist = ['label1','label2','label3','la...
common-pile/stackexchange_filtered
Basic LISP Issue So (car '(2 3)) -> 2 (cdr '(2 3)) -> (3) Which function should I use to be able to get something to yield 3? (function-name '(2 3)) -> 3 As posed, the question could also be answered (defun foo (something) (declare (ignore something)) 3). The very best explanation of how lists work internally (and ...
common-pile/stackexchange_filtered
Does DIXML for Delphi support unicode in XSTL transformations I need to perform an XSLT transformation of a complex XML file using Delphi, and have found that MSXML is not up to the task. I have found that DIXML for Delphi can perform the transformation, but the sample code that ships with DIXML for Delphi is returning...
common-pile/stackexchange_filtered
Building an app that creates 360 degree panoramic photo Got a request from a client to build a mobile app that has the ability to create a 360 degree panoramic photo (while spherical isnt a necessity, must at least be cylindrical). I am trying to find some mobile frameworks that offer the functionality, but coming up m...
common-pile/stackexchange_filtered
Check the users position (city, state I was wondering how I can use JavaScript to get a user's location (city or state0 and use the document.write ("") to print out the user's location in the window. The location doesn't need to update if the user is moving somewhere it just needs to print out the current location. By ...
common-pile/stackexchange_filtered
Google Satellite Imagery Offset in QGIS I am using Google Satellite imagery as a base map to capture the vector data in QGIS 3.2.2 for past couple of months. Yesterday i noticed that the google imagery has offset issue in some locations where i have already worked on. Since that location was already captured with refer...
common-pile/stackexchange_filtered
Removing spaces from a string using Powershell I have an issue where extracting data from database it sometimes (quite often) adds spaces in between strings of texts that should not be there. What I'm trying to do is create a small script that will look at these strings and remove the spaces. The problem is that the sp...
common-pile/stackexchange_filtered
Persistent CSS problem on Stack Overflow For several days now, I have seen the following rendering problem on questions: This problem seems to be on and off. I am on a Safari browser, using a MacBook Air, and I don't seem to see this on my Android phone, which uses a mobile Chrome browser. I actually posted this a fe...
common-pile/stackexchange_filtered
How should I use BizTalk's Business Rules Engine from a .NET Windows application? We're developing a WPF business application for internal users, but this problem could apply to WinForms easily as well. We want to leverage a business rules engine to make modifying the rules in the future easier as well as to possibly l...
common-pile/stackexchange_filtered
Spring CSRF: Ajax giving 403 error even after setting request headers I have set up CSRF authentication using Spring Security 4.0. While using AJAX i am getting 403 error each time. I have set up the request headers. The meta tags: <!DOCTYPE html><html xmlns:th="http://www.thymeleaf.org"><head> <meta name="_csrf" th:co...
common-pile/stackexchange_filtered
create a composite from bitmap and video file with FFmpeg or other binary via as3 frontend After receiving much help with reading all the great stackoverflow topics in the past, I finally have to post a question myself. For a client I need to create some sort of video-editor for dummies, which has to generate a video f...
common-pile/stackexchange_filtered
Should I install these Ubuntu-Mate packages? I'm looking at what Ubuntu Mate 16.04 installed when I installed it a few days ago and I'd like some opinions on some software that was left out. Right now, it appears that I only have mate-desktop-environment-core/xenial,xenial,now 1.12.0+1 all [installed] installed. (Whic...
common-pile/stackexchange_filtered
Querying data from firebase using if else I have retrieved data from my firestore storage using this code: class User { bool isActive; String databaseID; String email; User() { this.isActive = ''; this.databaseID = ''; this.email = ''; } toJson() { return { 'isActive': this.isActive...
common-pile/stackexchange_filtered
How to use AT commands for switch 2G only Huawei E220 modem Hey everyone I'm new with AT commands, maybe someone can help which command I need to send with minicom to the modem for switching it to 2g gsm mode only? AT Command Interface Specification - Huawei Please state a language and show your code. It is no differ...
common-pile/stackexchange_filtered
CSS3 Rotate from the left? I'm trying to make kind of a "fold-in" effect for a submenu, but i'm having some issues. See this codepen: http://codepen.io/anon/pen/Lotav As you can see, by default the submenu has a rotation of 90 deg. When a menu item is hovered, the submenu animates to 0 deg, giving it kind of a folding ...
common-pile/stackexchange_filtered
What is impeding current when voltage is stepped up in a transformer? What is physically impeding electric current when a transformer steps up voltage? Is there some EM field along the conductor impeding electron movement? FYI, I'm not asking about losses or leakage. (assuming ideal transformer) I'm trying to get an el...
common-pile/stackexchange_filtered
ES6; Nested Promise.all (Maybe?) The post title may not be entirely accurate as I'm not even sure if my approach to this is the best way. I'll let the community decide. Working with Javascript(ES6), in a React app. Example Data (Original): dataArray = [ {"uid": 3, "region": "bru", "hostname": "bru-002.domain.com", "st...
common-pile/stackexchange_filtered
Multiple loops logic and speed optimization in Python? Here is two python functions to transfer data from one file to another file. Both source file and target file have the same number of objects but with different data. def getBlock(rigObj, objName): rigObj.seek(0) Tag = False block = "" for line in...
common-pile/stackexchange_filtered
Community approved my suggested Edit Clicking on Community, you'll find: Hi, I'm not really a person. I'm a background process that helps keep this site clean! I do things like Randomly poke old unanswered questions every hour so they get some attention Own community questions and answers so nobody gets unnecessary ...
common-pile/stackexchange_filtered
How to configure partials and layouts for Handlebars in Sails.js? I run Sails 0.9.7 and have installed Handlebars which is supported by Consolidate.js and therefore is supported by Sails I can serve pages from .handlebars files, it works just fine. I can't figure where, in Sails workflow, and in a Sails way, I should r...
common-pile/stackexchange_filtered
How to test macOS afctl (the built-in adaptive firewall)? Setting up macOS afctl (the adaptive firewall) on a 10.12 server. We had problems with this on a 10.11 server, and numerous online discussions reported that the thing just didn't work as advertised on 10.10 and 10.11. So I'm kicking the tires on 10.12. (Yes, we'...
common-pile/stackexchange_filtered
Cell array text manipulation I need to keep only the elements after the nth place in a cell array. Example: cell_in = {'test string no (1)'; 'test string no (2)'; 'test string no (3)'} and I need to get this result: cell_out = {'no (1)'; 'no (2)'; 'no (3)'} I have tr...
common-pile/stackexchange_filtered
403 Forbidden Error When Attempting to Log In to Amazon ECR Public Using AWS CLI I’m trying to log in to Amazon ECR Public to push Docker images from the AWS CLI on an EC2 instance (Ohio region, us-east-2). I've configured my credentials with full access to ECR and followed the necessary steps to log in to the public E...
common-pile/stackexchange_filtered
Converting PostgreSql timestamp query to MS SQL/Azure SQL I'm currently in the process of converting some basic sql scripts from Postgresql to Azure Sql. I'm newbie to sql, but I really can't understand epoch/unix time in Azure SQL / SQL Server. My application is using bigint epoch time as event timestamp and I want t...
common-pile/stackexchange_filtered
Adding junk character in currency symbol while exporting data to CSV I am getting strange Issue that whenever I am exporting the data in csv which have a currency symbol, It has added junk extra character in the data beside the currency symbol. For example if My data = France - Admin Fee 1 x £100 I am getting the resul...
common-pile/stackexchange_filtered
Rails CanCan only show data that user created I am using Devise for registering accounts and signing in/out. The next functionality I want to add is to only show the data entered for a given user. For instance, if I create a new "something" (a client in my case, at /clients/new), I only want the person who created that...
common-pile/stackexchange_filtered
Rails 4.2 ActiveJob: Every adapter results in PhusionPassenger error: Could not find [gem] in any of the sources (Bundler::GemNotFound) I'm trying to implement asynchronous email processing with Rails 4.2's ActiveJob API. So far I've tried using two of the supported adapters: Sucker Punch and Delayed Job, and I get the...
common-pile/stackexchange_filtered
Subscribing on topic. MQTT I have the following part of code: package com.company; import org.eclipse.paho.client.mqttv3.*; import org.eclipse.paho.client.mqttv3.persist.MemoryPersistence; import javax.security.auth.callback.Callback; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; publi...
common-pile/stackexchange_filtered
Program to switch active window/program? I'm interested in program that can utilize additional buttons of G15, or can be bound to special hotkey like ctrl+alt+shift+F9 in order to change active window. Why do i need it? I'm playing game EVE-Online in 2 windows. And using alt+tab sometimes fails to winamp/vlc/any 3rd pa...
common-pile/stackexchange_filtered
How to make a rule return all details of a fact using Prolog Using Prolog, I first created two facts called grade and food: The first fact is grade(X,Y) where X is the student (rob or matt) and Y is the grade level (freshman or sophomore). The second fact is food(X,Y) where X is the student (rob or matt) and Y is the f...
common-pile/stackexchange_filtered
Why is the range of the great highland bagpipe so limited? The Great Highland Bagpipe has a range of only one octave + one note. Why is the range so limited, and would there be a way to increase it? I think the range bagpipes should operate is pretty large. They should operate 2 - 1 km under the sea. As a Scot, I am ...
common-pile/stackexchange_filtered
Events from Email || Automatic Event Recognition Use-case: Say I am sending an invite email from SFMC, with details about a new Product launch event. I would like to pop up a event details like here Upon researching on this feature, I got to know this feature auto detects email content and is currently supported in spe...
common-pile/stackexchange_filtered
security access for groups symfony Hi i have a group system and i'd like to add some security to it. Users can belong to multiple groups and id like to know the best way to authorize people to see the groups only if they are in it. If they aren't i want to redirect them to a another page, which is different according ...
common-pile/stackexchange_filtered
Round robin probability question Lets say there are $n$ players playing in a round robin tournament and they have to each play against another player exactly once. 1) How many outcomes are there for the tournament? (Outcome lists out who won and who lost for each game) 2) How many games are played in total? What would ...
common-pile/stackexchange_filtered
Draw the curve $8x^2+6xy-\frac x{\sqrt{10}}+3\frac y{\sqrt{10}}=1$ Draw the curve Draw the curve $8x^2+6xy-\frac x{\sqrt{10}}+3\frac y{\sqrt{10}}=1$. let $v = (x,y)\in \mathbb{R}^2$ and $B=\{(\frac 3{\sqrt{10}},\frac 1{\sqrt{10}}),(\frac {-1}{\sqrt{10}},\frac 3{\sqrt{10}})\}.$ I'm going to represent $v$ in relation w...
common-pile/stackexchange_filtered
Start algorithm step numbering not at 1 I have part of an algorithm that branches off from another algorithm, so I would like to present the numbering of the steps starting from that number instead of 1. Right now, I have it set up as follows: \begin{algorithm} \begin{algorithmic}[1] \STATE Step 5 \STATE St...
common-pile/stackexchange_filtered
ios - getting part of an NSString I have seen this question that talks about getting the last part of a NSString. I require a slight variation on this. How do I get everything after the http:// Would be good if it was almost as simple as 1 line of code:-) Cheers NSString *str = @"http://www.abc.com/news/read/welcome-...
common-pile/stackexchange_filtered
C# - Intersection of Dictionary<int, SortedList<int, List<int>>> Consider the following code: Dictionary<int, SortedList<int, List<int>>> ddl1 = new Dictionary<int, SortedList<int, List<int>>>(); ddl1.Add(1, new SortedList<int,List<int>>()); ddl1[1].Add(2, new List<int>()); ddl1[1][2].Add(3); ddl1[1][2].Add(4); ddl1[1...
common-pile/stackexchange_filtered
How to catch event onclick without ng-click Angular.js I'm developing an Angular App but I want to catch onclick event without ng-click, I want to use something like that $scope.onClick(...) Why? what purpose would that serve? @KevinB I want to separate all logic and use event handlers for it. but... that's what ng...
common-pile/stackexchange_filtered