AndrewS

1

votes
3

answer
4.7k

views

Android dependency com.google.firebase:firebase-core different version for the compile (12.0.1) and runtime (11.4.2)

this is my Project Gradle dependencies classpath 'com.android.tools.build:gradle:3.1.0' classpath 'com.google.gms:google-services:3.0.0' classpath 'io.realm:realm-gradle-plugin:4.2.0' classpath 'com.google.firebase:firebase-plugins:1.1.1' this is my App Gradle dependencies implementation 'com.googl...
Andrews
1

votes
0

answer
277

views

Error in Cpanel | 0: communication failure Show/Hide Details

Need your help on this my Cpanel account seems to have an error thus whenever I try to edit a file after then when clicking on SAVE button it takes so long to respond and in the end following message displayed HTTP ERROR 0: communication failure Show/See Details
Jasshh Andrews
1

votes
1

answer
118

views

How do I access nested array object values in PHP?

I am using this unofficial PHP SDK for the Clearbit service, to enrich identity data. It taps in to Clearbit's API, which natively returns resulting identity records as JSON. It goes like this... require_once '/home/mysite/public_html/path/to/clearbit/vendor/autoload.php'; use Clearbit\Clearbit; $cl...
Robert Andrews
1

votes
1

answer
167

views

use 2's complement to add numbers of like signs. (a)48+23 (b)-48-23

I just learnt the concept of two's complement. It is useful in the subtraction of binary numbers. But in my college booklet i have been asked to solve 48+23 and -48-23 using 2's complement. What is the logic behind this and how to proceed with this question?
Harvey Andrews
1

votes
0

answer
49

views

Automapper Remove Prefix Per Map

