Add the following line to 'Advanced settings' of 'GWT Compile' dialog:
-draftCompile -localWorkers XX being the number of cores in your CPU.
You can thank me later :)
(+Boris Daich, you might find it helpful)
-draftCompile -localWorkers XX being the number of cores in your CPU.
qrcobj = programEnv.Qrc("SomeFile.qrc", QT4_QRCFLAGS="-name SomeFile")and all is well.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): warning MSB8015: Forcing a rebuild of all source files due to the contents of ".........\Debug\custombuild.command.1.tlog" being invalid.
NSURL* furl = [f trackUrl];
// ipod-library://item/item.mp3?id=
if([[furl scheme] isEqualToString:@"ipod-library"]){
NSNumber* pid = [NSNumber numberWithLongLong: [[f.name substringFromIndex:32] longLongValue] ];;
MPMediaPropertyPredicate *predicate = [MPMediaPropertyPredicate predicateWithValue:pid forProperty:MPMediaItemPropertyPersistentID];
MPMediaQuery *songQuery = [[[MPMediaQuery alloc] init] autorelease];
[songQuery addFilterPredicate: predicate];
if (songQuery.items.count == 0) {
return NO; // NOT FOUND!
}
SIMBL (SIMple Bundle Loader) - pronounced like "symbol" or "cymbal" - enables hacks and plugins. For instance, SIMBL enables PithHelmet to enhance Safari.
- Problem:
- Some applications do about 90% of what I want.
- Solution:
- Develop my own applications.
- Better Solution:
- Patch the application myself...
Apparently the usual approach is not good for the Java folk. They don't want no stinking nulls in their precious hashes!put
public V put(K key, V value)
- Maps the specified
keyto the specifiedvaluein this hashtable. Neither the key nor the value can benull.The value can be retrieved by calling thegetmethod with a key that is equal to the original key.
- Parameters:
key- the hashtable key.value- the value.- Returns:
- the previous value of the specified key in this hashtable, or
nullif it did not have one.- Throws:
NullPointerException- if the key or value isnull.
try{
Intent i = new Intent();
ComponentName comp = new ComponentName(
"com.google.android.browser",
"com.google.android.browser.BrowserActivity");
i.setComponent(comp);
i.setAction("android.intent.action.VIEW");
i.addCategory("android.intent.category.BROWSABLE");
Uri.Builder z = new Uri.Builder();
i.setData(z.build());
getContext().startActivity(i);
} catch (URISyntaxException e) {
e.printStackTrace();
}
getContext().startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));
Maybe I just don’t know how to read the docs, or how to Google, but I was looking for this info way too much, somehow it was burried. In any case – let’s say you have to apps on the device, and they use a common PersistenStore. One app adds stuff there in the background. The other – shows a UI with a list of the items from the store. All nice and synchronized. The only problem is – there is no way to detect that the PersistentObject that you are using was updated! So if you want to have your list refreshed automatically – you have to get creative.
On the producer side, after updating the PersistentStore, post a global notification with a unique ID:
ApplicationManager.getApplicationManager().postGlobalEvent(Main.NOTIFICATIONS_ID_1);
On the consumer side (UI), register for the notifications, then catch that message and update the UI accordingly:
Let’s be clear, RIM should be ashamed of the way their developer toolkit looks. The documentation is sparse at best, their own ide JDE looks and works like something from the 70s, and their Eclipse plugin refuses to work with actual devices and crashes on Simulator hot swaps. I am not even mentioning the fact that the UI has to be built in code like in the DOS days. Seriously? No GUI builders? In 2010? Sheesh. Now to the tip of today: How to make a folder on a SD Card.
Sounds simple right? Open a FileConnection, call a mkdir() method? Nope. IO Exceptions, Cannot access root file system and other not very helpful messages (all that is in addition to the fact that you cannot work with both debugger and SD card at the same time. very convenient).
Basically, the hidden gem is – you must have a trailing slash at the end of your path. Otherwise – no mkdir() for you!