0. Internet 1. Text 2. Graphics 3. System 4. File 5. Misc 6. Palm 7. OS X |
Two newly-added floppy OSes #
/misc | Dec 31, 2009 Black screen with many white exclamation points / marks on boot... #was due to a failing EVGA e-GeForce 8800GT video card. Pulled the card and exclamation points were gone for good. ![]() Could not find any definitive information or solution on the web, though there were a few similar complaints:
/misc | Dec 29, 2009 Postcardware Windows apps by Piotr Chodzinski #These run under all Windows versions from 95 on up!
/windows | Dec 27, 2009 Freeware Mac apps by Colin Henein #
/mac | Dec 27, 2009 Downloading DjVu files from Internet Archive (archive.org) #Clicking DjVu book links on archive.org opens them in a Java applet within the web browser, with no option to save. Right clicking and "saving link as..." results in a tiny HTML file being downloaded instead. Here's how to download the actual DjVu file (we'll use H.G. Wells' The wonderful visit in this example):
/misc | Dec 27, 2009 Reading HTML files on a Kindle #
/misc | Dec 27, 2009 Ensign, Demint to force vote on health care bill unconstitutionality #WASHINGTON, D.C. - Today, U.S. Senators Jim DeMint (R-South Carolina) and John Ensign (R-Nevada), raised a Constitutional Point of Order on the Senate floor against the Democrat health care takeover bill on behalf of the Steering Committee, a caucus of conservative senators. The Senate will vote tomorrow on the bill's constitutionality. "I am incredibly concerned that the Democrats' proposed individual mandate provision takes away too much freedom and choice from Americans across the country," said Senator Ensign. "As an American, I felt the obligation to stand up for the individual freedom of every citizen to make their own decision on this issue. I don't believe Congress has the legal authority to force this mandate on its citizens." "Forcing every American to purchase a product is absolutely inconsistent with our Constitution and the freedoms our Founding Fathers hoped to protect," said Senator DeMint. "This is not at all like car insurance, you can choose not to drive but Americans will have no choice whether to buy government-approved insurance. This is nothing more than a bailout and takeover of insurance companies. We're forcing Americans to buy insurance under penalty of law and then Washington bureaucrats will then dictate what these companies can sell to Americans. This is not liberty, it is tyranny of good intentions by elites in Washington who think they can plan our lives better than we can." Americans who fail to buy health insurance, according to the Democrats' bill, would be subject to financial penalties. The senators believe the bill is unconstitutional because the insurance mandate is not authorized by any of the limited enumerated powers granted to the federal government. The individual mandate also likely violates the "takings" clause of the 5th Amendment. The Democrats' healthcare reform bill requires Americans to buy health insurance "whether or not they ever visit a doctor, get a prescription or have an operation." If an American chooses not to buy health insurance coverage, they will face rapidly increasing taxes that will rise to $750 or 2% of their taxable income, whichever is greater. The Congressional Budget Office once stated "A mandate requiring all individuals to purchase health insurance would be an unprecedented form of federal action. The government has never required people to buy any good or service as a condition of lawful residence in the United States." A legal study by scholars at the nonpartisan Heritage Foundation concluded: "An individual mandate to enter into a contract with or buy a particular product from a private party, with tax penalties to enforce it, is unprecedented-- not just in scope but in kind--and unconstitutional as a matter of first principles and under any reasonable reading of judicial precedents." (emphasis mine) Source /misc | Dec 22, 2009 Notes #
/misc | Dec 19, 2009 Xcopy Windows to a new hard drive #While imaging a 160GB drive with four partitions (Dell Diag, Recovery, OS, MediaDirect) to a new 500GB drive via an Acronis True Image boot CD, something went terribly wrong. Long story short, neither drive would boot (stuck in perpetual reboot loop) though files were visible on both drives. After wrangling with partition and recovery tools on the 500GB drive to no avail, the following process worked:
/windows | Dec 19, 2009 Bundled Snow Leopard Upgrade DVDs do *not* work on older Macs with blank drives #There are many assertions around the web that the Mac OS X Snow Leopard Upgrade DVD works exactly like the full version. Here's an example of such a claim from Macworld: However, the Snow Leopard upgrade DVD does not require that you have Leopard installed; it's a full install disc that works on any Intel Mac.and another from MacInTouch: Can I install the Snow Leopard upgrade on a blank hard disk?While this may be true of the retail upgrade disc, bundled DVDs and those issued under the Mac OS X Snow Leopard Up-to-Date Program (distinguishable by the notice "This software is part of a hardware bundle - not to be sold separately") do not work on older Macs with blank drives, as this screenshot demonstrates: For bots, screen readers, and image-free browsers, here it is in plain text: Mac OS X can't be installed on this computer. This disc requires that Mac OS X 10.5 or later already be installed on your computer. If you want to restore your system from a Time Machine backup, click "Restore from Backup".The only choices are "Restore from Backup" and "Restart". Not even the usual utilities (Terminal, Disk Utility, etc) are available. This message can be avoided by plugging in an external drive with Leopard installed (including another Mac in Target Disk Mode) or by remastering the DVD with a few minor changes. For more on this issue, see:
/mac | Dec 14, 2009 Random Harvest #
/misc | Dec 13, 2009 Batch replace text in PDF files #Simple text replacements in simple PDF documents can be made with changepagestring.pl, part of CAM-PDF-1.52, which, by the way, includes many other cool tools like:
$ perl -MCPAN -e shellIf this is the first time you've run CPAN, it will ask you a series of questions - the default answers worked fine for me. When the cpan> prompt appears, install the CAM::PDF module: cpan> install CAM::PDFNow let's see if our PDF allows modification: $ pdfinfo.pl pcasm-book.pdf File: pcasm-book.pdf File Size: 1071411 bytes Pages: 195 Author: Paul A. Carter CreationDate: D:20050320210800 Creator: LaTeX with hyperref package Keywords: 80x86 assembly programming Producer: pdfTeX-1.10b Subject: 80x86 Assembly Language Programming Title: PC Assembly Language Page Size: variable Optimized: no PDF version: 1.4 Security Passwd: none Print: yes Modify: yes Copy: yes Add: yesAs it does, let's batch replace the word "Borland" with the word "Inprise" and name the new file output.pdf: $ changepagestring.pl -o pcasm-book.pdf Borland Inprise output.pdfThat seems to have worked, but there are still instances of "Borland" in the file - why were they not changed? The following script by Adam314 will output the entire file, including the hidden PDF formatting codes:
#!/usr/bin/perl
use warnings;
use strict;
use CAM::PDF;
my $infile = '/path/pcasm-book.pdf';
#open file
my $doc = CAM::PDF->new($infile) || die "$CAM::PDF::errstr\n";
#look for string
for my $page (1..$doc->numPages) {
my $content = $doc->getPageContent($page);
print $content
}
Sure enough, the string "Borland" only shows up twice. Where are all the others? Why, surrounded by hideous formatting code like these examples:
Borl)1(and)1('s
Borlan)1(d's)-2
Borlan)1(d)-497
Borl)1(and)-241
In his link above, Adam314 offers advice for replacing instances like these with regex. At this point I grew rather weary, however, especially as text replacements were wont to cut off or run into other words. However, for simple text replacements in simple PDF documents, changepagestring.pl may come in handy.
/nix | Dec 13, 2009 Recursively reassign owner #chown -R new_username:new_group directory:new_group is optional. Especially helpful when, after having imported data from one OS X user account to another, attempting to move files results in them being copied instead, and attempting to move folders results in a password prompt ("Finder requires that you type your password"). /mac | Dec 13, 2009 Lock or unlock files recursively in OS X #chflags -R uchg directoryView file flags with the -O (capital "o") switch: $ ls -lO(via Entrepreneur Geek and macos-x-server.com) This tip is particularly useful when copying folders like My Documents, My Pictures, etc from Windows machines to OS X. Rather surprisingly, these folders are actually assigned the Read-only attribute in Windows: Unlike the Read-only attribute for a file, the Read-only attribute for a folder is typically ignored by Windows, Windows components and accessories, and other programs. For example, you can delete, rename, and change a folder with the Read-only attribute by using Windows Explorer. The Read-only and System attributes is only used by Windows Explorer to determine whether the folder is a special folder, such as a system folder that has its view customized by Windows (for example, My Documents, Favorites, Fonts, Downloaded Program Files), or a folder that you customized by using the Customize tab of the folder's Properties dialog box.OS X honors the Read-only attribute by dutifully locking the directories, leading to unexpected and generally undesirable results. /mac | Dec 13, 2009 Blosxom alternatives, microblogs, etc. #
/nix | Dec 03, 2009 |
Categories
Blosxom Archive
2010: 3 2 1
2009: 12 11 10 9 8 7 6 5 4 3 2 1 2008: 12 11 10 9 8 7 6 5 4 3 2 1 2007: 12 11 10 9 8 7 6 5 4 3 2 1 2006: 12 11 10 9 8 7 6 5 4 3 2 1 2005: 12 11 10 Blogger Archive
Ezine Archive
|