cornerRadius stopped working in Swift 2.3 / iOS 10 / Xcode 8
Vote count: 0 I have a co erRadius set on a UIView and a UIImageView inside the same UIView. I am calculating the co er radius with RockProfileView.frame.size.height / 2 but the UIView stopped showing in iOS 10. After further checking i found the value of RockProfileView.frame.size.height / 2 is com...
Setting virtual host on homestead with nodejs
Vote count: 0 i am it is bit complicated. but this is what i need. I have vagrant homestead installed. However, have setup nodejs with express on the same virtual server homestead. I would like to have a localdomain domain.dev be accessed on browser instead of domain.dev:3000. May i know how can i d...
For loop to cut and paste parts of cells
Vote count: 0 I had a quick question about how to set up a for loop to use a trim function to copy and paste string values in a range of cells. I've got that part working well enough, thanks entirely to a script I found written by @Jeeped on a Microsoft forum. But now I need to get the script to run...
Swift JSON parsing : unpredictable behaviour
Vote count: 0 I've read a lot of topics about Swift Json parsing but as the result I found unpredictable behaviour. E.g., for this code: if let city = cities[ndx] as? [String: AnyObject], let population: UInt64 = (city["population"] as? NSNumber)!.unsignedLongLongValue { if (population > 0) { if let...
DynamoDB Table.scan with and without pagination
Vote count: 0 I am trying to understand the difference between two following code segments. One uses pages to get scan results, and the second one doesn't. I am wondering whether the second approach would work if the total number of items in the database is very large? AWS docs say that scan result ...
R stat_function with alternative dataset
Vote count: 0 I've reviewed what's here on stat_function and I still can't get this to work. Here's min working code: plotdata <- cbind(as.data.frame(seq(-5, 5, length=10)), as.data.frame(-seq(-5, 5, length=10))) colnames(plotdata) <- c('x', 'y') xvalues <- as.data.frame(seq(-5, 5, length = 100)) xe...
Is a local CGEventRef considered a pointer?
Vote count: 0 When I was making keyboard events with a local CGEventRef, I noticed that even though it was not a pointer, you could "edit" its properties with functions, like so: CGEventRef eventRef = CGEventCreateKeyboardEvent(....); CGEventSetFlags(eventRef, ...); CGEventSetType(eventRef, kCGEvent...
Title on DialogFragment
Vote count: 0 I want to create a simple dialog that has a grid view in the middle and lets the user choose a letter. Here is the XML I started with following: https://developer.android.com/guide/topics/ui/layout/gridview.html and some others: <LinearLayout xmlns:android="http://schemas.android.com/a...
Trying to return .nextSibling div value
Vote count: 0 I'm on my first week in a coding bootcamp, and I'm working through a class project where we create DOM elements with js. I have created a button that will add a div to my html when it is pressed, and I've also added several other events such as .onclick and .onmouseover. Each div's id ...
.show() not working jquery
Vote count: 0 I have a filter class that filters products residing inside the page.There is a function works if someone checks the filters. Filters are check-boxes where every check box contains different value. What my filter function do is that it checks all the checked checkboxes from the page an...
Login to stackoverflow.com via terminal
Vote count: 0 I'm trying to login to my stackoverflow.com account programatically. I've tried to do a curl like the following but it's asking for content length: $ curl -X POST --user abc@gmail.com:abc --header "Content-Type:application/json" https://stackoverflow.com/users/login -v * Trying 151.101...
How to return value in VueJS Mixin
Vote count: 0 I'm currently developing a webapp in Vuejs. I created a Mixin that I can access globally which handles any request to my api: export default { data() { retu { apiURL: 'http://example.com/api', timeout: 10000, }; }, methods: { callAPI(method, url, body) { this.$http({ url: this.apiURL +...