ExtJS Object Observable machen

Als Config /** * @mixins Ex.util.Observable */ mixins: { observable: ‚Ext.util.Observable‘ }, Und im Konstruktor folgende Zeile: constructor: function(config){ this.mixins.observable.constructor.call(this, config); Ext.apply(this, config); this.callParent(arguments); },

SQL um Special Chars zu entfernen

DROP FUNCTION IF EXISTS `stripSpecialChars`; DELIMITER ;; CREATE FUNCTION `stripSpecialChars`(`dirty_string` varchar(2048),allow_space TINYINT,allow_number TINYINT,allow_alphabets TINYINT,no_trim TINYINT) RETURNS varchar(2048) CHARSET utf8 BEGIN /** * MySQL function to remove Special characters, Non-ASCII,hidden characters leads to spaces, accents etc * Downloaded from http://DevZone.co.in * @param VARCHAR dirty_string : dirty string as input * @param VARCHAR allow_space : allow spaces […]

Google Update deaktivieren

Über den Microsoft Policy Service die adm Datei von Google importieren: Win + R -> gpedit.msc Auf Administrative Templates gehen Template hinzufügen Zip entpacken und importieren: GoogleUpdate Über Software Administrative Templates > Google > Preferences > Auto check update period einstellen oder deaktvieren fertig! Quelle

XCode – iOS App startet nicht auf Gerät

Kürzlich der Fall: Im XCode ließ sich die App nach erfolgreichem Build nicht auf dem Endgerät starten. Dafür folgenden Move machen: Im XCode in der oberen Toolbar zwei Buttons neben dem Run-Button das Aktive Schema öffnen Auf Edit Scheme gehen Im folgenden Dialog den Bereich Run auswählen Als Executable die App auswählen Voila, die App startet […]

Windows SymLinks

mklink [[/d] | [/h] | [/j]] Quelle

iOS lässt keine HTTP-Verbindungen zu

Folgendes in die Info.plist aufnehmen um ATS zu deaktivieren: NSAppTransportSecurity NSAllowsArbitraryLoads Quelle

Sencha Touch erkennt Android 5 Tablet nicht als Profil

Im touch-Framework-Ordner die env/OS.js anpassen: if (!osEnv.is.Android && !osEnv.is.iOS && !osEnv.is.WindowsPhone && /Windows|Linux|MacOS/.test(osName)) { deviceType = ‚Desktop‘; // always set it to false when you are on a desktop not using Ripple Emulation Ext.browser.is.WebView = Ext.browser.is.Ripple ? true : false; } else if (osEnv.is.iPad || osEnv.is.RIMTablet || osEnv.is.Android3 || Ext.browser.is.Silk || (osEnv.is.Android4 && userAgent.search(/mobile/i) == […]

Cordova Dateien aller Verzeichnisse anzeigen lassen

var localURLs = [ cordova.file.dataDirectory, cordova.file.documentsDirectory, cordova.file.externalApplicationStorageDirectory, cordova.file.externalCacheDirectory, cordova.file.externalRootDirectory, cordova.file.externalDataDirectory, cordova.file.sharedDirectory, cordova.file.syncedDataDirectory ]; var index = 0; var i; var statusStr = „“; var addFileEntry = function (entry) { var dirReader = entry.createReader(); dirReader.readEntries( function (entries) { var fileStr = „“; var i; for (i = 0; i < entries.length; i++) { if (entries[i].isDirectory === […]

Cross origin Problem bei Fonts auf der gleichen Domain

In der .htaccess den Zusatz Header set Access-Control-Allow-Origin „*“ Quelle

Auf dem Mac Homebrew neu installieren

Erst den alten Stand entfernen $ cd `brew –prefix` $ rm -rf Cellar $ brew prune $ rm -rf Library .git .gitignore bin/brew README.md share/man/man1/brew $ rm -rf ~/Library/Caches/Homebrew Dann Homebrew installieren $ ruby -e „$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)“ Quelle