ben ben

16811 questions
1

votes
1

answer
192

views

Marker anchor/offset on Mapbox 5.2

I am setting markers on an Android Mapbox. Those markers are not squarred images and can not be centered, they need an offset. On Google Maps I can use Anchor, X and Y. On previous versions of Mapbox I could have used MarkerView with the same Anchor. But now in Mapbox 5.2 MarkerView is deprecated. S...
Ben-J
1

votes
0

answer
43

views

Dynamic color changing data table

I have a very basic GUI that I created using Ironpython. Inside the GUI there is a button and a table. The goal is to click the button and after few calculations the table will be filled with the results of the calculation. However, I had like to be able to change the color of each row depanding on...
Ben
1

votes
0

answer
152

views

Defining window buttons in ironpython wpf

I have made a simple GUI where I added manually the close, minimize and maximize buttons. However, I cant figure out how to add the command that once I click them, they do what expected. The code looks as following: import wpf from System.Windows import Application, Window from teleb_Data import boo...
Ben
1

votes
1

answer
1k

views

Laravel Valet sites connection refused on port 80

Ever since Chrome and Safari started forcing HTTPS redirection on the .dev TLD I've been getting issues connecting to my Laravel Valet sites. Without knowing that Chrome and Safari had done this, I updated Valet to from 1.2 and not thinking to check in Firefox first (doh! 😖). I've installed the l...
Ben
1

votes
1

answer
289

views

Calling IntelliJ Swing Forms from another class

I'm just starting out with Java and I've run into this concept that I don't understand. I want to know how I can open a form developed with IntelliJ's Swing Form editor from another class. See below this code works fine in one class. import javax.swing.*; import java.awt.event.ActionEvent; import ja...
Ben Yazolli
1

votes
1

answer
359

views

Angular 4 OverlayContainer duplicate

In my project I'm using md2 components and angular material dialog component. After running my code in my browser, when I open a md2-select or a md2-datepicker, it adds a cdk-overlay-container div to the page's body: Every time I use an md2 component which needs an overlay, it uses the existing one....
Ben
1

votes
2

answer
83

views

How to dynamically insert strings in my linked list?

My C program should read an input file and save it line for line in a linked list, then printing it. But when it's inserting the next line in the list, all elements in the list become the new element. Input: abc def ghi Output: ghi ghi ghi I'm not sure but my guess is that it's not correctly a...
Ben
1

votes
1

answer
2k

views

Install php70-mcrypt on mac high sierra

I've installed mcrypt using Homebrew but it doesn't seem to be loading. I installed by running: brew install php70-mcrypt When I run phpinfo() in a browser I don't see mcrypt installation details (apart from the module authors). Is nginx using the same php that I get from the command line? Or am I n...
Ben
1

votes
0

answer
104

views

mediaCodec flush doesn't return

