text stringlengths 181 35.5k | meta dict |
|---|---|
Q:
Separate node js query results into objects?
I have a node query that is returning results. However, the handlebars helpers on my view is treating the entire array as one result:
{{#if donations}}
{{#each donations}}
{{this}} is printing the entire set of donations!
{{/each}}
{{/if}}
The {{t... | {
"pile_set_name": "StackExchange"
} |
Q:
RowStyles and Rows doesn't match in TableLayoutPanel?
We are hiding controls in a TableLayoutPanel. We have been using the following code for a while for hiding a row that shouldn't be visible.
int controlRow = m_panel.GetPositionFromControl(control).Row;
m_panel.RowStyles[controlRow].SizeType = SizeType.Absolute... | {
"pile_set_name": "StackExchange"
} |
Q:
Backbone + JQuery Plugin won't work (Written in CoffeeScript)
Ok, I have a simple JQuery plugin that when applied to a div will neatly load all the images within that div using a preloader image. This works fine.
However, in Backbone i'm appending data from JSON to a element after the page has been loaded. Theref... | {
"pile_set_name": "StackExchange"
} |
Q:
img слайдер в java script
Всем привет!
Пишу код для слайда в определённом диве.
Не получается заменить картину. В чём может быть проблема в данном коде ?
Попробувал 3 варианта и не работают, в чём может быть проблема ? Я не получаю никаких ошибок в консоле и в IDE!
var images = [
"BackgroundSlideI... | {
"pile_set_name": "StackExchange"
} |
Q:
How to programmatically connect to a particular PC of unknown IP from a WiFi network?
I want to connect and transfer data between a PC and an Android device both of which are on the same local WiFi network.
I cannot use the local IP as such in the code to actually get the connection going because it does not remai... | {
"pile_set_name": "StackExchange"
} |
Q:
get the margin size of an element with jquery
How can I get the properties of an element with jquery? I want to get the size of the margin of a div in particular.
I have set the style of the div in a .css file, for instance,
.item-form {
margin:0px 0px 10px 0px;
background: blue;
}
the html,
<form>
...
<div ... | {
"pile_set_name": "StackExchange"
} |
Q:
How to fire following command from vc++?
I want to change image's exif data. For that I've used Exiv2.exe. Now I want to fire command from my program which is written in vc++ 08. For modify GPS data of image, exive command is
exiv2 -M"set Exif.GPSInfo.GPSLatitude 4/1 15/1 33/1" D:\test\image.jpg
I've placed exiv2.... | {
"pile_set_name": "StackExchange"
} |
Q:
window.close() not working on Windows Mobile 6.5
I'm calling a webpage from a mobile device (a motorola MC55A0).
The browser is IEmobile.
The page has a button on it, a press on that button calls some javascript code ending with the line:
window.close();
The javascript executes fine until that line, where nothing... | {
"pile_set_name": "StackExchange"
} |
Q:
Need help on deploying node js project?
I am very much new to Node JS. I have developed a node js project, in my local machine I am running the command 'node app.js' through command prompt. Now I want to deploy this project in our QA environment. Can someone help me on how I can bundle project and deploy it in QA ... | {
"pile_set_name": "StackExchange"
} |
Q:
Is there a name for the center of a line?
Is there a name for the center point for a line?
For example:
---------o---------
If the dashes represent a straight line and the O represents the center of that line, what would the name for that center point be?
A:
A line goes forever in both directions, so it has no c... | {
"pile_set_name": "StackExchange"
} |
Q:
How do I merge data from several rows in SQL Server
Here is my situation:
TABLE PEOPLE (code, name, + other fields that are identical for records with same code)
1;John Wayne
2;Jack Smith
2;Jill Smith
3;Bill Peyton
3;Gill Peyton
3;Billy Peyton
The result I would like:
VIEW PEOPLE (code, name, + other fields that ... | {
"pile_set_name": "StackExchange"
} |
Q:
Spring Security Oauth - Custom format for OAuth2Exceptions
The error format of spring security oauth conforms with the OAuth spec and looks like this.
{
"error":"insufficient_scope",
"error_description":"Insufficient scope for this resource",
"scope":"do.something"
}
Especially on a resource server I find i... | {
"pile_set_name": "StackExchange"
} |
Q:
A potentially dangerous Request.Form value was detected from the client in local server
I am getting this error when I click on ASP Button. Error: A potentially dangerous Request.Form value was detected from the client
I have read few question of stack over flow. The point here is the button is working fine when I... | {
"pile_set_name": "StackExchange"
} |
Q:
Posicionamento de imagem
Estou com um problema no posicionamento de imagens em um site que estou desenvolvendo.
Algumas delas aparentemente não estão se encaixando em uma linha, no caso, posicionei 4 por linha.
Fiz algumas tentativas, criei um div que acomodou todo o conteúdo da imagem, ficando assim:
<div class... | {
"pile_set_name": "StackExchange"
} |
Q:
possible to select multiple options with xpath?
/html/body/form/select/option[@val = '1' and @val = '3']
so that means select the first and third option in a select-multiple form ?
A:
Did you mean or?
/html/body/form/select/option[@val = '1' or @val = '3']
That should select both elements. By using and you're... | {
"pile_set_name": "StackExchange"
} |
Q:
X11 Forwarding for user without home directory
I have a privileged user without home folder with ssh access. I try to do X forwarding but I get the message /usr/bin/xauth: error in locking authority file /home/user/.Xauthority
If I don't have home folder logically .Xauthority doesn't exist.
Is there a way to repl... | {
"pile_set_name": "StackExchange"
} |
Q:
How do I set up two monitors on two very different graphics cards?
I have two video cards, one running each of two identical monitors. My main card is an Nvidia GeForce 750 Ti, and the secondary is a Radeon HD5500. When I boot from live USB, the monitor attached to the HD5500 displays the desktop, and the other di... | {
"pile_set_name": "StackExchange"
} |
Q:
What happened to the Future Flash?
In The Flash, the Flash from the future traveled back in time to stop the Reverse-Flash from killing his mother. He failed, but where did he go? The Reverse-Flash was stuck in past, so he killed and took the appearance of Doctor Harrison Wells. In his hidden room we see holograms... | {
"pile_set_name": "StackExchange"
} |
Q:
Парсинг JSON в shell
Есть JSON такого типа
{"response":{"upload_url":"url"}}
Как мне забрать url средствами только shell? В JSON.awk не разобрался, jq не поддерживается в моем случае
A:
Для разбора JSON в командной строке воспользуйтесь утилитой Jshon, она позволяет легко извлекать поля из объекта произвольной... | {
"pile_set_name": "StackExchange"
} |
Q:
XSL transform to include css
I'm attempting to duplicate an xml via XSLT and the CSS from the source XML is being placed in the body of the xhtml xml file and the head element appears to be empty. How do I get the CSS reference in the correct place so that it formats the newly created XML file.
Source XML
<?xml v... | {
"pile_set_name": "StackExchange"
} |
Q:
Bool? not nullable
I have following field in my class:
public bool? EitherObject1OrObject2Exists => ((Object1 != null || Object2 != null) && !(Object1 != null && Object2 != null)) ? true : null;
But in Visual Studio I get an IntelliSense error that there cannot be a conversion between "bool" and "NULL" even thoug... | {
"pile_set_name": "StackExchange"
} |
Q:
No. of grid walks not going through four points
Given a $11\times11$ grid, and a grid walk is starts at point $(0,0)$ and finishes at the point $(10,10)$. The coordinates of each move are non-decreasing (i.e., you can either move right or up only). How many paths are possible if points $(3,3), (7,2), (3,7),(7,7)$ ... | {
"pile_set_name": "StackExchange"
} |
Q:
Args with Spring MVC
I need help to pars args in a method inside my controller.
i have a form for sending my parameter to function
<form method="post" action="/">
<input type="text" id="query" placeholder="file to search ...">
<input type="submit" id="submit" value="fetch!">
</form>
and in my controller ... | {
"pile_set_name": "StackExchange"
} |
Q:
Wifi problems with rtl8723be in Ubuntu 14.04
I have dual booted my Windows 8 laptop with Ubuntu 14.04. The wifi driver is Realtek rtl8723be. It didn't use to work but I updated the kernel to 3.18 and reinstalled the driver and that seemed to solve the problem for a few hours. Then it would be connected for around ... | {
"pile_set_name": "StackExchange"
} |
Q:
cross combine two RDDs using pyspark
How can I cross combine (is this the correct way to describe?) the two RDDS?
input:
rdd1 = [a, b]
rdd2 = [c, d]
output:
rdd3 = [(a, c), (a, d), (b, c), (b, d)]
I tried rdd3 = rdd1.flatMap(lambda x: rdd2.map(lambda y: (x, y)), it complains that It appears that you are attem... | {
"pile_set_name": "StackExchange"
} |
Q:
Can the brain detect the passage of a neutrino?
On a few occasions either in bed or sitting around a fire, with my eyes closed, I rarely but sometimes see a very quick fast flash of white and then, with my eyes still closed, the flash disappears immediately. It happens so fast that I sit up and rethink if it was e... | {
"pile_set_name": "StackExchange"
} |
Q:
PreparedStatement and DateTime
I am trying to use DateTime from the Joda library and I realized that PreparedStatements doesn't support DateTime. What can I do instead? I can set TimeStamp but that's not really what I want. Is there a workaround or do I have to use TimeStamp? In my MySQL database I have also chose... | {
"pile_set_name": "StackExchange"
} |
Q:
Performance - Ruby - Compare large array of hashes (dictionary) to primary hash; update resulting value
I'm attempting to compare my data, which is in the format of an array of hashes, with another large array of hashes (~50K server names and tags) which serves as a dictionary. The dictionary is stripped down to ... | {
"pile_set_name": "StackExchange"
} |
Q:
Need help coloring/replacing arbitrary strings using Bash and sed
I'm using a bash script based on the technique used here: Get color output in bash to color the output of my builds and other scripts to make things easier to read. One of the steps in my build executes a "git pull" and the git server spits out a "... | {
"pile_set_name": "StackExchange"
} |
Q:
Upload from clipboard not working in VBA Excel
After executing a transaction, I get bunch of user ids, then I copy it and paste it into another part of the transaction
I want to do this with the help of VBA but "UPLOAD FROM CLIPBOARD" doesn't seem to work.
Anybody can help?
Set SAPGUIAuto = GetObject("SAPGUI")
Set... | {
"pile_set_name": "StackExchange"
} |
Q:
how to change id of form elements before form gets submitted?
I have a table with many rows and each row has select lists. Something like this:
| USER | MANAGER | DEPARTMENT |
| Rob | [John Smith |V] | [Sales |V] |
| Sue | [Bob Jones |V] | [Support |V] |
The user is free to ad... | {
"pile_set_name": "StackExchange"
} |
Q:
Shiro creates a new session for every getSession()
I'm using shiro (1.2.0) in a tapestry app. Right now I only want to use it for session management. While default session management (using ServletContainerSessionManager) works, when I try to switch to native sessions shiro stops keeping track of them:
public stat... | {
"pile_set_name": "StackExchange"
} |
Q:
All UPPERCASE to SentenceCase
I have a database that has tables in all CAPITALS eg - TABLENAME.
In my tt file I want to convert these to names to Sentence Case eg - TableName
Has anyone had any success in doing this before?
If all else failed I guess i could capitalise the first letter eg - Tablename would be bett... | {
"pile_set_name": "StackExchange"
} |
Q:
Not repeating the function once waypoint reached
Here is the JS for the waypoint call and graph bar function. It repeats every time the waypoint is reached and I would like it to recognise that the waypoint has been reached once already ad not to repeat function. Thanks for your help. :)
$.getScript('http://imak... | {
"pile_set_name": "StackExchange"
} |
Q:
How to open the terminal from inside a snap application?
When i am trying to open my repo in the terminal from the Gitkraken GUI. It states:
There is no terminal configured in your settings. Would you like to configure your terminal now?
Next, I manually set the gnome terminal as custom terminal command with gno... | {
"pile_set_name": "StackExchange"
} |
Q:
Good strategy to handle dependencies between sequential pull requests
Bob clones the project and creates a local branch A from master.
Bob adds some useful helper classes cleaning/refactoring unit tests setups and clean all exising tests thanks to them.
Bob commits, pushes to remote server, then creates a pull req... | {
"pile_set_name": "StackExchange"
} |
Q:
Make order by with Query in AOT
I have made a query in AOT. My goal is to print information using Group by "CustGroup" and Order by "count(RecId)" desc of CustTable table. The group by works properly, but the order by does not. I can not understand why...
This is what my query looks like:
This is code I use:
S... | {
"pile_set_name": "StackExchange"
} |
Q:
angular2 - Change color button dynamically
I am creating an application in angular 2 and typescript.
I want to put some background color in my buttons depending on an variable.
<div>
<button md-button>1. Choose travel</button>
<button md-button>2. Choose seats</button>
<button md-button>3. Fill data</button>... | {
"pile_set_name": "StackExchange"
} |
Q:
Writing partition for quicksort in scheme
I am having a lot of trouble with writing scheme...
I am trying to write quicksort using scheme. I have seen tons of answers but they don't really make any sense to me and this is mostly because I barely understand functional programming at all.
I have defined my pivot li... | {
"pile_set_name": "StackExchange"
} |
Q:
ES6 Set, WeakSet, Map and WeakMap
There is already some questions about map and weak maps, like this: What's the difference between ES6 Map and WeakMap? but I would like to ask in which situation should I favor the use of these data structures? Or what should I take in consideration when I favor one over the other... | {
"pile_set_name": "StackExchange"
} |
Q:
Are all $[[n, k, d]]$ quantum codes equivalent to additive self-orthogonal $GF(4)^n$ classical codes?
Theorem 2 of [1] states:
Suppose $C$ is an additive self-orthogonal sub-code of $\textrm{GF}(4)^n$, containing $2^{n-k}$ vectors, such that there are no vectors of weight $<d$ in $C^\perp/C$. Then any eigenspace ... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I know whether a random "known not TTL" RS232 device will work with any old random USB-RS232 converter?
I've been hunting around for RS232 converters for a little while now, trying to get my head around the way RS232 works (or at least how it's supposed to), and the way RS232-USB converters (more frequentl... | {
"pile_set_name": "StackExchange"
} |
Q:
Remove keys from anywhere in a JSON string without deserialization
Without deserializing and reserializing the following deeply-nested JSON string (if this is possible), how to remove any key with the name "REMOVEME" from any nested level?
Tried:
Reluctantly tried deserializing to JsonObject / LinkedHashMap to tra... | {
"pile_set_name": "StackExchange"
} |
Q:
Are variables case-sensitive in exprtk?
When I define an expression in my exprtk string, like
var x := sqrt(y);
and I try to add another variable
var X := 2*z;
do I get a conflict? Thanks in advance.
A:
I just found the answer: variables defined within exprtk expressions are NOT case sensitive. In the example ... | {
"pile_set_name": "StackExchange"
} |
Q:
Why does the op integer not change when the buttons are pressed?
I'm new to python so this code is a mess but I have found a bug I can't fix. The program is meant to give you maths sums to solve and I was using buttons that sent an int as a value from 1 to 4 then that is tested in the guess function to generate th... | {
"pile_set_name": "StackExchange"
} |
Q:
AWS Static web hosting - tedious to update site
I'm using AWS to host a static website. Unfortunately, it's very tedious to upload the directory to S3. Is there any way to streamline the process?
A:
Have you considered using AWSCLI - AWS Command Line Interface to interact with AWS Services & resources.
Once you ... | {
"pile_set_name": "StackExchange"
} |
Q:
Call to undefined function curl_init() error with WAMP
I know that it's a very often asked problem, but I've tried all that I found and it still doesn't work.
I use WAMP 2.2 on Windows 7 (64 bits), and PHP 5.4.3. When I call curl_init() in localhost, I've this error message :
Call to undefined function curl_init()... | {
"pile_set_name": "StackExchange"
} |
Q:
gdb doesn't give a backtrace when a breakpoint is reached but it is specified in the commands file
I'm trying to get a backtrace when a line in the C code is reached.
I feed the command file to gdb and it works except for when it reaches the breakpoint nothing happens.
I am using Debian Testing with the gdb versio... | {
"pile_set_name": "StackExchange"
} |
Q:
\insertlecture in subtitle generates error but \insertlecturenumber does not
In beamer, if I use \insertlecture in a subtitle I get:
Undefined control sequence \begin{document}
but the file compiles to PDF (with XeLaTeX) correctly anyway.
But I can use \insertlecturenumber with no error.
MWE:
\documentclass[xcol... | {
"pile_set_name": "StackExchange"
} |
Q:
How to find minimum of each curvature point?
I'm using Polynomial curve fitting to analyze my data (polyfit and polyval) and i got the curve like this. I want to find the minimum point of each curve (red dot). If i use min() i will get the point only one curve. How to get both point?
Thnak you so much
A:
Simp... | {
"pile_set_name": "StackExchange"
} |
Q:
Graph disconnected: cannot obtain value for tensor Tensor("conv2d_1_input:0", shape=(?, 128, 128, 1), dtype=float32)
I'm trying to implement an autoencoder which gets 3 different inputs and fuse this three image. I want to get the output of a layer in the encoder and concatenate it with a layer in the decoder but ... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I tell the differences between a 3G, 3G LTE, and 4G phone?
I apologize if this is the wrong place to ask, but it looks like the Gadget StackExchange has been closed.
I've been doing research on mobile phones and looking at different Android devices and I'm a bit confused. Often times, the device advertises... | {
"pile_set_name": "StackExchange"
} |
Q:
Find links via AJAX and bind them same action without duplicating definition
I've already saw Event binding on dynamically created elements? before asking this question but I still don't know why I cannot find a elements from AJAX and don't know how to write the code best way without need to duplicate the whole bi... | {
"pile_set_name": "StackExchange"
} |
Q:
XML not well formed (invalid token)
When I am trying to build my app using xamarin for android, an error pops up saying
Error parsing XML: not well-formed (invalid token) in line 17
I cannot seem to find where the bad structure is though. As it seem, it has something to do with the way I try to include buttons ... | {
"pile_set_name": "StackExchange"
} |
Q:
Increasing the speed of a ball in a brick breaker game
just starting a tuto and I'd like to constantly increase the speed of my ball, but damn I'm so bad at maths I can't even figure how to do, here's what I do at the moment :
// I'm giving the first force (random x) when you engage the ball, in the Start method
... | {
"pile_set_name": "StackExchange"
} |
Q:
using pointers in c programming
I have a problem with pointers in c programming. I would love to get variables from the command line in Linux and than be assigning the value of the variables from command line to a non pointer variable and printing them out!
char *argv[]
this is the function that takes everything ... | {
"pile_set_name": "StackExchange"
} |
Q:
If a readied ranged attack action is used against the appearance of a burrowing creature, does the attack provoke an attack of opportunity?
In a recent D&D 4e session the characters readied an action, with the condition being the appearance of a burrowing creature from the ground.
Suddenly the creature burst from ... | {
"pile_set_name": "StackExchange"
} |
Q:
Linha com valor NULL é desconsiderada pela função SUM?
Participei do concurso do IFNMG, prova elaborada pela Fundação CEFET.
Resolvi a questão a seguir e marquei a letra C, mas o gabarito diz que o correto é a letra A.
Questão 31
Considere que a tabela NotaFiscalItem está armazenada em um
sistema gerenciador de ... | {
"pile_set_name": "StackExchange"
} |
Q:
How to generate a dict from string separated by semicolon?
I am using Beautifulsoup to search for a specific number in HTML but got stuck here.
The raw data is:
<div class='box_content' hn_bookmark='true' ng_init=" bookmarked=false; bookmark_id=''; bookmarks_path='/en-US/bookmarks'; bookmarkable_id='000000'; book... | {
"pile_set_name": "StackExchange"
} |
Q:
Disabling WebSockets compression and xor mask on the Browser side
I use "WS" library in my NodeJS project. It is possible to disable compression? I'm trying to do this on the server side
ws = new WebSocketServer({port: 8889, perMessageDeflate: false})
but it does not work
Accept-Encoding: gzip, deflate
Sec-WebSoc... | {
"pile_set_name": "StackExchange"
} |
Q:
how to check for file extension in discord.py
i am creating a python discord bot, and i have a function that if a message is sent in a certain channel,
it randomly sends out a response,everything works fine but i want to restrict the bot to react only when the sent message contains a png, jpg or jpeg file
heres th... | {
"pile_set_name": "StackExchange"
} |
Q:
19F NMR of hexafluorobromine(VII) cation
$\ce{[BrF6]+}$ is an octahedral species, and should have only one fluorine environment due to the symmetry. $\ce{Br}$ has nuclear spin $I=3/2$ and therefore is unlikely to cause splitting due to rapid interconversion between its spin up and spin down states averaging to a z... | {
"pile_set_name": "StackExchange"
} |
Q:
Serilog doesn't work in Reliable Actor Services
I have two Service Fabric application. The first is an Asp.Net Core Service Fabric, the second is an Actor Service that run with timer.
Both are set up with Serilog. The Asp.Net Core work very well. no problem there, but the second service, Actor Service, I use the s... | {
"pile_set_name": "StackExchange"
} |
Q:
Generating RSA and writing to file
why do i get exception in this code:
I get output:
[*] Error creating your key
[*] Error creating your key
import os, hashlib
from Crypto.Cipher import AES
from Crypto.PublicKey import RSA
raw_key = RSA.generate(2048)
private_key = raw_key.exportKey('PEM')
try:
with open('mast... | {
"pile_set_name": "StackExchange"
} |
Q:
Adding a directory to the system path variable through registry
I am trying to add a directory to the PATH variable in windows. This is what I am entering the command line. (Or a batch file)
@echo off
set value=%path%;%ProgramFiles%\AtomScript\
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Sessions ... | {
"pile_set_name": "StackExchange"
} |
Q:
Minimum release voltage for Relay
I have an electronic socket that I am using and it uses a HLS8L-DC6V-S-C Helishun relay with a minimum release voltage of 0.3 Volts & max operating voltage 4.5 V
Datasheet - http://www.helishun.com/secure/pdt/hls8-t73.pdf
The voltage being applied to this relay in the socket is ar... | {
"pile_set_name": "StackExchange"
} |
Q:
PHP dynamic select box using $_POST?
I was wondering if there is a way similar to the code below in order to use 'conditional' select boxes. I tried a few jquery methods, but I really got stuck since I use wordpress, and this should be a search box so it complicates things for me.
<form name="main" method="post">
... | {
"pile_set_name": "StackExchange"
} |
Q:
Filtering a signal to have a constant exponential moving average
Problem
I wish to filter a discrete-time input signal, $x[n]$, so as the output signal's, $y[n]$, exponential moving average, $a[n+1] = a[n] + \alpha(y[n] - a[n])$, tracks around a constant reference $\mu_x$ such that $\mathbb{E}\{y[n]\} \approx \mu_... | {
"pile_set_name": "StackExchange"
} |
Q:
Preview multiple uploaded images in symfony
I wanna preview my images with javascript before uploading it, I'm working in symfony & I use its FileType for form.. Here is my Code :
{% block content %}
{{ form_start(form, {'attr': {'id': 'image_form', 'class': 'form-horizontal container'}} ) }}
<div class=... | {
"pile_set_name": "StackExchange"
} |
Q:
Create folder and make ES File Explorer add icon of my app
I want to associate folder with my application, like WhatsApp and Viber does.
I tried to create folder
File folder = new File(Environment.getExternalStorageDirectory().getPath() + "/MyAppName");
folder.mkdir();
But that MyAppName folder is not associated ... | {
"pile_set_name": "StackExchange"
} |
Q:
PHP/MySQL Insert into Database not working
I tried everything I could to fix the link of code but everything I tried gave me a white screen I know that this line of code is the only code is the only one that has a syntax error and the rest of the code is 100% fine. I am trying to insert name, email, password from ... | {
"pile_set_name": "StackExchange"
} |
Q:
Using find command but getting the error "paths must precede expression"
I'm trying to use the find command, but get "paths must exceed expression:name"
I've looked at the answers given here previously and added quotes around my expression, but it still is giving me the same error. My $SUB path is /home/year/sess... | {
"pile_set_name": "StackExchange"
} |
Q:
pandas remove records conditionally based on records count of groups
I have a dataframe like this
import pandas as pd
import numpy as np
raw_data = {'Country':['UK','UK','UK','UK','UK','UK','UK','UK','UK','UK','UK','UK','UK','UK','UK','UK','UK','UK','UK','UK','UK'],
'Product':['A','A','A','A','B','B','B','B'... | {
"pile_set_name": "StackExchange"
} |
Q:
Format/interpretation of NOAA Elevation Data
I've downloaded the all10g data from https://www.ngdc.noaa.gov/mgg/topo/gltiles.html
and also the globedocumentationmanual.pdf from the "The Globe Project Report" link on that page.
The only relevant format info I see there is on pages#82 (the 90th page) through 85.
Ar... | {
"pile_set_name": "StackExchange"
} |
Q:
Splice array of objects by max-length
There's an array of objects like
var a =[
{type: 't1', value: 'x1'},
{type: 't1', value: 'x2'},
{type: 't1', value: 'x3'},
{type: 't1', value: 'x4'},
{type: 't2', value: 'x5'},
{type: 't2', value: 'x1'},
{type: 't2', value: 'x2'},
{type: 't2', value: 'x3'},
{type: 't2', value:... | {
"pile_set_name": "StackExchange"
} |
Q:
Random Number Generator
I need to write a program in Java to generate random numbers within the range [0,1] using the formula:
Xi = (aXi-1 + b) mod m
assuming any fixed int values of a, b & m and X0 = 0.5 (ie i=0)
How do I go about doing this?
i tried doing this but it's obviously wrong:
int a = 25173, b = 1384... | {
"pile_set_name": "StackExchange"
} |
Q:
AFTER INSERT Trigger not firing
I have the below trigger code, which is working for UPDATE, but not INSERT
(we get no errors)
CREATE TRIGGER [dbo].[tr_ClientHistoryTUPEEmployee] ON [dbo].t_HR_TUPEEmployee]
AFTER INSERT, UPDATE
AS
DECLARE @Username int, @Inserted bit, @Deleted bit
SELECT @Inserted = 0, @Deleted =... | {
"pile_set_name": "StackExchange"
} |
Q:
.htaccess to load specific index file when url not exist
I am updating urls of a project and have this old url:
http://www.example.com/phones/index.php
This folder phones doesnt exists anymore but I want to catch the old traffic and when someone visits this url I want .htaccess file to load file store.php which is... | {
"pile_set_name": "StackExchange"
} |
Q:
Normal subgroup question/example
Give an example(s) of a group $G$ and $H\leq G$ (i.e., $H$ is a subgroup of $G$) where $H$ is not normal in $G$.
What about $S_3$ and $\langle(1\;2)\rangle=\{(1),(1\;2)\}$? [Since $(1\;2\;3)(1\;2)(1\;3\;2)=(2\;3)\not\in\langle(1\;2)\rangle$] Does this work? Any other ideas?
A:
I... | {
"pile_set_name": "StackExchange"
} |
Q:
HTTP Response in Android - NetworkOnMainThreadException
I want to check the HTTP response of a certain URL before loading into a webview. I only want to load webview if http response code is 200. This is a workaround for intercepting http errors. I have below:
HttpGet httpRequest = new HttpGet( "http://example.com... | {
"pile_set_name": "StackExchange"
} |
Q:
Как сделать анимацию вращения круга в звезде?
Как сделать анимацию вращения круга в звезде?
<svg>
<polygon fill-rule="evenodd" stroke="black"
points="150,0 121,90 198,35 102,35 179,90"/>
<circle r="15" cx="150" cy="50" fill="none" stroke="red" stroke-width="4"/>
</svg>
A:
Круг надо разбить на сегмент... | {
"pile_set_name": "StackExchange"
} |
Q:
Char array in c & pointer addition
My instructors give me the following function. So don't blame me for ambiguity lol
void step_step_step(char *first, char *second, char *third)
{
if (third[3] == second[2] + 8 && second[2] == first[1] + 8)
printf("8: Illinois\n");
else
printf("8: ER... | {
"pile_set_name": "StackExchange"
} |
Q:
Get number of days between two entries with mongodb
I would like to get number of days between my two last entries with mongoDb grouped by number of days. Here is my table :
-------------------------------------------------
| mac address | date |
----------------------------------------... | {
"pile_set_name": "StackExchange"
} |
Q:
Return all values in a function by entering "ALL"
I have a function that lists all of a states zip codes and populations of each zip when a state abbreviation is entered (for example "KY" or "AL").
I want to return all zip codes and populations when "ALL" is entered, but I can't seem to figure out how to do that.... | {
"pile_set_name": "StackExchange"
} |
Q:
Can't include STL header files with Android NDK r5
I've got a very simplistic application:
#include <vector>
void android_main(struct android_app* state)
{
}
When I build it, I get the following error:
test/jni/main.c:14:18: error: vector:
No such file or directory
How the hell do I include STL header files... | {
"pile_set_name": "StackExchange"
} |
Q:
Independence in card deck
Suppose you pick three cards, one at a time without replacement, from a
pack of 52 cards. Let Hi be the event that the ith card is hearts.
How can i prove that H1 and H2 (first being a heart, and second being a heart) are independent or not
A:
They are dependent. $H_1$ has probability... | {
"pile_set_name": "StackExchange"
} |
Q:
dynamic nested object loop js
here is a json object i want to loop through:
{
node: 'tree',
text: 'Main Node',
childs:[
{
node: 'tree',
text: 'First Child',
childs:[{
node: 'tree',
text: 'first child child'
}....]
},{
n... | {
"pile_set_name": "StackExchange"
} |
Q:
Can main() and its parameters have attributes?
In standard C++, can the main function and its parameters have attributes?
For example, is this following legal?
[[noreturn]] int main() { std::abort(); }
or something like
[[nodiscard, carries_dependency]]
int main(int argc [[maybe_unused]],
char * argv [[c... | {
"pile_set_name": "StackExchange"
} |
Q:
Why are braces after a for() loop statement making my code behave different?
#include<iostream>
int main()
{
int n,t,i;
cout<<"input a number"<<endl;
cin>>n;
for(i=1;i<=10;++i)
t=n*i;
cout<<t<<endl;
return 0;
}
here if I input 10 on console screen then the the output I get is just 100,
while below when I input t... | {
"pile_set_name": "StackExchange"
} |
Q:
Where do folds come from on a surfboard and are they bad?
Why are there sometimes folds on the top of a surfboard and where do they come from? Do they mean the board is in bad shape (or more exactly, is the board less usable or less effective)?
A:
Those are creases. They effect performance as the board will fle... | {
"pile_set_name": "StackExchange"
} |
Q:
Conditionally dequeue dependency of scripts
Please note that, I'm not telling about conditionally enqueue/dequeue scripts, I'm referring to conditionally dequeue certain dependencies from an existing enqueued scripts in front end. And please note the question is not plugin-specific. I want to be enlightened about ... | {
"pile_set_name": "StackExchange"
} |
Q:
"Multi-facets" rope puzzle
I've done the following, can you tell me if it's correct?
If $n$ is the number of sides of the rope and $k$ is the number of rotation, e.g. $k=0$ for glue each side to itself then I think the number of colours needed is $$ \# \tt{colours} = \gcd (n,k)$$
I think I can view the rope as $G... | {
"pile_set_name": "StackExchange"
} |
Q:
Undefined index in PHP post with AJAX
In my local machine, I am trying to save data from a json to my mysql database, I am using Wampserver.
In my html page (saveInfo.php), I have this jquery code:
<script type="text/javascript">
var jsObj = {"user_id":5, "login":"hsm"};
var jsonobj = JSON.... | {
"pile_set_name": "StackExchange"
} |
Q:
Which Mistake in Webview based Android Browser Application?
I'm making an Android Browser Application. Its splash image opens after loading but afterward it crashes. I haven't found what mistake I have in MainActivity.java code.
When i run the code, my default AVD tells me that my application has crashed.
MainActi... | {
"pile_set_name": "StackExchange"
} |
Q:
Permission to activate an Iteration in TFS 2013
I want to give permission for a specific user in my TFS project to do the following.
Create Iterations
Edit the Iterations
Activate the Iteration (In simpler words, 'tick' the Iterations so that they can be seen by others in the team)
MSDN says that
To create or ... | {
"pile_set_name": "StackExchange"
} |
Q:
How to configure Parsley remote validator to handle my API response
I have tried all the possible approaches found, but I am struggled to get the default remote validator working.
I'm just trying to achieve to check if the mail for a registration page of a user is duplicated. Thus, I declare the input as follows:
... | {
"pile_set_name": "StackExchange"
} |
Q:
Is there an element is best for "Drag and drop" web applications?
I'm building my own "Drag and Drop" web application.
I'm loading data from MySQL and create a HTML element with it.
So I have ID, length, height and so on.
Later I'm going to drag these "blocks" into a square.
Now, which HTML element is best for thi... | {
"pile_set_name": "StackExchange"
} |
Q:
How are entities with an identity and a mutable persistent state modelled in a functional programming language?
In an answer to this question (written by Pete) there are some considerations about OOP versus FP. In particular, it is suggested that FP languages are not very suitable for modelling (persistent) object... | {
"pile_set_name": "StackExchange"
} |
Q:
Can a .NET web application run with only dlls and configs?
I remember being told that you can run a .NET web application with only it's DLLs and without the various aspx, ascx asmx files (obviously any html and js files are still required).
Is it possible to publish a .NET web application by copying only the dlls,... | {
"pile_set_name": "StackExchange"
} |
Q:
Populate "Lookup Table" with random values
I have three tables, A B and C. For every entry in A x B (where x is a Cartesian product, or cross join) there is an entry in C.
In other words, the table for C might look like this, if there were 2 entries for A and 3 for B:
| A_ID | B_ID | C_Val |
---------------------... | {
"pile_set_name": "StackExchange"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.