gallery

一起谈.NET技术,详解Visual Studio 2010中的扩展管理器

感情迁移 提交于 2019-12-22 00:53:17
  扩展能够为核心应用程序提供附加的功能或者自定义设置。在很多应用程序中这都是很流行的,包括流行的web浏览器IE和Firefox、微软的Office、媒体播放器、Photoshop、Eclipse、Visual Studio等等。其中有些可能比较新奇,而针对开发工具——像Eclipse和Visual Studio——的扩展让开发者的生产力得到了显著提高。   Visual Studio早期的版本是构建在COM技术之上的。而Visual Studio的主要扩展方式插件是通过COM接口实现的。随着时间的变化,插件机制已经得到了改善。在2002年,随着Visual Studio .NET的发布,微软引入了.NET和COM之间的互操作性。在Visual Studio 2005中,插件支持使用XML的简化部署方式。之后不久,微软发布了Visual Studio SDK开发包,这是一种更为新式的机制,通过底层的API提供了与Visual Studio的IDE更深层次的整合。   随着时间的推移,Visual Studio扩展的部署技术也得到了改善。在Visual Studio 2005中引入了Visual Studio 内容安装器(Content Installer VSI),它可以用于部署宏、插件、工具箱控件、代码片段以及模板。而更广泛地用于应用程序安装的Windows安装包(MSI)

android: remove a view from a gallery

爷,独闯天下 提交于 2019-12-21 20:35:23
问题 I'm using a Gallery view in my app. The app is designed so that I can drag and drop a view from that Gallery. How can I remove the dragged view from the Gallery? 回答1: You remove it from the underlying adapter. If you do this correctly, the Gallery will refresh itself. Otherwise, call notifyDataSetChanged() on the adapter to trigger a Gallery update. 回答2: If you override ImageAdapter you can modify the contents at will by adding methods to delete or add items to your image list(s) or in the

Smallest jQuery lightbox script

烂漫一生 提交于 2019-12-21 12:25:28
问题 What's the smallest lightbox plugin for jQuery (in terms of size)? Something close to Fancybox, but smaller :) 回答1: I have used this sometime ... http://www.digitalia.be/software/slimbox2 It's only 4K . 回答2: I wrote a low-level jQuery lightbox script called Nitelite : https://github.com/premasagar/nitelite (it's 1.4KB when minified and gzipped) It is the kind of thing that can be either used on its own, or to build more feature-rich lightbox plugins. It's been used in production on a couple

Thumbnail slider in toolbar like iPad Photos app

ⅰ亾dé卋堺 提交于 2019-12-21 06:55:17
问题 I would like to put thumbnails in the toolbar like the Photos app. Like the screenshot on the left: (source: apple.com) Is there is a built-in control to do this, or do I have to implement it from scratch? If the answer is from scratch, any tips? 回答1: This would be a control you'd have to write yourself. I'm not what the best approach would be, but I think I'd go with subclassing a UISlider, drawing the array of images next to each other to create the track, and then using the current image

Android pick image from gallery not working (Android 6.0 & Android 5.1.1)

拈花ヽ惹草 提交于 2019-12-21 05:22:08
问题 I'm using the code below to pick an image file from device gallery: First I call this piece of code: Intent i = new Intent(); i.setType("image/*"); i.setAction(Intent.ACTION_GET_CONTENT); startActivityForResult(Intent.createChooser(i, "Select Picture"), RESULT_LOAD_IMAGE); This is my onActivityResult method: @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == RESULT_LOAD_IMAGE &&

Unpacking the update… Could not create directory. Wordpress

折月煮酒 提交于 2019-12-20 10:36:40
问题 When I instal nextgen-gallery plugins. This error message appears Downloading update from https://downloads.wordpress.org/plugin/nextgen-gallery.zip… Unpacking the update… Could not create directory. How can I fix this problem ? 回答1: This is a permissions issue. Ensure the directory is writable by apache. Plugins are unpacked into the wp-content/plugins directory, so I would first attempt writing to the directory as apache: sudo -u apache touch /path/to/wp-content/plugins/test.txt Set

How to list all files inside a directory including sub-directories efficiently?

断了今生、忘了曾经 提交于 2019-12-20 05:45:08
问题 I'm working on a gallery app which displays all the images in a phone or a pen-drive. I successfully managed to list all the images and displays it into the app. But I think it is pretty slow. I'm using Depth First Search technique inside an AsyncTask . So is there any other method which can be used inside AsyncTask which is much faster. Here root is a DocumentFile which is made from a tree URI. Here is the code I've used. public class ImageBackgroundTask extends AsyncTask<Object, Object,

swift can not save .m3u8 file to gallery

我怕爱的太早我们不能终老 提交于 2019-12-20 03:52:20
问题 Im using this below method to download and save my video to gallery, with .mp4 it's work normally, but when change to .m3u8 it's always fail. func downloadVideoLinkAndCreateAsset(_ videoLink: String,_ fileName : String) { // use guard to make sure you have a valid url guard let videoURL = URL(string: videoLink) else { return } guard let documentsDirectoryURL = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first else { return } let fileNameToSave = "CiviX_HistoryVideo_

Obj-C Check if image already exists in Photos gallery

本秂侑毒 提交于 2019-12-20 02:34:09
问题 In my app I have to implement save image feature. I have managed saving like this: UIImage *image = [UIImage imageNamed:actualBackground]; UIImageWriteToSavedPhotosAlbum( image, self, @selector(thisImage:hasBeenSavedInPhotoAlbumWithError:usingContextInfo:), nil); /* ... */ - (void)thisImage:(UIImage *)image hasBeenSavedInPhotoAlbumWithError:(NSError *)error usingContextInfo:(void *)ctxInfo { if (!error){ UIImagePickerController *picker = [[UIImagePickerController alloc] init]; [self

saving image picked from gallery for future use

心不动则不痛 提交于 2019-12-20 02:29:32
问题 Hey i have been looking for a while now. the following code picks the image from the android gallery and shows it in an imageView. but heres the thing, everytime the app is closed and restarted the has to be picked again. i would like to know how i can edit the following to save the image for good in the imageView. @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == RESULT_LOAD