How to make a grid of dot plots in R
-
تاریخ: 1395/6/26 ساعت: 3:40
Vote count: 0 I'm have a sample of data of newbo siblings weight and sex, and want to plot them on a common 2x2 dot plot in R looking like the following done in Stata: 2x2 plot of birthweight of first compared to second child The stata code is this egen sex1sex2=group(sex1st sex2nd),label scatter we...
File IO not working
-
تاریخ: 1395/6/26 ساعت: 3:39
Vote count: 0 I am facing some issue while ru ing a maven project job on Jenkins. According to code, it should create a new File on the location passed. Using below code for the same. String fileName = "C://DevTools/abc.txt" File file = new File(fileName); file.createNewFile(); //retu ing false When...
Spark -Build options and explanations for creating runnable distribution
-
تاریخ: 1395/6/26 ساعت: 3:39
Vote count: 0 Find out the Spark 2.x build options to create a ru able distribution. Background Trying to create a Spark cluster from scratch with compiling the source code . It looks to build a cluster, it requires to build a distribution first. Looking at Building a Ru able Distribution of the Spa...
cornerRadius stopped working in Swift 2.3 / iOS 10 / Xcode 8
-
تاریخ: 1395/6/25 ساعت: 1:10
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
-
تاریخ: 1395/6/25 ساعت: 1:10
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...
I am not able to fetch a proxy to struts action in JUnit test case using StrutsTestCase
-
تاریخ: 1395/6/25 ساعت: 1:10
Vote count: 0 I am trying to write JUnit test cases for an application written in Struts2. I am trying to follow the process given in these 2 links : https://struts.apache.org/docs/testing-actions.html https://glindholm.wordpress.com/2008/06/30/unit-testing-struts-2-actions/ I am using mockru er-ser...
For loop to cut and paste parts of cells
-
تاریخ: 1395/6/24 ساعت: 14:41
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
-
تاریخ: 1395/6/24 ساعت: 14:40
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...
Sharing Asset Image from Android custom IME, working for everything except Gmail and MMS
-
تاریخ: 1395/6/24 ساعت: 14:40
Vote count: 0 Ok this might be long post as I have spent the last 3 days (18 hrs) on this. I created a custom keyboard ext for iOS and was tasked to do the same for Android. I have everything working like I want giving the user keyboards to use that are interchangeable between letters and numbers/sy...
Best performance for find objects in entities and load entities, Foreach or where with LinQ ON C#?
-
تاریخ: 1395/6/23 ساعت: 10:41
Vote count: 0 I need to relate a few entities. Right now the code is loaded the first entity and then is iterated with a foreach loop and search on each record if the current row match with the property of the record of the other entity. Something like: foreach (Entity1 e1 in entity1List) { foreach ...
Is it possible for Travis CI to be configured to build in multiple OS X versions?
-
تاریخ: 1395/6/23 ساعت: 10:41
Vote count: 0 I need to ensure my code runs on OSX 10.9, 10.10 & 10.11. Travis has a flag for building in the OS X environment (default being 10.9) - in .travis.yml: os: - osx and flags for individual OSX/Xcode combinations, but it seems only one of these at a time can be specified -e.g: osx_image: ...
DynamoDB Table.scan with and without pagination
-
تاریخ: 1395/6/23 ساعت: 10:41
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 ...
Use: Need Javascript code that gets the inner width/height of screen onload into width/height style variables
-
تاریخ: 1395/6/22 ساعت: 17:10
Vote count: 0 I would like to find the i erWidth and i erHeight of the screen via Javascript, and then place the values into the width and height variables of the body class in the style area (css) of html. For example:stylebody { background-image: url("images/hello.jpg"); background-repeat: no-repe...
analytics.js loaded but no sign of visitors in my Google analytics Profile
-
تاریخ: 1395/6/22 ساعت: 17:10
Vote count: 0 I own a website ru ing by Joomla, I have a problem in using google analytics on my website. I put analytics snipet, on all pages of my website and according to Gtmetrix result, analytic.Js loaded when I visit my website PRJMArket.com Here is Gtmetrix results enter link description here...
How to do horizontal lines from a one column file using gnuplot?
-
تاریخ: 1395/6/22 ساعت: 17:10
Vote count: 0 Having a file with just one column of data like for example: 10 2 34 4.5 16 I'd like to plot a stack of horizontal lines as plotting a horizontal line from let's say -3 to 3 (x range) for a y value equal to the first row (10 in the example), then replot a another horizontal line rangin...
R stat_function with alternative dataset
-
تاریخ: 1395/6/21 ساعت: 20:55
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?
-
تاریخ: 1395/6/21 ساعت: 20:55
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
-
تاریخ: 1395/6/21 ساعت: 20:55
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
-
تاریخ: 1395/6/20 ساعت: 16:05
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 ...
Using Filters in dynamic created data(array object) in angular controllers
-
تاریخ: 1395/6/20 ساعت: 16:05
Vote count: 0 static data is working with filters but having problem in dynamic data filtering Any and all help is appreciated. Thanks! asked 55 secs agoVikrum Bhalla Let's block ads! (Why?)