text stringlengths 175 47.7k | meta dict |
|---|---|
Q:
can capacitor increase flow/quantity of water in water pump
can capacitor increase flow/quantity of water in water pump. we are already using capacitor of 25 uf. can water quantity be increased if we use capacitor of 30 uf or any higher which u suggest.
A:
No, the wrong sized capacitor will make things worse.
Th... | {
"pile_set_name": "StackExchange"
} |
Q:
What is wrong with this for loop?
Hi guys I have an array that I'm trying to append to the DOM!
Here is the code:
function inputFeedContent(data){
for(var k=0; k < columns; k++) {
var col = "<div class='col-1'>";
for(var j=0; j < data.sample[k].length; j++) {
col += "<p>"+data.sampl... | {
"pile_set_name": "StackExchange"
} |
Q:
HOWTO: Call Managed C# Interface From Unmanaged C++ On WindowsCE Compact Framework
I have extensive unmanaged Windows CE 5 C++ code that provides a UI that I want to use in a new product by combining it with a large amount of newer business and communications logic written in managed C# on Windows CE 6 and the Com... | {
"pile_set_name": "StackExchange"
} |
Q:
Sum of numbers in array
I am new to programming and I try to solve problems in online-judging system. There is a problem, which looks very interesting and important, but unfortunately I have no idea how to solve that. I would appreciate any hints.
Here is the problem: Given an array as an input. Print 1 if there a... | {
"pile_set_name": "StackExchange"
} |
Q:
What does it mean to start a server in your own computer and access the application through you computer?
I understand that the rails s command starts a server and you can access your Rails application because of this command.
However, don't you usually have to connect to some other server outside of one's compute... | {
"pile_set_name": "StackExchange"
} |
Q:
Weird directory entries in FAT file system
So I'm trying to figure out how the FAT FS works and got confused by the root directory table. I have two files in the partition: test.txt and innit.eh which results in the following table:
The entries starting with 0xE5 are deleted, so I assume these were created due to... | {
"pile_set_name": "StackExchange"
} |
Q:
how prove the following statment for this matrix.
Let $A:=[a_{ij}]_{n×n}$ , $a_{ij}=0$ or $a_{ij}=1$ and $\exists m \in\mathbb N$ such that $A^m=J-I$, where $I$ is the identity matrix and $J=[1]_{n×n}$ (each entry is $1$). How to prove:
$\exists a \in\mathbb N$ such that $n=a^m+1$, and
$m$ is odd.
Thanks in ... | {
"pile_set_name": "StackExchange"
} |
Q:
Convert DOM childs to JSON
var allmenus = $('.dragger-menu').map(function() {
var li = {};
$(this).children('li').each(function() {
switch ($(this).data("menu")) {
case "page":
li.page = {
id: $(this).data("menu-id")
};
break;
case "external-link":
... | {
"pile_set_name": "StackExchange"
} |
Q:
Categories with post from child categories on front page
I am developing my first WordPress site and I am using the Customizr theme. I need to build a front page, that shows the latest posts from 2 categories - News and Events and all their child categories. So my category tree looks like this:
Articles
-News
--Fi... | {
"pile_set_name": "StackExchange"
} |
Q:
Using fromarray from PIL to save an image vector of 4 channels and then re-reading it
I have an image vector v with the (100, 100, 4) dimensions. To save this image vector, I used PIL as follows.
im = Image.fromarray(v)
The image vector is not RGB, As it have 4 channels. I got the following error.
TypeError: Can... | {
"pile_set_name": "StackExchange"
} |
Q:
¿Cómo puedo ingresar un Nodo en sql server desde TreeView? C# y Windows Form
Tengo un TreeView en 3 capas, ya me carga mi TreeView desde sql a visual studio mediante un funcion recursiva, pero no logro hacer que se me guarde en la base de datos, se me guarda en la vista porque logro ver el nodo con su nombre pero ... | {
"pile_set_name": "StackExchange"
} |
Q:
CFZip of certain file type
Is it possible to use cfzip to create a zip folder containing of a certain type. I need to do this to take out .bak files from a folder with different filetypes and insert them into a zip folder.
Thanks
Colin
A:
Steve already pointed you to the CF documentation which has example of de... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I get my CheckBoxList to have three possible states?
How can I get my CheckBoxList to have three possible states ? More precisely, is there a way to have three possible states for each checkbox : checked, unchecked, undefined (in most GUIs this is represented as a full square).
Alternatively, do you recomm... | {
"pile_set_name": "StackExchange"
} |
Q:
Skipping the BufferedReader readLine() method in java
Is there a easy way to skip the readLine() method in java if it takes longer than, say, 2 seconds?
Here's the context in which I'm asking this question:
public void run()
{
boolean looping = true;
while(looping) {
for(int x = 0; x<clientList.siz... | {
"pile_set_name": "StackExchange"
} |
Q:
Dynamically add href on
I have a logout link
<div id="titleInfo">
<div id="signOut">
<a href="" class="signOutLink" >Log Out</a>
</div>
</div>
I need to add navigation destination dynamically.
$(document).ready(function() {
//Navigation Handling
$('.signOutLink').click(functio... | {
"pile_set_name": "StackExchange"
} |
Q:
Best resources to learn origami art immediately?
I saw one of my class fellows creating beautiful origami art work with paper. I was quite amazed, so I would like to learn origami art.
Can you provide resources or recommendations on how to learn origami art immediately?
A:
As with all crafts and arts, you can no... | {
"pile_set_name": "StackExchange"
} |
Q:
Should a dialog close before a mutating change is accepted?
I have a simple settings dialog
Some setting: [ ]
[Update] [Cancel]
When the user clicks on "Update", the app will send a request to the server to update the user's settings.
Should the dialog close before or after this request is acknowledged? I ca... | {
"pile_set_name": "StackExchange"
} |
Q:
Read .txt file into 2D Array
There are a few of these topics out there, but this problem has a slight twist that makes it different.
I'm focused on only half of a larger problem. I'm sure many of you are aware of the magic square problem.
Prompt:
Assume a file with lines and numbers on each line like the squar... | {
"pile_set_name": "StackExchange"
} |
Q:
AWS Beanstalk and Apache VirtualHost SSL custom DocumentRoot
I already configured my .ebextensions directory to install SLL files and configure ssl.conf apache file. Everything is working perfect, instead the DocumentRoot of my ssl.conf that is not overwriting my Elastic Beanstalk default DocumentRoot.
Problem: Wh... | {
"pile_set_name": "StackExchange"
} |
Q:
Efficient and Succinct Vector Transformation of Weekly to Daily hourly Data in R
I've got a working function, but I'm hoping there is a more succinct way of going about this.
I have a dataset of events that are captured with the hour of the week they occurred in. For example, 4 AM on Sunday= 4, 4 AM on Monday = 2... | {
"pile_set_name": "StackExchange"
} |
Q:
How to specify anonymous object as generic parameter?
Let's suppose I have the following task:
var task = _entityManager.UseRepositoryAsync(async (repo) =>
{
IEnumerable<Entity> found = //... Get from repository
return new
{
Data = found.ToList()
};
}
What is the type of task?
Actually,... | {
"pile_set_name": "StackExchange"
} |
Q:
mix the result of 2 queries in one table?
I am new to SQL, can i mix the result of two queries in one table with different attributes ?
Below 3 tables of my database and the result i want to get. Is this possible ?
client
|id|name|adress|
----------------
|1 |a |x |
|2 |b |y |
order
|id|client.id|prod... | {
"pile_set_name": "StackExchange"
} |
Q:
Programming a custom redirect in a Drupal Site
I would like to know what is the best option to setup a Drupal redirect process that will look at the current time of day and then redirect the user to a page based on this information?
Since I have not had to do this before in Drupal, I'm looking for one or two sugge... | {
"pile_set_name": "StackExchange"
} |
Q:
Gulp write file if none exist
How can I make gulp write a file only if there is no existing file.
The bellow solution works for gulp 4.0 which is in alpha.
// for when gulp 4.0 releases
.pipe(gulp.dest(conf.plugScss.dist, {overwrite: false}))
A:
There is no exact equivalent in gulp 3.x, but you can use gulp-chan... | {
"pile_set_name": "StackExchange"
} |
Q:
In Gradle, how do I declare common dependencies in a single place?
In Maven there is a very useful feature when you can define a dependency in the <dependencyManagement> section of the parent POM, and reference that dependency from child modules without specifying the version or scope or whatever.
What are the alt... | {
"pile_set_name": "StackExchange"
} |
Q:
CSS sub-menu overlay issue
I'm trying to set up this 2 column menu that is side by side with each of the columns submenus opening to a different side. The left menu is working correctly, and the submenu buttons are clickable, but the right menu submenu items are located under the left menu elements. I tried using ... | {
"pile_set_name": "StackExchange"
} |
Q:
Run a simple shell command
What is the best WinAPI function to use when you only want to run a simple shell command like hg > test.txt?
A:
To simply run a file, then ShellExecute() and CreateProcess() are the best options.
As you want to redirect output to a file/run a shell command, it complicates things...
Out... | {
"pile_set_name": "StackExchange"
} |
Q:
Is there downtime involved when using Azure vertical scaling?
I have a two websites on a VM with WHM/cPanel and MySql.
I am looking to move this into Azure and use vertical scaling. Visits to the website are usually stable but three or four times a year there is a big increase in traffic which historically has cau... | {
"pile_set_name": "StackExchange"
} |
Q:
No common factors implies functional independence
Let $f$ and $g$ be two polynomials in two real variables $x$ and $y$, both of which vanish at $(0,0)$. Suppose that they have no common factors. Is it true that their Jacobian
$$J(f,g)=\begin{bmatrix}\partial_x f & \partial_y f\\\partial_x g & \partial_y g\end{bmat... | {
"pile_set_name": "StackExchange"
} |
Q:
Chaining .apply() and .bind() surprising behaviour
I need your help to better understand the following behavior.
In the snippet below, we can see that fooBar outputs foo as this and then returns bar 1, 2, 3 as expected - means bar is called with foo as context.
const arguments = [1,2,3];
function bar(...args) ... | {
"pile_set_name": "StackExchange"
} |
Q:
Cannot infer instance using evaluator
I've started to work through http://www.cs.nott.ac.uk/~pszgmh/monads for a intro on functional programming course. What better way to try and understand stuff than to actually try and test the code.
Alas, on the second page I encounter the following:
data Expr = Val Int | Div ... | {
"pile_set_name": "StackExchange"
} |
Q:
Default filename of image dragged from the browser window
In Safari, when I drag an image from the browser window to the desktop the image take its filename from the last part of the URL. For example:
http://www.mysite.com/images/05
the image name is
05.jpeg
Is this a behaviour consistent across all (recent IE8+... | {
"pile_set_name": "StackExchange"
} |
Q:
Who Am I? (A Dead Guy)
You seek him who died at sea,
Try and find who he might be.
A heart that did not wilt in flame,
Writ on Roman stone is his name.
Nothing of him that doth fade,
But doth suffer a sea-change,
Into something rich and strange.
Now with his Adonis he lies,
Who thought not himself worthy of fame,
... | {
"pile_set_name": "StackExchange"
} |
Q:
Storing SHA1 hex value in PostgreSQL
Seemingly simple question, corresponds to another question that was asked with regards to MySQL: How does one store the hex value that results from a SHA1 hash in a PostgreSQL database?
Note: I realize I could use a VARCHAR(40) field, but this isn't efficient, as the data is in... | {
"pile_set_name": "StackExchange"
} |
Q:
Search for multiple strings and print out match
I have a command that prints out this long line, and i'm looking for a way to search for 3 different strings and when one is found it should be printed. The text will always only have one of the 3 options in it.
b"bid: 5.0\r\ncompute_on: cpu\r\nconcent_enabled: true... | {
"pile_set_name": "StackExchange"
} |
Q:
COUNTA and INDIRECT together
Any help would be appreciated. I have seen the indirect formula used a lot but I'm not sure if I can string together all that I am trying to do here.
I have created within the X column of SS Sales a formula that calculates the data range based on install dates. So 1/1/13 to 4/1/13 m... | {
"pile_set_name": "StackExchange"
} |
Q:
Jenkins + SonarQube 4.0 ClassNotFoundException occurs durng XHTML validation check using XML profile
I am getting a ClassNotFoundException while attempting to run a SonarQube 4.0 analysis from Jenkins on a Maven project using Sonar's XML language profile. Within the SonarQube analysis, the exception is occurring w... | {
"pile_set_name": "StackExchange"
} |
Q:
Little bit confusing about free pointer inside function
some weeks ago I learn about proper way how pointers should be allocated and dealocated inside function so given in example linkedList:
typedef struct _node {
void *data;
struct _node *next;
} Node;
typedef struct _linkedList {
Node *head;
No... | {
"pile_set_name": "StackExchange"
} |
Q:
Encrypt web.config file using Data Protection API
I have encrypted part of my web.config file using the Data Protection API.
Now, my question is, what does a hacker need in order to decrypt the web.config file?
Does he require physical access to the machine in order to decrypt it? Or can he decrypt it from a remo... | {
"pile_set_name": "StackExchange"
} |
Q:
Datatable on row-reorder data oldData and newData is undefined
I am currently rewriting my datatable from CodeIgniter (datatables v1.10.12 and RowReorder v1.1.2) to Laravel 6 (datatables v1.10.20 and RowReorder v1.2.6). On the event 'row-reorder' i need to collect data about the changes. Therefore i use this scrip... | {
"pile_set_name": "StackExchange"
} |
Q:
Do I have to use the entire loan amount?
I am 18 and I want to apply for a loan for a used car. I do not plan on paying more than $4000 for the car but the bank has a minimum of $7500 for car loans. If I only used $4000 could I just use the rest to pay it off? I also do not have any credit.
A:
I doubt they will ... | {
"pile_set_name": "StackExchange"
} |
Q:
sapply function(x) where x is subsetted argument
So, I want to generate a new vector from the information in two existing ones (numerical), one which sets the id for the participant, the other indicating the observation number. Each paticipant has been observed different times.
Now, the new vector should should st... | {
"pile_set_name": "StackExchange"
} |
Q:
ifElse statement with state?
Background
I am making an app that receives messages from several devices. Upon receiving a messages an event is fired with the given message:
on( "data", message => {
//doSomething
} );
Challenge
This function receives two types of messages: A and B:
message A has the id of the ... | {
"pile_set_name": "StackExchange"
} |
Q:
DistinctCount extension method
Here I go again. I have been finding a fairly common pattern in business logic code. And that pattern looks like this: int sprocketCount = datastore.GetSprocketOrders(parameters).Distinct().Count(); I decided I wanted to build DistinctCount() (again from "first principles") as Distin... | {
"pile_set_name": "StackExchange"
} |
Q:
proving convergence of this sequence and calculating limit
So i have this sequence:
$a_{n}=1+ \frac{1}{3}\cos1 +\frac{1}{3^2}\cos2+ ... +\frac{1}{3^n}\cos(n) $
I have to prove it is convergent, and then calculate the limit.
I'm not totally sure how to find the limit of this sequence, so i am stuck at the beginning... | {
"pile_set_name": "StackExchange"
} |
Q:
CORS preflight request returning HTTP 401 with windows authentication
I searched a lot on Google and Stack overflow to find a solution for my problem, but nothing worked.
Here is my problem:
I use IIS 7 with a special programming environment called WebDEV that does not allow direct manipulation of OPTIONS HTTP me... | {
"pile_set_name": "StackExchange"
} |
Q:
pre-soaking tea in cold water prior to brewing
My friend recently gave me the advice that tea bag should be soaked in a little bit (barely enough to submerge the tea bag) of cold water for a couple of minutes. Then hot water should be added to the cold to brew it.
The idea is that scalding hot water is hot enough... | {
"pile_set_name": "StackExchange"
} |
Q:
array not getting values
I am running a script that changes values in a formula with a message box.
var searchtext = Browser.inputBox("Enter search text");
var replacetext = Browser.inputBox("Enter replace text");
var form = ss1.getRange("D3");
var formula = form.getFormula();
var updated =formula;
updated.indexO... | {
"pile_set_name": "StackExchange"
} |
Q:
"It was him" auf Deutsch
In English, we could answer the question "Who ate the cake?" with
It was him.
I don't know the reason why we use the accusative "him", even though the person is the subject of eating the cake, not the object.
In German, is it the same?
Wer aß den Kuchen? Es war ihn.
A:
German is diff... | {
"pile_set_name": "StackExchange"
} |
Q:
QT 5.7 QML - Reference Error: Class is not defined
I get the "qrc:/main_left.qml:23: ReferenceError: CppClass is not defined" when I run the below code. This code tries to change the position of a rectangle in a window.
Main.cpp
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext... | {
"pile_set_name": "StackExchange"
} |
Q:
Help required to get full code covered in test class
I am having the trigger and handler class in the quote Line Item object it's work like, the I am having two same named custom field in the OpportunityLineItem and Quote Line item respectively.so that field is to be updated by the condition of when issyncing of... | {
"pile_set_name": "StackExchange"
} |
Q:
Python search imap email for a string
New to python, having some trouble getting past this.
Am getting back emails from gmail via imap (with starter code from https://yuji.wordpress.com/2011/06/22/python-imaplib-imap-example-with-gmail/) and want to search a specific email (which I am able to fetch) for a specific... | {
"pile_set_name": "StackExchange"
} |
Q:
How to smoothly rasterize PDF using the API?
I'd like to rasterize a PDF source (in this case to PNG, 500x500 pixels) using these golang bindings for ImageMagick6. On the CLI, I can do this using
convert -density 5000 -define psd:fit-page=500x test.pdf -resize 500x test.png
which results in a smoothly rendered im... | {
"pile_set_name": "StackExchange"
} |
Q:
O que é mais rápido para ser lido e editado, um banco de dados ou um .txt?
Seria para armazenar e reescrever apenas 1 dígito INT, apagando um e escrevendo outro, na condição de que quando chegar a 5, voltar pro 1, e ir fazendo esse loop toda vez que alguém acessar.
Sempre que alguém acessar a página, o valor seria... | {
"pile_set_name": "StackExchange"
} |
Q:
Best way to put user input into generated javascript?
I need for someone to be able to put some text into a page and then this gets sent to the server, saved in the database, and else where this text is put into a javascript variable.
Basically like this:
Write("var myVar=\""+MyData+"\";");
What is the best way o... | {
"pile_set_name": "StackExchange"
} |
Q:
A strange, but probably simple, shell_exec issue
If I run this command on the command line (on my Mac OS X):
echo -n "hello" > foo-cmd.txt
I get the expected result, namely a file foo-cmd.txt containing "hello" without any newline at the end.
However, if I run this PHP code:
<?php
shell_exec("echo -n \"hello\" > ... | {
"pile_set_name": "StackExchange"
} |
Q:
Работа с базой данных в flask-security
Изучаю flask-security. В Quickstart есть такой вот код:
class UserRoles(db.Model):
# Because peewee does not come with built-in many-to-many
# relationships, we need this intermediary class to link
# user to roles.
user = ForeignKeyField(User, related_name='ro... | {
"pile_set_name": "StackExchange"
} |
Q:
Windows 7 running Virtualbox 4.1.12 with Ubuntu 10.04 LTS guest but no full screen
After a recent windows update (though may not be the issue), I am unable to run Ubuntu in the virtualbox with full screen mode. I can no longer stretch the window to any resolution. It is locked at 1024x768 in the guest window (Ub... | {
"pile_set_name": "StackExchange"
} |
Q:
String escaping with twig?
QUESTION:
How do you append the following twig variable at the end of the first parameter of the anchor function?
{{ anchor('welcome/play/', 'Play', {'class': 'btn btn-primary'})|raw }}
I have tried variations of: 'welcome/play/{{t.CompetitionID}}' etc which doesnt work.
A:
You could ... | {
"pile_set_name": "StackExchange"
} |
Q:
Need 3 outcomes from IF statement
I have a list of names in excel which have a random number next to them in brackets, the numbers are 1 to 3 digits long.
I was using the formula
=IF(LEFT(RIGHT(B8,4),1)=("("),RIGHT(B8,3),RIGHT(B8,4))
to get rid of the first bracket and then
=IF(RIGHT(LEFT(AX8,3),1)=")",LEFT(A... | {
"pile_set_name": "StackExchange"
} |
Q:
Transmitting live video over long distances with ethernet?
I'm having trouble thinking of the best way to transmit live video using a pi zero w and a camera module through a wired ethernet connection of around 100ft. (model 3 could also be used) I want to overlay a couple sensor readouts like temperature and humid... | {
"pile_set_name": "StackExchange"
} |
Q:
How do we test a `Range` type in Elixir
How do we test for a Range type? What would be the equivalent of is_range?
Erlang/OTP 21 [erts-10.1] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1]
Interactive Elixir (1.7.3) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> a = 1..10
1..10
iex(2)> is_list a
false
... | {
"pile_set_name": "StackExchange"
} |
Q:
Use route as url in config with Symfony
I use CKEditor and want to use uploadimage plugin. I need to specify uploadUrl in config.yml. How can I put here a route instead of direct url?
ivory_ck_editor:
default_config: my_config
configs:
my_config:
extraPlugins: "lineutils,widget,notifica... | {
"pile_set_name": "StackExchange"
} |
Q:
Best Algorithm to encrypt password
I want to encrypt the password & store the encrypted value in MySQL database. What algorithm is the best way to go for encryption in Java?
For each user, I've userid, useremail field as well & for all these users, I need algo to encrypt password.
Note: I should be able to decrypt... | {
"pile_set_name": "StackExchange"
} |
Q:
Shrinking a large transaction log on a full drive
Someone fired off an update statement as part of some maintenance which did a cross join update on two tables with 200,000 records in each. That's 40 trillion statements, which would explain part of how the log grew to 200GB. I also did not have the log file capp... | {
"pile_set_name": "StackExchange"
} |
Q:
Passing the text to function on Click
Please see the following code:
function liReplace(txt) {
$('#srch > a').text(txt);
}
<ul class="dropdown">
<li id='srch'>
<a href="#">All Categories</a>
<ul class="sub_menu">
<li>
<a href="#">Gadgets</a>
<ul>... | {
"pile_set_name": "StackExchange"
} |
Q:
Converting .m3u playlists from Windows for Android media players using Notepad++
Winamp saves playlists that are saved in same folder as the music as relative paths for Windows, but copying and pasting into Android doesn't work unless I convert it to Linux relative paths. So
#EXTM3U
#EXTINF:262,Corona - Rhythm... | {
"pile_set_name": "StackExchange"
} |
Q:
Project rotation matrix to closest rotation matrix on a specific plain
I have a rotation matrix created by some values of roll, pitch, yaw and I'm looking for the value yaw2 s.t the rotation matrix created by [0, 0, yaw2] is closest to the roration matrix created by [roll, pitch, yaw].
I think It can be rephrased ... | {
"pile_set_name": "StackExchange"
} |
Q:
Manually specify constraints in Xcode 4 interfacebuilder/storyboard
This seems like a really basic question, but I can't find the answer to it.
When I add elements to a scene in my storyboard, or drag them around or resize them, Xcode automatically adds and removes constraints to describe their sizing and position... | {
"pile_set_name": "StackExchange"
} |
Q:
list files with first char within specific range
I need to list all files that have first char within a specific range.
If I use Powershell I can do this with
gci [a-c]*
How can I do it from command line?
A:
You may use the following command:
dir /b | findstr /R "^[a-c].*"
| {
"pile_set_name": "StackExchange"
} |
Q:
Z values way too large compared to x and y in reconstruction
I reconstruct x,y,z from disparity using triangulation formula .My problem is that x,y, and z values are in very different orders .For eg order of x is like 0.001 and similar for y but z is in the order of 10 .Because of this I see a straight line inst... | {
"pile_set_name": "StackExchange"
} |
Q:
async_network_io issues with BIDS
This is related to my previous question drastically different runtimes in BIDS and the SSRS Web Portal.
I am struggling with refreshing some reports in BIDS because they run forever. I have now noticed that when I refresh the report in BIDS the query will experience ASYNC_NETWORK... | {
"pile_set_name": "StackExchange"
} |
Q:
What are the differences between the spirit of God and spirit of Man?
First, I thought that the spirit Christians get from God is the same as the spirit of God. Recently, I heard a sermon that asserted they are different, but gave no more details. Which verses describe this in the Bible?
When we get the Holy Spir... | {
"pile_set_name": "StackExchange"
} |
Q:
What is the right xpath/css to use to get each paragraph text in a single string?
First I create a HtmlResponse And read it using scrapy:
from scrapy.http import HtmlResponse
from scrapy.selector import Selector
body = """
<div class="a">
<p>
text1<br> text2
</p>
</div>
<div class="a">
<p>
... | {
"pile_set_name": "StackExchange"
} |
Q:
call functions on events NodeJs
actually i'm trying to call the function demandConnexion after an event, but it is working for me , it telles me that "this.demandeConnexion is not a function" . how can i get it to work ? help , this is the code :
Serveur.prototype.demandConnexion = function(idZEP) {
if (th... | {
"pile_set_name": "StackExchange"
} |
Q:
Tab-completion of shell patterns
On my Debian servers I'm used to hitting Tab to "preview" the expansion of shell patterns:
$ cp *some*<Tab>
something somewhat have-some-cake
$ cp *some*_
When the pattern expands to one entry, Tab replaces the pattern with the actual entry; otherwise it shows a list of matching... | {
"pile_set_name": "StackExchange"
} |
Q:
Connecting to Google via OAuth 2, "invalid_request" when requesting an access token
There are several questions along these lines already on SE, but I've read everything I can find that seems relevant, and I'm still not quite there.
I got an authentication code, so now I need to exchange it for an access token and... | {
"pile_set_name": "StackExchange"
} |
Q:
How to avoid or report targeting
I have heard many reports of a user being watched by a specific person, and that person constantly downvoting all posts by that user, and adding comments to put them down, such as "How do you not know this" or "Have you ever used a computer before?", as well as other such verbiage.... | {
"pile_set_name": "StackExchange"
} |
Q:
Oracle SQL How can I separate values from a column in two different columns?
I want to code a query to return description of some concepts and their respective price but I want to make two different columns to categorise two diferentes items categories of values. Is it possible?
SELECT b.descripcion CONCEPTO, a.ca... | {
"pile_set_name": "StackExchange"
} |
Q:
how to add UILabel within a UILabel?
This question looks very usual.. but I had a problem yesterday, I have added a label in xib and created outlet for it, I want to have multiple lines, buttons inside that label, So I have decided to add new sub labels inside it...
UILabel *label;
label = [[UILabel alloc] initWit... | {
"pile_set_name": "StackExchange"
} |
Q:
pyftpdlib slow .read on file blocks entire mainloop
Helllo,
I am using a custom AbstractFS on pyftpdlib that maps files on a HTTP server to FTP.
This files are returned by my implementation of open (of AbstractFS) which returns a httplib.HTTPResponse wrapped by the following class:
class HTTPConnWrapper:
def _... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I duplicate the terminal/prompt in a file like using history + sink
I know the sink command can divert the stdout to a file, but basically if I do this in the command window:
library(data.table)
a = 1;
b = 2;
a
[1] 1
Only the last line [1] 1will be printed in the file.
Is there a way my whole command wind... | {
"pile_set_name": "StackExchange"
} |
Q:
Estimating the $L^1$ norm of the Dirichlet kernel
Suppose $D_N(x)=\frac{\cos\frac{x}{2}-\cos(N+\frac{1}{2})x}{\sin\frac{x}{2}}$. How to prove the inequality below$$\int_{-\pi}^\pi|D_N(x)|\text{d}x\leq c\log N$$ for some constant $c>0$ ?
A:
By recalling that
$$D_n(x)=\sum_{k=-n}^n
e^{ikx}=1+2\sum_{k=1}^n\cos(kx)=... | {
"pile_set_name": "StackExchange"
} |
Q:
Magento 2 - How to show tax and shipping costs in mini-cart pop up
How to show tax and shipping costs in mini cart popup in Magento 2?
A:
To show additional stuff or costs in the minicart (like taxes or shipping costs), you need to understand where the data in the minicart comes from.
The Customer Data Section P... | {
"pile_set_name": "StackExchange"
} |
Q:
Drywall taping/floating steps if finish will be skim coating
I am finishing up a master bath remodel which involved removing some walls, and creating new walls. I have:
Hung new sheetrock for the new walls
Patched the ceiling where the old walls were with drywall (~4.5" wide strips)
Patched some gaps with hot mu... | {
"pile_set_name": "StackExchange"
} |
Q:
How to get the value from JSON in JS
I'm trying to get the "formatted_address" value from this
JSON file. I'm new to this and found the documentation quite confusing. The code I have now is the following where the variable "location" is the url generated like the one above.
$.getJSON(location, function( data ){
... | {
"pile_set_name": "StackExchange"
} |
Q:
How to append the string variables using stringWithFormat method in Objective-C
I want to append the string into single varilable using stringWithFormat.I knew it in using stringByAppendingString. Please help me to append using stringWithFormat for the below code.
NSString* curl = @"https://invoices?ticket=";
curl... | {
"pile_set_name": "StackExchange"
} |
Q:
Recover files from a failed RAID 1 - How do I rsync if source file size is bigger
I have 2 drives that were on a mirrored RAID. The server crashed (failed array) and there are no backups. The client was setup with Carbonite, but failed to renew their plan, which expired this past July. Now they're stuck with a dow... | {
"pile_set_name": "StackExchange"
} |
Q:
Why canvas is not working locally but working on TRYIT
I Have build some code related to canvas but code is working on TRYIT but code is not working locally when i have copied all code to file and tried to run it .
This is what this code is doing , it takes an image and set the width and height of canvas with resp... | {
"pile_set_name": "StackExchange"
} |
Q:
RequiredValidator is not working in asp.net
I want to validate some text box and dropdownlist control not to empty, like below highlight part:
and my GridView control code looks like below:
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="EMPLOYEEID"
DataSourceID="SqlD... | {
"pile_set_name": "StackExchange"
} |
Q:
Java 6: how to pass multiple parameters to APT
I have a Java Annotation Processor that extends from AbstractProcessor.
I have two supported options, addResDir and verbose, and I am trying to set them like this:
-AaddResDir=src/main/webapp -Averbose=true
I have also tried this:
-AaddResDir=src/main/webapp,verbose=... | {
"pile_set_name": "StackExchange"
} |
Q:
Generating R ggplot line graph with color/type conditional on different variables
I'm struggling to get the exact output needed for a ggplot line graph. As an example, see the code below. Overall, I have two conditions (A/B), and two treatments (C/D). So four total series, but in a factorial way. The lines can be ... | {
"pile_set_name": "StackExchange"
} |
Q:
Ajax request returns empty response using ServiceStack
total n00b when it comes to restful stuff, ajax, and so forth so please be gentle.
I have an issue whereby I have taken the example ServiceStack "Todo" service, and am trying to develop a mobile client using this service as a data source. I'm trying to learn h... | {
"pile_set_name": "StackExchange"
} |
Q:
Can you die when your plugged-in mobile phone falls in the bathtub?
I have questions related to the safety of using mobile devices in the bathtub. I always thought the danger in dropping it or getting water on it is mostly to the device, not to the person, but a recent accident made me doubt that.
Is it possible ... | {
"pile_set_name": "StackExchange"
} |
Q:
необходимо создать прозрачное окно или область для вывода информации
Имеется игра, которая запущена в оконном режиме на весь экран, по верх нее можно выводить какую то информацию, как это делают некоторые программы.
Хотелось бы создать подобную область и прозрачную и чтобы нажатия мыши не на этом окне останавливал... | {
"pile_set_name": "StackExchange"
} |
Q:
“管你是[surname] + [name]还是[same surname] + [different name]”
There's a set phrase that goes something like:
(我)管你张三还是李四
I've seen variations on it like:
我管你张静还是李静呢
I'm trying to remember one where the surname stays the same though, something like:
管你是张飞还是张家辉
What common variants on this phrase exist where the ... | {
"pile_set_name": "StackExchange"
} |
Q:
footable , how to initialize the filter of a table just after the loading of the page
I use the excellent plugin "footable" to order and filter my tables.
But in some cases, my page must be initialized with a certain filter. For exemple, mu url is :
myurl/mypage/19
On the server side I get the '19' and send it t... | {
"pile_set_name": "StackExchange"
} |
Q:
C# GroupBy 30 minute interval returning incorrect result
I am using Highcharts to give visual displays of information. As of right now, I am grouping all of the database table records by the hour:
var lstGroupSummariesByHour =
lstAllSummaries.Where(x => x.DateTimeProperty.Year == year && !x.deleted)
.G... | {
"pile_set_name": "StackExchange"
} |
Q:
Write file with specific permissions in Python
I'm trying to create a file that is only user-readable and -writable (0600).
Is the only way to do so by using os.open() as follows?
import os
fd = os.open('/path/to/file', os.O_WRONLY, 0o600)
myFileObject = os.fdopen(fd)
myFileObject.write(...)
myFileObject.close()
... | {
"pile_set_name": "StackExchange"
} |
Q:
Global variable undefined in nested loop
I am trying to do a odd/even number generator and printing the percentage of even numbers WITHOUT using if-then-else statement. However my global variable could not be read in my nested loop, any advise? Thanks!
I have tried this in other languages and it work, however it d... | {
"pile_set_name": "StackExchange"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.