digg

Unknown error using Digg API and URI handler (silverlight)

百般思念 提交于 2020-01-06 14:11:06
问题 For class we have to follow a tutorial to create a silverlight website that searches DIGG for a given topic. (Using this tutorial as a base: http://weblogs.asp.net/scottgu/archive/2010/02/22/first-look-at-silverlight-2.aspx) We have to use the following code to fetch the information from DIGG. private void buttonSearch_Click(object sender, RoutedEventArgs e) { string topic = textboxSearchTopic.Text; WebClient digg = new WebClient(); digg.DownloadStringCompleted += new

Digg-like search result ranking with Lucene / Solr?

ε祈祈猫儿з 提交于 2019-12-08 03:06:04
问题 I'm using Solr for search. I have documents that have an integer field " popularity ". I want to rank results by a combination of normal fulltext search relevance and popularity. It's kinda like search in digg - result ranking is based on the search relevance as well as how many digs a posting has. I don't have any specific ranking algorithm in mind. But is this something that can be done with solr? 回答1: Solr's FunctionQuery is exactly what you need: http://wiki.apache.org/solr/FunctionQuery

One-time FancyBox popup like on Digg.com

筅森魡賤 提交于 2019-12-06 14:56:08
问题 How can I go about actioning a FancyBox popup that notifies new users of a quick sign-up button (or whatever is chosen) like on Digg.com ... and as with Digg just one time. I really have no experience with cookies but already have FancyBox running in other parts of the website, so the basis is already there. I require the popup to appear on page load. Any pointers very happily received! 回答1: My eventual solution uses the Reveal Modal plugin (click here) to trigger inline to 'fire' on page

Digg-like search result ranking with Lucene / Solr?

别来无恙 提交于 2019-12-06 13:30:01
I'm using Solr for search. I have documents that have an integer field " popularity ". I want to rank results by a combination of normal fulltext search relevance and popularity. It's kinda like search in digg - result ranking is based on the search relevance as well as how many digs a posting has. I don't have any specific ranking algorithm in mind. But is this something that can be done with solr? Solr's FunctionQuery is exactly what you need: http://wiki.apache.org/solr/FunctionQuery 来源: https://stackoverflow.com/questions/1996668/digg-like-search-result-ranking-with-lucene-solr

One-time FancyBox popup like on Digg.com

China☆狼群 提交于 2019-12-04 21:04:16
How can I go about actioning a FancyBox popup that notifies new users of a quick sign-up button (or whatever is chosen) like on Digg.com ... and as with Digg just one time. I really have no experience with cookies but already have FancyBox running in other parts of the website, so the basis is already there. I require the popup to appear on page load. Any pointers very happily received! My eventual solution uses the Reveal Modal plugin ( click here ) to trigger inline to 'fire' on page load using the modified following code for the popup to be displayed only once every three days. Remember

How does the DiggBar work?

为君一笑 提交于 2019-11-30 02:30:27
How does the DiggBar work? I'm trying to make an ASP.NET MVC DiggBar clone just for learning purposes and does anyone have a suggestion on how to specify the url of the content for the lower frame? How would you go about constructing that in MVC? Also, I know that it is an iFrame, but how do they position it so regardless of scrolling it stays positioned at the top? Is it CSS magic? Edit: I'm not interested in whether or not you like them. I am not putting one into production and I'm not asking for whether they are good design or not. I simply ~want~ to make one. I find the DiggBar useful and

How does the DiggBar work?

喜夏-厌秋 提交于 2019-11-29 00:09:48
问题 How does the DiggBar work? I'm trying to make an ASP.NET MVC DiggBar clone just for learning purposes and does anyone have a suggestion on how to specify the url of the content for the lower frame? How would you go about constructing that in MVC? Also, I know that it is an iFrame, but how do they position it so regardless of scrolling it stays positioned at the top? Is it CSS magic? Edit: I'm not interested in whether or not you like them. I am not putting one into production and I'm not

How does the DiggBar dynamically resize its iframe's height based on content not on their domain?

笑着哭i 提交于 2019-11-28 16:55:24
Someone has already asked, How does the DiggBar work? in a previous question. While someone provided a decent answer it didn't address one thing: How does Digg dynamically resize their iframe's height, based on the content of a site across a different domain? There are plenty of questions and answers here on SO for dynamically adjusting an iframes height based off content (using javascript) as long as the framed url is on your own domain. However, Digg seems to have solved this problem with websites of any domain. Do any SO web programmers have any idea how they accomplished that? Note: The

How does the DiggBar dynamically resize its iframe's height based on content not on their domain?

浪子不回头ぞ 提交于 2019-11-27 10:02:55
问题 Someone has already asked, How does the DiggBar work? in a previous question. While someone provided a decent answer it didn't address one thing: How does Digg dynamically resize their iframe's height, based on the content of a site across a different domain? There are plenty of questions and answers here on SO for dynamically adjusting an iframes height based off content (using javascript) as long as the framed url is on your own domain. However, Digg seems to have solved this problem with