text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
Can I write $\sum_{n=1}\frac{n}{2^n}$ as sum of odd and even?
I was wonder why I can't write : $\sum_{n=1}\frac{n}{2^n}$, as:
$\sum_{n=1}\frac{n}{2^n}=\sum_{n=1}\frac{2n}{2^n}+\sum_{n=1}\frac{(2n-1)}{2^n}$
It seems logic to say that the sum of the odd and even for $n$ will be the sum of the original,but I got :
$\sum_{... | common-pile/stackexchange_filtered |
Need to convert comma separated data from a file into a list of object
I need to read data from a .csv file and store the header and the content in my object in the following format. A list of the below mentioned class.
public class MappingData
{
private string ColumnName { get; set; }
private List<string> Data... | common-pile/stackexchange_filtered |
chrome.socket.read gives negative error code on self-addressed message
I'm having problems reading a message from myself using the chrome.socket API. I'm creating the socket as follows:
chrome.socket.create('udp', {}, function (_socketInfo) {
socketInfo = _socketInfo;
chrome.socket.connect(socketInfo.socketId, ... | common-pile/stackexchange_filtered |
Is "\*" the same as "*" in scala?
I see a piece of code as
def poly(x: Int): Int = x\*x - 2\*x +1
the symbol \* confused me. It seems that this \* works like multiply, i.e. *, but why there is a \ ahead of *? Is \* the same as *?
I don't think \* is even valid syntax? unless it is defined as a custom method like def... | common-pile/stackexchange_filtered |
Probability : Roll of Die
$\textsf{A}$ and $\textsf{B}$ are playing a game with $2$ standard dice.
Both the dice are rolled together and the total is counted.
$\textsf{A}$ says that a total of $2$ will be rolled first.
$\textsf{B}$, whereas, says that two Consecutive totals of $7$′s will be rolled first.
They keep ro... | common-pile/stackexchange_filtered |
Collision polynomials
Consider $P_n(x)$ polynomials defined through the recurrence relations
$$P_n(x)=2(1-x)P_{n-1}(x)-(1+x)^2P_{n-2}(x),$$ with $P_0(x)=1$ and $P_1(x)=1-3x$.
In fact, the explicit solution of these recurrence relations is given by the formula
$$P_n(x)=\frac{1}{2}\left[ (1+i\sqrt{x})^{2n+1}+(1-i\sqrt{x... | common-pile/stackexchange_filtered |
Retrieving values nested in object
Problem: Create a javascript function that takes an object (of any size and depth), iterates through it and runs some basic string replacing on any strings and returns the object with the amended values.
I have two ideas about the implementaion, but cannot get a solution for either:
v... | common-pile/stackexchange_filtered |
Information in Filtrations
Is the “information” kept track of by filtrations the same as information-theoretic “information”?
If not, is there some way the two concepts can be reconciled?
Filtration is about information from measure theory point of view, it increases with time as it is a stream of growing sigma-algeb... | common-pile/stackexchange_filtered |
WinCE and SqlServerCE database Connection
Dose windows mobile 6 SDK support sqlserverce database operations into MFC smart device application?
I can create database on sqlserverce using COM components, but I dont want to use it instead will prefer windows mobile 6 SDK.
Is it possible?
What does the WinMo SDK have to d... | common-pile/stackexchange_filtered |
Swift (iOS 8) - User is not being prompted for permission to use location
I have already added the NSLocationWhenInUseUsageDescription Key in Info.plist
I have also requested authorization, however, the app does not prompt for permission, and the Location Settings in Privacy Settings does not have an option for While U... | common-pile/stackexchange_filtered |
Create a custom Task.WhenAll() in java?
I've been trying to port bits of a project of mine from C# to Java (more accurately, from .NET Core 3 to Android 5.0), one of these bits relies heavily on the TPL (lots of async/await, spawining many tasks, etc...), and I couldn't get the performance I wanted usaing a simple Conc... | common-pile/stackexchange_filtered |
use a shell script to update version
#include "calcmarks.h"
// calcmarks, version 1, released Thu Mar 23 13:16:49 WST 2017
int main(int argc, char *argv[])
{
int nmarks = 0;
if(argc == 1) {
nmarks += readmarks(stdin);
Don't care what this code is, what I want is a shellscript to update and version... | common-pile/stackexchange_filtered |
adding a custom JS button into a preexisting div
i need to make a custom JS button into a preexisting div. I can make a button appear on the body, but i can't seem to make it inside any div.
my code structure would be along these lines
<html>
<body>
<div id="placeButtonHere"> </div>
<script type="text/javascript">
... | common-pile/stackexchange_filtered |
LINQ Order List of strings by a starting character then by the entire string
I have a list of data that looks like so:
What I want to do is use LINQ to order by option code, then by any box sizes that start with 'W', then order by the rest of the box sizes. The ordered list should look order exactly how it is shown ab... | common-pile/stackexchange_filtered |
SQL Server: How to extract Parent Child relation from XML & store in table
This is my XML whose value i need to store in db table as parent child data. my table would look like where i will store the parent child relation
Table will have 4 columns.
ID INT Identity PK,
ParentID INT,
NodeText VARCHAR(50),
RecOrder INT
... | common-pile/stackexchange_filtered |
How to add yahoo users to my MSN list
I tried to add a friend with yahoo account to my hotmail account msn. I followed the step. But my friend failed to show on my msn list. When I tried to add him again, it says "already added". But actually in fact he is nowhere on my list. Any suggestion?
Contacts on Windows Live M... | common-pile/stackexchange_filtered |
How to detect when a user leaves your site excluding reload
I want to trigger an ajax call whenever the user leaves my site via closing the browser, closing the tab, or just switching to a new web site. However, I want to exclude reloads. I have seen solution like this on Atack Overflow:
window.onbeforeunload = functio... | common-pile/stackexchange_filtered |
Convert character date to date format
I have date in character vector. I need to convert it to date format.
For example :
Month = "202005"
Output should be May-20. It should be in date format so that I can use to filter some dates. Similarly 201912 should return Dec-19
Without the zoo package, you can try transformin... | common-pile/stackexchange_filtered |
Explicit Euler method doesn't behave how I expect
I have implemented the following explicit euler method in python:
def explicit_euler(df, x0, h, N):
"""Solves an ODE IVP using the Explicit Euler method.
Keyword arguments:
df - The derivative of the system you wish to solve.
x0 - The initial value of ... | common-pile/stackexchange_filtered |
Array of zero size?
Generally we declare the array in following format:
DataType array_name[SIZE];
SO If I tried creating 0 length array for e.g.
int arr[0]; //Line#1
arr[0] = 5; //Line#2
I do not get any error when above code is executed.In this case is memory allocated for single integer?
The standard does not sp... | common-pile/stackexchange_filtered |
The simulation keeps crashing every time I try to set both the potential and the normal field component on this conductor boundary.
That's because you're overconstraining the problem, Kulnun. You can specify either the potential value or its normal derivative at a boundary, never both.
But why not? In principle, coul... | sci-datasets/scilogues |
Get current_path if using AppleScript as osascript expression
I have a following AppleScript:
tell application "Finder"
set current_path to container of (path to me) as string
duplicate file (current_path & "foo.txt")
end tell
It works, but I need to pass it an osascript expression. That is, the whole workflow... | common-pile/stackexchange_filtered |
Job posting appears twice
In January, a job posting appeared on a company website that looked interesting. I made sure I met the requirements, created an account, uploaded my documents, answered all the questions, and sent in my application.
The job posting eventually disappeared, and I assumed that they would be conta... | common-pile/stackexchange_filtered |
Use skrollr to change color nav links anchor
I would like to change the color of my nav links if the anchor reach my target. It works fine if I use the data attributes on my <a>, but not if I would like to use it on my <nav> for all links.
Here is my fiddle: http://jsfiddle.net/6FMsA/1
This is what I've tried:
d... | common-pile/stackexchange_filtered |
Maven resolves wrong dependency version
Our warfile contains not the expected SNAPSHOT-Version of a jarfile, it contains an older release version via another dependency.
Simplified dependency:tree
war-x.x.x-SNAPSHOT
\- jar1-x.x.x-SNAPSHOT
+- jar2-x.x.x
| +- problemjar-x.x.x
+- jar3-x.x.x-SNAPSHOT
jar3-x.x.x-... | common-pile/stackexchange_filtered |
What is an approximation oracle?
I have seen the term "approximation oracle" in computer science papers, sometimes parameterized with the letters $\alpha$ and $\beta$. What is an approximation oracle? How are such oracles used? I am somewhat familiar with the idea of an "oracle machine" in complexity theory.
An approx... | common-pile/stackexchange_filtered |
Is there self-defence?
I am a cowardly, sneaky thief I am..
For the sake of role-playing purposes, I plan to max out on Speech, Sneak and Illusion.
This is a smooth-talker character that likes to watch people bash each other's head out in a fight he himself kindled.
It's mostly fine against people that are always hosti... | common-pile/stackexchange_filtered |
Create a HTMLHeadingElement in TypeScript
I am trying to create a HTMLHeadingElement. To do that I use:
const myHeading: HTMLHeadingElement = document.createElement("h3");
So this works perfectly. But when I try to create this element more dynamically, I fail doing so:
const level: number = 3;
const headingLevel: stri... | common-pile/stackexchange_filtered |
Question about Dirichlet's Theorem on Arithmetic Progressions: $ax+b=p$, is $x$ prime at least once?
Is this a known conjecture or theorem:
Among primes in the form $ax + b$ where $a, b$ are coprime (per Dirichlet's theorem on arithmetic progressions), $x$ is prime at least once.
Is this a known question? An answered ... | common-pile/stackexchange_filtered |
How to encrypt and decrypt a simple string using AES128 or AES256 algorithms on iOS?
How do you encrypt and decrypt a string on iOS (AES256 or AES128)? I have looked through so many solution but couldn't find anything that works properly.
Example:
NSString *plainString = @"This string will be encrypted";
NSString *key ... | common-pile/stackexchange_filtered |
Roo custom finders in java classes
I want to create a custom finder in my roo application. Most of the previous questions recommend creating the finders in the java classes, but I couldn't find the code to implement that and how to use it in my views or auto create the view.
Create your finders using finder add comman... | common-pile/stackexchange_filtered |
Blind Hash Signatures?
Is it possible to implement blind signatures with purely hash-based signature algorithms?
Any whitepapers, code samples, etc on the subject would be helpful.
It's impossible:
Impossibility of Blind Signatures From One-Way Permutations - Katz, Schroder, Yerukhimovich
Would this be inclusive of ... | common-pile/stackexchange_filtered |
Prove that $f'$ exists for all $x$ in $R$ if $f(x+y)=f(x)f(y)$ and $f'(0)$ exists
A function $f$ is defined in $R$, and $f'(0)$ exist.
Let $f(x+y)=f(x)f(y)$ then prove that $f'$ exists for all $x$ in $R$.
I think I have to use two fact:
$f'(0)$ exists
$f(x+y)=f(x)f(y)$
How to combine these two things to prove that stat... | common-pile/stackexchange_filtered |
swapping first and last element in stack c++ using stl
i created an account so i can get some help with stacks in STL , i need to write a function that takes stack as a parameter and swaps the first element with the last element , i searched the site for some help i found one :"https://stackoverflow.com/a/36188943/9990... | common-pile/stackexchange_filtered |
Xcode 7.0 Beta :- ibtool failed with exit code 255
All,
Trying to run an existing project as free prvivisining on xcode 7.0 Beta. I get below error, Any ideas how can i get rid of this.
Error Stack
2015-06-26 14:16:16.042 ibtoold[16859:662960] [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/So... | common-pile/stackexchange_filtered |
What is the drawback of MSR Accelerator
Just tried it out and found it to be very simple and fast.
When i then tried to search the web for information about it I hardly found anything.
Why is that? Is there some huge drawback I am missing?
You are probably missing real life problems that can be solved with this. Emba... | common-pile/stackexchange_filtered |
Access Calculated Field with IF
I have a table that tracks player stats:
Player Pts Reb Ast Blk Stl Tov
Jeff Teague 21 11 15 1 2 4
I want to add a calculated field that calculates the fantasy points scored by that player. The player gets:
1 fantasy point per Pts
1.25 fant... | common-pile/stackexchange_filtered |
Resizing my page make items disappear
When the webpage become too small some part of it disappear but I would like to make it stay the way it's positioned but resize with the page no matter how small it becomes.
Here's the problem
Here's the code
<!DOCTYPE html>
<html>
<style>
body{
background-color: #1C1C1C;
}
#pi... | common-pile/stackexchange_filtered |
Multi-NIC Linux VM (ubuntu 16.04 LTS) in Azure and default gateway route
Can some one please share steps on how to add default gateway address route permanently to the route table on Ubuntu 16.04 LTS on Azure for the secondary nic?
As you know Azure DHCP only populate the default gateway address for the primary nic.
s... | common-pile/stackexchange_filtered |
How to replace substring of numeric value using awk
I have a requirement to replace the middle 6 digits with numeric '9' in the below 16 digit numeric field using awk.Please let me know the solution as i started now on awk
Delimiter: |
Actual data in file :
2006-07-27|0|DBT|||6657832345233037|Y
Expected data in a file... | common-pile/stackexchange_filtered |
Cannot change root view's size or position from RecyclerView's onBindViewHolder
I'm using RecyclerView on my android project. Today I had to change RecyclerView's right margin(or height & width or position... anything) when adapter's onBindViewHolder is called.
However I just ran into the problem the RecyclerView(or an... | common-pile/stackexchange_filtered |
Is there an explicit left invariant metric on the general linear group?
Let $\operatorname{GL}_n^+$ be the group of real invertible matrices with positive determinant.
Can we construct an explicit formula for a metric on $\operatorname{GL}_n^+$ which is left-invariant, i.e.
$$d(A,B)=d(gA,gB) \, \,\forall A,B,g \in\op... | common-pile/stackexchange_filtered |
Check if appsscript project trigger exists with google sheets formula
I'm creating apps script triggers that send automated scheduled emails from a google sheets document (document A). I have another document Z where I would like to validate if the trigger was created in the document A apps script environment. Is there... | common-pile/stackexchange_filtered |
A vector $b$ is a linear combination of the columns of a matrix $A$ if and only if the equation $Ax=b$ has at least one solution.
I'd just like verification/critique of my proof of this statement.
Consider that the matrix $A$ has form:
$$A_{mn}=
\left[
\begin{array}{cccc}
A_{11}&A_{12}&\cdots&A_{1n}\\
A_{21}&A_{22}&\cd... | common-pile/stackexchange_filtered |
Firefox console.log preventing JavaScript String from getting garbage collected?
With the following code whenever console.log is enabled the String referenced by o.big will not get garbage collected. As soon as I remove the logging statement the memory for the big String gets freed after the execution of the handler fu... | common-pile/stackexchange_filtered |
Replace space with "NULL" in awk
I am trying to convert a text file into HTML using awk command in shell script. Since the text file is auto-generated from server it contains server reponses, there are some empty values in the file as shown below
A 00
B 00
C
D
E 00
I want to replace this empty value with string "NUL... | common-pile/stackexchange_filtered |
Joysticks and gamepads in Wine
I have an Xbox 360 controller with the wireless-USB pickup and I'm using the xboxdrv driver. The result is a joypad that all my native games (that know about joysticks, eg Super Meat Boy, Shank, Jamestown, X², Steel Storm, etc) can use. It's awesome and would thoroughly recommend it.
My p... | common-pile/stackexchange_filtered |
rewrite url blog.php/?slug=test-blog to blog/test-blog
How to rewrite url blog.php/?slug=test-blog to blog/test-blog using rewrite rule in htaccess?
You must capture part of the query string in a RewriteCond and use that in the RewriteRule
RewriteEngine on
# prevent endless loop
RewriteCond %{ENV:REDIRECT_STATUS... | common-pile/stackexchange_filtered |
Does Ganesh has all eight siddhis?
I saw in a television series that Ganesha has all 8 siddhis. I am aware how unreliable tv is. So my question is: is Hanuman the only one who possesses all 8 siddhis?
In Ganesha Sahasranama Lord Ganesha is called as Siddhi Pati -सिद्धि पति i.e. lord of siddhis. So he possesses all si... | common-pile/stackexchange_filtered |
Ordered list spanning table rows
I want to create a question form in a Markdown/HTML page, with each question having a number.
QUESTIONS | ANSWERS |
-------------------|-------------------|
1. First Question | |
-------------------|-------------------|
2. Second Question | ... | common-pile/stackexchange_filtered |
Android - Fail to connect to camera
I'm using the Android APIDemo sample code.
When I run the CameraPreview example, at first it was giving me an error.
I traced that one down and the sample was working for a while.
Now, it no longer works. It says
ERROR/AndroidRuntime(2949): java.lang.RuntimeException: Fail to conn... | common-pile/stackexchange_filtered |
Facebook Graph API: How to get all links from page in API v2.7?
In Facebook Graph API v2.3 it was possible to get all links belong to specified page using "links" edge:
GET v2.3 {page_id}/links
This request shows really all links (not only published, which are accessible by /feed request). Graph API Explorer still can... | common-pile/stackexchange_filtered |
Android notifications not playing at correct volume after VoIP call
I've implemented VoIP calling in a native Android application, and we've discovered a bug that I'm stuck on. I'm using Twilio for our VoIP calls if that helps at all.
If I place an outgoing VoIP call from our app, after the call ends if I put the app i... | common-pile/stackexchange_filtered |
Does the JavaScript manager implementation exist for ASP.NET MVC?
I'm going to implement the load on demand technics for JavaScript code in ASP.NET MVC. Could you advice me the existing solutions and schemes for the platform?
I've found the post about this subject in KAZI MANZUR RASHID'S blog
What are the best practic... | common-pile/stackexchange_filtered |
How to override global style from a child component and scope the change only under that component in angular
I have declared some css styling in global style.css file which is src/style.css in my angular project. In one of my component I want to override some styling and scope it only for that component. Currently, I ... | common-pile/stackexchange_filtered |
Get Datetime of month and year
I am trying to get a month range of the first of the month to the last two days (-2)
So for example: It is May 1st 2015 or 05/01/2015.
I want to pull the last two days as the end date 04/29/15 and the first of that month 04/01/15.
So my range would be 04/01/15 - 04/29/15 when the current... | common-pile/stackexchange_filtered |
Where can I find the authentic and complete Vedas online? [Hindi + English]
There are various sources of Vedas available online but I'd like to know what is the most authentic source of Vedas, which haven't been manipulated and are complete to the best of our knowledge.
Also, if these are available online in Hindi + En... | common-pile/stackexchange_filtered |
Importprivkey problem for Litecoin clone
I have cloned an older version of Litecoin using a tutorial. I chose the starting letter for the public addresses to be lower case "x". Everything is working fine except for importprivkey. It will always gives error 5 wrong format. I tried using paper wallet generated keys (pape... | common-pile/stackexchange_filtered |
Split string by first delimiter found
I have a string with multiple delimiters and I wanted to split it by the first delimiter found. I couldn't find any method to do this every method I tried will return either all the char found after the last delimiter or the char between the first 2 delimiters found. How can I get ... | common-pile/stackexchange_filtered |
Silverlight activity control - messing up width and height?
I'm struggling with Silverlights' activity control. I placed a grid inside the activity control and no matter whether it shows "Loading..." or not, the grid doesn't stretch anymore, only the min-values are applied.
After removing the activity-control everythin... | common-pile/stackexchange_filtered |
Where is the .idlerc folder on Windows 8?
I'm looking for the .idlerc folder containing the definitions for IDLE.
My setup is Python 2.7.8 + Windows 8.1
This folder contains the "config-highlight.cfg" file, crucial to apply new custom themes.
It is located in:
%userprofile%\.idlerc\
This is an annoying location; the... | common-pile/stackexchange_filtered |
Pi 4 Kali 32-bit & 64-bit download corrupt and Sha256sum mismatched
I have tried downloading both the 32-bit and 64-bit images from the Kali Linux website. It produced the error of 'compress data corrupt ' after extracting the images, and Sha256sum also mismatched when comparing with the sum given in the Kali official ... | common-pile/stackexchange_filtered |
Changing the resolution of a VNC session in linux
I use VNC to connect to a Linux workstation at work. At work I have a 20" monitor that runs at 1600x1200, while at home I use my laptop with its resolution of 1440x900.
If I set the vncserver to run at 1440x900 I miss out on a lot of space on my monitor, whereas if I s... | common-pile/stackexchange_filtered |
Scrapy crawling issue
I am trying to crawl from wikipedia but the result is not returning anything.
I tried running simple query in IPython console with one value to check but still it is not returning any value.
I have tried this:
sel.xpath('//div[@id="mw-content-text"]/table/tbody/tr[1]/td[1]/text()').extract()
Th... | common-pile/stackexchange_filtered |
How often are guns used by private citizens in self defense per year in the United States?
According to Wikipedia the numbers reported range from 65 thousand to 2.5 million. I am very skeptical of the 2.5 million figure and in fact I am even skeptical of the 65 thousand figure. This Wikipedia page lists documented cas... | common-pile/stackexchange_filtered |
C# Launching another WPF program from a byte array
First of all, let me say that I've looked through this, and i still haven't been able to find a great solution to my problem. (I will elaborate in post)
Now to the point.
I have a program which I want to secure with a login.
My setup is as follows:
Login.exe
Applicatio... | common-pile/stackexchange_filtered |
Setup nginx as proxy server for kestrel (ASP.Net Core)
I am trying to setup an ASP.NET Core Environment to host my application but I am having trouble with the nginx webserver. When I try to connect to my domain I get 502 Bad Gateway. Nginx should just run as proxy server for kestrel.
Here ist a link to the guide whic... | common-pile/stackexchange_filtered |
Signalling with continuous actions and continuous types
Consider the following signalling game. Individuals choose an action $a \in \mathbb{R}$ to maximise
\begin{equation}
U(a, \theta) = \theta a - \frac{a^2}{2} + \mathbb{E}[\theta|a]
\end{equation}
where $\theta$ is their type and $\mathbb{E}[\theta|a]$ represents th... | common-pile/stackexchange_filtered |
Selenium on Docker: Testing a Docker Image within the same `docker-compose` file
Scenario:
Docker Image that runs my app on localhost:9000
Docker Images with the Selenium Webdriver
Selenium tests that I want to run against.
I started from this SeleniumHQ/docker-selenium
Docker Compose:
version: "3.1"
services:
... | common-pile/stackexchange_filtered |
Cucumber-reports defining an environment variable
I would like to send my cucumber reports to cucumber-reports cloud(?) but the page requires to set up some environment variables like you see on the picture. But I am not sure what it exactly mean and how to do it. I would like to to do it in Java code which will load t... | common-pile/stackexchange_filtered |
CS0246 namespace not found despite adding reference to System.Management
I have added a reference to System.Management; It appears under references in solution explorer of my forms application. I have also changed the Target framework to ".NET Framework 4" from ".NET Framework 4 Client Profile" as suggested in another ... | common-pile/stackexchange_filtered |
If statement being skipped
In this method I am looking to see if a string appears in word search. Since a string can appear in any direction I have methods like the following which check those directions:
Currently my code is giving a segmentation fault when run. This is happening because the first if statement in my ... | common-pile/stackexchange_filtered |
Software Update Problem
I've tried to update my computer software to the latest version but I keep getting this message
"The Software Update Server (wd-od1.internal.waikatodiocesan.school.nz) is not responding."
Can someone please help.
Well that isn't an Apple server. Have you installed anything that might contain m... | common-pile/stackexchange_filtered |
App Crashed when Tableview transition from RootCtrl to DetailCtrl iphone sdk
In my iphone app, I created manually my tableview, that i insert in a view.
I used this Code to Make my transition :
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
DetailViewController *dvCo... | common-pile/stackexchange_filtered |
Wordpress permalinks are ignoring Unicode characters in URL
There is some problem with pretty permalinks of wordpress on my server.
My permalink structure is :
/index.php/%year%/%monthnum%/%postname%/
it ignores the unicode characters on the URL.
for example, if I use www.mydomain.com/2012/01/سلام , wordpress ignores ... | common-pile/stackexchange_filtered |
Failed to make error handler using usebean
How to check if the dropdown list has no value with this code?
<td width="168"><select name="OrgType" class="txtbox" tabindex="1">
<option value="1">Please choose...</option>
<%
Iterator it... | common-pile/stackexchange_filtered |
Feature setup. Best approach
I am creating a custom sharepoint feature (2010) it will have the following:
-5 custom lists
-3 workflows
-Adding some fields to existing lists
All this can be done in sharepoint designer, however i want to be able to give this feature to other clients without having to go into sharep... | common-pile/stackexchange_filtered |
In DataPrep, sum a set of many columns or values in an object
I have a DataPrep dataset which contains a series of ~10 columns, each of which indicates whether or not a particular brochure was selected:
BRO_AF BRO_SAF BRO_SE ...
1 1
1 1
1
I'd like to sum/count th... | common-pile/stackexchange_filtered |
Migrating users table with hashed password from old php app to new laravel app
I am working on an old php app and the password of the users are hashed with the md5() function. So the passwords are stored like:
c0c92dd7cc524a1eb55ffeb8311dd73f
I am developing a new app with Laravel 4 and I need suggestions on how to mi... | common-pile/stackexchange_filtered |
Use async/await in React component
Is it a good practice to use async/await directly in React component then store the result in the store ? For example:
class User extends Component {
render() {
return <div>{this.props.user.name}</div>
}
componentWillMount() {
this.getUser();
}
a... | common-pile/stackexchange_filtered |
How to establish a connection My Mobile device with my PC to execute a performance test using Jmeter.?
I am using an android device version 4.3.I have to connect My Mobile with Jmeter console to execute a performance test.I have to know the the Proxy Host Name to Provide in the WIFI config area.Currently when I try to ... | common-pile/stackexchange_filtered |
Updating seekbar value
I have a seekbar where which have following intervals: minimum value = 100000 and max value is 2500000 and interval is 25000
I need to update my seekbar on edittext change and also validate for figure which does not fall in range of 25000.
Here is my code:
int mininumloan_amount = 100000;
int max... | common-pile/stackexchange_filtered |
How to use stylelint with Grunt?
I'm trying to replace grunt-scss-lint (because of its Ruby dependency and silent failure when you don't have the gem installed) with stylelint.
The problem I'm running into is the following error:
$ grunt
Loading "G... | common-pile/stackexchange_filtered |
How to send a curl request in java
I'm using a java WebService to send a curl request, this is my request :
curl -d "input = a b c d" 'localhost:8090/jobs?appName=Test40&classPath=fr.aid.cim.spark.JavaWord&sync=true&timeout=1000000000'
I don't know which library I should use and how I can write it in java. Can you ple... | common-pile/stackexchange_filtered |
Confusing statement in the C function declaration
I am going through a code implementation of USB drivers on an STM32 MCU. My C language understanding is a bit limited and I have come across this function definition that is not clear to me.
static enum usbd_request_return_codes cdcacm_control_request(
usbd_device *usbd... | common-pile/stackexchange_filtered |
What's the purpose of const swap() function?
While implementing a custom tuple (here), I found there is a wired swap() function that takes const parameters (cppreference):
template< class... Types >
constexpr void swap( const std::tuple<Types...>& lhs,
const std::tuple<Types...>& rhs ) noexcept(/* ... | common-pile/stackexchange_filtered |
Sorting comments and replies in different direction with SQL
I am having difficulties when trying to sort comments with three levels of hierarchy on my website.
I have a table 'comment' which contains either comments or answers to comments. These comments have a cid, unique identifier, a pid, that indicates the cid of ... | common-pile/stackexchange_filtered |
Knockout custom handler to hide textbox value if it is disabled
I have a form that basically has a handful of properties that are shared between a few items. When you select the radio button for the item the text boxes enable for data entry, only one item can be selected at a time.
I have everything setup and working e... | common-pile/stackexchange_filtered |
WPML is blocking WP core update
I am tryin to update the core of Wordpress to 6.2 from the site desktop for a company whose WPML contract has expired.
This is the error I get from WP:
"WPML String Translation is trying to write .mo files with translations in the folder:
/www/domains/digitalscreen.com.0/public/wp-conten... | common-pile/stackexchange_filtered |
No of pairs of integers $(x,y)$ such that $x^2+2y^2<25$
Using Stars and Bars, one can easily find out the pairs (a,b) that sum upto 25, then 24 then 23.....and eliminate all 'a's and 'b's which are not squares and all 'b's which are odd. But is this the only way? Is there no better way? Please help.
In this case, it'... | common-pile/stackexchange_filtered |
How to calculate 8 business days from today's date?
I have a scenario where i want to find the date by subtacting 8 business days from today's date. Suppose if today's date is 04/21/10 .Now i want to show the date to be 04/09/10.Weekends should be excluded.
For Example.
If today's date is 04/21/10
Subtract Weekends :
... | common-pile/stackexchange_filtered |
How to find the vertex of a triangle
I was given two coordinates of vertex - A(1,2) and B(5,-4) and also a circumcentre O(6,1). Is it possible to find out the 3rd vertex?
My try is first find the midpoint of AC , which is D[(1+x)/2,(2+y)/2]. However, it is hard to white the equation of AD and OD. Does anyone have any i... | common-pile/stackexchange_filtered |
Can't print on standard output after using shmat
So in this code puts can't display the output.
If I remove the fgets line, it prints lola but if I try to read and write on shm, nothing happens. How can I solve this?
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ipc.h>
#include <sys/sem.h>
#... | common-pile/stackexchange_filtered |
Tutorial needed for GNU blackfin toolchain with Eclipse
Any body knows of a good tutorial on using the GNU blackfin toolchain with eclipse on Windows?
I'm trying to start with developing bare metal application on blackfin and I've installed the toolchain and eclipse C/C++ Juno but I'm unable to compile. Currently I'm g... | common-pile/stackexchange_filtered |
Mutating method sent to immutable object error when removing object
I want to remove object from array but I am getting this error. I found relative questions but not able to get.
please help me.
my code is
NSArray *tripsArray= [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
NSMutableArray *myTripsAr... | common-pile/stackexchange_filtered |
HMAC verification API in javascript
I am successfully implemented HMAC verification from the backend but would like to offer JSONP support. Since I dont want the client to know about the secret key, what is the best way to take advantage of HMAC and make calls from the client?
Please provide much more information. W... | common-pile/stackexchange_filtered |
How do I delete merged Pull & Request history?
I would like to delete the record of PR that is in the Close state after the Pull&Request request on GitHub and completed until Merge.
As far as I know, the Github support staff team provides this kind of support. Is that right? I found out by referring to the stackoverflo... | common-pile/stackexchange_filtered |
I can't figure if these 2 series are convergent
I have 2 series. The first one is: $$\sum_{n=1}^\infty\frac{ln(n)}{n (n+1)^\frac{1}{2}}$$ I've tried to compare it with some kind of harmonic series but I can't find the ideal one. My problem is mainly with the $ln(n)$. At the end I have something like: $\frac{ln(n)}{n(n+... | common-pile/stackexchange_filtered |
Loop Control Structure - Javascript
I'm just starting to learn loops, and in a for loop, if I'm looping through an array, in the second condition, I state that i < arrayName.length. I don't understand the logic here, surely it should be i = arrayName.length; Why does the length have to be < (less than) when you're lo... | common-pile/stackexchange_filtered |
ORA-06550 & 00904 on delete statement inside pl/sql block
Once I run the following block:
BEGIN
dbms_output.enable;
dbms_output.put_line('INFO: Calling stack');
delete from A
where B_ID in (
select ID
from B
where B_COL is null
);
END;
/
I always get the following error:
ORA-06550: line 9, co... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.