avatar

ASP.net ashx handler not caching

时光毁灭记忆、已成空白 提交于 2019-12-10 11:47:33
问题 We recently installed Robohash as a great fallback for Gravatar: http://static2.scirra.net/avatars/128/5df4bf5d460c9497fdb35578e923ad1f.png As you can see robohashes are hilariously brilliant and served from our static domain. The URL is actually rewritten: <action type="Rewrite" url="gravatar.ashx?hash={R:2}&size={R:1}" appendQueryString="false" /> And in the same web.config file we have the cache profiles: <staticContent> <clientCache httpExpires="Sun, 29 Mar 2020 00:00:00 GMT"

ASP.net ashx handler not caching

走远了吗. 提交于 2019-12-08 10:00:33
We recently installed Robohash as a great fallback for Gravatar: http://static2.scirra.net/avatars/128/5df4bf5d460c9497fdb35578e923ad1f.png As you can see robohashes are hilariously brilliant and served from our static domain. The URL is actually rewritten: <action type="Rewrite" url="gravatar.ashx?hash={R:2}&size={R:1}" appendQueryString="false" /> And in the same web.config file we have the cache profiles: <staticContent> <clientCache httpExpires="Sun, 29 Mar 2020 00:00:00 GMT" cacheControlMode="UseExpires" /> </staticContent> <caching> <profiles> <add extension=".ashx" policy=

has chrome eliminated the classic avatar menu?

放肆的年华 提交于 2019-12-07 18:04:31
问题 Like many web developers, I maintain numerous profiles in Google Chrome so as to test web applications. When doing these tests, it is essential to rapidly determine which profile I am in when interacting with Chrome. I depended on the classic Chrome avatar menu to signal the current profile. For months now, Chrome has defaulted to a newer profile menu that only showed the current user's name in text (no avatar image). Until today, it was possible to go back to using the classic avatar menu by

XMPP Multi user chat setting avatar image for the group chat

与世无争的帅哥 提交于 2019-12-07 05:25:37
问题 I am developing an iOS application with chat features. I am using XMPP for that application. In XMPP Multi user chat, whether any feature is available to set avatar image or group image for the conference room like the one we do in whatsapp? I have checked XEP-0045 extension but it wasn't helpful, So I checked with Psi by creating conference rooms, I came to understand that the user has vcard so he can store his avatar image but the XMPP doesn't provide any vcards for the groups we create.

XMPP Multi user chat setting avatar image for the group chat

不打扰是莪最后的温柔 提交于 2019-12-05 08:53:36
I am developing an iOS application with chat features. I am using XMPP for that application. In XMPP Multi user chat, whether any feature is available to set avatar image or group image for the conference room like the one we do in whatsapp? I have checked XEP-0045 extension but it wasn't helpful, So I checked with Psi by creating conference rooms, I came to understand that the user has vcard so he can store his avatar image but the XMPP doesn't provide any vcards for the groups we create. Now I possibly understand why its not available. Yet I can't convince how whatsapp is able to achieve. I

Android第四十天

