tag:blogger.com,1999:blog-5430866.post2586624137495507780..comments2024-01-02T08:54:14.406-05:00Comments on Peter Bromberg's UnBlog: Entityize and ASCIIfy your XML text stringspeterbromberghttp://www.blogger.com/profile/18173639411723574123noreply@blogger.comBlogger22125tag:blogger.com,1999:blog-5430866.post-34758577380202376242008-02-10T17:36:00.000-05:002008-02-10T17:36:00.000-05:00Andrei,Of course I could have merged the two metho...Andrei,<BR/>Of course I could have merged the two methods. But, because they do slightly different things, I decided that I might want to use only one or the other. This is one of those design decisions where "Whatever you think is right" - is right.peterbromberghttps://www.blogger.com/profile/18173639411723574123noreply@blogger.comtag:blogger.com,1999:blog-5430866.post-57512507961978328012008-02-10T16:15:00.000-05:002008-02-10T16:15:00.000-05:00I really don't understand the point of the "Entity...I really don't understand the point of the "Entityize" method which is nothing but a wrapper. Couldn't you have merged the two methods into one so instead of return sb.ToStrin() you put the SecurityElement.Escape(sb.ToString())?Andrei Rineahttps://www.blogger.com/profile/12001336023958029846noreply@blogger.comtag:blogger.com,1999:blog-5430866.post-46457162740401056062008-02-10T14:43:00.000-05:002008-02-10T14:43:00.000-05:00public static string ASCIIify2(string str) { ...public static string ASCIIify2(string str) {<BR/> StringBuilder sb = new StringBuilder();<BR/> foreach (char c in str)<BR/> if (c < (char)128) // is within ASCII charset<BR/> sb.Append(c);<BR/><BR/> return sb.ToString();<BR/> }BlackTigerXhttps://www.blogger.com/profile/05376454374607771065noreply@blogger.comtag:blogger.com,1999:blog-5430866.post-86998471050951651532008-02-08T06:42:00.000-05:002008-02-08T06:42:00.000-05:00Use the "Ask Dr. Dotnetsky" forum. It's a catch-al...Use the "Ask Dr. Dotnetsky" forum. It's a catch-all that is good for any subject.peterbromberghttps://www.blogger.com/profile/18173639411723574123noreply@blogger.comtag:blogger.com,1999:blog-5430866.post-27729553449612965412008-02-07T23:00:00.000-05:002008-02-07T23:00:00.000-05:00Peter, what's the name of the forum that would be ...Peter, <BR/>what's the name of the forum that would be appropriate for discussion of business model around eggheadcafe.com, traffic analysis etc?Dennis Gorelikhttps://www.blogger.com/profile/17700219093521377626noreply@blogger.comtag:blogger.com,1999:blog-5430866.post-38928133802002626172008-02-07T20:44:00.000-05:002008-02-07T20:44:00.000-05:00Dennis, I am not in the least bit offended about y...Dennis, <BR/>I am not in the least bit offended about your comments, in fact they made me think and I did some research and have a new post on the subject. However, I think a better place to conduct a conversation would be the forums at eggheadcafe.com - that's why we have them.peterbromberghttps://www.blogger.com/profile/18173639411723574123noreply@blogger.comtag:blogger.com,1999:blog-5430866.post-1402885658903380972008-02-07T20:30:00.000-05:002008-02-07T20:30:00.000-05:00Peter, I'm trying this conversation (and most of m...Peter, I'm trying this conversation (and most of my other conversations) into source of valuable insights.<BR/><BR/>But if you prefer to strictly stay on original topic -- I cannot force you to change.<BR/><BR/>Sorry that you perceive my comments as "shooting match". They are not.Dennis Gorelikhttps://www.blogger.com/profile/17700219093521377626noreply@blogger.comtag:blogger.com,1999:blog-5430866.post-15596487302834384742008-02-07T19:45:00.000-05:002008-02-07T19:45:00.000-05:00Dennis,I don't want to get into a blog comments "s...Dennis,<BR/>I don't want to get into a blog comments "shooting match", which apparently is what you seem to want to turn this into. I value your comments, as long as they are on topic.peterbromberghttps://www.blogger.com/profile/18173639411723574123noreply@blogger.comtag:blogger.com,1999:blog-5430866.post-868253985591067362008-02-07T18:50:00.000-05:002008-02-07T18:50:00.000-05:00Peter,Would you agree that any development activit...Peter,<BR/><BR/>Would you agree that any development activity should be considered within the context of business use?<BR/><BR/>I think anything that helps to pick better web site development strategy is useful. <BR/>I pay lots of attention to how Google does business/technology. In part, because Google is so popular.<BR/><BR/>Regarding Alexa -- as far as I know -- their data is not reliable. I use Alexa only when I want to look at some traffic data that happened more than half a year ago.Dennis Gorelikhttps://www.blogger.com/profile/17700219093521377626noreply@blogger.comtag:blogger.com,1999:blog-5430866.post-70324803261280767512008-02-07T12:04:00.000-05:002008-02-07T12:04:00.000-05:00Dennis,The post is about how to clean search queri...Dennis,<BR/>The post is about how to clean search queries, not tit-for-tat "my site is better than yours" type of stuff. <BR/><BR/>If you plug your website into Alexa's comparison graph, it doesn't even show up on the chart. <BR/><BR/>I certainly wish you good luck with it though, looks like a good concept.peterbromberghttps://www.blogger.com/profile/18173639411723574123noreply@blogger.comtag:blogger.com,1999:blog-5430866.post-69221080888941979542008-02-07T11:00:00.000-05:002008-02-07T11:00:00.000-05:00Peter,Let's compare performance of our web sitesI ...Peter,<BR/><BR/><A HREF="" REL="nofollow">Let's compare performance of our web sites</A><BR/><BR/>I added <A HREF="http://ittyurl.net" REL="nofollow">ittyurl.net</A>, <A HREF="petesbloggerama.blogspot.com" REL="nofollow">petesbloggerama.blogspot.com</A> and my web site <A HREF="http://www.postjobfree.com" REL="nofollow">PostJobFree.com</A><BR/><BR/>Did I miss any of your important sites?<BR/><BR/>I and you created IttyUrl.net and PostJobFree.com at ~same time (~beginning of 2007).Dennis Gorelikhttps://www.blogger.com/profile/17700219093521377626noreply@blogger.comtag:blogger.com,1999:blog-5430866.post-85364406355866602472008-02-07T07:01:00.000-05:002008-02-07T07:01:00.000-05:00I only mentioned Mamma as an example, Dennis. We c...I only mentioned Mamma as an example, Dennis. We can each measure the popularity, ascent or decline of our own websites quite easily.peterbromberghttps://www.blogger.com/profile/18173639411723574123noreply@blogger.comtag:blogger.com,1999:blog-5430866.post-76826950985306253442008-02-06T21:26:00.000-05:002008-02-06T21:26:00.000-05:00I's like to note, that Mamma's popularity is on de...I's like to note, that Mamma's popularity is on decline.<BR/>If you want the same fate for your web sites -- you may follow their approach.Dennis Gorelikhttps://www.blogger.com/profile/17700219093521377626noreply@blogger.comtag:blogger.com,1999:blog-5430866.post-45826644547382429942008-02-06T20:05:00.000-05:002008-02-06T20:05:00.000-05:00I suggest you look at search engines like Mamma's ...I suggest you look at search engines like Mamma's info page:<BR/><BR/>http://www.mamma.com/info/help/tips.html#3<BR/><BR/>to make your own assessment about "content duplication".<BR/><BR/>There are at least a dozen others like this one that have been operating for years.peterbromberghttps://www.blogger.com/profile/18173639411723574123noreply@blogger.comtag:blogger.com,1999:blog-5430866.post-1620887923799452062008-02-06T19:39:00.000-05:002008-02-06T19:39:00.000-05:001) Do you include search results of only the most ...1) Do you include search results of only the most popular queries into Google site maps?<BR/><BR/>2) Isn't it content duplication?Dennis Gorelikhttps://www.blogger.com/profile/17700219093521377626noreply@blogger.comtag:blogger.com,1999:blog-5430866.post-84025475927468947142008-02-06T15:50:00.000-05:002008-02-06T15:50:00.000-05:00By "Count" I meant the number of times that query ...By "Count" I meant the number of times that query was requested by visitors, not the count of search results. My bad, should have been more specific.<BR/><BR/>I generate standard xml sitemaps so the search engines will index my search results as if they were pages and therefore these pages will come up in a search on a big 4 search engine, I will get traffic, and people will click on my ads. Your basic Capitalism!peterbromberghttps://www.blogger.com/profile/18173639411723574123noreply@blogger.comtag:blogger.com,1999:blog-5430866.post-23609817730419220902008-02-06T14:14:00.000-05:002008-02-06T14:14:00.000-05:00Peter, Do you mean this:"in order to compute count...Peter, <BR/>Do you mean this:<BR/>"in order to compute count statistics and also to generate a standard xml sitemap for the search engines to nibble on."?<BR/><BR/>1) Why not simply save "count" results that you've got when you executed query for the first time?<BR/><BR/>2) Why do you generate "standard XML sitemap" based on _users_ search queries?Dennis Gorelikhttps://www.blogger.com/profile/17700219093521377626noreply@blogger.comtag:blogger.com,1999:blog-5430866.post-73519009199160848552008-02-06T14:07:00.000-05:002008-02-06T14:07:00.000-05:00think you are referring to a generic "real search ...think you are referring to a generic "real search engine" query, my search "engine" accepts anything. But sure, you could certainly use Regex if it suits your fancy. Regarding why I store the search queries in the database, I think the post already explains that. It's in the first paragraph.peterbromberghttps://www.blogger.com/profile/18173639411723574123noreply@blogger.comtag:blogger.com,1999:blog-5430866.post-63837294219288330852008-02-06T13:59:00.000-05:002008-02-06T13:59:00.000-05:00Peter,I don't understand, what's the purpose of ke...Peter,<BR/><BR/>I don't understand, what's the purpose of keeping users' search queries in database?Dennis Gorelikhttps://www.blogger.com/profile/17700219093521377626noreply@blogger.comtag:blogger.com,1999:blog-5430866.post-31015547928432157082008-02-06T13:57:00.000-05:002008-02-06T13:57:00.000-05:00Peter,In search query only letters, digits, spaces...Peter,<BR/>In search query only letters, digits, spaces, dashes, and quotes are allowed, right?<BR/>Why not use Regex for replacement?<BR/>Something like that:<BR/>--- C# code ---<BR/>string cleanedSearchQuery = System.Text.RegularExpressions.Regex.Replace(rawQuery, @"[^\w\s\-"]+", " ").Trim();<BR/>---------------Dennis Gorelikhttps://www.blogger.com/profile/17700219093521377626noreply@blogger.comtag:blogger.com,1999:blog-5430866.post-12094090237720564342008-02-06T11:59:00.000-05:002008-02-06T11:59:00.000-05:00Thanks! My latest method is called "FixWindowsUpda...Thanks! My latest method is called "FixWindowsUpdateAndHaveABeer". Unfortunately, I can't get it to work (the update part, that is).peterbromberghttps://www.blogger.com/profile/18173639411723574123noreply@blogger.comtag:blogger.com,1999:blog-5430866.post-35242556363698719362008-02-06T11:02:00.000-05:002008-02-06T11:02:00.000-05:00I really dig your concoctive verbs :)I really dig your concoctive verbs :)Anonymousnoreply@blogger.com