January

2/6/12 by AC
  RT links for My Photos
    Looking at how the RT links work on my Rivers.
    Looks like Javascript handles all the work
          function setCookie (cookieName, value, exdays) {
            var exdate = new Date ();
            exdate.setDate (exdate.getDate () + exdays);
            var cookieValue = escape (value) + ((exdays == null) ? "" : "; expires="+exdate.toUTCString());
            document.cookie = cookieName + "=" + cookieValue;
            }
          function getCookie (cookieName) {
            var i,x,y,ARRcookies=document.cookie.split(";");
            for (i=0;i<ARRcookies.length;i++) {
              x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
              y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
              x=x.replace(/^\s+|\s+$/g,"");
              if (x==cookieName) {
                return unescape(y);
                }
              }
            }
          function sendToLinkblog(description, link, title) {
            var linkBlogServer=getCookie("linkWeblogServerDomain");
            if (linkBlogServer===null || linkBlogServer=="") {
              linkBlogServer=prompt("The domain of your linkblog server:","");
              if (linkBlogServer!=null && linkBlogServer!="") {
                setCookie("linkWeblogServerDomain",linkBlogServer,365);
                }
              }
            window.location = "http://" + linkBlogServer + "/?link=" + link + "&title=" + title + "&description=" + description
            }
          function setLinkblogServer () {
            var server = getCookie ("linkWeblogServerDomain");
            if (server == "null") {
              server = ""
              }
            var linkBlogServer = prompt ("The domain of your linkblog server:", server);
            setCookie ("linkWeblogServerDomain", linkBlogServer, 365);
            }
          .spanCursorIsPointer {
            cursor: pointer;
            float: none;
            margin-left: 0;
            }
    Thinking it would be very cool to have an RT link on every Photo page generated by the viewPhotoCallback
    Thsi way I can snap a picture, upload to flickr from my phone, then easily post to my linkblog (which flows through to twitter) just with a click on an RT link from the photo poage on my photos site.
    This would be nice for each post on my Scripting2 based blog as well.
    Digging into the code..
2/5/12 by AC
  Test code for new yacy search page
    yacy search
        YaCy Search Portal using a Load Balancer over Distributed Peers
      <!-- (C), Architecture and Realisation: Michael Peter Christen; Contact: mc anomic.de -->
          $(document).ready(function() {
          $('#search').autocomplete('/suggest.json', {parse: opensearch, delay: 0, selectFirst: false, scroll: false, max: 20});
            function opensearch(data) {
              var parsed = [];
              data = eval('({"suggest":' + data + '})');
              for (var i = 0; i < data.suggest[1].length; i++) {
                var row = data.suggest[1][i];
                if (row) {
                parsed[parsed.length] = {
                data: [row],
                value: row,
                result: row
                };
                };
              };
              return parsed;
            };
          });
        Search the distributed YaCy Network

      This is just a demo with limited functionality, not the YaCy search portal!
      It may not even work because of the load on this page. You must install your own peer of YaCy to get the full YaCy experience!

      The search results will be provided by distributed peers from private computers. Actually from computers like yours, not from a company or a single organisation.
      To get the full YaCy experience, please install YaCy on your computer. Your search portal is on your peer.
      Because there is so much load on this page we need more people who provide their peer as portal
      It works like this: there are only a few peers which provide search 'as face to the network' to this portal, but if we want to scale we need more: YOU can be one of that search providers.
      Just post your peer address:port (with a static IP or host name!) into our forum topic about this portal and we will add your peer to this search portal!
      YOU will then become the search engine for EVERYONE ELSE through this portal!
      Join us! Download your Peer from the YaCy Home Page
      Comment from Chris Pirillo from Lockergnome about YaCy:
      <iframe title="YouTube video player" class="youtube-player" type="text/html"
      width="640" height="390" src="http://www.youtube.com/embed/wDaPNCIpu28"
      frameborder="0" allowFullScreen>
      We thank the company EUserv to us that server is free of charge.
      <!--
        if (!document.phpAds_used) document.phpAds_used = ',';
        phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
        document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
        document.write ("http://ad.kundencontroller.de/v2/adjs.php?n=" + phpAds_random);
        document.write ("&what=zone:10");
        document.write ("&exclude=" + document.phpAds_used);
        if (document.referrer)
          document.write ("&referer=" + escape(document.referrer));
        document.write ("'><" + "/script>");
      //-->
  Changed the parameters for my YaCy homepage
    Sets the default search to look in local index first, trigger a network peer search and thus not crash the server on a tough multi word query
    Code
      <iframe name="target"
        src="http://acyacy.com:8090/index.html?&display=1&searchoptions=1&former=&contentdom=text&resource=local"
        width="100%"
        height="1410"
        frameborder="0"
        scrolling="auto"
        id="target">
