Michael Michael

26048 questions
1

votes
1

answer
70

views

Editing possibility in queries

LibreOffice 5.1.6.2 I have saved some queryes and I'd like to allow users to use them directly (without any reports). Reason: there are filters thare, they are convenient. My users are sophisticated ones, so queries are ok. The problem is a possibility to edit data when looking at the results of the...
Michael
1

votes
1

answer
83

views

Naming convention for a getter of a boolean with a specific name?

I have the following member in a class: private boolean requireColons; I am aware that the convention is to prefix all boolean getters with is but isRequireColons() doesn't make sense. How should I name this?
Michael Smith
1

votes
1

answer
191

views

problems with minim and processing

trying to create a sound sampler that can play a recorded sample at different frequencies/rates and am using TickRate to change the rate of playback, similar to the TickRate example. when i run i get a NullPointerException here player.patch(rateControl).patch(out); but can't figure out why, any idea...
michael doherty
1

votes
2

answer
221

views

Google Natural Language Sentiment Analysis Aggregate Scores

In this part of the documentation of the Google Cloud Platform Natural Language API, it is described that The overall score and magnitude values for an entity are an aggregate of the specific score and magnitude values for each mention of the entity. I can't figure out how this aggregation works. In...
Michael
1

votes
0

answer
58

views

minim processing TickRate not working

Can't seem to get TickRate to change when playing back sample, when playing sample with 's' or 'd' key, both play at the same rate, trying to make it so that when playing different keys it will play a different pitch of the recorded sound like a sort of piano keyboard. It's probably a silly mistake...
michael doherty
1

votes
0

answer
32

views

how do I remove http to https redirects cent OS wordpress LAMP stack

I have a website that has redirects when I moved to https. I have since removed some of those pages but the redirects are still there an giving me 404 error. I have checked the .htaccess file and the redirects are not there. Where are these redirects kept? the answered provided in the post is on how...
Michael
1

votes
0

answer
342

views

I need to make multiple copies of google sheets, including sharing and permissions

I have weekly, hour by hour production logs for many different machines. I need to make 52 copies at a time, keeping permissions intact. I did find a way to make copies, but I lose the permissions on the protected ranges. This is how I made the copies- function copyDocs() { for(i=0; i
Michael Lake
1

votes
0

answer
361

views

React-native touch move event across components (something like onMouseEnter)

I'm making a custom calendar component with a month view where each day is a specialized component. When the user puts his finger on a day and moves across the screen I want to do something in each touched day component. In other words I need something like onMouseEnter event from standard react. He...
Michael K. Sondej
0

votes
0

answer
11

views

JavaScript Session Cookie Being Deleted by Web App — How to Debug?

I have an issue with a session cookie being deleted somehow. The code that sets the cookie and reads it has been in place for years and works on most pages. I've tried some testing (cookie name I'm debugging is 'navElemName') and somehow the cookie appears to be deleted by the web app on specific pa...
Michael Johns
1

votes
2

answer
130

views

Summing numbers from a Python SQLite3 Query

I would like to do some math with numbers I have stored in an SQLite database. My query seems to work. My issue is having python treat the numbers that I have queryed from the database as numbers. The first definition selects a unique row from my database. The second definition cycles thru a number...
Michael Crowne
1

votes
1

answer
64

views

BEM best practise - crossing blocks

I ask myself what is BEM best practise if you have two blocks which are crossing the markup. I like to share my question with you here. In the following two solutions a like to give an example: Solution A) ... 1.1.2020 ... Solution B)
Christian Michael
1

votes
1

answer
562

views

Calling a secured REST api from Javascript without user login screen

How would you call the secured REST api from the Javascript script application that doesn't have the login? I have a Javascript application (React) that doesn't have a user login. It needs to call some REST api services that uses Oauth (Azure Ad - WindowsAzureActiveDirectoryBearerAuthentication)....
Michael Sync
1

votes
0

answer
420

views

Cannot encode type ([object Object]) to a Firestore Value error while attempting pagination

