text stringlengths 181 35.5k | meta dict |
|---|---|
Q:
Why do XS subs use const char *?
A lot of Perl XS code uses const char * as the return value of an XS sub but never just char *. For example:
const char *
version(...)
CODE:
RETVAL = chromaprint_get_version();
OUTPUT: RETVAL
code from xs-fun
Can someone explain why const is preferred? In my testin... | {
"pile_set_name": "StackExchange"
} |
Q:
$f'=e^{f^{-1}}$, again
This question is a spin-off of this one, in which the OP asks whether there is a solution $f:\mathbb R\to\mathbb R$ of the functional equation (not exactly an ODE) $f'=e^{f^{-1}}$, where $f^{-1}$ is the compositional inverse of $f$. The posted answer exploits the growth of $f(x)$ when $x\to-... | {
"pile_set_name": "StackExchange"
} |
Q:
Transform smarty Boolean value to human readable value.('Yes'/'No' or 'True'/'False')
I'm using Smarty to generate some tables, and at one point I'm printing out variable values that have been passed from php file. The problem is that some of these variables are Boolean values and they render as "1" or "". This wa... | {
"pile_set_name": "StackExchange"
} |
Q:
Php, static variables for trait itself only, how?
its possible to have static variables for traits:
Trait Example
{
public static $var;
}
class X
{
use Example;
}
class Y
{
use Example;
}
however, the problem is when more class would want to use this trait, I get a fatal error:
Example and X define ... | {
"pile_set_name": "StackExchange"
} |
Q:
Formula to combine variable and cell references
I have been looking for hours for a solution but couldn't find any. I am an absolute beginner in VBA and couldn't figure this out for myself. The thing I would like to do is that VBA enters in a cell a formula that will contain a value extracted from a variable and t... | {
"pile_set_name": "StackExchange"
} |
Q:
Migrating from PVM to MPI
I'm working on migrating a project from PVM to MPI. I wanted to ask if anyone here has done so before and if there exists any tutorials or manuals on the correspondance between functions in PVM and MPI.
A:
Chapter 9 of the useful book Using MPI talks pretty explicitly about comparing PV... | {
"pile_set_name": "StackExchange"
} |
Q:
Heroku Puma Sidekiq Running 167% crititcal r14 memory quota exceeded on 3 web dynos with one visitor
I am running Puma 3.4, Rails 4.2.6, Sidekiq 4.2.2, Redis Mini, on 3 dynos (standard 1x) on Heroku. I am doing simple Beta testing and I cannot seem to optimize my puma-dyno situation. I get High Response Time A... | {
"pile_set_name": "StackExchange"
} |
Q:
What is the difference between a line segment inside and outside of a concave polygon?
My question is about the creation of visibility graphs in surfaces with multiple convex and concave polygons. My problem is that i am not able to classify whether the line segments connecting the nodes of the same polygon go thr... | {
"pile_set_name": "StackExchange"
} |
Q:
Rank by 2 different levels of partitioning/grouping
I have this set of data using Microsoft SQL Server Management Studio
Category|pet name| date |food price|vet expenses|vat
A | jack |2017-08-28| 12.98 | 2424 |23
A | jack |2017-08-29| 2339 | 2424 |23
A | smithy |2017-08... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I hide or diminish VS2017's vertical lines in the editor
Visual Studio 2017 uses quite bright, dashed, vertical lines within code's indentation to highlight the extent of various scopes.
How can I turn these off, or make them less vivid?
A:
You can reduce the intensity of these lines:
In VS2017, go to ... | {
"pile_set_name": "StackExchange"
} |
Q:
Bad reputation of reputation
For the record: the post below is not to defend the point where I am standing. That's why I feel I am entitled to bring this up.
Every now and then, reputation is brought up in discussions as an argument. Used wrongly in my opinion, for reasons pointed out below.
Not the only reason, ... | {
"pile_set_name": "StackExchange"
} |
Q:
Injecting JpaRepository directly
Im looking for a way intercept all requests going to all the defined methods.
(defined=whatever is on the JpaRepository interface).
so for example when someone calls repo.findAll() I will be able to run a generic code before and after.
(generic=same code of all the entities).
S... | {
"pile_set_name": "StackExchange"
} |
Q:
wmd markdown code problem
i m using wmd markdown editor in my project and i have a problem with code tags:
if i enter a code snippet , markdown does not convert to html correctly it converts in "<p>" tags but if i enter some text else first and then code snippet it converts correctly in "<code>" tags
is this a bug... | {
"pile_set_name": "StackExchange"
} |
Q:
Select all columns of a dataframe as a StructType
In pyspark, I have two dataframes, dfA and dfB, with complex schemas. A common column in the schemas is 'time'. I'd like to make a new dataframe that is the union of these two, so that I can sort on time, however I don't want to lose anything in the original datafr... | {
"pile_set_name": "StackExchange"
} |
Q:
Determine whether a Python function is already implemented in C extension
Suppose I have a Python program that runs slow- after profiliing and I have identified the bottleneck. One particular function from a 3rd party module I imported is particularly slow.
For this particular case, I know that function is impleme... | {
"pile_set_name": "StackExchange"
} |
Q:
Summarize ndarray by 2d array in Python
I want to summarize a 3d array dat using indices contained in a 2d array idx.
Consider the example below. For each margin along dat[:, :, i], I want to compute the median according to some index idx. The desired output (out) is a 2d array, whose rows record the index and col... | {
"pile_set_name": "StackExchange"
} |
Q:
Sorting HealthKit data by date
I'm trying to get pulse data from HealthKit and sort them by date for use in a line chart. I'm running a 'for loop' to get the correct dates and put the results in an array before putting the results in the chart but it seems like they get put in a random order and I don't understand... | {
"pile_set_name": "StackExchange"
} |
Q:
Not able to append command line variable in shell script
Here is my code:
export ALLOW_RPM_UPGRADE=True
path='/opt/rpm/latest/'
echo $1
file=$1
echo $file
dest=${path}${file}
echo $dest
cp $source $dest
Problem:
The three echo statements are printing the same value.
The third one is not appending path to $des... | {
"pile_set_name": "StackExchange"
} |
Q:
Read multiple files in Hive table by date range
Let's imagine I store one file per day in a format:
/path/to/files/2016/07/31.csv
/path/to/files/2016/08/01.csv
/path/to/files/2016/08/02.csv
How can I read the files in a single Hive table for a given date range (for example from 2016-06-04 to 2016-08-03)?
A:
As... | {
"pile_set_name": "StackExchange"
} |
Q:
Set method for java not working
So for my assignment it needs to look like this: Assignment
The problem I am facing with this is the setIndent isn't setting the indent but when I mainly change int indent = 20; it will add the indent to the boxes. Also I am confused as to why Rectangle@6bdf28bb is appearing in my c... | {
"pile_set_name": "StackExchange"
} |
Q:
Inequality problem: with $x,y,z>0$, show that $\frac{x^5}{y^3}+\frac{y^5}{z^3}+\frac{z^5}{x^3}\geq x^2+y^2+z^2$
I am studying AM-GM inequalities in school and have this problem:
With $x,y,z>0$ show that $\frac{x^5}{y^3}+\frac{y^5}{z^3}+\frac{z^5}{x^3}\geq x^2+y^2+z^2$.
A:
Idea behind the solution
By AM-GM you ... | {
"pile_set_name": "StackExchange"
} |
Q:
What library or project generator to use for a first STM32F3 project?
I'm about to start my first STM32 project. (I have previously used atmega MCUs, and have decades of experience with C, mostly server-side.)
There seem to be three choices, given that I want to develop on the command-line in Linux, using make.
... | {
"pile_set_name": "StackExchange"
} |
Q:
Nullpointer exception error for using split and comma operators
I want to store the values HTRANS and HBURST in one list and 2'b00 and 3'b000 in another list. But i am getting a null pointer exception in the code which i have written, I have written an SSCCE for the same, please help.
import java.util.ArrayList;
i... | {
"pile_set_name": "StackExchange"
} |
Q:
Showing that a topological space is ${\rm T}_1$
Let $X$ be a topological space and let $\Delta = \{(x,x) : x\in X \}$ be the diagonal of $X\times X$ (with the product topology).
I was asked to prove that $X$ is ${\rm T}_1$ if and only if $\Delta$ can be written as intersection of open subsets of $X\times X$.
I t... | {
"pile_set_name": "StackExchange"
} |
Q:
How do you define a generic getter method in Typescript with multiple overloads?
I'm trying to define a method that operates as a getter, taking an optional parameter. The getter provides access to an object of type T, and should return either the entire object, or a property on that object.
The challenge is that ... | {
"pile_set_name": "StackExchange"
} |
Q:
C: My struct's properties don't change when referenced from an Array?
I'm having trouble with an array in C that is supposed to hold several structs I defined earlier;
The Struct:
typedef struct
{
bool alive;
struct Vector velocity;
struct Vector acceleration;
struct Coordinate position;
float... | {
"pile_set_name": "StackExchange"
} |
Q:
XDocument: Create custom declaration
I want to create Windows Media Player playlist files with XDocument. Therefore I have to create this declaration:
<?wpl version="1.0"?>
However, the XDeclaration object doesn't allow to replace "xml" with "wpl". Is there a proper way to handle this?
A:
That's a processing in... | {
"pile_set_name": "StackExchange"
} |
Q:
how to get my android USSD program to work
am building a simple dialler to help me check my account balance but for some unknown reasons am getting some errors, i have a button on my xml which i have set its onclick element to sendMessage1 , but am getting error on my code with the phoneNum[1] telling me cannot re... | {
"pile_set_name": "StackExchange"
} |
Q:
Uploading Image to Firebase Storage and Database
I want to put the download URL of images into my Firebase Database. I can upload the Image into storage but I can't figure out how to get the URL into my database with the rest of the "post".
@IBOutlet weak var titleText: UITextField!
@IBOutlet weak var authorText: ... | {
"pile_set_name": "StackExchange"
} |
Q:
How to configure db-reverse-engineer plugin
I am a total Grails noob trying to configure the db-reverse-engineer plugin for my first project. Documentation for the plugin indicates that I need to configure it, but I don't see where I am supposed to edit configuration.
Is there a configuration file in my project... | {
"pile_set_name": "StackExchange"
} |
Q:
Mapping deeply nested array properties
Example jsFiddle
I have a model that is a Calendar at the root level. This Calendar contains many days, each Day contains an Event, each Event contains attendees and each Attendee has 0 or more Intolerances.
So it looks like this:
function Calendar(data) {
this.days = ko... | {
"pile_set_name": "StackExchange"
} |
Q:
TypeScript no error on non-matching return value
Why doesn't TypeScript complain about this?
async GetCategoriesBySet(set: Set): Promise<Result<Array<ProductCategory>>> {
let categories: Array<ProductCategory> = []
if (!set.theme || !set.subtheme || !set.title) {
return Promise.resolve(new Result<Array<Pr... | {
"pile_set_name": "StackExchange"
} |
Q:
Flood fill algorithm
I am implementing a flood fill algorithm using Python and NumPy. I have written the following fill function which works fine:
def fill(self, data, xsize, ysize, x_start, y_start):
stack = [(x_start, y_start)]
while stack:
x, y, stack = stack[0][0], stack[0][1], stack[1:]
... | {
"pile_set_name": "StackExchange"
} |
Q:
How to recursively traverse a tree and create a list of visited nodes in python
I have defined a class Tree which consists of a list of TreeNodes as below:
class Tree(object):
def __init__(self, name, nodes):
self.name = name
self.nodes = nodes
class TreeNode(object):
def __init__(self, na... | {
"pile_set_name": "StackExchange"
} |
Q:
Perl GetOptions Function
My Perl Script retrieves the argument in the below way. Have Getoptions function to retrieve the command line arguments.
./test.pl -mode report -writeid 12 13 23......
$rc=GetOptions( 'mode=s' => \$cmdParams{mode}
,'writeid:i{1,}' => \@writeid
,'h|?|help' => \$h... | {
"pile_set_name": "StackExchange"
} |
Q:
mysql CREATE TRIGGER after insert on Update column with count
it gives error. I don't understand why.
CREATE TRIGGER `estatecat_piece` AFTER INSERT ON `estate`
FOR EACH ROW
BEGIN
UPDATE estate_category set piece = (Select count(*) from estate where estate.estatecat_id=new.estatecat_id);
ERROR 1064 (42000): You... | {
"pile_set_name": "StackExchange"
} |
Q:
When is my date of birth?
___4,_4,_4
This is my real date of birth, because it looks unique, I try to do a simple operation, and I get a number 222.
In fact it is able to solved without looking at the hint, but I'm trying to make this puzzle easy.
Hint:
??+?4+,?4+,?4 = 141
When is my date of birth? And how is t... | {
"pile_set_name": "StackExchange"
} |
Q:
Is nesting ARM Thumb2 "IT" instructions well defined?
If I have an ARM Thumb 2 instruction stream that looks like the following:
itt NZ
mov r1,r2
it MI
mov r3,r4
The IT block of the first IT instruction contains mov and a second it. Is this sequence allowable, or is it undefined behavior?
A:
An IT block must no... | {
"pile_set_name": "StackExchange"
} |
Q:
Vertical scroll Scintilla Textbox during Text Changed event
Setting a Scintilla.Net textbox with a string and scrolling to last line doesn't work.
This Q & A How make autoscroll in Scintilla? has the answer but it wont work at the same time as setting the text.
Bare bones repro:
private void button1_Click(object... | {
"pile_set_name": "StackExchange"
} |
Q:
Time conversion Not working properly?
I am using the ionic time picker in my project. When I select the time picker it passes a value to the controller. For example when I select 09:00pm, the console shows 79200. If I select 07:00pm the console shows 68400. I want to convert the value to 12 hrs format. I have foll... | {
"pile_set_name": "StackExchange"
} |
Q:
How do I calculate the intersection between two cosine functions?
$f(x) = A_1 \cdot \cos\left(B_1 \cdot (x + C_1)\right) + D_1$
$g(x) = A_2 \cdot \cos\left(B_2 \cdot (x + C_2)\right) + D_2$
Is it possible at all to solve this analytically? I can start doing this but I get stuck half way.
$A_1 \cdot \cos\left(B_1... | {
"pile_set_name": "StackExchange"
} |
Q:
Loading assemblies and its dependencies
My application dynamically loads assemblies at runtime from specific subfolders. These assemblies are compiled with dependencies to other assemblies. The runtime trys to load these from the application directory. But I want to put them into the modules directory.
Is there a ... | {
"pile_set_name": "StackExchange"
} |
Q:
error in ajax and json array
I'm going to develop an interactive map (google maps).The coordinates parse via ajax from json,but i get error
JSON Format
{"Level":[{"route":[{"lat":39.105251,"lgn":26.551727},
{"lat":39.105247125,"lgn":26.551774625}...],"balls":
[{"lat":39.105239375,"lgn":26.551869875},{"lat":39.1052... | {
"pile_set_name": "StackExchange"
} |
Q:
Top down car game (game-maker)
I'm new to programming on game-maker and programming in general. This is probably very easy but i'm unsure of how to go about things.
I am programming a simple top-down car game in which the car drives (forward) by it's self and is steered with the left and right mouse buttons. I att... | {
"pile_set_name": "StackExchange"
} |
Q:
Inserting Related MySQL Data with AUTO_INCREMENT
I'm looking at a database that has 3 tables into which I have to insert data:
resource
id (AUTO_INCREMENT)
name
resource_item
id (AUTO_INCREMENT)
name
resource_id (FK ref resource.id)
resource_item_business_function
id (AUTO_INCREMENT)
business_funct... | {
"pile_set_name": "StackExchange"
} |
Q:
Google Calendar API server to server Rails
I want insert events in my calendar after some user's actions. That's why I'm want use server-to-server authorization with Google API. I wrote next code:
require 'google/apis/calendar_v3'
require 'googleauth'
require 'google/api_client/client_secrets'
require 'google/ap... | {
"pile_set_name": "StackExchange"
} |
Q:
More than one tab bar in an app?
I have developed an app that has work successfully for the last 4 months using iOS 4.3 and under. Since iOS 5 however the tightening of view hierarchy has left my app dead in the water. The app starts with a tab bar as its main view with 5 tabs. When the user selects a row on a tab... | {
"pile_set_name": "StackExchange"
} |
Q:
How to change background Color on external element drop based on it's id: Fullcalendar?
I am trying to change background Color of the external element on drop. So how to do that?
My code is following and I wanted to do something like if I drop red then red color of element on drop. If I drop green then...... so ba... | {
"pile_set_name": "StackExchange"
} |
Q:
itextsharp: java to vb.net
i am trying to change the font on a pdftable and i have this hint in java but need some help to put it into vb.net
PdfPTable table = new PdfPTable(3);
table.AddCell("Cell 1");
PdfPCell cell = new PdfPCell(new Phrase("Cell 2", new Font(Font.HELVETICA, 8f, Font.NORMAL, Color.YE... | {
"pile_set_name": "StackExchange"
} |
Q:
What is wrong with this definition of a discrete random variable?
(note regarding notation for function application: I sometimes write $f(x)$ as $f.x$, to simplify brackets)
I begin by defining the key pieces of the random variable definition, in a way that is more detailed than necessary, for the sake of pedagogy... | {
"pile_set_name": "StackExchange"
} |
Q:
Reshaping a tensor with more than one uknown diemnsions
I need to be able to reshape a tensor only on its last axis:
(None, 4) --> (None, 2, 2),
which at time of execution can have instances like these:
(128, 10, 4) --> (128, 10, 2, 2)
(128, 4) --> (128, 2, 2)
Is there a straight forward solution or I need to it... | {
"pile_set_name": "StackExchange"
} |
Q:
Change view frame in landscape using autolayout in storyboard
I am very new to AutoLayout. I have one problem. I need to change the frame of any UIView when moving form portrait to landscape mode.
For example: If I have one UILabel with frame (100,100,100,30) in portrait mode. And I want to change its frame to (40... | {
"pile_set_name": "StackExchange"
} |
Q:
AVAudioRecorder shows time delay for recording sound in IOS 5
I am using AVAudioRecorder to record sound in 'wav' format. My code works fine for ios 4 and recording is done perfectly. But in case of ios 5, a time delay of 3-4 seconds occur in 2 out of 10 attempts for recording sound. I also used : [audioRecorder p... | {
"pile_set_name": "StackExchange"
} |
Q:
Color every second row of the table
I need to color every second row in my table.
I would love it to look like on the attached image
Any ideas how to do this?
A:
EVEN AND ODD RULES
One way to improve the readability of large tables is to color alternating rows. For example, the table below has a light gray back... | {
"pile_set_name": "StackExchange"
} |
Q:
what is up with this "modified 2 hours ago by Community" questions in the "active" list
When I check the "active" questions, there are often questions included that are considered "active" because there were "modified N hours ago" and the modifying user is "Community".
If open the question, I don't see any edit N ... | {
"pile_set_name": "StackExchange"
} |
Q:
Custom JSON Result in ASP.NET MVC
I created custom ActionResult (simplified):
public class FastJSONResult : ActionResult
{
public string JsonData { get; private set; }
public FastJSONResult(object data)
{
JsonData = JSON.Instance.ToJSON(data);
}
public override void ExecuteResult(Cont... | {
"pile_set_name": "StackExchange"
} |
Q:
Getting Distinct Count from two tables
I have two tables for example
table1 as
╔══════════╦════════════╗
║ id ║ login_id ║
╠══════════╬════════════╣
║ 1 ║ 2 ║
║ 2 ║ 2 ║
║ 3 ║ 2 ║
║ 4 ║ 1 ║
╚══════════╩════════════╝
and table2 as
╔═════════... | {
"pile_set_name": "StackExchange"
} |
Q:
How can telnet connect to an arbitrary port?
Through telnet I am able to connect to any server at any port, how does it work? Is there a telnet server daemon running on that server?
If there is, shouldn't the daemon listen on a specific port? why can I connect to an arbitrary port on that server?
Why can I telnet... | {
"pile_set_name": "StackExchange"
} |
Q:
Xcode 5-DP5 Crashing when distributing
I have been struggling past 4 days trying to Publish an app to App Store. But every single time I go on Xcode
Project->Archive-> Distribute/Validate
Have downloaded the right profile from iTunes Developer Center.
It crashes every time.
I have tried removing the itunnesconnec... | {
"pile_set_name": "StackExchange"
} |
Q:
Postgres change number format
in Postgres I use this query:
UPDATE managers SET phone_number = replace(phone_number, '\m86', '3706');
unfortunately the field is long and query fails. I need to change all numbers beginning with 86 to start with 3706...
I tried many Postgres functions, but it is not obvious do they... | {
"pile_set_name": "StackExchange"
} |
Q:
Golang Struct Won't Marshal to JSON
I'm trying to marshal a struct in Go to JSON but it won't marshal and I can't understand why.
My struct definitions
type PodsCondensed struct {
pods []PodCondensed `json:"pods"`
}
func (p *PodsCondensed) AddPod(pod PodCondensed) {
p.pods = append(p.pods, pod)
}
ty... | {
"pile_set_name": "StackExchange"
} |
Q:
Difference between cranio and teschio
I am studying the difference between "cranio m" and "teschio m" (the m stands for masculine).
Hypothesis number one: "cranio m" refers to set of bones of a person that is alive; "teschio m" is a symbol of skull, "teschio m" can be used to refer to a pirate flag.
Hypothesis num... | {
"pile_set_name": "StackExchange"
} |
Q:
Adding multiple columns to a table in sqllite
Can i add multiple columns to a table in a single query execution, using alter table?
A:
No,you can't add multiple columns in single query execution. SQLite supports a limited subset of ALTER TABLE.therefore you have to add them one by one.
see documentation at sqlit... | {
"pile_set_name": "StackExchange"
} |
Q:
Date convert in Java
I want to compare two dates, for that i convert the string to date format.But during the conversion the date format changed to "02/01/2013" and "03/01/2014".It makes error in my logic.any one please tell me to how to compare two days in my date format.
String fdate="01/02/2012";
... | {
"pile_set_name": "StackExchange"
} |
Q:
Azure Javascript - Wait for Function Completion
I'm using Azure Mobile Services and am running a javascript backend. However, since the backend is in node.js, everything is executed asynchronously and I don't know how to halt the execution of a function.
I'm trying to delete a club if there hasn't been a comment ... | {
"pile_set_name": "StackExchange"
} |
Q:
Get vocabulary list in Galago
I am using Galago retrieval toolkit (a part of the Lemur project) and I need to have a list of all vocabulary terms in the collection (all unique terms). Actually I need a List <String> or Set <String> I really appreciate to let me know how can I obtain such a list?
A:
The `DumpKeys... | {
"pile_set_name": "StackExchange"
} |
Q:
Both replication masters stop by themselves
I did a master/master replication with MySQL on a Gentoo OVH Release 2, all work fine in my test phase. I put it in production, the replication works fine for 1 or 2 days, but this morning, I don't know why, my slave stops running!
So now the log position is bad. I can't... | {
"pile_set_name": "StackExchange"
} |
Q:
Python/sqlite3: is there a way to make database schema figure?
Very new to sql and thus new to sqlite3. I'm setting up a relational database and need a visual for peer review prior to populating with actual data. (That is, I am setting up all the tables and fields, with primary and foreign keys, but there are no r... | {
"pile_set_name": "StackExchange"
} |
Q:
lua meta-object protocol model: lua-coat vs loose
There is someone who uses lua-coat or loose routinely?
Which is more mature, stable, bugfree -> "better"?
Is one of them enough mature for the production environment?
lua-coat - activity none - last updated Nov.2010 - marked as beta
loose - activity none - last up... | {
"pile_set_name": "StackExchange"
} |
Q:
Cannot access server running in container from host
I have a simple Dockerfile
FROM golang:latest
RUN mkdir -p /app
WORKDIR /app
COPY . .
ENV GOPATH /app
RUN go install huru
EXPOSE 3000
ENTRYPOINT /app/bin/huru
I build like so:
docker build -t huru .
and run like so:
docker run -it -p 3000:3000 huru
for some re... | {
"pile_set_name": "StackExchange"
} |
Q:
Balance between "right tool for the job" and familiarity
So when choosing what language to use for a project, in an ideal world the language is chosen because it's the right tool for the job. However, I often prefer to use a language that I am fluent in rather than one I would have to learn or that I am only conv... | {
"pile_set_name": "StackExchange"
} |
Q:
html inside php mail
I have the following html codes for my email.
$headers = "From: jmedalla20@gmail.com \r\n" .
"MIME-Version: 1.0\r\n" .
"Content-Type: text/html; charset=ISO-8859-1 \r\n";
$message = <<<EOD
<!DOCTYPE html>
<head>
<meta http-equiv=Content-Type content=text/html; charset=utf-8 />
<link re... | {
"pile_set_name": "StackExchange"
} |
Q:
"Sneaked off" vs "sneaked into" vs "sneaked away."
I often get confused about which one to use. Example:
He sneaked [...] to the rear of the ship.
Or maybe all of them have a different connotation?
A:
Sneak denotes stealthy movement:
verb (past and past participle sneaked or informal , chiefly North
America... | {
"pile_set_name": "StackExchange"
} |
Q:
C++ and Lua - Unprotected Error (bad callback)? How is this possible
I'm working with LuaJIT's FFI and I'm getting very strange results. This returns a PANIC: Unprotected Error (bad callback):
function idle(ms)
myDLL.myDLL_idle(session, ms)
end
But this simple print has fixed the problem.
function idle(ms)
... | {
"pile_set_name": "StackExchange"
} |
Q:
AVAssetImageGenerator provides images rotated
When obtaining a UIImage of a video via AVAssetImageGenerator, I'm getting back images rotated (well, technically they're not) when the video is shot in portrait orientation. How can I tell what orientation the video was shot and then rotate the image properly?
AVURLA... | {
"pile_set_name": "StackExchange"
} |
Q:
Cygwin permissions on Windows 7
I suppose this question is related to a previous answer on Cygwin permissions, but I have failed to work out how the answer can be applied to my situation.
I am finding that when I edit a file (~/.screenrc in this case), I can make one change and then the permissions and ownership a... | {
"pile_set_name": "StackExchange"
} |
Q:
Book stacking brain teaser
I've been given a puzzle, and I just can't work out an answer. Can you help?
I'd also like to know your thought process for solving, as this matters more than the correct answer. Does it belong to a pattern of puzzles?
The scenario is this:
There are six books by six different authors -... | {
"pile_set_name": "StackExchange"
} |
Q:
How to programatically add/remove nodes from main graph in Tensorboard?
Tensorboard seems to arbitrarily select which nodes belong to the main graph and which do not. During graph visualization I can manually add/remove the nodes but it is tedious to do it every run.
Is there a way to programmatically embed this ... | {
"pile_set_name": "StackExchange"
} |
Q:
How to Read data from generic repository in ASP.NET controller class?
I am using ASP.NET mvc 5 in visual studio 2013 and tending to read data from function table (SQL Server) in the controller class via generic repository. I have IGenericRepository which has IQueryable one function, I have GenericRepository class ... | {
"pile_set_name": "StackExchange"
} |
Q:
What do I do when my ASP.Net website is not allowed to perform some operations defined by the security policy of my web hosting service?
My asp.net site coded in C# is running fine on my local system but when I uploaded the files on the httpdocs folder through plesk I am getting the following error:
Server Error i... | {
"pile_set_name": "StackExchange"
} |
Q:
Which File Is Missing? "i686-apple-darwin11-llvm-g++-4.2: No such file or directory"
I'm getting the following error from my compiler:
g++ -c -m32 tracecone.cpp -I/usr/X11R6/include -I/usr/X11/include/GL -I/Users/owner/Documents/raytrace/Graphics -I../RayTrace -I/Users/owner/Documents/raytrace/Graphics -I/Users/ow... | {
"pile_set_name": "StackExchange"
} |
Q:
javascript, changing page content
I'm trying to do an example in which I use javascript to change a page content. Suppose I have a page as :
<html>
<head>
</head>
<body>
<select id="a96780" multiple="multiple" name="a96780" size="3" value="deneme">
<option selected="selected" value="#ANY">ALL</option>
<option valu... | {
"pile_set_name": "StackExchange"
} |
Q:
Why does this flex item have its height limited?
I've stumbled across something that happens to my flex child items, illustrated in this JSFiddle.
This is the code:
<div style="position:absolute; top:10px; left:10px; background-color:yellow; height:50px; width:200px; display:flex; flex-direction:column;">
<div... | {
"pile_set_name": "StackExchange"
} |
Q:
appium driver throws Exception when using regex?
I am using appium to do some ui automation.I am having problems with regex;
WebDriverException throwed with the code,and the element totally exists:
phonedriver.findElement(By.xpath("//android.view.View[matches(@text,'sometext\\d+')]"))
Here are exception message: ... | {
"pile_set_name": "StackExchange"
} |
Q:
Is this a wrong way of doing things? answering questions just for bounty?
So I am in need of more rep as you can clearly see. But I do not want to answer questions just because there is a bounty on them because of the times my questions (bounty less) have been answered well. So is it wrong to just target bountifie... | {
"pile_set_name": "StackExchange"
} |
Q:
vector::erase(remove(....)) is not working
I came up with a program
#include <vector>
#include <algorithm>
using namespace std;
int main() {
vector<int> a = {1,2,3,7,1,5,4};
vector<int> b = {6,7,4,3,3,1,7};
a.erase(remove(a.begin(),a.end(),a[0]),a.end());
b.erase(remove(b.begin(),b.end(),b[0]),b.... | {
"pile_set_name": "StackExchange"
} |
Q:
Cron Tasks on load balanced web servers
I'm looking for better solution to handling our cron tasks in a load balanced environment.
Currently have:
PHP application running on 3 CentOS servers behind a load balancer.
Tasks that need to be run periodically but only on a single machine at a time.
Good old cron set ... | {
"pile_set_name": "StackExchange"
} |
Q:
Java Program to make Tic Tac Toe not working
For my programming class I'm supposed to make a program that simulates a game of tic tac toe. My teacher provided all the methods and said we shouldn't need to add any or take any away, and told us we shouldn't change the playGame method, but no matter what I do there s... | {
"pile_set_name": "StackExchange"
} |
Q:
ArcGIS API - call function onClick()
I have managed to get my tiled maps working using the ArcGIS javascript API. However, I want to be able to switch layers (showing different years). I created a function that will do this:
require(["esri/map",
"esri/layers/ArcGISTiledMapServiceLayer",
"esri/geometry/Poin... | {
"pile_set_name": "StackExchange"
} |
Q:
How to make a for loop slower?
setInterval(()=>{
for (j = 0; j < obj.length; j++) {
}
})
I have this loop setup, is there any way to make the for loop go slower? obj length can be as big as 200-400 arrays. Jquery answers accepted.
A:
Promise based delay:
const delay = x => new Promise(res => setTimeout... | {
"pile_set_name": "StackExchange"
} |
Q:
&& Syntax Error AGP for Dummies
So, I am currently learning off of the Android Game Programming For Dummies book, and have run into the problem where (On page 128) I'm given the code
case MotionEvent.ACTION_DOWN:
if (X > (screenW-playButtonUp.getWidth())/2 &&
X < ((screenW-playButtonUp.getWidth())/... | {
"pile_set_name": "StackExchange"
} |
Q:
How to display comma delimited JSON value as a list?
Say I have an array like this:
var ARTISTS: Artist[] = [
{
"name": "Barot Bellingham",
"shortname": "Barot_Bellingham",
"reknown": "Royal Academy of Painting and Sculpture",
"bio": "Some bio here...",
"frien... | {
"pile_set_name": "StackExchange"
} |
Q:
AlertDialog.Builder How Can I Access the the 'PositiveButton'?
I am using AlertDialog.Builder to create a dialog with a EditText and two buttons, 'OK' and 'Cancel'. I create the OK and Cancel buttons with AlertDialog.Builder.setPositiveButton() and .setNegativeButton() respectively. The purpose of the dialog is to... | {
"pile_set_name": "StackExchange"
} |
Q:
Error while compiling static Qt 5.10.0 with PostgreSQL
I'm trying to compile Qt 5.10.0 with PostgreSQL 10 (or 9.2, but same error) using mingw on Windows 7.
However when I include the psql include and lib dirs I always get the following Error after mingw32-make:
g++ -c -fno-keep-inline-dllexport -O2 -std=c++1z -f... | {
"pile_set_name": "StackExchange"
} |
Q:
SQL multiple rows in single row
Hi everyone I have this table and I want to show result in single row group by client id and show availability for stock 1 and 2.
Here is my table
id client stock material quantity availability date
62 56 1 0 0 100 ... | {
"pile_set_name": "StackExchange"
} |
Q:
Is there a guide for when to cluster GitLab EE, for example when you reach a certain number of users or projects?
Using a private GitLab EE server, what is the best practice to use when scaling up the number of servers in your cluster? For example: "For every x users or y projects, then you should consider adding... | {
"pile_set_name": "StackExchange"
} |
Q:
Popup window link launching in window as well as in the browser tab
I'm working on a website built using Laravel and AngularJS.
I want a certain link to open in a popup window.
The javascript code is
function popitup(url) {
newwindow=window.open(url,'test','height=400,width=550');
if (window.focus) {newwi... | {
"pile_set_name": "StackExchange"
} |
Q:
Android Sharing with Subject E-Mail/Whatsapp
I am using android native sharing with this code:
Intent intent = new Intent(Intent.ACTION_SEND);
intent.putExtra(Intent.EXTRA_TEXT, "I like to share with you some stuff.");
intent.putExtra(Intent.EXTRA_SUBJECT, "I like to share with you.");
intent.setType(CONTENT_TYPE_... | {
"pile_set_name": "StackExchange"
} |
Q:
doing .length on json array returns undefined
I have following json encoded array coming from ajax call
{"country":{"0":"United States of America","United States of America":{"states":{"0":"Alaska","Alaska":{"cities":["Adak","Akiachak","Akiak","Akutan","Alakanuk"]}}}}}
Following is my ajax code
$.ajax({
metho... | {
"pile_set_name": "StackExchange"
} |
Q:
jQuery dataTables - How to clone a header to create a footer
I am using JSON to create data for DataTable but also the header. However, I noticed the footer is not created. So I need to it manually. My idea is to clone the header to create the footer but I dont' know how to do it.
I'm using the following code :
$.... | {
"pile_set_name": "StackExchange"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.