text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
Knockout bind optional fields
I'm trying to bind a JSON containing optional fields using knockout js.
The problem is I keep getting this error:
Unable to process binding "value: function..."
And I can't add the missing fields as I need them to remain missing (the missing fields are taken from a "parent" JSON)
Is ther... | common-pile/stackexchange_filtered |
Writing an animated gif from BufferedImages
I have a program that loads a spritesheet, creates BufferedImages of each frame on the sheet, and writes it to an animated gif. Using the class provided by Elliot Kroo on Creating animated GIF with ImageIO?, I was able to successfully output a file. However, the gif doesn't a... | common-pile/stackexchange_filtered |
How to Remove Space Additionally to the Special Chars?
in my functions.php if have this code:
echo '<a href="'.preg_replace('/\s/','-',$search).'-keyword1.html">'.urldecode($search).'</a>';
this removes the special chars..
but how can i additonally add remove space and replace it with - and remove "
so, if someone ty... | common-pile/stackexchange_filtered |
Does Convert.ToInt32(object) skip unboxing?
The IL produced from the following:
object[] items = new object[] { 341, "qwerty" };
int item1FromConvert = Convert.ToInt32(items[0]);
int item1FromCast = (int)items[0];
Is (according to LINQPad 4):
IL_0001: ldc.i4.2
IL_0002: newarr System.Object
IL_0007: stloc.3... | common-pile/stackexchange_filtered |
Webservice method to call a url
I have a webservice, it has its wsdl and everything works fine when I make a call to my web service.
What I want to do now is call a url from somewhere within my web service method. In c# code behind I can do it something like this:
Response.Redirect("Insurance.aspx?fileno1=" + txtFile... | common-pile/stackexchange_filtered |
Hide elements using jquery on a condition
I would like to hide the content of my page on a certain condition how can i do this by using jquery.
Example
if(type=="member")
{
\\hide some elements..
}
Thanks for the help in advance.
The value of type is being fetched by session.getAttribute() from a servlet.
http://a... | common-pile/stackexchange_filtered |
How to keep temporary mysqli table available in php during statement execution?
I am busy trying to execute a set of statements that involve the use of a temporary table.
My goal is to create the temporary table, insert values to it and then do a like comparison of the temporary tables contents to another table.
These ... | common-pile/stackexchange_filtered |
how can cashed chat when pusher channel will disconnect or internet will turn off in flutter app?
actually i am working with the chat app with Laravel backend support. i received message using pusher channel. the problem is cashes chat for offline mode as like other chat apps.
is SQFlite solution or any other way to ma... | common-pile/stackexchange_filtered |
Greedy Algorithm implementation
So I have some questions concerning the solution to the problem of scheduling n activities that may overlap using the least amount of classrooms possible. The solution is below:
Find the smallest number of classrooms to schedule a set of activities S in. To do this efefficiently
move ... | common-pile/stackexchange_filtered |
scrollbar for statictext in wxpython?
is possible to add a scrollbar to a statictext in wxpython?
the thing is that i'm creating this statictext:
self.staticText1 = wx.StaticText(id=wxID_FRAME1STATICTEXT1,label=u'some text here',name='staticText1', parent=self.panel1, pos=wx.Point(16, 96),
... | common-pile/stackexchange_filtered |
I'm Creating a File named "helloworld.txt" and saving some inputs but after I re run the code the contents that I save disappear.
1 - This is the Input IMAGE
2 - This is the Image with Input Saved Through Program
3 - This is the IMAGE after I re-run the program
In the Third Picture I just re-run the main file without... | common-pile/stackexchange_filtered |
My integrated terminal window is often blank when I compile with Visual Studio Code
I've started using VS code to compile code but I have a lot of problems since the terminal with the compilation logs is often blank without reason. Sometimes I get the logs and so I can see if the compilation succeeded or failed but it ... | common-pile/stackexchange_filtered |
Understanding image under set
With three sets:
$A$ = {1, 2, 3}, $B$ = {4, 5, 6}, and $h$ = {(1, 4), (2, 4), (3, 5)}.
Could someone walk me through how to find the image under $h$ of each of the 8 subsets of $A$ and the inverse image of each of the 8 subsets of $B$.
Simple question trying to visualize the definition of ... | common-pile/stackexchange_filtered |
Rails 3 datatypes?
Where can I find a list of data types that can be used in rails 3? (such as text, string, integer, float, date, etc.?) I keep randomly learning about new ones, but I'd love to have a list I could easily refer to.
Here are all the Rails3 (ActiveRecord migration) datatypes:
:binary
:boolean
:date
:dat... | common-pile/stackexchange_filtered |
Transitioning to Version Control
Until now, we have not had an application version strategy or version-ed our application. We are considering doing so with our next release. What are the minimum tasks necessary to transition to a version-ed application? Answers in the form of bullet points, not necessarily in chronolog... | common-pile/stackexchange_filtered |
Passing data between two flutter classes
I am calling the below class:
`HomePage(encryptedCipher: args as Uint8List))`
I am passing encryptedCipher (important secret)
In the HomePage:
`class HomePage extends StatefulWidget {
final Uint8List encryptedCipher;
const HomePage({Key? key, required this.encryptedCipher... | common-pile/stackexchange_filtered |
Replace a tag with href link
I have a html source code and want to replace all <a> tags with its containing href link.
So the tag looks like:
<a href="http://google.com" target="_blank">click here</a>
I expect as output:
http://google.com
I already tried some regex in combination with preg_replace,
but none of them ... | common-pile/stackexchange_filtered |
Use Group Email (hosted by Google) to create an account on Google Play Store
I am trying to create a Google Play Store account but with a group email (hosted by Google). Is this possible?
For example, I have a group email on my Google Apps Business Console<EMAIL_ADDRESS>and I want to use this group email to set up an a... | common-pile/stackexchange_filtered |
python TKinter 'int'/'str' object has no attribute 'append'
I know this question is asked a lot but i cant seem to get my code to work.
As a projected i'm trying to build a simple calculator. But i'm kind of stuck. Here is my code.
import Tkinter as tk
import tkMessageBox
top = tk.Tk()
def helloCallBack(x):
count... | common-pile/stackexchange_filtered |
Keep UILocalNotification Banner visible while app is in background
I'm working on a VoIP phone for iOS, and if a call comes in while running in the background, I do a presentLocalNotificationNow with a UILocalNotification message to inform the user. This works fine, however the banner expires and rolls off the screen b... | common-pile/stackexchange_filtered |
When a striped candy destroys a row, is the row direction random?
When you combine 4 candies in a row, you are left with a striped version of that candy. If you subsequently destroy that striped candy, it will destroy a whole row of candies.
I have noticed that the row direction is sometimes horizontal, and sometimes ... | common-pile/stackexchange_filtered |
Mock a function called by child process in Jest
I have been writing unit tests for a grunt task and want to mock "request" that the grunt task encounters during its execution. I am using "exec" to call the grunt task in the child process of a nodejs jest test.
task.js
const request = require('request');
//grunt task re... | common-pile/stackexchange_filtered |
Set session cookies in play framework testing using selenium hd
I am trying to do some unit testing using selenium hd. I currently have the following code:
browser.goTo("http://localhost:3333/")
<EMAIL_ADDRESS> browser.$("#password").text("secret")
browser.$("#loginbutton").click()
browser.goTo("http://l... | common-pile/stackexchange_filtered |
Plot of Implicit Equations
I've read Cool Graphs of Implicit Equations recently. In the article, it mentioned a software GrafEq which can draw graphs of arbitrary implicit equations. For example,
And I've tried several equations in Mathematica, it failed to give a same graph.
ContourPlot[Exp[Sin[x] + Cos[y]] == Sin[Ex... | common-pile/stackexchange_filtered |
Is it more practical to define an IDT at assemble time, or build it in memory programmatically from a bootloader/kernel?
It seems to me there is alot of work to be done when writing yourself a complete IDT. Writing all the handlers, ect. Even with things like macro's and "times" directives to help you. If an IDT
consis... | common-pile/stackexchange_filtered |
SQL BETWEEN Time doesn't show results
Could use fresh POV help :)
Need to show trips between midnight and 4AM. StartTime column is of type DATETIME. I already tried
CAST(StartTime AS TIME) BETWEEN CAST('00:00:00' AS TIME) AND....
but it didn't show the correct results and so I've done this IIF but still even though ... | common-pile/stackexchange_filtered |
How to fill high-end bits in a Java byte with '1' without knowing the last 1 in advance? (FAST FIX Negative Integer decoder)
I am writing a FIX/FAST decoder for negative numbers as described below:
My question is:
How to fill the high-end bits of a Java byte with 1s as it is described above? I am probably unaware of s... | common-pile/stackexchange_filtered |
Execute SQL queries stored in a object variable
I am struggling with the following scenario, please help.
Got a request to create 20 different data extracts(using different sql queries) from sql database to a text file and SFTP using cozyroc ext that we use inside ssis.
Instead of creating 20 different connections and... | common-pile/stackexchange_filtered |
Why won't these faces UV unwrap?
I'm trying to unwrap some new faces after fixing some topology on a model that is already textured (in particular at the edge of the mouth).
For some reason a number of faces just won't seem to unwrap or show up in the UV editor after I select and unwrap them. I've tried pinning vertice... | common-pile/stackexchange_filtered |
Assertions vs Exceptions - is my understanding of the differences between the two correct?
Design By Contract uses preconditions and postconditions of the public
methods in a class together to form a contract between the class and
its clients.
a) In code we implement preconditions and postconditions either as ass... | common-pile/stackexchange_filtered |
Show UIActivityIndicatorView when loading NSString from Web
Hi in my app I load a NSString from Internet using NSURL, and then a label shows the text. If i press the button to load the String, it becomes highlighted and stays highlighted for a couple of seconds. During that time i want a UIActivityIndicatorView to show... | common-pile/stackexchange_filtered |
Angular- How to add different style to a reusable component?
I have made a table where user can add data. The input field is a resuable component.
I want to increase the width and height of the highlighted input field while decreasing the width of the ones inside the table. How do I do it?
This is the stackblitz link
... | common-pile/stackexchange_filtered |
Tutorial on how to setup multiple laravel 5.1 apps in one project
I am currently working on a Laravel 5.1 project which involves a public section and a admin section. When googling around the issue I was having, I came across this stack post managing user role log in. Where the first post recommends.
Admin and Users i... | common-pile/stackexchange_filtered |
Should I wait for Django to start supporting Python 3?
I have a website idea that I'm very excited about, and I love Python. So, I'm interested in using Django. However, I started learning Python in version 3.1, and Django currently only supports various 2.x versions. I've searched for information about when Django wil... | common-pile/stackexchange_filtered |
Powershell command to see what Exchange calendars a user has access to
I'm trying to find a PowerShell command that would show me what calendars a certain user has permissions to.
I can use Get-MailboxFolderPermission -identity “User:\Calendar” to find what permissions are set on that specific mailbox but what I need ... | common-pile/stackexchange_filtered |
Integrating: $\int_0^\infty \frac{\sin (ax)}{e^x + 1}dx$
I am trying to evaluate the following integral using the method of contour which I am not being able to. Can anyone point out what mistake I am making?
$$\int_0^\infty \frac{\sin ax}{e^x + 1}dx$$
I am considering the following contour. And function $\displaystyle... | common-pile/stackexchange_filtered |
How to handle white screen and clear the previous web cache when using WebView to display a page in android?
I use Webview to load a link when user clicks on a item in a listview. At first it display a blank screen and loads the page. when user hits Back button and clicks on a new item in the listview, Android preloads... | common-pile/stackexchange_filtered |
Parametrize Vega or Vega-lite data url?
I am trying to create a Vega/Vega-lite data fetch based on a parameter/transform/signal defined later down in the chart specification. Is this possible? It would be of tremendous use with fetching data from parametric APIs.
E.g. instead of:
"data" : {"url" : "https://api.carbonin... | common-pile/stackexchange_filtered |
Toggling draft mode using ArcPy?
I'm curious if it is possible to toggle on and off 'draft mode' in layout view in ArcGIS using python scripting.
Does anyone have any ideas?
Python is preferred, but if there is another solution in a different language it would also be beneficial!
I'm not familiar with this feature b... | common-pile/stackexchange_filtered |
Usage of boolean variable without comparison in while loop
boolean flag=true;
while(flag)
{
//code(flag=false;)
}
In the above code ,inside the while loop condition simply flag is given. How does the while condition satisfy here?
Here flag is assigned true ,inside the while loop simply flag is given my qstn is how... | common-pile/stackexchange_filtered |
How would I solve an equation of the following type: $ ax+b = ce^{dx^2}$
I wish to solve an equation of the following type: $ ax+b = ce^{dx^2}$.
I know about Lambert W function, however I do not see any way of solving the equation with $x^2$ instead of $x$. Is this possible?
I think it is unlikely, since Mathematica c... | common-pile/stackexchange_filtered |
Jaeger agent unable to connect to collector
I have started Jaeger standalone binary on a Linux box and am trying to run Jaeger agent binary on Mac that tries to connect to the Jaeger collector of the standalone process. However it keeps failing with "error":"tchannel error ErrCodeTimeout: timeout".
The problem is not w... | common-pile/stackexchange_filtered |
Possible Unhandled Promise Rejection (id: 0) React Native
I am trying to upload files to AWS S3 bucket from my react native app but I get this error ->
Possible Unhandled Promise Rejection (id: 0)
Here is the code:
import { View, Text, StyleSheet, TouchableOpacity } from 'react-native'
import DocumentPicker from 'react... | common-pile/stackexchange_filtered |
Calculating AIC number manually Given a distribution of data and some distribution string
Suppose I have the following data:
array([[0.88574245, 0.3749999 , 0.39727183, 0.50534724],
[0.22034441, 0.81442653, 0.19313024, 0.47479565],
[0.46585887, 0.68170517, 0.85030437, 0.34167736],
[0.18960739, ... | common-pile/stackexchange_filtered |
UrbanAirship using same RichPushUser after clear data/reinstall
I'm facing the problem that when i clear data of my app, or i just reinstall it, in the next run i get a new RichPushUser credential, and thus my inbox is completely empty as it looks as a new user.
What i am trying to accomplish is to allow the user use t... | common-pile/stackexchange_filtered |
Php cake post request
I am developing restful services with PHP Cake. I have developed all get services. But I am stucked in post services.
Problem is that, I am unable to get post data. I am getting noting in $this->data
Here is code of one controller function.
function signin() {
$this->view = 'Webservice.Webse... | common-pile/stackexchange_filtered |
vkCreateSwapchainKHR Error
Even though validation layers and debug callback extensions are enabled and working (they respond to wrong structs etc.), I'm still getting a "VK_ERROR_VALIDATION_FAILED_EXT" result from vkCreateSwapchainKHR(), and there's no validation layer error to pinpoint the mistake...
Swap chain creati... | common-pile/stackexchange_filtered |
Is the phrase "albeit the fact that..." correct?
I recently came across the phrase albeit the fact in a book I was reading, and, as a professional editor, I was immediately struck by how ungrammatical it sounded to me. So I searched Google Books and found a shocking number of published works containing this phrase — mo... | common-pile/stackexchange_filtered |
how to print special characters which are a string in variable with php?
I'm making this chat server, but it doesn't work quite well. When you send a piece of text, it first gets encoded by the function base64_encode() and then gets sent to a MySQL database.
Then the receiver gets the text from that same MySQL database... | common-pile/stackexchange_filtered |
Which measure indicates a smooth variation of data?
I am trying to compare text and non-text regions based on the thickness of lines/strokes. Using the distance transform and some fiddling thereafter, managed to obtain the thickness (actually half the thickness) of each stroke comprising the features in a picture.
Here... | common-pile/stackexchange_filtered |
How to change style of title of Content Dialog in Windows Phone 8.1
How to change style of title property of ContentDialog page in Windows Phone 8.1.
XAML:
<ContentDialog
x:Class="MyApp.View.Login.ContentDialog1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.micro... | common-pile/stackexchange_filtered |
React Drag and Drop in Grid System
I was trying to implement drag and drop for html grid system ( row and col arranged divisions) using react beautiful dnd.
The code can be viewed here ( this is forked from here )
The changes i made is remove the type from droppable as I want columns also to be drop in parent contain... | common-pile/stackexchange_filtered |
joining all rows of a csv file that have the same first column with python
I realise similar has been posted before 1, 2, 3
but I have tried these and they have not worked.
I have a single csv file with two columns similar to this:
james,phone1
james,phone2
james,phone3
paul,phone1
jackie,phone1
jackie,phone2
jackie,p... | common-pile/stackexchange_filtered |
Possible to use flash in java application?
I am writing an application in java and have a question. Is it possible for me to make buttons, etc... In flash, and make them call functions in my java application? If so, how can I do this?
Is it an application or an applet? Applets can communicate with javascript: Invokin... | common-pile/stackexchange_filtered |
Generalizing the coordinate space of a manifold
A manifold is, essentially, something that "looks like" $\mathbb R^n$ locally. That is, a topological space $X$ such that for every $x\in X$ there is a continuous map $\varphi$ from an open set $U_x$ containing $x$ to $\mathbb R^n$.
Suppose I want to consider a possible g... | common-pile/stackexchange_filtered |
Trying to connect to MacBook: Password etc. doesn't work (Files -> Other Locations -> "MacBook Pro" under Networks.)
On How to share files between Ubuntu and OSX? I found these apparently easy instructions on how to connect to my Mac from Ubuntu:
In mac OS, go to System preferences > sharing and enable Personal File S... | common-pile/stackexchange_filtered |
I have a issue while run my controller in angularjs using Chrome
I am battling with this code run on crome then it has been throw the following error.but everything is working fine in firefox
1)Uncaught SyntaxError: Unexpected token }
2)Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.2.28/$injector/... | common-pile/stackexchange_filtered |
Numpy: how to insert an (N,) dimensional vector to an (N, M, D) dimensional array as new elements along the D axis? (N, M, D+1)
a is an array of shape (N, M, D) == (20, 4096, 6).
b is an array of shape (N,) == (20,).
I would like to insert the values of b to a such that each value in b is appended element-wise to the D... | common-pile/stackexchange_filtered |
Putting SQL data into HTML table
I'm trying to get the data from my mySQL database and put them into a HTML table.
After searching a lot on the internet, but I coudn't find code that worked for me.
Currently, I have this code
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head... | common-pile/stackexchange_filtered |
SWIFT: Map - Location issue
I'm new to Swift and write an app to show my locally saved locations on a map. In one ViewController I save the locations
func locationManager(manager: CLLocationManager!,
didUpdateLocations locations: [AnyObject]!)
{
var latestLocation: AnyObject = locations[locations.count - 1]
... | common-pile/stackexchange_filtered |
Solr dataimporthandler use storedProcedure in deltaImportQuery
I was wondering if its possible to call a storedProcedure in the deltaImportQuery.
This is what I 'm trying to do.
<entity name="entity1" transformer="RegexTransformer" pk="id"
query="SELECT * FROM table1
INNER JOIN tabl2 ON table... | common-pile/stackexchange_filtered |
Close two form by one click?
I'm working on project with sign in feature
When I run the project there is a form (form1) run the sign in .
after i click on login button build another form (form2) - It's the form of my program .
and made the first form (form1) hide .
The problem is when I press at the X button in form2 ... | common-pile/stackexchange_filtered |
Shortest path with a twist
I have n vertices and m undirected weighted edges between them (weights are representing minutes). Each vertex contains a number of minutes required to drink a coffee on that vertex.
I want to determine the shortest amount of time (minutes) neccessary to get from vertex v to vertex w but wit... | common-pile/stackexchange_filtered |
Create start and endtime columns based on multiple conditions in R (dplyr, lubridate)
I have a dataset, df
Read Box ID Time
T out 10/1/2019 9:00:01 AM
T out 10/1/2019 9:00:02 AM
T out 10/1/2019 9:00:03 AM
T out ... | common-pile/stackexchange_filtered |
Bash sorting an array by two keys
I need to sort the following array by two keys, score and alphabetically.
For example:
arr = (Hawrd 60 James 75 Jacob 60 Leonard 75)
will become :
sorted = (Hawrd 60 Jacob 60 James 75 Leonard 75)
*actually I don't need the sorted array, just need to print it (in a format of name an... | common-pile/stackexchange_filtered |
Should I use a plural when describing a state (e.g., Multiple Product(s) Mode)?
Let’s say that a product has two modes of operation: single and multiple. In the user manual for the product, the single mode has the header Single Product Mode.
What should be the header for multiple mode?
Multiple Products Mode
or
Mul... | common-pile/stackexchange_filtered |
How can post images using slack-api in gallery view instead of slack formatting them vertically?
so my question is actually self-explanatory, if you use the slack client and post a message with 1 or more images, slack displays them in a gallery view, but when you try do achieve this using the api, this doesn't seem to ... | common-pile/stackexchange_filtered |
My Laravel projects open in file structure on MacOS
I was using Windows before and I was developing Laravel projects on Windows. Now I will continue to develop on the Macbook. I'm new to using macOS. I installed Apache server and PHP with Brew. I also installed Composer. All working flawlessly. I also set the virtual h... | common-pile/stackexchange_filtered |
has_many association migration in Rails
I m working on a Rails project (Rails version 4.2.3).
I created a User and Task model but did not include any association between them during creation.
Now i want one user to have many tasks and one task belonging to one user.
Through rails g migration AddUserToTask user:belo... | common-pile/stackexchange_filtered |
Why did this woman want Arya to have this object?
During Game of Thrones S08E05, while Arya is trying to leave King's Landing, she gets help from a woman with her daughter, loses them in the chaos, only to find them again at a later point.
Shortly before the woman
and her daughter are burned by the dragon,
she want... | common-pile/stackexchange_filtered |
Deserialize Nested JSON in VB.NET for conversion
I have recently started a project using vb.net and I'm struggling to figure out how get the data for several of the items in the Mid class, o,h,l,c converted to double and loaded into an array, to eventually perform some math functions on them. Below is a small (3 candle... | common-pile/stackexchange_filtered |
Why does my discord bot not add roles properly?
I am trying to make a bot that would add a role that is in the server when a person types !join choiceOutOfVariousRoles. I am currently using discord version 12. My error message is:
fn = fn.bind(thisArg);
Although trying various techniques I could not get the code to wo... | common-pile/stackexchange_filtered |
Are some superpositions caused by measurement?
From the Heisenberg uncertainty principle, we know that we can't know both the position and momentum of a particle, does this mean that measuring the position puts the momentum in a superposition? Or does it just mean that we will never know because we've interacted with i... | common-pile/stackexchange_filtered |
If $x_1,\cdots, x_n ~ N(0,\sigma^2)$ and iid and $T=\sum_{i=1}^{n}x_{i}^{2}$ What is the distribution of T
I was thinking using the mgf
$M_{T}(s)=E(e^{Ts})=E(e^{s\sum_{i=1}^{n}x_{i}^2})=E(\prod_{i=1}^{n}e^{sx_{i}^2})$
What would be next?
What would be next?
Next would be that the random variables $X_i$ being i.i.... | common-pile/stackexchange_filtered |
Is it wrong to think of area as a measure of the total number of points?
Consider the following mapping $f: M \to N$ between the points on a hemisphere and the points on a circle of radius r, illustrated by the figure below
Clearly this is a bijection between the two sets, and also if I'm not mistaken, a homeomorphism... | common-pile/stackexchange_filtered |
How do I draw the points in an ESRI Polyline, given the bounding box as lat/long and the "points" as radians?
I'm using OpenMap and I'm reading a ShapeFile using com.bbn.openmap.layer.shape.ShapeFile. The bounding box is read in as lat/long points, for example 39.583642,-104.895486. The bounding box is a lower-left poi... | common-pile/stackexchange_filtered |
OpenJDK 1.8.0_242, MaxRAMFraction setting not reflecting
I am running a Springboot application in the alpine-OpenJDK image and facing OutOfMemory issues. Max heap is being capped at 256MB. I tried updating the MaxRAMFraction setting to 1 but did not see it getting reflected in the Java_process. I have an option to incr... | common-pile/stackexchange_filtered |
Unable to login with email or mobile
I am trying to login with email or mobile (in PHP and MySQL). But I am unable to login.
Here is my code:
$sql = "SELECT * FROM tb_users WHERE (email='$loginEmailOrMobile' AND password='$loginPassword') OR (mobile_number='$loginEmailOrMobile' AND password='$loginPassword')";
$mysql =... | common-pile/stackexchange_filtered |
Sum of new occurrences from previous five years
I have a data frame that looks like this toy data frame:
df <- data.frame(company=c("company_a","company_b","company_b", "company_a","company_b","company_a"),
fruit=c("peaches, apples; oranges","apples; oranges; bananas","oranges; pears","bananas; apples; orange... | common-pile/stackexchange_filtered |
May I declare a member type alias to a type in a surrounding scope, using the same name?
I want a struct to contain a type alias to another type for metaprogramming purposes:
struct Foo {};
struct WithNestedTypeAlias {
using Foo = Foo;
};
Then I can do stuff like WithNestedTypeAlias::Foo in a template etc.
As I u... | common-pile/stackexchange_filtered |
false = true problem when solving Lemma in Coq
I have definition:
Definition f (b1 b2 : bool) :bool :=
match b1 with
| true => true
| false => b2
end.
And Lemma...
Lemma l1: forall p : bool, f p false = true.
What I have tried is this:
Lemma l1: forall p : bool, f p false = true.
Proof.
intros p.
destruct p.
simpl... | common-pile/stackexchange_filtered |
What is torrified wheat?
What is torrified wheat and in what styles is it used?
Are there any restriction or special procedures you need to follow to when using torrified wheat?
Can you substitute torrified wheat with malted wheat?
Torrified Wheat has been heat treated (kind of "popped")to break the cellular struc... | common-pile/stackexchange_filtered |
Cluster backup error in postgresql 9.6.2
I'm trying to take a cluster backup of my localhost but throwing an exception like below.
Currently using postgres 9.6.2
pg_basebackup -U repuser -h localhost -D backup -Ft -z -P
Error message:
pg_basebackup: unsupported server version 9.6.2
Can anyone suggest me to resolve.
... | common-pile/stackexchange_filtered |
Check if a node is fully selected
I'm using rangy in my project. I want to test if an element is fully selected. I tried the following:
selRange.containsNode( el );
Note: selRange is simply a reference to window.getSelection().getRangeAt(0);
When the selection was made from top to the bottom, it works but not the ... | common-pile/stackexchange_filtered |
Is there a ml like language(standard ml/ocaml/f#/haskell/etc) in which list elements are option types
It seems to me like [] (empty list) and None/Nothing are so similar.
I was wondering if any of that family of languages had the basic list type where each element is an option and the tail guard is Nothing?
Is it(not ... | common-pile/stackexchange_filtered |
Where do Poco and Boost overlap?
I have no experience with the Poco libraries, but some experience with Boost. From a brief look at the Poco documentation, it seems they document the higher-level functionality they offer more than abstract fundamentals, language-augmenting facilities. For example: Boost touts a library... | common-pile/stackexchange_filtered |
Live Twitter Stream
I'm programming an application in Ruby on Rails v(2.0.0/4.0.0) and trying to integrate a live twitter feed from a specific source (@u101) onto a basic HTML page and don't understand how. After Googling around for a few hours I've seen a few different gems that seem to integrate Twitter (tweetstream,... | common-pile/stackexchange_filtered |
What is the idea behind an expansion valve?
I am watching this video(https://www.youtube.com/watch?v=gVLhrLTF878) and beginning at around the 2:20 mark, it explains the significance of an expansion valve with the following ideas:
Restricts refrigerant flow to lower refrigerant pressure.
Decreasing surrounding pressure... | common-pile/stackexchange_filtered |
Looking at those ground squirrels over there - the one that just gave that sharp warning call basically painted a target on itself for that hawk circling above.
That's exactly what puzzles me about animal behavior. Why would any creature do something that puts itself at greater risk just to help others?
Think about i... | sci-datasets/scilogues |
Syncing videos in separate clients
Two video players in separate clients are being synced by exchanging play/pause requests:
$(videoA).on("pause", e => sendRequestToPauseVideoB());
$(videoA).on("play", e => sendRequestToPlayVideoB());
$(videoB).on("pause", e => sendRequestToPauseVideoA());
$(videoB).on("play", e => se... | common-pile/stackexchange_filtered |
Formula for square of the number of divisors $\sum_{r\mid n} d(r^2) = d^2(n)$
I am trying to prove or disprove the following statement:
$$\sum_{r|n} d(r^2) = d^2(n),$$
where $d$ is the number of divisors function.
Computing it for small numbers yields equality, so I at least think it's true. But I can't see how to prov... | common-pile/stackexchange_filtered |
As of Java 7 update 45, one can no longer lookup manifest information without triggering a warning?
Unfortunately, the workaround given by Oracle and others here (Java applet manifest - Allow all Caller-Allowable-Codebase) for getting around the 7 update 45 problem does NOT work if your app needs to access its loaded s... | common-pile/stackexchange_filtered |
Why do `tf.pad` padding arguments need additional incrementation for accuracy?
I'm trying to implement a symmetric padding layer in Keras, which is just like how Caffe implements it and I've encountered a weird problem.
Let's say we have an 1x1280x1280x3 image with 3 channels, and we want to perform a convolution to it... | common-pile/stackexchange_filtered |
File upload PHP script not working
I am having issues getting a file upload script to work. The strange thing is that it works fine for an image field I have setup, but not for the form field intended for .mp3 or similar files, and I am using the same script for each. Here is my code:
$download = $_FILES['download']['n... | common-pile/stackexchange_filtered |
Why is kafka not creating a topic? - is not a recognized option
I am new to Kafka and trying to create a new topic on my local machine.
I am following this https://medium.com/@maftabali2k13/setting-up-a-kafka-cluster-on-ec2-1b37144cb4e
Start zookeeper
bin/zookeeper-server-start.sh -daemon config/zookeeper.properties
... | common-pile/stackexchange_filtered |
Root keeps redirecting url to non existing file
I was playing around with my htaccess file a bit and now every time I go to the root of my website it adds: /home/websitename/public_html/index.html
It is very annoying since I don't have any rule that says it should do this, index.html doesn't even exist on my host. What... | common-pile/stackexchange_filtered |
How to automatically mark emails as unread if they are older than 3 days and have not been replied to or forwarded?
I'm trying to keep track of emails that I haven't dealt with.
I would like to mark any email that is older than 3 days as unread but only if the email hasn't been replied to or forwarded.
I managed to cob... | common-pile/stackexchange_filtered |
What is the "git suite"?
I've seen this term being used in a couple of places. The official documentation doesn't define this explicitly and there's also no Stack Overflow question answering this so I think it's good to have a source defining this.
I think the git suite is a collection of commands and tools you get whe... | common-pile/stackexchange_filtered |
What does Jesus mean when he said you are all gods?
Jesus seem to be quoting
http://biblehub.com/text/psalms/82-6.htm
In the psalm, Yahweh, had a speech to other gods, that they are all sons of Elyon.
In John 10:34 what was Jesus try to teach when he said that you are all gods?
Is he trying to say that Elyon did have m... | common-pile/stackexchange_filtered |
Deploying SQLCE.EntityFramework 4.0.8435.1
I've applied SQLCE in a project I've been working.
It works fine in Visual Studio and when I run locally (http://localhost:####) it runs perfectly.
But when I publish it at my remote host I receive the "Yellow Screen of Death" the following error message:
Failed to find or loa... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.