Adam Adam Adam

15792 questions
1

votes
0

answer
83

views

Getting specific web page content with CSS stylesheet

I have this code which gets a specific web page content and loads it in an iframe. It works fine, unfortunately this content is in the body and doesn't come with CSS formatting, so I get an unformatted page. How can I get the stylesheet to come with the page content? Thanks in advance! var getHTML =...
Adam
1

votes
1

answer
65

views

How can I have a listing page for categorized content in Hugo?

I want to categorize some events like meetups and conferences. I want to have a page on /events where I can see all events and /events/meetups where I can see all meetups. My problem is that if I organize my pages in a section named events and I put my markdown files in the two folders meetups and c...
Adam Arold
1

votes
1

answer
25

views

Regex used rails routes

What regex is used in Rails routes such that it works cross environments. I am trying to setup a middleware such that requests coming to /:id:/show/details does a reverse proxy to wordpress.com/:id, was wondering if I can use something Rails has already built-in for this use case
Adam Young
-1

votes
3

answer
49

views

Fast reading large table

I have csv file structured as below: 1,0,2.2,0,0,0,0,1.2,0 0,1,2,4,0,1,0.2,0.1,0 0,0,2,3,0,0,0,1.2,2.1 0,0,0,1,2,1,0,0.2,0.1 0,0,1,0,2.1,0.1,0,1.2 0,0,2,3,0,1.1,0.1,1.2 0,0.2,0,1.2,2,0,3.2,0 0,0,1.2,0,2.2,0,0,1.1 but with 10k columns and 10k rows. I want to read it in such a way that in the result i...
Adam Stawarek
1

votes
1

answer
49

views

How do I convert a '\x'-escaped string into a list of the corresponding individual characters?

I have strings of ASCII characters represented like this: '\\xaa\\xaa\\x02\\xba\\x04A\\xaa\\xaa\\x02\\xbc\\x05>\\xaa\\xaa\\x04\\x80\\x02\\xf8\\x00\\x85\\xaa\\xaa\\x04\\x80\\x02\\xf8' I would like to convert these strings to lists where each element of the list is an ASCII character, and the order an...
Adam Noack
1

votes
0

answer
97

views

TinyMCE draggable templates

I am using TinyMCE version 4. I also have a couple of html templates defined in my web project. Now, I would like to make those templates draggable within textarea, so I would like to keep the style of the template and be able to move drag-and-drop/move it. Does anybody know if it is achievable by u...
adam.bielasty
1

votes
0

answer
242

views

jenkins adds @ (at sign) to workspace name after job killed

I use jenkins pipelined project to build my OpenEmbedded based project. The node of my declarative pipeline contains customWorkspace '/data/jenkins/oe/' Jenkins actually builds one directory deeper, in /data/jenkins/oe/project-name/ which is not a problem. But after I killed one job during developme...
Adam Trhon
1

votes
0

answer
39

views

Escaped double quotes by slashes make browser load it enormously slow

I have recently faced with a very odd problem. I don't have any ideas where even look for a solution. When I generate or upload static file with a textual content that contains a lot of escaped double quotes by slashes, it makes a browser load it very-very slowly. You can check it yourself. For exam...
Adam Moore
1

votes
1

answer
227

views

Fixed arrangement of nodes in the visNetwork upon runtime

I am using visNetwork package for creating small networks. Below script creates a simple network graph as shown in the visualization. My issue is that every time I execute the script, the positioning of the nodes keeps on changing. My requirement is that every time I run the script, I want the visua...
Adam Shaw
1

votes
0

answer
77

views

How to use PR on GitHub for Laravel Packages?

When I want to make a pull request for a Laravel package on GitHub I do it at the moment in the following way: Create new Laravel project Require & install the package Delete the add-on files from the project in the vendor folder Fork GitHub and clone files into the project folder Make changes to pa...
Adam
1

votes
0

answer
319

views

Dataflow appears to be stuck. Works with DirectRunner, stuck with DataflowRunner

I have been trying to get the wordcount quickstart tutorial to work as per the instructions here (using Java SDK 2.2.0): https://cloud.google.com/dataflow/docs/quickstarts/quickstart-java-maven When I run the example pipeline locally, I get the expected results. Great! When I run the example pipelin...
Adam Taylor
1

votes
1

answer
207

views

Share ARSCNView on multiple ViewControllers

I want to build an app where users can swipe between different AR views filled with different content, but in the same AR session - so they don't need to search for plane/feature every time. I've tried to pass ARSCNView from one ViewController to another via a singleton. But it gives me error: Term...
Adam Roszyk
1

votes
0

answer
46

views

Linking between dask.distributed and LSF cluster

I'm using IBM's LSF platform to run my code in parallel. At the moment, this entails 'manually' breaking the code into a job array; instead of: for i in range(100): x[i] = f(i) I distribute f over 100 workers, and then 'manually' collect all their 100 different results to x. I'm trying to understan...
Adam Haber
1

votes
0

answer
240

views

