Why won't Heroku accept my Gemfile.lock in Windows?

Why won't Heroku accept my Gemfile.lock in Windows?

I have a rails application that I deploy on Heroku. I'm using several different machines, and I noticed that when I add new dependencies (so that Gemfile.lock is rebuilt) and do bundle install on my Windows computer at home, push to Heroku

How to have password echoed as asterisks

How to have password echoed as asterisks

I am trying to figure out how to prompt for a password, and have the users input echoed back as asterisks (********) So recently, I took on the project of creating a remote server that could be connected to using the socket module in Python

How can I catch SIGSEGV (segmentation fault) and get a stack trace under JNI on Android?

How can I catch SIGSEGV (segmentation fault) and get a stack trace under JNI on Android?

I'm moving a project to the new Android Native Development Kit (i.e. JNI) and I'd like to catch SIGSEGV, should it occur (possibly also SIGILL, SIGABRT, SIGFPE) in order to present a nice crash reporting dialog, instead of (or before) what

Hibernate Error: org.hibernate.NonUniqueObjectException: a different object with the same identifier

Hibernate Error: org.hibernate.NonUniqueObjectException: a different object with the same identifier

I have two user Objects and while I try to save the object using session.save(userObj);I am getting the following error:Caused by: org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associa

Debugging core files generated on a Customer's box

Debugging core files generated on a Customer's box

We get core files from running our software on a Customer's box. Unfortunately because we've always compiled with -O2 without debugging symbols this has lead to situations where we could not figure out why it was crashing, we've modified t

In SQL, is it OK for two tables to refer to each other?

In SQL, is it OK for two tables to refer to each other?

In this system, we store products, images of products (there can be many image for a product), and a default image for a product. The database:CREATE TABLE `products` ( `ID` int(10) unsigned NOT NULL AUTO_INCREMENT, `NAME` varchar(255) N

How do I change a JFreeChart's size

How do I change a JFreeChart's size

I've added a JFreeChart to a JPanel (using a BorderLayout), and it's huge. Is there something I can do to make it smaller?public void generateChart(){ DefaultCategoryDataset dataset = new DefaultCategoryDataset(); //set the values of

android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0

android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0

I am using custom adapter extending cursor adapter for displaying data in listview, to display particular phone number i have passed the id to a method in database class but it is showing errorandroid.database.CursorIndexOutOfBoundsExceptio

Origin is not allowed by Access-Control-Allow-Origin

Origin is not allowed by Access-Control-Allow-Origin

I'm making an Ajax.request to a remote PHP server in a Sencha Touch 2 application (wrapped in PhoneGap).The response from the server is the following: XMLHttpRequest cannot load http://nqatalog.negroesquisso.pt/login.php. Origin http://loc

How can I wait for set of asynchronous callback functions?

How can I wait for set of asynchronous callback functions?

I have code that looks something like this in javascript:forloop { //async call, returns an array to its callback}After ALL of those async calls are done, I want to calculate the min over all of the arrays.How can I wait for all of them?

Using a C++ class member function as a C callback function

Using a C++ class member function as a C callback function

I have a C library that needs a callback function to be registered to customize some processing. Type of the callback function is int a(int *, int *).I am writing C++ code similar to the following and try to register a C++ class function as