跟風遠走 提交于 2019-12-04 16:18:15
1、ListView分页加载 <1>分页的作用 (1)避免一次性加载过多内容时,造成内存溢出; (2)可以增强用户体验。 <2>实现思路 (1)当滚动到最后一条的时候,加载新数据; (2)适配器的数据源要进行累加:listDatas.addAll(list) (3)数据发生变化时,适配器及时通知:adapter.notifyDataSetChanged() (4)判断是否滚到了最后一行 if (firstVisibleItem + visibleItemCount == totalItemCount ) { isBottom = true; } <3>实例步骤 (1)模拟1000条数据,以分页方式显示; (2)使用BaseAdapter自定义适配器显示数据; (3)在ListView下方增加“显示更多”按钮以实现加载下一页数据; (4)ListView.setOnScrollListener()方法设置滚动事件监听器; (5)通过滚动事件监听器判断是否滚动到最底部,若在底部则显示“显示更多“按钮; (6)点击“显示更多”按钮,根据当前的页码与一页显示的记录数,加载数据; (7)将加载的数据追加到适配器的数据源中 2、AdapterView.OnItemClickListener 列表项点击事件监听器:onItemClick(AdapterView<?> parent, View

纯css实现瀑布流(multi-column多列及flex布局)

倖福魔咒の 提交于 2019-12-04 07:11:58
瀑布流的布局自我感觉还是很吸引人的,最近又看到实现瀑布流这个做法,在这里记录下,特别的,感觉flex布局实现瀑布流还是有点懵的样子,不过现在就可以明白它的原理了 1.multi-column多列布局实现瀑布流 先简单的讲下multi-column相关的部分属性 column-count设置列数 column-gap设置列与列之间的间距 column-width设置每列的宽度 还要结合在子容器中设置break-inside防止多列布局,分页媒体和多区域上下文中的意外中断 break-inside属性值 auto 指定既不强制也不禁止元素内的页/列中断。 avoid 指定避免元素内的分页符。 avoid-page 指定避免元素内的分页符。 avoid-column 指定避免元素内的列中断。 avoid-region 指定避免元素内的区域中断。 截取了部分,可自己填充 /* html文件 */ <!-- 使用multi-columns实现瀑布流 --> <div id="root"> <div class="item"> <img class="itemImg" src="../images/1.jpeg" alt=""/> <div class="userInfo"> <img class="avatar" src="../images/gift.png" alt=""/> <span

Python学习之路―2018/7/11

匿名 (未验证) 提交于 2019-12-02 22:56:40
Python学习之路―2018/7/10 login.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>博客开发系统</title> <link rel="stylesheet" href="/static/blog/css/bootstrap.min.css"> <link rel="icon" href="/static/blog/image/favicon.ico"> <style type="text/css"> body { background: url(../static/blog/image/bk.jpeg) no-repeat; background-size: 100%; overflow: hidden; } h3 { padding: 10px; border-bottom: 1px solid #ddd; } </style> </head> <body> <div class="row"> <div class="col-md-4 col-md-offset-4" style="margin-top: 100px">

Hadoop集群安全性:Hadoop中Namenode单点故障的解决方案及详介AvatarNode

孤街醉人 提交于 2019-11-29 19:11:37
正如大家所知,NameNode在Hadoop系统中存在单点故障问题,这个对于标榜高可用性的Hadoop来说一直是个软肋。本文讨论一下为了解决这个问题而存在的几个solution。 1. Secondary NameNode 原理:Secondary NN会定期的从NN中读取editlog,与自己存储的Image进行合并形成新的metadata image 优点:Hadoop较早的版本都自带,配置简单,基本不需要额外资源(可以与datanode共享机器) 缺点:恢复时间慢,会有部分数据丢失 2. Backup NameNode 原理:backup NN实时得到editlog,当NN宕掉后,手动切换到Backup NN; 优点:从hadoop0.21开始提供这种方案,不会有数据的丢失 缺点:因为需要从DataNode中得到Block的location信息,在切换到Backup NN的时候比较慢(依赖于数据量) 3. Avatar NameNode 原理:这是Facebook提供的一种HA方案,将client访问hadoop的editlog放在NFS中,Standby NN能够实时拿到editlog;DataNode需要同时与Active NN和Standby NN report block信息; 优点:信息不会丢失,恢复快(秒级) 缺点:Facebook基于Hadoop0.2开发的

XMPPFramework - How can I update my own avatar image?

女生的网名这么多〃 提交于 2019-11-29 02:37:41
I am developing an application in that I want to update my avatar image. I am following XEP-0153 guidelines to update my avatar image and I constructed an NSXMLElement correspond to the following code in XEP-0153 and sent that element through XMPPStream . <iq from='juliet@capulet.com' type='set' id='vc1'> <vCard xmlns='vcard-temp'> <PHOTO> <TYPE>image/jpeg</TYPE> <BINVAL> Base64-encoded-avatar-file-here! </BINVAL> </PHOTO> </vCard> </iq> The server responses the following error: <iq xmlns="jabber:client" type="error" id="vc1" to="vvreddy50@gmail.com/83557F96"> <vCard xmlns="vcard-temp"> <photo