Disable pn53x_check_communication: Input / Output Error message

I'm using libnfc 1.7.1 compiled with c to read from a PN532 reader on a Raspberry Pi. The goal is to make a node for Node-RED that injects the UID of the scanned card or pass errors along about library or reader. I modified the example to give me the UID of a card as the only normal output. I can...
Adam
1

votes
1

answer
530

views

Installing gcloud on Travis CI

I'm following this tutorial on how to use Travis CI with Google Cloud for Continuous Deployments: https://cloud.google.com/solutions/continuous-delivery-with-travis-ci When Travis builds, it tells me that the gcloud command is not found. Here's my .travis file: sudo: false language: python cache: d...
Adam Colvin
1

votes
0

answer
52

views

Where should I keep read-write locks for each object in a list?

Where should I maintain locks on each object in a list? Example: I have many different Indicator objects. My Indicator objects keep some state which can be updated 'in-flight', i.e. I want to grab any particular indicator in a list, write-lock it and update it. I don't want to lock it unnecessari...
Adam
1

votes
1

answer
35

views

Django and SQL. Join and group by

Sorry if you dislike my question's title. I just did not know how to name it. In short i have model. class Country(models.Model): title = models.CharField(max_length=255) class Visitor(models.Model): name = models.CharField(max_length=255) country = models.ForeignKey(Country) For example there 300 V...
Adam Smith
1

votes
0

answer
81

views

Connect to existing DynamoDB Tables from iOS App

I have a web app that makes use of DynamoDB as a backend. I can set up the connection like this: AWS.config.update({ region: region, accessKeyId: accessKeyId, secretAccessKey: secretAccessKey }); Using JavaScript I can easily retrieve data from a table like so: var docClient = new AWS.DynamoDB.Docum...
Adam Zarn
1

votes
0

answer
36

views

Sharepoint modal window not shown when no permissions to at least one in the library

I have a sharepoint 2013 farm solution with event receiver on Item Added (synchronously triggered) and when user uploads a file: permissions are broken, deleted and added again. There are 3 groups: Visible, Edit and Hidden. When file is added as Edit or Visible group everything works fine, permiss...
Adam_Szerszen
1

votes
1

answer
68

views

Don't understand what this code does

So I know this code is randomly removing to of my objects to create a hole so another object can go through but line by line I would like to go through and understand each part. Would be great if someone not so arrogant could help me because I'm new. I would appreciate any help. The area I don't und...
Adam Williams
1

votes
2

answer
22

views

Multiple Distinct Values Grouped And Ordered Within A Range

Trying to figure out how to write a query on Postgresql to accomplish selecting multiple distinct ranges and min values. This query does not work: SELECT distinct (a.userID), a.id, a.serverID, min(a.minTime), a.recTime from test_table as a where a.id >= 1 group by a.serverID, a.userID, a.id...
Adam
1

votes
0

answer
489

views

How to change height of md-slider ticks?

I am setting tick-interval='1' in md-slider and I want to set height of tick to create scale for slider. How can I change this height? I found out that when I add rule with 'ng-deep' .mat-slider-horizontal .mat-slider-ticks { height: 5px !important; } Last tick changes it's height and I don't know...
Adam Michalski
1

votes
0

answer
154

views

Role of coefficient in Multinomial NB

My MultinomialNB classifier was instantiated and trained on vectorized fake/real news articles, and now I'm trying to understand the meaning behind the coefficients. nb_classifier = MultinomialNB() # Extracting the class labels: ('Fake' or 'Real') class_labels = nb_classifier.classes_ # Extract the...
Adam Schroeder
1

votes
2

answer
397

views

Git push doesn't work but git pull does

We have an on premises TFS instance that hosts our Git repositories. Using a VPN, I can git pull but cannot git push. I used to be able to git push but it seems to have stopped working. I've adjusted the buffer size for git files using git config --global http.postBuffer 157286400 but it seems like...
Adam Driscoll
1

votes
0

answer
265

views

Why does EF need VIEW SERVER STATE permission

We created new account (with all permissions granted - as we thought) in our database for web application (.NET MVC with Entity Framework 6.1.3) and an error appeared: SqlException: VIEW SERVER STATE permission was denied on object 'server', database 'master'. The user does not have permission to pe...
Adam Lihm
1

votes
0

answer
12

views

Roll-your-own JMX corporate solution or find another way to control config, logging, etc on live apps?

Because JMX seems so widely available on publicly available Java libraries, I was surprised that authentication and authorization were barely implemented and impossible to use in production docker environments. Because the basic RMI implementation doesn't work in a firewalled, load-managed, dockeri...
Adam
1

votes
0

answer
76

views

Changing Toolbar's Back Button Programmatically is lost on Android when a page is popped

XF 2.5 with FreshMVVM 2.2.3 I am calling a dependency service when pushing a new page to update back button colour as such: FormsAppCompatActivity activity = (FormsAppCompatActivity)CrossCurrentActivity.Current.Activity; Toolbar toolbar = activity.FindViewById(Resource.Id.toolbar); toolbar?.Navigati...
Adam
1

