Loading

Where am I? - Get country

An android mobile actually does know quite well where it is - but is there a way of retrieving the country by something like a country code?No need of knowing the exact GPS position - the country is ...

Spark-Java framework, Jetty and JSP files

Go easy please, I'm rather new to the whole web development thing and I'm a little perplexed. I have the Spark framework installed from Maven, which has Jetty as its underlying web/application server,...

How to treat possible NULL pointers in a C 2d dynamic array

When allocating memory for a 2d dynamic array in C, can you treat the inner array (columns) with a function like the following example? Also, how can you print the NULL pointer message with the number ...

Struct like objects in Java

Is it completely against the Java way to create struct like objects?class SomeData1 { public int x; public int y;} I can see a class with accessors and mutators being more Java like....

Structs Conforming to AnyObject

I was writing some code when I came across something which contradicted what I had been taught when I first learned Swift. Somebody had told me that Swift can automatically bridge between structs and ...

How is the correct way to use Alert Dialog on Android Studio?

So, i am trying to develop a little application on android, and i want to get a value from an alert dialog, the user has to choose a value between 2 integers. I am following the documentation, but i ...

How do I remove repeated elements from ArrayList?

I have an ArrayList of Strings, and I want to remove repeated strings from it. How can I do this?

Anyone here knows the correct codes for inputting ip address and thereby making it sync to the device

Can anyone help me :( we plan on building a wifi based microphone app that sends the output audio to the speakers connected on the raspberry pi3. The thing is, we dont know what specific codes to use ...

Explode string by one or more spaces or tabs

How can I explode a string by one or more spaces or tabs?Example: A B C D I want to make this an array.

Does notepad++ show all hidden characters?

In notepad++ I have set "replace tab with 2 spaces".When coding in python I copy-pasted some code from the web and it appeared indented correctly. But running the code resulted in indentation errors,...