I want to remove a prefix from my source object, but I'd like to do it for each map an not globally, as it could cause issues where it's removing a column when it shouldn't. Is there an easy way to do this? This is what I'm working with right now public partial class MappingProfile : Profile { publi...
Michael Andrews
1

votes
1

answer
481

views

Java Spring Boot with CXF generating SOAP 1.2 endpoint

I've been trying for a few days to use spring boot with Apache CXF to generate a SOAP 1.2 endpoint, however even though the WSDL doesn't use a SOAP 1.1 namespace, spring keeps generating a SOAP 1.1 and SOAP 1.2 endpoint at the same location! My wsdl definition only has an endpoint for SOAP 1.2 The...
Matthew Andrews
1

votes
0

answer
18

views

Sending a JSON in batches

I have some doubts on how to perform some tasks I use jackson to create a JSON, after I encrypt I need to do it sent to a service that will consume this JSON, the problem is that the file size (physical) is 3,571 KB and I need to send in batches of at most 1,000KB each one, as I am newcomer with sp...
1

votes
0

answer
18

views

How would i make a cat script that sanitises it's input?

I am experimenting with load balancers on my infrastructure which is protected by letsencrypt. I followed a blog article https://blog.bigdinosaur.org/finally-moving-to-letsencrypt-with-haproxy-varnish-and-nginx/ which has worked very well the problem I am having is letsencrypt support SAN (Subject A...
Aiden Andrews-McDermott
1

votes
1

answer
48

views

How to make looped function calls for pagination?

I am attempting to use the Airtable API to retrieve records from my data there - specifically, a list of URLs I have in column cells. I wrote a function, get_airtable_records, to do the API call via curl and it works - returning results as a Json object. Specifically, I am pushing the URLs to an arr...
Robert Andrews
1

votes
0

answer
24

views

Configuration and resource governance options for Azure Service Fabric stateless services?

I am new to using Service Fabric and am trying to scope out some design options. I have a class library which performs different tasks. Some tasks are resource intensive and long-running (processing messages from queues) and others are short-lived and must be responsive (handling job requests from u...
AndrewS
1

votes
2

answer
1.9k

views

Programmatically Add/Remove tabs on wxNotebook by PageText

I need to be able to programmatically add and remove tabs on a wxNotebook by the text/label that is displayed on each tab. In windows, using a tab control and tab pages, I would be able to reference each tab by a key. The tab control has a map of tab pages keyed on the text of each tab.
Chris Andrews
1

votes
1

answer
105

views

Customer and Business database relationships

I am trying to create a database design and need some help. Diagram is displayed below. The database is for an address book attached to a e commerce site. Its coded in php and uses a mysql database. See my diagram below - I think I have solved my problem but I want to know is this a good way to do i...
Kieran Andrews
1

votes
1

answer
2.3k

views

Complete example of wxwidgets custom event passing string data

I am receiving messages from the network on a non-GUI thread and need to use wxEvtHandler::AddPendingEvent to tell the GUI to update accordingly. I also need to pass data to my GUI code so that it can act apropriately. I believe I have to create a custom event, but haven't found a straightforward im...
Chris Andrews
1

votes
1

answer
530

views

General question about DirectShow.NET, DirectShow and Windows Media Format

I searched and googled for an answer but couldn't find one. Basically I'm developing a webcam/audio streaming application which should capture audio and video from a pc (usb webcam/microphone) and send them to a receiving server. What the server will do with that it's another story and phase two (wh...
Paul Andrews
1

votes
2

answer
992

views

Splitting into quarter with php and mysql

I have some blogposts and I want to create a link of archives. The link will go to a page that will only return results from a particular quarter, how do I do this with php and mysql? So I have a 'date' field in a table and only want to return results from this quarter - e.g. the link to Quarter on...
Kieran Andrews
1

votes
1

answer
347

views

Why am I not getting any index defintions in my Rails schema.db - “# unrecognized index …”

Rails 2.3.5, Postgres backend, with some read-only access to an external Oracle database. My schema.db file is not getting any index definitions. Instead, I am getting lines in schema.db that say: # unrecognized index 'auditable_index' with type ActiveRecord::ConnectionAdapters::IndexDefinition
Thomas Andrews
1

votes
1

answer
1.1k

views

c++ Boost Multithread CPU and Memory Usages are slow and high - need help

I am using boost library to create multithread with mutex. I based on some example on google. The multitrheads are working fine, but CPU are 100%, memory usage from task manager are 300K+. My two multithread functions are performed very high data conversion and analysis. I am not sure if I missed so...
AndrewS
1

votes
1

answer
98

views

Regexp / htaccess rewrite fun

I have a long list of URLs from an old site structure that I need to redirect using RedirectMatch to new URLs on the same domain. The trick is that the old (source) URLs contain a bunch of messy variables. That's not a problem, right? I just put in place some sweet little Regexp statements to handle...
Tela Andrews
1

votes
1

answer
1.1k

views

How to override 'Save As' event in Excel XP COM add-in

I am working on a C# COM add-in specifically targeting Excel XP. I need to display my own 'Save As' dialog rather than the normal Excel dialog. I tried handling the applicationObject.WorkbookBeforeSave and ActiveWorkbook.BeforeSave events and setting the 'ref bool Cancel' parameter to true, but Exce...
AndrewS
1

votes
1

answer
252

views

Show the number of foreign key objects in admin listview

I have a Competition model which has a corresponding CompetitionEntry model. I'd like to show the number of entries for each competition in the admin view. Here's the model definition: class Competition(models.Model): def __unicode__(self): return self.competition_name competition_name = models.Char...
Matt Andrews
1

votes
1

answer
464

views

Facebook Registration Connect

Updade: Ok so I've fixed my previous problem (Besides the SQLinjection which I'm not sure how to patch but for now it's unimportant) however I need to get it to detect Male or Female and strip some characters from it too... This is the code I did for that I defined the variable here: $gender = $resp...
Brad Andrews
1

votes
3

answer
252

views

How to remove \002 char in ruby

How do I remove the \002 char that has appeared in my string in ruby?
Kieran Andrews
1

votes
1

answer
314

views

Issues with mysql2 with and ruby

Trying to get the gem mysql2 installed on ubuntu and I have tried all of the suggestions but I cannot get it to run. Here is the error in my application. ./bla.rb:65:in `post_init': undefined method `query' for nil:NilClass (NoMethodError) from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/em/time...
Kieran Andrews
1

votes
1

answer
1.3k

views

jacocoData missing with EclEmma & AbstractTransactionalJUnit4SpringContextTests

I've been trying to use EclEmma 2.1.0.201202261248 to measure integration test coverage for DAOs. Unfortunately, any test which extends AbstractTransactionalJUnit4SpringContextTests (that is, anything which actually uses part of the spring framework) throws the following exception: 07:35:11 ERROR [...
Jerry Andrews
1

votes
1

answer
1.4k

views

GLSL - Attenuation not working

Problem: Attenuation is not working by decreasing the light intensity as the distance increases. My diffuse, specular, and ambient reflections look to be working. I added the formula for the attenuation variable, then multiplied the attenuation once with each diffuse, specular, and ambient. Here is...
Shawn Andrews
1

votes
1

answer
321

views

Date serialisation between two .net apps

I have a Nancy JSON REST service that uses the following serialisation code... FormatterExtensions.AsJson(this.Response, insightManager.CaseSummary(x.caseId)); Which is then deserilised by... public static T ParseResponseForObject(string response) { var javaScriptSerializer = new JavaScriptSerialize...
Rich Andrews
1

votes
1

answer
439

views

Two select boxes with 'Other' options

I have a work code for one select field with other option, that displays a text box when other is selected. However, I'm having trouble writing the code for 2 select boxes on the same page. Here is my script. function toggleField(val) { var o = document.getElementById('other'); (val == 'Other') ?...
James Andrews
1

votes
1

answer
91

views

how to make removable media private

How might it be possible to rig a system such that some removable media, like a USB stick, can be mounted by a user without any need for root privileges, and yet be made private for that user? I'm thinking of some multiuser situation, like a school or library, where there are many terminals. I sit d...
Ray Andrews
1

votes
1

answer
266

views

Making text move with the rectangle it is on top of

I am new to silverlight and so I may just be missing something due to my lack of knowledge. I am writing an app that uses Rectangles that you can click and drag to around the screen after they are generated. I have function that generates the rectangles: public void formatBox(block b) { Rectangle Re...
Charlie Andrews
1

votes
1

answer
50

views

Error with uniqueness validator in rails

I am having a problem with my validation for a model. I want to ensure that for a particular Website that each Inventory name will remain unique. When I add this to my model: validates :name, :uniqueness => { :scope => :website } I get this error: TypeError - Cannot visit Account::Website: The rela...
Kieran Andrews
1

votes
1

answer
281

views

Output stops after a while loop, without using “or die()”

I know there is another question with the same topic, but that question involves the or die() statement. I have the same problem, but i'm not using a or die() statement on my while loop. The answer is probably pretty obvious, but i can't figure it out. $Dates = '1'; $Select = $mysqli->query('SELECT...
Ryan Andrews
1

votes
3

answer
416

views

Checkbox/radiobox style for IE7+

I hate IE7, it makes me ill. Please I need help with this, probably I am doing something wrong or ... This is my css: input[type='checkbox'] { opacity: 0; float: left; width: 18px; } input[type='checkbox'] + label { margin: 0; clear: none; padding: 5px 0 4px 24px; /* Make look clickable because the...
AndrewS
1

votes
1

answer
259

views

100% width layout not working properly in a fluid layout

1st sorry if the title is not 100% at the pont, i really have no idea how to compose it. Anyway here is a simple problem with 100% width layout. I have a form that is inside a fluid container, it has - 1 input, 1 select, 1 button, they all are align inline (horizontal) the problem when i minimize t...
AndrewS
1

votes
2

answer
116

views

Java developing an app with plugin capabilities

I'm currently working on an application in Java that contains a core set of functionality, this has to be extended for several different purposes (~10 different purposes) and as such, the best solution that came to mind was the option to add plugins to expand the functionality when needed as opposed...
1

votes
1

answer
925

views

fitSharp unable to find my fixture

I'm new to C#; I'm trying to get fitSharp working with a fixture which always returns a hard-coded string ('hi'). Pretty much no matter what I do, I get 'Could not find class fixture.FitNesseDemoFixture'. I'm developing with Xamarin community edition, and running Java 1.6. and Mono. I've copied the...
Jerry Andrews
1

votes
2

answer
784

views

Crash with 'Could not load NIB in bundle ' while reloadRowsAtIndexPaths

In my app I need to expand the tableviewcell when the user taps on a particular button(which is like a toggle, tapping will expand the row and taping other time will collapse the row) in that cell. So I have implemented the custom delegate method to know which cell need to get reloaded and reload th...
Andrews J
1

votes
1

answer
775

views

Memory leak in malloc showed by instruments GPUImageFilter Objective C

I'm implementing the instagram like image filters in my app and I'm using GPUImageFilters for that. But when I keep switching to different filter more than 10 times it got crashed then I tried with instruments and found out that there is a large memory allocation in GPUFilter class and its because o...
Andrews J
1

votes
3

answer
248

views

Regular expression for year with optional closing parenthesis

I am struggling to get the following regular expression (in Java) to work nicely. I want to see if a string has a year, and the strings can be Mar 3, 2014 or sometimes with a closing parenthesis such as Mar 3, 2014) I am using text.matches('\\b((19|20)\\d{2})(\\)?)\\b') which works in most cases,...
Fred Andrews
1

votes
1

answer
464

views

Error runnning parametric bootstrap (PBmodcomp) on lmer objects

I am trying perform a model comparision of two lmer models using the function PBmodcomp from the pbkrtest package. However I get the following error. Error in `[
Andrews
1

votes
2

answer
241

views

Creating objects in C# out of XML using LINQ

Hey so I'll start out by saying this is for an assignment...I have to create a console-based shopping cart that loads and saves to an XML file. I can't quite work out how to load the XML file into objects/what the best way of doing this is.... class Product { public int RecordNumber { get; set; } p...
Jordan Andrews

View additional