david_david

33278 questions
1

votes
1

answer
52

views

Solr Query with hyphen return Zero Result

I have a index document that look like this: {'id:'abcde-efgr-jhik','domain': 'http://www.play-bugs.com/index.com} on the Domain field, I use text_general as data type. I trying to query this document use q=domain:play-bugs it wont return any result, however if I use q=domain:play-bugs.com it give m...
david
1

votes
0

answer
124

views

How to adjust constraints with collapsing SearchBar in large iOS11 NavigationBar

How do I adjust the constraint when pushing a new UIViewController when a UISearchController is implemented as self.navigationItem.searchController = search New controller pushed: SearchBar collapses but leaves View with constrait to top = 0 on the initial position. (The background of the ViewContr...
David Seek
1

votes
1

answer
92

views

How can I do FOCAL MECHANISMS on Generic Mapping Tools (GMT)?

I've made some FOCAL MECHANISMS (FM) for the north part of Southamerica on GMT, and I need to put them on a map. For the FM I have a document with 85 earthquakes and this is the code: psmeca eventos2.dat -R-80/-66/-5/14 -JM6i -Sm0.4/0/0.05u -P -V > coltopomap.ps GMT psconvert coltopomap.ps -Tf And...
1

votes
0

answer
88

views

How do I get rid of BSON objects after a mapReduce?

I'm a complete beginner to map-reduce and relatively new with MongoDB. I am trying to perform a map-reduce on a collection (by the name Customers). My map function: var map = function() { emit(this.nationality, {edad: this.age, telefono: this.phone_number}); }; My reduce function: var reduce = funct...
1

votes
0

answer
414

views

Random Repeating Local Notifications in Swift

TL;DR: Is it possible to have repeating, random local notifications without using APNS (or an alternative push notification service)? I am building a Core Data app that includes a bunch of objects. (We'll call them widgets.) Every day at a certain time – let's say noon – I want to send a notific...
David Vincent Gagne
1

votes
1

answer
193

views

Lemur + PostgreSQL - can't render element of type

I'm trying to locally deploy a Netflix open project locally using the following documentation https://media.readthedocs.org/pdf/lemur/latest/lemur.pdf (page 46) and following these steps: git clone git://github.com/netflix/lemur.git # Create a python virtualenv mkvirtualenv lemur # Make the magic h...
David Faiz
1

votes
1

answer
27

views

Store Parameters in place OTHER than config.js

I'm using parameters for some iterative E2E tests using Protractor/Jasmine. I've seen in other articles that parameters are normally stored in config.js. Now my parameters file is going to be big, BIG and I'd rather not have it as part of config.js. Can I use a separate file e.g. parameters.js? How...
David Redmayne
1

votes
0

answer
26

views

Syntax reading high-volume data from the database and inserting in the array

We have a few million records in the mongoDB,now i want to put them in the array My problem is that,When I run the code, I encounter the following error Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 68 bytes) in I increase memory_limit to 2048 but not solved. Someo...
david
-2

votes
1

answer
25

views

How do I display a div over a div then disappear after 10 seconds? [on hold]

I have a SWF file that I play on my website. But before this SWF plays, I want to play another SWF file before it. It's about 10 seconds. So I have a two DIVs: one containing the SWF file that I want to play before, and the other div to contain the SWF I want to present. I believe Jquery can be used...
David Hinojosa
1

votes
0

answer
29

views

Efficiently pass core data objects to common detailViewController

I have a number of entities that describe different pieces of equipment. I read these into the EquipmentViewController. I'm struggling to figure how to use a generic EquipmentDetailViewController that can be used to show and update any of the different entities. I have it working by having a separat...
David DelMonte
1

votes
0

answer
67

views

CSS Animation takes focus on Samsung s8

Currently I'm working on a site where I have a big infinite animation when the user enters the page. Now, on my computer(google chrome) and my phone(safari), the animation looks fine and behaves correctly. However, when I tried to enter the site from my friend's Samsung Galaxy S8, the website start...
David Lasry
1

votes
1

answer
64

views

Combine 2 queries (different columns from 2 different sheets) and filter based on matching results

As usual, I have set a goal, way beyond my skills... I need to get data from 2 sheets, One has a lot more entries than the other (a master list I guess you could say). Any entry in the smaller sheet will always have a matching entry in the Master, but not necessarily the other way round. I have wri...
David Tonkin
1

votes
1

answer
708

views

AWS Amplify React Native, GET request error 403 status code

I enabled access to unauthenticated identities to do some quick testing before integrating authentication. My configuration code is the following, Amplify.configure({ Auth: { identityPoolId: 'us-east-1:example', region: 'us-east-1', userPoolId: 'us-east-1_example', userPoolWebClientId: 'us-east-1_ex...
David Kim
1

votes
0

answer
49

views

How to re-increment each id attribute in Formset after deleting a Form in Django?

I currently have a formset rendered to a template, where I do a for loop over it to display each form. I have a button which adds extra forms and I also have a delete button which removes any of the forms. My problem is when I delete one of the middle forms, the incrementing from the formset managem...
David Arce
1

votes
0

answer
260

views

MDM deployment of Testflight build?

Is it possible to deploy a TestFlight build using MDM? We'd like to deploy the app for testing with a config file. We don't have the app in the App Store yet and want to control who can run it. We are using a standard developer account, not an enterprise developer account. Thanks
David
1

votes
0

answer
425

views

How do I make Android AlarmManager send repeating alarm reliably?

I have written a cross-platform application using Xamarin Forms in Visual Studio 2017 for members of a social group, which provides reminders of coming events and a means to reply to invitations to attend them. Everything works in the Android version except for the reminder system. (I am leaving iOS...
David S
1

votes
0

answer
52

views

How to initiate workers in celery

I want to know if is this the correct way to initiate workers in celery: celery multi start -A app conc carga -c:conc 1 -c:carga 3 If anyone can give more details of what this script does, I'm trying to run async task in django using celery. Then, I start celery doing this: ./manage.py celeryid -lDE...
David Rosales
1

votes
1

answer
71

views

Jasmine HTML2 Reporter

I have been using Jasmine2-HTML-Reporter and it's been fine. Produces a multi-spec report with screenshots - just as I need. However, something seems to have gone awry! Now I will only get a report for the first Spec and nothing for any other spec. Also, the system used to delete the previous report...
David Redmayne
1

votes
0

answer
30

views

Authentication Mechanisms in Terminal Servers

I am working on a legacy application wherein I have to implement authentication mechanism in VDI & Terminal Servers using Azure AD for different types of users (guest, member). I could not find any resources on Azure blogs regarding AAD B2B for VDI and Terminal Servers. Is there any tutorial on appr...
david nadal
1

votes
0

answer
504

views

How do I compare local and remote asset bundle versions without actually downloading the asset bundle?

What I'm trying to do I'm working on a sort of portal to showcase several of the projects my organization has made in Unity. To keep it flexible and light, I've designed an architecture using asset bundles: When the user downloads the portal, all they download is a bootstrap scene that loads in the...
David Rodriguez
1

votes
0

answer
105

views

Why chrome.tabs.executeScript matchAboutBlank is not valid for top-level about:frames?

I am developing a Chrome plugin which creates a new window based on the content of the current page, and then another plugin which needs to insert some code to the about:blank page created previously (using background.js, and not content_scripts, as in this case: Chrome extension permission for 'abo...
David Portabella
1

votes
1

answer
169

views

Interrupted downloads when downloading a file from Web Api (remote host closed error 0x800704CD)

I have read near 20 other posts about this particular error, but most seem to be issues with the code calling Response.Close or similar, which is not our case. I understand that this particular error means that typically a user browsed away from the web page or cancelled the request midway, but in o...
David Anderson
1

votes
0

answer
199

views

Is there a meta tag to support inertia scrolling

I currently have this set of code only for handling viewports. name='viewport' content='width=device-width, initial-scale=1.0' body { height: auto; overflow-y: scroll; -webkit-overflow-scrolling: touch; } Is there a way to prevent using CSS or scripts to support scrolling on mobile devices?
Von David
1

votes
0

answer
51

views

Swift firebase - How to paginate posts by date across different users

Pagination has been discussed a lot. But I still would like to know if there is a way to query posts like 5 at a time according to their creationDate across all users. In other words, I would like to display the newest posts in the order or creationDate no matter who the posted them. The database st...
David Wu
1

votes
1

answer
214

views

Restore Done but I dont see any database

I run this mongorestore --db dbName and I got the --db and --collection args should only be used when restoring from a BSON file. Other uses are deprecated and will not exist in the future; use --nsInclude instead so I used mongorestore --nsInclude 'dbName.*' and I got 2018-01-06T21:28:02.1...
david
1

votes
0

answer
349

views

gatsbyjs - How to get Contentful posts filtered by year?

I'm using gatsby-source-contentful where I have a type called ContentfulBlogPost, whose schema looks something like this: { id title body date } Date is a string (in YYYY-MM-DD format), auto-magically handled by Gatsby's data layer as a Moment object; I can call fromNow and formatString on it and al...
David Demaree
1

votes
1

answer
75

views

ComboBox missing items

I'm facing a weird problem with ComboBox. I would like to represent key combinations in a ComboBox, where every key is on a Canvas. Binding works just fine, and after initialization it looks ok, but when I click on it and expand the dropdown list the current selected item will be empty and if I cha...
Dávid Kalmár
1

votes
1

answer
262

views

How to render an html template from express, while on Angular5

So, I ran into a fairly unique situation. I was tasked to convert an existing repository that's running server-side express and html as its view engine, to express with client-side Angular (5). I got stuck, when I arrived at an html view that I couldn't convert to Angular, and would like to have exp...
David Lee
1

votes
0

answer
40

views

Django: how to let a user update time part of an aware datetime?

In my code, I want a user to be able to edit the start/end time of an object which contains start/end datetimes. That why I'm trying to create a form to edit the time part only: Forms class UpdateServiceForm(forms.ModelForm): # ModelForm is used just to get the object instance inside the form class...
David D.
1

votes
1

answer
70

views

Search via Python Search API timing out intermittently

We have an application that is basically just a form submission for requesting a team drive to be created. It's hosted on Google App Engine. This timeout error is coming from a single field in the form that simply does typeahead for an email address. All of the names on the domain are indexed in the...
David Aulick
1

votes
0

answer
37

views

Running fast function and slow function with multi-threading in matlab

I'm new with multi-threading in Matlab so I guess that what I need to do will be simple for anyone with a little experience in it. I have two functions f1 and f2 such that: f1 - runs about 10 seconds and returns accurate results. f2 - return estimated results immediately. Both functions get the same...
David
1

votes
0

answer
176

views

Pick random record from Firebase

I have the following code, I need to select random form objects, my idea is then to show the result in html and when the person reloads the page I can see another different result. { '-L2LfbYxbwXDXiWNpt27' : { 'count' : 18 }, '-L2PFNOQI28O_F_3YyuK' : { 'count' : 13 }, '-L2PG848o7AGzKZTBnem' : { 'cou...
Juan David
1

votes
0

answer
51

views

Use CXF JAXRSServerFactoryBean to return simple text for tests of communication failures

I'm working on a codebase that attempts to make a REST call to a remote service, which returns JSON. The call works fine when it gets normal JSON back. In some cases, like when the network blows up, it gets back HTML, which tries to report various network problems. Our error handling code in the c...
David M. Karr
1

votes
1

answer
765

views

How to select a data set on shiny app?

This is my first question as I'm struggling with learning programming... I'm trying to make a Shiny app that makes a plot according to the data set selected by the user. Yet I keep getting the following error:- ggplot2 doesn't know how to deal with data of class character even though I'm specifying...
David Jorquera
1

votes
1

answer
73

views

How do I get flyway.cmd to fail a build when no migration is necessary?

I've built a pipeline in Jenkins that uses Flyway. I'd like to run a command that returns a positive exit code so that the build step fails if no database migration is necessary. I could of course run flyway migrate and it would harmlessly do nothing, but I'd like to flag this to the end user as a...
David Atkinson
1

votes
1

answer
104

views

transcrypt connectionpool error

I am very new to coding and web development. I am a Systems Engineer and looking to get into the Web Development side of things. I took some python tutorials and pieced together a (probably very) rough python application. I would now like to take that application and put it on a website I have cr...
David B
1

votes
0

answer
72

views

FlatList equivalent to ListView's adjacentRowHighlighted in renderSeparator

When using ListView's renderSeparator function you get the adjacentRowHighlighted parameter so it's possible to style the separator differently depending on whether one of its neighbouring rows is being highlighted by the user. I can't find the same functionality for FlatList and its ItemSeparatorCo...
David
1

votes
0

answer
106

views

Spark ML print model (pipeline)

I have dataset which was created from dataframe using VectorAssembler, the dataframe is a transformation of StringIndexer() for multiple columns I trained my model : val assembler = new VectorAssembler()..... val data = assembler.transform(...) val featureIndexer = new VectorIndexer() val gbt = new...
David H
1

votes
0

answer
62

views

Install parse failed manifest error

I am getting an error when running a project I am working on about notifications. The event log lists the error as: 'Failed to finalize session : INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl433950800.tmp/base.apk (at Binary XML file line #41): Invalid...
David Käriu III
1

votes
0

answer
37

views

How can I block these external Youtube API JS scripts that are loading on my website through an iframe?

To optimize my website load I've concatenated all my JS and CSS scripts into as few as possible. BUT, I'm still loading a couple extra through a Youtube embed iFrame that I'm using as a video background header. These 3 scripts are driving down my Google Page Speed Insight score (ironic considering t...
David A. French

View additional