Drupal, PHP, Java development
https://tolstoy.com/
enTwitter censorship (shadowban) checker
https://tolstoy.com/twitter-censorship-checker
<div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even"><p>Twitter heavily censors a large number of their users. And, despite what you might have heard, it's not just conservatives. They censor all types of users: liberals, conservatives, sports fans, music fans, celebrity fans, and on and on. Despite what Twitter says, it's not just a small percentage of users, and it's not about bots. In fact, Twitter tends to elevate bot-like replies (like lone pics).</p>
<p>For instance, on most threads to U.S. government or elected officials' accounts, around <strong>20% to 50%</strong> of the tweets are censored:</p></div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-above"><div class="field-label">Main section: </div><div class="field-items"><div class="field-item even"><a href="/web">Web</a></div></div></div>Thu, 17 May 2018 19:27:26 +0000admin18 at https://tolstoy.comJConfig Java Class Library
https://tolstoy.com/jconfig
<div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even"><p>[<strong>NOTE:</strong> JConfig is currently only available <a href="sites/default/files/jconfig/jconfig210.zip">in this .zip file</a>. If you want to use it, contact us first. It will soon be released as open source under the Apache license. Note that many of the features of the library have since been added to the standard Java API; if Sun had done that at the time Java might be in wider use on desktops. The following is the page as of 2007.]</p>
<p>What is it?</p>
<p>JConfig is a cross-platform library that supplements the core Java API and solves many programming tasks.</p></div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-above"><div class="field-label">Main section: </div><div class="field-items"><div class="field-item even"><a href="/java">Java</a></div></div></div>Thu, 17 May 2018 19:09:46 +0000admin17 at https://tolstoy.comUploading files at Powweb (Drupal image module)
https://tolstoy.com/drupal/uploading-files-powweb-drupal-image-module
<div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even"><p>Drupal's image module failed when I tried to use it to upload images to a Drupal installation at a Powweb.com hosting account.</p>
<p>After some digging and searching, it turns out that Powweb's base version of php.ini does not include setting the 'upload_tmp_dir' variable. Trying to set that using Drupal's settings.php or in .htaccess didn't work (<a href="http://forum.powweb.com/archive/index.php/t-44939.html">discussion</a>). Instead, I got the error described <a href="http://marc.info/?l=php-general&m=110445634706420&w=2">here</a>.</p>
</div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-above"><div class="field-label">Main section: </div><div class="field-items"><div class="field-item even"><a href="/drupal">Drupal</a></div></div></div>Sat, 25 Jul 2009 21:12:14 +0000admin5 at https://tolstoy.comDrupal tip: module, theme naming collisions
https://tolstoy.com/drupal/drupal-tip-module-theme-naming-collisions
<div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even"><p>I recently encountered an issue that may or may not be well known: apparently Drupal modules and themes can't have the same names. If they do, there will be at least one naming collision.</p>
</div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-above"><div class="field-label">Main section: </div><div class="field-items"><div class="field-item even"><a href="/drupal">Drupal</a></div></div></div>Sat, 25 Jul 2009 21:16:12 +0000admin6 at https://tolstoy.comMediawiki: remove nofollow tag for selected sites
https://tolstoy.com/php/mediawiki-remove-nofollow-tag-selected-sites
<div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even"><p><strong>[SEE THE UPDATE BELOW]</strong></p>
<p>By default, Mediawiki (the software that powers Wikipedia and other sites) adds the <a href="http://tolstoy.com/web/downsides-nofollow-and-quick-firefox-tip">evil nofollow tag</a> to outbound links. This page describes how to have that tag removed for a pre-defined set of trusted sites.</p>
</div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-above"><div class="field-label">Main section: </div><div class="field-items"><div class="field-item even"><a href="/php">PHP</a></div></div></div>Sat, 25 Jul 2009 21:19:54 +0000admin7 at https://tolstoy.comHow to use the Yahoo Maps API
https://tolstoy.com/javascript/how-use-yahoo-maps-api
<div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even">Yahoo has released their competitor to the Google Maps API. I'm not familiar with the latter, but the main difference appears to be that Yahoo's maps can't be embedded in your own pages: the closest you can get is with the much-reviled frames. However, the popup windows shown on the map have links so you can direct people to one or more web pages at your site. You can see sample maps <a href="http://food212.com/2005/07/clickable-maps-for-chinatown-gramercy-pa-000019.html">here</a>.
<br/>
<br/>
[<strong>NOTE:</strong> This page refers to the legacy Yahoo Maps API.</div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-above"><div class="field-label">Main section: </div><div class="field-items"><div class="field-item even"><a href="/javascript">Javascript</a></div></div></div>Sat, 25 Jul 2009 21:32:02 +0000admin8 at https://tolstoy.comA hidden danger of trackback spam
https://tolstoy.com/web/hidden-danger-trackback-spam
<div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even"><p>I've deleted a good amount of trackback spam from my Movable Type blogs, and until a few minutes ago I was feeling pretty good. But, there was one major thing I forgot, and I hope it hasn't done too much damage.</p>
<p>I searched for a name at lonewacko.com using Google's site: command, and what I was looking for came up first.</p>
</div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-above"><div class="field-label">Main section: </div><div class="field-items"><div class="field-item even"><a href="/web">Web</a></div></div></div>Sat, 25 Jul 2009 21:40:29 +0000admin9 at https://tolstoy.comSelenium WebDriver: getting Twitter handles using Bing
https://tolstoy.com/java/selenium-webdriver-getting-twitter-handles-using-bing
<div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even"><p>The video below shows a Java program I wrote to convert names into Twitter handles. Given an array of names, it does a <em>site:twitter.com [name]</em> search in Bing for each name, and then looks up the search results on the Twitter mobile site.</p>
<p>The location and bio information from each Twitter profile are written into a text file.</p>
</div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-above"><div class="field-label">Main section: </div><div class="field-items"><div class="field-item even"><a href="/java">Java</a></div></div></div>Sun, 17 Jun 2012 21:22:06 +0000admin13 at https://tolstoy.comAn API for the Web (from late 90's)
https://tolstoy.com/web/api-web-late-90s
<div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even"><em>[<strong>NOTE:</strong> This proposal was posted here some time in the late 90's (original URL: web.html).</div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-above"><div class="field-label">Main section: </div><div class="field-items"><div class="field-item even"><a href="/web">Web</a></div></div></div>Wed, 09 Jan 2013 03:40:19 +0000admin14 at https://tolstoy.comCSS diff: how to find the differences in computed styles
https://tolstoy.com/web/css-diff-how-find-differences-computed-styles
<div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even"><p>Let's say you've just upgraded a site from Drupal 6 to 7 or made some other upgrade, but the new version of the site doesn't look like the old. The HTML output is fundamentally the same, but the new version of the site looks funny. What do you do?</p>
<p>One solution is to load the old and new sites in Firebug, and then compare the computed style tabs, element by element.</p>
<p>If that doesn't work, here's a tip that will let you do a diff of the computed CSS styles for the two sites.</p>
</div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-above"><div class="field-label">Main section: </div><div class="field-items"><div class="field-item even"><a href="/web">Web</a></div></div></div>Mon, 16 Sep 2013 20:18:51 +0000admin16 at https://tolstoy.comError | Drupal, PHP, Java development