Visual Studio Emulator for Android - An internal virtual network switch is required for emulated dev

Visual Studio Emulator for Android - An internal virtual network switch is required for emulated dev

ProblemI want to use Visual Studio Emulator for Android but whenever I try to start it it fails.The final part of the Log is:27.9.2015. 11:10:38: [Informational] ===== Session Started =====27.9.2015. 11:10:38: [Informational] Microsoft Wind

How to use unix pipes in Android

How to use unix pipes in Android

I need to send some data to a C program from my app in Android, and I think about using pipes. I read that Java can access to existing pipes (and open them as if it's a normal file), but I'm unable to do such a thing in my application. When

Cocos2d-x android can't resolved coscos2dx library

Cocos2d-x android can't resolved coscos2dx library

i am starting by macOSX xcode4.5 .i tried to tutorials.Using cocos2dx, it completes building of macOSX, The problem occurred in android sources. No contents of cocos2dxActivity are described.so, org.cocos2dx.lib is not other files. android

iOS - AVAudioPlayer doesn't continue to next song while in background

iOS - AVAudioPlayer doesn't continue to next song while in background

So I have an app that plays a bunch of songs while the user can flip through a comic book. I use AVAudioPlayer and I have it set up to play the songs in a set order. So when one song finishes, the next one will play. This works flawlessl

Change gradle build directory in android studio?

Change gradle build directory in android studio?

I just installed Android Studio and I am just learning to build using Gradle. However, with the default project setup, my builds are located in the project directory and I would like to have them placed elsewhere (preferably outside of the

Sinatra - response.set_cookie doesn't work

Sinatra - response.set_cookie doesn't work

I need to use a cookie for my Sinatra application. If I use the simpliest method is works:response.set_cookie('my_cookie', 'value_of_cookie')but I need some options such as domain and expire date so I try this:response.set_cookie("my_cookie

How to build and run c++ programs in Sublime Text 2, Windows 8?

How to build and run c++ programs in Sublime Text 2, Windows 8?

As a novice programmer, I have installed Codeblocks with mingw (dont really know what that means), chose default compiler, and could build and run fine.I installed Sublime Text 2, copy pasted hello world program:// my first program in C++#i

angular ui-router: how do I reload a state when a path parameter changes but not reload when a query

angular ui-router: how do I reload a state when a path parameter changes but not reload when a query

For example, I want this change in navigation to reload the state:#/detail/1#/detail/2But I do not want this navigation to reload the state:#/detail/1?search=blah#/detail/1?search=huzzahAccording to the ui-router documentation, setting relo

Some clarification on reusable charts

Some clarification on reusable charts

In 'Towards Reusable Charts', Mike lays out an example time-series chart at the end. In it, he has this line:// Select the svg element, if it exists.var svg = d3.select(this).selectAll("svg").data([data]);This is happening within the defini

How to get started with SQLCipher for android?

How to get started with SQLCipher for android?

I need to use SQLCipher for android...i've already made my app using SQLite and want to just convert it to SQLCipher.The problem is, I know nothing about SQLCipher.I have read about it in this link: http://sqlcipher.net/sqlcipher-for-androi

How to execute a simple Windows DOS command in Golang?

How to execute a simple Windows DOS command in Golang?

Can someone be so kind to tell me how to run a simple DOS command in Go? When running something like this:exec.Command("del", "c:\\aaa.txt")The output is:"del: executable file not found in %path%"Again I thought this would be simple task in

PostgreSQL: How do I set the search_path at the user level? [duplicate]

PostgreSQL: How do I set the search_path at the user level? [duplicate]

This question already has an answer here: Permanently Set Postgresql Schema Path 3 answers I want to set the default search_path to something other tha

Find location of current .R file

Find location of current .R file

I've looked through many questions similar to this (see end of post), but I haven't found any solutions that actually accomplish what I need. I code on either Windows or Fedora depending on the project, and I code for people who use Windows

Ruby on Rails 4: How to include Javascript files in Rails web application?

Ruby on Rails 4: How to include Javascript files in Rails web application?

I am building a Rails 4 web application and I want to include some .js files into my application. Is it possible to directly add JavaScript file to my Rails ..app/assets/javascripts folder and add reference in application.js like this?//= c

How to start ipython notebook server at boot as daemon

How to start ipython notebook server at boot as daemon

I love ipython, especially the notebook feature. I currently keep a screen session running with the notebook process in it. How would I add ipython's notebook engine/webserver to my system's (CentOS5) startup procedures? 1:vi /usr/lib/s

Loading all the children entities with entity framework

Loading all the children entities with entity framework

I have a data model like thisI would like to load all the related entities from a Reconciliation into a Reconciliation object. For now the only way I could find to load all the related entites to a single Recon is in multiple Lists. But I w

ASP.NET Web API Help Page documentation using Xml comments on controllers

ASP.NET Web API Help Page documentation using Xml comments on controllers

I installed the ASP.NET Web API Help Page package and would like to use it to generate documentation for my API controller actions using the Xml comments already on them. I came across an article on Yao's MSDN blog where he discusses how th

How to open files in web browsers (e.g Firefox) within editors like vim or emacs?

How to open files in web browsers (e.g Firefox) within editors like vim or emacs?

How to open files in browsers (e.g Firefox) within editors like vim or emacs? Notepad++ open files in browsers by pressing Ctrl+Shift+Alt+X (Firefox). Is there a way to do this in gVim or Emacs? 1:browse-url-of-file is an interactive

How can I do string concatenation, or string replacement in YAML?

How can I do string concatenation, or string replacement in YAML?

I have this:user_dir: /home/useruser_pics: /home/user/picsHow could I use the user_dir for user_pics? If I have to specify other properties like this, it would not be very DRY. 1:You can use a repeated node, like this:user_dir: &user_hom

Updating PATH environment variable permanently in Docker container

Updating PATH environment variable permanently in Docker container

I tried adding to the PATH in the files ~/.profile and /etc/profile as follow.PATH = $PATH:/required/pathHowever, it does not work. Then I tried with adding the line show, which did not work either. export PATHIt did not work even after res

How to make documentation with NetBeans and Javadoc

How to make documentation with NetBeans and Javadoc

I was searching a while, but nothing found. How can i make documentation in NetBeans 7.0.1?My file looks like:/** Class Description of MyClass */public class ScanReader{}In my project properties i checked all options with checkbox and nothi

Installing CasperJS on Windows: How to do it correctly?

Installing CasperJS on Windows: How to do it correctly?

I know there is a documentation from CasperJS website about how to install CasperJS on Windows, but bear with me these guys only explained for the pros only. If you are new to all this CasperJS and PhantomJS world, you dont stand a chance t

Does groovy have an easy way to get a filename without the extension?

Does groovy have an easy way to get a filename without the extension?

Say I have something like this:new File("test").eachFile() { file-> println file.getName() }This prints the full filename of every file in the test directory. Is there a Groovy way to get the filename without any extension? (Or am I bac

Problems occurred when loading the Microsoft Visual menu

Problems occurred when loading the Microsoft Visual menu

When I opened Visual Studio 2013 today, I got an error. "A problem occurred when loading the Microsoft Visual Menu....", it asked me to reset VS environment via “devenv /resetsetting’’ command and try it again.However it doesn't work.See th

Possible to make a beehive XML layout in Android?

Possible to make a beehive XML layout in Android?

A beehive layout should look like thisThe colored hives are just so you understand how I have to lay down elements. Which Layout widget do you suggest of using?I tried with GridView but I cannot make such cells, then FrameLayout but don't w