text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
typeahead.js test failing on Rails 4 with Cucumber and Capybara-Webkit
I have the following Cucumber feature testing an input form using typeahead.js:
@javascript
Scenario: Creating a battery using typeahead
When I create a new battery using typeahead
Then I should be on the show battery page
And I should see the... | common-pile/stackexchange_filtered |
Dynamic DNS w/ DSL ISP behind a multi-WAN router? Other ISP is behind CGNAT
I'm trying to make some of the services on a Linux server accessible outside my LAN. I have a Perforce depot I want a couple other people to have access to (with ssl & login credentials). I have two ISPs right now - CenturyLink DSL, and Starli... | common-pile/stackexchange_filtered |
Check if all rows are the same
I have a select query that returns multiple rows, and I want to check if all rows are the same. So something like this:
anything_other_than(123) in (select id from foo)
So, if select id from foo returns 111,222,123,333 the statement above is false, and if select id from foo returns 123,1... | common-pile/stackexchange_filtered |
Combinatorially rearrange the contents of list values in R
Suppose i have several values
d1,d2,d3,d4,d5
How can I swap them in this format?
d2,d1,d3,d4,d5
d3,d2,d1,d4,d5
d4,d1,d2,d3,d5
d5,d1,d2,d3,d4.
In other words, each subsequent value from a series of values becomes the first, and other, in order, follow it.
Wh... | common-pile/stackexchange_filtered |
Amazon EC2 - Help setting up security based on how my software works
I'm currently developing on a project of mine where I need some guidance on securing my server.
My server is Ubuntu Server 64bit hosted at Amazon AWS EC2.
I have my own software running on it.
My problem is, I need to have all ports open and allow any... | common-pile/stackexchange_filtered |
Prove: If $A$ and $B$ are closed subsets of $[0,\Omega]$ then at least $A$ or $B$ is bounded
As usual, I am self studying topology and my knowledge of ordinals is meagre. Have
done some research on it.
Theorem 5.1 Any countable subset of $[0,\Omega)$ is bounded above.
(This exercise requires a knowledge of ordinals) Fr... | common-pile/stackexchange_filtered |
Typescript Script, ERR_MODULE_NOT_FOUND, running a script with ts-node that imports other files
I am pulling my hair out over a very simple usecase. I have a monorepo and inside the monorepo I have a package that has some utilities for my database and the schemas. I want to write a script that will seed the DB and I de... | common-pile/stackexchange_filtered |
boundedness and L2[a,b]
I can't find the counterexample of function with this criteria:
Function $f$ such that $f'$ is absolute continuous in $[a,b]$, $f'' \notin L^2[a,b]$ but $f''$ is bounded in $[a,b]$.
Function $f$ such that $f'$ is absolute continuous in $[a,b]$, $f'' \in L^2[a,b]$ but $f''$ is not bounded in $[... | common-pile/stackexchange_filtered |
Mathematical notation for Hash Tables
A matrix is nice for modelling arrays, eg
const A = [1, 2, 3, 4]
const a1 = A[0]
const a2 = A[1]
const a3 = A[2]
const a4 = A[3]
can be modelled with
$$
A =
\begin{bmatrix}
1\\
2\\
3\\
4
\end{bmatrix}
$$
$$
a1 = A_1\\
a2 = A_2\\
a3 = A_3\\
a4 = A_4
$$
I am curious if there is some... | common-pile/stackexchange_filtered |
How do I properly return 'this' in Thenable objects?
I am developing a NodeJS package that contains a Thenable class (see Thenable objects) that is supposed to return this (the initialized object itself), but instead it is returning a new, uninitialized object and it is stuck in a neverending loop. Below is the code:
n... | common-pile/stackexchange_filtered |
How to set host environment variables inside npm scripts(package.json)
Imagine I have an environment variable
export NODE_ENV=production
when I do
echo $NODE_ENV //--> shows production which is correct
Problem:
Inside my package.json
scripts: {
...
"build": "export REACT_APP_NODE_ENV=${NODE_ENV:-development};
... | common-pile/stackexchange_filtered |
DatePipe for time conversion
I need to convert a time string (eg. 19:07:33 to 19:03) this data value is retrive from db via API.
<ion-col size="3" class="col">{{res.oraIT |date:'HH:mm' }}</ion-col>
Here the error console:
core.js:6210 ERROR Error: InvalidPipeArgument: 'Unable to convert "19:07:33" into a date' for pi... | common-pile/stackexchange_filtered |
UPDATE: Enumerating instead of summing in Python2.7
I have a 2 part problem in Python that I would need a help in.
I have the following two inputs.
The first one provides mapping information: ie:
amphibian anm|art|art|art|art
anaconda anm
The second one provides the data to be mapped: ie:
amphibian first head... | common-pile/stackexchange_filtered |
Why is this throwing "Cannot read property 'length' of undefined"?
I have a two column form which has left and right dropdown menus.
Depending on what the user selects in the left dropdown, the right dropdown will render either as a plain dropdown (<select>) or a multiselect (<select multiple="multiple">) and populate ... | common-pile/stackexchange_filtered |
Please identify this flowering Pyrrhocactus
This is a plant I got many years ago as a seedling, and it is labelled "Pyrrhocactus spec." - What species is it?
| common-pile/stackexchange_filtered |
Java SimpleDateFormat always returning January for Month
I'm working on taking a date value (createWhen) from Active Directory, and translating it into a Java date, for the purposes of getting a list of accounts created between two dates. Everything is working fine, save for one method: the method where I go from the A... | common-pile/stackexchange_filtered |
Is<EMAIL_ADDRESS>safe to use as URL?
I consider to setup a server to deal with URLs including email address such as
<EMAIL_ADDRESS>
According to RFC 3986, I userstand @ is reserved on authority part = //mydomain.com/,
but unreserved on path part /.......,
so currently I assume it's ok to use email address on pass.
Ha... | common-pile/stackexchange_filtered |
how to set a custom config value for sphinx in conf.py? (e.g., for sphinx.ext.ifconfig)
[I split the original question into two after more testing and research]
I defined my own configuration value in conf.py and wrote a minimal extension to make it visible from rst files.
in conf.py:
sys.path.insert(0, os.path.abspath... | common-pile/stackexchange_filtered |
Script export duplicate item after N repeated times
Write bash script and encounter small issue,
So im writing repatable in Log.txt file :
20201002<PHONE_NUMBER>00000475FB8D dummy
20201002<PHONE_NUMBER>00000475FB8E dummy1
20201002<PHONE_NUMBER>00000475FB8D dummy
20201002<PHONE_NUMBER>00000475FB8E dummy1
20201002<PHONE_... | common-pile/stackexchange_filtered |
Multiple post views on homepage
I would like to set different post views on the homepage (also archive and category pages).
For example to have first post with full width thumbnail and excerpt, next 2 posts with small thumbs and no excerpt and 4th post with just a title. Then again full width thumb, etc.
I've started w... | common-pile/stackexchange_filtered |
Only writing first row to csv
I am trying to scrape page. I can get it to pull all the data and save it to array objects but cannot get my for loop to iterate over every index of the arrays and output those to CSV. It will write the headers and the first object. Novice to writing code so any help is appreciated.
from ... | common-pile/stackexchange_filtered |
Beta Reduction - Lambda Calculus
We are currently studying Lambda Calculus and have begun Beta Reduction.
Our lecturer is using some notation that was not properly explained to us.
Below is what we have been given.
-reduction:
(λ v . e₁) e₂
⤳
[e₂/v]e₁ where [e₂/v] is an operator that replaces each v wit... | common-pile/stackexchange_filtered |
javascript bundle error after upgrading to expo SDK 38 and expo-cli 3.22.3 and, downgrading node js to 12.18.3
I have recently upgraded to the latest expo SDK version 38 from 36, and I have been having javascript build error. I have upgraded the SDK with expo upgrade and by running npm install to install the dependenci... | common-pile/stackexchange_filtered |
VS2015 - DLL Manifest visibility in Description pane of Object Browser
I am creating a few WPF Custom Controls in VS2015 (C#) which I would like to distribute to a Shared library for other Development Team members. In order for these folks to reference the namespaces in these DLLs the preferred manner would be to use a... | common-pile/stackexchange_filtered |
Is there a balance on being subtle?
I love literature that leaves clues that readers can connect or makes them discuss their own theorys/interpretations.
I'm making my own, but how do I make one. Like, looking deeper in the words per se without the need of just saying it outright.
I fear that the hint/clues would fly p... | common-pile/stackexchange_filtered |
Does it exist function in Python which returns angle from trigonometric function value?
In math package, there are trigonometric functions which return value and takes as a parameter angle (in degrees or radians). For example,
math.tan(math.radians(45))
0.9999999999999999
Is there exist a function in Python which tak... | common-pile/stackexchange_filtered |
A robust search on DBpedia by title
I need to write a SPARQL query to get movies from dbpedia.
I have wrote almost all the query but I have this problem:
I have all of these titles, and they have to give me the same wikipedia resource:
Spider-man
Spiderman
Film: Spiderman
Spiderman 1
Spiderman: the beginning
Target W... | common-pile/stackexchange_filtered |
Find lowest cost of a boat ride, Using Recursion and Memoization
thats my code:
def O_C(n, prices, start=1, memo=None):
if start == n:
return 0
if memo is None:
memo = {}
if start not in memo:
options = []
for i in range(start + 1, n + 1):
options.append(prices(st... | common-pile/stackexchange_filtered |
Using graphql in magento 2.4.7-p2 error on fresh instalation
I have fresh install of magento 2.4.7-p2 using warden. I installed sample data. Now i want to acess graphql using link https://app.demo.test/graphql But i have error.
{
"errors": [
{
"message": "Syntax Error: Unexpected <EOF>",
"locations": [
{
"line": 1,
"co... | common-pile/stackexchange_filtered |
Assembly load in roslyn
I would like to load assembly, who have my class declaration.
I tried:
var compilation = Compilation.Create("HelloTest").AddReferences(MetadataFileReference.CreateAssemblyReference("ClassLibrary6.dll")).AddSyntaxTrees(tree);
So I have execption: "Assembly file not found"
So how Can I add a as... | common-pile/stackexchange_filtered |
TSQL adding "Other" to a GROUP by Percentage Query
How would I construct a query that would classify anything under a certain percentage as Other?
For example with:
Select Country, (COUNT(Country)*100 / (Select COUNT(*) From Logs)) as Perc
FROM Logs
Group by Country
HAVING (COUNT(Country)*100 / (Select COUNT(*) From Lo... | common-pile/stackexchange_filtered |
Subsetting closure to print part of it with cat or print methods
I'd like to create a print method, printing object class, color and 3d surface formula.
However in the object call, this surface formula needs to be as it is now, that's why body and substitute were used.
So my method correctly prints class and color, but... | common-pile/stackexchange_filtered |
Accessing private members of object from outside the class in javascript
I´ve defined a class like this:
function Class1(){
function Func1(){
/* Methods and vars */
};
Funcs = new Array();
this.appendAction = new function(ArgFunc){
Funcs.push(ArgFunc);
};
};
Object1 = new Class1();
functio... | common-pile/stackexchange_filtered |
Exodus & Trust Wallets at the same time. Is it possible? Please help
I used my trust wallet’s 12 word on exodus wallet that I recently downloaded on my laptop and all the funds appears on both wallets now ! (In fact after Exodus wallet started to work the Trust wallet was showing *** for amount of each asset for a few ... | common-pile/stackexchange_filtered |
Reading file only after function is done
I have a function doSmth that creates a file "data.json" by the end. (the file IS created by the end of running the script.) However, when I try to fs.readFileSync it using await and then, it says
Error: ENOENT: no such file or directory, open 'data.json'
here is my code
const ... | common-pile/stackexchange_filtered |
How to set a CGFloat to a UILabel's text property
I have a UILabel called optionsDisplayerBrushSizeLabel who's text property I want to set to a CGFloat: brushSizeVal. I understand that the text property needs to be a string but I don't know how to convert a CGFloat to an NSString.
You can try:
[NSString stringWithFo... | common-pile/stackexchange_filtered |
Build Emacs: cannot find -lpng15
I'm trying to build Emacs 24.4 and this error occured:
/usr/bin/ld: cannot find -lpng15
collect2: error: ld returned 1 exit status
make[1]: *** [temacs] Error 1
make[1]: Leaving directory `/home/nick/apps/emacs-24.4/src'
make: *** [src] Error 2
Can anybody tell me what's wrong, and the... | common-pile/stackexchange_filtered |
Database displaying wrong - Webmatrix
I'm new to this site. I'm working on my first website that contains a database. I decided to follow a lab tutorial found online to create a website in Webmatrix and then creating a web page which displays the data. I finished creating my database but now I'm having trouble displayi... | common-pile/stackexchange_filtered |
PHP native XML parser
Is there a native PHP XML parser which doesn't require any extensions or external dependencies?
I can do the parsing by using simplexml_load_string(), but in case the servers php doesn't have the extension loaded, this code will fail.
simplexml comes enabled by default,so unless you're using a v... | common-pile/stackexchange_filtered |
How create a multi alert monitor in Datadog via Terraform?
I have two "twin applications" that requires monitoring. There is a way to create a multi alert monitor to them via Terraform? It can be done via interface but I need to migrate them to Terraform.
Being more specific, I have this query, in my monitor created us... | common-pile/stackexchange_filtered |
checkboxradio is not a function
I am using jQuery 1.9.1, jQuery mobile 1.3.1 (js & css) in my web app. When I call checkboxradio to uncheck all the checkboxes, its throwing the exception "checkboxradio is not a function"
$("input[type='checkbox']").attr("checked",false).checkboxradio("refresh");
When I try the same as... | common-pile/stackexchange_filtered |
Google drive SDK 2.0 throws error 400 Bad Request
I've been fighting with Google Drive API for Android for more than 50 hours now, and have not come one inch closer. From my understanding, there are 1001 ways to access Google drive (Google Docs API, REST & Google Drive SDK v2). I'm using Google Drive SDK v2. I want wan... | common-pile/stackexchange_filtered |
Explain a snippet of c++ codes
I just started learning "class" and other advanced techniques in C++ in order to understand the following C++ snippet. Please don't down rate the question if you think it's silly because I've searched online before asking!
The code implements an online quantile algorithm called 'GK method... | common-pile/stackexchange_filtered |
laravel test assertJsonValidationErrors false positive on multiple fields
$data = [
'name' => '', // required field
'email' => '' // required field
];
// or $data = [];
$this->postJson('api/users', $data)
->assertStatus(422)
->assertJsonValidationErrors(
['name']
... | common-pile/stackexchange_filtered |
Transformation of Random Variables
Suppose $f_{X}(x) = xe^{-x^2/2}$ for $x>0$ and $Y = \ln X$. Find the density function for $Y$. So we want to find $P(Y \leq y)$. This is the same thing as $P(\ln X \leq y)$ or $P(X \leq e^{y})$. Thus $f_{Y}(y) = f_{X}(e^y)$? Or does $f_{Y}(y) = F_{X}(e^y)$ since $P(X \leq x) = F_{X}(x... | common-pile/stackexchange_filtered |
How to find sub-procedure usage in RPG on IBM i?
If I have a service program with a single module which contains three sub-procedures. Is there a way to programmatically find the usages of the individual sub-procedures within a library/file?
So something like this:
MYLIB/MYSRVPGM <-- My service program object
PROC1... | common-pile/stackexchange_filtered |
Javascript shorthand OR operation
I have feeling this must be a duplicate, but I've been unable to find anything, probably due to different wording, or just because there really is nothing better.
I am generating kind of huge chunk of JS code, which "ORs" object properties with variables, while identifiers don't necess... | common-pile/stackexchange_filtered |
Linking and UIC order in a CMake Qt project
Talking about a Qt 5.3.2 project which is buildt using cmake.
This is a calling order problem between UIC execution and target_link_libraries... unfortunately not in that order.
Below this text you will find
1.) a (still functional) excerpt section of my CMakeLists.txt and
2.... | common-pile/stackexchange_filtered |
How to optimize the hyperparameters of a Deep Gaussian Process?
I am trying to understand an article from NIPS 2017 where Alaa and van der Schaar create a Deep Multitask Gaussian Processes (DMGP) with competing risks. I don't grab what are they trying to optimize.
In their section 4 they present their inference model :... | common-pile/stackexchange_filtered |
Fatal error: Call to a member function fetch() on a non-object - PHP
$username = $_SESSION['username'];
$SQLGetLogs = $odb -> query("SELECT * FROM `logs` WHERE user=$username");
while($getInfo = $SQLGetLogs -> fetch(PDO::FETCH_ASSOC))
{
$user = $getInfo['user'];
$IP = $getInfo['ip'];
}
I have this code here wh... | common-pile/stackexchange_filtered |
iphone: basic understanding of google map api
ok let me admit something that I am a little bit lost in here
Can any body suggest me some startup tutorial to get some idea about google map api.
I tried this url
"http://code.google.com/apis/maps/documentation/javascript/examples/map-geolocaton-iphone.html" as mentioned ... | common-pile/stackexchange_filtered |
How to write a 'field' as link in microsoft word addin using javascript API
I would like to have a javascript (Microsoft Word-API) equivalent code of the following C# code snippet:
Field field = Application.ActiveDocument.Fields.Add(Application.Selection.Range, WdFieldType.wdFieldLink, LinkText);
if (field != null) {... | common-pile/stackexchange_filtered |
Unable to Access DB directory while implementing subtrees in a rails application
I have seperated the models and DB directory to a separate shared repository from the source application repository in order to use this shared repostory as a library/shared directory with other applications.
I have implemented this by usi... | common-pile/stackexchange_filtered |
How to assign domain name to a machine inside LAN with dynamic IP on gateway?
I'm stuck for a while on this question : I got several raspberry pis on my LAN, all with DHCP IP addresses served by MAC address resolution.
I use them over several protocols : SSH, TCP.
My ISP provide dynamic address, but I have a dynamic D... | common-pile/stackexchange_filtered |
jQuery ajax success doesn't work with $(this)?
Ive been playing with the ajax tools in jQuery and am having an issue with using $(this) inside the success of the execution of my ajax. I was wondering if its possible to use $(this) inside of your success as ive seen tutorials use it but when i attempt to use it it doesn... | common-pile/stackexchange_filtered |
Minimizing Covering Arrays
This is the followup question to this previous CodeGolf question about Covering Arrays (the details of what Covering Arrays are and how they are formatted at the NIST website are there).
In this challenge, we won't just be validating covering arrays - we will try to minimize them. Finding min... | common-pile/stackexchange_filtered |
Help with HTACCESS redirection to HTTPS
I have inherited a web app. It's running fine. But it's using HTTP, not HTTPS. This is the .HTACCESS file:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L] </IfModule>
HTACCESS files are not my area of expertise. What ... | common-pile/stackexchange_filtered |
TabBarView prevent navigation
I have the following problem:
I have a page with a TapBarView in Flutter.
If the customer clicks in the TapBar on another Tap I want to show a Dialog first, like "Do you really want to leave?" with yes / no buttons.
If the customer clicks "no" the selected Tap should not change.
Is it poss... | common-pile/stackexchange_filtered |
Stationarity of a time-serie
I have a 2D matrix 60 row and 5000 columns in a .mat file . each row is a registration of 5000 data points (received power values) during 5 seconds.
I want to do the following for each line of the matrix:
I wan to apply a moving average filter to smooth the data. The filter length should sm... | common-pile/stackexchange_filtered |
Removing a class from ALL matched form elements.. cleanest way?
I'm trying to clear a bunch of error styling on form elements whenever top level radio buttons are checked. I'm trying to find:
Alternative methods and structure for improving performance
A chaining method for finding all the form elements so I'm not mak... | common-pile/stackexchange_filtered |
I need resources to fully understand ECS design pattern
so I'm new to the game making world and I come from object oriented preceptive on things but I want learn every thing about entity component system pattern ,how it works ,how to draw the diagrams and finally how to apply it to a 2d Godet game?
if you have any good... | common-pile/stackexchange_filtered |
Best puzzles of 2022 Q4 (October - December)?
This question is part of the best-puzzle award series
What are your nominations for the best puzzles, here on Puzzling.SE, of the fourth quarter ( October / November / December ) 2022?
Suggested guidelines for nomination:
Nominate each individual puzzle in a separate a... | common-pile/stackexchange_filtered |
Console messages appearing in incorrect order when reporting progress with IProgress.Report()
I have noticed a following behaviour. Console output messages appear in an incorrect folder when they are populated by IProgress.
var recounter = new IdRecounter(filePath, new Progress<string>(Console.WriteLine));
... | common-pile/stackexchange_filtered |
How do I remove Bing from my new tabs page on Internet Explorer?
Bing is now in my new tabs page, apparently the result of some hack, which I removed. I deleted the Bing Bar but Bing is still on my new tabs page. How do I remove it?
Now that you've ventilated your frustration, can you provide some details? What kin... | common-pile/stackexchange_filtered |
Second to last item in django-simple-history
I am seeking to make a recent history box displaying the last 3 changes to a model. I know that one can call model.history.most_recent(), but what I need are the 2nd and 3rd most recent items as well. How would one gain access to these models? Further, how would one loop thr... | common-pile/stackexchange_filtered |
Why is it hard for a rich man to go to heaven?
Jesus said that it was easier for a camel to go through the eye of a needle than for a rich man to go to heaven. Why would this be?
Does this mean that it will be hard for e.g. Warren Buffett to go to heaven? Can a rich man go to heaven only by giving away all of his goods... | common-pile/stackexchange_filtered |
Parallel process in chunks giving no performance benefits
I have a very huge list ( huge_list ) . A function (inner_fun) is called for each value of the list. Inner_fun takes around .5 seconds.output of inner_fun is a simple numeric vector of size 3. I am trying to parallelise this approach. After going through many ar... | common-pile/stackexchange_filtered |
*.so library from included *.jar involves UnsatisfiedLinkError
I've wrote android app with native shared library ( libnativeext.so ).
Inside java class in app I load libnativeext.so with
System.loadLibrary("nativeext").
All works great.
Native code compiles, and libnativeext.so places in /libs/armeabi/ folder.
So fina... | common-pile/stackexchange_filtered |
Why is Myisam faster for reads (mostly read apps) and simple queries?
I have been reading some material on Mysql , the Myysql performance blog and some books.
It is said that if you have a mostly read based application you should use Myisam as it is better than Innodb. Also Non join queries are faster for Myisam.
Why... | common-pile/stackexchange_filtered |
Uses of two certificates and one signature
I am currently working on a SSO feature for a client.
Our application, if there is a need, will authenticate using the SSO feature on startup, and abort if it fails.
I have read many explanations and seen many examples online.
The thing that I don't understand at all is the ce... | common-pile/stackexchange_filtered |
Mongoosdb with nodejs
var searchQuery = {}; //or something specific like {name: 'Kitten Name',name: ‘cat’;
var foundKittens = [];
Kitten.find(searchQuery , function (err, kittens) {
if (err)
foundKittens = null
} else {
foundKittens = kittens
}
});
And what's your question?
Searchquery ... | common-pile/stackexchange_filtered |
Ubuntu 20.04 LTS can not wake up from suspend
I have an ASUS UX461U which originally had Windows 10 installed. When it was still installed, I dropped it and it couldn't wake up from sleep anymore. I installed Ubuntu recently and the problem seems to have carried over to its suspend mode with no particular reason.
Thing... | common-pile/stackexchange_filtered |
Can't use self signed certificates any more, because "Enable full trust for root certificates" is gone from settings
As you can see, "Enable full trust for root certificates" is completely missing. What do I do?
This is on iPhone X 11.4 btw.
"In iOS 10.3 and later, when you manually install a profile that contains a ... | common-pile/stackexchange_filtered |
What is the difference between a sequence point and operator precedence?
Consider the classical sequence point example:
i = i++;
The C and C++ standards state that the behavior of the above expression is undefined because the = operator is not associated with a sequence point.
What confuses me is that ++ has a higher... | common-pile/stackexchange_filtered |
Is there a way to replace output in eclipse while a program is still running?
Let me clarify, I am currently finishing up a terminal chess program I'm writing. The way it works now is that after every turn the board is printed again. This looks sloppy though and I would prefer if there were some way for the board to ju... | common-pile/stackexchange_filtered |
Stop the program Java waiting for Gui input from The user
I know there are several questions about this, just i cant see the solution for my problem.
My problem is the same like this: How to stop Java from running the entire code with out waiting for Gui input from The user
The program does not wait for the >details to... | common-pile/stackexchange_filtered |
Inno Setup: Controls disappear (installer freezes) while installation is rolling back
When I confirm installation cancellation of the program, Inno Setup terminates or hides some of common and custom controls (labels, radiobuttons, etc.). Is it possible to keep them visible during WizardForm existence?
I use VCL Inno S... | common-pile/stackexchange_filtered |
Why LESS css does not work on localhost
According to this tutorial my less code should work but it doesn't.
Can you please help me to get my less css to work.
Right now it does not working - Page loads with no applied styles. What am I doing wrong?
The error is:
FileError: 'localhost:1/styles.less' wasn't found (404) i... | common-pile/stackexchange_filtered |
Running Ubuntu 9.10 as a virtual machine on a Windows 7 Host
Running Ubuntu 9.10 as a virtual machine on a Windows 7 Host
Anybody got the steps for this?
Here's a nice tutorial: Installing Ubuntu 9.10 as a Virtual Machine in Windows
It requires VMware and an Ubuntu installation CD/iso
But I would also like to point ou... | common-pile/stackexchange_filtered |
Vue: triggering a method when choosing another step in the stepper
Let us say that we have following steps in the stepper:
Home > Purchase > Comments > Settings
Template:
<template>
<div>
<v-card class="mb-4">
<v-card-text>
<v-select
v-model="steps"
:items="[2, 3, 4, 5, 6]"
... | common-pile/stackexchange_filtered |
Why is my .dll file empty?
I've created a C# library (Tempates > Visual C# > Windows > Class Library) called VlcController, with one class Controller.cs, containing one class, started like so,
namespace Vlc
{
class Controller
{
// Rest of code..
}
}
When I build it t o a .dll, and include in in a se... | common-pile/stackexchange_filtered |
Split large dataframe into small ones Spark
I have a DF that has 200 million lines. I cant group this DF and I have to split this DF in 8 smaller DFs (approx 30 million lines each). I've tried this approach but with no success. Without caching the DF, the count of the splitted DFs does not match the larger DF. If I use... | common-pile/stackexchange_filtered |
Writing User Defined Function to Copy& paste, then sort and finally Sum after a specific column
I am trying to write a custom function which can be called as Cell formula. It basically takes Source range, target range, sorting range and from where data should be summed as input arguments. The function copies from sour... | common-pile/stackexchange_filtered |
Solidity unit testing isn't using the correct sender to call the function under test
pragma solidity 0.6.12;
// This import is automatically injected by Remix
import "remix_tests.sol";
import "remix_accounts.sol";
import "./LottoMock.sol";
... other test cases
contract lottoMultipleEntranceTest {
LottoMock lotto;... | common-pile/stackexchange_filtered |
Is there an a query to retrive same column values as two columns depend on data value
I have a table named comments where a column name status (has 0 for deactive, 1 for an active state) now I need help with select query to seperate two columns counting both 0 & 1 and group by post id column.
I tried two seperate quer... | common-pile/stackexchange_filtered |
For similar index, how do I decide to invest in Canadian or US traded ETF?
What factors must I consider? I know the exchange rate, exchange rate conversion cost, and Level 1 withholding tax.
How do I factor them? What are the formulas? I know that I can't predict the future exchange rate but I just want to know confi... | common-pile/stackexchange_filtered |
Why accepted two same 5-tuple socket when concurrent connect to the server?
server.go
package main
import (
"fmt"
"io"
"io/ioutil"
"log"
"net"
"net/http"
_ "net/http/pprof"
"sync"
"syscall"
)
type ConnSet struct {
data map[int]net.Conn
mutex sync.Mutex
}
func (m *ConnSet)... | common-pile/stackexchange_filtered |
Promise-based functions for dialogflow's action map
Setting up a Google Assistant App via the NodeJS Google Actions SDK is done this way:
It seems that these are synchronous functions (per the documentation given on https://developers.google.com/actions/reference/nodejs/ActionsSdkApp#ActionsSdkApp
const app = new App(... | common-pile/stackexchange_filtered |
Assigning the Outlet from Different Class? (Core Plot)
I have a class which is for bluetooth data receiving and I wonder to send the receiving data to class UIViewController and do the realtime plotting (CorePlot)
class BluetoothManager: NSObject {
func dataReceiving(value: [Int]){
MainController().plot(dataOn... | common-pile/stackexchange_filtered |
PhantomJS 2 returns error 9 "the background request is not currently allowed due to platform policy"
I use PhantomJS 1.9 with rasterise.js on my webapp.
I'm testing PhantomJS 2.0 locally on my Mac (10.10.5)
$cmd = "phantomjs rasterize.js http://example.com/pdf doc.pdf 29.7cm*21cm"
$proc=proc_open($cmd,array(0=>array('p... | common-pile/stackexchange_filtered |
Can't use Graphviz as a library in C++
I'm attempting to build the example "demo.c" from graphviz documentation in Visual Studio 2022.
But when I try to compile the code, I am receiving the following two build errors:
1 unresolved externals, unresolved external symbol Agdirected
Agdirected is used in line 33 from "de... | common-pile/stackexchange_filtered |
Reloading a Flickr request from author
I have my flickr gallery coded, but I want to be able to click on the Author's name and the page will reload just with the images from that author.
Here is my current code
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Ou... | common-pile/stackexchange_filtered |
How do I determine if current server time isn't within a specified range using Python ?
I need to check in Python if the current time on the server isn't in the time range of 22:00PM - 04:00AM.
What is the correct way to write this code ?
Thanks !
It depends. Do you write the server side or the client side?
@YotamSal... | common-pile/stackexchange_filtered |
Logging user actions on ASP.NET site?
What I want is system which is logging methods called by users and their returning values if they have. For example a user logs in and he/she is surfing on my web app. then naturally he/she clicks on somethings and so he/she fires up some event method whatever then my log system mu... | common-pile/stackexchange_filtered |
Renewal or damaged passport which is about to expire - India
Indian Passport
My Passport got damaged few months back and I want to renew it. My passport will expire in 6 months.
Damage Details: Water damage, Photo is smudged 20-30 %, 2 Visas
clearly visible, All text and numbers readable
I have few questions her... | common-pile/stackexchange_filtered |
What is the test of for randomness
How do you tell if a large sequential sample taken from a 0-1 rectangular parent - and presented as random - is truly random?
Big and important subject! You will find basic information, and some references, here.
thanks Andre. And for the one earlier today also. bucky
| common-pile/stackexchange_filtered |
read csv in r, in which one of the column has english sentences and can have "
I have a csv with sep='\t'. When I try to read the csv using the following code, not all the rows are read.
data <- read.csv("raw.txt", sep='\t', header=T)
Most likely the reason being, the data has " (quote) in its text. How to read such a... | common-pile/stackexchange_filtered |
Managing node child processes generated with spawn
I have built a service that takes a screenshot of a URL. I have built this using a Node and Phantom JS.
My Node app works as follows:
A simple app that receives an API requests to indicate which URL to load and take a screenshot of
The app spawns a child Phantom proce... | common-pile/stackexchange_filtered |
python list comprehension: gathering duplicate columns
I have a sorted list of lists that contain duplicate first elements.
Currently I'm iterating over it to get the solution.
[['5th ave', 111, -30.00, 38.00],
['5th ave', 222, -30.00, 33.00],
['6th ave', 2224, -32.00, 34.90]]
I'd like an elegant list comprehension to... | common-pile/stackexchange_filtered |
shared_ptr with given C-like allocation and deallocation functions
I was given an API for some library (nng to be exact)
it has a C-like interface for allocating and deallocating a message object:
int nng_msg_alloc(nng_msg **, size_t);
void nng_msg_free(nng_msg *);
I'm trying to create a C++ interface for the library.... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.