Andrew Andrew

13468 questions
2

votes
0

answer
108

views

Debugging DNS resolutions in kubernetes

I have initialized kubernetes v1.13.1 cluster on Ubuntu 16.04 using below command: sudo kubeadm init --token-ttl=0 --apiserver-advertise-address=192.168.88.142 and installed weave using: kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')" I have...
S Andrew
0

votes
0

answer
5

views

redis.clients.jedis.exceptions.JedisDataException: ERR value is not an integer or out of range

jedis eval script error script = "return redis.call('hget', KEYS1, ARGV1) "; o = binaryJedis.eval(script.getBytes(), "hash1".getBytes(), "item1".getBytes()); redis.clients.jedis.exceptions.JedisDataException: ERR value is not an integer or out of range at redis.clients.jedis.Protocol.processError(P...
andrew
1

votes
2

answer
389

views

Is it possible to share a HashMap between threads without locking the entire HashMap?

I would like to have a shared struct between threads. The struct has many fields that are never modified and a HashMap, which is. I don't want to lock the whole HashMap for a single update/remove, so my HashMap looks something like HashMap. This works, but it makes no sense since the thread will loc...
Andrew
0

votes
0

answer
12

views

Access redux store properties from within the actions in the store itself

Currently I have events stored in my events reducer. Now I'm in my actions folder, I am trying to access the value of events which is in my reducer, how would I be able to access such value within the store itself? I need to access values stored in the Reducer file in the event.js, through the actio...
Andrew
1

votes
1

answer
115

views

Fallback content on an “unnamed” slot is never displayed

I'm trying to figure out how web components are working and can't fully understand rules around fallback content in slots: I have a web-component like: const template = document.createElement('template'); template.innerHTML = ` fallback fallback on an anonymus slot ...and more content form shadow DO...
Andrew
1

votes
1

answer
39

views

UTF-8 encoded JSON file, trying to parse with JSON module - wide character

I have a pretty simple script in Perl: use JSON; use open qw/ :std :encoding(utf8) /; #my $ref = JSON::decode_json($json_contents); my $path = "/home/chambres/web/x.org/public_html/cgi-bin/links/admin/booking_import/import/file.json"; my $json_contents = slurp_utf8_file($path); my $ref = JSON->new-...
Andrew Newby
1

votes
2

answer
52

views

Retrieving available functions in script (same order)

I'm cleaning some smeared data for which I want to automate things a bit. That is, I want a script to have some predefined cleaning functions put in order of how the data should be cleaned, and I designed a decorator to retrieve these functions from a script using this solution: from inspect import...
Andrew Naguib
1

votes
2

answer
13

views

Liquibase with Spring Boot and multiple schemas, how to specify execution order

We have an data-migration job which needs to initialize schemas A and B, in that order. We handle multiple schemas by defining multiple SpringLiquibase, one for each schema, each with its own datasource and its own master changeset. (Note, normally in Spring Boot you wouldn't need to define a Spring...
Andrew Spencer
0

votes
0

answer
6

views

Running “gulp scripts” removes code just added to .js file

I'm doing a WordPress build using the understrap theme and child theme. All has been working fine, though, when running "gulp scripts" to compile my child-theme.js into child-theme.min.js, the code I add to child-theme.js gets stripped out and it does not end up in child-theme.min.js Reviewed gulpfi...
Andrew T.
0

votes
0

answer
5

views

NLTK downloader fails in downloading new modules

I am importing the NLTK modules into my python project to do some tokenizing works, the downloader window pops up and shows that 'Errno 11004 get addrinfo failed' I tried to identify the download directory and move the nltk_data to the designated position, but the downloader still can't locate the d...
ANDREW
1

votes
0

answer
26

views

jQuery Not Implementing Requested CSS change on click

Function is as follows: function background() { Object.keys(newImages).map((key) => newImages[key] = 'url(' + '"' + newImages[key] + '"' + ')'); switch (city.file.icon) { case "11d": $("body").css('background-image', newImages.rain); document.body.style.color = white; break; case "09d": $("body").cs...
Andrew Ramshaw
1

votes
6

answer
18.8k

views

Arduino DHCP failed to configure

I am using the example ethernet sketch for a web client that comes bundled with the Arduino software without changing a thing except for the firmware address, which I changed to the one printed on the back of the ethernet shield. Whenever I connect the Arduino to my network and view the serial monit...
Andrew
0

votes
0

answer
3

views

AWS: Pointing sub-domains to different elastic beanstalk environments

Using Amazon AWS, I have two Elastic Beanstalk environments. One hosts my React client, and the other hosts a Node.js API for the client. I own some-domain-name.com and I would like to use two sub-domains: app.some-domain-name.com api.some-domain-name.com I would like app.some-domain-name.com to poi...
Andrew Daniel
0

votes
0

answer
2

views

Schema changing DB - which method is better?

I am planning to develop a website which users can customize many items on, so considering three plans. Could you tell me which method is more common? Let's assume we will make a web app for handling all processes of producing toothbrushes. { "toothbrush set": { "toothbrush": { "head": ["dyeing", "a...
Kang Andrew
1

votes
1

answer
937

views

HttpClient is sending extra cookies

Running a UWP app* So I have an HttpClient and it's associated handler. I am making a request to a website, passing in specified headers, and using a specified CookieContainer, which is empty at the beginning of the request. When I send the request, Fiddler shows extra cookies being sent that I hav...
Andrew
1

votes
2

answer
86

views

AeroGear for iOS Facebook configuration

I inherited an app, and I am trying to understand the exact configuration differences between what Facebook wants and what is currently implemented. In working to create a great Platform experience for everyone, we ask developers to ensure the apps they build comply with our Platform Policies. Your...
Andrew Alexander
1

votes
1

answer
270

views

How do I resize the border of the body as the window resizes in CSS

I just recently finished my site. http://www.willigetdivorced.com If you visit it real quick, you will notice the green border on the right, to add a little readability. If you shrink the window however, you can see it just ends up covering everything. It looks equally absurd on a mobile device scre...
Andrew Tsay
1

votes
1

answer
915

views

Correct proxy script for html2canvas

I'm trying to get html2render ( http://html2canvas.hertzen.com/ ) to work on my website. It works for the basic stuff - but none of the images show (as they are on a cdn.domain.com subdomain). I've been reading up, and it seems that it doesn't like other domains out of the box. I found a couple of P...
Andrew Newby
1

votes
5

answer
1.3k

views

DNX Install - Unable to find any runtime packages on the feed

I'm following this guide on how to get setup with asp.net 5 Running the command dnvm upgrade -r clr from the command line pulls back Invoke-Command : Unable to find any runtime packages on the feed! At C:\Program Files\Microsoft DNX\Dnvm\dnvm.ps1:1905 char:23 + Invoke-Command
Andrew Walters
1

votes
1

answer
528

views

Certificate pinning in Alamofire not working

I've added a .der certificate to my project, which is recognised by ServerTrustPolicy.certificatesInBundle(). I'm now creating a Manager which is then used to make API calls: private class func manager() -> Alamofire.Manager { let certificates = ServerTrustPolicy.PinCertificates( certificates: Serve...
Andrew
1

votes
2

answer
641

views

calling TaskDialogIndirect loader says ordinal 345 not found

I built the simple MS example for TaskDialogIndirect (see https://msdn.microsoft.com/en-us/library/windows/desktop/bb760544(v=vs.85).aspx) When I run it I get "The ordinal 345 could not be located in the dynamic link library COMCTL32.dll" The above page says it needs ComCtl32.DLL version 6 but C:\Wi...
1

votes
1

answer
1.4k

views

ag-grid: prorgamatically select next row from currently selected row

I'm using ag-grid in an anugular1 project. I'm trying to get the 'Next' button to select the next row in my grid. $scope.NextButtonClick = function (){ console.log("next button clicked"); var selectedNodes = $scope.gridOptions.api.getSelectedNodes(); var indexCurrentSelection = selectedNodes[0].chil...
Andrew Magerman
2

votes
3

answer
27

views

os.path.splitext(file.txt.gz) into (file,.txt.gz)

Currently, I have files that end in /path_to_file/file.txt.gz. I would like to split the extract the filename (before the .txt.gz). x = os.path.basename("/path_to_file/file.txt.gz") gives me file.txt.gz while os.path.splitext("file.txt.gz") gives me ('file.txt','.gz') Is there a function that woul...
Andrew Hamel
0

votes
0

answer
6

views

Django beginner define an index url and load the view

I am learning django and I am trying to add a new url to '/' here is my urls.py: from django.contrib import admin from django.urls import path from blog import views as blog_views urlpatterns = [ path(r'^$', blog_views.index), path('admin/', admin.site.urls), ] and here is the index method from blog...
Andrew T
1

votes
1

answer
251

views

How to get all projections by a type with Spring Data REST

Is there a way to get all projections by an appropriate type? I've got a class with several projections. I would like to get a Map is a class over which this annotation is An example: class A { ... } @Projection(name = "a1", types = A.class) interface ProjectionA1 { ... } @Projection(name = "a2", ty...
Andrew Tobilko
1

votes
1

answer
289

views

How is persistent disk use determined in GCP Dataflow?

In the pricing section, Google says that there is a default amount of PD per worker (varies depending on batch vs streaming). I am running a job, and the amount of persistent disk use is much higher than it should be, given the number of workers that I have (compared to the default PD use). This is...
Andrew
1

votes
1

answer
400

views

WPF Attached Property has no effect at design time (xaml editor)

I have a Attached Property that works great at runtime, and I would like to get it working at design time as well. I've read a bit of the docs and followed some tutorials, but I they assume more familiarity than I have. The purpose of this DP (from source blog post (microsoft.co.il)) is: Attached...
Andrew Backer
1

votes
1

answer
924

views

Enable cross-site tracking in WKWebView

When compiling against the iOS 11 SDK, it seems as though the default cookie accept policy for WKWebView has changed, as though the user had enabled the equivalent "Prevent Cross-Site Tracking" option in Safari. I need cross-site cookies to work within a WKWebView. Does anyone know of a way to enabl...
Andrew Ebling
0

votes
0

answer
3

views

Graphql Filter on sub item

I am continuing to try and understand how to use GraphQL. I have a nice enough approach to returning by and by name but would now like to only show results where an order made more than one purchase of an item. e.g. in the example below I would like to only return people that have more than one "ord...
Andrew
1

votes
1

answer
293

views

Protocols versus polymorphism in swift

I am rather new to object-oriented programming and I am attempting to wrap my head around protocols, delegates, and polymorphism. I recently watched a training video that promoted that when you have two classes that are similar with similar method implementations, a protocol is the best solution for...
Andrew Tuzson
0

votes
0

answer
4

views

How to “extern” a function in multiple modules with the same name

I have a lib project with multiple modules called one and two, in separate files. Each module has a function called run. Here is an example and a playground link to it. mod one { pub fn run() { println!("One"); } } mod two { pub fn run() { println!("Two"); } } fn main() { one::run(); two::run(); }...
Andrew Mackenzie
1

votes
1

answer
93

views

Get name / id of a OpenAI Gym environment

Given: import gym env = gym.make('CartPole-v0') How do I get CartPole-v0 in a way that works across any Gym env?
Andrew Schreiber
1

votes
2

answer
48

views

Preemptively downloading artifacts to Sonatype Nexus for offline use

I am working in a security sensitive setting where I have to airgap my computer during development and would go online as a last resort. I know this isn't ideal. I setup a sonatype repository on my computer locally but it only caches the artifacts as I download them and I don't know all the artifact...
Andrew Carre
1

votes
1

answer
38

views

javascript If/Else Loop; async issue

Right now this section of code is passing along undefined to if(customerWaiting >0). It's an issue with async that I can't seem to figure out. Based off the other threads I looked at, it's very basic and a newbie question, I just can't make it work. I was seeing if you could find it for me Edit 1:...
Andrew Olson
1

votes
1

answer
38

views

C# Return Value SHA256Managed is NULL

I have a class where it is responsible for generating a hash according to what I send to it. However, the return of the SHA256Managed.Create(text) method is always returning null. The following is my code: using System.Security.Cryptography; using System.Text; namespace Autenticacao_no_ASP_.NET_MVC...
Andrew Marques
1

votes
2

answer
47

views

Classification Report - Precision and F-score are ill-defined

I imported classification_report from sklearn.metrics and when I enter my np.arrays as parameters I get the following error : /usr/local/lib/python3.6/dist-packages/sklearn/metrics/classification.py:1135: UndefinedMetricWarning: Precision and F-score are ill-defined and being set to 0.0 in labels wi...
Andrew Zacharakis
1

votes
1

answer
41

views

How to keep a randomly generated matrix constant in python?

this may be a stupid question but I created a matrix with randomly generated values from a deck of cards: ranks = ['A',2,3,4,5,6,7,8,9,10,'J','Q','K'] suits = ['♠', '♥', '♣', '♦'] deck = [] for rank in ranks: for suit in suits: card = str(rank) + suit deck.append(card) random.shuffle(deck) m...
Andrew OZEKI
1

votes
2

answer
37

views

Making a 4-D scatter plot using Matplotlib in Python

Essentially, I'm trying to make a 4-D scatter plot with 4 columns of data (see sample below). X (mm) Y (mm) Z (mm) Diameter (mm) 11.096 11.0972 13.2401 124.279 14.6836 11.0389 8.37134 138.949 19.9543 11.1025 31.1912 138.949 15.4079 10.9505 31.1639 152.21 20.6372 14.5175 6.94501 152.211 20.47 1...
Andrew Nguyen
3

votes
1

answer
32

views

How can I properly use an American flag emoji in my bash prompt?

I want to use an American flag emoji in my bash prompt (i.e. PS1 environment variable). However, the American flag emoji causes the terminal cursor to offset an extra character to the right. 🇺🇸 is comprised of two unicode characters, 🇺 and 🇸. I believe terminal is converting this to a mo...
Andrew Kirna
0

votes
0

answer
3

views

Why do we get HttpAntiForgeryException after publishing update to Azure Web app service?

We published an application update to the same Azure web app service and started getting errors: Exception: System.Web.Mvc.HttpAntiForgeryException (0x80004005): The anti-forgery token could not be decrypted. If this application is hosted by a Web Farm or cluster, ensure that all machines are runnin...
Andrew Jocelyn

View additional

Смотреть фильмы онлайн бабушка легкого поведения 2 фильм бесплатно