text stringlengths 181 35.5k | meta dict |
|---|---|
Q:
tooltip background color change and font styles of tooltip text in primefaces
I am trying to see some features availability in prime-faces.....
I wanted to know if there are any font styles and background color change functionality available in tool-tip in prime-faces...
Please let me know.
here is the sample code... | {
"pile_set_name": "StackExchange"
} |
Q:
Convert from and to messagepack
So I'm trying to get the string representation of a JSON message in Golang. I just want to receive the messagepack encoded JSON, modify some values and send it back.
I haven't found an easy way to do it. Most of the times, I can't know in advance what is the structure of the JSON (a... | {
"pile_set_name": "StackExchange"
} |
Q:
Json Data in int format
I am parsing json and the url is returning an integer value. (e.g. 278)
-(void) connectionDidFinishLoading: (NSURLConnection *) connection{
[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
NSString *responseString = [[NSString alloc] initWithData:jsonData encoding:NSU... | {
"pile_set_name": "StackExchange"
} |
Q:
how to keep the first string per line
I have a data like this
df1 <- structure(list(V1 = structure(c(1L, 2L, 3L, 5L, 4L), .Label = c("A0A061ACH4;Q95Q10;Q9U1W6",
"A0A061ACL3;Q965I6;O76618", "A0A061ACR1;Q2XN02;F5GUA3;Q22498",
"A0A061AL01", "H2FLH3;H2FLH2;A0A061ACT3;A0A061AE24;Q23551-2;Q23551;Q23551-4;Q23551-3... | {
"pile_set_name": "StackExchange"
} |
Q:
va_arg returns only parts of my integer
I am trying to write my own va_args functions for the first time and I am having a problem that large integers (still within the range of int) are getting truncated to 3 digits, and out of order!
Here is the implementation
void __sprintf(char * _string, ...)
{
int i = a_s... | {
"pile_set_name": "StackExchange"
} |
Q:
I am not the first
I am not the first.
To some I am the second.
To others I am the third.
But I'm never the fourth.
I am the first.
I'm no help in "a way out."
But I'm first in these words: "I", "don't", "know".
I can't be left alone.
If I'm alone, I will offend someone.
You can't make peace if you cut me... | {
"pile_set_name": "StackExchange"
} |
Q:
Issue while validating with PSR-2 on Prestashop Validator
While validating my new module on Prestashop Validator, I am getting the following error in my main controller file (php file).
End of line character is invalid; expected "\n" but found "\r\n"
I am getting the error on the first line that only has the sta... | {
"pile_set_name": "StackExchange"
} |
Q:
multiselect table row checkbox using jquery
I have a VF page with a datatable that is populated from a custom search. The datatable has a checkbox column so that the rows can be selected and processed.
I'm trying to implement a way for the user to select multiple rows using either shift+click, ctrl+click, or ctrl+... | {
"pile_set_name": "StackExchange"
} |
Q:
Line bundles and Cyclic Covers of Curves
Let $X \to Y$ be a cyclic etale cover of smooth projective geometrically connected curves over some field $k$. Then the map is classified by an element of the cohomology group $H^1_{et}(Y_{k_s}, \mu_n)$; in other words the data of the covering is equivalent to giving a line... | {
"pile_set_name": "StackExchange"
} |
Q:
What's correct way to use default constructor for XmlSerializer?
Could you help me to find an error please?
I'm trying to use XmlSerialize:
public static void ProcessLines(List<string> allLines, out pfm pfm)
{
...
pfm = newPfm;
pfm forseril = new pfm("");
XmlSerializer mySeriali... | {
"pile_set_name": "StackExchange"
} |
Q:
How to solve $n^2-n<\lfloor\frac{n^2}{4}\rfloor$ ,$n \in \mathbb{N}$?
How to solve this inequality?
$$n^2-n<\lfloor\frac{n^2}{4}\rfloor \\ n \in \mathbb{N}$$
I can solve normal inequalities but this includes floor function with which I am not familiar. and because of that I could do nothing from the beginning.
A:... | {
"pile_set_name": "StackExchange"
} |
Q:
animateKeyframes with repeat and delay does not work as expected
I'm creating a simple left to right animation for a label using key frames but when the animation repeats, the delay is ignored.
The first time it executes, the delay of 3 seconds has an effect, but when the animation repeats, the delay is ignored. T... | {
"pile_set_name": "StackExchange"
} |
Q:
Problem adding image to UIView
I'm making an app with a piano and each key will be it's own subclass.
I tried making the keys a subclass of UIButton, but after having some problems getting the methods to be called, I checked online and found out that others were also having problems subclassing UIButtons.
So then ... | {
"pile_set_name": "StackExchange"
} |
Q:
Downloadable font on firefox: bad URI or cross-site access not allowed
I'm a webmaster at http://www.beperk.com (I'm giving you the URL so you are able to check the problem) and I'm having lots of problems using @font-face in CSS.
I want to use the foundicons from zurb dot com so I hosted them at Amazon S3.
I set ... | {
"pile_set_name": "StackExchange"
} |
Q:
Use javascript/jquery to append URL?
Is it possible to use javascript/jquery to append something on the end of a url when a link is clicked?
For example, I have 5 tabs on a page (product.php), when I click a tab, then that tab opens. What I want to do is have the URL change to product.php#tab-3 (or whichever numb... | {
"pile_set_name": "StackExchange"
} |
Q:
Что я делаю не так?
Есть вот такая функция -
function getauth(account_id,session,callback){
make_key(account_id,function(err,result){
if(result!=null){
session.auth_key=result.toString('hex');
session.account_id=account_id;
findclient({name:account_id},function(err,result){
... | {
"pile_set_name": "StackExchange"
} |
Q:
OpenCV 3.0.0 with Xcode 6.3
I'm trying to compile a simple opencv code using Xcode but I'm getting a compilation error.
The opencv version is 3.0.0 and Xcode version is 6.3 (OS X 10.10.3)
In Xcode, Apple LLVM 6.1 Language C++ settings are:
c++ Language Dialect : C++11[-std=c++11]
c++ Standard Library : libc++
t... | {
"pile_set_name": "StackExchange"
} |
Q:
Call the JFrame from another class
i have simple JFRAME (create by Netbeans) and i want to call frame.setState(Frame.NORMAL) from another class. How to do call?
public class Myclass{
public void Frame_normal{
...?
???frame.setState(Frame.NORMAL);
}
}
A:
Basicaly you create an attribut... | {
"pile_set_name": "StackExchange"
} |
Q:
What is the cardinality of the set of all higher order functions mapping real functions to real functions?
What is the cardinality of the set of all higher order functions mapping real functions to real functions?
To be specific, this set includes all higher order functions with the type signature: $(\mathbb{R} \r... | {
"pile_set_name": "StackExchange"
} |
Q:
How to add data into List in ASP.NET MVC 4.0?
I am new in MVC.
I have a class in Models like below.
public class UserInfo
{
public string Name{get;set;}
public string Surname{get;set;}
}
And I have a controller like this.
public class HomeController : Controller
{
//
// GET: /Home/
List<U... | {
"pile_set_name": "StackExchange"
} |
Q:
Retrofit: How to get request properties in requestInterceptor
I need to apply an Authorization header in a request interceptor, but I need to sign the request method, URI, and date.
Inside the request interceptor I get a RequestInterceptor.RequestFacade, which only has "setter methods"
Is there any way I can get r... | {
"pile_set_name": "StackExchange"
} |
Q:
Recursive mergeSort to Iterative in c++ using deque
I'm trying to do the iterative version of this multiple recursive mergesort:
I only need to make iterable this sort function:
template<class T> deque<T> mergesort<T>::sort(deque<T> &right){
int size = right.size();
if (size <= 1){
return right;
}
int... | {
"pile_set_name": "StackExchange"
} |
Q:
What is the difference between Jhana and Samadhi?
In Sutta pitaka we find two Suttas namely Jhana sutta and Samadhi sutta.
What is the difference?
http://www.accesstoinsight.org/tipitaka/an/an04/an04.041.than.html
http://www.accesstoinsight.org/tipitaka/an/an09/an09.036.than.html
A:
Samadhi is a general term fo... | {
"pile_set_name": "StackExchange"
} |
Q:
Recieved String to useable variable in Arduino
I'm trying to use data sent via Bluetooth from a mobile app to the Arduino. There will be 2 strings received dependent on the function required.
First function: When the string "ledon" or "ledoff" received turn on or turn off an led.
Second Function: from the app I ge... | {
"pile_set_name": "StackExchange"
} |
Q:
VimL: Checking if function exists
right now I'm cleaning up my .vimrc file to make sure it's compatible on most systems.
In my statusline I use a function that another plugin sets, the GitBranchInfoString() function introduced by this plugin.
What I wanna do is check if this function is set, and only then add it t... | {
"pile_set_name": "StackExchange"
} |
Q:
Direct3d 9 z-buffer fails drastically
I have just completed my custom mesh class and my engine is very basic right now, but now I am facing this strange issue. I have posted the pictures bellow, it seems like z-buffer is not working properly. I am using the following for projection matrix
D3DXMatrixPerspectiveFovL... | {
"pile_set_name": "StackExchange"
} |
Q:
Why can't I get netcat talking to my Rails server?
I have a Thin server running locally, serving a Rails app. Following an example in the netcat man page, I'm trying to use nc to talk to my server:
echo -n "GET / HTTP/1.1\r\n\r\n" | nc 0.0.0.0 3000
But I get a 400 response:
HTTP/1.1 400 Bad Request
Content-Type: ... | {
"pile_set_name": "StackExchange"
} |
Q:
jQuery code works in jsFiddle, but not on my site
I've written a script for a login that creates a username by concatenating first + last name (on blur), removing whitespaces and removing special characters.
Everything works fine in jsFiddle, but not on my site - I get 3 times error '$str' is not defined - so my g... | {
"pile_set_name": "StackExchange"
} |
Q:
Integer number truncated when writing to text file in PHP?
I wrote a download counter:
$hit_count = @file_get_contents('download.txt');
$hit_count++;
@file_put_contents('download.txt', $hit_count);
header('Location: file/xxx.zip');
As simple as that. The problem is the stats number is truncated to 4 digits thus... | {
"pile_set_name": "StackExchange"
} |
Q:
Proving the set of all finite or countable unions of intervals is not a Sigma Algebra
I would like to extend on a question I asked here
Consider a set $J$ of all (open, closed, half-open, singleton, empty) intervals on $[0,1]$
Now consider further a set $B$ which is the set of all finite or countable unions of el... | {
"pile_set_name": "StackExchange"
} |
Q:
How to save dynamic select list value into config table in Drupal 8?
I wanted to show list of fields per content type in admin config form. After saving the form, selected list value should get save into config table.
public function buildForm(array $form, FormStateInterface $form_state) {
foreach (node_type_ge... | {
"pile_set_name": "StackExchange"
} |
Q:
Why direct communication between fragments is not recommended?
while learning android fragments on developer.android.com it is specified that direct communication between two fragment is not recommended. I want to know what will be the consequences and the cases in which communication between two Fragments would f... | {
"pile_set_name": "StackExchange"
} |
Q:
SQL Multi line query in C# using SQLCommand
I want to load specific data from different tables in SQL Server using C# But i got an error Incorrect syntax near the keyword 'as'. Incorrect syntax near 'EP'. Incorrect syntax near the keyword 'AND'. The code run well as i have put a messageBox to show the query, a m... | {
"pile_set_name": "StackExchange"
} |
Q:
Processing ForeignSecurityPrincipal
DomainA and DomainB trust each other. Some DomainB users are members of DomainA local domain groups. How can I get ForeignSecurityPrincipal in PowerShell and get list of its groups?
A:
That was surprisingly simple:
Get-ADObject -Filter {ObjectClass -eq "foreignSecurityPri... | {
"pile_set_name": "StackExchange"
} |
Q:
Django Order Ascending & Descending
Let say, I want to order the Threads by total Votes, Views and Comments. But they order models is instanced from Thread model.
here is my models.py
class Thread(models.Model):
....
rating = RatingField(can_change_vote=True)
def get_comments(self):
return Co... | {
"pile_set_name": "StackExchange"
} |
Q:
Git clone remote repo into another remote repo
Cloning git repo from remote server to local computer is rather easily done the standard way, but I need to clone a remote repo into another remote repo, is it possible?
P.S. I come up with this problem because I just can't fork my own project on GitHub to create a ch... | {
"pile_set_name": "StackExchange"
} |
Q:
JSpinner Arrows in odd positioning when used with JLabel
Hello So i have created a JFrame with a JSpinner inside (as you can see in the picture). Right now, the BorderLabel is showing in the Jspinner (as it should) but the arrows on the JSpinner are there as a part of the entire thing instead of just the JSpinner ... | {
"pile_set_name": "StackExchange"
} |
Q:
Why exactly did Cartman let Kyle in on his voting scandal in Obama Wins?
South Park season 16 finale episode "Obama Wins" starts off with Cartman calling Kyle over to look at the boxes of stolen ballots- to which of course, Kyle vows to not let Cartman get away with it.
Cartman had planned to get Kyle to try an... | {
"pile_set_name": "StackExchange"
} |
Q:
static variable thread_local with open_MP
I tried to use open_MP and use omp prallel for, but I ran into a problem.
I use a lot of different static class members like
class A {
public:
static std::vector<double> v;
}
which I initialize with an empty vector in my .cpp file.
After some time I make some calcul... | {
"pile_set_name": "StackExchange"
} |
Q:
How to work with null pointers in a std::vector
Say I have a vector of null terminates strings some of which may be null pointers. I don't know even if this is legal. It is a learning exercise. Example code
std::vector<char*> c_strings1;
char* p1 = "Stack Over Flow";
c_strings1.push_back(p1);
p1 = NULL; // I am pu... | {
"pile_set_name": "StackExchange"
} |
Q:
UNIQUE Column with multiple NULL values in visual studio
I want to have a UNIQUE constraint on my Barcode column which may contain null values.
How do I create the constraint that allows multiple null values?
I use a local Database.sdf file (Microsoft SQL Server Compact 4.0 with the .NET Framework Data Provider fo... | {
"pile_set_name": "StackExchange"
} |
Q:
What is LINQ hosting and should I care?
In terms of ISPs and webhosting, what is LINQ hosting? What does it give me as a developer or a site admin?
I've looked around and all the sites I found fail to explain what LINQ hosting is. They explain what LINQ is but fall short on the hosting part.
What are you using LIN... | {
"pile_set_name": "StackExchange"
} |
Q:
Changing background color of a bootstrap panel
I am trying to change the background color of a panel using javascript to emulate "selected" functionality.
So, on click I get hold of the div by ID and change its background color.
It works fine but only momentarily and again resets the background color, and I have... | {
"pile_set_name": "StackExchange"
} |
Q:
Css transition on element that changes position on mousehover
I have a Box that elevates when the user has his mouse hovering this box, and I do this with :
.box:hover {
position: relative;
top: -10px;
}
I would like to know if it possible to make a smooth transition with the transition property ?... | {
"pile_set_name": "StackExchange"
} |
Q:
Why isnt node checked for nil value in start when transplanting binary tree
Whilst I was reading CLRS I came across this:
When TRANSPLANT replaces the subtree rooted at node u with the subtree rooted at node v, node u’s parent becomes node v’s parent, and u’s parent ends up having v as its appropriate child.
TRA... | {
"pile_set_name": "StackExchange"
} |
Q:
Absolute value of a number
I want to take the absolute of a number by the following code in bash:
#!/bin/bash
echo "Enter the first file name: "
read first
echo "Enter the second file name: "
read second
s1=$(stat --format=%s "$first")
s2=$(stat -c '%s' "$second")
res= expr $s2 - $s1
if [ "$res" -lt 0 ]
then
... | {
"pile_set_name": "StackExchange"
} |
Q:
Index page in Joomla
I have a problem, wich I cant figure out ;(
I have made a homepage in Joomla 2.5, and I need my front page to be different then the page made in Joomla.
My best solution then, is to make the front page in pure HMTL, and then redirect to the site made in Joomla. Is this posible? or is there an... | {
"pile_set_name": "StackExchange"
} |
Q:
SQL Server - export data using regular expression?
I have a table I'm trying to export out of a SQL Server database. One of the columns is giving me a hard time and the Import and Export Wizard is throwing all kinds of errors. As soon as you remove this column, the export runs flawlessly.
The column in the databas... | {
"pile_set_name": "StackExchange"
} |
Q:
Azure autoscale metricname values
I need to define scale rule for my virtual machine I have read the following
The MetricName and MetricNamespace are not values I just made up.
These have to be precise. You can get these values from the
MetricsClient API and there is some sample code in this link to show
how to ... | {
"pile_set_name": "StackExchange"
} |
Q:
Can someone help fix my opacity scrolling effect
When i place my div id tag #fading everything seems to fade at once. I want my parts to fade one by one; individually. I'm not so skilled at jquery, so some assistance would be great.
... | {
"pile_set_name": "StackExchange"
} |
Q:
How to create inner children without creating another class?
I need to generate an XML like this:
<Root>
<Children>
<InnerChildren>SomethingM</InnerChildren>
</Children>
</Root>
The simplest solution is creating an inner class on the Root class:
@Root
class Root{
@Element
Children element;
... | {
"pile_set_name": "StackExchange"
} |
Q:
stacking subsets of data.frame in R
I have a dataset with one (or more) id variables and many subsets of variables which have the same structure. I would like to stack these subsets, in a long format : I have three subsets in my example, so the final table must have three times more rows, and the id variable has t... | {
"pile_set_name": "StackExchange"
} |
Q:
Really Frustrating CSS Stepdown in IE
In my site, I have two divs - right and left. Both are contained within a wrapper div. Here is my code:
#wrapper{
width:1000px;
height:750px;
margin:auto;
}
#left{
width:500px;
height:750px;
float:left;
position:relative;
}
#right{
width:5... | {
"pile_set_name": "StackExchange"
} |
Q:
How to redirect to another action in Struts in given time?
For example, once an action has been called I want it to redirect to another action in 5 seconds. Is it possible?
<action name="proceedupdateaccount" class="accountAction" method="updateAccount">
<result name="success" type="redirectAction">upd... | {
"pile_set_name": "StackExchange"
} |
Q:
How do I auto-login as root into the TTY upon boot?
I am working on creating a real time kernel with RT-PREEMPT patch.
I have created this kernel without graphic desktop. It comes up in the terminal mode with login prompt.
The requirement is, it should boot and directly go to the shell prompt with root permission,... | {
"pile_set_name": "StackExchange"
} |
Q:
Why can I not successively increment a variable within a function?
I'm trying to add 10 over and over for every invocation of d. It stays 20 every time, why?
function d() {
var c = [10];
c[0] += 10;
alert(c[0]); // always 20
}
d(); d(); d(); // supposed to be 20, 30, 40...
A:
You create a new array a... | {
"pile_set_name": "StackExchange"
} |
Q:
What is the meaning of ${arg##/*/} and {} \; in shell scripting
Please find the code below for displaying the directories in the current folder.
What is the meaning of ${arg##/*/} in shell scripting. (Both arg#* and arg##/*/ gives the same output. )
What is the meaning of {} \; in for loop statement.
for arg in ... | {
"pile_set_name": "StackExchange"
} |
Q:
"dir"-Input RTL but with LTR measurement data | "فثسف 3 cm فثسف" should be (فثسفy 3 cm فثسف)
Do someone know if this is an issue of the browser, the windows language or something in general?
I installed on my computer a second language called "Arabic (Saudi Arabia) Arabic (101) keyboard".
And if I enter a text li... | {
"pile_set_name": "StackExchange"
} |
Q:
website not centered in firefox/chrome
i am having a problem with my website on Widescreens on Firefox/Chrome. It's not centred for some reason, margin: 0 auto; is not working either. The website looks fine on normal screens or even wide screens with lower res but on 1900x1200 the content is not centered for some ... | {
"pile_set_name": "StackExchange"
} |
Q:
Plotting of for loop values (array)
As I'm completely new to Mathematica I'm stuck at the following problem:
I'm supposed to "fly" a drone in y-direction (upwards) and before it hits an "obstacle" which is placed at {0,5}, it should move out of the way in x-direction. This works out, however now I'm supposed to pl... | {
"pile_set_name": "StackExchange"
} |
Q:
Get content between 2 words
I wanna get the contents (text) between two words(word1 and word2), for example :
word1blablabla Poetry can be divided into several genres, or categories. word2 blablabla
so the contents = blablabla Poetry can be divided into several genres, or categories.
but, the problems sometimes t... | {
"pile_set_name": "StackExchange"
} |
Q:
Closing Parenthesis Beep in XCode 4
this is really getting on my nerves and, after too much Googling, I haven't found a satisfactory fix for it.
If I begin to type in code using XCode 4.6, for instance:
float x = y + z
(my caret is just after the z) and then decide that what I really want is float x = ceilf(y + z... | {
"pile_set_name": "StackExchange"
} |
Q:
How do I get the number of subunits from a PDB file with awk , python or biopython?
I have PDB(text) files which are in a directory. I would like to print the number of subunits from each PDB file.
Read all lines in a pdb file that start with ATOM
The fifth column of the ATOM line contains A, B, C, D etc.
If it c... | {
"pile_set_name": "StackExchange"
} |
Q:
Как получить гладкие кривые в Android при рисовании по касанию?
Обработчик onTouchEvent в ACTION_MOVE рисует прямую линию к event.getX(), event.getY(). В итоге при рисовании пальцем по экрану линия получается рубленой. Как это можно исправить?
A:
Вместо event.getX(), event.getY() нужно использовать event.getHist... | {
"pile_set_name": "StackExchange"
} |
Q:
Why is this only fading In and not fading out
I have an image on the UIButton that I wish to glow in when I click button and glow out when I click it again.
Everytime I click, it doesn't glow out, it only glows in making it brighter
.
I have tried UIView animateWithDuration as well as CATransition and CABasicAnima... | {
"pile_set_name": "StackExchange"
} |
Q:
Como mandar um string para um servidor web?
Eu preciso mandar uma string para um servidor, que no caso será uma página do meu site. Eu preciso mandar um txt com a string para lá, apenas isso. Alguém sabe com fazer isso no Android do jeito mais simples possível? Agradeço desde já!
A:
Crie esta classe em seu proje... | {
"pile_set_name": "StackExchange"
} |
Q:
Summation by parts of $\sum_{k=1} ^n \frac{2k+1}{k(k+1)}$
Let $\{f_k\}$ and $\{g_k\}$ be sequences of real numbers. The formula for summation by parts is given by:
$\sum_{k=m} ^n f_k \Delta g_k=(f_{n+1}g_{n+1}-f_mg_m)-\sum_{k=m} ^n g_{k+1}\Delta f_k$,
where $\Delta f_k=f_{k+1}-f_k$.
Letting $f_k=2k+1$ and $g_k=-\... | {
"pile_set_name": "StackExchange"
} |
Q:
Django + PostgreSQL: database representation of JSONField is changing
PostgreSQL 9.4.12
Django 1.10.7
With this minimal class :
from django.contrib.postgres.fields import JSONField
class Foobar(models.Model):
extra_data = JSONField(blank=True, default="")
I run manage.py shell_plus :
In [2]: a=Foobar.object... | {
"pile_set_name": "StackExchange"
} |
Q:
Stack Overflow doesn't display correctly when using Tor Browser
I use Tor browser for nearly all of my internet browsing, including Stack Overflow. This wasn't a problem for me until about a week or two ago, when Stack Overflow produced two different errors when using Tor Browser.
One, it would sometimes display w... | {
"pile_set_name": "StackExchange"
} |
Q:
White screen of death after server move
I am moving my expression engine site and database to a new server. Everything seems to be directed correctly but when I access admin.php I get a blank page. Any thoughts?
A:
If you are seeing a white screen there's an error happening and you need to display that error to ... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I identify and count unique pairs at every level in a list of lists in R?
I have a list of lists that looks like this:
> class(cladelist)
[1] "list"
cladelist <- list( `46` = scan(text=' "KbFk2" "PeHa3" "PeHa51" "EeBi27" "EeBi17" "PeHa23" "PeHa44" "EeBi4" "EeBi26" "PeHa8" "PeHa26" "EeBi24" "EeBi3"
"... | {
"pile_set_name": "StackExchange"
} |
Q:
Form created with React doesn't update the backing state object
I am trying to automate the login form of Instagram web app:
https://instagram.com/accounts/login/
With the following code (you can run it on Chrome console):
var frm = window.frames[1].document.forms[0];
frm.elements[0].value = 'qacitester';
frm.elem... | {
"pile_set_name": "StackExchange"
} |
Q:
ASP.NET Website Administration Tool: Unable to connect to SQL Server database
I am trying to get authentication and authorization working with my ASP MVC project. I've run the aspnet_regsql.exe tool without any problem and see the aspnetdb database on my server (using the Management Studio tool).
my connection st... | {
"pile_set_name": "StackExchange"
} |
Q:
A linear transformation that fixes a subspace
I am struggling with the problem below:
Let $V$ be a finite-dimensional vector space over a field $F$, and $L: V \longrightarrow V$ a linear transformation over $F$. Define a sequence of subspaces $V_0, V_1, V_2, ...$ of $V$ inductively by $V_0 = V$, and $V_{n+1} = L(... | {
"pile_set_name": "StackExchange"
} |
Q:
How to send a data from req.body using nodejs
How can I send data from body using nodejs?
I am writing a code in node.js in which the user inputs a data in the body. And based on that input, the program fetches the data from the database and displays it in JSON format.
I have written the following code:
app.post(... | {
"pile_set_name": "StackExchange"
} |
Q:
Call web API from client app
I used to use ASMX web services, however have since read (and been told) that a better way to request data from a client etc is to use web API's with MVC.
I have created an MVC 4 web api application and getting to grips with how it works.
Currently I have a single public string in my v... | {
"pile_set_name": "StackExchange"
} |
Q:
Visual Studio 2013 crash on start
Yesterday I studied a little MVC5 before bed.
Today, I open Visual Studio 2013 and while loading, the following exception occurs:
Exception Details
System.ArgumentNullException was unhandled
Message: An unhandled exception of type 'System.ArgumentNullException' occurred in mscorl... | {
"pile_set_name": "StackExchange"
} |
Q:
How to set color of child QLabels while hover parent QFrame with QSS?
I'm trying to set the hover state color of 2 labels inside a QFrame with a stylesheet, but the frame takes the hover states regardless if there is an actual hover:
See screenshot:
I've got a QFrame with QLabels. I set the default colors to gree... | {
"pile_set_name": "StackExchange"
} |
Q:
How to use find and exec to execute multiple commands
I have such a need:
In the directory video, I need to
find ./video -type f | while read myfile; do
tmp=`basename $myfile` #example.mp4
tmp="${tmp/.mp4/.html}" #example.html
cp index.html "$tmp"
sed -i '' "s#sceneFilePath:.*#sceneFilePath: \"$... | {
"pile_set_name": "StackExchange"
} |
Q:
AngularJS execution order with `$q` -- Chaining Promises
Following Approach works:
$q.when()
.then(checkCookieToken) // check if cookie already exists e.g. in cookie
.then(setHeader) // set Header with REST-Token e.g from cookie
.then(checkTokenOnline) // if n... | {
"pile_set_name": "StackExchange"
} |
Q:
Name of the Minimum value in a named vector
I have a named vector:
v <- c("morning"=80, "noon"=20, "night"=40)
printing min(v) gives
[1] 20
I want to get this instead:
noon
20
Is there a simple way?
A:
v[which.min(v)] will give you the output you listed. But if you just want the name, and not the valu... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I change the height of mathematical equations in Microsoft Word 2013?
How can I change the height of mathematical equations in Microsoft Word 2013?
Example: I would like to change the height of the following selected equation:
to have the same the height as the following selected equation:
I use Microsof... | {
"pile_set_name": "StackExchange"
} |
Q:
parse a ini like file with ruby
I have a file in the following format:
[X:10]
[Y:20]
# many of them, they are test parameters
C = 1
A = 1234
B = 12345
....
# many of them, they are test cases
# new test parameters
[X:20]
[Y:40]
# new test cases
C = 1
A = 1234
B = 12345
...
It is a test framework. The header (sec... | {
"pile_set_name": "StackExchange"
} |
Q:
Google Identity Toolkit returns error 2 when signing in with aol email Id
I have been using Google Identity Toolkit for my GAE (Java) based app for couple years now. I have Google, Facebook and Microsoft federated logins enabled. However, when a user tries to "Sign In with Email" and uses an @aol.com account, it r... | {
"pile_set_name": "StackExchange"
} |
Q:
Remove an image using CSS attributes
I have a set of identical images that I don't wish to display, I hope to do this with display:none;
How can I target a src image url with CSS attributes?
So far, I have:
[src="mypic_68.png"] {
display:none;
}
A:
I think you have src like this: src="images/mypic_68.png" then ... | {
"pile_set_name": "StackExchange"
} |
Q:
Check if current date is between 2 dates in MySQL
I have a contract table in my database and those contracts have a start date and an end date. How can I change their active state if the current date is after the end date?
I already figured out that I'll do it with a stored procedure that gets executed every day o... | {
"pile_set_name": "StackExchange"
} |
Q:
UITableViewCell next to eachother
How can i make a tableview where the cells are next to each other. Where there are 2 on each row. example like this? In the second row there are 2 images next to each other. Can this be done in a tableview by making custom tablevieCells?
A:
Yes this can be done in UItableViewCel... | {
"pile_set_name": "StackExchange"
} |
Q:
Junit4 Android TestField text test
My test is:
@RunWith(AndroidJUnit4.class)
@LargeTest
public class TipActivityTests {
@Rule
public ActivityTestRule<TipActivity> mActivityRule = new ActivityTestRule<>(TipActivity.class);
@Test
public void initialValues() {
onView(withId(R.id.tip_label_ba... | {
"pile_set_name": "StackExchange"
} |
Q:
What kind of Exception occurred?
I tried to create a test ClassCastException:
In line 1: it prints out class cast exception as I expected
In line 2: it just prints exception.RuntimeExceptionTest$1B@7852e922 (RuntimeExceptionTest is my class name). I wonder what kind of exception here?
try {
class A ... | {
"pile_set_name": "StackExchange"
} |
Q:
Implementing a "soft delete" system using sqlalchemy
We are creating a service for an app using tornado and sqlalchemy. The application is written in django and uses a "soft delete mechanism". What that means is that there was no deletion in the underlying mysql tables. To mark a row as deleted we simply set the a... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I take multiple inputs from the same line?
I can't figure out how to take multiple inputs from one line. Here is an example:
p=gets.chomp().to_i
q=gets.chomp().to_i
puts"#{p} #{q}"
When I run this and take inputs, I have to take it from a new line. E.g.,
3
4
output:
3 4
If I type
3 4
it is not taking ... | {
"pile_set_name": "StackExchange"
} |
Q:
Simple Clarification Objects Swift Language
I have a very simple question on something that I may have misunderstood.
I have two UIViews "A" and "B". If I write :
let A = UIView() // Or something else
let B = A
and then I change properties of B (for exemple the frame), will the properties of A change too ?
I th... | {
"pile_set_name": "StackExchange"
} |
Q:
What does 4X, 5X, 6X VALUE! mean in Special Offers in CoC?
In clash of clans, there are some special offers, with 4X, 5X, 6X VALUE! in top as you can see in the picture.
Does this mean for example if we took Builder Potion we can gain 6 x 5 hours which mean 30 hours instead of just 6 hours? or what does mean exact... | {
"pile_set_name": "StackExchange"
} |
Q:
How to remove the text "undefined" that is appearing in the autocomplete search field?
I have a autocomplete search. If there are no results that corresponds to the search it appears the message "No results.".
And its working the message "No results" if the user introduce 3 letters that don't correspond to any res... | {
"pile_set_name": "StackExchange"
} |
Q:
What happened to the opera-next package?
A week ago I noticed opera-next package in New in repository Synaptics' filter. So I installed it to test some HTML. Today I noticed that it has replaced x-www-browser alternative and tried to reproduce it but it was no longer in the repository. I don't remember enabling/di... | {
"pile_set_name": "StackExchange"
} |
Q:
How should I binding value to make the labelView in CustomItemView show the text info in the listController?
I try to design a custom view inside a listView.
The code looks like the following:
Myapp.listView=SC.ScrollView.design({
layout: { centerX: 0, width:100, top: 70, bottom:36},
contentView: SC.ListView.... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I add a custom button by using a custom module in Magento 2.3?
I wanted to add my own button in the Shopping Cart as I tried to show you in the screenshot.
But I didn't find a tutorial that worked for me. Do you have any idea how I can do this? (I want to make my own extension)
(EDIT) This is what I have ... | {
"pile_set_name": "StackExchange"
} |
Q:
How to define only 4 characters input by user in C
I want to make program that allow user input only 4 characters. After that, the system should prompt appropriate error message to the users. How look syntax should be?
Here , i am stuck on this,doesnt know how to continue.
#include<stdio.h>
#include<conio.h>
#incl... | {
"pile_set_name": "StackExchange"
} |
Q:
Swift 4 Conversion error - NSAttributedStringKey: Any
I converted my app recently and I keep getting the error
"Cannot convert value of type '[String : Any]' to expected argument type '[NSAttributedStringKey: Any]?'
barButtonItem.setTitleTextAttributes(attributes, for: .normal)
Whole code:
class func getBarBut... | {
"pile_set_name": "StackExchange"
} |
Q:
Why does array allocation with a variable work?
This code:
int main() {
int size;
scanf("%d", &size);
int array[size];
}
works fine with GCC, but VC expects a constant expression for the size of the array so does not compile it (which makes more sense to me). Any idea why it works with GCC?
A:
Yes, be... | {
"pile_set_name": "StackExchange"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.