manifest

Chrome Extension Send Message From Background.js to Content Script

拟墨画扇 提交于 2019-12-03 04:55:55
I have read the documentation on how to do Send Message From background javascript file(main.js) to Content Script (content.js) but I cannot get the onMessage to open my alert. Manifest.json { "name": "Example", "version": "1.0.1", "manifest_version" : 2, "description": "Example Description", "background" : { "scripts" : ["main.js"] }, "page_action" : { "default_icon": { "19": "icons/19.png", "38": "icons/38.png" }, "default_title" : "Example Title" }, "content_scripts": [{ "matches": ["<all_urls>"], "js": ["lib/jquery-1.8.3.min.js","scripts/content.js"], "run_at": "document_idle", "all_frames

Is there a way to use a CDN (for jQuery) and have an offline Web app (via HTML5 manifests)?

拈花ヽ惹草 提交于 2019-12-03 03:19:49
问题 I'm beginning to look at HTML5s ability to allow for offline Web applications. A while back I found that using a CDN worked well for my applications, so I've been sticking with them, mostly just for jQuery. However, it doesn't appear that manifest files allows cross-domain resources to be cached. At this point I've been using the catch-all manifest as described by the relevant Dive Into HTML5 tutorial. My jQuery is pulled in similar to what's defined in the HTML5 Boilerplate. I'd like to be

Working with Visual Studios C++ manifest files

女生的网名这么多〃 提交于 2019-12-03 03:08:16
问题 I have written some code that makes use of an open source library to do some of the heavy lifting. This work was done in linux, with unit tests and cmake to help with porting it to windows. There is a requirement to have it run on both platforms. I like Linux and I like cmake and I like that I can get visual studios files automatically generated. As it is now, on windows everything will compile and it will link and it will generate the test executables. However, to get to this point I had to

Difference Between uses-permission-sdk-23 and uses-permission?

北战南征 提交于 2019-12-03 02:28:41
I just come to know newer tag in android manifest file called " uses-permission-sdk-23 " <uses-permission-sdk-23 android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.CAMERA" /> Can anybody please provide difference between this two? if the app is running on a device with SDK version 23 or higher. If the device is running SDK version 22 or lower when you update an app to include a new feature that requires an additional permission. If a user updates an app on a device that is running SDK version 22 or lower, the system prompts the user at install time to

Building and deploying dll on windows: SxS, manifests and all that jazz

假装没事ソ 提交于 2019-12-03 01:53:39
Since VS 2005, I see that it is not possible to simply build a dll against MS runtime and deploy them together ( http://www.ddj.com/windows/184406482 ). I am deeply confused by manifest, SxS and co: MSDN documentation is really poor, with circular references; specially since I am more a Unix guy, I find all those uninformative. My core problem is linking a dll against msvc9 or msvc8: since those runtime are not redistributable, what are the steps to link and deploy such a dll ? In particular, how are the manifest generated (I don't want mt.exe, I want something which is portable across

Android Studio - Action Bar remove

余生颓废 提交于 2019-12-02 19:15:52
I'm trying to remove/disable the ActionBar. I tried to put in the Manifest: <activity ... android:theme="@android:style/Theme.NoTitleBar" </activity> and it doesn't work. It doesn't remove the ActionBar. Please help me. Thanks. goonerDroid in your oncreate() method use this getActionBar().hide(); If your minSdkVersion is 10 or lower, instead use: getSupportActionBar().hide(); malamute84 I had this issue too. I went to styles.xml and changed parent="Theme.AppCompat.Light.DarkActionBar" to parent="Theme.AppCompat.Light.NoActionBar" and that removed it from all my activities. You can try this. It

Is it possible to load webfonts through the offline storage cache manifest?

泄露秘密 提交于 2019-12-02 19:13:56
I understand that I can import my fonts through html/css but I am wondering if this is a achievable approach. Thanks! Yes, if you add fonts to your manifest file they will be downloaded along with the rest of the files, and then be available offline. The fonts will need to be available from the same server where your offline app is, because you can't cache resources not on your domain. You couldn't cache a Google Web Font, for instance. I've been doing some testing on this, it seems fonts from Google are cached fine on Chrome and Opera, only Firefox has problems . The 'not on your domain'

STLPort编译过程及出错解决

孤人 提交于 2019-12-02 18:52:26
stlport编译问题: 运行configure.bat msvc8 进入build/lib目录,运行nmake clean install 编译过程会报错,_cstdlib.h文件中abs重定义,注释掉那一行代码再重新build,文件路径stlport\stl\_cstdlib.h 使用生成后的库时,运行报错,vs输出框如下内容。 LdrpWalkImportDescriptor() failed to probe .. stlportd.5.2.dll for its manifest, ntstatus 0xc000000d 解决办法: 编译stlport时关掉清单文件即可,方法如下,在vc-common.mak的LINK后面添加/MANIFEST:NO即可 E:\work\STLport-5.2.1\build\Makefiles\nmake\vc-common.mak LINK_cc_REL = $(LINK) /nologo /incremental:no /debug /pdb:$(PDB_NAME_OUT) $(LDFLAGS_REL) /MANIFEST:NO LINK_cc_DBG = $(LINK) /nologo /incremental:no /debug /pdb:$(PDB_NAME_OUT_DBG) $(LDFLAGS_DBG) /MANIFEST

Facebook profile images in spotify

喜你入骨 提交于 2019-12-02 17:02:10
问题 I want to display facebook profile pictures in my spotify app, but what urls should I allow in the manifest file? I know I can retrieve the images through http://graph.facebook.com/[user_id]/picture but that is just a redirect to the actual image. The image will still be blocked unless I allow it in the manifest file. I've only tested with 3 profiles so far and the images are located on these 2 servers. https://fbcdn-profile-a.akamaihd.net/ http://profile.ak.fbcdn.net/ I'm guessing there are

Is there a way to use a CDN (for jQuery) and have an offline Web app (via HTML5 manifests)?

对着背影说爱祢 提交于 2019-12-02 16:50:00
I'm beginning to look at HTML5s ability to allow for offline Web applications. A while back I found that using a CDN worked well for my applications, so I've been sticking with them, mostly just for jQuery. However, it doesn't appear that manifest files allows cross-domain resources to be cached. At this point I've been using the catch-all manifest as described by the relevant Dive Into HTML5 tutorial . My jQuery is pulled in similar to what's defined in the HTML5 Boilerplate . I'd like to be able to continue to serve jQuery from a CDN for online users, but perhaps have a local copy cached for