open_id_authentication - “OpenIdAuthentication.store is nil. Using in-memory store.” problem



I am trying to make the open_id_authentication plugin working.
Initially was doing it with authlogic but abandoned because it feels like much more hassle the help.


The problem is that I am getting OpenIdAuthentication.store is nil. Using in-memory store. warning in the log which prevents from authenticating users correctly.


Here is the log snippet:


Processing UserSessionsController#create (for 127.0.0.1 at 2010-04-21 23:58:38) [POST]
Parameters: {"commit"=>"Sign in", "authenticity_token"=>"MSPc+VMgsQZ/w7vsb2OiE0azsF1QmphZqfnS6cPRD/U=", "openid_identifier"=>"http://myopenid.com"}
Co

Related to : open_id_authentication - “OpenIdAuthentication.store is nil. Using in-memory store.” problem
iPhone In-App Purchase Store Kit error -1003 “Cannot connect to iTunes Store”
Programming Languages

I've been working on adding in-app purchases and was able to create and test in-app purchases using Store Kit (yay!). During testing, I exercised my app in a way which caused the app to crash mid purchase (so I guess the normal cycle of receiving paymentQueue:updatedTransactions and calling finishTransaction was interrupted).


Now I am unable to successfully complete any transactions and instead am getting only transactions with transactionState SKPaymentTransactionStateFailed when paymentQueue:updatedTransactions is called.


The transaction.error.code is -1003 and the transaction.error.localizedDescription is "Cannot connect to iTunes Store"!

iPhone Store Kit “Cannot connect to iTunes Store”
Programming Languages

I am working on adding In-App purchases to my app.


I am able to receive the productsRequest:didReceiveResponse method, and receive the array of products.


My problem arises when I add a SKPayment to the SKPaymentQueue. After I add the product to the queue, in the paymentQueue:updatedTransactions method the transactions always have the state SKPaymentTransactionStateFailed.


I NSLog the "transaction.error" and this is what it returns: Error Domain=SKErrorDomain Code=0 UserInfo=0x165000 "Cannot connect to iTunes Store"


I have logged out of the Store in the Settings app, but after trying to purchase a product in my

open_id_authentication - “OpenIdAuthentication.store is nil. Using in-memory store.” problem
Programming Languages

I am trying to make the open_id_authentication plugin working.
Initially was doing it with authlogic but abandoned because it feels like much more hassle the help.


The problem is that I am getting OpenIdAuthentication.store is nil. Using in-memory store. warning in the log which prevents from authenticating users correctly.


Here is the log snippet:


Processing UserSessionsController#create (for 127.0.0.1 at 2010-04-21 23:58:38) [POST]
Parameters: {"commit"=>"Sign in", "authenticity_token"=>"MSPc+VMgsQZ/w7vsb2OiE0azsF1QmphZqfnS6cPRD/U=", "openid_identifier"=>"http://myopenid.com"}
Co
Rails.cache throws “marshal dump” error when changed from memory store to memcached store
Programming Languages

If I set this in my environment


config.action_controller.cache_store = :mem_cache_store

ActionController::Base.cache_store will use a memcached store but Rails.cache will use a memory store instead:


$ ./script/console
>> ActionController::Base.cache_store
=> #<ActiveSupport::Cache::MemCacheStore:0xb6eb4bbc @data=<MemCache: 1 servers, ns: nil, ro: false>>
>> Rails.cache
=> #<ActiveSupport::Cache::MemoryStore:0xb78b5e54 @data={}>

In my app, I use Rails.cache.fetch(key){ object } to cache objects inside

Core data fails to open store: “Error validating url for store”
Programming Languages

I've been working on an app for quite a while and suddenly started to hit this error when the app tries to open a Core Data store. I hadn't made any changes to my data model or the data access code for over a month, so I don't think it can be anything that I'm doing wrong as far as interacting with Core Data. (Meaning, the URLs are ok, the call pattern is ok, etc...)


Interestingly, these are the log lines immediately before the error:


/SourceCache/GoogleMobileMaps/GoogleMobileMaps-217.2/googlenav/mac/TileStore.mm:209 unable to open /var/mobile/Library/Caches/MapTiles/MapTiles.sqlitedb: (14) unable to open database file
/SourceCache/GoogleMo

Using an NSManagedObject subclass entity in both an in-memory store, and a SQLite store
Programming Languages

I would like to use a single NSManagedObject subclass to represent an item. However, much of the time, the items I will be representing are fleeting, and are not to be saved to the persistent store. It seems like an in-memory store would be the correct setup.


However a few times the user can choose to 'save' an item, and thus I would then like that item to be persisted to a SQLite store.


It seems as though I need two stores. Do I need two contexts? Is there a recommended way to move an item from the in-memory store to the 'saved' persistent store? Any other suggestions or issues people can recommend when mixing persistent and non-persistent managed


Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .