Xcode quit unexpectedly.

Click Reopen to open the application again. Click Report to see more detailed information and send a report to Apple.



When you received the message above while refreshing provisioning profiles, close Xcode, go to terminal and delete the "connect1.apple.com 4.6.1.db" file:
rm  ~/Library/Developer/Xcode/connect1.apple.com\ 4.6.1.db
After deleting the database file you should be able to refresh provisioning profiles in Xcode again.
The following code shows how-to pre select your list items in Sencha Touch:

var itemsToSelect = ["soccer", "baseball"];
var index = -1;
var myList = getMyList();

itemsToSelect.forEach(function(itemToSelect) {

   index = myList.getStore().find('fieldName', itemToSelect);
   myList.select(index,true,false); 
});
While in the process of implementing a JSONP proxy writter the following message will pop up when running the code:
Error: [ERROR][Ext.data.proxy.Server#create] JsonP proxies can only be used to read data.
There is nothing in the Sencha Touch documentation, that tells me that a proxy writer can not be used.

After looking at the framework code it was clear to me, that the source code had not been implemented.

With that, you really do need a JSONP writer, otherwise you have to implement the logic yourself or switch back to an AJAX proxy.

There is nothing in the release notes to Sencha Touch 2.2.0 beta 1 that leads me to believe, that any updates on the subject are forthcoming.
Maybe you received  the following error while building a Sencha Architect application:

Error: The package command has moved to 'sencha app package'

This error is thrown because Sencha Architect 2.1 only works with Sencha Cmd 3.0.0 version.

To fix this you have to download and refer one of the following Sencha Cmd 3.0.0 versions:

http://cdn.sencha.com/senchacmd/SenchaCmd-3.0.0.250-linux-x64.run.zip
http://cdn.sencha.com/senchacmd/SenchaCmd-3.0.0.250-linux.run.zip
http://cdn.sencha.com/senchacmd/SenchaCmd-3.0.0.250-osx.app.zip
http://cdn.sencha.com/senchacmd/SenchaCmd-3.0.0.250-windows.exe.zip


Short overview where Google Chrome browser stores the Web SQL databases:

Mac OS X (In case you cannot see the Library folder in Mac Finder > make it visible)
~/Library/Application Support/Google/Chrome/Default/databases
Linux
~/.config/google-chrome/Default/databases
Windows Vista/7
\Users\_username_\AppData\Local\Google\Chrome\User Data\Default\databases
Windows XP
\Documents and Settings\_username_\Local Settings\Application Data\Google\Chrome\User Data\Default\databases
You can use free tools like Lita to access your Web SQL databases.


If you bought a German version of Photoshop CS6, you may want to switch back to English. In this post I will show you a trick to do this without taking use of a language pack.

The main problem is, that Adobe disallows us to switch the language in Photoshop directly, as you can see at the following screen:


Ok, here comes the trick (I am quite sure this will work on other language versions too).
  1. Make sure that Photoshop is closed!
  2. Open the Finder: /Applications/Adobe Photoshop CS6/Locales/de_DE/Support Files
  3. In the "Supported Files" directory you will find a file named "tw10428.dat"
  4. Rename "tw10428.dat" to "tw10428.bak"*
  5. Start Photoshop (GUI language should be English now)
  6. Done! :)

* To rename "tw10428.dat" > Right click on "tw10428.dat" file > Select "Get Info" > Goto the "Name & Extension" label > In the textfield you type "tw10428.bak".

After closing the current dialog don't forget to confirm the changes with "Use .bak".




There are many ways to clear the localStorage of your web browser.

In a common dev toolbar just type:
localStorage.clear();
If you are using jQuery:
$.storage('clear');
If you are using Sencha:
// proxy
var store = Ext.getStore('YourStore');
store.getProxy().clear();
store.data.clear();
store.sync();

// no proxy
var store = Ext.getStore('YourStore');
store.removeAll();
store.sync();
You can also delete the localStorage via a bookmark. Just add the following snippet as new bookmark:
javascript:(function(){localStorage.clear()})();
Today my phone has been eating my battery life like crazy. After some google searches I came arround that it is might be caused by a bad file or corrupted sd-card. I also unmounted my sd-card, but so far this was not the solution for my problem...


A quick hack for this problem is to kill the media service via a script.

If your phone is rooted, you can install a program that can run shell scripts like Script Manager - SManager on your phone.

Then run the following script to kill the media service:
#!/system/bin/sh
killall -9 android.process.media
killall -9 mediaserver

Baaaaam! :)

If you have any idea how I find out what file or error is causing my media service to crash, don't hesitate to contact me.


