<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4566770318113997960</id><updated>2012-01-07T17:39:29.096-08:00</updated><category term='orderby'/><category term='sticky'/><category term='acrobat'/><category term='comment'/><category term='expression engine'/><category term='ee'/><category term='search'/><category term='virus'/><category term='worm'/><category term='hosting'/><category term='pmachine'/><category term='rank'/><category term='hacker'/><category term='network solutions'/><title type='text'>James-of-all-Trades</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jamesofalltrades.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4566770318113997960/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://jamesofalltrades.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>James of all Trades</name><uri>http://www.blogger.com/profile/03432642296521300817</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4566770318113997960.post-988063428745629231</id><published>2009-11-01T19:54:00.000-08:00</published><updated>2009-11-01T20:08:11.339-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='orderby'/><category scheme='http://www.blogger.com/atom/ns#' term='rank'/><category scheme='http://www.blogger.com/atom/ns#' term='ee'/><category scheme='http://www.blogger.com/atom/ns#' term='pmachine'/><category scheme='http://www.blogger.com/atom/ns#' term='search'/><category scheme='http://www.blogger.com/atom/ns#' term='expression engine'/><title type='text'>Adding Search Rank to your Expression Engine Search Module</title><content type='html'>Search Rank is as simple as counting the number of occurrences of the keyword terms in the result. Here are the changes to make to your mod.search.php file, briefly:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Add the case option in the orderby:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;case 'rank'                :    $end .= " ORDER BY occurrences ";&lt;br /&gt;  break;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Modify the query:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;$sql = "SELECT DISTINCT(t.entry_id), t.entry_id, t.weblog_id, t.forum_topic_id, t.author_id, t.ip_address, t.title, t.url_title, t.status, t.dst_enabled, t.view_count_one, t.view_count_two, t.view_count_three, t.view_count_four, t.allow_comments, t.comment_expiration_date, t.allow_trackbacks, t.sticky, t.entry_date, t.year, t.month, t.day, t.entry_date, t.edit_date, t.expiration_date, t.recent_comment_date, t.comment_total, t.trackback_total, t.sent_trackbacks, t.recent_trackback_date, t.site_id as entry_site_id,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                        w.blog_title, w.blog_name, w.search_results_url, w.search_excerpt, w.blog_url, w.comment_url, w.tb_return_url, w.comment_moderate, w.weblog_html_formatting, w.weblog_allow_img_urls, w.weblog_auto_link_urls, w.enable_trackbacks, w.trackback_use_url_title, w.trackback_field, w.trackback_use_captcha, w.trackback_system_enabled, &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                        m.username, m.email, m.url, m.screen_name, m.location, m.occupation, m.interests, m.aol_im, m.yahoo_im, m.msn_im, m.icq, m.signature, m.sig_img_filename, m.sig_img_width, m.sig_img_height, m.avatar_filename, m.avatar_width, m.avatar_height, m.photo_filename, m.photo_width, m.photo_height, m.group_id, m.member_id, m.bday_d, m.bday_m, m.bday_y, m.bio,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                        md.*,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                        wd.*,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                        (LENGTH(t.title) - LENGTH(REPLACE(LOWER(t.title), LOWER('".$DB-&gt;escape_str((sizeof($terms) == 1) ? $terms[0] : $this-&gt;keywords)."'), '')))/LENGTH('".$DB-&gt;escape_str((sizeof($terms) == 1) ? $terms[0] : $this-&gt;keywords)."') + (LENGTH(wd.field_id_1) - LENGTH(REPLACE(LOWER(wd.field_id_1), LOWER('".$DB-&gt;escape_str((sizeof($terms) == 1) ? $terms[0] : $this-&gt;keywords)."'), '')))/LENGTH('".$DB-&gt;escape_str((sizeof($terms) == 1) ? $terms[0] : $this-&gt;keywords)."') + (LENGTH(wd.field_id_2) - LENGTH(REPLACE(LOWER(wd.field_id_2), LOWER('".$DB-&gt;escape_str((sizeof($terms) == 1) ? $terms[0] : $this-&gt;keywords)."'), '')))/LENGTH('".$DB-&gt;escape_str((sizeof($terms) == 1) ? $terms[0] : $this-&gt;keywords)."') AS `occurrences`&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                FROM exp_weblog_titles        AS t&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                LEFT JOIN exp_weblogs         AS w  ON t.weblog_id = w.weblog_id &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                LEFT JOIN exp_weblog_data    AS wd ON t.entry_id = wd.entry_id &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                LEFT JOIN exp_members        AS m  ON m.member_id = t.author_id &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                LEFT JOIN exp_member_data    AS md ON md.member_id = m.member_id &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                WHERE t.entry_id IN (";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        foreach ($query-&gt;result as $row)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;            $sql .= $row['entry_id'].',';&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        $sql = substr($sql, 0, -1).') '.$end;        &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        return $sql;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Modify the query result:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;$query = $DB-&gt;query(preg_replace("/SELECT(.*?)\s+FROM\s+/is", "SELECT COUNT(*) AS count, COUNT(*) AS `occurrences` FROM ", $sql));&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Modify the language term for rank:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;'lang:rank            '                =&gt;    $LANG-&gt;line('search_rank'),&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;With the modified mod.search.php module in place, you will want to change your Search form input to "rank":&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;input name="orderby" value="rank" type="hidden"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;&amp;lt;input type="hidden" name="orderby" value="rank" /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;input name="orderby" value="rank" type="hidden"&gt;&lt;br /&gt;&lt;br /&gt;You'll be searching by rank in no time. Enjoy.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4566770318113997960-988063428745629231?l=jamesofalltrades.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jamesofalltrades.blogspot.com/feeds/988063428745629231/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4566770318113997960&amp;postID=988063428745629231' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4566770318113997960/posts/default/988063428745629231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4566770318113997960/posts/default/988063428745629231'/><link rel='alternate' type='text/html' href='http://jamesofalltrades.blogspot.com/2009/11/adding-search-rank-to-your-expression.html' title='Adding Search Rank to your Expression Engine Search Module'/><author><name>James of all Trades</name><uri>http://www.blogger.com/profile/03432642296521300817</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4566770318113997960.post-6100240335683646344</id><published>2008-12-10T06:22:00.000-08:00</published><updated>2008-12-10T06:28:43.195-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='comment'/><category scheme='http://www.blogger.com/atom/ns#' term='acrobat'/><category scheme='http://www.blogger.com/atom/ns#' term='sticky'/><title type='text'>Acrobat 9 Slow moving comments and stickies</title><content type='html'>I've found that even on our brand new computers, they are still not capable of quickly rendering the newly added transparency effect when moving sticky notes in Acrobat 9. Anytime a user wishes to reposition the detail box of an Acrobat Comment, they must wait for the effect to render and chase the mouse around the screen.&lt;br /&gt;&lt;br /&gt;Though searching through the software, I cannot find a way to disable the effect to resurrect the simple rectangle that was used in Acrobat 8.&lt;br /&gt;&lt;br /&gt;I also put in 2 request to Adobe support as of today. FYI, we are reviewing 32page PDFx1/a documents (&lt;25MB) and it happens with 1 sticky or 100 stickies just the same. The computers are new iMac 2GHz dual core with 2GB and 4GB configurations (all are affected).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4566770318113997960-6100240335683646344?l=jamesofalltrades.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jamesofalltrades.blogspot.com/feeds/6100240335683646344/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4566770318113997960&amp;postID=6100240335683646344' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4566770318113997960/posts/default/6100240335683646344'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4566770318113997960/posts/default/6100240335683646344'/><link rel='alternate' type='text/html' href='http://jamesofalltrades.blogspot.com/2008/12/acrobat-9-slow-moving-comments-and.html' title='Acrobat 9 Slow moving comments and stickies'/><author><name>James of all Trades</name><uri>http://www.blogger.com/profile/03432642296521300817</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4566770318113997960.post-1465587809352615169</id><published>2008-07-22T20:04:00.000-07:00</published><updated>2008-07-22T20:12:25.635-07:00</updated><title type='text'>Removing the alenaprosti worm From your Infected Files on Network Solution's Host</title><content type='html'>I suppose giving light on how one needs to clean their files of the infection is in order.&lt;br /&gt;&lt;br /&gt;First, check your .htaccess for a rewrite rule directing requests of "alenaprosti" to a folder on your virtual host. Mine was a folder labeled "29". Delete this folder and all contents, and remove the rewrite rule from your .htaccess file.&lt;br /&gt;&lt;br /&gt;Next, check all index.html[php][cgi][shtml][etc...] files for code matching the regular expression &amp;lt;ul style=\"display:none;\"&amp;gt;.*&amp;lt;/ul&amp;gt; and delete it from each file.&lt;br /&gt;&lt;br /&gt;Now, do a Google site search for "alenaprosti" on your domain. For example, search the following: "alenaprosti site:mydomain.com". Using each of the entries, visit the Google Webmasters site at www.google.com/webmasters/ and submit URL removals for each of the results. It wouldn't hurt to add a disallow for "alenaprosti" in your robots.txt file, either.&lt;br /&gt;&lt;br /&gt;This should work in most instances, but until Network Solutions fixes their security leak, be prepared to do it all over again in a month.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4566770318113997960-1465587809352615169?l=jamesofalltrades.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jamesofalltrades.blogspot.com/feeds/1465587809352615169/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4566770318113997960&amp;postID=1465587809352615169' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4566770318113997960/posts/default/1465587809352615169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4566770318113997960/posts/default/1465587809352615169'/><link rel='alternate' type='text/html' href='http://jamesofalltrades.blogspot.com/2008/07/removing-alenaprosti-worm-from-your.html' title='Removing the alenaprosti worm From your Infected Files on Network Solution&apos;s Host'/><author><name>James of all Trades</name><uri>http://www.blogger.com/profile/03432642296521300817</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4566770318113997960.post-7724936892350261598</id><published>2008-07-22T19:27:00.000-07:00</published><updated>2008-07-23T06:22:11.619-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virus'/><category scheme='http://www.blogger.com/atom/ns#' term='hacker'/><category scheme='http://www.blogger.com/atom/ns#' term='worm'/><category scheme='http://www.blogger.com/atom/ns#' term='network solutions'/><category scheme='http://www.blogger.com/atom/ns#' term='hosting'/><title type='text'>Network Solutions Hosting Server has a Worm</title><content type='html'>After many recent back-and-forth emails with Network Solution's Customer no-Service Department, it became clear to me that one of their main hosting servers is infected with a worm and HUNDREDS of sites are now infected as a result.&lt;br /&gt;&lt;br /&gt;Go ahead, do the search in Google for "alenaprosti". You'll be surprised at the number of infected sites.&lt;br /&gt;&lt;br /&gt;Network Solutions still has the nerve to tell me my "permissions settings are incorrect" when in fact it is their server that is infected. I sent them a list of about the first 70 sites from the Google results, of which 99% were on the server with IP 205.178.145.65.&lt;br /&gt;&lt;br /&gt;Are you one of the hundreds affected. I hope so - then we can revolt! I smell a lawsuit cooking already.&lt;br /&gt;&lt;br /&gt;&lt;a style="text-decoration:none;" href="http://digg.com/submit?phase=2&amp;amp;url=http://jamesofalltrades.blogspot.com/2008/07/network-solutions-hosting-server-has.html" title="Digg This Post"&gt;&lt;img src="http://digg.com/img/little-digg.gif" style="height:24px;border:none;margin-top:-8px;" align="texttop" alt="Digg It!" /&gt;Digg It!&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4566770318113997960-7724936892350261598?l=jamesofalltrades.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jamesofalltrades.blogspot.com/feeds/7724936892350261598/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4566770318113997960&amp;postID=7724936892350261598' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4566770318113997960/posts/default/7724936892350261598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4566770318113997960/posts/default/7724936892350261598'/><link rel='alternate' type='text/html' href='http://jamesofalltrades.blogspot.com/2008/07/network-solutions-hosting-server-has.html' title='Network Solutions Hosting Server has a Worm'/><author><name>James of all Trades</name><uri>http://www.blogger.com/profile/03432642296521300817</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>9</thr:total></entry></feed>
