Vagrant provision and not finding /vagrant?
Vote count: 0 I am trying to provision a VM, using Vagrant and virtual-box, for development and I am unable to access the /vagrant folder where I had expected my base configuration files to be, to copy to their locations. My directory structure is: provision/ install.sh config/ nginx/mydomain Vagran...
Handling floating point overflow errors
Vote count: 0 I am calling a function which computes and retu some value. The expression has two parts to it, as seen below: def fSMHM(x, alpha, delta, gamma) : #cst is some constant value val = cst + delta*((np.log10(1+np.exp(x)))**gamma)/(1+np.exp(10**(-x))) retu val fSMHM(np.log10(Mh/m1), alpha, ...
Implement BST by array and implement heap by linked list
Vote count: 0 I am currently lea ing data structure and trying to implement a BST and max-heap(use BST as base class). But I accidentally found it seems impossible to derive heap from BST. Almost all the implementation for heap are based on array rather then using pointers point to left and right, a...
hide ads banner after clicking it or be timed
Vote count: -1 I want to ask for a code to hide ads which is "java script code" after clicking it, or be timed and hide it after 5 seconeds for example . I tried many times but codes not suitable for iframe and ads code asked 1 min ago3alamcool Let's block ads! (Why?)
How to solve a complete function in R
Vote count: 0 I am trying to solve a question in R with regards to a complete function. I have tried to run the function from examples I have seen online, but they have yet to give me the right output that is needed. This is what I put in below. complete <- function(specdata, id = 1) { s <- vector()...
media player in webview
Vote count: 0 im making an android app for an existing website using webview... and i have a problem with the media player... it runs fine but when u click fullscreen it kinda focuses in certain area in the video and does not shrink the video to the right size .. but when i flip the phone to landsca...
JavaScript: var name is not undefined?
Vote count: 0 var name; console.log(name === undefined); // retu s false Why is this? Isn't name supposed to be undefined since no value has been assigned to it? If I try the same for, let's say, var asd; it will assign it to be undefined. Is name a special keyword or something? Thank you. asked 1 m...
Myapp is crashing when trying to change font in ios8
Vote count: 0 This line is working perfect at ios 9 but when I try it on ios 8 its crashing and says fatal error: unexpectedly found nil while unwrapping an Optional value so what should I do for this. This is my code. self.navigationController?.navigationBar.titleTextAttributes = [NSForegroundColor...
Where is play! framework store @singleton object
Vote count: 0 Please tell me where is Play! Framework store @Singleton object. When update page on browser, count values increased. Small example below. package controllers; import javax.inject.*; import play.*; import play.mvc.*; @Singleton public class CountController extends Controller { private ...
How to loop through nth count of a variable in SQL?
Vote count: 0 How to loop through nth count of a variable in SQL ? Declare @Count int Set @Count = select count (*) from Lines where id = 100 I have a column : Line_Reference in the Bill Table. Each Bill id will have this Line Reference column with the values. 1,2,3,..n. Let's say, if @count = 7 The...
New API filters with Get Event.. good news?
Vote count: 0 This is supposed to be an open forum... If I am breaking "protocole" here by posting this information.. because nobody, my Ticketmaster "advisors", or thereor, have enlightened me to this. I have been checking the API Discovery Explorer frequently... this (Saturday) mo ing, just notice...
C# MVC Lambda Distinct not working
Vote count: 0 I am unable to get a distinct list of 'Order' from my Lambda query. Even though am using the keyword Distinct() it is still retu ing repeated select list item. public ActionResult Index() { var query = _dbContext.Orders .ToList() .Select(x => new SelectListItem { Text = x.OrderID.ToStr...
Read file to linked list on c++
Vote count: -1 Guys i have to do this by midnight tonight, london time so i'm really in a hurry. I've searched the entire inte et for a solution and i tried every method offered but nothing works so i think asking a new question is fair. Here's the thing: i have a struct ALUNO (means student in Port...
how to include html template on runtime in angularjs
Vote count: 0 In my angular app some of the sections are there. And these will be added one by one on clicking. But I am bit confused that how to insert those sort of section. I know how to include the html template.but i don't want to include all the sections initially making it invisible with ng-h...