So here I have my code notifull.get('/getNote', (request, response) => { // START Get variables var requestData = { // location properties subject: request.query.subject, category: request.query.category, subcategory: request.query.subcategory, // easy way to get full reference string referenceStrin...
Michael Brennan
1

votes
2

answer
271

views

Python: How to pass subarrays of array into array function

The ultimate goal of my question is that I want to generate a new array 'output' by passing the subarrays of an array into a function, where the return of the function for each subarray generates a new element into 'output'. My input array was generated as follows: aggregate_input = np.random.rand(1...
Michael D
1

votes
0

answer
155

views

Which scopes and APIs to use with Microsoft Live OAuth?

I've been trying to include Microsoft OAuth authentication in my web app using the following documentations : https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-v2-protocols-oauth-code And: https://msdn.microsoft.com/en-us/library/hh243647.aspx My question is this : sho...
Michael
1

votes
1

answer
90

views

Node app create production build for live web site - static files (no node running on webhost)

I have a question which sounds maybe trivial, but I feel like I life behind the moon. In those default React Apps, which are initialised by npm install -g create-react-app create-react-app my app I build whatever with this app and in the end of the day, I put in npm run build and it builds static...
Michael
1

votes
2

answer
113

views

Wordpress JQuery – Save Checkbox Status

im trying to use this code in Wordpress: http://jsfiddle.net/R73vy/ It should save the status of clicked checkbox-fields in a cookie. You can see my try (which doesn't work) here: https://www.docs-templates.com/checkliste/ Javascript is loaded (I think): https://www.docs-templates.com/wp-content/the...
Michael
1

votes
2

answer
47

views

How does Laravel convert the associative array into variables when passing data to views

When you pass an associate array of data to views with Laravel, how does that associative array get converted into variables? I tried to look at the source code but I can't quite see how it's done. // View view('greetings', ['name' => 'Victoria', 'title' => 'Test']); // Using the associative array d...
Michael M
1

votes
0

answer
150

views

Pyinstaller build process cannot locate pywintypes module

Recently updated my computer to Windows 10 and now pyinstaller is throwing an error. This has been working on my Windows 7 computer for as long as I can remember. I have tried uninstalling and reinstalling pyinstaller, win32 extentions, and several other things. Any ideas what could be wrong with m...
Michael Thornbrugh
1

votes
1

answer
607

views

How do I control for unit-specific trend in a panel regression with plm

I am working with panel data using the plmpackage in R and need to specify a state and year fixed effects model with linear state-specific trends. I have the following code so far: pnl_sb
Michael Perdue
1

votes
0

answer
176

views

Is it possible to lock a kiosk mode application from another app?

I have an application in kiosk mode. I enable kiosk mode with the method below and am able to enter kiosk mode by calling startLockTask(). Here is the method that allows kiosk mode: private void enableKioskMode() { Log.i(TAG, 'enableKioskMode'); ComponentName deviceAdmin = new ComponentName(this, Ad...
Michael Kemp
1

votes
1

answer
357

views

Using routes for links in ngx-translate

I´m using Angular 5 with ngx-translate for i18n. Now I´ve the following issue and found no solution so far: Template: Please Signup now! Now this string should be translated via the translation json files. But routerlink is not parsed: Json language file: 'signin': 'Please Signup now!' I found a w...
Michael
1

votes
0

answer
42

views

Set response header for every endpoint under a specific resource

I want to set the following response header for all endpoints under a specific resource: cache-control: no-cache For example, I have the resource called 'example', and under example there are multiple endpoints such as 'test1' and 'test2'. So the url's would look like this: localhost:4000/example/te...
Michael
1

votes
0

answer
244

views

Incomplete JSON string is returned from PostgreSQL

The following SQL statement returns a single row (a JSON string) Select jsonb_build_object( 'type', 'FeatureCollection', 'features', jsonb_agg(feature) ) FROM ( SELECT json_build_object( 'type', 'Feature', 'properties', json_build_object( 'cell', cell, 'value', value ), 'geometry', ST_AsGe...
Michael
1

votes
1

answer
1k

views

React Native iOS: Duplicate Symbols i.e. `duplicate symbol _OBJC_METACLASS_$_RCTWebSocketModule`

So I've got the dreaded how many ever duplicate symbols for unknown reasons. Example duplicate symbol _OBJC_METACLASS_$_RCTWebSocketModule duplicate symbol _OBJC_METACLASS_$_RCTWebSocketModule in: /Users/michaelstokes/Library/Developer/Xcode/DerivedData/Clustr-fkpfvfogtttxepgdsdrkmamfpvax/Build/Int...
Michael Stokes
1

votes
1

answer
65

views

SQLAlcemy relationships that work with MySQL generate error when used with Sql Server

I have some SQLAlchemy ORM code working with MySQL but when I change the underlying database to Sql Server I get the message Module 'user_group' has no mapped classes registered under the name 'foreign_keys' Here's are the ORM definition of one of the primary classes: class User(Base): __tablename__...
Michael Ray Lovett
1

votes
0

answer
64

views

How to handle error on batch tasks in flink

In my flink job there is a specific task 'GroupReduce' that involve external system (elasticsearch in this case) that can encounter an timeout exception. A simple try and catch is not enought because i don't want to just skip the groupreduce task if an error occure. There is a way to, once cought th...
Michael Sogos
1

votes
1

answer
48

views

Process crashes when unsetting glXMakeContextCurrent

I didn't encounter this bug a couple of years ago (last time I ran headless OpenGL context on Ubuntu). I create headeless GL context according to this example. I have zero issues with creation and running the app using this context. However,when I perform cleanup before shutdown, the moment this lin...
Michael IV
1

votes
2

answer
271

views

Connecting VB.NET to MySQL

I'm trying to use this statement Imports MySql.Data.MySqlClient in VB.NET to get the objects to work with a MySQL database. I get a build error because the MySQL package doesn't exist. However, I tried a couple different things to try to get it installed. I followed the instructions on the Oracle/M...
Michael T
1

votes
1

answer
127

views

Crossfilter isn't applying filter to multi line-chart. What am I missing?

I am new to using crossfilter, dc.js, and d3.js. I am struggling to get the filters to apply to my composite line chart. I've gone through several tutorials, but apparently am missing something as the charts don't change or look different at all if I remove the dimension with the filter applied. Her...
Michael Miller
1

votes
1

answer
39

views

How to load Images without callback hell?

I'm trying to load a couple of SVGs vie Fabric.js and push them into an array, to access them in the future. I have this small function that 'pushes' the pictures into the array. Everything works, BUT, because the asynchronous loading, I have not really a control where in the array the specific pict...
Michael Roebbeling
1

votes
0

answer
155

views

Low performance retrieving calendar events in comparison to contacts

I am currently testing some functionality (performance,...) of the graph api (using graph C# sdk) and got curious about something. When I tried to request a large number of calendar events it took a long time compared to when i accessed contacts. The attached image contains a statistic, that compar...
Michael Hufnagel
1

votes
4

answer
1.9k

views

Good form validation in Angular 5

Good morning everyone, I want to achieve the following behaviour with an ng5 form: When customer touched a form control and the input is invalid, then the form control should be marked as invalid When the customer touches no form control and then hits 'submit' all form controls should be validated T...
Michael
1

votes
2

answer
229

views

CodeName One server error: Signing for “<AppName>” requires a development team. Select a development team in the project editor

I'm trying to submit a build to CodeName One's servers for ios, but I'm getting the following error: === BUILD TARGET OF PROJECT WITH CONFIGURATION Release === Check dependencies Code Signing Error: Signing for '' requires a development team. Select a development team in the project editor. warnin...
Michael Maddeford
1

votes
1

answer
32

views

Regex Match Commas Outside Quotes - XML Schema Variant

At first glance, this looks like a common question: I want to match on commas, but exclude commas that are in between a pair of 'double quotes'. However, what makes this challenging is that I need to do this with the XML Schema flavor of regex (W3C Specification). All the solutions I could find for...
Michael Kirkpatrick
1

votes
2

answer
967

views

Redirect React Router from function

I am creating a React application using create-react-app, react-redux, react-thunk, react-router. I am setting a localstorage variable 'current_user' after authenticating so that I can setup my Restricted Routers. I am using Axios to make the ajax requests, and In my initial index.js file I have set...
michael
1

votes
1

answer
73

views

What's the purpose of JpaMetamodelMappingContext?

spring-data-jpa creates an instance of JpaMetamodelMappingContext, which maintains a metamodel of JPA entities, when @EnableJpaRepositories is used. We'd like to use the CrudRepository features (findOne, delete...) in conjunction with org.springframework.data.jpa.domain.Specifications. @Query or th...
Michael
1

votes
0

answer
61

views

Running Nomin Mapper under Eclipse cause NominException: Resource not found

I am using a Spring/Groovy application with Nomin as mapper. My Tests run fine on console after gradle build/test. Nomin finds the groovy resource file with the defined mapping. But I dont get it work in Eclipse/STS. I defined a Utils class to get the Resource File Name: class ResourceUtils { stati...
Michael Hegner
1

votes
1

answer
678

views

How to handle HTTP Status Codes across a Python application?

I'm trying to standardize my handling of HTTP status codes returned from various APIs in an effort to reduce the amount of code I copy across files. For my current application, I have a set of files that each contain one class that all derive inheritance from one master class. I'm using the Python...
Michael Bianchi
1

votes
2

answer
76

views

Can this handle 100.000 values?

I have a problem with Teechart for javascript. I want to use Teechart in our homepage to show a line graph with ~500.000 values. My code works up to 100.000 values and after this a get an error 'Maximum call stack size exceeded' teechart.js:72 Uncaught RangeError: Maximum call stack size exceeded at...
Michael Fischer

View additional