manifest

HTML5 cache manifest: whitelisting ALL remote resources?

不问归期 提交于 2019-12-01 18:56:10
I'm doing an iPhone version of a desktop site that includes a blog. The blog often embeds images from other domains (the image URLs always start with http:// in this case, obviously), but because I'm using cache-manifest, these images don't load because they aren't declared in the manifest file. I have a NETWORK: whitelist section that has all of my AJAX request files, etc. I've even whitelisted the flickr farm domains because a lot of the images we add to the blog come from our flickr page. The flickr images show up just fine, but any other "random" image hotlinks from another domain show

Why is the Manifest not available in the constructor?

霸气de小男生 提交于 2019-12-01 16:56:33
Consider this code: class Foo[T : Manifest](val id: String = manifest[T].erasure.getName) I basically want to store an identifier in Foo, which is often just the class name. Subclass which do not need a special identifier could then easily use the default value. But this doesn't even compile, the error message is: error: No Manifest available for T. Is there another approach which will work? EDIT: Why does this work if the manifest isn't available until the primary constructor? class Foo[T: Manifest](val name: String) { def this() = this(manifest[T].erasure.getName) } When the syntactic sugar

Why is jar ignoring my manifest?

倖福魔咒の 提交于 2019-12-01 16:44:28
I tried to create an executable jar using this command: jar -cvfm h.jar Manifest.mf Whatever1.class Whatever2.class The manifest contains this: Main-Class: Whatever1 But if I try to run the jar, I get: Failed to load Main-Class manifest attribute from my.jar . I extracted the jar, and I saw that the contents of it's manifest were this: Manifest-Version: 1.0 Created-By: 1.6.0_18 (Sun Microsystems Inc.) Why was my manifest ignored? EDIT: I know that using the -e flag I can specify an entry point, and jar will generate a correct manifest, but I'd like to know how to make this version work. Add a

Is it better code practice to register a receiver in manifest or in code?

寵の児 提交于 2019-12-01 16:09:47
问题 I'm writing a simple broadcast receiver. I've registered receivers in both the manifest and in the code before. For my purposes this is a simple receiver that doesn't need to do anything fancy. Is there a reason to choose one method over the other in this case? Is registering the receiver in the manifest more efficient (executes faster)? Or are they both basically the same? I'm asking because the application I'm writing needs to be very efficient, and I haven't been able to find good

Resources referenced from the manifest cannot vary by configuration

北城以北 提交于 2019-12-01 16:00:25
When I want to insert the follow meta-tag: <meta-data android:name="com.android.systemui.action_assist_icon" android:resource="@mipmap/ic_launcher" /> I get the error message: Resources referenced from the manifest cannot vary by configuration (except for version qualifiers, e.g. -v21.) Found variation in hdpi, mdpi, xhdpi, xxhdpi, xxxhdpi How can I fix this? nshmura Variation of resources in AndroidManifest.xml is detected as error. It may be ignored like this: <?xml version="1.0" encoding="utf-8"?> <manifest ... xmlns:tools="http://schemas.android.com/tools" ...> ... <meta-data android:name=

“application configuration is incorrect” and “side-by-side configuration is incorrect” running VS2008 64-bit debug build

 ̄綄美尐妖づ 提交于 2019-12-01 15:54:43
问题 I am working on a 64-bit OS windows 7 ultimate machine VS2008 with 64bit addon. I have successfully build my projects in both 32 & 64 bit, debug and release config. The 64 bit debug is not launching; it gives the error: Unable to Start program xxx This application has failed to start because application configuration is incorrect. Review the manifest file for possible errors. Reinstalling the application may fix this problem. For more retails see application event log. I ran the dependency

Maven Archiver putting in weird line breaks in classpath for manifest

混江龙づ霸主 提交于 2019-12-01 15:51:45
Per the java spec the classpath line in the manifest.mf for a jar can only be a certain number of bytes. After that a line break is inserted and the new line begins with an empty space. Using Maven 3, and maven-jar-plugin version 2.3.2 my manifest ends up with some interesting line breaks in the classpath and I think that may be breaking my EAR when deployed into WAS 7. Just want to make sure the manifest is OK to look like that (may not match byte length but so you get the picture): Class-Path: log4j-1.2.16.jar projectthatislong-0.0.1-SNAPSHOT.jar projectt hatislong-0.0.1-SNAPSHOT.jar Notice

Why is the Manifest not available in the constructor?

偶尔善良 提交于 2019-12-01 15:32:52
问题 Consider this code: class Foo[T : Manifest](val id: String = manifest[T].erasure.getName) I basically want to store an identifier in Foo, which is often just the class name. Subclass which do not need a special identifier could then easily use the default value. But this doesn't even compile, the error message is: error: No Manifest available for T. Is there another approach which will work? EDIT: Why does this work if the manifest isn't available until the primary constructor? class Foo[T:

Why is jar ignoring my manifest?

◇◆丶佛笑我妖孽 提交于 2019-12-01 15:31:22
问题 I tried to create an executable jar using this command: jar -cvfm h.jar Manifest.mf Whatever1.class Whatever2.class The manifest contains this: Main-Class: Whatever1 But if I try to run the jar, I get: Failed to load Main-Class manifest attribute from my.jar . I extracted the jar, and I saw that the contents of it's manifest were this: Manifest-Version: 1.0 Created-By: 1.6.0_18 (Sun Microsystems Inc.) Why was my manifest ignored? EDIT: I know that using the -e flag I can specify an entry

Resources referenced from the manifest cannot vary by configuration

不打扰是莪最后的温柔 提交于 2019-12-01 15:30:51
问题 When I want to insert the follow meta-tag: <meta-data android:name="com.android.systemui.action_assist_icon" android:resource="@mipmap/ic_launcher" /> I get the error message: Resources referenced from the manifest cannot vary by configuration (except for version qualifiers, e.g. -v21.) Found variation in hdpi, mdpi, xhdpi, xxhdpi, xxxhdpi How can I fix this? 回答1: Variation of resources in AndroidManifest.xml is detected as error. It may be ignored like this: <?xml version="1.0" encoding="utf