Showing posts with label web browsing. Show all posts
Showing posts with label web browsing. Show all posts

Sunday, July 11, 2010

Updated Blogger Tools

I've updated the "Blog Archive" and "Labels" gadgets on this site - as visible in the right-hand margin of this page. Please leave a comment with any issues or suggestions.

Over a year ago, I had already replaced Blogger's default Labels gadget with the Yahoo! UI Library (YUI)'s TreeView component, which provided:

  • A view that is collapsed by default, saving screen space for other features unless the Labels are clicked and expanded for use.
  • A complete and compact list of tagged posts under each label, without having to request a new label search page - while still providing these links.

This tree is populated with an AJAX request to Google's GData Blogger API, using the JSON Alt Type and YUI's Get Utility. Since the returned data is a list of posts, a limited amount of JavaScript is needed to group and sort the posts into the labels. As part of this last update, a label will now again automatically expand to show the related posts if the current page being viewed is a label search page. (This is similar to the default functionality, but is determined by the current URL.)

Also now just completed, I've also replaced Blogger's default Blog Archive gadget with another YUI TreeView, providing:

  • A consistent look-and-feel between the Blog Archive and Labels features.
  • A more compact display, while maintaining readability.
  • Post titles were previously truncated after 50 characters. Complete post titles are now displayed, along with the specific date posted.
  • As the same data retrieved to populate the Labels is re-used, the page loading performance should actually be improved as the HTML is now dynamically generated client-side - instead of downloading what was essentially duplicate information as additional HTML from the server.

As with the Labels, the archive will also automatically expand to show the related posts for the time period being viewed - similar to the default functionality, but again determined by the current URL.

Also just added are "loading bar" graphics for the short period of time between the initial page load and the population of the trees.

A few other quick things to note:

  • The source JavaScript code used for these features is available for reference in this page's HTML source (among the rest of Blogger's default and somewhat cluttered code), using your browser's View/Source feature. Even though it is only ~250 lines or ~7 KB of code, this is not the most efficient as this code is reloaded with every page load. I'd like to be able to properly move this code into a separate and cacheable *.js file - but can't currently find a usable solution that matches the reliability and pricing (free) of the rest of Blogger. I attempted using versions stored on Google Code and Google Sites, but each had various issues - including being able to properly make updates, as well as having download landing pages interfere - partially complicated by not being hosted on the blogspot.com domain. Amazon's S3 storage service looks like a promising option that I may still consider. However, while it would likely only cost pennies / month to use for this, it's another bill to take care of.

  • The JSON data feed received is a bit large - currently ~200 KB - but unlike the JavaScript code, this data is returned with proper HTTP headers by Google, and should be cacheable by the browser. Much of this data is information that is not necessary or used, such as post summaries and comments. Hopefully, these extra fields will soon be selectively disabled - as soon as the Blogger GData API supports partial responses.

  • As visible in the source code, I also needed to implement a custom "clickEvent" handler for YUI's TreeView - otherwise the HTML links contained within the tree nodes were not clickable, as any clicks would instead expand/collapse the node instead of activating the link.

A few ideas for future enhancements:

  • Options to alternatively sort the labels, including by post count.
  • Having the displayed labels under each post interact with the Labels tree.

Monday, March 8, 2010

Thoughts on Google Fiber for Appleton / ISPs

Tonight I attended a public hearing at Appleton City Hall (PDF) regarding the city's consideration to submit a response to Google's request for information on the Google Fiber for Communities experiment. (Don't miss Google's project overview and other linked pages.) Also, please join the Google Fiber for Appleton Facebook group.

I was pleasantly surprised to see this public hearing bring the attention of Green Bay TV stations WFRV / CBS channel 5 and WGBA / NBC channel 26. The public hearing started late due to another meeting in the same room. There were probably a few more than 20 people in attendance, and the response was overwhelmingly positive. This echoed the current status of the City of Appleton's Survey, which was mentioned to also be overwhelmingly in favor of submitting a proposal. In general, the responses given at the hearing were mostly focused on the points that Appleton should proceed with submitting a favorable proposal in order to remain competitive as a community, to bring additional competition and choices for Internet service, and many other convincing reasons.