I'm decoding a video with Android, and apply some treatment to the audio part before to display it. To be sure both streams are synchronised, I'm using the MediaSync object. When I receive a BUFFER_FLAG_END_OF_STREAM flag, I want to loop my video. I have a 'seekTo' function to do that (I call it wit...
Ben.
1

votes
1

answer
352

views

spring boot - how to stop the backend rest api processing after the frontend is closed

I'm using spring boot to create a restful backend application and the frontend is using vue. When someone sends a rest request to my backend application via my frontend webpage, is it possible to stop the backend processing thread after the webpage or the web browser is closed? Thanks. Regards, Ben
ben
1

votes
0

answer
359

views

python pygame.error: video system not initialized

I am trying to open a window in pygame but keep getting this error: Traceback (most recent call last): File 'python', line 3, in pygame.error: video system not initialized This is my code: import pygame pygame.init() pygame.display.list_modes() pygame.display.set_mode([700, 500]) black = (0, 0, 0)...
Ben Harper
1

votes
0

answer
37

views

Load a url from an event into a qtip using ajax

I have a chrome extension which must display the preview of the link in a tool-tip. Right now I can display the url using the text but when it is passed into the ajax part I have no idea how to pass the url as either the event or as an element.Right now it displays the same page on which the browser...
Ben Stewart
1

votes
0

answer
61

views

How to use static methods for service control with Procrun

I am writing an SFTP service using Apache SSHD. The server will be installed on Windows using Apache commons daemon procrun. I'd like to handle service start/stop using static methods start() and stop() similar to how Tomcat does it. However I don't understand how this works. I think my confusion co...
Ben Foltz
1

votes
0

answer
129

views

Cloned Table Header (jquery)

first time questioner..... I have a task of sticking a table header when the table hits the top of the browser. I decided to clone the original table header and place it within a new div which only gets shown when the document scrolls to a certain position, I then push the generated column widths of...
Ben
1

votes
1

answer
329

views

Slideshow image on modal image

I do not understand how to make the front images (modal image) to slideshow and not the image on the back, because as you can see it moves the image on the back slideshow when I click on the arrow to move the images on the front. I think the problem is with the 'class' 'myslides' when I call the sec...
Rachel Ben-Ratzon
1

votes
0

answer
49

views

DCF77 on BeagleBone - Get Time Signal and decode it

I want to have a RTC on my BBB. I wired the DCF77 on the UART4. Can you tell me how can I read the signal of the DCF77 and decode it on the BBB ? Thx
Ben Jo
1

votes
1

answer
28

views

Printing - inserting sheets between pages

I am attempting to build a macro that can print certain pages built on an input form. The issue I'm having trouble with is actually setting the custom print area to what I want. An example is below: I want to be able to print Page 1 & 2 from 'Sheet1', then insert Page 1 from 'Sheet2', and then print...
Ben Edwards
1

votes
1

answer
22

views

How to underline the menu items with a custom glyph

I managed to add a custom glyph under the currently selected menu item on my website. But I don't know how to center the glyph... The first one is centered, but when we hover over the other menu items, they have varying lengths and the centering is lost... It is purely css, based on the 'a::after' p...
Ben Viatte
1

votes
0

answer
34

views

How to delete child from Firebase with nested structure

I am writing an app whereby person X can make a post, and person Y can save it for viewing later. When person X deletes his post, I would like it to be also deleted from the saved items of person Y(or any other person who has the same saved post). I'm using firebase as the database for it and the st...
Ben
1

votes
0

answer
25

views

Angular Compilation Error on import but method works

I have this external script which is added to the scripts sections of angular-cli.json I then import it into my component and declare it as a variable. Here is my component code declare var radarChart: any; import { Component, AfterViewInit, ElementRef } from '@angular/core'; import * as d3 from 'd...
Ben Donnelly
1

votes
0

answer
94

views

Vertically aligning multiple timeseries plots

I've got measurements of several different quantities made during the same range of time. How can I plot them all in the same window, so they're all vertically aligned—that is, so that for any given time t, all the data points for that time have the same x (horizontal) coordinate in the window?...
Ben Kovitz
1

votes
1

answer
29

views

How can a Spring app in docker access mysql in host or cloud mysql?

How can I get my Spring App host in docker to access the mysql host on my host mechine(mac) or access a cloud mysql service? I know if the mysql is another docker container, I can use link in docker. But this situation is not. version: '3' I tried the host mode, seems still get the connection refuse...
Ben
1

votes
1

answer
301

views

[Facebook][Graph-API] Facebook doesn't return all posts for a page

I'm currently testing to get some posts from a media page for a specific time range: page: https://www.facebook.com/LExpress since: 2017-09-06 11:00:00 +0000 (strtotime -> 1504688400) until: 2017-09-06 18:00:00 +0000 (strtotime -> 1504713600) But surprisingly some posts are missing from Facebook res...
Ben Tazulev
1

votes
0

answer
445

views

QML RTSP Stream from a network camera

I have a question about the RTSP Stream. How can I display a RTSP Stream from a netwok camera in qml? the settings: Qt5.10 Camera: LunaIP L-DA-5203-V2 OS: Windows 7 Things I have tested: QML: Camera, MediaPlayer, VideoOutput Until now I didn't found any things how I can solve it in QML? I am very gr...
Ben
1

votes
0

answer
35

views

MDM mobile app recommended flow/strategy

I would like to be able to authenticate via OpenID/mobile app on a MDM enrolled device, without user having to login ( as with a classical hybrid pkce flow ), I mean , the device is enroled on MDM so I would like to authenticate against identity server and find some way to used some mdm pushed infos...
Ben Atoutmoment
1

votes
0

answer
570

views

PDFKit Ink Annotations

I've been working on a PDF editor / annotator using the iOS PDFKit framework. When I create annotations using the default options, they end up rendering strangely or not at all (which I've determined means they are rendering just outside the bounds of the annotation, since setting the annotation bou...
Ben Vest
1

votes
1

answer
1.1k

views

How to use Ant Design Menu component

I'm using Ant Design menu component; everything goes well until the page is refreshing. Then, the menu selected item back to the top one. How can I configure the selected item of the menu (to show the user where he is on the page) based on the page he actually in? Thanks a lot! Edit: using React 15,...
Sahar Ben-Shushan
1

votes
2

answer
51

views

AJAX display result wordpress

Good morning, everyone, I have a new problem with my script. I cannot display the values of my SQL request. My game. php script that acts as a view: blablablabla Then come my file with my AJAX request: function btn_display_urgent(html){ $.ajax({url: '../../wp-content/plugins/game_plugin/process_...
ben
1

votes
2

answer
639

views

How to disable the SwiftKey (third-party keyboard) behavior in EditText?

I'm using the standard EditText control in my Android app. The input for this EditText should be inserted only from the built-in Keypad of the app. When SwiftKey (third-party keyboard app) is installed on the device, it causing to strange behavior like a jumpy cursor, and underline below some text....
Ben
1

votes
0

answer
371

views

Failed to invoke PACT method

I have this snippet of code, while trying to create a pact file for my service, but it keeps throwing Failed to invoke pact Method. However, when I run the normal client request, it returns a json object, but when trying to run the pact test, it fails. Below is the snippet of the Test class public c...
Bigg Ben
1

votes
5

answer
61

views

Labels in custom TableViewCell always return their initialization values

I am fairly new to Swift and have researched the following problem extensively yet unsuccessfully. I've created a custom TableViewCell class named ConversationCell and defined its UI in a NIB/XIB file. import UIKit import SwipeCellKit class ConversationCell: SwipeTableViewCell { @IBOutlet weak var...
Ben
1

votes
1

answer
73

views

Tag not interpreted

I have a problem with my script. I Insert in my bdd my mails thanks to the Outlook API. To make an Insert I get the source code of my mail then insert it, so far no problem. After that I make a select to display the mail in another page. My problem is that the source code is not interpreted , it sh...
ben
1

votes
2

answer
48

views

Update table with row_numbers without unique ID

I have a travel time table where each day is segmented by 288 5 minute epochs. I want to create a count of these epochs from 0-287 for each day. So the count resets for each day so each day has a 0-287 count. I got this far but I'm getting a incorrect syntax error. update [dbo].[table] set count =...
Ben Zeddicus
1

votes
0

answer
315

views

AWS CodeBuild Unable to “go get” a package

I have an AWS CodeBuild job, defined with the following buildspec file (apologies if indentation isn't reproduced correctly): version: 0.2 env: variables: PACKAGE: 'github.com/user/package' phases: install: commands: - mkdir -p ${GOPATH}/src/${PACKAGE} - cp -a ${CODEBUILD_SRC_DIR}/. ${GOPATH}/src...
Ben
1

votes
2

answer
355

views

Linq Includes Alternative

I am a loading a entity from the database like so var profileEntity = await Context.Profiles .Include(x => x.MedicalRecords) .Include(x => x.DrugHistory) .Include(x => x.EmploymentStatus) .SingleOrDefaultAsync(x => x.Id == id); All is working fine, I was just wondering if there is a better way to i...
Ben Donnelly
1

votes
0

answer
73

views

Android Studio crashes with bluetooth getSystemService call. May be gradle/api version related

I am making an app that uses BLE and I am trying to get basic functionality for streaming Bluetooth data working on my app. However, this line: BluetoothManager btManager =(BluetoothManager)getSystemService(Context.BLUETOOTH_SERVICE); will crash my app upon initialization. The app works fine withou...
Ben
1

votes
0

answer
63

views

Data Workflow - Trouble aggregating 50 million rows in R?

The data set begins as 12 monthly csv files. Each file is loaded into R to work with. One step is to find all combinations of a certain factor group which results in 4 million rows. I have 16gb RAM on my computer, which with other tasks, is not enough to store all 12x4million rows. The end goal is t...
ben hulet
1

votes
0

answer
21

views

Index error when formatting output

I am very new to programming. I've been watching youtube videos and reading anything I can get my hands.I have no formal training. admittedly this is not my code although I understand most of what it's doing I would like assistance understanding the error I am receiving. I have googled the error and...
Ben Caldwell
1

votes
1

answer
231

views

Meaning of y-axis in in Tensorboard Activation Summary

I'm having trouble interpreting the y-axis for my activation summaries. I understand that the x-axis is values and the z-axis is the global step. I thought the y-axis is a density chart of activated nodes in the layer, but that doesn't seem right. When I look at the histogram for my last layer (an...
Ben Dodson
1

votes
0

answer
282

views

Modernizr tests not working on custom build

The Issue I am currently experiencing a very odd issue with Modernizr... I have compiled my own build of modernizr into /node_modules/modernizr/modernizr.js, which I load into my app like so (compiled with webpack): window.Modernizr = require('modernizr/modernizr.js'); if (!Modernizr.flexbox || !Mod...
Ben Carey

View additional