2/4/12 by AC
  New App tp restart a hung server
    A genius little program that will check to see if YaCy is 'stuck' or has crashed on a windows machine and will automaticall restart it!
    Thsi also works for the OPML Editor, imho better than flaunch.exe, since it also will kill and restart a 'hung' process.
    Note for use with YaCy: it must start the .bat file in the YaCy directory.
    In order for that file to execute properly, a line must be added to the .bat file that changes to the directory where the bat file is located.
    I might even use this for my OPML Editor installs.
    An alternative I might want to try one day, that has email alerts
  ACYACY Does RSS
    I wrote a short blogpost about the Facebook outage and wanted to include a list of links.
    I did a search on ACYACY and discovered that it generates a feed for each search.
    I created an rss outline and configured the feed to it (adding the xmlUrl attribute on the server) to get the results in a nice page
    Supernice that it will add a 'cache-only' parameter in the command so the server isn't doing full on network searches each time the feed is parsed.
    Results are thus not live, but since the server now 'knows' to go look for these search terms it is continuously updating it's local database so searches are fresh, just delayed a bit.
2/2/12 by AC
  ACYACY Search Win!
    I directed my YaCy search peer (which I'm calling ACYAC) to index Dave's worknotes, as I often need to find something specific.
    Today I wanted to find an entry that related to the world outline caching function being turned off. Here's the results from ACYACY. Top Hit!
    Now a Google search for the past week (my search takes the 'RECENT' parameter to achieve this) What?! No Hits!
    This is definitely getting interesting.
2/1/12 by AC
  More YaCy
    Day two of using YaCy as my search engine.
    Since I'm still using the local cache first on each search, and then waiting a minute for a full web search to allow for my peeer to collect relavant results, the process of searching is slower on the front end of the process.
    But the results, Oh the results! It is so wonderful to have relevant uncluttered information back in my life.
    Remember the days when search was useful? You really don't, until you have gone back to the future of the early '90s.
    No longer are my searches hampered by advertisers paying mutiple dollars for the priveledge of owning the words and terms I seek.
    I am reading a book that refers often to "To Kill a Mickingbird", and I looked up the name 'Atticus Finch'. The resut I received was a wonderful non-commercial review of the character, likely written for some universty level work.
    Take that WikiPedia!
  My Decetralized World
    Mail Server
    Blog
    linkblog/tweeter
    RSS Aggregator
    Rivers Of News
    Content Management System
    Dropbox
    Auto Syndicator
    Search Engine
    URL Shortener
    DNS Management
  YaCy
    I'm going to start documenting my setup of my own YaCy search engine peer.
    This is pretty exciting stuff, as it pretty much completes my decentralization from all the BigCo services.
    Screenshot
    The final step will be to connect my own url shortner to my blork server
  URL Shortner Thoughts
    Perhaps it would be really easy to drop a file into an S3 bucket like Adjinx used to do. Leave all the resolution of links to a small text file in the bucket to Amazon.
    Nice and portable too!
1/9/12 by AC
  Hello from Ubuntu with the OPML Editor running in WINE!
    Not very stable at the moment, but it works! That is just too f%$@ing cool!!!
    OK, this concludes 20 hours of hacking around to make it (kinda) work. off to bed for now.
    btw, the display looks nicer than OS X does for the editor!
  Archiving a node from WINE
    nothing here
  The problem could be the wireless network drivers....
1/8/12 by AC
  At the sound of the tone, the time is: <%now%>
  Need to work on mickysees.com today
    opml body stuff
    Or have Drew help out.
1/7/12 by AC
  Just found the headerEnabled attribute and used it to turn off the header graphic on my worknotes. Unfortunately I found it on the list of atts that are scheduled for termination :-(
  World Outline issues appear to be DNS related, but not sure where the problem actually is.
  Wondering if I can get macros to work in an outline
    Just trying some stuff:
    Manila Macros: Basic Macros
    <%now%>
    It worked!!!! Cool
    <%lastUpdateString%>
    <%year%>
    The day of the week is <%dayName%> {dayName}
  I'm noticing some 500 Server Errors, looks like EC2 is having some problems communicating with S3.
  Started a new worknotes section in it's own space here
  Now that these outlines will start becoming their own 'apps', I need to document what O'm doing as well, since I get lost so easily :-)
  Also maintaing a list of World Outline v0.5 'Stuff' outline