There were only 3 responses against: 2 from AT&T representatives in attendance for somewhat obvious reasons in concern for their business, and 1 gentleman concerned with the physical cost necessary to connect to connect gigabit networking to his Apple computer. (He apparently assumed that the fiber would need to be connected directly to his computer. Most computers sold in the past few years already have gigabit Ethernet cards, or they are readily available for less than $50. Additionally, there are many potential uses beyond a computer, such as video and other multimedia.) As also mentioned by another resident at the meeting, even being able to connect at only 100 Mbps (vs. the 1 Gbps / 1,000 Mbps being advertised) would still be about 10x faster than most consumer broadband connections available today.

My Own Thoughts

In general, additional competition for residential Internet service can only be a good thing - whether that competition is from Google or another provider. At my current residence in an apartment just outside the official city limits (in Grand Chute, near the Fox River Mall), my choices for broadband Internet are currently limited to Time Warner Cable and DSL. Wireless / "3G" was tried, and is not current viable for primary / serious use as previously detailed. Interestingly, the reps from AT&T at the hearing used their wireless network as one of their primary arguments against submitting a proposal to Google. After looking into Time Warner Cable, they presented themselves as one of the shadiest operations in town, at least based upon my experience at their local office. I'm currently using AT&T's DSL. While I would like to sign-up for AT&T U-Verse, I'm told that it is not available to my particular building, despite several of my neighbors in very close proximity having the service.

Unlike many of the comments and hype, I would hope that Google's offering is not all about the speed - even though, unfortunately, this is all many residential consumers are aware of or take into consideration. A few questions to consider of any ISP:

  • In addition to the speed, what is the latency (or lag)?
  • What is the support for IPv6?
  • Are industry standards properly followed, such as RFC 2308 - Negative Caching of DNS Queries? Or is the ISP involved in DNS hijacking?
  • Is service advertised as "unlimited" truly unlimited, or are there limits involved that are only shown in fine print, if at all?
  • What is the ISP's stance on network neutrality?
  • What support / allowance is there for operating as a server - either a web server, or something more "residential" such as allowing remote desktop connections, allowing for peer-to-peer file transfers, or playing games that require being able to accept incoming network connections?
  • What are the results from the ICSI Netalyzer hosted by UC Berkeley, which tests for most of the above as well other issues?

Google, in particular, has a positive record for properly supporting the above requirements and avoiding the listed issues:

I can't imagine that Google wouldn't uphold the same principals in providing their own Internet service.

(On a humorous note, I can't help but recall Google's previous ISP / fiber offering: Google TiSP.)

Even if Appleton submits a proposal for and is accepted as a location for Google Fiber, there is no guarantee that I would be in the service area - especially being in a neighboring town. However, I have no doubt that I would still benefit from the increased competition. Additionally, once we're back in the market to buy a a house in the area, the availability of Google Fiber would be a serious consideration. (Someone please buy our house for sale in Wausau! - which happens to be wired with Cat-6 for Gigabit networking.)

The Need for IPv6

Almost a year ago, I brought IPv6 connectivity to my home network / LAN.

Background

Similar to the past Y2K issue, the Internet is facing a similar issue that just hasn't been publicized too much in the mainstream media yet: Exhaustion of the IPv4 addresses currently being used. I found a very interesting and detailed IPv4 Address Report by Geoff Huston that is auto-generated daily. There are various estimates as to the numbers and dates, but all the predictions are currently falling in the range of years 2011-2012. This shortage of IPv4 addresses will certainly be a much larger issue than other predictions and myths for the year 2012.

The only real solution to the IPv4 address shortage is upgrading to IPv6. IPv4 allowed for 232, or 4,294,967,296 addresses. With most computers, servers, and even cell phones each being assigned a unique address, the shortage should not be surprising. However, back when the IPv4 specification was published back in 1981 (RFC 791), I'm sure 4+ billion addresses was considered more than sufficient. IPv6 solves this shortage by increasing the number of possible addresses to 2128, or 3.4×1038. Written out, this is 340,282,366,920,938,463,463,374,607,431,768,211,456 addresses. Beyond the increased address space, IPv6 also brings a number of other features, including mandatory support for advanced security, simplified processing, and support for network mobility.

