My thrown exception running into StackOverflowError
Vote count: 0 I have the following simple recursive Fibonacci code: public class FibPrac5202016 { public static void main(String [] args) { Sca er input = new Sca er(System.in); System.out.println("Enter index number: "); int integer = input.nextInt(); FibPrac5202016 object = new FibPrac5202016(); S...
How to refresh a page with Turbolinks
Vote count: 0 I understand that I can call the following code on Turbolinks5 but it changes the scroll position. Is there a way to call Turbolinks to refresh the page and not change the scroll position? Turbolinks.visit(location.toString()); This will do what I want, but was hoping to use Turbolinks...
Bug in the quick watch with object equal to empty string
Vote count: 0 Why the quick watch shows the statement p == "" as false, but we are going in the if statement. static void Main(string[] args) { string q = ""; A(q); } static void A (object p) { if(p == null || p =="") { Console.WriteLine("Debugger shows false"); } } asked 1 min agomybirthname Let's ...
Exporting Project To Linux
Vote count: 0 im trying to export this C++ SMFL Project im working on Visual Studio to a partner. But my partner runs on a Ubuntu Mate(Linux Distro). Currently when i just copy the project folder from Documents/VisualStudio2015/[PRPOJECTNAME] It dosent work for him. He describes it as "It Dosent Do ...
git - issue with ssh keys
Vote count: 0 I've been getting this a lot and I've read through the error messages to try and resolve this. I'll delete my key on git and re-add this. However, I do notice I can correct this by simply rebooting my mac. But I don't want to do this every time I get the errors below. So what is the re...
Remove substring with given offset from string
Vote count: 0 I'm trying to implement a function able to remove some substrings from a given string using their starting and ending offset. I've got an ArrayList of objects like this: "This","0","4" "This is","0","8" "some","39","43" Here my class: package com.giacomomarangoni; import java.io.IOExce...
Swift Run An NSTimer Automatically
Vote count: 0 I'm making an app and using NSTimer to make the timer in my app.But I need the NSTimer to run when the scene start.I have two scene in my app a homescreen and the app it's self here is my code viewcontroller.swift (The second scene the first scene in empty) And btw it's my 3 day using ...
How to POST to mongo DB with an SVG element
Vote count: 0 I'm trying to make a hex based grid tracker for a tabletop game my local hobby shop is hosting. The physical board looks like this. http://i.imgur.com/VjIcWOE.jpg The way I decided to make this currently (and please tell me if you have any better ideas) was to draw hexagons into an SVG...
UIWebView and JavaScriptInterface in Swift
Vote count: 0 How can I to create the JavascriptInterface cha el from my web site to my UIWebView? Example in Android: webView.addJavascriptInterface(new WebAppInterface(this), "Android"); And from this JavascriptInterface I would like to draw the methods, as for example: fune webViewDidStartLoad(we...
net::ERR_INSECURE_RESPONSE in Chrome
Vote count: 0 I am getting an error net::ERR_INSECURE_RESPONSE in the Chrome console when fetching some data from my API This error usually occurs as a result of an unsigned certificate; however, it is not an issue with this because I have a valid and signed certificate. The error doesn't happen oft...
Create pooled proc application IIS 7
Vote count: 0 I'm new to working with IIS so bare with me! I am updating an old script that was used to configure applications for IIS 5 and we've since updated to IIS 7 and these commands no longer work. (There were others but I managed to track their updated equivalents down) I've can't seem to fi...
AutoFac NullReferenceException when used with ApiController
Vote count: 0 I'm trying to wire up dependency injection inside my ApiControllers. I don't think AutoFac is instantiating the interface because I keep getting the following error: Object reference not set to an instance of an object. public class UserformsController : ApiController { private IUserfo...
How can I check if two cells are equal in brainf*ck?
Vote count: 0 How can I check if the value in cell #0 is equal to the value in cell #1? I am trying to write code equivalent to: if(a == b) { //do stuff } else { //do something else } I have read Brainfuck compare 2 numbers as greater than or less than, and the second answer gave me a general idea o...