My thrown exception running into StackOverflowError
◷
تاریخ انتشار: 1395/3/1 | ساعت: 10:59
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
◷
تاریخ انتشار: 1395/3/1 | ساعت: 10:59
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...
how to add a foreign key that references 2-columns primary key with "limited length"
◷
تاریخ انتشار: 1395/3/1 | ساعت: 8:38
Vote count: 0 I have mysql database that hasparent_table utf-8 with 2 columns(id varchar(14) , name varchar(256)) then I created a primary key for this table composing the 2 columns, but I had to create it with limited 200 length , -because of a max index length problem- like this alter table parent...
Bug in the quick watch with object equal to empty string
◷
تاریخ انتشار: 1395/3/1 | ساعت: 8:38
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 ...
d3 filter and update function to toggle between data selections with Table
◷
تاریخ انتشار: 1395/3/1 | ساعت: 8:38
Vote count: 0 I'm trying to build a table with a update function to toggle between different name selection. I've already find a thread with an answers to that question here http://plnkr.co/edit/HwzD4SpROPyjsW0REkfJ?p however I'm not able to adapt this to my code. From what I have understand I need ...
Findbugs NP_ARGUMENT_MIGHT_BE_NULL not being triggered as expected
◷
تاریخ انتشار: 1395/3/1 | ساعت: 7:38
Vote count: 0 I am using Findbugs together with the a otation javax.a otation.No ull. In following method @No ull public String methodA(@No ull String foo, @No ull Integer bar) { // missing checkNotNull(foo) // missing checkNotNull(bar) int fooLen = foo.length(); // did not check that foo is non-nul...
Exporting Project To Linux
◷
تاریخ انتشار: 1395/3/1 | ساعت: 7:38
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
◷
تاریخ انتشار: 1395/3/1 | ساعت: 7:38
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...
Application of derivative for a project written in java
◷
تاریخ انتشار: 1395/3/1 | ساعت: 6:28
Vote count: -2 I have to do a program for a university project. I have to apply derivative into something in real life. Any help is welcome. Thanks. asked 3 mins agoArdit A. Let's block ads! (Why?)
Remove substring with given offset from string
◷
تاریخ انتشار: 1395/3/1 | ساعت: 6:28
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
◷
تاریخ انتشار: 1395/3/1 | ساعت: 6:28
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 override tables constraints (Required Column) in "Database First" entity framework models?
◷
تاریخ انتشار: 1395/3/1 | ساعت: 5:25
Vote count: 0 I have created a Database-First model in EF6, and using existing database to generate the model and classes, now I need to override some required constraints in the database (in other words, some required columns are filled by triggers, so I do not need to send these columns values fro...
How to POST to mongo DB with an SVG element
◷
تاریخ انتشار: 1395/3/1 | ساعت: 5:25
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
◷
تاریخ انتشار: 1395/3/1 | ساعت: 5:25
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...
Capturing class changes triggered by event listeners using a MutationObserver
◷
تاریخ انتشار: 1395/3/1 | ساعت: 4:24
Vote count: 0 I am having a problem with determining why a class is not being removed in an each function. I want to check and see if the element containing a specific class is being manipulated somehow by some other event or function. This code is not succeeding in removing the class 'cc-gone' from...
xtrabackup only performs a full back up if is executed with super user privileges
◷
تاریخ انتشار: 1395/3/1 | ساعت: 4:24
Vote count: 0 According to this link, I executed this command to backup my database: xtrabackup --backup --databases='database' --target-dir=/home/user/backups --datadir=/var/lib/mysql/ But I get the following error: 160520 02:00:54 version_check Done. 160520 02:00:54 Co ecting to MySQL server host:...
net::ERR_INSECURE_RESPONSE in Chrome
◷
تاریخ انتشار: 1395/3/1 | ساعت: 4:24
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
◷
تاریخ انتشار: 1395/3/1 | ساعت: 3:16
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
◷
تاریخ انتشار: 1395/3/1 | ساعت: 3:16
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?
◷
تاریخ انتشار: 1395/3/1 | ساعت: 3:16
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...