IPv6 became active for production use on the Internet in June 2006. Unfortunately, it seems that many organizations and much of the Internet has not yet committed to converting, and the shortage will have to be dealt with. I see this causing more problems for regular at-home users than anyone else. Most individuals are not aware of the issue, and have little choice than to accept however their ISP handles the issue - short of possibly switching providers. Already, most consumers are only leased one IP address per Internet account, which usually must be shared between several computers and other Internet-connected devices. This is almost always accomplished through network address translation (NAT). This already causes complications and issues with file transfers, remote assistance applications, VPN software, online gaming, and many other typical Internet uses. As the shortage becomes more significant, expect for an increasing number of ISPs to no longer lease a public IP address at all, but instead only lease a private IP, where multiple private IPs share one public IP - essentially nesting one NAT network within another, and will only further complicate matters. The same "public IP per Internet account" that we are accustomed to today may still be available - but only for an added fee.

Use of NAT and private IPs are also in conflict with the fundamental design of the Internet and prevent end-to-end connectivity. Overall, it increasingly seems that Internet providers are only guaranteeing limited "web access" vs. fuller "Internet access". I.E., if it doesn't run in a web browser, it is probably not supported. I already experienced this first-hand in my previous dealings with Alltel / Verizon in regards to my wireless Internet issues. Consumers need to start demanding more from their ISPs, and need to know and have a limited understanding of the facts to do so. One tool that can help with this is the ICSI Netalyzer hosted by UC Berkeley. Guarantee of a public IP - either IPv4 or IPv6 - is also something that should be investigated and demanded.

IPv6 Choices

The best and easiest way to utilize IPv6 is by connecting to an ISP that provides IPv6 support. Unfortunately, finding such an ISP is still a nearly impossible task - especially when limited to those that provide local access. There are a number of transition mechanisms that should be able to provide IPv6 even without ISP support, but all have their own issues. For example, Microsoft Windows Vista, Windows 7, and most other modern operating systems support 6to4, Teredo, and ISATAP as tunneling mechanisms. However, I have not had any real success with any of these - at least not under Windows and while behind a NAT.

6to4 actually seems like an ideal solution to provide IPv6 access to a LAN, as long as there is a capable device to serve as a router that also has access to a public IPv4 address. Unfortunately, the address of the IPv6 subnet is based on the IPv4 address. While this may be a feasible solution for those with static IPv4 addresses (rare, more expensive, and only becoming worse), use on a dynamic IPv4 address requires an insanely short lifetime on IPv6 addresses, and requires the entire LAN to be re-addressed whenever the hosting IPv4 address is updated.

This pretty much leaves me with tunneled IPv6 access through a tunnel broker, using either configured 6in4 or AYIYA protocols. The best I have found - at least for free - are Hurricane Electric's Tunnel Broker, SixXS, and gogoNET (previously go6.net).

SixXS has the largest list of available "Points of Presence" - 35 over 18 countries. However, access pretty much requires the AICCU client, which is becoming a bit outdated and has a number of issues under Windows. (As of this writing, the last update for Windows was 2008-05-25.) Additionally, while free, SixXS has had much difficulty maintaining uptimes - particularly the one in Chicago as well as other POPs in the US.

gogoNET currently has much better support for Windows (using their gogoClient - with versions for most *nix versions as well), but the available tunnels are limited to 3, and with nothing local to the US: Montreal, Amsterdam, and Sydney.

Overall, I've had the most success with Hurricane Electric. HE provides 24 tunnels across 10 countries, including 12 within the US. However, unlike SixXS and gogoNET, HE provides no visible support for use behind a non-owned firewall, such as for mobile use on other public networks.

Monday, February 2, 2009

See all newspaper comments at once with Greasemonkey

Background

Like many web users today, I get much of my local news from the online versions of the local newspapers. One particular feature the online editions offer over the print editions is the inclusion of user comments / responses to the stories.

