Adrian Bartholomew

1

votes
0

answer
103

views

React - Get Component name from router location path

I am using withRouter like so: const SubMenu = props => ( {props.location.pathname} ); export default withRouter(SubMenu); How can I get the name of the active component instead of the path?
Adrian Bartholomew
1

votes
1

answer
39

views

Import String and convert to JSX in Expo

I would like to import a file as a String. Edit it. Then convert it to a JSX element. Specifically, one use-case would be to import an svg file. Edit it so that it's compatible with React Native. Then convert it to a JSX element that can be reused. I can't seem to get a string from importing .sv...
Adrian Bartholomew
1

votes
0

answer
26

views

iOS side-loaded expo app horizontally flipped

I'm using expo in my react native project. Everything is fine when loaded to either Android or iOS emulators. However when I side-load it to my actual iOS phone device, everything is flipped. The header hamburger menu goes to the right even though the drawer still animated from the left. Text excl...
1

votes
2

answer
9.1k

views

FullCalendar event text colour change

I added className fc-selected to any selected day which took care of my background colour changes for that selected cell. Thinking that I was home free and only needed to change color for the text next, I forcefully removed a few locks of hair when only way later I did realize that the date events a...
Adrian Bartholomew
2

votes
2

answer
2.5k

views

How do I get Image Data from an Image Resource?

I'm working with the Microsoft Azure cloud and need to upload images there. Its class upload methods putBlob() and putBlobData() require either the data itself (not the resource) or the directory string as arguments, none of which is available before the image is actually written to the Blob. $fp =...
1

votes
3

answer
1k

views

Observe property change of class instance

Given an instance of a class, how can I observe a property change? For e.g., I'm building an SDK that initializes a host app's chat view to provide more functionality with a simple inplementation that looks like: sdk.initialize(chatView) In that initializing function, I need to track the host app's...
3

votes
1

answer
480

views

php mysqli binding issue with IN clause

$artist_user_ids = implode(',',$artist_user_ids); $referrer = 'referrer IN (?)'; $query = 'SELECT id FROM users WHERE $referrer'; $con = db_connect(); $stmt = db_prepare($con, $query); bind_param('s', $artist_user_ids); That does not work. But if I change the 1st line to: $artist_user_ids = ''' . i...
Adrian Bartholomew
4

votes
2

answer
10.3k

views

How do I search records by internal id in Netsuite's Suitescript?

I am trying to implement a search by Category of Inventory Items in Netsuite using their Suitescript API. The following code works as expected so I know I have successful remote communication. But I am stumped as to how to go about searching by Category. function NSTest() { var items = []; var fil...
4

votes
1

answer
12.9k

views

Laravel Form run JS function onsubmit

I have a function that I want called on submission of my Laravel Form for Ajax purposes. How can I go about this where the page does not submit and reload? This works: (but the Enter btn does not execute) This does not:
Adrian Bartholomew
2

votes
1

answer
968

views

How do I prevent Swift 4 overlap or exclusive access error?

I have a singleton class that tracks my game's score among other things. final class PublicData { static let sharedInstance: PublicData? = PublicData() struct Scores { var points = [0, 0] subscript(index: Int) -> Int { get {return points[index]} set(newValue) { points[index] += newValue print('score...
Adrian Bartholomew
2

votes
0

answer
481

views

The apc_fetch() object always returns done=1 and total = current

For nothing would this work. I keep getting 100% finished immediately no matter the size of the file. I don't know what else to say but apparently must say something or this won't post. ini File snippet: ; If you only provide the name of the extension, PHP will look for it in its ; default extensio...
Adrian Bartholomew
4

votes
2

answer
5.1k

views

How do I use JQuery Datepicker with Backbone-Forms?

var User = Backbone.Model.extend({ schema: { date: {type: 'Date'} } }); var user = new User(); var form = new Backbone.Form({ model: user }).render(); $('.bootstrap').append(form.el); What type do I enter to use the included JQuery-UI datepicker? There is no documentation on this other than: The old...
Adrian Bartholomew