ExtJS 4: Models with Associations and Stores

Konrad. I recently faced with dealing with Models+Associations+Stores. This wasn’t very pleasent experience. Here is what I’ve learned: Let’s say we have Store1, Store2, Model1, Model2, Grid1, Grid2. Grid1 uses Store1, Store1 uses Model1 and similarly Grid2 uses Store2, Store2 uses Model2. So far all is working, data is loading and so on. But now … Read more

Java – How to store password used in application? [duplicate]

Never hard-code passwords into your code. This was brought up recently in the Top 25 Most Dangerous Programming Mistakes Hard-coding a secret account and password into your software is extremely convenient — for skilled reverse engineers. If the password is the same across all your software, then every customer becomes vulnerable when that password inevitably … Read more

How to store CLLocation using Core Data (iPhone)?

What you’re doing is fine. You should save the latitude and longitude as doubles in Core Data. When you need to get the information again, get the doubles back from Core Data and construct a CLLocationCoordinate2D struct with a function like CLLocationCoordinate2DMake. There’s no built in way to store a location, so storing the latitude … Read more

Separating vuex stores for dynamically created components

For the first operation of NEW button – generating components – we add mutation to our store.js mutations: { addJob (state) { state.jobs.push(state.jobs.length + 1) … } Second, creating local modules. Here we’re going to use reusableModule to generated multiple instances of a module. That module we keep in separate file for convinience. Also, note … Read more

Reliable and efficient key–value database for Linux? [closed]

LMDB is the most memory-efficient database around http://symas.com/mdb/inmem/ and also proven to be the most reliable – completely crash-proof. http://wisdom.cs.wisc.edu/workshops/spring-14/talks/Thanu.pdf Of the ones you’ve mentioned, Tokyo Cabinet has documented corruption issues https://www.google.com/search?q=cfengine+tokyo+cabinet+corruption BerkeleyDB also has well-documented corruption issues, as does Bitcask. (And bitcask is an in-memory-only DB anyway, so useless for your 1MB RAM requirement.) … Read more

How are integers internally represented at a bit level in Java?

Let’s start by summarizing Java primitive data types: byte: Byte data type is an 8-bit signed two’s complement integer. Short: Short data type is a 16-bit signed two’s complement integer. int: Int data type is a 32-bit signed two’s complement integer. long: Long data type is a 64-bit signed two’s complement integer. float: Float data … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)