JR's blog posts - all blog postings
JR:
Keyboard commands when editing within a textarea box
- shift + arrow keys - to highlight text
ctrl + x - to cut text
ctrl + c - to copy text
ctrl + v - to paste copied/cut text
ctrl + z - to undo the previous command(s)
ctrl + shift + z - to redo the previous command(s)
ctrl + shift + v - to paste ...
more>>
- Jul 15, 2013
JR:
GitHub uploads to make - July 14, 2013
- #github
July 10, 2013 - july 14, 2013 code changes
ForecastIO - new repo - july 14, 2013 code changes
[x] lib / ForecastIO.pm new
[x] bin / test-forecastio-1.pl new
ToledoWX - done on July 14, 2013
[x] yml / wx.yml
[x] bin / wx-create-index...
more>>
- Jul 14, 2013
- #github
JR:
DateTimeFormatter
- /lib
DateTimeFormatter.pm - July 14, 2013
/bin
test-datetimeformatter.pl - July 14, 2013
test-datetimeformatter-2.pl - July 14, 2013
- Jul 14, 2013
JR:
Test-datetimeformatter-2.pl
- #perl
#!/usr/bin/perl -wT
use strict;
require '../lib/DateTimeFormatter.pm';
require '../lib/DateTimeUtils.pm';
my $dt1 = DateTimeFormatter::create_date_time_stamp_utc("(yearfull)-(0monthnum)-(0daynum) (24hr):(0min):(0sec)");
print " ...
more>>
- Jul 14, 2013
JR:
ForecastIO
- /lib
ForecastIO.pm - July 14, 2013
/bin
test-forecastio-1.pl - July 11, 2013
#perl
#weather
- Jul 14, 2013
JR:
Test-forecastio-1.pl
- test-forecastio-1.pl
# perl
#!/usr/bin/perl -wT
use strict;
$|++;
BEGIN {
unshift @INC, "../lib";
}
use Weather::ForecastIO;
print "Executing program: $0\n\n";
my $api_key = "api key";
my $latitude = "41.665556";
my $longi...
more>>
2 min read
- Jul 14, 2013
JR:
DateTimeUtils
- /lib
DateTimeUtils.pm - July 14, 2013
#perl
- Jul 14, 2013
JR:
Test-datetimeformatter.pl
- test-datetimeformatter.pl
#perl
#!/usr/bin/perl -wT
use strict;
use Time::Local;
use Data::Dumper;
require '../lib/DateTimeFormatter.pm';
require '../lib/DateTimeUtils.pm';
print EOTEXT;
year (int) (only year number like 1...
more>>
1 min read
- Jul 14, 2013
JR:
Maybe add paraperms
- Something I wanted to add, and I think started to add to ToledoTalk.com/parula code, but I never completed.
Like "Purple Numbers" in the old Meatball Wiki code.
Permalinks at the paragraph level.
Make it an option.
paraperms=yes
#junco
#todo_...
more>>
- Jul 14, 2013
- #junco #todo_later
JR:
July 11, 2013 stories to read
- https://blog.dropbox.com/2013/07/dbx/
#toread
- Jul 11, 2013
JR:
Perl commands - exists versus defined
- if (defined $hash{$key}) { }
if (exists $hash{$key}) { }
defined checks to see if value for key is not undef. so key may exists but it was assigned undef.
exists checks to see if the key exists.
defined $hash{key} tells you whether or not the va...
more>>
- Jul 11, 2013
- #perl
JR:
July 10, 2013 area storm reports
- Cle NWS
000
NWUS53 KIWX 110032
LSRIWX
PRELIMINARY LOCAL STORM REPORT
NATIONAL WEATHER SERVICE NORTHERN INDIANA
832 PM EDT WED JUL 10 2013
..TIME... ...EVENT... ...CITY LOCATION... ...LAT.LON...
..DATE... ....MAG.... ..COUNTY L...
more>>
15 min read
- Jul 10, 2013
- #weather #storm
JR:
Perl example of hash-style object oriented code with multiple packages per module
- # tags #perl #programming #objectoriented
### test-pc3.pl
#!/usr/bin/perl -wT
require '../lib/PC3.pm';
print "\n### Testing PC3.pm ###\n\n";
print "Object A\n\n";
print "init A with (A rank 1) and (A suit 1)\n";
my $a = PC3A-new("A r...
more>>
2 min read
- Jul 10, 2013
JR:
Design principle - Fewer choices mean fewer worries
- People love having choices, because having choices means having freedom. Well, we don't think this is necessarily a good thing when it comes to usability.
We believe that when someone wants to do something on their computer, they want to spend thei...
more>>
1 min read
- Jul 09, 2013
- #design #simplicity