favicon

C# WPF - Application Icon + ShowInTaskbar = False

风格不统一 提交于 2019-12-05 04:23:20
I've created a custom layered WPF window with the following properties: AllowsTransparency = True ShowInTaskbar = False Background = Transparent Topmost = True Icon = "Icon.ico" I've added Icon.ico under "Project Properties"->"Application" tab. The icon displays as the default WPF window icon if ShowInTaskBar is false, but displays correctly if ShowInTaskbar is true. We want the icon to show up correctly in the Alt+Tab menu. How can we achieve this and have ShowInTaskbar = False? There are several problems here. First of all, when ShowInTaskbar property is set to false, an invisible window

Set favicon in HTTP server?

删除回忆录丶 提交于 2019-12-05 03:14:22
问题 I'm using Node.js HTTP module to create a server, and I'm wondering, how do I set the favicon (shortcut icon) in a HTTP server? I searched this up, and I saw that Express can set the favicon, but I didn't find any HTTP solution. How do I accomplish this? (Without migrating to Express) 回答1: It boils down to this: If the requested path is that of your favicon, serve it. Otherwise, do whatever you're doing with the requests. Unless you change the path to your favicon in an HTML document,

Remove Etag from favicon.ico

旧街凉风 提交于 2019-12-05 01:27:58
问题 using yslow on a project I am experiencing a "problem" I can not solve. Yslow keeps complaining: There is 1 component with misconfigured ETags http://www.domain.com/favicon.ico I have the following in my .htaccess file # Add Proper MIME-Type for Favicon AddType image/x-icon .ico # Enable Apache's mod_expires Module ExpiresActive On ExpiresByType image/x-icon "access plus 6 month" <ifModule mod_headers.c> Header unset ETag </ifModule> FileETag None Does anybody have an idea how to fix it? 回答1:

网站的favicon图标

陌路散爱 提交于 2019-12-04 21:48:11
网站的favicon图标 favicon.ico一般用于作为缩略的网站标志,它显示在浏览器的地址栏或者标签上。 制作favicon图标 把图片转换为png图片 把png图片转换为ico图标,这需要借助第三方转换网站,例如比特虫:http://www.bitbug.net/ favicon图标放到网站根目录下 HTML页面引入favicon图标 在HTML页面里面的<head> </head> 元素之间引入代码 <link rel="shortcut icon" type="image/x-icon" href="favicon.ico"/> 来源: https://www.cnblogs.com/SSPOFA/p/11885794.html

Retrieving favicon as icon instead of image

旧巷老猫 提交于 2019-12-04 20:26:36
I used the favicon-code I found here to retrieve the favicon of the site loaded in the browser element. I want to use this favicon as the icon of my Windows Form. Thanks to JP Hellemons this code works: private void browser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { this.Icon = favicon(GetActiveBrowser().Url); } private WebBrowser GetActiveBrowser() { return (WebBrowser)tabs.SelectedTab.Controls[0]; } private Icon favicon(Uri url) { WebRequest request = (HttpWebRequest)WebRequest.Create("http://" + url.Host + "/favicon.ico"); Bitmap bm = new Bitmap(32, 32);

Trouble on retrieving 'favicon.ico' images using AJAX HTTP requests

心不动则不痛 提交于 2019-12-04 20:24:18
I am using Ruby on Rails v3.0.9 and jQuery 1.6. I am trying to retrieve and display the favicon image from some web sites. For instance, in order to do that for a single web site I am using the following code: $jQ.ajax({ type: 'GET', url: 'http://www.facebook.com/favicon.ico', data: '', error: function(jqXHR, textStatus, errorThrown) { $jQ('#facebook_favicon').replaceWith('ERROR'); }, success: function(data, textStatus, jqXHR) { $jQ('#facebook_favicon').replaceWith("<img width='16px' height='16px' src='http://www.facebook.com/favicon.ico' />"); } }); I use the above code that performs an HTTP

Nop 源码分析 十三 插件

泄露秘密 提交于 2019-12-04 15:06:10
前面分析太细了。。回到WidgetController的WidgetsByZone方法,大体意思是: 获得并缓存名称为 string widgetZone 的 List<RenderWidgetModel>() 。 其中RenderWidgetModel记录的路由信息通过插件的GetDisplayWidgetRoute方法获得 如下: /// <summary> /// Gets a route for displaying widget /// </summary> /// <param name="widgetZone">Widget zone where it's displayed</param> /// <param name="actionName">Action name</param> /// <param name="controllerName">Controller name</param> /// <param name="routeValues">Route values</param> public void GetDisplayWidgetRoute(string widgetZone, out string actionName, out string controllerName, out RouteValueDictionary

UIImage: How to get website tab icon

孤者浪人 提交于 2019-12-04 13:19:32
问题 I'm developing an RSS Reader and I need to get the favicon for each feed. For example, if my feed is google.com, I'd like to get the "G" icon and put it into a UIImage or something. Any ideas on how to achieve this? 回答1: The easiest way to go would be to use Google: NSString *myURLString = @"http://www.google.com/s2/favicons?domain=www.stackoverflow.com"; NSURL *myURL=[NSURL URLWithString: myURLString]; NSData *myData=[NSData dataWithContentsOfURL:myURL]; UIImage *myImage=[[UIImage alloc]

Setting a single favicon for the entire website

℡╲_俬逩灬. 提交于 2019-12-04 08:25:30
问题 Currently I'm using this bit of code to add a favicon to a website: <link rel="shortcut icon" href="https://www.mysite.co.uk/images/favicon/favicon1.ico" /> However, this code must be added to each HTML page. Does anyone know how to set a global favicon? Everywhere I've looked tells me I must add it to each page. UPDATE: Chrome searches for a favicon.ico file in the root directory. Firefox needs this on each page: <link rel="icon" type="image/png" href="/favicon.png" /> 回答1: For future

Google Chrome Uses Wrong Size of Favicon

北慕城南 提交于 2019-12-04 07:48:20
问题 When I create a a ICO file on the Mac using 'Icon Composer' it allows specifying five images (16x16, 24x24, 32x32, 48x48, 256x256). If I specify a 16x16 and 32x32 Google Chrome (Mac OS X) use the 32x32 image as the icon that appears next to the name on the tabs and under the favourites (it is resized to 16x16). This causes the icon to look blurry. Am I creating my favicon.ico correctly? Do I need to do anything else to tell the browser to use the 16x16 image? I currently have: <head> <link