Adam H

0

votes
0

answer
4

views

How to properly use slot inside of vue js web component and apply styles

I have come across an issue where the implementation of slots in a webcomponent is not functioning as expected. My understanding of Web Components, Custom Elements and Slots is that elements rendered in a slot should inherit their style from the document and not the Shadow DOM however the element in...
Adam H
1

votes
1

answer
231

views

AWS Redshift: Load data from many buckets on S3

I am trying to load data from two different buckets on S3 to Redshift table. In each bucket, there are directories with dates in their names and each of directories contains many files, but there are not manifest. Example S3 structure: # Bucket 1 s3://bucket1/20170201/part-01 s3://bucket1/20170201/p...
Adam H
1

votes
1

answer
113

views

Trouble deserialising xml file using DataContractSerializer

It's been awhile since i've used DataContractSerializer and i'm having a little trouble deserializing a xml file. The error i'm getting is: {'Error in line 1 position 117. Expecting element 'SoftwareLicense' from namespace 'http://schemas.datacontract.org/2004/07/Solentim.Modules.Licensing.Activatio...
Adam H
1

votes
3

answer
40

views

Anchor tags in HTML with scroll transitions do not correctly link to each other

So I have this fixed menu bar: I have all of these sections on one long webpage, with each link connecting to somewhere else on the page. I also have the following JavaScript, which is used to make the links scroll to their locations instead of jumping to them: However, when a user clicks a link, in...
Adam H
1

votes
1

answer
1.6k

views

React not using proxy server

I have added the proxy to the package.json in my react app, I have the proxy server up and running on port 3001 - I can hit it with my browser. I have tried using both axios and fetch, it doesn't seem to matter. Here's a link to the repo if you want to check it out. Otherwise, here is the package....
Adam H
1

votes
1

answer
74

views

Vue - Load External Components From Another Site

I am trying to retrieve a vue component from an external site and load it in my app and cannot for the life of me figure this out. Here is the full scenario; Site A (Internally Hosted Site) loads a VueJS application Site A requests a VueJS component from Site B (Internally Hosted Site, different sub...
Adam H
1

votes
1

answer
1.7k

views

CSS Animation on load and before redirect

I'm currently working on a HTML5 mobile platform and I have a landing page for my application which is tiled and is laid out as four equally sized tiles (divs) on the screen I've been messing around with CSS3 animation all afternoon and I've found something which I think can be of use if I can figur...
Adam H
1

votes
2

answer
1.9k

views

Unity3D stream audio file from disk

I'm building an audio player that needs to be able to play files from disk which aren't available at build time (so users can put their own music in). OGG/WAV files are fine and I need to support both Windows and OSX. I've tried using the WWW class as such: using UnityEngine; using System.Collection...
Adam H
16

votes
4

answer
47.5k

views

Making a control transparent

I am currently developing a simple image editing tool using Winforms and .NET 3.5 (work environment). I have a requirement that when the user clicks a select tool button, a square (rectangle in C#) will appear that they can scale between 100x100 and 400x400. I have this bit fixed - the issue comes w...
Adam H
17

votes
3

answer
15.4k

views

Variable as a column name in data frame

Is there any way to use string stored in variable as a column name in a new data frame? The expected result should be: col.name
Adam H
1

votes
1

answer
1.3k

views

Reading and Writing to a HTTP Header

Currently I've got a web application with two pages, Login and Default. I've been tirelessly trying to write 2x GUID's which are returned into a HTTP header when a login procedure is executed in the code behind on the login page. I then want to read these out in the page load of the default page. I'...
Adam H
6

votes
2

answer
10.9k

views

SSIS Package Not Running as 32bit in SQL Server 2012

I have a package that I developed in VS2012 (using the SQL Data Tools component) which collects data from a DBF file using the VFPOLEDB provider, and puts it into a database on a SQL Server 2012 X64 server. The project containing the package has the DebugOption of Run64BitRuntime set to false. I hav...
Adam H
4

votes
1

answer
2.4k

views

Scala - tuple3 - syntactic sugar

What is the syntactic sugar equivalent of following syntax: List[Tuple2[String, Int]] // Base List[String Tuple2 Int] // Syntactic sugar for Tuple3? E.g.: List[Tuple3[String, Float, Int]] // Base
Adam H
2

votes
1

answer
1.7k

views

web essentials browser link not working in asp mvc 6 project

I'm trying to get browser link working so I can use web essentials toolbar in the browser. I'd expect to see some code injected at the bottom of the page source for browser link like in ASP.NET 4 projects but this doesnt seem to be the case with ASP.NET 5. Has anyone else managed to get this workin...
Adam H
2

votes
1

answer
4.3k

views

Alignment of control widgets on fluidPage in shiny R

I am working on a shiny app, but ran into a problem with the placement of widgets depending on the size of the browser window. I am using nested column and fluidRow to place my widgets (see code below). I want the left side of widgets B and D aligned, and the right side of B and E (see Fig 1), but w...
Adam H
2

votes
2

answer
2.7k

views

Uploading xcode project to app store

I’ve been going around in circles. Any help will be appreciated. I have submitted all the application details to iTunes connect - Thats not a problem. As I went to upload my binary version I got a message telling me this is no longer possible and it needs to be uploaded through xcode? I’ve sear...
Adam H
2

votes
1

answer
142

views

Different icons?

May be a easily solvable problem but I cant seem to find a solution. I understand that you need different icon sizes for different devices as explained here ( http://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html ) But how will my app...
Adam H
2

votes
1

answer
7.4k

views

Initializing a Google Map With jQuery

I am just starting out with Google Maps API v3 and jQuery. I have made maps before with the v2 API, but it didn't use jQuery. This way will hopefully help me learn some more jQuery on the way. I am following the example on the Google Maps API Tutorial and trying to get their most basic hello world w...
Adam H
2

votes
2

answer
718

views

C# - Force Excel to ReCalc before Save

Good Morning Overflow-ers! I have been writing an agent which will open an Excel file, modify two cells and then save the workbook as well as a copy of this workbook. What I really need is for just before the save, my agent to force a recalc on the whole workbook, so that all of my queries (which ar...
Adam H
1

votes
2

answer
1.7k

views

Converting Multi-Dimensional Array to Single, with nullable Values

I am using ExcelDNA/C#/Excel primarily. What I am essentially trying to do is convert a multi-dimensional array (namely a range of cells) to a singular dimensional array, using the following code: private static string[] MultiToSingle(object[,] multiArray) { List tempList; string[] returnArray; temp...
Adam H
6

votes
4

answer
22k

views

Get the current Workbook Object in C#

I've been writing an application in C# which creates Custom Document properties in an Excel spreadsheet, I have a function for this which takes in a Workbook Object... However, actually getting the current Workbook object is proving to be quite annoying, I am using ExcelDNA to add functionality, how...
Adam H
4

votes
4

answer
4k

views

Execute code when app reopens

I have a Single View Application. When I hit the home button and ‘minimise’ the application I want to be able to execute code when the user reopens it. For some reason viewDidAppear and viewWillAppear do not execute when I minimise and reopen the application. Any suggestions? Thanks in advance...
Adam H
13

votes
6

answer
8k

views

<Error>: FT_Open_Face failed: error 85

I am trying to install a custom font into my iPhone application. When I add the 'Fonts provided by application’ key into my info.plist file I get the following error ': FT_Open_Face failed: error 85.’ I am not sure what the problem is as I have successfully been able to use custom fonts in the p...
Adam H
1

votes
2

answer
5.2k

views

Current road's speed limit

Is it possible to get the current speed limit of a road? I’m not sure if this would be done using the ‘Maps' app as I don’t think its holds speed limit data. Is anyone able to point me in the right direction?
Adam H
7

votes
2

answer
4.5k

views

Alternative to “Display:-webkit-flex” for Chrome Mobile

Lately I've been working on a mobile optimised web platform utilising HTML5/CSS3. This application has a landing page which consists of four equally sized tiles with an Icon in the middle (some other styles like a bit of padding in between them and border radius etc). These tiles are sized based on...
Adam H
7

votes
1

answer
5.6k

views

How to speed up matplotlib when plotting and saving lots of figures?

I am processing observing data from many antenna baseline. Currently what I am working is to plot ~ 40 figures, each of which has 4x5 subplot region. I found it slow when plotting and saving figures with matplotlib in loops. Here are my codes: import numpy as np import matplotlib.pyplot as plt impor...
Adam.H.Liu
2

votes
1

answer
357

views

HiveMQ RESTful Authentication Plugin

I am in the process of interfacing to a RESTful API for a proprietary server running internal to my organization. We are using HiveMQ and I have created a simple plugin based on the incredibly useful documentation over at the HiveMQ website. I have also reviewed the Caching and Non-Blocking philosop...
Adam H
2

votes
1

answer
464

views

Bundle Identifier Problem

I’m having issues generating new bundle identifiers through the provisioning profile. When I click new New App Id and enter the required details it keeps generating the same bundle id. This is what I am entering: Description: “My app name” Bundle Seed ID: “Use Team ID” Bundle Identifier:...
Adam H
2

votes
1

answer
1.1k

views

Getting file from .ashx with a jQuery Post

This question is a following from another question I asked - Passing client data to server to create Excel or CSV File. I have a client page which builds a JSON object to send to the server, and I have server code which can parse that JSON object into an SQL command and end up with a dataset of requ...
Adam H
1

votes
2

answer
683

views

How to change the titlebar/toolbar and NSButtons to a dark theme?

I am working on a project for macOS (OS X) where I want the window to be set to a dark theme instead of the default light theme, which has a light gray titlebar/toolbar with white buttons. How can I change the titlebar/toolbar to a black color and the buttons to a dark gray? I am coding in Swift b...
Adam H
1

votes
2

answer
60

views

While loop to create multiple files

I am trying to make a Java application that will take in a bulk file with multiple messages, and then split them up and write each message to its own file. The issue that I am having is that its only creating a file with the last message inside, so I think it is overwriting for each iteration of the...
Adam H
2

votes
2

answer
6.5k

views

How to use countDistinct in Scala with Spark?

I've tried to use countDistinct function which should be available in Spark 1.5 according to DataBrick's blog. However, I got the following exception: Exception in thread 'main' org.apache.spark.sql.AnalysisException: undefined function countDistinct; I've found that on Spark developers' mail list t...
Adam H
2

votes
1

answer
740

views

Stop a for or repeat-while loop in swift with button press

I need to figure out how to stop a loop. I've tried a couple different kinds of loops, but the end result is the same - the stop button cannot be pressed while the loop is in progress. Here's what I have so far... var stopButtonPressed = false var numArray = [0,1,2,3,4,5,6,7,8,9] for num in numArr...
Adam H
3

votes
3

answer
3.3k

views

Winforms: A draggable transparent rectangle

Morning, I'm just about ready to claw my own eyes out at this point. I'm building a basic image editor using Windows forms on .NET 3.5, and what I need is a 'select tool'. This tool needs to appear when a button is clicked and will be a fixed size, it needs to be a drag and dropable rectangle with a...
Adam H
104

votes
30

answer
57.8k

views

CFBundleVersion in the Info.plist Upload Error

'The binary you uploaded was invalid. The key CFBundleVersion in the Info.plist file must contain a higher version than that of the previously uploaded version.' I’m getting this error when I come to upload my application. I set the updated version to 1.2 on iTunes Connect and have also updated th...
Adam H
11

votes
3

answer
8.8k

views

ASP.NET Core RC2 Seed Database

My problem is i am trying to seed an Entity Framework Core database with data and in my mind the below code show work. I've realised that this should not be called in the ApplicationDbContext constructor and should be called from the startup but im not sure how to do this. EDIT: Based on the soluti...
Adam H
1

votes
2

answer
2.5k

views

ItemsControl with two DataTemplates using AlternationIndex trigger, XAML

I have a user control with a items control and I would like it to have 2 completely different item template styles depending on the alternation index. I've seen lots of tutorials on how to change the background colour based on the index but not changing the style on each index. Here's what I have so...
Adam H
4

votes
1

answer
1.7k

views

TypeScript class with same name as interface

I'd like to declare a class called Date which has a property of type Date (as in the TypeScript interface to the JavaScript Date object. However the compiler assumes my property is of the same type as the class I'm declaring. How can I distinguish between the two? If the Date interface were in a mod...
Adam H
-1

votes
1

answer
587

views

dynamic rows and columns in VBA Chart

so i am trying to write some VBA that can look at 'sheet2' and determine how many rows and columns it needs to make in its line chart i'm having difficulty in declaring range of .SetSourceData in terms of variable i need it to start at cell(1,4) and go to Cell(LastRow, LastColumn). when i try i get...
Adam H
50

votes
4

answer
20.4k

views

HTML5 Desktop Wrapper/Framework [closed]

I'm currently mid-way through building a HTML5 application. I'd really like to deploy this to desktop and I've looked at solutions such as Sencha but have had no luck (I found Sencha disappointing and frustrating to work with). I'd like cross platform compatibility and ease of deployment but I have...
Adam H

View additional