Adam Adam Adam

15810 questions
1

votes
3

answer
629

views

How would I fix indentation on an font awesome icon? [duplicate]

This question already has an answer here: Text indent after the first line in a paragraph 4 answers How do I fix the indentation whilst using this font awesome icon as list to display advantages? This is my HTML: No upfront payment is required to access the solution. A Nominee and Supervisory fee...
Adam
1

votes
1

answer
334

views

Javascript - How to change src of iframe when video ends

I would like to know how can I change the source of iframe automatically when video ends. I am using this script to generate iframe and the function onPlayerStateChange to detect when the video ends. I basically need to change the videoID after the video finishes playing. My JS: // create youtube pl...
Adam Šulc
1

votes
2

answer
27

views

CRM - Query records with 'incompatible' combinations of values (SQL, SSRS)

I have a record type in my CRM environment where there are two lookups. There are certain combinations of values that aren't 'valid,' but no constraint in the system to prevent that entry. To illustrate, I'll use a small sample of cities and states to explain. External to the CRM, I have a spreadshe...
Adam G
1

votes
1

answer
46

views

Change size of figure in MATLAB to use them in LaTeX

I have generated several plots in MATLAB and I haven't set the ( width or height) to any of them. I save them as pdf to place them in LaTeX but each figure appear with different size. I can change each figure size in LaTeX but I wonder if there is an easy way in MATLAB to get same size for all figur...
Adam
0

votes
0

answer
5

views

How to render items in succession with Flask/Jinja2?

I'm trying to cycle through a list of variables on my application's front-end. The only caveat is I want the variables to cycle through a list showing one variable at a time. How can I achieve this? Is there some functionality in Jinja2 that allows you to do this? {% for x in [1,2,3,4,5] %} {{x}} al...
Adam Roman
5

votes
3

answer
90

views

Summing map values per each key

I have the following maps: {21=0, 22=2, 11=0, 12=0} {21=3, 22=0, 11=6, 12=3} {21=6, 22=0, 11=7, 12=0} {21=5, 22=7, 11=9, 12=1} The following code returns these maps: for (Chrom t: obj.getChroms) { Map result = t.getExecutionCount(); } The method getExecutionCount() returns a single map. For the exam...
Adam Amin
0

votes
1

answer
14

views

How do you send a cross origin request from localhost?

I have my front end running on localhost:8080 and my server on localhost:3000. I'd like to send a request from my front end to the server. When I do, I get the following error: Access to XMLHttpRequest at 'localhost:3000/create-sharable-url' from origin 'http://localhost:8080' has been blocked by CO...
Adam Zerner
1

votes
1

answer
39

views

Getting Javascript To Pass Variable By Value

I have two while loops running simultaneously with observables, the methods look like this (I've taken out the names for brevity): initiateGraph(fromDate: Date, toDate: Date) { const graphParts = zip( this.dothefirstthing(fromDate, toDate), this.doanotherthing(fromDate, toDate) ); } both methods tak...
Adam Weitzman
1

votes
2

answer
696

views

Adding a small table to a base graphics multiple plot chart [duplicate]

This question already has an answer here: Arrange base plots and grid.tables on the same page 1 answer I have a multiple plot chart: layout(matrix(c(1:4), 2, 2, byrow = FALSE),    widths=c(1,1), heights=c(1,1)) plot(1:6) plot(2:7) plot(3:8) I now want to add a small table in the bottom lower co...
adam.888
1

votes
1

answer
31

views

Add comma at thousandths in plot label

I have eg data below: eg_data_x
Adam_S
1

votes
2

answer
18

views

How do I select a random word within a cell?

I want randomly to select a word from a cell that is generated by a form field using the 'paragraph' answer option.
adam
1

votes
1

answer
24

views

Why is this mysql trigger given an error?

i'm trying to translate my oracle trigger to mysql but i'm getting an error. This is my mysql trigger: delimiter // CREATE TRIGGER z_asdsdas BEFORE UPDATE ON PRODUCT FOR EACH ROW BEGIN DECLARE v_result INT; SET v_result = 0; IF 'BETWEEN' = 'BETWEEN' THEN IF NEW.PRIJS >= 1 AND NEW.PRIJS 10 THEN SET...
J. Adam
1

votes
2

answer
25

views

Retrieve range of data per each value and sort them

I have the following dataset: Class Value Abrir 15 Abrir 9 Abrir 29 Abrir 13 Salvar 10 Salvar 6 Salvar 9 Shift 16 Shift 12 Shift 10 Shift 17 I want to retrieve the range of values for each class and sort them based on the smallest value such the following...
Adam Amin
1

votes
4

answer
48

views

How to map a list by chunks in kotlin

I often end up with data sources like (pseudo code below, not any specific syntax, it is just to illustrate): list = { 'XLabel', 'XDescription', 'YLabel', 'YDescription', 'ZLabel', 'ZDescription' } desired output is: list = { MyClass('XLabel', 'XDescription'), MyClass('YLabel', 'YDescription...
Adam
1

votes
3

answer
133

views

Difficult workflow writing Latex book full of Python code

I'm writing a book on coding in python using Latex. I plan on having a lot of text with python code interspersed throughout, along with its output. What's really giving me trouble is when I need to go back and edit my python code, it's a huge pain to get it back nicely into my latest document. I've...
Adam B
1

votes
1

answer
34

views

Separating Environments in AWS

Is there a best practice around separating environments in AWS? I've got a solution that employs the following services: Lambda SNS SQS DyanmoDB API Gateway S3 IAM We're not live yet, but we're getting close. By the time we go-live, I'd like a proper production, test, and development environment wit...
Adam
1

votes
2

answer
40

views

Hashing a string in python returns the wrong result?

I've been set a homework task by a tutor to create a procedure which hashes a string, or in a sense gives the index of the string in a hash table if it was hashed. It was supposed to return 11, but returned 0, can someone help me figure out why? def hash_string(keyword, buckets): ords = [] for e in...
Adam G
1

votes
2

answer
40

views

Look down an unsorted list to find a greater than or equals value

I have a list of non-sorted quantity in column A and their corresponding values in column B. I need a non-array Excel formula that returns the first value that is greater than or equals to the input quantity. For e.g. : Minimum Qty: 6 Scenario 1: Output Value: B Scenario 2: Output Value: B Scenario...
adam
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

View additional