At least around my areas of interest in Central Wisconsin and the Fox Valley, most of the local papers are owned by the Gannett Company. This includes the Appleton Post-Crescent, the Wausau Daily Herald, and others. Much of Gannett's online presence is currently provided by Pluck Social Media's SiteLife product, particularly SiteLife Comments. Pluck even hosts a special customer profile detailing their work with Gannett Corporation. While the sites I'm working with here all happen to be owned by Gannett, it's quite possible that this will also apply to other Pluck-based sites as well.

Unfortunately, Pluck's current implementation leaves some things to be desired. I recall reading many of the negative comments left as the transition was made from the old version of the sites to the current version, which is when I believe Pluck became involved. Fortunately, they have improved some things since, and definitely seem to be fairing better than the current fiasco at Dell's online community after their so-called upgrade. However, the most annoying issue I have while reading Gannett's local news articles is that only 5 user comments are visible at a time. There is a "Full Page View" option available at the bottom, but this only increases the visible comments-per-page to 10. While all these comments are loaded in an AJAX-type fashion using JSON data, clicking to retrieve the next page still results in reloading the entire page. Even on a broadband connection, each page change requires 5+ seconds. This makes trying to read through all the comments on a popular story very frustrating, especially when there are sometimes 50 or more responses. While many of these comments are informative or insightful, having to click through and reload 5 or more pages is certainly not making the best use of web technology.

Technical Challenges

As I had done with Resizing the Blogger Edit Box, my first thought was to attempt to improve things with a Bookmarklet. Unfortunately, the task proved to be too complex, partially due to the same origin policy blocking the necessary cross-domain data. In particular, while the article page is served from a "www." host, the JSON data containing the comments is obtained from a "sitelife." host. While the current pages seem to work around this restriction through some iframe tricks, attempting to reuse that functionality would be a hack at best. Instead, I turned to a Greasemonkey-based solution. Greasemonkey provides a non-domain-restricted GM_xmlhttpRequest API method that provides access to Mozilla's chrome-privileged XMLHttpRequest object.

The pages I had to work with were not at all desirable or the easiest to work with. Each page typically includes about 20 JavaScript files, and some of the code is quite obfuscated. One of the main files, "GDSRScripts.js", is about 86 KB. The core of the Yahoo! UI Library (YUI) (yahoo-dom-event.js in 2.6.0) is not even half that, at only 31 KB. I also see no effort made at respecting the JavaScript global namespace, or use of other best practices.

The Solution

I've completed a Greasemonkey script that I've posted at userscripts.org: All Pluck Comments. Once installed and configured for one or more of the Pluck-based Gannett news sites, it will update any loaded news article by showing all available comments on the same, single page. If all the existing comments already fit within one page and the current 5-post limit, the script will exit and do nothing. Unfortunately, much of the previous waiting time doesn't seem to be in the JavaScript, but with the server responding to the JSON requests - a performance issue that can't be resolved client-side. While those requests are made, the script will show the loading status above the existing comments. Once all comment "pages" have been downloaded, the comments section is repopulated with the complete list. Additionally, changing the sort order between "Newest first" and "Oldest first" now performs instantly, without requiring additional remote requests.

