I'm trying to migrate an app from Sencha-Touch 1 to Sencha-Touch 2 and I can't figure out what is the exact purpose of the following piece of code :
Ext.require([
'Ext.XTemplate',
'Ext.Panel',
'Ext.Button',
'Ext.List',
'Ext.Carousel',
'Ext.NestedList'
]);
Could somebody help me out here ?
Thank you
It is used by the class system when dynamic loading is enabled in the class system. It basically tells the framework that these are the components that will be used in your application.
It also means that the SDK Tools can figure out which classes have been used in your application, and only use those when compiling and minifying your application into 1 file - because in most cases you will not use every part of the framework.
You can find more information about the class system here and information about the SDK Tools and building here.
Related
I am trying to make a tweak that allows a myo to interface with my iDevice.
[1.] iphone/application
[2.] iphone/library
[3.] iphone/preference_bundle
[4.] iphone/tool
[5.] iphone/tweak
I originally picked the 'tweak' option but I am starting to think it might be better to try something else? Ideally, i'd like to write the code that translates the myo data into tangible swipes that will inject the movement into other apps. This is my first attempt at Jailbroken development so any advice would be appreciated!
You want option 5, tweak. I suggest you look at the wiki for some help.
If you want your project to be injected into other applications, then you want a tweak.
Each project type has a specific purpose:
application: A standard application, like you'd install from the App Store, launched from the home screen (but not sandboxed by default)
library: A library which contains some reusable functionality for use in other projects
preference_bundle: A settings bundle which will be loaded into Settings.app
tool: A program run from the command line
tweak: A library to be injected into other software by Substrate
Qml uses Javascript extensively.
Firebase offers Javascript libraries for browsers.
Is it possible to use Firebase from QML?
Any specific details are welcome.
QML, being an extension of QT, which is essentially a cross-platform tool for creating desktop/mobile apps, is not a web browser and does not run it's JavaScript-like code in a browser environment.
Thus, it seems highly improbable that you could get Firebase's JavaScript SDK (which expects to be presented with APIs like XmlHttpRequest, WebSocket, a DOM, and iframes) to function appropriately.
Since Firebase does not offer a C++ SDK, it seems like the best approach to accessing Firebase from QML might be to utilize the REST API for which a community implementation exists here.
As of end of 2016, a C++ SDK is now available, mainly aimed to mobile platforms. Currently only a subset of Firebase features are supported by it is in active development and probably some if not all of the missing features will be added.
If you intend to create mobile apps, it is possible to integrate the available native Firebase SDK for Android and iOS in your application.
This solution requires native Java and Obj-C code to work with the SDK. You can then wrap this code with a C++-based type to expose the Firebase SDK features for QML.
This allows a simple usage with QML similar to:
FirebaseDatabase {
id: firebaseDb
Component.onCompleted: getValue("public/path/to/my/object")
onReadCompleted: {
if(success) {
// parameter "value" can be a nested object/array, as read from your database
console.debug("Read value " + value.subarray[3].subproperty.text)
}
}
}
As there's quite some implementation work required, the above example is taken from a ready-made solution by V-Play Engine. Some more usage examples can be found here.
I want use http://twitter.github.com/bootstrap/ in my application.
I found for yii two extensions:
http://yii-booster.clevertech.biz/
http://www.cniska.net/yii-bootstrap/
Mayby is more then this 2?
Which one is better? What is difference? What with licence? My application is commercial.
Yii-Booster is a library that contains Yii-Bootstrap and many other Yii widgets and components.
If you just want Bootstrap your project Yii-Bootstrap will probably solve your problem, but if you want a more complete library I recommend Yii-Booster.
Example of widgets contained in Yii-Booster:
Select2: http://ivaynberg.github.com/select2/
Editable: http://vitalets.github.com/bootstrap-editable/#options
StickyTableHeaders: https://github.com/jmosbech/StickyTableHeaders
BootGroupGridView: http://groupgridview.demopage.ru/
JQueryUI Bootstrap CSS: http://addyosmani.github.com/jquery-ui-bootstrap/
And many other components:
http://yii-booster.clevertech.biz/components.html
http://yii-booster.clevertech.biz/json-grid.html
http://yii-booster.clevertech.biz/extended-grid.html;
As told you in other answer, both projects use the license New BSD License.
It's all a matter of fitting your needs.
The Yii Booster is one project based on Yii Bootstrap and have some components more.
The projects have the same source code base.
So far, the Yii Bootstrap, solved my problems, however, if you want to use some component unique of the Yii Booster, use it!
Both projects use the license New BSD License.
More informations about the projects you will find the links below:
Yii Bootstrap - Extension Page.
Yii Bootstrap - Discussion Topic.
Yii Booster - Extension Page.
Yii Booster - Discussion Topic.
Another similar extension: Yii Foundation 3.
Yii Foundation 3 - Extension Page.
A more up to date version of Yii-Bootstrap is Yiistrap. Yiistrap has also been written by the author of Yii-Bootstrap and is offered under a BSD-3-Clause license, so commercial use should be fine.
As already pointed out Yii-Booster is simply a prepackaged app with various extensions already in place. An alternative to that would be Yii-App for instance. It contains fewer markup extensions but a number of developer and backend extensions that may help with basic development.
I'm new to mono and working through the Mono For Android tutorials. Can anyone point me to some documentation which explains the meaning of the [Application] tag above my classes?... Here's my issue:
I have come accross an issue where I have created two seperate classes App1.cs & App2.cs, both of these extend the Application Class (Public Class App1 : Application).. etc.
There is a tag above this declaration [Application] which seems to be causing deployment issues, although it builds fine. If I comment one of these out, the application builds and deploys fine.
I have searched for info on these tags, but as yet cannot find anything in the search, FAQ's or on google... I guess the square brackes are causing me search problems. Any help would be great...
Thanks
C
In Android applications you can subclass the Application class in order to maintain global state in your app. An app can have at most one Application class, and it is shared throughout the app. In order to register your Application class it needs to be registered in AndroidManifest.xml (this applies to any Android component). Mono for Android uses attributes to generate the manifest during compilation, so any class decorated with ApplicationAttribute will generate configuration at build time.
Since only one Application class is allowed, this would explain the problems you are seeing when you try to register two of them. My guess (without having context into what you're trying to do here) is that you probably want to subclass Activity for these classes instead of Application.
I recently upgraded to Flash Builder 4.5 for PHP since I’m working on a big PHP/Flex project and thought that it would be easier to integrate the two.
What do you know? The feature that generate the php class to feed a flex/PHP service trough AMF is appears to be missing!
Time to downgrade or am I overlooking something?
I believe it's still there, but that feature should only be used for building a test application. It breaks a lot of best practices such as creating the connection in the class (it should be injected or retrieved from an outside class that manages the DB) and it puts the database definition info in the class (username, password, etc.). I believe that when you use that feature that a popup tells you that it is not intended for production use. When building a service class it is best to define your classes based off of the functionality you need to provide.