Change Photo
Quinten Hyatt

Questions by Quinten Hyatt

Left-right arrow indicators over a ViewPager?

I want to show left and right arrows over my ViewPager, to indicate swiping. I added two ImageButtons over the View...

Laravel how to pass the name of the user when I sent the forgot password function?

I want to make my mail more detailed when the user has sent a forgot password reset link to his/her email. This is t...

A very basic setting issue about spyder and anaconda for python?

I am a beginner of spyder IDE for Python. To use spyder IDE, I command "spyder" on anaconda console with python 2.7...

Negation in Python?

I'm trying to create a directory if the path doesn't exist, but the ! (not) operator doesn't work. I'm not sure how ...

Cannot resolve collation conflict on column 5 in select statement?

I am trying to show a combination of several fields as only one. (I was asked by the customer to do so). I tried the...

How do I replace whitespaces with underscore and vice versa??

I want to replace whitespace with underscore in a string to create nice URLs. So that for example: "This should be ...

How to write a non-C-like for-loop in Swift 2.2+??

I have updated Xcode (7.3) and there are a lot of changes; C-like for expressions will be deprecated. For a simple e...

How should I throw a divide by zero exception in Java without actually dividing by zero??

I have an I2C device that wants two inputs: a denominator and a numerator. Both are written to separate addresses, s...

Rails return JSON instead of HTML?

I have a ruby on rails web app, but I want it to act like a web service and instead of HTML to return JSONs. I want ...

Vim: Repeat previous motion??

Let's say that I'm in visual mode, and I type "aw" to extend the visual area to include the next word. I'd like to ...

Difference between parsing a text file in r and rb mode?

What makes parsing a text file in 'r' mode more convenient than parsing it in 'rb' mode? Especially when the text fi...

Merging of branch to trunk in SVN using Eclipse?

I am looking forward to merge my codes which I developed in a branch of SVN to the trunk. I am using Eclipse and I h...

How to reload .bash_profile from the command line??

How can I reload .bash_profile from the command line? I can get the shell to recognize changes to .bash_prof...

Add shadow to custom shape on Android?

Is it possible to add a drop shadow to a custom shape in Android? After looking through the documentation, I only se...

Stopping & starting music on incoming calls?

I have implemented an activity that plays media from a URL in Android. In order to add pause functionality when a c...