text stringlengths 181 35.5k | meta dict |
|---|---|
Q:
Wrapping around a python list as a slice operation
Consider the following simple python code
>>> L = range(3)
>>> L
[0, 1, 2]
We can take slices of this array as follows:
>>> L[1:3]
[1, 2]
Is there any way to wrap around the above array by shifting to the left
[1, 2, 0]
by simply using slice operations?
A:
Ro... | {
"pile_set_name": "StackExchange"
} |
Q:
Associating the key in one dictionary to the values in another dictionary
I have two dictionaries. 1 of them shows people and activities they like.
my_dict= {'bob': ['skiing',
'soccer',
'ballet'],
'Angela': ['skiing',
'ballet',
'hiking'] }
and so on...
The other dictionary shows the number of people in... | {
"pile_set_name": "StackExchange"
} |
Q:
Passing function instead of string for jquery easing using CoffeeScript
I'm trying to pass my own function into a jquery animation to create my own easing function. This code is written in coffeescript and is actually called, but does not perform an easing function. It merely acts like a callback function. Has any... | {
"pile_set_name": "StackExchange"
} |
Q:
How to run single instance of toolbar for mutiple tabs/window of ie
I have developed a internet explorer toolbar in VC++,In which user needs to log-in then i just update that user details in a menu but whenever i change the tab ,the toolbar gets log-out.
How can i stop running separate instance of toolbar for each... | {
"pile_set_name": "StackExchange"
} |
Q:
angular js: Prevent Bootstrap Modal from disappearing when clicking outside or pressing escape?
Am using the angular bootstrap to present a modal. But my requirement is to prevent pop-up dismissal when clicking outside the modal, or when the escape key is pressed.
I followed the tutorial on the angular bootstrap s... | {
"pile_set_name": "StackExchange"
} |
Q:
UIAnimator message sent to deallocated instance
Hey guys, I'm getting crazy.
*** -[UIAnimator removeAnimationsForTarget:]: message sent to deallocated instance 0x5ba13d0
It happens in different moments, when I scroll my tableview, when I switch my filter (a UISegmentedControl).
Help me, I'm getting crazy with thi... | {
"pile_set_name": "StackExchange"
} |
Q:
You are trying to install in deployment mode after changing your Gemfile
I'm trying to deploy my Rails app to my DigitalOcean server with
cap production deploy
But I'm getting an error,
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as deploy@178.62.2... | {
"pile_set_name": "StackExchange"
} |
Q:
Println the return values of an executable
I have deploy an matlab .m file into an windows console application. The matlab file that I deploy is in fact a matlab function which have no arguments and return a list of integer. I am running that .exe from java code using process to run my executable file. I am tried ... | {
"pile_set_name": "StackExchange"
} |
Q:
SQL Age Computed Column Always +1 Incorrect
I have a computed column that works out a persons age. What i have is as follows:
DATEDIFF(year,[DOB],COALESCE([DOD], GETDATE())
So if person is alive it works out current age from DOB, if they are deceased it works it out based on DOD and DOB.
However at present the v... | {
"pile_set_name": "StackExchange"
} |
Q:
How does Facebook Sharer select Images and other metadata when sharing my URL?
When using Facebook Sharer, Facebook will offer the user the option of using 1 of a few images pulled from the source as a preview for their link. How are these images selected, and how can I ensure that any particular image on my page ... | {
"pile_set_name": "StackExchange"
} |
Q:
What is this data structure/concept where a plot of points defines a partition to a space
I encountered an algorithm to solve a real world problem, and I remember a class I took where I made something very similar for some for a homework problem.
Basically it's a plot of points, and the lines are drawn to be equi... | {
"pile_set_name": "StackExchange"
} |
Q:
Class tufte-book and R listings code box width problem
When I run the following MWE:
\documentclass{tufte-book}
\usepackage{Sweavel}
\usepackage{amsthm}
\usepackage{mathtools}
\usepackage{soul}
%%%%%%%%%%
% R example
%%%%%%%%%%
\newtheoremstyle{rex}{}{}{}{.45\textwidth}{}{}{1 mm}{}
\theoremstyle{rex}
\newtheore... | {
"pile_set_name": "StackExchange"
} |
Q:
How to use HTML generated by JavaScript for jQuery manipulation?
I have created a map using LeafletJS and added a button which serve as a trigger powered via jQuery. However using .click() event listener didn't work. So I looked at source of the page and did some experimenting.
I have discovered that almost all of... | {
"pile_set_name": "StackExchange"
} |
Q:
defer log.SetOutput(os.Stdout) after log.SetOutput(ioutil.Discard)
In go-nsq library (https://github.com/bitly/go-nsq/blob/master/writer_test.go#L38), I found the following code:
log.SetOutput(ioutil.Discard)
defer log.SetOutput(os.Stdout)
Why does the author defer logging to stdout after discard the log?
A:
Th... | {
"pile_set_name": "StackExchange"
} |
Q:
form file upload phonegap
Please could someone upload a very basic but working version of a file upload script written in javascript that will then be phonegap friendly
I've trawled the internet trying to figure it out but most of the stuff out there is either out of date or the newer stuff seems to presume that y... | {
"pile_set_name": "StackExchange"
} |
Q:
How to enable Imagick in MAMP 4 (Lite)?
I am trying to enable Image Magick in MAMP 4 (Lite, not Pro) for PHP 7.1.0.
Everything I have found regarding this, is for MAMP 3.
It states, that I have to uncomment the line:
;extension=imagick.so
The guide said, I have to uncomment it this file:
/Applications/MAMP/conf/ph... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I populate the textbox of an HTML file input?
This one has got me stumped. I am currently rendering a form using ASP MVC, it has a bunch of fields, one of them is an <input type="file"...
The file upload works great, but when I return the form to the user, the textbox that contains the file is empty. I w... | {
"pile_set_name": "StackExchange"
} |
Q:
Is there any way that I can manipulate the parent view controller so that the subviews will be underneath the UIPageControl?
I'm implementing horizontal scrolling in an app by making use of an UIPageViewController which I set the navigation property to 'Horizontal' and the Transistion Style to 'scroll'.
Everything... | {
"pile_set_name": "StackExchange"
} |
Q:
ViewModel class throwing a null pointer when trying to display results from repository
I am trying to display results from the api once someone clicks on the adapter, I am however experiencing a null pointer with the view model class. This is the method that I want to display results with in my MatchDetailActivity... | {
"pile_set_name": "StackExchange"
} |
Q:
A GUI-Less Browser to scrape with
I'm writing a tool to get info from several websites, all require me to log in. My normal approach is to follow the requests and responses in Fiddler or alike, and follow that direct path.
However, that feels a bit strict. A minimal change in the website could break my code. So I'... | {
"pile_set_name": "StackExchange"
} |
Q:
Including procedure written in different file to package in PL/SQL
I've searched a lot to find an answer if there is a way to include procedures, which are written in different files to package.
Folders can look like:
Packages
|
Package1
|
Procedures
|
proc1.sql
proc2.sql
... | {
"pile_set_name": "StackExchange"
} |
Q:
Using collision on bounds of UIView
I have an ImageView that moves around the UIView, is it possible to detect collision of the ImageView and the view its self? For example the ImageView hits the side of the view I want it to run an action. -(void)restart {}
If this is possible can you detect which side it has col... | {
"pile_set_name": "StackExchange"
} |
Q:
Where is the maximum packet size for TCP identified as 65,535?
In doing online searches, the value "65,535" is often referenced as the maximum packet size for TCP. Where is this stated?
I ask because RFC 793 states, in relation to the "Maximum Segment Size" field...
"If this option is present, then it communicates... | {
"pile_set_name": "StackExchange"
} |
Q:
Python For Loop using List - Trying to group number pairs based on last number used in loop
Starting with list:
l = [0,1,2,3,6,7,8,9]
Trying to produce:
nl [[0, 1], [1, 2], [2, 3], [6, 7], [7, 8], [8, 9]]
Using a for loop, I was trying to iterate through the list, and use the previous number as my comparison to ... | {
"pile_set_name": "StackExchange"
} |
Q:
slow unc resolution on a win 2008 share
I've got some neworking issues with my sbs 2008 server. Basically if i try and access the server's shares via a unc path it takes a long time to resolve, but a mapped drive is quick (until i try to open a file then very often it can be slow).
This behaviour even happens on ... | {
"pile_set_name": "StackExchange"
} |
Q:
What definitions exist like __LP64__ and __arm64__ in Cocoa that differentiate platforms at compile time? Where or how are they defined?
With the introduction of arm64 as a standard architecture for the iphoneos platform it's necessary in some cases to implement compile-time conditions for code that is specific to... | {
"pile_set_name": "StackExchange"
} |
Q:
Custom Single Page Portfolio Theme
I'm thinking about creating single page portfolio theme, but I'm a little confused on how this would be done based on the different sections on the single page.
I'll explain what I would like to do and hopefully someone can help me figure this out. I'm just looking for guidance o... | {
"pile_set_name": "StackExchange"
} |
Q:
How do I return a struct value from a runtime-defined class method under ARC?
I have a class method returning a CGSize and I'd like to call it via the Objective-C runtime functions because I'm given the class and method names as string values.
I'm compiling with ARC flags in XCode 4.2.
Method signature:
+(CGSize)c... | {
"pile_set_name": "StackExchange"
} |
Q:
Want to get back into reverse engineering havn't for a few years whats a good starting point for getting back into it?
I used to make maphacks for a game called Warcraft 3. I want to get back into reverse-engineering but with today's technologies (i.e. with the internet being fast enough to download data instead o... | {
"pile_set_name": "StackExchange"
} |
Q:
Inconsistent results between tag search and tag merge search
Searching for activity gives me 200 results, almost all of which are really android activities.
But Merge Tags gives me
Urp...Really?
Are there really 1976 deleted questions with the [activity] tag on them, and if so, how do I verify that, so that I ... | {
"pile_set_name": "StackExchange"
} |
Q:
Inline ASM jmp to new memory
So I would like to load a set of assembly instructions from a file, and execute those instructions.
OR
I would like to load already compiled machine code again from a file (non-exe)
My Thoughts:
So far I've learned enough inline asm to work with c/c++ variables easily.
asm volatil... | {
"pile_set_name": "StackExchange"
} |
Q:
Is there a way to have an OpenGL context inside a GTK3 application?
I had a look at GtkGlExt, but it's only for GTK2. Unfortunately, after some hours of searching, it seems that no one take care of having something like an OpenGLDrawingArea…
Any information will be welcomed. Even if it's like "it's not possible fo... | {
"pile_set_name": "StackExchange"
} |
Q:
what's the difference between a terminal services server and an application server
I was watching this youtube video about cloud computing by eli the computer guy
and his description for the application server is a lot like how the terminal
services server work. Is there a fine line between both?
A:
A terminal... | {
"pile_set_name": "StackExchange"
} |
Q:
echo command in system api call without \n?
#include <stdio.h>
#include<stdlib.h>
void echoIt()
{
char* cmd_1 = "echo -ne {\"key\":\"value\"} > outFile";
char* cmd_2 = "echo -ne ,{\"key1\":\"value1\"} >> outFile";
system(cmd_1);
system(cmd_2);
}
int main(int argc, char **argv)
{
echoIt();
}
... | {
"pile_set_name": "StackExchange"
} |
Q:
Error in util.java in facebook sdk
I am integrating facebook with android.when i give referance to the facebook sdk then my project work fine,but when i close the ecllipse and reopen the ecllipse then error in util.java in facebook sdk project.why ?
thanks........
A:
Sometimes eclipse just get messed at startup.... | {
"pile_set_name": "StackExchange"
} |
Q:
Trouble interfacing NewHaven oled display with stm32f4
The last two days I've been trying to interface a NewHaven Dislpay with my stm32f4 discovery board with no result.
The datasheet gives poor written examples as to how to initialize this display and I'm having a really hard time figuring how this display works... | {
"pile_set_name": "StackExchange"
} |
Q:
Create a library without a class?
I'd like to know if it's possible to create a library for Arduino that does not contain a class, just functions.
I know how to create a library with a class, but I'd like to create a library of general purpose functions that don't need to be instantiated to be used. Just used like... | {
"pile_set_name": "StackExchange"
} |
Q:
How to Decode HTML Entities using Jquery/Javascript AutoComplete
I have an auto-complete script that uses php/jquery to retrieve information from database.
<script type="text/javascript">
$(function() {
var availableTags = <?php include('autocomplete.php'); ?>;
$("#artist_name").aut... | {
"pile_set_name": "StackExchange"
} |
Q:
Forcing conflation for $L(\mathbb{R})$
Here's a very silly mistake I made recently: I claimed that if $\mathbb{P}\in L(\mathbb{R})$ is a forcing which adds a real, then $$(*)\quad L(\mathbb{R})^{V^\mathbb{P}}=L(\mathbb{R})^\mathbb{P}.$$ While it is true (EDIT: no it isn't, see the answer below) that $L(\mathbb{R})... | {
"pile_set_name": "StackExchange"
} |
Q:
Why there exists an element $ y\in G\setminus L $ such that $ K/L_{G} = (\langle y \rangle L_{G})/L_{G} $?
Let $ G $ is finite supersoluble group. Then $ G $ has a chief series. Let $ L $ be a subgroup of $ G $ and $ K/L_{G} $ a chief factor of $ G $ where $ L_{G} $ is the core of $ L $ in $ G $. Since $ G $ is s... | {
"pile_set_name": "StackExchange"
} |
Q:
Firebase (Swift) - generate unique ID with numbers only?
Right now, I'm generating unique IDs with childByAutoId(), but was wondering if there was a way to do this only generating numbers, no letters or other characters?
The reason is I need to be able to automatically send this key through imessage (part of how I... | {
"pile_set_name": "StackExchange"
} |
Q:
Where I should put glue?
I have application written with Java and Guice. For this application I have several views. Some of them use Guice, other - doesn't. Now I want to separate my code into independent modules. I can devide application logic, viewers interfaces and viewers implementations. In which module shoul... | {
"pile_set_name": "StackExchange"
} |
Q:
Wie spricht man von der deutschen Sprache?
Es klingt fast wie eine Metafrage, aber wie spricht man eigentlich von der deutschen Sprache (oder von einer anderen)? Sagt man
eher die Schönheit des Deutschen
oder
die Schönheit vom Deutschen ?
(Ja, ich weiss, man kann die Schönheit der deutschen Sprache sagen ... | {
"pile_set_name": "StackExchange"
} |
Q:
Mobile Push API
I have a question on Message Keys for Mobile Push Batch API. I tried to search the documentation but could not find a relevant answer.
Please note that we are using REST API for the calls.
a. Do we need to provide Message keys for the Alert Title & Icon that appears on the device?
b. Can these def... | {
"pile_set_name": "StackExchange"
} |
Q:
I18n - locale file - use ruby - use translation()
In a I18n locale file (eg el.yml):
can I use translation method in order to use an already defined translation?
can I use ruby code inside?
For example, in the locale yml file, in several places I want to use the word "Invalid". So one approach is to translate t... | {
"pile_set_name": "StackExchange"
} |
Q:
Commenting out glfwWindowHint() makes code functional (OpenGL with GLFW), why?
sorry I had a bit of trouble with the proper name for this question, however I've run into a roadblock and I'd like to at least be informed as to the source.
I've been trying to learn to learn openGL and I'm following this tutorial:
op... | {
"pile_set_name": "StackExchange"
} |
Q:
ng-options with an array of key-pair objects
I have the following data that I got from a third-party:
countries: [
{"US":"United States"},
{"CA":"Canada"},
{"AF":"Afghanistan"},
{"AL":"Albania"},
{"DZ":"Algeria"},
{"DS":"American Samoa"},
.....
];
The way the data is organized is not h... | {
"pile_set_name": "StackExchange"
} |
Q:
Amazon Elastic Map Reduce: Job flow fails because output file is not yet generated
I have an Amazon EMR job flow that performs three tasks, the output from the first being the input to the subsequent two. The second task's output is used by the third task DistributedCache.
I've created the job flow entirely on the... | {
"pile_set_name": "StackExchange"
} |
Q:
Regex for overlapping matches
For a linguistics project I am trying to match all occurrences of one or two consonants between vowels in some text. I am trying to write a very simple matcher in PHP (preg_match_all), but once the match is consumed, it cannot match again.
The following is very simple and should do th... | {
"pile_set_name": "StackExchange"
} |
Q:
cannot load such file -- app.rb (LoadError)
Just deployed a ruby app using capistrano. I'm pretty sure I did everything as usual. Passenger though outputs the following:
cannot load such file -- app.rb (LoadError)
config.ru:1:in `require'
config.ru:1:in `block in <main>'
/home/deploy/apps/blog/shared/bundle/... | {
"pile_set_name": "StackExchange"
} |
Q:
Does "all have sinned" (Rom. 3:23, 5:12) include every single human being?
My mother and I go round and round on various Catholic vs. Protestant beliefs and in particular the Catholic belief in the pseudo-divinity of Mary. One item is whether Mary was sinless.
I pointed to Paul's statement:
Romans 3:23For all hav... | {
"pile_set_name": "StackExchange"
} |
Q:
polytime transformation from a graph to a set of binary strings
$d_H$ denotes the Hamming distance between two binary strings of the same size. The problem is stated as follows.
Given any undirected graph $(V, A)$, does there always exist a one-to-one correspondence $f : V \mapsto \Omega$, $f$ computable in polyno... | {
"pile_set_name": "StackExchange"
} |
Q:
Circular random walk
Suppose we have a circumference divided in N arcs of the same length. A particle can move on the circumference jumping from an arc to the adjacent, with probability $P_{k \to k-1}=P_{k\to k+1}=\frac{1}{2}$. I have some difficulty to find the probability that the particle fulfilled at least one... | {
"pile_set_name": "StackExchange"
} |
Q:
How to create an Orbit Chart in R? (Plotly/ggplot2)
I have spent time researching with no direction on how to create an orbit chart
I would ideally like to be able to create interactive versions (such as Plotly) but a ggplot2 would suffice as well.
Any suggestions are much appreciated!
A:
For a weekly vis contes... | {
"pile_set_name": "StackExchange"
} |
Q:
Curves and Surfaces
Suppose $$S=\{(x,y,z) \in \mathbb{R}^3 : x^2+y^2+(z-1)^2=1\}$$ and $$T=\left\{(x,y,z) \in \mathbb{R}^3 : \frac{(z+1)^2}{4}=x^2+y^2, z \geq-1 \right\}.$$
(1) Find the $z$-coordinates of the points of intersection of $S$ and $T$ and sketch the projection into the $xy$-plane of the ... | {
"pile_set_name": "StackExchange"
} |
Q:
How to add mutiple extra tabs on product page Magento 2
I want to display multiple tabs(inconstant number) on product page, with the code below by using layout(catalog_product_view) i am only able to add fixed amount of tabs.
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noN... | {
"pile_set_name": "StackExchange"
} |
Q:
create menu item with special characters in nwjs / node-webkit
Is it possible in node-webkit to create menu items that contain special characters like "ü", "ä", "ö"?
When you create a new menu item with a special character in the label, it will display it like this (same goes for tooltips):
var menu = new nw.Menu... | {
"pile_set_name": "StackExchange"
} |
Q:
Download file from url angular 2
i have url : http://localhost:9999/file/bongda.PNG
i using nodejs serve for public file :
application.use(express.static(path.join(__dirname, 'uploads')));
and
application.get('/file/:name', function (req, res, next) {
var options = {
root: __dirname + '/uploads/',
dot... | {
"pile_set_name": "StackExchange"
} |
Q:
RS232 beginner tutorials
I am really beginner in Linux and in electronics but I want to learn programming hardware using raspberry pi board, since I have one (model B).
I have installed raspbian os, now I want to understand how to connect RS232 and control my raspberry using my Linux PC (I learn how to do it using... | {
"pile_set_name": "StackExchange"
} |
Q:
Acquire WriteLock before writing shared resource
I am a beginner in multi-threading and came across this example on ReadWriteLock.
ScoreBoard
public class ScoreBoard {
private boolean scoreUpdated = false;
private int score = 0;
String health = "Not Available";
final ReentrantReadWriteLock rrwl = new Reentran... | {
"pile_set_name": "StackExchange"
} |
Q:
Scheduling and coloring problem
A group of students plan to take part in exams in the courses ${C_1}, \ldots ,{C_6}$ as follows:
$$\begin{array}{l}
{\rm{Student A}} \hspace{7 mm} {C_1}\,\,\,\,\,{C_3}\\
{\rm{Student B}} \hspace{7 mm} {C_1}\,\,\,\,\,{C_4}\,\,\,\,\,{C_5}\\
{\rm{Student C}} \hspace{7 mm} {C_2}\,\,\,\,... | {
"pile_set_name": "StackExchange"
} |
Q:
Add a dynamic supervisor to ejabberd
Is it possible to start a supervisor module in ejabberd which I can add a gen_fsm module to, per connection?
Specifically, I want to create a supervisor which I start when the server starts (or when connections come in). And I have a couple of gen_servers which I want to start... | {
"pile_set_name": "StackExchange"
} |
Q:
How to execute RemoveAliasMapping in ElasticSearch using JEST
I am trying to remove an alias mapping for an index in ES using jest.
Here is what I have tried :
// create Jest Client.
JestClient client = factory.getObject();
// create RemoveAliasMapping Object.
RemoveAliasMapping removeAliasMapping = new RemoveA... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I add a triangular shape with the thickness of my loop cuts?
I'm trying to make a simple shape but can't seem to do it right.
It's basically a right-angle shape with edges. Hard to explain, here are the pics:
http://imgur.com/vB0sT16
This is where I'm stuck:
http://imgur.com/GrUy4G4
All I need to do now ... | {
"pile_set_name": "StackExchange"
} |
Q:
How to recover basic networking utilities on Debian?
I am administrating a small server for LAN, providing basic services such as web-proxy, ldap, kerberos, afs, etc. Yesterday there was a power cut so server halted. When I restarted it no network interfaces were available and configured. I tried restarting networ... | {
"pile_set_name": "StackExchange"
} |
Q:
Как сделать смену кнопок play/close?
Подскажите пожалуйста как сделать, чтобы при click на кнопке play данная кнопка скрывалась и отображалась кнопка close, а когда закрываю видео, кнопка close скрывалась и появлялась кнопка play ?
<section class="section_1">
<div id="wideo">
<div id="play">
... | {
"pile_set_name": "StackExchange"
} |
Q:
Alternate for environment dependent global variables
There are a couple of places in my Ruby on Rails project where I need to access a value dependent on which environment Ruby on Rails was started in.
Specifically, it is the name of the MongoDB database that I need to make a connection to.
Currently I just have... | {
"pile_set_name": "StackExchange"
} |
Q:
HTML Form Directing to PHP File or Include PHP File
Which has higher security?
Including the PHP file on a web page for form use, or directing the user to a PHP file when they press a form button?
Example 1: include 'filename';
Example 2: form action="sendingtheuserhere.php" method="post"
Thank you
A:
Generally,... | {
"pile_set_name": "StackExchange"
} |
Q:
Extract fundamental data with interactive broker from specific tags in python 3
all. I want to extract the specific fundamental data from Interactive Broker API (Python 3), however, it shows the xml version. I can't get for example Market capitalization (by ' print(callback.fundamental_Data_data.find("MKTCAP"))')
... | {
"pile_set_name": "StackExchange"
} |
Q:
\llap (or \rlap) at the beginning of an indented paragraph
If I use a \llap{text} command at the beginning of an indented paragraph, the text is not indented and is put on the line above the paragraph.
\documentclass{article}
\begin{document}
\parindent=2cm
\llap{x}Hello
H\llap{x}ello
\end{document}
Using the... | {
"pile_set_name": "StackExchange"
} |
Q:
Keeping authentication state between Firebase - WebApp (.NET Core MVC)
I am creating an ASP.NET Core MVC app, where the authentication provider will be FireBase.
My Web App is hosted in Azure and, once user signs in, it sends an HTTPS request to my firebase endpoint, which looks like https://myFirebaseApp.cloudfun... | {
"pile_set_name": "StackExchange"
} |
Q:
Identify these Warhammer creatures
In a recent trailer for Total War: Warhammer, we see these creatures of Chaos for a brief moment. I don't recognize them.
Can anyone tell me who or what they are?
A:
I believe these handsome fellows are Gorebeasts.
| {
"pile_set_name": "StackExchange"
} |
Q:
C# and SQLGeometry: Combining Database Rows and WPF
I'm pretty sure I want to use the SqlGeometry datatype to store a bunch of polygons in a database. Does the SqlGeometry type inter-operate into C# and WPF. Can you just directly cast an SqlGeometry to a Shape or Path?
Secondly, Is it possible to store more than... | {
"pile_set_name": "StackExchange"
} |
Q:
Navigation through json (phyton)
I'm trying to navigation through a json file but cannot parse properly the 'headliner' node.
Here is my JSON file :
{
"resultsPage":{
"results":{
"calendarEntry":[
{
"event":{
"id":38862824,
"a... | {
"pile_set_name": "StackExchange"
} |
Q:
Ways to implement recipricals on Verilog
I want to implement a reciprical block on Verilog that will later be synthesized on an FPGA. The input should be a signed 32 bit wordlength with a 16 bit fraction length. The output should have the same format.
Example
input : x ---> output ---> 1/x
I have solved the prob... | {
"pile_set_name": "StackExchange"
} |
Q:
The set of compact open subsets of a compact set is a $\sigma$-algebra?
Let X be a compact set such that its compact open subsets form a basis for the topology. I ask if they form a $\sigma$-algebra. Let's denote this set by $\tau_c(X)$.
The first property is easy:
1)$U\in\tau_c(X)\Longrightarrow X\setminus U\in\t... | {
"pile_set_name": "StackExchange"
} |
Q:
check internet connection in background service every 30 min
Hello I want to make an app that will check internet connection in background every 30mins and if so it will send some really small json data to server.
Don't know if doing right but now I have:
package com.example.lenovotp.sender;
import android.app.Al... | {
"pile_set_name": "StackExchange"
} |
Q:
Search using REPLACE in a SELECT with PDO and .MDB ACCESS, with PHP
I'm trying to write a mysql query that will match names from a table and the name in the database can contain dots or no dots. So, for example I would like my query string fast to match all of these: fast, f.ast, f.a.s.t etc.
I use PHP, with PDO c... | {
"pile_set_name": "StackExchange"
} |
Q:
Where can I find Vagrant packages?
Vagrant is a tool to build and manage virtual machines for developers. It has a getting started on Ubuntu guide that contains iffy-looking suggestions like
$ sudo ln -s /usr/bin/ruby1.8 /usr/bin/ruby # wtf???
or installing RubyGems from source rather than from Ubuntu packages,... | {
"pile_set_name": "StackExchange"
} |
Q:
Remove CiviCRM and Drupal links / banner on profile form
we have setup an online profile form that new members to our charity can complete. The information then pulls directly into CiviCRM.
When accessing the profile / form online there are drupal and CiviCRM headers / footers and links on there that we would pref... | {
"pile_set_name": "StackExchange"
} |
Q:
Do I have to use my realtor on a For Sale by Owner home
I found a For Sale by Owner (FSBO) home that I love through a family friend. The seller has sold two of their homes before with no broker help from them or the buyer. They don't want pay any amount to a broker. I contacted the homeowner well before I signed a... | {
"pile_set_name": "StackExchange"
} |
Q:
MSSQL how to properly Lock rows and insert?
I want to insert two rows in 2 different tables but want to roll back the transaction if some pre conditions on the second table are met.
Does it work In .NET if i simply start a transaction scope and execute a sql query to check data on the second table before executing... | {
"pile_set_name": "StackExchange"
} |
Q:
JLink (flash load)/MDR32F1QI в Linux
Недавно занялся программированием Российского микроконтроллера MDR32F1QI. Проблем со сборкой не говоря уже про сам контроллер не возникло. Однако, вот уже месяц как прошиваю контроллер из Windows c помошью Keil'a или програмки из поставки отладочной платы, а отлаживаю в Linux/E... | {
"pile_set_name": "StackExchange"
} |
Q:
Evaluating $\int \sqrt{x}\ln(2x)\:\mathrm{d}x$
I am learning to an exam and stumbled upon this integral.
$$\int \sqrt{x}\ln(2x)\:\mathrm{d}x$$
the result should be $\frac{2}{3}\sqrt{x^{3}}\left(\ln(2x)-\frac{2}{3}\right)+C$, but I am still unable to get there… Every help will be appreciated.
A:
Hint
Integrate by... | {
"pile_set_name": "StackExchange"
} |
Q:
MySQL query to count user orders by type
I have this 3 tables: users, orders and order_item.
When a user can have a order, and the order item can be event only, membership only or both, and so 2 line will be written to the order_items
users tables
id | user_id | name | phone
---|-----------|-------|------
1 | ... | {
"pile_set_name": "StackExchange"
} |
Q:
Which coder should I use to code a long property using NSCoder?
I have an object I must encode using encodewithcoder but it's a 'long' number and I'm not sure if I must encode it like a simple int, a int32 or a int64. Apple's documentation doesn't seems to be useful for me to figure out since it never refers to 'l... | {
"pile_set_name": "StackExchange"
} |
Q:
algorithm to find the total number of ways to reach the last layer from the initial one of a directed graph
I want an algorithm to find the total number of ways to reach the last layer from the initial one of a directed graph whose last and first layers contain only one node .Please suggest which algorithm should ... | {
"pile_set_name": "StackExchange"
} |
Q:
How to call a function after running winform application
I am built same win Form that opens some website with webBrowser after this i need to run runMyfunction,but this doesn't happens.
Then i run runMyfunction, all stops and when i debug it it stays on
Application.Run(new Form1());
What i am missing here? Th... | {
"pile_set_name": "StackExchange"
} |
Q:
The homotopy category of the category of enriched categories
We know that if $\mathcal C$ is a combinatorial monoidal model category such that all objects are cofibrant and the class of weak equivalences is stable under filtered colimits, then $\mathsf{Cat}_{\mathcal C}$, the category of all (small) $\mathcal C$-e... | {
"pile_set_name": "StackExchange"
} |
Q:
I want to copy my present working directory location into abc.text file by replacing some sentence
I want to copy my present working directory location into abc.text file by replacing some sentence.
For example, 4th line of abc.text is "my name is narender" and i want replace pwd path instead of "my name is narend... | {
"pile_set_name": "StackExchange"
} |
Q:
How to write a React Stateless Functional Component in Typescript?
I have this:
import React, { useReducer } from 'react';
import { Item, List } from '../Types';
type Props = {
items: List;
};
const TodoList: React.SFC<Props> = ({ items, children }) => {
return items.map((item: Item) => <div key={item.id... | {
"pile_set_name": "StackExchange"
} |
Q:
What can Pygame do in terms of graphics that wxPython can't?
I want to develop a very simple 2D game in Python. Pygame is the most popular library for game development in Python, but I'm already quite familiar with wxPython and feel comfortable using it. I've even written a Tetris clone in it, and it was pretty sm... | {
"pile_set_name": "StackExchange"
} |
Q:
Advanced Active Record order by using regex
I am trying to query my Order model for all records but I want them ordered in a very specific way.
Database is a PostgreSQL database.
I want all records that start with NY first, NYN next, then all remaining records follow.
I think I'm trying to do something like this:
... | {
"pile_set_name": "StackExchange"
} |
Q:
Uniform Circular LBP face recognition implementation
I am trying to implement a basic face recognition system using Uniform Circular LBP (8 Points in 1 unit radius neighborhood).
I am taking an image, re-sizing it to 200 x 200 pixels and then splitting the image in 8x8 little images. I then compute the histogram ... | {
"pile_set_name": "StackExchange"
} |
Q:
Getting XML / HTML test results for android gradle junit test run
I'm having a hard time finding xml / html test results after running my tests through gradle either with ./gradlew test or ./gradlew testDebug. When I run either of those I wind up with an html file that shows 0 tests and no xml file at all.
Accordi... | {
"pile_set_name": "StackExchange"
} |
Q:
Project Euler problem 67 not quite correct
I have the following Python code, which I wrote for the sister problem 18.
It works perfectly for problem 18, but is slightly out for problem 67. I can't for the life of me figure out why.
triangle = [
[59],
[73, 41],
[52, 40, 9],
[26, 53, 6, 34],
[10, 51, 87, 86, 81],
[6... | {
"pile_set_name": "StackExchange"
} |
Q:
Can I use the phrase, “open and shut” for other subjects than legal cases?
There was the following passage in New York Times (April 28) under the title,
“In Baltimore, we’re all Freddie Gray.”:
“We’ve watched as Mayor Stephanie Rawlings-Blake, in conjunction with
Police Commissioner Anthony W. Batts, spent over... | {
"pile_set_name": "StackExchange"
} |
Q:
How to get the gradient color from top right to bottom left corner
I have trying to get the css gradient as like in the below bootstrap icon.
I just want two solutions from this code.
1.)How to make gradient color as like in icon(From top right to bottom left)?
2.)Vertical alignment of text within div(Possibilit... | {
"pile_set_name": "StackExchange"
} |
Q:
Rails server console output very noisy, can it be turned off?
On some of my rails application pages I am seeing reams and reams of information echoed out to the console, messages that I am not interested in such as http messages:
Started GET "/assets/jquery_ui/jquery-ui-1.8.16.custom.css?body=1" for 10.0.2.2 at ... | {
"pile_set_name": "StackExchange"
} |
Q:
Are photons eternal or do they really cease to exist?
I have read this question:
Are all electrons identical?
Same photon or different photon?
What happens when a photon "dies"?
But these do not give satisfactory answers.
When a photon is absorbed, we usually say that the photon ceases to exist as photon, and tran... | {
"pile_set_name": "StackExchange"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.