You have an iPhone storyboard and want to support the iPad too? This can be done in a quick way:

  1. Open Xcode
  2. Duplicate the existing storyboard.
  3. Rename them to "MainStoryboard_iPhone.storyboard" and "MainStoryboard_iPad.storyboard"
  4. Right click on the "MainStoryboard_iPad.storyboard" file > "Open as" > "Source code" 
  5. Search & Replace:
    targetRuntime="iOS.CocoaTouch"
    with:
    targetRuntime="iOS.CocoaTouch.iPad"
  6. Done!
You are developing with Sencha Touch and Eclipse? You want to have code completion and outline? ... Here I'll show you how to do it at no charge to you.
This tutorial works also for ExtJS developer, at least I tested it with ExtJS 4.x before. But actually I don't know if the required *.jsb3 file is still included their archives. May someone can confirm this?

Requirements:
  • Working installation of Eclipse with Aptana Studio Plug-in (tested with Eclipse Juno Service Release 2 and Aptana Studio 3.4.0)
  • Unzipped Sencha Touch 2.x.x (tested with Sencha Touch 2.2.1)
  • *.jsb3 file *
* Since .jsb3 file is no more included in the Sencha Touch 2.2.1 archive (I guess they wanna sell you the Sencha Architect instead), you can download it here directly:
Download Sencha Touch .jsb3

For the case you are new to Aptana, I can suggest you to watch the following video tutorial first.

In the next steps I will show you how to install and configure your Spket IDE:
  1. Download and copy the *.jsb3 file into the root directory of your extracted Sencha Touch archive (as a sibling of src)
  2. Start Eclipse.
  3. Goto Help > Install New Software
  4. Click the "add" button
    1. Name: Spket IDE
    2. Location: http://www.agpad.com/update/
  5. Select the Spket IDE Node and click the "Next" button (See Image1). Follow the installation steps.
  6. Restart Eclipse.
  7. In Eclipse, Windows > Preferences or just press  + ,
  8. Select "Spket" > "JavaScript Profile preference" page to display the installed JavaScript Profiles.
  9. Click the "New.." button. In the Name field, type "Sencha Touch" as the name for the new profile. Click "OK".
  10. Click the "Add Library" button. From the Library drop-down list, select "ExtJS". Click "OK".
  11. Click the "Add File" button, choose the *.jsb3 file, which you copied to the Sencha Touch root folder before (See step 1).
  12. Check all the available select boxes in the created profile.
  13. Select the Ext profile created in step 9, click the "Default" button. This makes it to the default profile for all your project.
  14. Click "OK" to save the preferences.
  15. Open your javascript file with the Spket JavaScript Editor. You can set Spket JavaScript Editor as the default editor. "Windows" > "Preferences" or just press  + ,"General" > "Editors" > "File Associations". Select the filetype "*.js". In associated editors select the Spket JavaScript Editor and press the "Default" button. See Image2.
  16. When you type "Ext.de" and press STRTG + SPACE your code should get completed.
  17. Done.



Mac OS X offers you a smart built-in solution to secure your files and folders. It is possible to create an encrypted disk image, it is like a regular disk image but requieres a password to become mounted. How this works, I'd like to show you in the following steps:
  1. Open Disk Utility (press + SPACE and type disk utility).
  2. File > New > Blank Disk Image.
  3. Type a name in the Save As field. This name will be used for the disk image.
  4. Choose a preferred location to save the *.dmg file.
  5. Select a size for the disk image.
  6. Choose as volume format the default Mac OS X Extended (Journaled)
  7. Use "sparse disk image" for a disk image that only uses as much space as it needs, rather than a set amount of space.
  8. Choose 128-bit AES encryption (or 256-bit AES in Mac OS X v10.5 or later, but slower). I would suggest 128-bit AES encryption. 
  9. Click on "Create" button.
  10. Enter a strong password and don't forget to deselect "Remember password (add to keychain)" if you don't want it saved. Because if you do, your created disk image is less secure.




Okay nothing new here, but maybe it inspires you to use "hot" keys more often  :)
  1. CRTL + Q goto last edit location
  2. CRTL + SPACE completes everything
  3. + S removes current line or selected lines
  4. + L goto line number
  5. + ALT + copies current line or selected lines to below
  6. + ALT + copies current line or selected lines to above
  7. ALT + moves current line or selected lines to below
  8. ALT + moves current line or selected lines to above
  9. + SHIFT + 7 Toggle comment*
  10. + goto the beginning of a line
  11. + goto the end of a line
  12. + SHIFT + L brings up a List of shortcut keys
Something missed? - See Windows -> Preference -> General -> Keys.

* You may have to disable the OS X hotkey (  + SHIFT + 7 brings up the help menu).