votes
0

answer
1.3k

views

Converting Python buffer to NumPy array - ValueError: buffer size must be a multiple of element size

I'm attempting to read a BLOB object from a MySQL database in Python. The BLOB object is a NumPy array. To convert the array to a buffer type for insertion into the database I use the following function: numpy.getbuffer(arr) Upon reading back I am able to recreate the buffer object via: bytes(memor...
Adam Mitchell
1

votes
0

answer
123

views

Cannot create git repo in davfs2 mount

On Linux Debian 9, I'm trying to create a git (ver. 1:2.11.0-3+deb9u2) repository within a Cryptomator (ver. 1.3.2) WebDAV server mounted via davfs2 (ver. 1.5.4-2+b1). After running git init to create the git repo, I get the following error: error: could not lock config file /home/nonrootuser/Docume...
Adam Smith
1

votes
0

answer
14

views

Running code from a webapp within a Google Sheet script

I am trying to create a room booking thing for a school that I work at. If I leave the google sheet unprotected it is very easy for users to destroy the formulas on the spreadsheet. However if I lock it to only myself then they are unable to use the spreadsheet. The idea is to lock editing to myself...
1

votes
0

answer
548

views

TFS 2017 Reverse Proxy through IIS

My team and I have been attempting to publish our TFS http endpoint through a reverse proxy. TFS is authenticating using NTLM authentication, basic authentication is not encouraged: https://docs.microsoft.com/en-us/vsts/integrate/get-started/auth/tfs-basic-auth. Since NTLM is stateful going throug...
Adam Stephenson
0

votes
1

answer
15

views

Get data copied by a function

I have a quite complicated data structure that lies in several tables. I have a function that makes a copy of that structure. I want to make a copy and get newly created data in a single query like this: SELECT * FROM main_table JOIN other_table ON (main_table.id = other_table.main_id) WHERE main_ta...
Adam
1

votes
0

answer
109

views

Python Sphinx docstrings - reference parameter block multiple times

I've got multiple classes that all have a base they inherit from. The __init__ has a ton of parameters for each that are all basically the same. Is there anyway in the docstrings with sphinx to just write the param definition once, then reference everywhere else? For example: :param str a: Opt A :pa...
Adam Haile
1

votes
1

answer
355

views

Javascript - Check if the site is playing iframe audio

I would like to know how can I check if the site is playing the audio. I have tried this, but it doesnt seem to work for me: HTML: And my JS: var myAudio = document.getElementById('player'); myAudio.addEventListener('ended', function(){ myAudio.currentTime = 0; alert('ended'); }); Thanks for any adv...
Adam Šulc
1

votes
1

answer
94

views

SQL EXP raising Arithmetic overflow error

For whatever reason, the below is failing as a result of an Arithmetic overflow error. I've tried casting and converting with no success. Any ideas? DECLARE @s INT = DATEDIFF(SECOND, '19700101', @EndDate), @e INT = DATEDIFF(SECOND, '19700101', @StartDate) DECLARE @X FLOAT = @[email protected] SELECT EXP(@X) Ari...
Adam Chubbuck
1

votes
0

answer
933

views

React Native + FFProbe + FFMpeg

Is it possible to use FFmpeg or FFprobe inside a react native app for interacting with a video stream? I see an FFprobe package published to npm but it's only Node.js compatible: https://www.npmjs.com/package/ffprobe
Adam Soffer
1

votes
0

answer
59

views

Labels FacetGrid

I have data like this. big_category category variable value a aa111111111 x 1.2 a ba111111111 x 1.05 a ca111111111 x 1.11 a aa111111111 y 1.43 a ba111111111 y 1.09 a ca111111111 y 0.97 a aa111111111 z 1.12 a ba111111111 z 1.46 a ca111111111 z 1.32 b ab111111111 x 1.2 b ab111111111 y 1.05 b ab1111111...
Adam Smith
1

votes
0

answer
47

views

ValueError: Data type datetime64[ns] not understood. Please report an error to the developers

I'm trying to convert a pandas df using df.to_stata. In the process I'm getting an error: ValueError: Data type datetime64[ns] not understood. Please report an error to the developers A generalized version of the script is: df.to_stata('myfile.dta') For reference, I'm using stacked panel data in the...
Adam Harper
1

votes
0

answer
73

views

Powershell remote exchange session missing types

I'd like to collect and process some data from Exchange on remote server using powershell script. Script will be executed on host A, it will create session to host B, inside this session it will create another session - to exchange endpoint. I'm doing it this way for security reasons, Exchange sessi...
Adam Wójcik
1

votes
1

answer
125

views

How am I supposed to be building NuGet packages?

I have a few functions I want to make available to many projects I'm working on. So naturally I thought I should make a NuGet package to contain the shared code. so I: Created a class library (in this case called ADUserCacheUsage). Fixed the Assembly Info for that class library. went to the director...
Adam R. Grey

View additional