Graph pre-order/post-order traversal?

Java
This is a DFS pre-order vertex numbering which corresponds to a pre-order traversal of the DFS tree and the second one is A post-order numbering which...
10 days ago

Git clone. key_load_public: invalid format Permission denied (publickey)

Git
I used puttygen.exe on Windows 10 to generate private and public keys. I saved that keys in C:\Users\Alexander\.ssh\ Public key was added to remote r...
10 days ago

multiple response.WriteHeader calls in really simple example?

HTTP
I have the most basic net/http program that I'm using to learn the namespace in Go: package main import ( "fmt" "log" "net/http" ) func...
10 days ago

Cannot convert value of type 'org.springframework.batch.item.xml.StaxEventItemWriter' to required type 'org.springframework.batch.item.ItemReader'

Java
I am developing Spring Batch MongoDB to XML example. I've successfully created the project, but when I am running it I see the below error is coming, ...
10 days ago

What should I write in version code and version name while updating an android app if I fogot to write it in the 1.0 version?

Java
I fogot to write vesion code and version name while uploading 1.0 version of my app to play store.Now I want to give update to it.So,what should be m...
10 days ago

Using a workflow engine, state machine engine or rolling my own?

Java
I'm confused. I'm developing a grails based internal tool for my company. One component in this tool is a simple issue tracker (a Helpdesk feature). I...
10 days ago

What is the purpose of defining a package in a Java file?

Java
I am a newbie and just learned that if I define say package my.first.group.here; ... then the Java files that are in this package will be placed un...
10 days ago

Mocking Hibernate Session

Java
I was trying to mock hibernate session. This is the code snippet I tried: @Before public void setUp() { campaignModel = DraftTestHelper.buildDraf...
10 days ago

Set the title of the UINavigationBar

iOS
Is it possible to set self.navigationItem.title = @"MyTitle";after the view has loaded ? I am using a search bar and in the same view I feed a UITabl...
10 days ago

Image comparison to identity and map identical pixels

iOS
I'm building this for iOS using Swift — either via CoreImage or GPUImage, but if I can build it in Python or Node/JavaScript, that'd work too. Feel fr...
10 days ago

Settings Bundle - giving a slider item a title

iOS
Could anyine tell me what the preferred method is for giving a slider item a title when configuring Root.plist in XCode please? I have scoured all the...
10 days ago

Java correct way convert/cast object to Double

Java
I try to found, but all seems vague. I need convert Object o to Double. Is correct way first convert to String? Thanks.
10 days ago

Spring Boot, Spring Cloud AWS and AWS SQS not reading from the queue

Java
I am trying a to build a minimal gradle java project with Spring Boot and Spring Cloud AWS SQS but I can't get it to read from the queue. These are m...
10 days ago

Collection - Iterator.remove() vs Collection.remove()

Java
As per Sun , "Iterator.remove is the only safe way to modify a collection during iteration; the behavior is unspecified if the underlying collec...
10 days ago

Packages in Java

Java
It's my first time using packages in Java, and I'm not sure where I went wrong. I'm trying to make a Tetris game. Here's part of my code: package myt...
10 days ago

Getting the array length of a 2D array in Java

Java
I need to get the length of a 2D array for both the row and column. I’ve successfully done this, using the following code: public class MyClass { ...
10 days ago

set it to null and get variable data in just one line

Javascript
var checkActiveBrand = $(".brand__title").attr("data-brand-title"); I have this variable to get my .brand__title data but I also want to check if it...
10 days ago

Error converting value "9:00 AM" to type 'System.TimeSpan

Javascript
Passing Json data from javascript OpenHours : "9:00 AM" Model property in Server side Web API public TimeSpan OpenHours { get; set; } But gettin...
10 days ago

How to convert array of object into an array of object with different format?

Javascript
I'm having an array of object,in which I'm storing the billkey and billvalue as attributes. I want billkey to be the key and billvalue to be the value...
10 days ago

Custom Audio Recorder Framework Swift 3.0

iOS
I am creating an audio recording framework, it gets compiled correctly. When I use this framework in a project, the recording file gets created in doc...
10 days ago