text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
Request parameter in jsp
As you know in asp, we can do
Response.Write("page.aspx?id=3");
On the other page Request.QueryString["id"];
Well, i want to do samething in jsp using servlets through doGet() and do Post() method.
I want to ask how it can be done?
In the doGet or doPost you have access to the request object... | common-pile/stackexchange_filtered |
How can I show/hide points in OpenGL based on user input?
I have a "draw" function which currently just uses an interaction file to draw points based on the left mouse click from the user. The drawing of the points works fine, but I can not figure out how to "hide" the points based on a user command. Currently, I have ... | common-pile/stackexchange_filtered |
Nginx serving css, but just half of it
I just upload a website Django application on AWS using NGINX and uwsgi protocol. The website is running fine but only part of the minified version of CSS is loaded. More specificaly the part of the css which configures the footer section of the page doesn't load. But all the CSS ... | common-pile/stackexchange_filtered |
javascript form.submit() losing querystring created by GA _linkByPost
We have a booking form that POSTs to the parent company website. Because this is a different domain we need to implement the GA _linkByPost to pass the GA tracking cookie info across domains.
As the booking form is in a .NET user control it does a po... | common-pile/stackexchange_filtered |
Why can't attribute names be Python keywords?
There is a restriction on the syntax of attribute access, in Python (at least in the CPython 2.7.2 implementation):
>>> class C(object): pass
>>> o = C()
>>> o.x = 123 # Works
>>> o.if = 123
o.if = 123
^
SyntaxError: invalid syntax
My question is twofold:
Is t... | common-pile/stackexchange_filtered |
prob with laravel input not found
I am trying to take a variable from a textbox called 'skill' and dump whatever is typed but I get:
HandymanController.php line 32:
Fatal error: Class 'App\Http\Controllers\Input' not found
How come? It's a built-in feature isn't it?
$searchTerm = Input::get('skill');
var_dump($sear... | common-pile/stackexchange_filtered |
Eclipse does not show variable values on hover
I remember, Eclipse was showing variable values during debug and on mouse hover. Unfortunately, currently it does not work for me. Instead of value, it shows FQN of the variable.
How to fix?
In Eclipse's Debug View (http://www.edu4java.com/_img/java/after-eclipse-debug-pe... | common-pile/stackexchange_filtered |
Python: Division by larger numbers slower?
Why does dividing by the larger factor pair result in slower execution?
My solution for https://codility.com/programmers/task/min_perimeter_rectangle/
from math import sqrt, floor
# This fails the performance tests
def solution_slow(n):
x = int(sqrt(n))
for i in xrang... | common-pile/stackexchange_filtered |
How to convert fetch response to array buffer?
Using a library like axios I can request data from a http request as an array buffer:
async function get(url) {
const options = {
method: 'GET',
url: url,
responseType: "arraybuffer"
};
const { data } = await ax... | common-pile/stackexchange_filtered |
php: looping thru results from mysql query to increment counter (associative array)
I'm retrieving data from a MySQL db and creating reports from it. I need to get counts when certain conditions are met, and since db queries are rather expensive (and I will have a lot of traffic), I'm looping thru the results from a si... | common-pile/stackexchange_filtered |
How to make background color same as image?
I'm trying to set an image center of the screen, and the dimension of the image is not as big as the entire screen. How can I make the background color seem like part of the image? Thus creating the illusion that the image is full screen?
I tried using the color of the image ... | common-pile/stackexchange_filtered |
C# SqlReader issue
I'am posting on this forum for the first time . and I really hope I can find some help .
What I'am doing is load about ... 1000 Value (example) from SQL and I'am doing it just fine .
the query for example is : Select Value from DatabaseA.dbo.Values
that "Value" ==> decimal(10, 2)
sqlConnection2.Open... | common-pile/stackexchange_filtered |
How to use Flutter Bloc with Firebase Phone Auth
I'm trying to implement Firebase phone authorization using Flutter Bloc pattern.
I have the following code
import 'dart:async';
import 'package:bloc/bloc.dart';
import 'package:firebase_auth/firebase_auth.dart';
import './bloc.dart';
class AuthBloc extends Bloc<AuthEven... | common-pile/stackexchange_filtered |
QGIS 3.22 does not display Google Earth after added as a XYZ tile
I am new to QGIS, I need to add Google Earth as an XYZ tile, I did this by clicking it, then hitting new connection then using the Google Earth link, and hitting okay. I then tried to view it but it does not display anything. I tried asking it to zoom in... | common-pile/stackexchange_filtered |
immediate = true didn't work
I am trying to create a row which includes Delete and Add Row buttons. When delete is clicked, it should ignore the validations on the inputs. So, I used immediate="true" to do it. But it doesn't seem to work. What might be wrong?
This is my code... I omitted the other lines and focused on... | common-pile/stackexchange_filtered |
Show userform on worksheet select
I have three worksheets in a workbook. I want to show a specific user form when the user selects one of the worksheets. How can I achieve this in VBA?
I have looked at your recent posts. You make no effort whatsoever to explain your problem in any detail and show us no evidence that ... | common-pile/stackexchange_filtered |
jQuery doesn't run in Safari on form submit
I have a peculiar issue which is giving me headaches... The following code works perfectly in Firefox but not in Safari on Mac OS.
I want to display a simple "Loading message" while files are being uploaded. So my page looks like this:
<!doctype html>
<html>
<head>
... | common-pile/stackexchange_filtered |
In Sqlite3, how to use VACUUM to get more space
I have a database that has been deleting records and adding records all the time.
I only have 2MBytes memory that I can use for this database. I know that I should use VACUUM, but it doesn't work. Is there anything I missed?
SQLite automatically reuses freed pages. The V... | common-pile/stackexchange_filtered |
hdmi usb dongle macrosilicon 2109 rename device
How can i change the product name|ID of hdmi usb dongle on the HDMI end? (how the device is named as HDMI. Currently (default) is recognized as "HDMI to USB". )
There are many similar devices based on "Macrosilicon 2109".
for example:
https://aliexpress.ru/item/400105852... | common-pile/stackexchange_filtered |
why whereIn() is better than relations in laravel?
The database of our Laravel application is increasing and query time is also increasing. One thing I have noticed about queries is whereIn() is way faster than the relations call.
I need to get all consignments of the customer, so with Laravel relation, what I do is:
$... | common-pile/stackexchange_filtered |
NSData to NSString losing data
I'm attempting to convert a binary file into text, the problem is that a large portion of the file was not encoded in ascii and ends up being special characters. I'm using
[[NSString alloc] initWithData:data encoding:NSASCIIStringEncoding];
but am only getting a few characters back in ... | common-pile/stackexchange_filtered |
Make methods work independently without using a common method
I am currently trying to separate out the method implementation so that they can work independently. The methods that I am trying to separate are store and checker. Both these methods require the traverse method. My current implementation has two method stor... | common-pile/stackexchange_filtered |
java compiling with jars
I'm trying to figure out how an existing Java program (I did not make myself ofcourse) was compiled with existing jars
I have Test.java (original source file):
package Demo;
//import classes from jars here etc...
public class Test {
public static void main(String args[]) {
etc...
}
}
Now I... | common-pile/stackexchange_filtered |
How to catch the error output in shell when error code is not enough?
I came across the script with if-else branch with a particular command succeed or not like this:
pg_ctl -D /var/lib/pgsql/data -w promote
if [ $? -ne 0 ]; then
echo: failure
exit 1
else
echo: succeed
exit 0
fi
It looks straight forward. ... | common-pile/stackexchange_filtered |
How to chain requests using Insomnia (get token from login api to use as header for another api)
I'm trying to update the header for my apis with a sif token that is retrieved from another login call. I know how to do this in Postman. There I go to the Tests tab and add something like this for the login api, which woul... | common-pile/stackexchange_filtered |
How do I run a subsequent script if the text entry field is not focused?
I am currently using the first script which is valid if I have my cursor selected in the text field.
tell application "System Events"
tell application process "Capture One 20"
set frontmost to true
tell (first window whose... | common-pile/stackexchange_filtered |
Removing and adding actors to a group - libgdx
I have a group that has a Map that associates every entity with an actor; it has the method addEntity and removeEntity for adding and deleting entities to/from the Map and their respective actors to/from the group.
public final void addEntity(final Entity entity) {
Ent... | common-pile/stackexchange_filtered |
Partitions of integers, but ignoring commutativity and restricted to only using the first $3$ positive integers
My question involves the number of ways to add up to a positive integer $n$ such that the order in which we add the terms up matter (so ignoring commutativity) and we are restricted to only using $1$'s, $2$'s... | common-pile/stackexchange_filtered |
Run command on pair of files (different file types) with matching character string
I have a list of files:
catfish.fa
polar.fa
catfish.ids.txt
polar.ids.txt
I want to run this command for each file with a matching character string. So for example, I'd like to run this:
cat catfish.fa | seqkit grep -f catfish.ids.txt ... | common-pile/stackexchange_filtered |
I'm having trouble with npm install for angular 2
This is error that I'm getting in cmd prompt:
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
><EMAIL_ADDRESS>postinstall C:\Users\hp\Desktop\angular2-seed
> typings install
'typings' is not recognized as an i... | common-pile/stackexchange_filtered |
How to read from an API
I want to log the data that is stored in an URL as JSON with an AJAX call.
$.ajax({
"url": "https://api.logair.unige.ch/v1/service/device/latest?device_id=LAEM_02&latest=1",
"method": "GET",
"crossDomain": true,
"dataType": 'jsonp',
"headers": {
'Access-... | common-pile/stackexchange_filtered |
Fluent Nhibernate Config is OK when conn. string in web.config, but not otherwise
Can anyone tell me the correct syntax?
I need to enter the connection string directly in my code in order to Unit test. Everything works fine when the connection string is in the web.config file as:
<add name="SQLNorthwindConnectionString... | common-pile/stackexchange_filtered |
Can you take values within certain groups and put them each in a new column in R?
I would like to create multiple new columns for each value of one column, grouped by another.
For example, if I have this:
session side_effect:
1 dizzy
1 irritable
1 anxious
... | common-pile/stackexchange_filtered |
What is MediaPlayer.OnInfoListener “code 973”?
I am running a stream via MediaPlayer.
I use MediaPlayer.OnInfoListener to get info on the streaming process.
Here is my code:
mPlayer.setOnInfoListener(new MediaPlayer.OnInfoListener() {
@Override
public boolean onInfo(MediaPlayer mediaPlayer, int... | common-pile/stackexchange_filtered |
How to escape single quote in EJS template
my variable contains a string with an apostrophe or a single quote '
i'd like to display it with EJS.
I use
<img class="card-img-top" src='<%= data[i][0].omdb.Poster %>' alt='<%= data[i][0].omdb.Title; %>'>
When data[i][0].omdb.Title; contains an apostrophe, HTML is broken.
<... | common-pile/stackexchange_filtered |
Japanese keyboard layout in Windows 7 doesn't correspond to what's written on the physical keyboard
I have an English version of Windows 7, but my keyboard is Japanese.
However, even though I choose a Japanese keyboard (Microsoft IME) under Keyboard and Languages, the layout isn't right. I think it's English layout, b... | common-pile/stackexchange_filtered |
newman CLI '--export-collection' not outputting updated collection variables
When using the newman CLI (version 5.2.2), there is a requirement to save updated collection variables after a run. To achieve this, -export-collection <path> is being used but variables in the collection at <path> do not contain updated value... | common-pile/stackexchange_filtered |
javascript matches too many times
I got problems with this regex. I want to return the first occurrence of this pattern #2344..... But somehow it is returning all occurrences.
var title = '#34 #24 pofejwopwefjopewfjpfeijefow'
pointsRegEx = /(#\d+){1}/;
points = title.match(pointsRegEx);
JSFIDDLE: http://jsfiddle.net/K... | common-pile/stackexchange_filtered |
Person 1: I'm still confused why we subtract blue magnitude from visual to get B-V color index. Shouldn't hotter stars be brighter in blue?
Person 2: They are brighter in blue, but remember magnitudes work backwards - smaller numbers mean brighter. So if a hot star has blue magnitude 1.2 and visual magnitude 1.5, its ... | sci-datasets/scilogues |
How to switch context in VS.NET 2015?
I'm getting build errors because some classes I'm using are available in "DNX 4.5.1" and not "DNX Core 5.0".
The error is:
The type or namespace '[someclass]' could not be found.
In the project column of the "Error List" window, I see DNX Core 5.0.
In the context menu, DNX 4.5.... | common-pile/stackexchange_filtered |
Why symbol ω look like ╧ë, after I returned XML data from my Asp Net Core project to html via IActionResult?
It's actual only for Greek symbols.
Here is how I tried to solve this problem so far, I was trying to pass symbols into this functions:
private string decodeSymbols(string symbols)
{
byte[] bytes = Encoding.... | common-pile/stackexchange_filtered |
What can I put on an unfinished cabinet that will not get a lot of use
This cabinet will not get a lot of use. More of a storage cabinet that will have a lamp and cable box. I just need some sort of finish. Really don’t want to change the color.
Hi, welcome to SE. How about nothing? There's no rule that wood must hav... | common-pile/stackexchange_filtered |
Show that the perturbation of identity satisfies certain continuity and Lipschitz properties
Let $d\in\mathbb N$, $u\in C^{0,\:1}(\mathbb R^d,\mathbb R^d)$ and $c:=|u|_{C^{0,\:1}(\mathbb R^d,\:\mathbb R^d)}$ (the semi-norm given by the Lipschitz constant).
I would like to show that there is a $\tau>0$ such that $$T_t(x... | common-pile/stackexchange_filtered |
Select2 with checkbox not getting checked
I have the following select2 html markup:
<select id="industry_list" class="js-select2 form-control select2-hidden-accessible" style="width: 100%" multiple="" data-placeholder="Select industry..." name="industry_list[]" tabindex="-1" aria-hidden="true">
<option value="1">Acc... | common-pile/stackexchange_filtered |
Get HTMLPurifier 4.5 to allow only one tag
HTMLPurifier by default allows a lot of tags that I don't want to allow. According to the documentation you have to add definitions like this:
$config = HTMLPurifier_Config::createDefault();
if ($def = $config->maybeGetRawHTMLDefinition()) {
$def->addAttribute('a', 'target... | common-pile/stackexchange_filtered |
access previous page viewstate in current page using response redirct?
Is it possible to access the viewstate define in page1 from page2.
Page1 is having response.rediect to page2.
I don't want server.Transfer solution.
No, that is not possible. The ViewState saves (serialize) the "changed" properties of ASP.NET contr... | common-pile/stackexchange_filtered |
Why are not Laravel instances shared by default?
I have been surprised to discover that Laravel instances are not shared by default.
The "simplest" way I have found to declare a provider is the following:
<?php
namespace App\Providers;
use App\SomeService;
use Illuminate\Support\ServiceProvider;
class SomeServiceSe... | common-pile/stackexchange_filtered |
How to trim an SSN that generates from a model
I have an SSN thats being sent in via a model that needs to be trimmed to only show the last four.
I have it written as so
string primarySsn = primaryApplicant.Ssn;
Console.WriteLine(primarySsn.Remove(0, 5));
This isn't trimming and is still leaving the XXX-XX- that I don... | common-pile/stackexchange_filtered |
Debug error Flutter with third party SDK - Execution failed for task ':app:checkDebugAarMetadata'. > Could not resolve all files for configuration
I am trying to integrate a third party android SDK in my Flutter project. After many trouble shooting, code probably is going to look like a Frankestein, I do not understand... | common-pile/stackexchange_filtered |
LWR Community Page Language Selector Problem
I have created a LWR community page where I have my custom LWC components. I used all custom labels from the org which have their own translations in multiple languages. Now, I've hidden the standard Language Selector component, however, I'm experiencing a weird use case iss... | common-pile/stackexchange_filtered |
The render result is just the transparent texture?
I rendered a 1200x800 image, but it's just the transparent texture thing:
I used Cycles for this image. In a test in Blender Render, it worked perfectly, although the materials were made in Cycles so you obviously couldn't see them as you were supposed to.
you need t... | common-pile/stackexchange_filtered |
getExternalStorageDirectory() is deprecated
Suppose I have a Notepad-like app, where you can create and save text documents.
I want my users to be able to access those files (so that they can copy them to a computer, for example).
Before API 29, getExternalStorageDirectory() was a good choice - the directory was create... | common-pile/stackexchange_filtered |
Flutter / dart exception geolocation error
i have a problem with flutter / dart using geolocation . I have followed instructions from one Udemy course but i have expirienced this error. The package is uploaded and code completly resembles to the instructors code although it wont work . I have also tried to clean build ... | common-pile/stackexchange_filtered |
Mediawiki parser and recursiveTagParse
I have an issue with rendering wikitext in hook for tag processing.
public static function onTagRender( $input, array $args, $parser, $frame ) {
...
$text = $parser->recursiveTagParse($sometext, $frame);
...
return $text;
}
If $sometext contains e.g.
"Example from page [[XYZ]]"
... | common-pile/stackexchange_filtered |
Compare Datetime
I have some exception files which I want to be deleted after 14 days or so. But how can I compare the date times?
It actually looks like this, but it does not work.
DateTime date = DateTime.Now;
DateTime newDate = date.Subtract(TimeSpan.FromDays(date.Day + 14));
DirectoryInfo exceptionsDirectory = new ... | common-pile/stackexchange_filtered |
Hand detection and tracking methods
So, guys, please help me with detecting/tracking hand for user who are sitting at the computer in front of computer(laptop) frontal camera.
I've tried these methods:
Colour based detection(I've detected the human face by opencv haar cascade face detection and extracted the skin HSV ... | common-pile/stackexchange_filtered |
Explain the difference between the result got from Spark approxQuantile function and percentile_approx
When I run the code below, I got the result:
Quantiles segments =WrappedArray(-27.0, 2.0, 4443.0), which shows the median is 2.0
val quantiles = dfQuestions
.stat
.approxQuantile("score",Array(0,0.5,1.0),0.2... | common-pile/stackexchange_filtered |
Error connecting to localhost on port 4445. with Nightwatch and Selenium
I'm trying to run my script using Nightwatch(Javascript), but I'm getting this error :
\ Connecting to localhost on port 4445...
‼ Error connecting to localhost on port 4445.
× failed
Error: An error occurred while retrie... | common-pile/stackexchange_filtered |
Space with diagonal matrices?
Good evening everyone, I am trying to calculate the following quotient vector space $\mathbb{M_3(R)}/D$ Where $D$ is the space of diagonal matrices of order 3.
My work:
Let $A$ and $B$ be two matrices such that $A,B∈M_3(R)$, We say that $A∼B$ iff $A−B∈D$. But I do not know how to continue... | common-pile/stackexchange_filtered |
XML parser returns NoneType
I am trying to parse below XML format using the ElementTree XML in Python, but I get "member" as None, when I use .text it gives attribute error
<address-group>
<entry name="TBR">
<static>
<member>TBR1-<IP_ADDRESS>_21</member>
<member>TBR2-<IP_ADDRESS>_24</member>
<m... | common-pile/stackexchange_filtered |
How to solve Typescript import module problem
I have split my code into several projects. And now trying to import the modules, located in node_modules.
import Ticker from "ticker" // Typescript not complaining
But the transpiled JS "import Ticker from "ticker;" does, module spec missing ‘./’, ‘../’ of ‘/’.
But adding ... | common-pile/stackexchange_filtered |
How to solve boolean[]/Boolean[] method function mismatch?
I am trying to send public static boolean key[] = new boolean[68836]; to the method in another class. But keep getting the following error:
error: method tick in class Game cannot be applied to given types;
game.tick(key);
required: Boolean[]
found: boo... | common-pile/stackexchange_filtered |
Recovering accidentally deleted partition on a solid-state drive using "fdisk"
As far as I know, a solid-state drive (SSD) stores data in different locations that the operating system cannot control. If I accidentally delete a partition, and then enter the exact start and end blocks of the previous partition when creat... | common-pile/stackexchange_filtered |
Round off error in C (Forward and Backward sum)
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
float sum=0.0;
for(int i=1;i<=1000000;i++)
sum+=(1.0)/i;
printf("Forward sum is... | common-pile/stackexchange_filtered |
Right-click on a table to to add to new Design Query in Access 2003 to 2007, 2010, 2013?
In Access 2003, I used to be able to right-click on a table and create a new query in Design View with that table already added. It always saved me some clicking. In the newer versions of Access I have to use the Create tab on the ... | common-pile/stackexchange_filtered |
MongoDB PHP library - code works in terminal but not on browser
I have installed the MongoDB PHP library using pecl by following the official documentation given on http://php.net/manual/en/mongodb.installation.pecl.php
I have created a collection named 'ma' containing two documents 'd1' and 'd2', through the mongo sh... | common-pile/stackexchange_filtered |
How to arrange list using lambda or linq
How to arrange list using lambda or linq.
Following is the list (Tickets), The list having a field called MessageId", each MessageId may or may not contains sub messages and so on (ie, ReplyMessageId).
I have the following list
MessageId ReplyMessageId M... | common-pile/stackexchange_filtered |
How to ignore files or directories within bind-mount volume in docker-compose file?
Is there any way to ignore some files or directories within volume of type bind-mount?
I would like to ignore for example all bin and obj directories within my solution. The issue is that I have dozens of bin and obj folders in my proje... | common-pile/stackexchange_filtered |
Upload photo to facebook group Graph API
I'm trying to make a post with photos as attachments to my facebook group where I'm admin using user access token. Permissions:
user_birthday, user_hometown, user_location, user_likes, user_events, user_photos, user_videos, user_friends, user_status, user_tagged_places, user_pos... | common-pile/stackexchange_filtered |
jQuery does not find IMG component by its ID
I have a webpage which contains such code:
<img class="img-qrcode" id="img_<IP_ADDRESS>"
src="http://localhost:7777/data/code_img\<IP_ADDRESS>.png"
alt="./data/code_img\<IP_ADDRESS>.png" style="display:none">
I want to locate it with jQuery. For some reason jQue... | common-pile/stackexchange_filtered |
formatting dynamic json array
I have an json array as follows:
Maindata=[
{"name":"string1"},
{"name":"string2"},
{"name":"string3"}
];
what I need is an array of following type:
data=[
{
"name":"string1",
"name":"string2",
"name":"string3"
}
];
can anybody help me with some methods to obtain req... | common-pile/stackexchange_filtered |
Should I throw std::bad_alloc?
I am allocating memory on the stack, and distributing it manually to shared pointers. I end up doing something like this at startup (I've simplified it by ignoring alignment issues):
char pool[100];
std::shared_ptr<Obj> p = new(reinterpret_cast<void*>(pool)) Obj;
pool += sizeof(pool);
O... | common-pile/stackexchange_filtered |
How to use MockFor to mock client on HttpBuilder?
I have some Grails production code I'd like to test and I've seen some examples of that here, see below. Problem is that I run into MissimgMethodExceptions on the client part of the HttpBuilder. This is the production code I'd like to test:
class RunkeeperActivitiesRetr... | common-pile/stackexchange_filtered |
Visual Studio 2017 opening edmx file cause HRESULT: 0x80029C4A error
I am trying to open edmx file with ADO.NET Entity Data Model Designer but I am getting the below error:
Cannot load 'C:\MyUserName\source\repos\MyProject\MyModel.edmx': Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLO... | common-pile/stackexchange_filtered |
UPS UK terms of service gives them a blank check - legal?
UPS has terms and conditions (PDF) that include the following:
4. Customs Clearance
When a shipment requires customs clearance, it is the shipper’s
obligation to provide, or to ensure that the receiver will provide,
UPS with complete and accurate documentation ... | common-pile/stackexchange_filtered |
How to call a non static method from static method
I need to call a non static method from a static[webmethod]. It is not getting call, I tested it using breakpoints.i tried to call it by making a instance to the class.
This is what i am trying .
[WebMethod]
public static string get_runtime_values(string get_ajax_answe... | common-pile/stackexchange_filtered |
What's the most straightforward way to clone an empty, *bare* git repository?
I've just finished cruising the Google search results that contain all the email rants about how stupid it is that git can't clone an empty repository. Some kind soul even submitted a patch. Until git is upgraded, what is the simplest, most... | common-pile/stackexchange_filtered |
Possibility of working on KDDCup data in local system
I'm trying to apply classification algorithms to KDD Cup 2012 track2 data using R
http://www.kddcup2012.org/c/kddcup2012-track2
It seems not possible to work with this 10GB training data on my local system with 4GB RAM.
Can anyone work on this data using this kind o... | common-pile/stackexchange_filtered |
Kotlin Goal Oriented Action Planning
I've implemented Goal Oriented Action Planning (GOAP) in Kotlin.
Goal Oriented Action Planning is an algorithm originally devised by J Orkin for the game F.E.A.R. and performs a state space search using A* in order to formulate a plan of actions to get from an initial state to a goa... | common-pile/stackexchange_filtered |
Video Capture Not working With UIImagePickerController
I call a function when a button is pressed to present the imagePickerController but it seems that when a video must be taken the app crashes, even when I am running on a device (iPad 2).
@IBAction func beginTest() {
imagePicker = UIImagePickerController()
... | common-pile/stackexchange_filtered |
Graph isomorphism between two functional graph.
From this, I could understand what a functional graph is. But how can we find a function $f$ such that f is an isomorphism between two fuctional graph, $H$ and $G$ given by fuctions $h(x)$ and $g(x)$ respectively.
To avoid deciding upon whether those graphs are isomorphic... | common-pile/stackexchange_filtered |
だろう in question context?
This is sentence:
「“見る”か。お前はいったい、どのような世界を“見て”いるのだろうな」
I'm not sure if this is really a question, but words like いったい and どのよう suggest that it probably is. So if this is really a question, then how should I inerpret だろう at the end, because usually as far as I know it represents information abo... | common-pile/stackexchange_filtered |
Is a specific product function orthogonal to all harmonic functions
Suppose $\Omega=[-1,1]^3$. Let $f:[-1,1]\to \mathbb R$ and $g:[-1,1]^2\to \mathbb R$ be smooth functions and suppose that given any harmonic function on $\Omega$ (i.e. $\Delta u =0$ on $\Omega$), with $u \in L^2(\Omega)$, there holds:
$$ \int_{\Omega} ... | common-pile/stackexchange_filtered |
Is there a garbage collection in Kotlin?
Java has a Garbage Collection. But you should take precautions to avoid the memory leak. Does that apply to kotlin? Is there a memory leak in Kotlin? Is there a Garbage Collection at Kotlin?
Short Answer: Yes
(Not so) Long explanation:
kotlin actually runs on JVM as well as ... | common-pile/stackexchange_filtered |
Puppet module not run on agents while this has been defined in Hiera on the Puppetmaster
Once I've installed Puppet, Foreman, Hiera and Facter, how do I get them all to work with one another?
The Foreman GUI is operating properly and can be viewed using a browser.
Hiera is installed, and by guides I read on the interne... | common-pile/stackexchange_filtered |
Toolbar problems when scroll disabled
I have a situation where disabling scroll on mobile when my cart is turned on causes really weird graphical issue with android firefox toolbar. Cart is a fixed container taking an entire screen.
When toolbar is shown it just stays there and freezes (probably because i just turned o... | common-pile/stackexchange_filtered |
Proving a subspace under a linear transformation by the closure of standard addition and scalar multiplication
$T(x,y,z)= (3x-2y, -2x+3y, 5z)$ be a linear transformation from $\mathbb{R}^3$ to $\mathbb{R}^3$
Show that $A= \{(u,v,z) \in \mathbb{R}^3~|~(u,v,w)=T(x,y,z)\}$ for some $(x,y,z)$ in $\mathbb{R}^3$
is a subspa... | common-pile/stackexchange_filtered |
Sorting Ms Access tables records and VB.net
i've implemented a system on vb.net 2010 having its database on Ms Access 2010 (.accdb). i have to read records from the tables to a combo box by binding its datasource to the tables directly. the problem is that the data in the combo box is not sorted since in the database i... | common-pile/stackexchange_filtered |
Positive interaction term with one negative component?
Say I have an augmented growth regression, where my Y is GDP growth, and my Xs are the classical MRW variables, + international aid + corruption + the interaction term between the two.
Basically, I'm interested in seeing if lower corruption increases the effectiven... | common-pile/stackexchange_filtered |
c++:Hackerank:Error in taking input
This is a part of my question.I tried many times but couldn't get the answer
Problem Statement
You are given a list of N people who are attending ACM-ICPC World Finals. Each of them are either well versed in a topic or they are not. Find out the maximum number of topics a 2-person te... | common-pile/stackexchange_filtered |
Do I have to report empty bank accounts on form 8938 "Statement of Specified Foreign Financial Assets"
I have empty bank accounts that I no longer use. It's unclear to me if I should report those accounts on form 8938.
I don't think an empty bank account is an asset, provided it is literally empty.
According to IRS.... | common-pile/stackexchange_filtered |
How do I return a filename as an ANT property?
I have a property file that is name app_id-*.app (where * = any application name that can be created) that I need to pass as an arg to an ANT exec call.
I was wondering if there is a way to return the full filename of the filename based on the wildcard as a property that I... | common-pile/stackexchange_filtered |
Which finger on right hand to use to play G note on piano in Twinkle Twinkle Little Star?
When my daughter learned piano the first time one year ago, the teacher let us use this fingering:
CC GG AA G FF EE DD C
11 55 55 5 44 33 22 1
We stop learning for a while and we start again. However, this new teacher let us use... | common-pile/stackexchange_filtered |
How to convert Map<int, Map<int, Map<int, Map<int, int>>>> to json
So I have this data :
{
2021: {
01: {
4: {2: 3},
5: {2: 3},
6: {2: 3},
...
},
},
2022: {
01: {
4: {2: 3},
5: {2: 3},
6: {2: 3},
...
},
},
}
which is a Map<int, Map<int, Map<int, Ma... | common-pile/stackexchange_filtered |
Text collage (word cloud) in LaTeX?
There are some automatic method (package, class, macro) in LaTeX to do a text collage similar to that showed in the image?
If not, is would be possible without too much manual work?. The background, the font and the shape of the collage does not matter (is enough a rentangular shap... | common-pile/stackexchange_filtered |
Modify menus shown to Portal users Odoo/Openerp
What I want to do is this:
When a new user is given access to the Portal, I want her only to be able to see a single Sales menu with a submenu Sales/Customers and nothing else.
I was able to do that by adding the menu to the Portal group, but I need to hide the other menu... | common-pile/stackexchange_filtered |
I Can't call methods in kotlin
I am new to kotlin and just starting to learn about classes and methods
but in the code below I can't call the makeReddit() method:
class Site( address: String, foundationYear: Int) {
var address: String = address
var foundationYear: Int = foundationYear
fun makeReddit(ad... | common-pile/stackexchange_filtered |
Unable to get whole http message
I am using curl for sending a POST HTTP message to my server. At Server side I am opening a socket and reading the data by using following code
recv(socket_Fd, (void *)ucBuffer, (size_t)((sizeof(ucBuffer) - 1)), NULL);
I am able to get the header of the POST message but in message body... | common-pile/stackexchange_filtered |
Why do I need secret on delegated az ad app?
what can go wrong if we don’t have secrets/cert on Azure Ad app registration with only delegated permissions?
Depends on what you want to do.
authorized access between resources
Do use service principal with certificate if you want to access one cloud resource from another... | common-pile/stackexchange_filtered |
Circular redirect issue with Google OAuth2 and PassportJS in a NodeJS project
In my NodeJS project, I'm trying to protect access to certain controllers (since all the routes under the controller would also be protected). When using my front-end, I want to ensure users are from MYDOMAIN.com by having them authenticate ... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.