text stringlengths 181 35.5k | meta dict |
|---|---|
Q:
Google Maps Android API v2 - for ARM only?
Google Maps Android API v2
I'm getting error while trying to install sucessfully compiled maps demo app (%android-sdk%\extras\google\google_play_services\samples\maps\) on android-x86 device (Intel Mint):
Failure [INSTALL_FAILED_CPU_ABI_INCOMPATIBLE]
The same APK can be... | {
"pile_set_name": "StackExchange"
} |
Q:
How do airline pilots maintain night currency?
Does flying as an airline pilot under 14 CFR 121 provide different ways to maintain night currency? Suppose a pilot were to bid only day trips and end up flying only during the day for over 90 days. Under the recency of flight experience requirements in 14 CFR 61 that... | {
"pile_set_name": "StackExchange"
} |
Q:
Making urls.py file for Flask like in Django
Maybe someone can help/explain me, how to create urls.py file for Flask like in Django?
main.py - main project file. It includes only app runner (app.run()).
urls.py is situated in the same directory and need to provide views
from views.py.
A:
You can do this as is d... | {
"pile_set_name": "StackExchange"
} |
Q:
How to validate a text box (total) based on two other textboxes with numeric values
I am working on a Telerik RadGrid and within the grid there are multiple radtextboxes like A, B, C and D. I have used radtextbox with regular expression validation to validate A, B and C textboxes with numbers. However, textbox D i... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I force a throw to be a statement and not an expression (in a lambda expression)?
Starting from C# 7.0 the throw keyword can be used both as an expression and as a statement, which is nice.
Though, consider these overloads
public static void M(Action doIt) { /*use doIt*/ }
public static void M(Func<int> do... | {
"pile_set_name": "StackExchange"
} |
Q:
Difference between a 'figure' and 'figurine'?
I am writing a product description for an Easter bunny decorative figure/figurine and I am stuck at which term to use for my copy as both these terms have been used interchangeably on different sites.
A:
Figure and figurine can be used interchangeably to describe a ... | {
"pile_set_name": "StackExchange"
} |
Q:
Allow PHP application access only for slack
I have implemented slack -Jenkins Integration;
Triggering Jenkins build with parameters job by using PHP application hosted in a server.
Slash command to call PHP application ;
PHP application will take the input by REQUEST method and then call the Jenkins job .
If any o... | {
"pile_set_name": "StackExchange"
} |
Q:
Captioning two side by side figures outside float environment
I want to put two figures in the footnote of my document. I need to write a caption without a label for each figure. The problem is that the figures are located vertically when I add the \captionof*{} command. Does anybody have any idea to put the figur... | {
"pile_set_name": "StackExchange"
} |
Q:
Matplotlib Scatter plot change color based on value on list
I'm quite new to matplotlib and i would like to know how we can change color of points on a scatter plot based on the value in a list.
In fact, I have a 2-D array that I want to plot and a list with the same number of rows containing, for each point, the ... | {
"pile_set_name": "StackExchange"
} |
Q:
in spite of everyone playing or in spite of playing
1.In spite of everyone playing well, we lost the game.
2.In spite of playing well, we lost the game.
Which is better? I prefer 2#. I think "everyone" and "we" are the same in this sentence.
A:
Your understanding of your two sentences is correct.
"Everyone" is ... | {
"pile_set_name": "StackExchange"
} |
Q:
Regex for Alphanumeric, spaces and symbols, Doesn't match like i need
I want to make a regular expression that matches :
-alphanumeric with spaces
-these symbols and letters
á é í ó ú ñ Ñ ,.( ) ! - + % $
I tried with this, but it didn't match like i need:
[\w áéíóúñÑ,.\(\)\!\-\+\%\$]
What's wrong in this regex... | {
"pile_set_name": "StackExchange"
} |
Q:
How do you use list properties in Google App Engine datastore in Java?
An object to be placed in the datastore will have a set of tags.
public class Model
{
List<String> tagList
...
}
In Python, the Google App Engine has the notion of list properties. What is the equivalent notion in Java (if it exist... | {
"pile_set_name": "StackExchange"
} |
Q:
My rails stylesheets are not loading/working
It's been a while since I've developed in Rails and I'm having trouble getting any scss stylesheet to work on my freshly created rails app.
layouts/application.html.erb has the default <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => tr... | {
"pile_set_name": "StackExchange"
} |
Q:
how to throttle file copy
I need to duplicate a 3TB disk by copying from one to another. They're housed in separate docks (no fan). It will take at least 8hrs to copy this much data through USB 2.0 and im concerned about disks overheating.
Is there any utils to throttle the rate of files or MB/second copied?
A:
... | {
"pile_set_name": "StackExchange"
} |
Q:
Need a hint evaluating $ \lim\limits_{x\to 0}\frac{x\ln{(\frac{\sin (x)}{x})}}{\sin (x) - x} $
I'm stuck with this. I've tried substituting $t$ for $\frac{\sin (x)}{x}$ and $\sin (x) - x$ but it doesn't work at all.
A small hint would be greatly appreciated.
A:
$$\lim_{x\to 0}\frac{x\ln{(\frac{\sin (x)}{x})}}{... | {
"pile_set_name": "StackExchange"
} |
Q:
If we use a sinusoidal signal as an input signal to a linear transmission path, then we always get out a sine wave of the same period/frequency
An Introduction to Information Theory: Symbols, Signals and Noise, by John R. Pierce, says the following:
With the very surprising property of linearity in mind, let us r... | {
"pile_set_name": "StackExchange"
} |
Q:
How was Bifrost Bridge shattered in Ragnarok?
In the Ragnarok events (Marvel Comics), Bifrost Bridge is shattered. How did this happen?
Also, providing Bifrost isn't used to travel across realms in comics, what's the significance of this?
A:
In the comic universe, the Bifrost is what anchors Asgard and Midgard t... | {
"pile_set_name": "StackExchange"
} |
Q:
How to capture the prints of a python script being executed from another python script?
I have 2 scripts script1.py and script2.py in the same folder ,script1.py calls script2.py using Popen(See code below for details),issue is that the prints coming from script2.py is not being captured in script1.py,print output... | {
"pile_set_name": "StackExchange"
} |
Q:
Extremely slow model load with keras
I have a set of Keras models (30) that I trained and saved using:
model.save('model{0}.h5'.format(n_model))
When I try to load them, using load_model, the time required for each model is quite large and incremental. The loading is done as:
models = {}
for i in range(30):
... | {
"pile_set_name": "StackExchange"
} |
Q:
How to return a non-editable PDF as a response?
I have a URL:
http://www.irs.gov/pub/irs-pdf/fw4.pdf
It contains an editable PDF. I have make it non-editable. I did so and kept it in the temp directory of a folder. Now i want to send the non-editable PDF as a response, when the user clicks this url, he must get th... | {
"pile_set_name": "StackExchange"
} |
Q:
Large form crashing on second opening
I have this problem where I have a very large form (winforms) that is loaded through the Activation.CreateInstance(Type) method, because the loading container is used for different forms. It opens fine the first time, but if I close it and then reopen it, it will always crash ... | {
"pile_set_name": "StackExchange"
} |
Q:
Not able to find element by partial link text using Java and Selenium
Using geckodriver 0.23.0, firefox 64.0.2, selenium 3.12, java 8 I'm not able to find the element by partial link text. A frame is not used. Link text is "Accounts (1)". There is only one other instance of the same text on the page "View All Acc... | {
"pile_set_name": "StackExchange"
} |
Q:
div toggle show/hide for parent and child relation ship in angular 6
I have list of values in div with parent and child relation ship. When I toggle any specific parent record, all the child records associated with other parents also gets opened. I bind this div from service (API)
Please find the sample code used ... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I use a datepicker to set a reminder on a specific date?
I have a datepicker which can be used to pick a date and set it to a edittext. how can i set a reminder on the date ?.
The program for setting a edittext from the date picker is given below:
import android.app.DatePickerDialog;
import android.conten... | {
"pile_set_name": "StackExchange"
} |
Q:
What's wrong with using sudo?
In a comment here I've been told that unnecessarily using sudo should be avoided. While it wasn't needed in that particular case, I don't see any harm in using it.
I think that when executing trivial programs like cat as root using sudo, the overall risk of hitting a bug that would so... | {
"pile_set_name": "StackExchange"
} |
Q:
optimize tween() transition in d3.js
I have a set of items:
[
{ label: 'item1', color: 'yellow' },
{ label: 'item2', color: 'red' },
{ label: 'item3', color: 'blue' },
{ label: 'item4', color: 'green' }
]
There's a main transition which moves all items from left to right.
Inside this main transition, I wa... | {
"pile_set_name": "StackExchange"
} |
Q:
How do I respond to Mod question?
I flagged an answer as abusive because of the derogatory language the author used to reference another user (the answer has since been edited but you can see the original text in the edit history). I was using this post as my guide for what constitutes 'abuse'.
The flag reviewer ... | {
"pile_set_name": "StackExchange"
} |
Q:
String com lixo de memória
Estou com alguns problemas ao trabalhar com arquivos e funções, o código que estou fazendo deveria imprimir uma string no arquivo, porém essa string está com lixo, e não imprime o que deve apesar de ser usada normalmente.
http://pastebin.com/JtGTDSeL
#include <stdio.h>
#include <stdlib.h... | {
"pile_set_name": "StackExchange"
} |
Q:
Is false considered to be nil in rspec?
There is field name active in customer table. It validates as below in customer.rb:
validates :active, :presence => true
Here is the rspec code to test a field short_name:
it "should be OK with duplicate short_name in different active status" do
customer = Factory(:custom... | {
"pile_set_name": "StackExchange"
} |
Q:
What is the size of codomain of a function $G(x) = F^A(x) \oplus F^B(x)$, where $F(x) = \text{Keccak-}f[1600](x)$?
Assuming that $m$ is a multiset of bitstrings where all bitstrings have the same length, let $D(m)$ denote the number of distinct elements in $m$. That is, $D(m)$ is equal to the dimension of $m$. For... | {
"pile_set_name": "StackExchange"
} |
Q:
Sum of probability differential is zero
I keep seeing:
$$
\sum_i [ln(p_i) + 1]dp_i = \sum_i ln(p_i)dp_i
$$
where $p_i$ is the probability of the $i^{th}$ state and where
$ \sum_i p_i = 1 $
cropping up in my statistical mechanics course. I'm a bit unsure of how one comes to this?
EDIT: A similar result which confus... | {
"pile_set_name": "StackExchange"
} |
Q:
Move specific items to the end of a list
I have an ArrayList in Java:
{"deleteItem", "createitem", "exportitem", "deleteItems", "createItems"}
I want to move all string which contains delete to the end of the list, so I would get the next:
{"createitem", "exportitem", "createItems", "deleteItem", "deleteItems"}`... | {
"pile_set_name": "StackExchange"
} |
Q:
Redefine obeyspaces to newline
I want to typeset code snippets from different programming languages. I couldn't get listings to do what I want (one complete height of an empty line takes up too much space for my liking) and neither did I manage to define everything I want myself.
I'd like to define a new environm... | {
"pile_set_name": "StackExchange"
} |
Q:
On CentOS Linux 7.4, cannot install the R package "httpuv"
I am currently using CentOS Linux 7.4.1708 (Core). I have tried to install the package httpuv in R through various methods to no avail. It always ends with the error:
CC src/unix/libuv_la-procfs-exepath.lo
CC src/unix/libuv_la-proctitle.lo
... | {
"pile_set_name": "StackExchange"
} |
Q:
Ajax in MVC @Ajax. Helpers and in JQuery.Ajax
I know a bit of Ajax. And now I am learning MVC + JQuery. I want to know if the 2 Ajaxs in MVC Ajax.Helper and JQuery.Ajax are using the same base? Are they the same as the normal Ajax I learned using XMLHttpRequest xhr? If not, what is the preferred way of doing it? I... | {
"pile_set_name": "StackExchange"
} |
Q:
CSS attribute selector not working when the attribute is applied using javascript?
.variations_button[style*="display: none;"] + div
This is my CSS selector which works fine if the style attribute is already in the DOM on page load:
http://jsfiddle.net/xn3y3hu0/
However, if i hide the .variations_button div using... | {
"pile_set_name": "StackExchange"
} |
Q:
Question about positive recurrence of a Markov chain
Q) Let $\{X_n\}$ be an irreducible Markov chain on a countable set $S$. Suppose that for some $x_0$ and a non-negative function $f:S\to(0,\infty)$, there is a constant $0<\alpha<1$ s.t.
$$\mathbb{E}_xf(X_1)\leq \alpha f(x)\text{ for all }x\neq x_0$$
Suppose als... | {
"pile_set_name": "StackExchange"
} |
Q:
How to type String content:encoded = "Hello"; in java?
How to type String content:encoded = "Hello"; in java ?
Eclipse keep telling me syntax error on tokens delete these tokens ?
setDescription(String content:encoded) {
_description = content:encoded;
}
A:
Because content:encoded is a syntax error. Name i... | {
"pile_set_name": "StackExchange"
} |
Q:
Handling worker death in multiprocessing Pool
I have a simple server:
from multiprocessing import Pool, TimeoutError
import time
import os
if __name__ == '__main__':
# start worker processes
pool = Pool(processes=1)
while True:
# evaluate "os.getpid()" asynchronously
res = pool.apply_... | {
"pile_set_name": "StackExchange"
} |
Q:
Restrict Action in ASP.Net MVC
I am trying to restrict the action to not to be called if it has the required parameter available in the url. for example I have a Login Action ut it only be access with it hit on an other web application and it redirect with query string parameter. but it can also be accessible with... | {
"pile_set_name": "StackExchange"
} |
Q:
MySQL Command Line Client: Selecting records from a table which links two other tables
I have three tables. Two of them are separate irrelevant tables (students and subjects), the third (entries) is one which links them both with foreign keys (student_id and subject_id).
Here are all the tables with the records:
... | {
"pile_set_name": "StackExchange"
} |
Q:
Tank Tread Mathematical Model
I am struggiling with tank tread behaviour. The tank treads moving indivually if I move only the left tread the tank will go to the right direction for sure it depends on tread’s speed value subatraction , if ı am not wrong.
İf the left track moves 50 km and right track moves with 4... | {
"pile_set_name": "StackExchange"
} |
Q:
Passing custom flags to "open" in a device driver
I need to pass some custom flags to the open() call of my device driver.
I found this example in LDD3:
int dev_open(struct inode *inode, struct file *filp)
{
if ((filp->f_flags & O_ACCMODE) == O_WRONLY) {
...
}
}
My question is: is it possibile to ... | {
"pile_set_name": "StackExchange"
} |
Q:
Using "plot for" in gnuplot to vary parameters
I want to use the plot for feature in gnuplot to plot functions with varying parameters. Here an example
par = "1 2" #two values for the parameter
f(x,a) = sin(a*x)
g(x,a) = cos(a*x)
plot for [i=1:words(par)] g(x, word(par,i)), f(x, word(par,i))
What I expect is the... | {
"pile_set_name": "StackExchange"
} |
Q:
Getting list of Variables of map in BPM Metastorm
I'm trying to get list of variables in some map OUTSIDE program automatically. I know I can find them in .process file, with has xml structure.
I also figured out that "x:object" with variable contains "x:Type" ending with "MboField}".
But unfortunately I need to n... | {
"pile_set_name": "StackExchange"
} |
Q:
Is it possible to know the probability that a trade is successful?
I'm trying to model the distribution of different outcomes of day trading every day for a year. I'm starting with $350 dollars. I'm only doing options trading on Apple stock with a 5% stop loss and a 15% stop gain. And if it doesn't hit one of thos... | {
"pile_set_name": "StackExchange"
} |
Q:
highcharts redraw and reflow not working
I am trying to build a dynamic page that has any number between 1-4 graphs on it that can be added or removed as needed but I have run into a huge problem and I can't seem to get the graph to resize after resizing the containing div. for example if I add a graph on the page... | {
"pile_set_name": "StackExchange"
} |
Q:
How dangerous is it to translate IPs directly via hosts in Windows
Sorry for the inconvenience, as English is not my native.
I use hosts to access some websites as DNS is polluted.
My question is, take www.google.com as an example.
If I am successfully social engineered by an attacker, and changes the translation ... | {
"pile_set_name": "StackExchange"
} |
Q:
JavaScript runtime error: Unable to add dynamic content
I'm making a javascript metro app and have some code like this:
<script>
document.writeln(foo());//this line is trouble
</script>
and when I tried to run, it gave me a rather long error:
Unhandled exception at line 20, column 9 in ms-appx://a... | {
"pile_set_name": "StackExchange"
} |
Q:
Apple rejected an app that for use on non public api where there aren't any non pulic apis
This is the message I got from Apple for rejecting my app:
Your app uses or references the following non-public APIs:
didDetermineState:forRegion:
didEnterRegion:
didExitRegion:
The use of non-public APIs is not p... | {
"pile_set_name": "StackExchange"
} |
Q:
Multiplication error in php
I'm building a site where people can exchange coins (site currency) into Bitcoin. The problem I'm having is that for some reason when I multiply the $btcprice with 3 or less the echo is really weird... for your sake this is the code that matters:
<?php
// get 0,01 usd in bitcoins into a... | {
"pile_set_name": "StackExchange"
} |
Q:
Removal of special characters, a comma separated text, PHP
I got my text variable which is user-specified, normally, user should enter the tags which has to look following:
"food, community, relationship"
but if user type for example
"food;;[]'.'.;@$#community,,,-;,,,relationship"
the script should change it i... | {
"pile_set_name": "StackExchange"
} |
Q:
CSS minify and rename with gulp
I've a variable like
var files = {
'foo.css': 'foo.min.css',
'bar.css': 'bar.min.css',
};
What I want the gulp to do for me is to minify the files and then rename for me.
But the tasks is currently written as (for one file)
gulp.task('minify', function () {
gulp.src('fo... | {
"pile_set_name": "StackExchange"
} |
Q:
How to install Visual Studio on Ubuntu 20.04?
Can anyone tell how to install Visual Studio and .NET Framework on Ubuntu 20.04?
Is there any way to Install .NET and Visual Studio in Ubuntu 20.04?
A:
Unfortunately Visual Studio does not available for Linux. But you really want' exactly VS - you should try Wine or ... | {
"pile_set_name": "StackExchange"
} |
Q:
can't select all elements with classList API
I'm having a problem selecting all the LI tags when converting jQuery code to HTML5 javascript
code. I have applied the click event to the parent UL, and the click event is being applied to the correct clicked target LI. The class "selected" is also being applied. The p... | {
"pile_set_name": "StackExchange"
} |
Q:
Retrieve List of picklist values in a Set
I got the following variables(Custom Labels referring to picklist values), and a get method to retrieve List of picklist values of a field.
I need to retrieve those List of picklist values in a Set. How can I do this ?
public String dailyValue {
get { return System... | {
"pile_set_name": "StackExchange"
} |
Q:
How do I move JQuery draggable element without mouse
Is there a different way of JQuery draggable element moving?
Think yourself as a spammer.
A:
it should not be such a big deal, only calling the correct sequence of: .mousedown(), .mousemove() and .mouseup()
as the official documentation says (http://api.jquery... | {
"pile_set_name": "StackExchange"
} |
Q:
Is there any way to break on the next line of code executed in Visual Studio?
I'm trying to track down a bug that occurs when I click a particular element on an aspx page...
In the past I've had to track down the class that handles that particular event and put a break point on the line that I think should be hit.... | {
"pile_set_name": "StackExchange"
} |
Q:
Parse php associative array to javascript object
I want to have a javascript array of "country" objects which at this stage will have only two attributes: name, and geonameId.
I get these countries from a database like so:
$sql = "SELECT name, geonameId FROM countryinfo";
$result = $conn->q... | {
"pile_set_name": "StackExchange"
} |
Q:
Automatically add an Order column into tablix in Local Report?
I can populate my own Order column in the DataSource and pass this DataSource to Tablix. But if there is a way to automatically an Order column right in Tablix at design time (such as using some variable or expression), it would be better. Here is what... | {
"pile_set_name": "StackExchange"
} |
Q:
How do I get vim omnicompletion to support php class methods using ::
Using vim + php + ctags I can get fairly good php auto-completion. But one part really eludes me: getting vim to auto-complete class methods. Here's an example:
The full method is
CVarDumper::dumpAsString
And I want it to complete if I type thi... | {
"pile_set_name": "StackExchange"
} |
Q:
Qual é a definição de delete JavaScript
Me deparei com uma instrução onde o delete representa um tipo em JavaScript. Pelo menos foi o que eu entendi.
Gostaria da ajuda de vocês pois não encontrei nenhuma referencia na internet.
if (MvL.object.hasValue(domain.cpf) || MvL.object.hasValue(domain.cnpj)) {
delete dom... | {
"pile_set_name": "StackExchange"
} |
Q:
Add Password Requirements to Membership Provider
Do I need to make a Custom Membership Provider or is there another way?
I have a project using ASP.NET Forms Authentication and the Microsoft SQL Membership Provider. The website is DONE. I use this provider everywhere. (Register, Login, Forgot Password, etc...)
Unt... | {
"pile_set_name": "StackExchange"
} |
Q:
How does MS Entity Framework map from the conceptual model to CLR types?
Given an Entity Data Model (EDMX) with "Code Generation Strategy" set to "None", how does EF determine which CLR types to map the conceptual model to?
I think I read somewhere that it just probes the assembly for types that match the concept... | {
"pile_set_name": "StackExchange"
} |
Q:
How do baby animals that primarily subsist on cellulose get their initial gut flora?
In the case of mammals like giraffes and koalas, is that bacteria common on the plants they eat so when a baby starts to try to stick something besides its mother's milk in its mouth, it can't digest the cellulose at all the first... | {
"pile_set_name": "StackExchange"
} |
Q:
Anyone know whether there is a 5-star rating component on iPhone?
In Google groups and some other web sites, there is a 5-star rating component which is pretty neat, such as in this url:
http://groups.google.com/group/Google-Picasa-Data-API/browse_thread/thread/b5a346e6429a70a7?hl=en
I am wondering whether there i... | {
"pile_set_name": "StackExchange"
} |
Q:
Put the correct image in the box according to the ID
I have a function that loads certain image data from the database. This data is later loaded into html through * ngFor.
In order to load the image referring to this data I need to get the ID of the function that carries the image information, and then perform th... | {
"pile_set_name": "StackExchange"
} |
Q:
You don't need to take an algebraic closure twice in model theory
This is an exercise (1.4.11) from Marker. Fix a language $\mathcal L$ and $\mathcal L$-structure $\mathcal M$. For a subset $A \subseteq M$, an element of $M$ is algebraic over $A$ if it is a member of a finite $A$-definable subset of $M$. Let $\... | {
"pile_set_name": "StackExchange"
} |
Q:
setting wallpaper through code
I was trying to make an app which also had the facility to let user select wallpaper he would like to set. I have managed this by calling the Gallery Intent. Once the user selects a specific image, the data path of the image is returned to me which then i preview to the user by setti... | {
"pile_set_name": "StackExchange"
} |
Q:
Geometric Operations in GIS Systems
I have worked with 2D geometry for CAD - My questions are general and relate to understanding operations on geometric entities (lines).
Should geometric operations such as line-line intersection be done in the projected spaces (such as EPSG 3857) ?
I've had a brief look at the ... | {
"pile_set_name": "StackExchange"
} |
Q:
Nested List and For Loop
Consider this:
list = 2*[2*[0]]
for y in range(0,2):
for x in range(0,2):
if x ==0:
list[x][y]=1
else:
list[x][y]=2
print list
Result:
[[2,2],[2,2]]
Why doesn't the result be [[1,1],[2,2]]?
A:
Because you are creating a list that is two references to the same subl... | {
"pile_set_name": "StackExchange"
} |
Q:
Scene Graph as Object Container?
Scene graph contains game nodes representing game objects. At a first glance, it might seem practical to use Scene Graph as physical container for in game objects, instead of std::vector<> for example.
My question is, is it practical to use Scene Graph to contain the game objects, ... | {
"pile_set_name": "StackExchange"
} |
Q:
natural language query processing
I have a NLP (natural language processing application) running that gives me a tree of the parsed sentence, the questions is then how should I proceed with that.
What is the time
\-SBAR - Suborginate clause
|-WHNP - Wh-noun phrase
| \-WP - Wh-pronoun
| \-What
\-S - Simple... | {
"pile_set_name": "StackExchange"
} |
Q:
Natural vs surrogate keys on support tables
I have read many articles about the battle between natural versus surrogate primary keys.
I agree in the use of surrogate keys to identify records of tables whose contents are created by the user.
But in the case of supporting tables what should I use?
For example, in a ... | {
"pile_set_name": "StackExchange"
} |
Q:
What's the semantically accurate position for the ampersand in C++ references
It's pretty common knowledge that the semantically accurate way to declare pointers is
int *x;
instead of
int* x;
This is because C sees *x as an int, not x as an int pointer.
This can be easily demonstrated by
int* a, b;
where a is a... | {
"pile_set_name": "StackExchange"
} |
Q:
Tomcat & Eclipse integration
I'm developing on a Ubuntu 8.04 machine using Eclipse Ganymede. I installed Tomcat 5.5 using sudo apt-get install tomcat5.5 tomcat5.5-admin and using an Ant script I deploy my WAR file by copying it to $CATALINA_HOME/webapps.
I then created an Eclipse project and I have it output compi... | {
"pile_set_name": "StackExchange"
} |
Q:
"Linear isomorphism" in definition of vector bundle
I'm reading out of Broecker & Jaenich's differential topology text, and in the definition of vector bundle I'm having trouble understanding what they're talking about. This trouble is worsened by the fact that other sources define the structure similarly, and als... | {
"pile_set_name": "StackExchange"
} |
Q:
What is the basis for anointing of physical objects and who practices this?
It's been a tradition of my family and friends to anoint a home with oil when a family moves in. I understand the significance of praying and dedicating the space as God's, used for His purposes and will - and my interpretation of anointi... | {
"pile_set_name": "StackExchange"
} |
Q:
FiwareLab Cygnus always get error to install
According to this manual, I've try to install Cygnus on my Centos instance of FiwareLab but always I get the following error "Permission denied".
I have used the default user "centos" but I don't get any result.
Anyone can help me?
Thanks a lot!!
Here's a supplementary... | {
"pile_set_name": "StackExchange"
} |
Q:
C++ Issue with median function using arrays
I am having trouble getting this function to work. I am trying to write a median function that takes a user entered array and size, validates that it is correct and then sorts it and displays the median and sorted array. I have tried several different things and no matte... | {
"pile_set_name": "StackExchange"
} |
Q:
regex regarding symbols in urls
I want to replace consecutive symbols just one such as;
this is a dog???
to
this is a dog?
I'm using
str = re.sub("([^\s\w])(\s*\1)+", "\\1",str)
however I notice that this might replace symbols in urls that might happen in my text.
like http://example.com/this--is-a-page.html... | {
"pile_set_name": "StackExchange"
} |
Q:
Output of awk is not shown when used after a grep command
I want to get CPU % of a process using pid from top command in Mac OS. When I use top | awk '{print $3}' I get the CPU % for all the processes. However, using top | grep 11568 | awk '{print $3}' returns nothing. The output of top | grep 11568 is
11568 jav... | {
"pile_set_name": "StackExchange"
} |
Q:
irrationality of $\sqrt{2}^{\sqrt{2}}$.
The fact that there exists irrational number $a,b$ such that $a^b$ is rational is proved by the law of excluded middle, but I read somewhere that irrationality of $\sqrt{2}^{\sqrt{2}}$ is proved constructively. Do you know the proof?
A:
Since this is a well-established res... | {
"pile_set_name": "StackExchange"
} |
Q:
How to Enumerate variable XML Document in .NET using Linq to XML
I'm submitting a command to a ssh session and getting an XML response back which is variable depending on the type of query I'm running. I get the following type of XML returned...
<CLIOutput>
<Results>
<ReturnCode>0</ReturnCode>
<EventCod... | {
"pile_set_name": "StackExchange"
} |
Q:
What is the Java equivalent of JavaScript's resource folder?
My Wicket web application contains a Flash (*.swf) FLV player. The following code:
final String script = "var swfVersionStr = '10.0.0';"
+ "var xiSwfUrlStr = 'playerProductInstall.swf';"
+ "var flashvars = {file:'/proj/resources/video.flv'};"
... | {
"pile_set_name": "StackExchange"
} |
Q:
Create RSS feed in asp.net core 1.0
I am working in Asp.net Core 1.0 MVC 6
I am trying to write a component to provide RSS feeds from my websites.
I found this post that suggests that System.ServiceModel.Syndication has yet to be ported to ASP.NET CORE.
I am unable to target the full .NET framework.
The suggestion... | {
"pile_set_name": "StackExchange"
} |
Q:
Raw Socket Help: Why UDP packets created by raw sockets are not being received by kernel UDP?
I am studying raw sockets. I used the IP_HDRINCL option to build my own IP headers. After the IP header, I am building a UDP header. Then I am sending the packet to my system's loopback address. I have another program run... | {
"pile_set_name": "StackExchange"
} |
Q:
Inequality between 2p-norm and p-norm for random variables
Recently I was studying something about random matrix theory, and class of sub-guassian / sub-exponential random variables is of interest. In the literature it gave an inequality as following:
$\sup_{p\geq 1} \frac{\|X^2\|_p}{p} \leq 2\sup_{p\geq 1} (\frac... | {
"pile_set_name": "StackExchange"
} |
Q:
Pascal to C converter
I'm writing program which translate Pascal to C and need some help. I started with scanner generator Flex. I defined some rules and created scanner which is working more or less ok. It breaks Pascal syntax into tokens, for now it's only printing what it found. But I have no idea what should I... | {
"pile_set_name": "StackExchange"
} |
Q:
how can I change month only in java date object?
I have java date object.
How can I change its month without changing the year.
e.g.
12/1/14
I want to change it to
12/3/14 and to 12/10/14
I basically want to change the month by +/- x month without changing the year.
Can it be done?
A:
Calendar cal = Calendar.get... | {
"pile_set_name": "StackExchange"
} |
Q:
How to get values from query string and pass it to new page using .htaccess file
currently I m using following code in my site in .htaccess file :
RewriteRule ^([^/\.]+).php?$ comman.php?cat=$1 [L]
This redirects user to comman.php page say, user requests
http://www.mysite.com/myfolder/page1.php
will redirects to... | {
"pile_set_name": "StackExchange"
} |
Q:
Why is this SML function returning a syntax error?
fun first_answer(my_f:('a -> 'b option)) : 'a list -> 'b =
let
fun help(_a:'a list) : 'a =
(((List.map valOf)o(List.filter isSome)o(List.map my_f)) _a)
in
help
end;
Error: syntax error: replacing WILD with SEMICOLON
Something with that _a is messing it up..... T... | {
"pile_set_name": "StackExchange"
} |
Q:
FFMPEG error with avformat_open_input returning -135
I have a DLL one of my applications uses to receive video from RTSP cameras. Under the hood, the DLL uses FFMPEG libs from this release zip :
ffmpeg-20141022-git-6dc99fd-win64-shared.7z
We have a wide variety of cameras in house and most of them work just fin... | {
"pile_set_name": "StackExchange"
} |
Q:
Is there a way to state changes that will be applied to method parameters within Javadoc?
Imagine a method that applies changes to the parameterized objects. For example a map oder list passed.
If the developer decides not to create and return a copy of the parameter I guess it would be best to have a notice in th... | {
"pile_set_name": "StackExchange"
} |
Q:
Affected rows for stored procedure with node mssql object
I can't seem to get this working. I have an update procedure in Azure SQL.
CREATE PROCEDURE foobar
@a int
AS
update foo set bar=@a;
RETURN 0
I was returning the @@rowcount and trying to work with that but it means two resultsets and sloppy cod... | {
"pile_set_name": "StackExchange"
} |
Q:
no default constructor exists
I'm having some trouble with a class that was working fine and now doesn't seem to want to work at all.
The error is "No appropriate default constructor available"
I am using the class in two places I'm making a list of them and initializing then adding them to the list.
Vertice3f.h
#... | {
"pile_set_name": "StackExchange"
} |
Q:
printing a report in a navigation subform
I have built a database using MS Access 2010, everything is done except for one button that is not working.
I have a main navigation form, that has different tabs, one tab opens another navigation form (secondary nav. form - SNF) inside the main navigation form (MNF). in t... | {
"pile_set_name": "StackExchange"
} |
Q:
Is there a new Midi API for Windows Vista/7/8?
I know the midiXxx API, but I saw it is currently listed under 'legacy' in msdn.
http://msdn.microsoft.com/en-us/library/windows/desktop/dd743619(v=vs.85).aspx
Is there some other API i should use to target the newer Windows versions?
Will the old API still work on Wi... | {
"pile_set_name": "StackExchange"
} |
Q:
MongoDB find in array
I have a mongodb JSON array and I am having issues locating categories, eg.
{ name:"hoyts"}
I have tried {categories.name:"hoyts"} and a few others but nothing seems to work.
This is my JSON:
{
"_id": ObjectId("4f67da1538fc5d7347000000"),
"categories": {
"id": 1,
"name": "... | {
"pile_set_name": "StackExchange"
} |
Q:
GLEW 1.9.0 builds a 64-bit .so even with m32 argument?
I've been trying to compile a 32-bit shared library of GLEW-1.9.0 under a 64-bit RedHat 4 machine, but it seems no matter what I try, the shared library it produces is 64-bit (this is determined using "file libGLEW*" in the output directory).
It seems GLEW has... | {
"pile_set_name": "StackExchange"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.