Due to the number of possible supported sites, only one default URL pattern is configured to the "included pages" within the Greasemonkey script. Other desired, supported sites will need to be manually added. (This would be easier of Greasemonkey supported regular expressions for the patterns, as I requested in ticket #216.) There are two types of URLs I've observed that should be supported. The first looks like "http://<hostname>/article/<date>/<siteId>/<articleId>/". The other looks like "http://<hostname>/apps/pbcs.dll/article?AID=/<date>/<siteId>/<articleId>". The best non-regular expression pattern I can suggest to match both these patterns is "http://<hostname>/*article*", where "<hostname>" needs to be replaced with the literal host and domain name to be supported.

The only current limitation is that the per-comment controls (Recommend, New post, Reply to this Post, Report Abuse, etc.) are not regenerated. This is because it would be very difficult, if even possible, to make all of Pluck's existing JavaScript work with these enhancements. In order to use these controls, click on the "Full Page View" link that is left below the list of comments. This will bring back the limit of 10 comments per page, but the Greasemonkey script will exit without making any changes and leaving these controls intact. I seldom use these controls, so this issue isn't that important to me. However, if there is a stated interest, I may look into resolving this for a future version. Alternatively, feel free to write and submit a patch!

Technical Details

The script first waits for the existing comments to load, at which point it determines the article ID, the total number of comments available, and other information necessary for requesting the additional "pages" of comments. If it times out waiting, or determines that it is on the "Full Page View", it simply exits and does nothing. Otherwise, it makes a series of asynchronous requests to retrieve all the available comments. The responses are unnecessarily URL-encoded, and are decoded by the script using unescape(). The responses also contain an unnecessary <script> section at the beginning, which is searched for and removed. The JSON text is then "safely" evaluated to a JavaScript object using the regular expression provided in section 6 of RFC 4627. Once all responses are received, the existing comments HTML is cleared, and new comments are built and populated from the JSON data using the HTML DOM.

Some of the tools I used during this process were Firebug, JSView, and Notepad++. Some of the JavaScript practices I used include closures and other JavaScript topics I've written about.

Wednesday, December 3, 2008

Resizing the Blogger Edit Box

If you compose in Blogger at all, you may be frustrated with the relatively small size of the text area provided for writing. It defaults to only about 15 lines!

Here's a fix.

I started out by using Firebug's Inspect feature to find what I wanted to resize, and to initially tweak the size on-demand. However, this is a bit tedious, and requires further tweaking if the window is resized.

I then wrote a JavaScript Bookmarklet to automate the task. When run, it automatically resizes the Blogger edit boxes for both the "Edit Html" and "Compose" tabs to just a bit smaller than the current size of the browser window, leaving just enough margin for the scrollbars and other editor components, etc. Additionally, it also listens for window resize events, and resizes the edit boxes along with the browser window.

Here is the human-friendly source code:

// Mark A. Ziesemer, www.ziesemer.com.
javascript:(
  function(){
    // http://www.quirksmode.org./js/events_advanced.html
    var attachEvent = function(obj, evType, handler){
      if(obj.addEventListener){
        obj.addEventListener(evType, handler, true);
        return true;
      }else if(obj.attachEvent){
        return obj.attachEvent("on" + evType, handler);
      }else{
        return false;
      }
    },
    getDim = function(dim){
      // http://www.howtocreate.co.uk./tutorials/javascript/browserwindow
      return window["inner" + dim] || document.documentElement["client" + dim] || document.body["client" + dim];
    },
    getH = function(){
      return getDim("Height");
    },
    getW = function(){
      return getDim("Width");
    },
    editSize = function(dim, size){
      document.getElementById("textarea").style[dim]
        = document.getElementById("richeditorframe").style[dim]
        = size + "px";
    },
    lastH, lastW,
    resize = function(){
      var newH = getH(), newW = getW();
      // http://webbugtrack.blogspot.com./2007/10/bug-104-resize-event-firing-errors-in.html
      if(newH != lastH || newW != lastW){
        editSize("height", newH - 250);
        editSize("width", newW - 100);
        lastH = getH();
        lastW = getW();
      }
    };
    resize();
    attachEvent(window, "resize", resize);
  }
)();

This is cross-browser compatible, and was tested against Mozilla Firefox 3 and Microsoft Internet Explorer 7. Not surprisingly, it could be much shorter if it didn't need to work-around a few IE bugs, as commented above:

  1. Supporting a non-standards event registration model.
  2. Difficulties in obtaining the size of the browser window, including differences between "strict" and "quirks" modes.
  3. The resize event being called repeatedly, which usually resulted in infinite loops and hanging IE.

Here's the same code, condensed as a usable bookmarklet:

javascript:(function(){var%20attachEvent=function(obj,evType,handler){if(obj.addEventListener){obj.addEventListener(evType,handler,true);return%20true;}else%20if(obj.attachEvent){return%20obj.attachEvent('on'+evType,handler);}else{return%20false;}},getDim=function(dim){return%20window['inner'+dim]||document.documentElement['client'+dim]||document.body['client'+dim];},getH=function(){return%20getDim('Height');},getW=function(){return%20getDim('Width');},editSize=function(dim,size){document.getElementById('textarea').style[dim]=document.getElementById('richeditorframe').style[dim]=size+'px';},lastH,lastW,resize=function(){var%20newH=getH(),newW=getW();if(newH!=lastH||newW!=lastW){editSize('height',newH-250);editSize('width',newW-100);lastH=getH();lastW=getW();}};resize();attachEvent(window,'resize',resize);})();

(Bookmarklet - Either right-click and choose to bookmark, or drag to your bookmarks menu or links toolbar.)

I've not yet found a decent tool to compress JavaScript into bookmarklets. The best I've found is at http://chris.zarate.org./projects/bookmarkleter/. However, one issue it has in particular is failure to properly handle comments. While it is the tool I used to condense to the above, I manually removed the comments first and converted the double-quotes to single-quotes.

This script could easily be modified for similar functionality on other sites. Additionally, the need to initially enable the resizing by manually activating the bookmarklet could be avoided by converting this to a Greasemonkey script.

Update (2009-08-29):

Now also provided as a Greasemonkey script: http://userscripts.org/scripts/show/56651

Update (2009-01-26):

As discussed in the comments below, I'm avoiding Blogger's "updated editor" for now, due to many other unresolved issues with that editor itself. My scripts are only designed to work with the "old editor". Some details about the different editors are available from Google's Blogger Help.

If you have an issue with the bookmarklet, please post a comment here. If you have an issue with the Greasemonkey script, please report it at http://userscripts.org/scripts/issues/56651. In either case, be sure to include which browser and version is being used. Please also include any other possible factors that are visible, such as JavaScript errors or warnings in the browser.

Monday, September 8, 2008

Google Sites: Limitations

As excited as I was to start posting content on Google Sites (formerly JotSpot), there are a number of issues / limitations that I think are show-stoppers for now.

Google Sites offers a number of advantages, including a wiki format and interface, and as part of its inclusion into Google Apps, can be hosted on a custom domain.

However, after working with a number of different wiki products, both free and commercial, Google Sites seems excessively simple, to the point of restrictive. One example is when creating a new page, a type of page must be chosen. There then seems to be no option for changing that page's type, short of deleting it and creating a new one.

Deleting pages, however, is what I see to be one of the biggest issue with the current version of Sites. While a page or attachment can be "deleted", either seems to be infinitely recoverable, with no option to "permanently delete". As discussed in this thread, Steven Hind ("Visionary") wrote:

The ability to recover deleted pages is absolutely necessary as Google Sites allows collaboration, and a collaborator may delete a page (unintentionally or deliberately) and the owner may need to get it back.

While that is definitely a valid use-case, site owners should at least be given the option to permanently purge / remove "deleted" items. There are usability reasons, such as difficulty in recreating pages with the same name. More seriously are the security concerns, e.g. if something accidentally gets posted that shouldn't have been. Granted, even if something disappears from Sites, it may still be obtainable through Google Cache or the Internet Archive: Wayback Machine. However, even these services properly respect robot exclusions.

Working with included page images is a similar but even more mysterious issue. Images inserted into a page without being included "as an attachment" seem to function as "hidden attachments". Even when removed from the page, they remain available for later repeated use, with no visible method of removal.

Searching for "delete page" on the Site's Help returns dozens of results, with many users sharing the same concern. Hopefully this is something Google will address in the near future.

In the meantime, I'm still looking for a decent solution where I can share some of my code and projects, as open source, but under "my control". While I'll continue to use dev.java.net, it's really only purposed for Java projects. I have at least one Microsoft .NET project that I'd like to share. Google Code and SourceForge.net are two other options I explored, but again, leave very little control left with the owner. Especially when built on Subversion, the Subversion Obliterate issue makes it practically impossible to perform a removal when needed.

Update (2008-12-27): I just found this: http://groups.google.com/group/sites-help/web/wishlist. "Ability to permanently delete an uploaded file" is included, but it doesn't mention anything about permanent deletion / removal of pages.

Monday, February 25, 2008

Sun Download server blocking US users?

I just witnessed something a bit peculiar while trying to download the latest Java 6 JDK. Headed to http://java.sun.com/javase/downloads/index.jsp, and clicked on the Download button for "JDK 6 Update 4". This directed me to a 2nd page to "Select Platform for your download", the URL beginning with https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewFilteredProducts-SingleVariationTypeFilter.

No matter what platform I choose, the same page returns an error: "Your download transaction cannot be approved. Contact Customer Service."

This error is listed in Sun's Download Center FAQ at http://www.sun.com/download/faq.xml:

Q: Why am I stopped from downloading and getting the message, "Your download transaction cannot be approved. Contact Customer Service."

A: The Sun Download Center contains important safeguards to ensure compliance with the export regulations of the United States and with Sun's own policies regarding international distribution of software and source code. Sun also enforces all U.S. mandated embargoes and trade sanctions with regards to certain countries.

Your account most likely was flagged for review. Please contact Customer Service with your full contact information (name, company, address, phone, email address) and the name of the product you wish to download. We will review your account and reply.

Being a citizen of the United States, and receiving the error from a download request through Charter Communications in Wausau, WI, I find this very interesting. My IP resolves to x.x.x.x.dhcp.stpt.wi.charter.com. It also doesn't appear to be an issue with the browser or cookies, as I receive the error in both Firefox and Internet Explorer. I also tried the download request through a Charter business account, with an IP that resolves to x.x.x.x.static.stpt.wi.charter.com.

I followed the error link, submitted a download inquiry form, and promptly received an auto reply stating that the issue is under review and should probably be resolved within one business day.

Waiting to see what happens. Interesting...

Update:

I've yet to figure out exactly how these versions are supposed to related, but some have claimed that downloading from http://download.java.net/jdk6/binaries/ is the same thing. However, according to http://java.sun.com/javase/6/webnotes/ReleaseNotes.html, for version 1.6.0_04, "The full internal version number for this update release is 1.6.0_04-b12". However, what is posted on java.net is b11... (Please comment if you can help me clear up this confusion.)

Alternatively, you can try your luck with Google's search results.

Update:

Posted a question to the java.net forums regarding the JDK versions available on the jdk6.dev.java.net site: http://forums.java.net/jive/thread.jspa?threadID=37203

Also, according to Google Analytics, this site has received over 130 visits so far today - a new record. It appears most were related to this particular post, and that the requests came from 32 different countries! Interestingly, I've not seen any news from Sun about the issue nor have I received an email reply. One would think they would've at least put a note on their site, something to the effect of "We're aware of the issue and should have the issue resolved shortly."

Update (2008-02-27):

Received an email back from Sun Customer Support: "The Sun Download Center was experiencing technical difficulties but it is now functioning properly. Please try your download again again and let us know if you are still experiencing any problems. We apologize for the inconvenience."

Update (2008-03-17):

Ray Gans, one of the maintainers of the jdk6 project on dev.java.net, finally replied to my Forum post with some insightful information regarding the apparently missing source and binary releases: http://forums.java.net/jive/thread.jspa?threadID=37203

Friday, February 23, 2007

Blogger Issues

Now that I've had this blog for a few weeks (hosted by Blogger/Google), I just need to communicate a few frustrations with the service.

I consider myself to be a very particular coder - whether it be in Java, HTML, or otherwise. This involves simple things like following standards and guidelines, and running any available validators to correct any errors or warnings.

Unfortunately, Blogger doesn't seem to follow the same ideals. All of their pages are declared as "XHTML 1.0 Strict", but I doubt a single page even meets basic HTML validation.

The problem seems to involve multiple levels:

  • I tested all the available blog templates, and even by themselves, none passed W3C's Markup Validation Service.
  • Whatever processing engine is being used to serve the pages fails to remove the Blogger tags and other non-XHTML data that shouldn't be sent to the web.
  • Creating an XHTML-valid post also appears to be next to impossible, other than simply avoiding problem characters and formatting. For example, XHTML reserved characters don't appear to be processed into their entity codes at all, but in fact, reverted back to the reserved characters. For example, the quotation mark (") should be served as (&quot;) and displayed by the browser as ("). Even when not using the WYSIWYG editor and directly coding the proper XHTML, things always seem to revert back to their illegal form by the time my web browser loads the page.

Unfortunately, no ideas or workaround here...

Another issue is with the "preview" feature for posting - it doesn't follow the same stylesheet, line-break, and other preferences as when actually posted.

Additionally, at least with Firefox, I frequently am annoyed with a disappearing text cursor when posting. Edits are still possible - it's just impossible to see where the edit will take place. The only fix I've found so far is to switch to preview mode and back, which usually brings it back - if only for a moment.

Update (2007-09-17):

The disappearing text/edit cursor/caret is covered under Mozilla Bug 167801. While first reported on 2002-09-10, there is speculation that this will finally be fixed for Firefox 3.0.

Update (2008-03-21):

I found another good blog posting about Blogger's issues with XHTML: Google/Blogger: XHTML Standards: Does Anybody Care? (John Walker, 2007-05-06, fourmilab.ch)

Google redirects (privacy?)

I was just running a Google search after using Firefox's LiveHTTPHeaders (see my Firefox Extensions posting) for some other web development, and found something interesting. It appears that Google started tracking the search results I click on.

For example, after running a search for "Java", the first result listed is for "Java Technology" at java.sun.com. Doing a mouse-over on the link shows the same site in the status bar. However, right-clicking on the link and choosing "Copy Link Location" results in something different: http://www.google.com/url?sa=t&ct=res&cd=1&url=http%3A%2F%2Fjava.sun.com%2F&ei=… (They are probably using some JavaScript, though I haven't dug into the matter in any detail.)

I know that practically all the search engines analyze, aggregate, or otherwise are interested in the search terms entered. However, I think the click-throughs are a much greater privacy concern, and thought the practice was abandoned long ago. (Not true for advertising, which depends on these redirects for determining the number of click-throughs for billing, etc. This I understand and somewhat respect...)

I quickly found that this behavior only exists when I'm logged-in to Google, which I use for my Gmail and other Google services. I'm suspecting this is related to their search history feature, though I currently keep all my search histories as 'paused', so I don't see the need to run all my clicks through their redirector. Additionally, besides the privacy concern, this results in an extra HTTP request/response for any link I click on...

I searched around, and couldn't find any information on why these redirects exist and what they are used for, but couldn't find anything. (If you know, please share!) So I asked Google for some details using the "contact us" link on their Search History Privacy Notice page. I got an automated response back the next day:

Hi,

For assistance, please visit the Google Help Center at http://www.google.com/support?ctx=web, where you'll find extensive, up-to-date information and solutions.

If you don't find the answer to your question in the Google Web Search Help Center and would like additional assistance, you can search the Google Web Search Help group at http://groups.google.com/group/Google_Web_Search_Help or post your question for other members of the group.

Finally, if you require assistance with Google Web Search that can't be found in the online help resources listed above, you can submit your question to the appropriate support team by clicking on one of the "Contact us" links in the Google Web Search Help Center.

Regards,
The Google Team

Well, I had already tried the "Google (Web Search) Help Center". And for the life of me, I can't find any "Contact us" links there, either.

Without seeing any better options, I replied again to the email, and it hasn't bounced back yet. I'll give it a few more days, and might consider sending something to the listed mailing address on their site ("snail mail") if I still don't hear anything back.

I'll post any updates here as I learn more...

Friday, February 9, 2007

Firefox extensions

I might add more personal "content" here later, but I wanted to have a place to store and share my favorite Firefox extensions:

(Somewhat ordered from "most popular for everyone" to the more technical-related...)

Oh, and if you're not already using Firefox (a standards-supporting alternative web browser to Internet Explorer), you can get it here: http://www.getfirefox.com.

Last updated: 2009-08-20