text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
From root and weight lattices of SU(N) to $\theta$-functions as sections of a line bundle and $CP$-space
I have troubles to digest the following messages/discussions in the following work in p.10-12;
Which construct a map from the moduli space of flat connections $M_{\rm flat}=\mathbb{E} / {\mathfrak S}_N \to CP^{N-1}$... | common-pile/stackexchange_filtered |
VBA code in excel to made text between tags bold
I have a csv file which includes the html tags < b > and <\ b > to signify bold text. (I.e several words between these tags, in a longer block of text within the cell, should be bold). Is there a way using vba code in excel to strip the tags, and make the text between th... | common-pile/stackexchange_filtered |
Scala - choose constructor by runtime type of constructor arguments
I have a class with several different constructors, which differ in the types of parameters, when all these parameters extend from the same base class.
See here for a simplified example:
abstract case class GeneralDataType()
case class SpecificDataType... | common-pile/stackexchange_filtered |
Caching not working on page with asynchronously loaded asset transforms
I'm using PictureFill on a large page, containing many image transforms, that doesn't seem to be caching despite most of the page being wrapped in {% cache %} tags. When I view the page after several refreshes with Dev Mode enabled, the Profiling S... | common-pile/stackexchange_filtered |
Redirect url to another domain using .htaccess
I have the following in a .htaccess file:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordP... | common-pile/stackexchange_filtered |
Implicit Differentiation: Demand
Does anybody know how to solve this??
A price $p$ (in dollars) and demand $x$ for a product are related by
$2x^2+2xp+50p^2=20600$.
If the price is increasing at a rate of 2 dollars per month when the price is 20 dollars, find the rate of change of the demand.
Hint: For $p'(x) = \frac{\... | common-pile/stackexchange_filtered |
Redactor encode option like TinyMCE
Was playing around with redactor and looking to replace a TinyMCE implementation.
The backend is ASP.NET and was trying really hard to not turn off RequestValidation of the page; as the current implementation uses the TinyMCE encoding="xml".
Redactor does not do this out of the box a... | common-pile/stackexchange_filtered |
Many to many relationship CRUD in Room
I have modeled a many-to-many relationship with Room based on the docs and this medium article. Using this @Relation I can retrieve RecipeWithIngredients or IngredientWithRecipe Objects from the database. For this to work I need to insert a recipe to the recipe table, an ingredien... | common-pile/stackexchange_filtered |
Field Theory Phase Factor vs Anomaly
In this paper on topological quantum field theories the authors discuss something called the anomaly in section 5. In Witten's paper on field theory and the Jone's polynomial he discusses something called the phase ambiguity on page 390. Are the anomaly and the phase ambiguity rel... | common-pile/stackexchange_filtered |
Temperature of gas leaking into chambers
An initially evacuated and thermally isolated chamber has a small hole opened in its side through which an ideal gas effuses from the outside. The gas outside is at standard temperature and pressure.
A second, smaller hole directly opposite the first hole on the opposite side of... | common-pile/stackexchange_filtered |
Percentage top value showing wrong computed value in chrome [possible bug!]
I created an element dynamically in jquery added it to page, added class to it which gives it top:50%. Everything is fine, it's at 50%, but when i get value of top like this .css('top') i get wrong value, 470 instead of 20. The problem is, this... | common-pile/stackexchange_filtered |
jQuery Full Calendar, Displays Incorrect Dates on Calendar
I am fetching events via JSON but Full Calendar is rendering them on the wrong dates.
JS:
events: function(start, end) {
start = start.getFullYear() + '-' + (start.getMonth() + 1) + '-' + start.getDate()
end = end.getFullYear() + '-' + (end.getM... | common-pile/stackexchange_filtered |
Parametrized type compiler bug or proper program?
I'm surprised this program compiles. I would think the strLengthOne declaration/initialization line would be flagged as a type error. Should not T describe different types for the two different usages? One, the type that contains the single member "^...$" and the other... | common-pile/stackexchange_filtered |
Boss favors employees of one nationality
I worked for hotel x, where my boss prefers subordinates of a particular nationality.
The persons of the other nationality in the team were never promoted, appreciated, or given a pay hike, he created situations where persons of other nationalities were made to look stupid and t... | common-pile/stackexchange_filtered |
Ethernet Connected But No Internet
I am trying this on Intel Galileo Gen 2 which runs Yocto Linux and I am unable to connect to Internet using Ethernet. I have WiFi card but that doesn't connect as well. I have tried following commands and their outputs are as below
ifconfig -a
Output:
enp0s20f6 Link encap:Ethernet HW... | common-pile/stackexchange_filtered |
How to write CSV output to stdout?
I know I can write a CSV file with something like:
with open('some.csv', 'w', newline='') as f:
How would I instead write that output to stdout?
sys.stdout is a file object corresponding to the program's standard output. You can use its write() method. Note that it's probably not ne... | common-pile/stackexchange_filtered |
display iframe youtube with a store link in phpmysql
I wonder why my code didn't display the iframe. I think its an src problem:
$requete = $database->prepare('SELECT * FROM envoie ORDER BY id');
$requete->execute();
$envoies = $requete->fetchAll(PDO::FETCH_ASSOC);
foreach($envoies as $envoie) :
?>
... | common-pile/stackexchange_filtered |
Nameserver always at the top in url bar in nginx (with no redirect)
My app has only two pages presented to the user, both in mobile or desktop. Firstly a login page and after the app page itself. When accessing www.myapp.com the user is firstly indexed towards the login page and if he is logged in he is then php redire... | common-pile/stackexchange_filtered |
keytool error command
Hi I want to ask about my error when I import Certificate using keytool
this the error:
C:\Program Files (x86)\Java\jre6\lib\security\imig.cer -keystore C:\Program File
s (x86)\Java\jre6\lib\security\cacerts -storepass changeit
keytool error: java.lang.RuntimeException: Usage error, Files is not a... | common-pile/stackexchange_filtered |
How reliably can you assess the condition of a reverse-osmosis desalinator?
Handheld desalinators operating on the principle of reverse osmosis are available for emergency use in lifeboats. Sometimes they appear for sale unused in their original packaging at a very steep discount because they have been replaced at a s... | common-pile/stackexchange_filtered |
Angular : 500 error when using forkJoin to call api services
I implement a call in the ngOnInit to two api route to get some data, I'm using angular 7 and implement forkJoin to call the api like that :
ngOnInit() {
debugger
this.route.params.pipe(
switchMap(params => forkJoin([
this.http.get('/... | common-pile/stackexchange_filtered |
Get records of a table which exists in another table distinct field in MySQL
I have two tables
land_information
id | title_number | owner | case_no
1 001 John 201
2 002 Peter 202
3 002 Andrew 203
4 003 Mores 204
... | common-pile/stackexchange_filtered |
Initialization of fields of class
Sorry, if this question is trivial...
There are two ways of initializing fields
For example:
The first way is:
Public class A{
int a;
A(){
a = 5;
}
}
The second way is:
Public class A{
int a = 5;
A(){
}
}
Which way is better? Why or why not?
Whether y... | common-pile/stackexchange_filtered |
C++ map pointer variable sorting
Hello I wanna know how to sort the map which Tkey variable is pointer type.
There is getName function which return char* type. so I tried to compare with strcmp. But there are some error in the return part.
struct Compare_P {
inline bool operator()(Person const& a, Person const&... | common-pile/stackexchange_filtered |
What is this error installing the Anaconda debugger
I run this script from the Anaconda terminal:
conda create -n jupyterlab-debugger -c conda-forge jupyterlab=3 ipykernel>=6 xeus-python
and I get this
Preparing transaction: done
Verifying transaction: done
Executing transaction: | WARNING conda.gateways.disk.delete:u... | common-pile/stackexchange_filtered |
mule 3.9.5 Cannot transform xml dom to xml
After migration the mule server from 3.9.1 to 3.9.5, I encountered a problem in the transformation of the payload to xml.
Here is my code:
<flow name="SetVariablesFromPBGB">
<foreach collection="#[xpath3('/*:Envelope/*:Header',payload,'NODESET')]" doc:name="For Each">
... | common-pile/stackexchange_filtered |
Autodesk forge: Listing files and getting recent
I've been looking through the Autodesk Forge API a bit but I have not found a way to do the following things:
Query/list files in a whole Fusion 360 team hub, filtering on e. g. filename.
Get a list of the N most recently accessed files (created, opened, saved)
Is th... | common-pile/stackexchange_filtered |
Fixing id field in ActiveRecord
While troubleshooting another problem, I added self.primary_key = id to my model. This broke ActiveRecord's management of the id field. Is there any way to revert back? Code was removed and app was restarted. The problem is the schema changed. An explicit id field was added and
create_t... | common-pile/stackexchange_filtered |
How to copy all the artifacts from source to destination in Multi Stage Docker File
I have two stages as follow:
Stage # 1
FROM mongo:latest AS mongodb
ENV MONGO_INITDB_ROOT_USERNAME root
ENV MONGO_INITDB_ROOT_PASSWORD root
ENV MONGO_INITDB_DATABASE admin
ADD mongo-init.js /docker-entrypoint-initdb.... | common-pile/stackexchange_filtered |
Tabbar not able to access Navigationcontroller
I have a navigationController app.
I push a tabbar onto the view. Tabs are working title is changed, perfect. Now one of my tabs has a list and I try to link out to a child page within the tabbar:
NextViewController *nextController = [[NextViewController alloc] initWithNib... | common-pile/stackexchange_filtered |
changing image source by dealing with state in Reactjs
I am trying to make an Image slider like e-commerce product in Reactjs.
In javascript it's pretty simple, we only need to change the image source, but how to do it in React? because in React we have to deal with state.
First I mapped out all four images(state) as... | common-pile/stackexchange_filtered |
std::set of boost::weak_ptr<T> - Getting const_iterator to const T?
I have class containing an std::set of boost::weak_ptr<T>. I have two functions begin() and end() that return an iterator to the container. However, I don't want clients to be able to modify T. Simply returning a const_iterator won't work, because the ... | common-pile/stackexchange_filtered |
How to use jstree v3 plugin with reorder only
I am using jsTree V3.0.8 (http://www.jstree.com/)
how to reorder only when use dnd plugin like at V1(http://johntang.github.io/JsTree/_docs/dnd.html#demo2)
Use the check_callback option like this:
"check_callback" : function (op, node, par, pos, more) {
if(more && mor... | common-pile/stackexchange_filtered |
List Vertical Align in IE 9
Hi all, I am having problem with using <li></li> in the IE browser. I have tried using display:block and display:table to correctly align the second line of each bullet with the first, but neither has worked.
Here is the list:
<ul class="a">
<li>
<span>The customer provides t... | common-pile/stackexchange_filtered |
tkinter messagebox without buttons
In my program I just need to notify user to not press a physical button om a system with no keyboad or mouse,
want to popup a Wait message that disapears when the system is again ready
Please provide more details related with your question, like your actual code and why it does not w... | common-pile/stackexchange_filtered |
Im not getting any returned value from this... why?
Yes it connects to the database, everything else works fine. I cant seem to pull the pass from the db its showing no returned echo
<?php
$username="test";
include("db.php");
$con=mysql_connect($server, $db_user, $db_pwd) //connect to the database server
or... | common-pile/stackexchange_filtered |
C++ / MPI: Why do I get bigger execution time with bigger number of processors
I'm trying to write a code for serial and parallel algorithm of LDLT decomposition in C++ using MPI. Here's a code
#include <iostream>
#include <mpi.h>
#include <cassert>
#include <chrono>
#include <cmath>
namespace para
{
double solveS... | common-pile/stackexchange_filtered |
Is there any special restriction on using OriginalQueueId field in AgentWork trigger?
We have written a before/after update trigger on AgentWork object to get information about the Owner Change from Queue to User on Case record acceptance from Omni Channel. To get this From and To owner information we tried to use User... | common-pile/stackexchange_filtered |
D3 v5 zoom limit pan
I am trying to limit pan in d3 zoom but I am not getting correct results. I am using following code to extent both scale and translate.
var treeGroup = d3.select('.treeGroup');
var rootSVG = d3.select('.rootSVG')
var zoom = d3.zoom()
.scaleExtent([1.6285, 3])
.translateExtent([[0, 0],[800... | common-pile/stackexchange_filtered |
How does the Announcer badge work?
I understand that the Announcer badge can be earned if the question is visited 25 times.
But is this only when I share a link to this question in one of my answers, or can I also share the link (with my user id somewhere to count the accesses) somewhere else, maybe Facebook?
You can ... | common-pile/stackexchange_filtered |
Java - Vertx - Publish–Subscribe pattern : publishing message inside its own consumer. Is this a bad idea?
I am new to Publish–subscribe pattern, and we are using Vertx in our application.
I am trying to do this for some usecase, where I am publishing inside its own consumer:
private void functionality() {
EventBu... | common-pile/stackexchange_filtered |
Installed Node.js and Sublime Text But Keep Getting Errors
I'm a beginner at trying to learn web development. I currently downloaded node from the nodejs.org website and also downloaded Sublime Text 3 from the website as well.
My code for sublime is as follows:
$ node
console.log("Who's you're daddy?");
When I try to... | common-pile/stackexchange_filtered |
NullReferenceException during object initialization
Why there's a NullReferenceException when trying to set value of X in the code below? It works fine when I use new keyword when initializing B, but why it compiles fine without new and then fails during runtime?
https://dotnetfiddle.net/YNvPog
public class A
{
pub... | common-pile/stackexchange_filtered |
What is the right dual isogeny?
I have a question regarding dual isogenies. I read an example in Silverman's book about elliptic curves and am wondering something about this example.
We have $\zeta$ as a primitive cube root of unity. Then the elliptic curve $C: y^2=x^3+1$ has complex multiplication:
\begin{align*}
\phi... | common-pile/stackexchange_filtered |
Method to encrypt an image and save it in Gallery in React Native for iOS platform?
I need to encrypt an image and save the encrypted file in Gallery. Is it possible on iOS platform? Using React Native (JS) and OpenSSL for encryption.
Any guide will be helpful!
Thank you :)
I don't think so. You can manage your app's... | common-pile/stackexchange_filtered |
In Android Market , how frequently developers can/should update their apk files?
What are the best practices on updating the apk files in the Android Market ? Is it ok to publish a new version as soon as i fix a minor glitch or should i consolidate a few bugs (if those or minor) and post it in a regular interval. Just ... | common-pile/stackexchange_filtered |
Need guidance to use .map,.group,.pluck, etc. to make multi series line chart in ruby on rails app
I'm trying to display a multi series line chart using chartkick in a Ruby on Rails app.
The chart should display paper_types and the weightfor each type during some time period.
SCREENSHOT ADDED
This is my latest try: ... | common-pile/stackexchange_filtered |
Opengl rotate an object using the mouse (C++)
I have an object that I want to rotate using the mouse in Opengl (I'm using glut). I'm keeping track of the mouse movement and rotate according to the change in x and y of the mouse. But the problem is that the object doesn't move how I want it to. For instance, when I move... | common-pile/stackexchange_filtered |
looping dataframes with different number of columns in r
Maybe is something trivial but I am trying to solve this problem:
I have to data frames, one with 25 and another with 9 columns. Now, what I need to do is to fit polynomial equations where my dependent variable is in the data frame with 25 columns and my independ... | common-pile/stackexchange_filtered |
Error: [$rootScope:inprog] $apply already in progress
I just tried to use 'ngTagsInput' in my angular app and the tags in the app are running fine,but sumultaneously its throwing the error in the console.Its not affecting my UI flow but yes errors are logging in the console.Why the cause and solution for this error.
Er... | common-pile/stackexchange_filtered |
What does it mean to Taylor expand $1/(\ln(r) - \ln(x) + i\pi/2)$ in power of $1/\ln(x)$?
What does it mean to Taylor expand $1/(\ln(r)-\ln(x)+i\pi/2)$ in power of $1/\ln(x)$?
Can some one help me understand what this text means? I could understand everything except for the last step which is to Taylor expand that pa... | common-pile/stackexchange_filtered |
How to 'convert' MP3 file to numpy array or list
I'm working on an audio-related project that connects with Django backend via rest api. Part of the front-end requires to display waveforms of associated mp3 files and for this, it in turn requires optimized data of each mp3 file in form of an array, which the front-end ... | common-pile/stackexchange_filtered |
PHP typehint specialization without actual method declaration
I have the following piece of code all over the place:
class Container extends Object implements \IteratorAggregate {
public function AddObject(Object $object, $instanceKey) {
...
}
public function AddComponent(Component $component) {
... | common-pile/stackexchange_filtered |
How to make an Effect in ngrx
I've created a simple effect in ngrx using this as a template. My code is slightly different:
`
@Effect()
addSeries$ = this.actions$
//Listen for the 'ADD_SERIES' action
.ofType(GraphsActions.ADD_SERIES)
//use that payload to construct a data query
.map(action => actio... | common-pile/stackexchange_filtered |
Unitary Transformation for a Self-Adjoint Elliptic Operator in one dimension
Let $a\colon \mathbb{R}\to \mathbb{R}_+$ be bounded, bounded from below by a strictly positive constant and Lipschitz-continuous. Consider the self-adjoint linear operator $L:=-\partial_x a(x)\partial_x$ (in divergence form) on $L^2(\mathbb{R}... | common-pile/stackexchange_filtered |
Rpy2: calling to function conaining dots
I'm tring to run a R function in Pyton via Jupyter Notebook.
the problem is, that my function name (from mice lib) - containing dot.
the name of the function is md.pattern, and this is the code that I'm tring to run:
from rpy2.robjects.packages import importr
mice = importr('mic... | common-pile/stackexchange_filtered |
Getting DATETIME for rows inserted/Modified
am using SQL server 2005 , i have a requirement to get the Creation datetime of all the rows in a particular table, unfortunately the table do not have any "rowverion" or datetime column
( i know this is a major design flaw).
so , i was wondering if SQL server maintains datet... | common-pile/stackexchange_filtered |
cannot find -lplot - fedora
I installed gnuplot using sudo yum install gnuplot on terminal. And I have a cpp file, it use gnuplot. I compile without error.On linking,the error occurs.
Compile : g++ -c plot.cpp
Link : g++ -o exe plot.o -lplot
Code :
int main()
{
FILE *pipe = popen("gnuplot -persist", "w");
// set axi... | common-pile/stackexchange_filtered |
Input widths on Bootstrap 3
Update again: I am closing this question by selecting the top answer to keep people from adding answers without really understanding the question. In reality there is no way to do it with the build in functionality without using grid or adding extra css. Grids do not work well if you are dea... | common-pile/stackexchange_filtered |
Display data from MySQL to PHP page problem
I'm trying to display some specific data from MySQL to the PHP web but I'm always getting 0 results .
the code i used is:
<?php
$conn = mysqli_connect("localhost", "root", "", "summary");
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->conn... | common-pile/stackexchange_filtered |
Merge sort for prime number of elements?
As far as I know, In merge sort, we have to divide elements in a number of groups.
But if number are primes, then how is division possible? Do we divide them in unequal groups?
If you are going to present an implementation, please do it in C or Python.
"Give me source codes" qu... | common-pile/stackexchange_filtered |
How do I group a 2 dimensional list of objects in python 3.10?
I have a list of gifs. Each "gif" is a list of frame objects setup like this.
gifs = [ [1, 2, 3, 4, 5, 6], [1, 2, 3, 4, 5, 6], [1, 2, 3, 4, 5, 6], ...]
I need to order them is to a list of lists where each sub-list contains the nth corresponding frame. i.e.... | common-pile/stackexchange_filtered |
Get Date object from DatePickerFragment in Android
I have defined DatePickerFragment in my android application, here is the code for it:
public class DatePickerFragment extends DialogFragment implements
DatePickerDialog.OnDateSetListener {
private int year;
private int month;
private int day;
... | common-pile/stackexchange_filtered |
Why do WinVerifyTrust and sigcheck disagree about whether a file has a signature?
I've used the WinVerifyTrust example from here, but I'm finding that it is getting a TRUST_E_NOSIGNATURE for some files that SysInternals sigcheck reports as signed. For example, c:\windows\system32\mfc42.dll is reported by WinVerifyTrus... | common-pile/stackexchange_filtered |
Finding shapes after merging together contours with opencv
I would like to find specific shapes (circles and the triangles) in the following image there are:
Two triangles and two circles in different sizes
I have used the:
cv2.findContours(image=current_bw_img, mode=cv2.RETR_TREE, method=cv2.CHAIN_APPROX_NONE)
for ... | common-pile/stackexchange_filtered |
Parallel exceptions are being caught
somehow my exceptions seem to being caught by method they are executing in. Here is the code to call the method. As you can see I create a cancellation token with a time out. I register a method to call when the cancellation token fires and then I start a new task. The cancellation ... | common-pile/stackexchange_filtered |
Rails: Finding matching attribute in a has-many / belongs-to association
Say I have a Restaurant and a Reservation model. I want to find the reservations for each restaurant according to restaurant id, something like this:
@reservations = Reservation.find( # current user )
@restaurants = []
@reservations.each do |res|... | common-pile/stackexchange_filtered |
How to generate a hash for firefox xpi file?
I want to inline install firefox extension. In the example here It needs to have hash of the extension .xpi file. They recomend to use nslCryptoHash.
The first problem is that the code from the CryptoHash is not working. The firefox throws undefined on Components.classes.
Th... | common-pile/stackexchange_filtered |
Calculating Standard Deviation of Angles?
So I'm working on an application using compass angles (in degrees). I've managed to determine the calculation of the mean of angles, by using the following (found at http://en.wikipedia.org/wiki/Directional_statistics#The_fundamental_difference_between_linear_and_circular_stati... | common-pile/stackexchange_filtered |
AD620 in Proteus: timestep too small
I've made this circuit in Proteus, as a part of a practice report:
In real life it works, as I built and tested it. But in Proteus, when I want to run the simulation, I get these errors:
[SPICE] transient GMIN stepping at time=3.41026e-006
[SPICE] TRAN: Timestep too small; timeste... | common-pile/stackexchange_filtered |
Oculus rift Camera turn issue using Vizard
I'm trying to use Vizard 5 to make a simulation with the Oculus rift. I can't get the mouse to be linked to the MainView method while the oculus is also connected to the mainview, meaning I want to make the mouse move the camera and the oculus also at the same time. Any help w... | common-pile/stackexchange_filtered |
Why to split the tasks not running on UI thread to make WPF app more responsive?
In part1 "Getting Started" of
Alexandra Rusina's series. Parallel Programming in .NET Framework 4
in order to make WPF UI responsive, it is done by outsourcing the intensive computations out of UI. Eventually, the code was changed ... | common-pile/stackexchange_filtered |
How to check input in PreferenceActivity and prevent storing of invalid values?
I have prepared a complete and simple test case for my question: ValidatePrefs app at GitHub:
When you click the "Settings" icon in the top right corner, SettingsActivity is displayed.
I would like to validate the 3 EditTextPreference fiel... | common-pile/stackexchange_filtered |
Logging queries and hits in Elasticsearch
We want to use Elasticsearch, Logstash and Kibana to display queries and hits from another Elasticsearch.
Setting every slowlog threshold to 0ms gives us the query but not the number of hits
index.search.slowlog.threshold.query.warn: 0ms
....
Are there any ways of getting the... | common-pile/stackexchange_filtered |
Not able to read xml file using c#
I am trying to read a xml file using c#
XmlDocument doc = new XmlDocument();
doc.Load(@"/Rules/AssessmentRule.xml");
XmlNode node = doc.SelectSingleNode("/RuleName");
string URI = node.InnerText;
return URI;
I kept breakpoints in 2nd and 3rd line. I get error in the line below
doc.Lo... | common-pile/stackexchange_filtered |
$\lim_{ (x,y)\to(0,0)} f(x, y)$ exists along all parabolas that contain the origin.
Give a proof or counterexample of the following statement: Let $f$ be a real-valued
function, that is defined and continuous on all of $\mathbb{R}^2$ except at the origin. It has a removable discontinuity at the origin provided that the... | common-pile/stackexchange_filtered |
Lie derivative: Leibniz rule proof
How can I prove $\mathcal{L}_v(\omega\wedge\alpha) = (\mathcal{L}_v\omega)\wedge\alpha + \omega\wedge(\mathcal{L}_v\alpha)$ ?
By writing down the definitions and cranking through the ordinary product rule. (Look up "Cartan's magic formula.")
Show $L_v (A\otimes B)= L_v A\otimes B+A\... | common-pile/stackexchange_filtered |
Ruby on Rails: How to chain strong parameter if some of the parameters are nested attributes?
Suppose I have the following parameters:
"struct"=> {"content" => nil}, "name" => "structA"
When I try to build a strong parameters filter around it:
params = ActionController::Parameters.new("struct"=> {"content" => nil}, "n... | common-pile/stackexchange_filtered |
comparison operator for user object in priority queue
I have following problem description
You have a program which is parallelized and uses "n" independent threads to process the given list of "m"
jobs. Threads take jobs in the order they are given in the input. If there is a free thread, it immediately
takes the next... | common-pile/stackexchange_filtered |
Java: How can I get rid of a specific JPanel by clicking an arrow key?
This is my inner class that creates the graphic text. I want to be able to press an arrow key and have it disappear. I'm sure it involves the remove method somehow, but I'm in over my head. Very new at this.
// STARTUP TEXT
class TextPanel exten... | common-pile/stackexchange_filtered |
Physics OverlapSphere does not respond correctly
I can't quite understand how Physics.OverlapSphere works at this point. As shown below in the code, if the player enters the overlapsphere then it should return true, but I keep getting false when the player enters the sphere.
This is the script that call the method
vo... | common-pile/stackexchange_filtered |
WordPress: Too many taxonomies slow down the site
I have a WordPress site with 30,000+ terms for Australian cities/states. Wordpress loads fine with fewer terms but 30,000 terms make it load forever.
I've disabled all the plugins and using the WP-2015 template. Is there a way to add such a huge number of custom terms a... | common-pile/stackexchange_filtered |
Debug.Assert does not break into editor in MonoDevelop/MonoTouch
Simply put, Debug.Assert calls that fail don't stop the execution flow of the program in MonoDevelop, they just print out a trace message that starts like this (followed by a stack trace):
2012-12-28 19:21:01.978 TestApp[81689:c07] ---- DEBUG ASSERTION FA... | common-pile/stackexchange_filtered |
Allocate a static IP to Data Fusion or Cloud composer instance
I am trying to use Google Data Fusion to connect to a Microsoft SQL server database and need to have a static IP.
I have tried to provision a static IP on a subnet and connect it to Data Fusion through a VPC and I have also created a small VM with a static ... | common-pile/stackexchange_filtered |
In what time zone are R's file.info()'s mtime expressed?
I have a file for which Windows (win7) explorer says that its mtime is 24-oct-2014 12:39. When I ask for this/these properties in R using file.info(), I am getting the following:
file.info('r:/data/dm29/dm29 - Sample_138_20141023_0737.dti')
... | common-pile/stackexchange_filtered |
Impact on DV01 of cbot bond futures by changing coupon from 6% to 4%
CBOT has been asking customers lately what their thoughts would be on coupon change from 6% to 4% on all bond futures. I believe the last time this was done was in 2000 where the coupon was changed from 8% to 6%.
My question is, how would this impact... | common-pile/stackexchange_filtered |
How can I find out which station a bookmarked song on Pandora came from?
While going through my many bookmarked songs, I sometimes wonder from which of my 30 or so radio stations a song came from.
Is there any way to know which station I was listening to when I bookmarked this song?
No, sorry. It doesn't look like th... | common-pile/stackexchange_filtered |
is there a note location chart available for 22 hole chromatic harmonica?
I am looking for a chart that shows the location of notes, for both draw and blow, as well as the key pressed and unpressed, for a 22 hole chromatic harmonica
Something like this but for a 22 hole chromatic
I have been searching for hours and I c... | common-pile/stackexchange_filtered |
Heimdall could not able to detect Samsung Galaxy Tab P1000?
I am trying to flash Samsung Galaxy Tab P1000 using Heimdall commands in Linux.
issue:
sudo heimdall detect
command not supoorting to detect device but device is detected becase
sudo heimdall print-pit
command is working and rebooting device ... but I could... | common-pile/stackexchange_filtered |
Pattern recognition from sample data
I have some running index $n = 1,\ldots$.
For each $n$ there exists a vector $f_n = (z_l : \sum_{l}{z_l} = n)$ which elements add up to $n$.
The vector $f_n$ describes an integer partition of $n$.
Consider the following table for $n \in \{1,\ldots, 80\}$. I want to recognize a gen... | common-pile/stackexchange_filtered |
How to generate GA for http (main domain) and and https (sub domain)?
I am having main domain (http://example.com) and a sub-domain (https://secure.example.com) and I have one GA profile created for http://example.com.
Now i want to track the https sub-domain, if i use the same code generated for http site, will that ... | common-pile/stackexchange_filtered |
want to stop user input by messagebox but bypassed by a Enter keydown
I'm coding a windows form application running on a barcode scanner.
The plantform is .Net2.0CF/C#.
What i want is whenever user input wrong, the app will pop a messagebox and block the next input(actually,a scan action) until user click the OK on th... | common-pile/stackexchange_filtered |
asp.net membership provider Guid userID
I need (I think) to get the current logged in userID so that I can update one of my tables that uses this userID as a foreign key. The problem is that the userID in the database does not match with this:
Guid currentUser = (Guid)Membership.GetUser().ProviderUserKey;
currentUser.t... | common-pile/stackexchange_filtered |
Safari Warning On Certificate
We have recently started receiving warnings from Safari: "Safari can't verify the identity of the websites 's-static.ak.facebook." The certificate for the website is invalid. You might be connecting to be 's-static.ak.facebook' which could put your confidential information at risk. Would y... | common-pile/stackexchange_filtered |
Proof that the limit inferior is less than or equal to the limit superior of a sequence
I have thought of a proof that the limit inferior of a sequence is less than or equal to the limit superior of that sequence as part of Exercise 6.4.3 part (c) from Tao's book Analysis I Fourth Edition. In particular, I approached t... | common-pile/stackexchange_filtered |
Falcon Circus, Prologue: The Twins
You get home from work, grab the mail, take off your coat, and sit down on the couch with the TV on the news. "Bills, bills, junk..." you sift through your mail, and stop to look at a very colorful looking flyer.
The flyer is bright red and purple- two colors that don't seem to sit ... | common-pile/stackexchange_filtered |
How can I create a DIV that's located in the center of my browser screen?
I tried the following:
<body style="height: 100%;">
<div style="display: block; height: 30rem; width: 100rem; margin: auto;">
x
</div>
</body>
What happens that is the box is centered with the correct right and left margins. But ther... | common-pile/stackexchange_filtered |
kendo ui for angular form components not working
import { Component, OnInit } from '@angular/core';
import { FormGroup, FormControl, Validators } from '@angular/forms';
@Component({
selector: 'forms',
templateUrl: './form.component.html',
styleUrls: ['./form.component.scss']
})
export class FormCompone... | common-pile/stackexchange_filtered |
Simple MPI_File_open not working properly
I am trying to compile and run this simple C/MPI program (test.c), that only try to open (create, if non existent) a file, nothing else:
#include <mpi.h>
#include <stdio.h>
int main(int argc, char **argv) {
int size, rank;
MPI_Init(&argc, &argv);
MPI_Comm comm;
... | common-pile/stackexchange_filtered |
limit inferior is the least cluster point of $\{ x_{n} \}$
Here is the proof of the statement on the title that has been given to me. I understand everything except the last line. Perhaps someone could enlighten me.
Let $c'$ be a cluster point of $\{x_n\}$ and $c=\lim \inf x_n > c'$. Then there exists a subsequence $\... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.