text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
Error in using tidyverse function pivot_wider
[enter image description here][1]Dear all,
I have a very large file (14,566,680 records) with 2 variables (ID and A).
The first variable (ID) is the individual (n=258) and each individual has 56,460 records (A)
I would like to write out a "transpose" file (i.e. 258 lines & ... | common-pile/stackexchange_filtered |
Django uploaded file permissions
How to add permissions to uploaded file?
E.g
class Car(models.Model):
name = models.CharField(max_length=255)
photo = models.ImageField(upload_to='cars')
owner = models.ForeigKey(AuthUser)
And each logged user can add te images. E.g. User1 added image a.jpg. And can access ... | common-pile/stackexchange_filtered |
How to uglify only changed file with Grunt.js watch task if dynamic expansion in Uglify has been enabled?
I have following config in my Gruntfile.js:
Problem is, that when some file is changed, 'uglify' task is performing as usual for all files. What I am doing wrong?
module.exports = function(grunt) {
grunt.initCo... | common-pile/stackexchange_filtered |
Problems with multiples private sites in Liferay 6.2
I need to create 2 private sites in Liferay 6.2. I have already created one of them, that has been built as the private side of the portal (site 1). I have created the another private site (site 2). The problem I am facing is that I cannot log in and go straight to t... | common-pile/stackexchange_filtered |
Battery suddenly not charging anymore
I have a relatively new ASUS F451MA. I had already updated the BIOS to the latest version before the problem appeared. I have opened up my laptop and tried to reset the battery by taking it out and putting it back again, to no avail. Then I removed 14.04 and did a fully new install... | common-pile/stackexchange_filtered |
bash_profile function to git grep and replace
I wanted to create a function in my ~/.bash_profile that would git grep and list the files that contains a string and then replace all occurrences of that string with another
function git-replace() { eval git grep -l ${1} | xargs sed -i '' -e 's/${1}/${2}/g' ; }
However, i... | common-pile/stackexchange_filtered |
Trying to run template multiple times depending on dynamic variable array in the pipeline
I am trying to find the git difference from the previous commit in one of folders in my repo and trying to loop different folder names. At the end I need to call template . To simplify the question, I have not mentioned that here.... | common-pile/stackexchange_filtered |
How to get all elements in a selection from javascript
I'm using window.getSelection() to get the highlighted selection in a contenteditable div. I can get the range of nodes with selection.getRangeAt(0). But now I'm stuck. How can I get the node/elements to do something with them, like add a class to each element in t... | common-pile/stackexchange_filtered |
I've a problem trying to create users with roles
I'm using simpletest_clone to do my tests.
what i want now is just to create an user for every existing role i've created
(I dont need just the list of permissions, i need the user to have the exact role i want)
public function testProbando(){
foreach(user_roles() as $c... | common-pile/stackexchange_filtered |
how to pass commas when entering in textfield
We are developing a Worklight Hybrid mobile application using Jquery mobile.
I want to pass commas when entering digits in a number text field. Text field maxlength 9.
I want the control to show values like this 5,652,895.
Please can anyone tell me where I am missing the lo... | common-pile/stackexchange_filtered |
Comment a PHP line containing # / character
How do I comment out the below line of PHP code
$html = preg_replace('#(<br */?>\s*)+#i', '<br />', $html);
Although the line can be disabled by something like
if (0==1)
$html = preg_replace('#(<br */?>\s*)+#i', '<br />', $html);
But still this is not a comment.
I ... | common-pile/stackexchange_filtered |
How to stop one process and go to next process in shell script?
I have a script to download consecutive satellite and radar images as they come online, later combine them into satellite image animation and radar image animation. I created two separate scripts to download images from satellite and radar. I run these fro... | common-pile/stackexchange_filtered |
Need suggestions on Javascript for image rollover with text change in <div>
I'm trying to write a javascript that will do two things. First when you roll over a thumbnail of a picture it loads the larger view in a div container. That part works. But the other thing is that there is a description that goes with each pic... | common-pile/stackexchange_filtered |
I'm not getting loops to take a new value after each loop?
I'm trying to solve a problem where I try to get my loop to take a new value after every loop. The program is suppose to fine me my Interest payment,principal payment an current balance, doing so my interest is suppose to be less an lesser every time I loop but... | common-pile/stackexchange_filtered |
Scope for containers in C++
Let's say I have something like the following piece of code:
int main() {
vector< vector<int> > vecs;
int n_vecs;
cin >> n_vecs;
for (int i = 0; i < n_vecs; i++) {
int n_nums;
cin >> n_nums;
vector<int> tmp;
for (int j = 0; i < n_nums; i++) {
... | common-pile/stackexchange_filtered |
Show that $\sum ^{\infty}_{n=1} e^{-n} \sin nz$ is analytic in the region
Show that $\sum ^{\infty}_{n=1} e^{-n} \sin nz$ is analytic in the region $A=\{z|-1<Im \;z<1\}$
Idea:
Let $D$ be a closed disk in $A$, let $\delta$ be its distance from the boundary $Im \;z = \pm1$
take $z=x+iy \in D$
i have to show that $| e^{-... | common-pile/stackexchange_filtered |
How do I declare 'sub-objects' in PHP
I'm relatively new to OOP in PHP, and I'm not sure if what I'm trying to do is possible or recommended. In any case, I can't figure it out. Are there any tutorials or documentation which might help?
I have a system in which each user has a number of 'Libraries'. Each Library con... | common-pile/stackexchange_filtered |
SSRS Sorting option showing beginning of the column
I have created a matrix report in SSRS and added a sort option to the first column. when I deployed in the report server, then sort option showing at the beginning of the column.
I've never seen this before but I don't use the interactive sort much to be honest. Hav... | common-pile/stackexchange_filtered |
Restart hyperopt from local MLFlow runs
I'm currently running a parameter search which is going to take a few days, I'm using hyperopt and recording the results using mlflow.
The server is going to be restarted automatically (oversight on my part) and for various reasons can't be delayed. This would also be useful to k... | common-pile/stackexchange_filtered |
Example of modified configuration for gatsby-plugin-offline?
I'm trying to get my head around gatsby-plugin-offline. The README that comes with the plugin gives an example of the default options, but the example isn't in a format that can be pasted into gatsby-config.js for playing-around purposes.
I'm struggling to... | common-pile/stackexchange_filtered |
Screen capture from NPAPI or javascript
I'm writing an npapi plugin. I was wondering if there is a way to capture the browser screen from my plugin using either npapi or javascript.
Any help would be appreciated.
Thanks
What are you trying to achieve? And on what platform(s)?
There isn't a way to do it with JavaScrip... | common-pile/stackexchange_filtered |
Read JSON from /assets folder into an ArrayList in Android?
First, I have researched this question a lot. I learned how to read from my text file in the assets folder. The problem is that I don't want to end up with a string because the file is actually an arraylist written using json and inside that arraylist are obje... | common-pile/stackexchange_filtered |
mac os x lion configuration problem with gitosis
I'm trying to setup gitosis on my mac mini with mac os x lion (clean install).
Basically a followed this guide
I also looked at this question
If I try to clone the gitosis-admin.git repo i get the following error:
git clone git@<IP_ADDRESS>:gitosis-admin.git
Cloning into... | common-pile/stackexchange_filtered |
Best way to deallocate an array of array in javascript
What is the best way to deallocate an array of array in javascript to make sure no memory leaks will happen?
var foo = new Array();
foo[0] = new Array();
foo[0][0] = 'bar0';
foo[0][1] = 'bar1';
foo[1] = new Array();
...
delete(foo)?
iterate through foo, delete(fo... | common-pile/stackexchange_filtered |
Am I underestimating the differences between these two hands if I bid them the same way?
In the first case, I was in "third" position, only them vulnerable at match points. Here I pre-empted 3 diamonds with the following 13 high card point hand: ♠ 2 ♡ KT ♢ AKQ6432 ♣ J53. I would not have done in the first or second pos... | common-pile/stackexchange_filtered |
get position (index) of td element identified by class name
i have this code
<tr id="3" class="gradeA odd focus row_selected">
<td class="center">Kids Footwear 2</td>
<td class="sorting_1 center focus">200</td>
<td class="center">50</td>
<td class="center">200</td>
<td class="center">30-34</td>
... | common-pile/stackexchange_filtered |
sap ui5 planning calendar - title text size
I am creating the appointments in planning using the following XML tags,
I wanted to reduce the appointments the size of the title in each appointments - title="{title}".
Also wanted to increase the height of appointment to show more data.
<appointments>
... | common-pile/stackexchange_filtered |
Velocity addition as a special case of change of reference frame
In this question, I want to restrict the discussion to classical mechanics as understood before 1900; that is, to exclude any discussion of relativity (however, if there is a neat generalization I would be eager to hear about it).
As I go back and reread ... | common-pile/stackexchange_filtered |
VC-dimension of parity functions
Consider the boolean hypercube $\{0,1\}^N$. For a set I $\subseteq$ {1,2,...N}, we define the parity function $h_I$ as follows. For a binary vector x = $(x_1, x_2, ...,x_N) \in \{0,1\}^N$,
$h_I(x) = \bigg(\sum_{i\in I}x_i\bigg)mod 2$
What is the VC-dimension of the class of all such par... | common-pile/stackexchange_filtered |
How to assign category to specific rows in R data frame, in a new column?
In a time series dataset, what would be a good way to group sets of rows such that they have a unique identifier in a new column? For instance (in a very abridged manner), taking this:
library(tidyverse)
data <- read_csv("snippet.csv")
print(da... | common-pile/stackexchange_filtered |
Sqlite 3 select statemen
I need to do a somewhat complex select in sqlite3 if you guys can help me?
I got a 'messages' table holding the following fields:
from | to | message_text | message_timestamp
and the rows:
a | b | Hi | 101
a | b | How are you? | 103
b | a | Fine,thanks | 104
c | a | Hey dude! | 115
a | b | I n... | common-pile/stackexchange_filtered |
CSS whole page vertical and horizontal align
Since 4k monitors are nascent, I need to align a small page from all four sides of the monitor. It consists of absolutely positioned divs, which are placed inside a container.
The body:
<div id="mainArea">
div elements containing text, images, links go here.
</div... | common-pile/stackexchange_filtered |
Problem when running PowerShell
I've a PowerShell script file to create results source. It works well on staging, but has some problems on UAT. First of all is the trouble with Get-SPSite. I've managed to resolve it. However, when I was trying running Get-SPEnterpriseSearchResutlItemType,
It threw an error: Attempted ... | common-pile/stackexchange_filtered |
Solr Docker Hosting Best Practice - How to - Need suggestion
I need to host Solr server with many cores for few clients. Currently I am hosting it externally, on third party hosting provider. So i don't have to manage this.
However, I am now planning to host it ourselves and considering to use Docker on public cloud.
A... | common-pile/stackexchange_filtered |
AngularJS + Bootstrap3: How to send information from a navvar to a view
I have a very simple webpage that is using Bootstrap3 + AngularJS1.2.
The main page uses a fixed nav-bar with some Dropdowm menus.
Each menu item calls the same controller (the only thing that changes is the route parameter). The controller retriev... | common-pile/stackexchange_filtered |
How to Display contents from controller to full calendar bootstrap in codeigniter
I need to display json content data from controller to full calendar in php ,
Here is my controller
function Test_Function()
{
$data = "{"Results":{"Results":[{"Title":"Mr","Name":"xxxxx","Date":"2016-06-04T00:00:00","Data":"Birthda... | common-pile/stackexchange_filtered |
Configuring a new DHCP scope in Server 2008 R2
As I was running through the scope wizard in DHCP for Windows Server 2008 R2, the wording on the wizard was slightly confusing: it seems to imply that changes I make to the default gateway and DNS servers for this new scope will be applied for ALL scopes. That doesn't real... | common-pile/stackexchange_filtered |
Facebook´s Conversion API Custom Audience
I´m trying to create a Custom Audience on Facebook´s Conversion API following this guide:
https://developers.facebook.com/docs/marketing-api/audiences/guides/audience-rules
Ive got my data on a JSON:
const rule = {
"inclusions": {
"operator": "or", // Required. and... | common-pile/stackexchange_filtered |
Javascript Regex for Indian price validation
I want to validate price format which can have values as eg. ₹ 3.50L,₹ 3.50, ₹ 3.50Cr,₹ 99.50L, ₹ 3L,₹ 300.50Cr, ₹ 350Cr, ₹ 3,50,000 ,₹ 1
I have tried this Regex : ^₹ ([0-9]+(,[0-9]+)*|[0-9]+(.[0-9]+)*(L|Cr))+$ which should fail for price ₹ 3,50L but it still show as pass.
W... | common-pile/stackexchange_filtered |
Plotting implicit function using fsolve
I am trying to plot an implicit function using scipy.fsolve but cant seem to get it to work.
I want to plot the function z(x,y) where x + y + z + sin(z) = 0 using scipy.fsolve.
import numpy as np
import scipy
import matplotlib.pyplot as plt
f = lambda x,y: scipy.optimize.fsolv... | common-pile/stackexchange_filtered |
How to define "selected" option of select that serves as AngularJS filter
I am pretty experienced with Javascript and jQuery, but I am a total noob with regards to AngularJS.
Currently I am filling my model from an $http.get, so in the beginning (after page load) the model is empty.
The view for the model is a table, a... | common-pile/stackexchange_filtered |
How to get steamcommunity market item lowest price using Javascript and jQuery?
I'm coding from time to time and make scripts for fun and to help others. How can I get JSON from other site? As we know, there are cross-domain restrictions.. This is what I'm trying to get: http://steamcommunity.com/market/priceoverview/... | common-pile/stackexchange_filtered |
C write struct in array
I need to make a self made malloc simplified a bit. The memory pool is just an array of unsigned chars. I'm planning on having a struct that is a header, containing the size of the memory block, a flag ('A' for allocated, 'F' for free) and a pointer to the next header (though I guess this isn't... | common-pile/stackexchange_filtered |
generating data with two variables
I'm trying to generate a file, given the number of cars (i) and the arrival time (j), but I can't make the code work properly.
For example if want 5 vehicles between depart 0 and 60 [i=5,j=(0,60)] generate something like these:
<routes>
<vehicle id="left_0" type="typeWE" route="left"... | common-pile/stackexchange_filtered |
How to click a specific link with jQuery
I'm trying to simply click a link whenever someone presses the right arrow key, but nothing is happening.
I've got this link:
<a title="party pics! 16" href="/photos/photo/new-party-pics-16/" id="next-in-gallery">
<img src="http://localhost/static/photologue/photos/cache/th... | common-pile/stackexchange_filtered |
jQuery Sorting a list by span
So i have something linke that:
<ul id="list">
<li class="item">
<a>
<span class="name> name1 </span>
</a>
<a>
<span class="name> name2 </span>
</a>
<a>
<span class="name> name3 </span>
</a>
</li>
</ul>
how can i sort this list by the name alphabeticaly?
kind regards
http://stackoverfl... | common-pile/stackexchange_filtered |
CSS Gradient on Android
I'm trying to make this gradient to work on Android but I don't know the right css option.
HTML:
<div class="bottom-logo">
<div id="logo" class="logo-menu-green">blaa</div>
</div>
Css:
#logo{
font-family: "Lato", "Open Sans";
font-weight: bold;
position: absolute;
z-index: 9... | common-pile/stackexchange_filtered |
Ms SharePoint 2007 Template Customization
After downloading the free templates from Microsoft's site I want to combine some features of two templates together. For example, there is a "Contact Management" template and a "Marketing Site" template. Each template has its own "contacts section/form".
Ideally, I want to u... | common-pile/stackexchange_filtered |
Deep copy in ES6 using the spread syntax
I am trying to create a deep copy map method for my Redux project that will work with objects rather than arrays. I read that in Redux each state should not change anything in the previous states.
export const mapCopy = (object, callback) => {
return Object.keys(object).redu... | common-pile/stackexchange_filtered |
Two teenagers tinker with quantum simulation software after school.
The weirdest part isn't that the particles are connected—it's that measuring one literally determines the other's state instantly, no matter the distance.
But that violates relativity, right? Nothing travels faster than light, so how can the correlat... | sci-datasets/scilogues |
REST API Limits documentation/explanation, specifically 'PermissionSets' -> 'CreateCustom'?
For the most part I can use common sense and deduce Salesforce's REST Api limits. For example, "DailyWorkflowEmails" = "Daily workflow emails" and "DailyAsyncApexExecutions" = "Daily asynchronous Apex method executions (batch Ap... | common-pile/stackexchange_filtered |
Trying to filter and map to output unique values
Is the code below possible if it is manipulated correctly, it's currently not working for me, i also maybe be going about it the wrong way? Trying to filter and then map so that I can avoid duplicate 'Subnames'
App.js
render() {
const results = !this.state.resultFound... | common-pile/stackexchange_filtered |
Update Asset Indexes gives "getFileList() is not implemented"
Thank you in advance for any tips on this.
Barely-related-background: I made a mistake on my development machine. In gparted, I chose "ignore" instead of "cancel". This is called 'choosing poorly'. Anyway, I now have freshly reinstalled my OS, apache, php, ... | common-pile/stackexchange_filtered |
How to create a static library with g++?
Can someone please tell me how to create a static library from a .cpp and a .hpp file? Do I need to create the .o and the .a? I would also like to know how can I compile a static library in and use it in other .cpp code. I have header.cpp, header.hpp . I would like to create hea... | common-pile/stackexchange_filtered |
Is there an adverse impact to deleting a question so quickly that the OP may not see it?
Here's a question that was deleted in record time:
https://stackoverflow.com/questions/46433927/why-doesnt-the-else-statement-work
This of course is a rite of passage for every C and C++ programmer, using = instead of == in an if s... | common-pile/stackexchange_filtered |
JS Client Side Cookies Prematurely Expire on Mobile Browsers
I have a web-page that uses cookies. I've set the expiry on the cookies to 365 days and in the developer console I can see that the expiry is correct. But only on mobile the cookies expire within about a week, instead of a year. From what I've read this has t... | common-pile/stackexchange_filtered |
Unable to Decode Custom IPv6 Security Header During Reassembly
I am currently working on securing IPv6 packet fragments using a custom security header that contains cryptographic information, such as a MAC and nonce. Here is the overall process I am following:
Fragmentation Process:
1. Break the Packet into Fragments:
... | common-pile/stackexchange_filtered |
How to confirm mysql database backup using mysqldump in PHP
Here is my code:
<?php
$backupfile = 'bkp_dbcreditors_' . date("Y-m-d-H-i-s") . '.sql';
$command = "C:\wamp\bin\mysql\mysql5.6.17\bin\mysqldump -u root -pare048 dbcreditors > $backupfile";
system($command);
echo "Backup taken.";
ex... | common-pile/stackexchange_filtered |
Why my label is not scaling properly on DPI change?
I have created a WinForm along with a Label in Visual Studio 2022:
namespace WinFormsApp1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
}
}
Designer:
namespace WinFormsApp1
{
parti... | common-pile/stackexchange_filtered |
Google Appengine: Budget and Daily Spending Limit not Working
I am using flexible environment.
I setup a billing account and set the following:
Budget: 0.01$
Daily Spending Limit: 0.01$
But I am already being charged 5$. How is that possible? This is the line which tells me where the charges are comming from:
App Eng... | common-pile/stackexchange_filtered |
Error with beautiful soup: list index out of range
I'm a **very new programmer to python. Working on a webcrawler using urllib and beautifulsoup. Please ignore the while loop at the top and incrementation of i, I'm just running this test version, and for one page, but it will eventually include a whole set. My probl... | common-pile/stackexchange_filtered |
"Are you a human" type of page in django
In order to prevent DOS type of attacks to my django site, I am considering to show a Captcha page if my web app things it is hit by a certain IP too often. Similar to what SO is doing when you show too mach activity.
How is the best way to do that in django? My initial ideas so... | common-pile/stackexchange_filtered |
how can a US citizen buy foreign stocks?
my question is 2-fold:
can an online broker let a US citizen buy stocks on the paris exchange?
are there any pitfalls to buying foreign stocks in the us? (e.g. tax consequences here or in france, dividend currency exchange issues, etc.)
background/details:
i would like to buy ... | common-pile/stackexchange_filtered |
How to Format Pre-populated Input Fields
I am populating a telephone input field with data from an API call when the page loads.
I have a function that formats phone numbers to look like this: +1<PHONE_NUMBER>. But the function is only working when there is a keyup event. I am trying to get this pre-populated input ... | common-pile/stackexchange_filtered |
javascript textarea value with new line from database
Below there is a script which adds a signature in a textarea field. The signature comes from a database table and it is a text column. Also, before adding it into the text area, it adds two new lines in front to give space for writing.
$value = '\n\n'.$signature['us... | common-pile/stackexchange_filtered |
How TeslaUnread for Nova Launcher works?
Hi am doing a project and I need to show off some social app (Facebook, Whatsapp) notification (unread count, not by the notification listener service) in my application. I tried in many ways, but I not able to get the answer and I see the "nova launcher" they are showing the ex... | common-pile/stackexchange_filtered |
Do I need OpenGL in Ubuntu 22.04 to run Chrome?
I have been unable to run Chrome since upgrading to 22.04 on my HP Compaq dc7800p with Intel® Core™2 Duo CPU E8500 and Intel® Q35 Graphics. Chrome worked fine in 20.04. The link on Applications in 22.04 wouldn’t work. Downloading and installing the real Google Chrome didn... | common-pile/stackexchange_filtered |
How to update a node/element in xquery marklogic
How can we update a value in xquery other than node-replace? I have an element called title which is empty , I should be updating the value as “submitted”.
Sample file:
<books>
<title></title>
</books>
I assume you are asking for an alternative to xdmp:node-replace() b... | common-pile/stackexchange_filtered |
Nitrogen - Dynamically creating Events
I am a beginner with Erlang/Nitrogen.
I am toying with a bidding system back by a mnesia db.
On my index page I have the following code and the various items and their properties get created dynamically from the database:
%% -*- mode: nitrogen -*-
-module (index).
-compile(export... | common-pile/stackexchange_filtered |
How can I customize font and page in laravel dompdf?
I get from here : https://github.com/barryvdh/laravel-dompdf
My controller is like this :
public function listdata()
{
$pdf=PDF::loadView('print_tests.test_pdf');
$pdf->setPaper('L', 'landscape');
return $pdf->stream('test_pdf.pdf');
}
My view is like th... | common-pile/stackexchange_filtered |
I've been reviewing some differential blood counts and one stands out. The total leukocyte count is within a normal range, but the composition is skewed.
How so? A neutrophilia suggesting a bacterial infection?
No, the neutrophils are fine. It’s the eosinophil count that's significantly elevated, but without the clas... | sci-datasets/scilogues |
D3JS Force network: Links to nodes that are grouped using formula in transform fnt
I am applying a formula to cluster nodes in D3js force network graph. I do not know how to get my links to attach to the new, clustered node locations.
For the nodes I changed my original code from:
force.on("tick", function() {
no... | common-pile/stackexchange_filtered |
How can I store the output of a query into a temporary table and use the table in a new query?
I have a MySQL query which uses 3 tables with 2 inner joins. Then, I have to find the maximum of a group from this query output. Combining them both is beyond me. Can I break down the problem by storing the output of the firs... | common-pile/stackexchange_filtered |
Tab order issue in IE with initial Javascript select of field in form
I'm trying to achieve the following behaviour in html: user is presented with a form involving several text fields. The fields are populated with default values, but in many cases the user will wish to enter their own. When the page loads, the val... | common-pile/stackexchange_filtered |
Is charging 18650 lithium ion cells with lower current better?
I have a 3p12s 18650 Li-ion battery pack that I use for my e-bike. I charge it with a balance charger. I know that charging with too high current is bad for battery life. But is it "the lower the better"? If not, is there any recommended minimal charging cu... | common-pile/stackexchange_filtered |
Swift 4.2, how to define a protocol for specific class or subclass
I need a protocol which can be implemented by UIView only. So my code is like this:
// Code 1
protocol FooBar where Self: UIView {
var name: String? { get set }
}
// The default implementation.
extension FooBar {
var name: String? {
get ... | common-pile/stackexchange_filtered |
Cheap vs. expensive catalytic converters for F250
The catalytic converter on our truck got stolen and we need to get it replaced. The truck is a 2001 Ford F250 Super Duty with a V8 5.4l gasoline engine. There are very cheap universal converters out there; NAPA offers the 53033 that should be viable for that truck (acco... | common-pile/stackexchange_filtered |
Issue with Selenium: Inconsistent Behavior with Multiple Browser Windows
In the provided context, I encountered an issue while using Selenium with my regular Google Chrome profile. Specifically, when I attempt to launch Selenium in a separate window while my browser is already open (without connecting to an existing se... | common-pile/stackexchange_filtered |
Why is numpy.exp on a complex meshgrid array giving the wrong real part?
I have a nested array of complex numbers,
xi:
[[[ 2.51325641-2.34963293j 2.17949212-1.57079633j 2.51325641-0.79195972j]
[ 2.15322703+3.14159265j 0.00000000+1.57079633j 2.15322703+0.j ]
[ 2.51325641+2.34963293j 2.17949212+1.570796... | common-pile/stackexchange_filtered |
Jquery ajax url in controller action
Can some body explain How actually jquery ajax method url points to a controller action?I mean the machinery behind the technology.For example
$("#Location").autocomplete({
source: function (request, response) {
$.ajax({
url: '/Vacancy/AutoCompl... | common-pile/stackexchange_filtered |
Desktop Infrastructure - My Windows 7 Loads the incorrect profile
I have Windows 7 Professional 64Bit installed, at start up when I enter my username and password it loads as per normal, but i could not see any of my programs installed or find any of my files, after digging around in the C drive i found the user folder... | common-pile/stackexchange_filtered |
ASP.NET Configure update button in GridView
I am using C# ASP.NET on VS2005.
I have a gridview table but it does not have a selection for Enable Editing when I right click on the Smart Tab.
Thus I manually added the edit button with the following code:
AutoGenerateEditButton="True"
The edit button has successfully ap... | common-pile/stackexchange_filtered |
Google Analytics - Get Number of Session Per UserId
I'm using Google Analytics and SegmentIO in our site.
I've enabled the UserId feature. Is there a way to query Google Analytics per userID? For example: get number of session per userID?
UserId enables the analysis of groups of sessions, across
devices, using a u... | common-pile/stackexchange_filtered |
Does Windows 10 defragmentation damage your SSD?
I was having a conversation with one of my colleagues about installing Windows 10 on his machine, then he suddenly dropped a bomb that installing Windows 10 would reduce the life of his SSD since Windows automatically defragments the SSD which reduces its life. I didn't ... | common-pile/stackexchange_filtered |
How to create a custom filter at .net core
I try one of the following without any success.
1. Validate a property's (username) value in the model binding with another property's value in the model (id, to find the user).
2. Validate all the sent model to a put request in the controller.
How can i create a custom filter... | common-pile/stackexchange_filtered |
Wilcoxon signed-rank test in R
I am trying to duplicate a Wilcoxon signed-rank test example in this Wikipedia post using R.
The data is as follows:
after = c(125, 115, 130, 140, 140, 115, 140, 125, 140, 135)
before = c(110, 122, 125, 120, 140, 124, 123, 137, 135, 145)
sgn = sign(after-before)
abs = abs(after - before)
... | common-pile/stackexchange_filtered |
ListSerializer in Django Restful - When is it called?
I have the following code for my serializers.py:
from rest_framework import serializers
from django.db import transaction
from secdata_finder.models import File
class FileListSerializer(serializers.ListSerializer):
@transaction.atomic
def batch_save_files... | common-pile/stackexchange_filtered |
Rotating an object correctly when you can only rotate world axis.
This question may be useful to some people, but it is not posed correctly for my particular situation, please see:
Simulating simultaneous rotation of an object about a fixed origin given limited resources.
So, I am using the Processing programming lang... | common-pile/stackexchange_filtered |
Fill DataSet from List of class Items
I've searched SO for common questions, but they didn't match my task.
I have a class with many(about 50) ValueTyped properties.
And there are needs to fill a new DataSet object with class's properties.
For example, if I have this:
public partial class MyClass
{
public int Id {g... | common-pile/stackexchange_filtered |
WhatsApp web without camera
Is it possible to load WhatsApp web without camera?. My front and back camera are broken and I am not able to load WhatsApp web without it.
Anyone knows if it is possible to load it without the camera?
| common-pile/stackexchange_filtered |
embedding html to screen
Well i have var message, which has any type of character...
I replace :) with <img src="..." .../> and http://www.youtube.com/watch?v=id with <a href="...">...</a>
Then I run $(".chat_message").html(message);
What must I do to embed anything excepts the html tags I make as html code to screen??... | common-pile/stackexchange_filtered |
Excel vba - find row number where colum data (multiple clauses)
I need a function in VBA that finds the row number based on 2 where clauses.
Here is the Excel sample:
** A B C D**
1 id1 day1 val1 xxx
2 id2 day1 val2 xxx
3 id3 day1 val3 xxx
4 id1 day2 val1... | common-pile/stackexchange_filtered |
The result of my search isn't appearing using php code
<html>
<body>
<form action="checkorderstatus.php" method="post">
<input id="search" type="text" placeholder="Type here">
<input id="submit" type="submit" value="Search">
</form>
</body>
</html>
<?php
require_once 'loginorder.php';
$conn = new mysqli($hn, $un, $... | common-pile/stackexchange_filtered |
URL getting returned when trying to obtain value from select tag
I am new to flask and Javascript. All I am trying to do is to create a form with a dynamic dropdown list, get the values selected and put them in a database.
Now I am in the first phase of getting the dynamic dropdown lists created.
Here is my python par... | common-pile/stackexchange_filtered |
golang how to use tool find where the ticker leak?
I find my process use high cpu when there was not business request
I use go-torch find most of the cpu was waste in runtime.timeproc
I think it must because time.NewTicker leak(not stop) in somewhere, or create ticker in a for loop
so how can i using any tool to find ... | common-pile/stackexchange_filtered |
Java thread state transition, WAITING to BLOCKED, or RUNNABLE?
There seems to be a discrepancy between SO consensus and nearly every Java thread state diagram on the Internet; specifically, regarding thread state transition from WAITING after notify() or notifyAll() is invoked...
WAITING never goes directly to RUNNABL... | common-pile/stackexchange_filtered |
Need to Fetch Row which have count 2
i have table A such as
TABLE1
=======================
| id | product_id | filter_id | category_id |
| 16 | 33 | 6 | Null |
| 23 | 40 | 16 | 76 |
| 48 | 20 | 6 | 45 |
| 69 | 10 | 6 ... | common-pile/stackexchange_filtered |
Is it possible to block non-PyPI requests during pip install?
In 2017 and 2018 there were these infamous stories about malicious packages being uploaded to the PyPI (Python Package Index) which tried to do all sorts of things (collecting and sending data, reverse shells etc) during installation as pip and setuptools wo... | common-pile/stackexchange_filtered |
What is meant by the quantities written in the parenthesis of the below sentence of a problem?
A rare Pokémon has appeared on your radar, you think it might be a Lapras, and you’re trying to track it down. As you’re walking down a straight road, you notice that your radar changes its distance indicator from 3 footprin... | common-pile/stackexchange_filtered |
Discount of Asian vs European vols
I understand the discount for Asian vs. European vol depends on time to expiry and length of averaging period. This makes sense intuitively; a short averaging period far away blurs into a single expiry, while a close---but long---averaging period is very different from a bullet. Is th... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.