This script below will accept a URL parameter, download the HTML, convert it to a .mobi file with kindlegen, and copy the file onto your Kindle.
I was having lots of problems with HTML email layouts. After doing some research, I came up with a method to get almost pixel-perfect positioning and sizing. It's not that hard.
I've never put a ID onto the BODY tag, but here's a situation where it's useful.
Normally, an article has an H1 tag that contains the title for the page. You do this for SEO reasons, as well as semantics.
How many times has this wheel been reinvented? According to Google searches, not enough - because I couldn't find a good one. Over the years, I've definitely build this wheel a few times, so, here goes again. This is a lot better than the stock nl2br() function.
The attached code and test files show it off, and only a description follows.
Rlib is a report writing engine that takes report specifications in an XML language. It emits reports in several formats including HTML and PDF.
I stumbled across RLIB while figuring out how to implement some MS Access report writing features in PHP. MSA users will know what writing a report is, but PHP coders probably don't, so I'll explain.
This is the Hello, World program, written in Javascript and encoded as a data URI.
<script src='data:application/javascript;base64,ZG9jdW1lbnQud3JpdGUoIkhlbGxvLCB3b3JsZCEiKQ=='></script>
if you have an ajaxy library that can edit divs in-place:
<div id="story.1234">
<div id="story.1234:title">the title</div>
</div>
<div id="story.1235"> I was toying with some SEO ideas, and wanted a CSS-based layout that puts the content at the top.
2008-03-12: a report on Tech Republic. It's done by Global Knowledge
Web dev salary survey on Zeldman's A List Apart
Another popular survey is done by SAGE.
dhtmlxTree
tree tag on ajaxrain
tcl outliner - not ajax unfortunately
(a great tcl tutorial to read the sources for the tcl outliner)
Here's a perl script that takes email addresses as arguments, and returns javascript code that hides your email address from web spiders. The email address is also linked so it's clickable.
#! /usr/bin/perl
foreach my $email (@ARGV) {
$email =~ s/@/ @ /;
$email =~ s/\./ . /;
@parts = split( ' ', $email );
print "\n";
print "document.write('');";
foreach my $word (@parts) {
print "document.write('".$word."');\n";
}
print "document.write('');\n";
print "\n\n";
} It's been seven years since the "I LOVE YOU" email virus of 2000, but these email viruses still manage to infect people. More importantly, email-based trojans are still being used to launch more complex, and subtle attacks. (See Timeline of notable computer virues and worms.)
A contemporary high-risk scenario involves laptops that leave the office, and become home computers in the evening.
Office networks generally have some form of malware detection and quarantine. More sophisticated sites run centralized file scanning and email scanning, combined with restricted user access, to reduce the impact of malware. So, within the office network, when a recognized virus appears, it's contained, and doesn't have the opportunity to destroy the network.
A few people have mentioned that they need a website for their crafts business. This article explains how to get started.
To open a website, you need to purchase a few separate things, and bring them all together. You can do it yourself, or ask your web host or designer to take care of it. Most will, for a small fee. Here are the things you need:
Here's how to create one of those text fields with HTML that the user's supposed to copy-and-paste into their page. It's not hard.
Create a form.
Add a Text Area. Give it a name, and set the rows and columns.
From the text area dialog, click on the "Advanced Properties..."
Click on the Javascript tab.
Add a property named "onclick" with the value of "this.focus(); this.select();".
Click OK.
Click OK.
NOTE: I found a serious problem - NVU's code reformatting will cause the html code to break within myspace, because NVU inserts newlines. To fix the problem, you have to save out the source, join all the lines, and upload the file manually.