Subroutine getCategories redefined at lib/WordPress/Base/XMLRPC.pm line 444. ### -------------------------- ### $method_name: 'getPage' ERROR:faultString Bad login/pass combination. ERROR:faultCode 403 ### $return_value: undef ### -------------------------- ### $method_name: 'getPages' ### $return_value: [ ### { ### categories => [ ### 'Uncategorized' ### ], ### dateCreated => '20061113T11:08:22', ### date_created_gmt => '20061113T19:08:22', ### description => 'This is my playground. My playground is not a toy. There are no toys in my playground. I am a.... Hm. Ex artist.. "Dad".. Ex to many a woman. Etcetera. Whatever. I smoke. Lots, it seems lately that be the case.
-----BEGIN GEEK CODE BLOCK----- Version: 3.1 GFA/IT/P dpu@ s:-- a C+++$ UL++$ P+++$ L+++$ E--- W+++ N++ o? K? w--- !o M- V? PS+++ PE-- Y+ PGP t 5 X+ R !tv b+++ DI++ D+ G e+ h* r+ y*>$ ------END GEEK CODE BLOCK------', ### excerpt => '', ### link => 'http://leocharre.com/about/', ### mt_allow_comments => '1', ### mt_allow_pings => '1', ### page_id => '2', ### page_status => 'publish', ### permaLink => 'http://leocharre.com/about/', ### text_more => '', ### title => 'About Moi', ### userid => '2', ### wp_author => 'leocharre', ### wp_author_display_name => 'leocharre', ### wp_author_id => '2', ### wp_page_order => '0', ### wp_page_parent_id => '0', ### wp_page_parent_title => '', ### wp_password => '', ### wp_slug => 'about' ### }, ### { ### categories => [ ### 'Uncategorized' ### ], ### dateCreated => '20080110T08:59:32', ### date_created_gmt => '20080110T16:59:32', ### description => 'Development on linux rocks. At first it felt strange and limited- Like the guis (graphical user interface(s)) were missing. Most of coding and development happens on the terminal (the command line). There are several command line tools that are little added candy bonuses to working. vim The text editor. This is what you use to write and edit code. cvs This is probably my fave, after vim. It keeps track of projects. At first it will seem like added stress, more work to do. It\'s a creepy thing before you get used to it. I couldn\'t develop without cvs anymore. I would cry. tree List a hierarchy tree of files, instead of firing up a file browser, you can see your way around. convert and mogrify Make a million thumbnails without touching gimp or photoshop. Perfect and without human intervention. ', ### excerpt => '', ### link => 'http://leocharre.com/cool-linux-commands/', ### mt_allow_comments => '1', ### mt_allow_pings => '0', ### page_id => '74', ### page_status => 'publish', ### permaLink => 'http://leocharre.com/cool-linux-commands/', ### text_more => '', ### title => 'cool linux commands', ### userid => '2', ### wp_author => 'leocharre', ### wp_author_display_name => 'leocharre', ### wp_author_id => '2', ### wp_page_order => '0', ### wp_page_parent_id => '0', ### wp_page_parent_title => '', ### wp_password => '', ### wp_slug => 'cool-linux-commands' ### }, ### { ### categories => [ ### 'Uncategorized' ### ], ### dateCreated => '20080110T09:20:20', ### date_created_gmt => '20080110T17:20:20', ### description => 'One of the dumbest things I used to do in making web pages was to resize images and make thumbnails in \'photoshop\'. The next less dumb thing I did was to script thumbnailing. To allow a server to make the thumbnails instantly. Then I got comfortable with things like convert and mogrify. Both of these are interfaces to image magick. These are used via the command line, the terminal. You feed them a list of one or more images (by path) and what to do with them. Here\'s a big thing to not forget:
convert makes copies of the original images mogrify changes the original images
convert ./original.jpg -resize 800x800 ./copy.jpg
Do it to the original:
mogrify -resize 800x800 ./original.jpg
So let\'s have a more useful example. I downloaded images from my camera. And I want to resize them and make thumbnails. My originals reside in ~/images/set1. (Whenever you see a ~ symbol it means \'home\' to the computer, usually /home/yourlogin)
cp -R /home/myself/images/set1 /home/myself/images/set1post # 1
cd /home/myself/images/set1post #2
mogrify -resize 800x800 ./*jpg #3
find ./*jpg -exec convert \'{}\' -resize 100x100 \'{}\'small \\; #4
rename \'.jpgsmall\' \'_small.jpg\' ./* #5
First of all, it\'s safe to leave the # marks, these are interpreted as comments, thus ignored.
1) Let\'s replicate the directory set of images first, recursively.
2) Change into the new directory
3) Change the originals to be no more wide or tall then 800px, for the web.
4) Use find to convert the files from image.jpg to image.jpgsmall, for all of them, this way we ahve copies.
5) Name the files properly, anywhere we see something like \'.jpgsmall\', change it to \'_small.jpg\'
convert ./original_image.tif ./converted_image.jpg
',
### excerpt => '',
### link => 'http://leocharre.com/cool-linux-commands/command-line-image-magick-convert-and-mogrify/',
### mt_allow_comments => '1',
### mt_allow_pings => '0',
### page_id => '75',
### page_status => 'publish',
### permaLink => 'http://leocharre.com/cool-linux-commands/command-line-image-magick-convert-and-mogrify/',
### text_more => '',
### title => 'convert and mogrify',
### userid => '2',
### wp_author => 'leocharre',
### wp_author_display_name => 'leocharre',
### wp_author_id => '2',
### wp_page_order => '0',
### wp_page_parent_id => '74',
### wp_page_parent_title => 'cool linux commands',
### wp_password => '',
### wp_slug => 'command-line-image-magick-convert-and-mogrify'
### },
### {
### categories => [
### 'Uncategorized'
### ],
### dateCreated => '20080105T18:57:24',
### date_created_gmt => '20080106T02:57:24',
### description => 'These tools are useful for development.
Most of the time you work on the terminal, and to find your way around a project you use things like find, ls, and tab completion.
If you need more of a bird\'s eye view, you may fire up a gui browser like konqueror. But that\'s a gui, and guis are for users.
Another option is tree. Here is example output of tree:
[leo@localhost devel]$ tree
.
`-- WordPress
|-- bin
| `-- wppost
|-- lib
| `-- WordPress
| |-- Base.pm
| `-- Post.pm
|-- t
|-- wp-content
| `-- plugins
| |-- akismet
| | |-- akismet.gif
| | `-- akismet.php
| |-- hello.php
| |-- pictpress.php
| |-- pm_admin_menu.php
| |-- postmaster
| | `-- readme.txt
| |-- postmaster.php
| `-- wp-db-backup.php
|-- wp-mail.php
`-- xmlrpc.php
9 directories, 13 files
What if you want to do something a tiny bit more intricate?
If you are working inside a cvs tree.. things can get pretty crazy.
Here is default tree output in a cvs filesystem hierarcy slice:
[leo@localhost PDF-OCR]$ tree
|-- CVS
| |-- Entries
| |-- Entries.Log
| |-- Repository
| `-- Root
|-- INSTALL
|-- MANIFEST
|-- META.yml
|-- Makefile.PL
|-- PDF-OCR-1.02.tar.gz
|-- PDF-OCR-1.03.tar.gz
|-- PDF-OCR-1.04.tar.gz
|-- README
|-- bin
| |-- CVS
| | |-- Entries
| | |-- Repository
| | `-- Root
| |-- ocr
| |-- pdf2ocr
| |-- pdf2ocrturntotext
| `-- pdfgetext
|-- lib
| |-- CVS
| | |-- Entries
| | |-- Entries.Log
| | |-- Repository
| | `-- Root
| |-- Image
| | |-- CVS
| | | |-- Entries
| | | |-- Entries.Log
| | | |-- Repository
| | | `-- Root
| | `-- OCR
| | `-- CVS
| | |-- Entries
| | |-- Repository
| | `-- Root
| `-- PDF
| |-- CVS
| | |-- Entries
| | |-- Entries.Log
| | |-- Repository
| | `-- Root
| |-- OCR
| | |-- CVS
| | | |-- Entries
| | | |-- Entries.Log
| | | |-- Repository
| | | `-- Root
| | |-- Thorough
| | | |-- CVS
| | | | |-- Entries
| | | | |-- Repository
| | | | `-- Root
| | | `-- Cached.pm
| | `-- Thorough.pm
| `-- OCR.pm
`-- t
|-- 00_dependencies_check.t
|-- 01_PDF_OCR.t
|-- 2_PDFOCRThorough.t
|-- 3_PDFOCRThoroughCached.t
|-- CVS
| |-- Entries
| |-- Entries.Log
| |-- Repository
| `-- Root
|-- dyer
| |-- CVS
| | |-- Entries
| | |-- Repository
| | `-- Root
| |-- file1.pdf
| |-- file1ap.pdf
| |-- file2.pdf
| |-- file2ap.pdf
| |-- file3.pdf
| |-- file4.pdf
| `-- file5ap.pdf
`-- scan1.pdf
19 directories, 63 files
Wohoa.. that\'s a lot of junk to look over.. What if we just want to see the roject files, not the cvs files..
Here\'s what we can do, use the parameter -I CVS, this excludes things matching a pattern match:
[leo@localhost PDF-OCR]$ tree -I CVS
|-- INSTALL
|-- MANIFEST
|-- META.yml
|-- Makefile.PL
|-- PDF-OCR-1.02.tar.gz
|-- PDF-OCR-1.03.tar.gz
|-- PDF-OCR-1.04.tar.gz
|-- README
|-- bin
| |-- ocr
| |-- pdf2ocr
| |-- pdf2ocrturntotext
| `-- pdfgetext
|-- lib
| |-- Image
| | `-- OCR
| `-- PDF
| |-- OCR
| | |-- Thorough
| | | `-- Cached.pm
| | `-- Thorough.pm
| `-- OCR.pm
`-- t
|-- 00_dependencies_check.t
|-- 01_PDF_OCR.t
|-- 2_PDFOCRThorough.t
|-- 3_PDFOCRThoroughCached.t
|-- dyer
| |-- file1.pdf
| |-- file1ap.pdf
| |-- file2.pdf
| |-- file2ap.pdf
| |-- file3.pdf
| |-- file4.pdf
| `-- file5ap.pdf
`-- scan1.pdf
19 directories, 63 files
Pretty cool, huh?
It\'s very useful to me when I\'m busy on a more complex project and I need to get around, and I don\'t want to use a damn gui to browse a filesystem section.
installing tree
Tree is not a standard command. You must install it with yum or build it on your machine.
',
### excerpt => '',
### link => 'http://leocharre.com/cool-linux-commands/cool-linux-commands-tree/',
### mt_allow_comments => '1',
### mt_allow_pings => '0',
### page_id => '43',
### page_status => 'publish',
### permaLink => 'http://leocharre.com/cool-linux-commands/cool-linux-commands-tree/',
### text_more => '',
### title => 'tree',
### userid => '2',
### wp_author => 'leocharre',
### wp_author_display_name => 'leocharre',
### wp_author_id => '2',
### wp_page_order => '0',
### wp_page_parent_id => '74',
### wp_page_parent_title => 'cool linux commands',
### wp_password => '',
### wp_slug => 'cool-linux-commands-tree'
### },
### {
### categories => [
### 'Uncategorized'
### ],
### dateCreated => '20080122T09:46:53',
### date_created_gmt => '20080122T17:46:53',
### description => '',
### excerpt => '',
### link => 'http://leocharre.com/elsewhere/',
### mt_allow_comments => '1',
### mt_allow_pings => '1',
### page_id => '88',
### page_status => 'publish',
### permaLink => 'http://leocharre.com/elsewhere/',
### text_more => '',
### title => 'Elsewhere',
### userid => '2',
### wp_author => 'leocharre',
### wp_author_display_name => 'leocharre',
### wp_author_id => '2',
### wp_page_order => '0',
### wp_page_parent_id => '0',
### wp_page_parent_title => '',
### wp_password => '',
### wp_slug => 'elsewhere'
### },
### {
### categories => [
### 'Uncategorized'
### ],
### dateCreated => '20080123T20:35:47',
### date_created_gmt => '20080124T04:35:47',
### description => 'Let\'s say our location is 10415 Armory Road Kensington MD 20895
or something else..
',
### excerpt => '',
### link => 'http://leocharre.com/gmap-test/',
### mt_allow_comments => '0',
### mt_allow_pings => '0',
### page_id => '90',
### page_status => 'publish',
### permaLink => 'http://leocharre.com/gmap-test/',
### text_more => '',
### title => 'GMap test',
### userid => '2',
### wp_author => 'leocharre',
### wp_author_display_name => 'leocharre',
### wp_author_id => '2',
### wp_page_order => '0',
### wp_page_parent_id => '0',
### wp_page_parent_title => '',
### wp_password => '',
### wp_slug => 'gmap-test'
### },
### {
### categories => [
### 'Uncategorized'
### ],
### dateCreated => '20080121T12:38:30',
### date_created_gmt => '20080121T20:38:30',
### description => 'These are some interesting resources online.',
### excerpt => '',
### link => 'http://leocharre.com/perl-resources/',
### mt_allow_comments => '0',
### mt_allow_pings => '0',
### page_id => '87',
### page_status => 'publish',
### permaLink => 'http://leocharre.com/perl-resources/',
### text_more => '',
### title => 'Resources',
### userid => '2',
### wp_author => 'leocharre',
### wp_author_display_name => 'leocharre',
### wp_author_id => '2',
### wp_page_order => '0',
### wp_page_parent_id => '0',
### wp_page_parent_title => '',
### wp_password => '',
### wp_slug => 'perl-resources'
### }
### ]
### --------------------------
### $method_name: 'newPage'
ERROR:faultString Bad login/pass combination.
ERROR:faultCode 403
### $return_value: undef
### --------------------------
### $method_name: 'deletePage'
ERROR:faultString Sorry, no such page.
ERROR:faultCode 404
### $return_value: undef
### --------------------------
### $method_name: 'editPage'
ERROR:faultString Bad login/pass combination.
ERROR:faultCode 403
### $return_value: undef
### --------------------------
### $method_name: 'getPageList'
### $return_value: [
### {
### dateCreated => '20061113T11:08:22',
### date_created_gmt => '20061113T19:08:22',
### page_id => '2',
### page_parent_id => '0',
### page_title => 'About Moi'
### },
### {
### dateCreated => '20080105T18:57:24',
### date_created_gmt => '20080106T02:57:24',
### page_id => '43',
### page_parent_id => '74',
### page_title => 'tree'
### },
### {
### dateCreated => '20080110T08:59:32',
### date_created_gmt => '20080110T16:59:32',
### page_id => '74',
### page_parent_id => '0',
### page_title => 'cool linux commands'
### },
### {
### dateCreated => '20080110T09:20:20',
### date_created_gmt => '20080110T17:20:20',
### page_id => '75',
### page_parent_id => '74',
### page_title => 'convert and mogrify'
### },
### {
### dateCreated => '20080121T12:38:30',
### date_created_gmt => '20080121T20:38:30',
### page_id => '87',
### page_parent_id => '0',
### page_title => 'Resources'
### },
### {
### dateCreated => '20080122T09:46:53',
### date_created_gmt => '20080122T17:46:53',
### page_id => '88',
### page_parent_id => '0',
### page_title => 'Elsewhere'
### },
### {
### dateCreated => '20080123T20:35:47',
### date_created_gmt => '20080124T04:35:47',
### page_id => '90',
### page_parent_id => '0',
### page_title => 'GMap test'
### }
### ]
### --------------------------
### $method_name: 'getAuthors'
### $return_value: [
### {
### display_name => 'leocharre',
### user_id => '2',
### user_login => 'leocharre'
### },
### {
### display_name => 'chamilton',
### user_id => '3',
### user_login => 'chamilton'
### }
### ]
### --------------------------
### $method_name: 'getCategories'
### $return_value: [
### {
### categoryId => '4',
### categoryName => 'art',
### description => 'art',
### htmlUrl => 'http://leocharre.com/articles/category/art/',
### parentId => '0',
### rssUrl => 'http://leocharre.com/articles/category/art/feed/'
### },
### {
### categoryId => '6',
### categoryName => 'cool linux commands',
### description => 'cool linux commands',
### htmlUrl => 'http://leocharre.com/articles/category/cool-linux-commands/',
### parentId => '0',
### rssUrl => 'http://leocharre.com/articles/category/cool-linux-commands/feed/'
### },
### {
### categoryId => '5',
### categoryName => 'near life experience',
### description => 'near life experience',
### htmlUrl => 'http://leocharre.com/articles/category/near-life-experience/',
### parentId => '0',
### rssUrl => 'http://leocharre.com/articles/category/near-life-experience/feed/'
### },
### {
### categoryId => '2',
### categoryName => 'perl',
### description => 'perl',
### htmlUrl => 'http://leocharre.com/articles/category/perl/',
### parentId => '0',
### rssUrl => 'http://leocharre.com/articles/category/perl/feed/'
### },
### {
### categoryId => '3',
### categoryName => 'posix',
### description => 'posix',
### htmlUrl => 'http://leocharre.com/articles/category/posix/',
### parentId => '0',
### rssUrl => 'http://leocharre.com/articles/category/posix/feed/'
### },
### {
### categoryId => '1',
### categoryName => 'Uncategorized',
### description => 'Uncategorized',
### htmlUrl => 'http://leocharre.com/articles/category/uncategorized/',
### parentId => '0',
### rssUrl => 'http://leocharre.com/articles/category/uncategorized/feed/'
### }
### ]
### --------------------------
### $method_name: 'newCategory'
ERROR:faultString Sorry, the new category failed.
ERROR:faultCode 500
### $return_value: undef
### --------------------------
### $method_name: 'suggestCategories'
### $return_value: [
### {
### cat_ID => {
### data => '4',
### type => 'string'
### },
### cat_name => {
### data => 'art',
### type => 'string'
### },
### category_count => {
### data => '0',
### type => 'string'
### },
### category_description => {
### data => '',
### type => 'string'
### },
### category_nicename => {
### data => 'art',
### type => 'string'
### },
### category_parent => {
### data => '0',
### type => 'string'
### },
### count => {
### data => '0',
### type => 'string'
### },
### description => {
### data => '',
### type => 'string'
### },
### name => {
### data => 'art',
### type => 'string'
### },
### parent => {
### data => '0',
### type => 'string'
### },
### slug => {
### data => 'art',
### type => 'string'
### },
### taxonomy => 'category',
### term_group => '0',
### term_id => {
### data => '4',
### type => 'string'
### },
### term_taxonomy_id => '4'
### },
### {
### cat_ID => {
### data => '6',
### type => 'string'
### },
### cat_name => {
### data => 'cool linux commands',
### type => 'string'
### },
### category_count => {
### data => '4',
### type => 'string'
### },
### category_description => {
### data => '',
### type => 'string'
### },
### category_nicename => {
### data => 'cool-linux-commands',
### type => 'string'
### },
### category_parent => {
### data => '0',
### type => 'string'
### },
### count => {
### data => '4',
### type => 'string'
### },
### description => {
### data => '',
### type => 'string'
### },
### name => {
### data => 'cool linux commands',
### type => 'string'
### },
### parent => {
### data => '0',
### type => 'string'
### },
### slug => {
### data => 'cool-linux-commands',
### type => 'string'
### },
### taxonomy => 'category',
### term_group => '0',
### term_id => {
### data => '6',
### type => 'string'
### },
### term_taxonomy_id => '6'
### },
### {
### cat_ID => {
### data => '5',
### type => 'string'
### },
### cat_name => {
### data => 'near life experience',
### type => 'string'
### },
### category_count => {
### data => '5',
### type => 'string'
### },
### category_description => {
### data => '',
### type => 'string'
### },
### category_nicename => {
### data => 'near-life-experience',
### type => 'string'
### },
### category_parent => {
### data => '0',
### type => 'string'
### },
### count => {
### data => '5',
### type => 'string'
### },
### description => {
### data => '',
### type => 'string'
### },
### name => {
### data => 'near life experience',
### type => 'string'
### },
### parent => {
### data => '0',
### type => 'string'
### },
### slug => {
### data => 'near-life-experience',
### type => 'string'
### },
### taxonomy => 'category',
### term_group => '0',
### term_id => {
### data => '5',
### type => 'string'
### },
### term_taxonomy_id => '5'
### },
### {
### cat_ID => {
### data => '2',
### type => 'string'
### },
### cat_name => {
### data => 'perl',
### type => 'string'
### },
### category_count => {
### data => '3',
### type => 'string'
### },
### category_description => {
### data => '',
### type => 'string'
### },
### category_nicename => {
### data => 'perl',
### type => 'string'
### },
### category_parent => {
### data => '0',
### type => 'string'
### },
### count => {
### data => '3',
### type => 'string'
### },
### description => {
### data => '',
### type => 'string'
### },
### name => {
### data => 'perl',
### type => 'string'
### },
### parent => {
### data => '0',
### type => 'string'
### },
### slug => {
### data => 'perl',
### type => 'string'
### },
### taxonomy => 'category',
### term_group => '0',
### term_id => {
### data => '2',
### type => 'string'
### },
### term_taxonomy_id => '2'
### },
### {
### cat_ID => {
### data => '3',
### type => 'string'
### },
### cat_name => {
### data => 'posix',
### type => 'string'
### },
### category_count => {
### data => '9',
### type => 'string'
### },
### category_description => {
### data => '',
### type => 'string'
### },
### category_nicename => {
### data => 'posix',
### type => 'string'
### },
### category_parent => {
### data => '0',
### type => 'string'
### },
### count => {
### data => '9',
### type => 'string'
### },
### description => {
### data => '',
### type => 'string'
### },
### name => {
### data => 'posix',
### type => 'string'
### },
### parent => {
### data => '0',
### type => 'string'
### },
### slug => {
### data => 'posix',
### type => 'string'
### },
### taxonomy => 'category',
### term_group => '0',
### term_id => {
### data => '3',
### type => 'string'
### },
### term_taxonomy_id => '3'
### },
### {
### cat_ID => {
### data => '1',
### type => 'string'
### },
### cat_name => {
### data => 'Uncategorized',
### type => 'string'
### },
### category_count => {
### data => '9',
### type => 'string'
### },
### category_description => {
### data => '',
### type => 'string'
### },
### category_nicename => {
### data => 'uncategorized',
### type => 'string'
### },
### category_parent => {
### data => '0',
### type => 'string'
### },
### count => {
### data => '9',
### type => 'string'
### },
### description => {
### data => '',
### type => 'string'
### },
### name => {
### data => 'Uncategorized',
### type => 'string'
### },
### parent => {
### data => '0',
### type => 'string'
### },
### slug => {
### data => 'uncategorized',
### type => 'string'
### },
### taxonomy => 'category',
### term_group => '0',
### term_id => {
### data => '1',
### type => 'string'
### },
### term_taxonomy_id => '1'
### }
### ]
### --------------------------
### $method_name: 'uploadFile'
ERROR:faultString Bad login/pass combination.
ERROR:faultCode 403
### $return_value: undef
### --------------------------
### $method_name: 'newPost'
ERROR:faultString Sorry, your entry could not be posted. Something wrong happened.
ERROR:faultCode 500
### $return_value: undef
### --------------------------
### $method_name: 'editPost'
ERROR:faultString Bad login/pass combination.
ERROR:faultCode 403
### $return_value: undef
### --------------------------
### $method_name: 'getPost'
ERROR:faultString Bad login/pass combination.
ERROR:faultCode 403
### $return_value: undef
### --------------------------
### $method_name: 'getRecentPosts'
### $return_value: [
### {
### categories => [
### 'Uncategorized'
### ],
### dateCreated => '20080130T14:19:05',
### date_created_gmt => '20080130T22:19:05',
### description => 'test description here',
### link => 'http://leocharre.com/articles/test_1201731544/',
### mt_allow_comments => '1',
### mt_allow_pings => '1',
### mt_excerpt => '',
### mt_keywords => '',
### mt_text_more => '',
### permaLink => 'http://leocharre.com/articles/test_1201731544/',
### postid => '119',
### title => 'test_1201731544',
### userid => '2',
### wp_author_display_name => 'leocharre',
### wp_author_id => '2',
### wp_password => '',
### wp_slug => 'test_1201731544'
### },
### {
### categories => [
### 'Uncategorized'
### ],
### dateCreated => '20080129T12:26:46',
### date_created_gmt => '20080129T20:26:46',
### description => 'This is the content that will be slurped up.
This is more bla..
This example will work on client side only. If you want to change prefix
on server side you should override default serializer. See
examples/server/soap.* for examples.
access to any method
If for some reason you want to get access to remote procedures that
have the same name as methods of SOAP::Lite object these calls
(obviously) won\'t be dispatched. In that case you can originate your
call trough call()
More content bla bla.
',
### link => 'http://leocharre.com/articles/test-post-from-file/',
### mt_allow_comments => '1',
### mt_allow_pings => '1',
### mt_excerpt => '',
### mt_keywords => '',
### mt_text_more => '',
### permaLink => 'http://leocharre.com/articles/test-post-from-file/',
### postid => '118',
### title => 'Test Post From File',
### userid => '2',
### wp_author_display_name => 'leocharre',
### wp_author_id => '2',
### wp_password => '',
### wp_slug => 'test-post-from-file'
### },
### {
### categories => [
### 'near life experience'
### ],
### dateCreated => '20080129T10:27:11',
### date_created_gmt => '20080129T18:27:11',
### description => 'This is the "Tao te ching". It is a collection of 81 "poems" that make up a philosophy.
The Tao was written by Lao Tzu.
There are many translations of the Tao. Here is the version that I prefer. It was made by a
scholar named Wing Tsit Chan.
The version is not easily found, the book is out of print.
Thus, when I found it again, I placed it here so that others looking for the Wing Tsit Chan Translation of the Tao may have an easier time finding it.
tao te ching translated by wing tsit chan',
### link => 'http://leocharre.com/articles/tao-te-ching-translated-by-wing-tsit-chan/',
### mt_allow_comments => '1',
### mt_allow_pings => '1',
### mt_excerpt => '',
### mt_keywords => '',
### mt_text_more => '',
### permaLink => 'http://leocharre.com/articles/tao-te-ching-translated-by-wing-tsit-chan/',
### postid => '110',
### title => 'tao te ching translated by wing tsit chan',
### userid => '2',
### wp_author_display_name => 'leocharre',
### wp_author_id => '2',
### wp_password => '',
### wp_slug => 'tao-te-ching-translated-by-wing-tsit-chan'
### },
### {
### categories => [
### 'Uncategorized'
### ],
### dateCreated => '20080129T10:22:17',
### date_created_gmt => '20080129T18:22:17',
### description => 'I code for a living. I need a lot of text on two screens at all times.
I need the best monitor possible so that my eyes will not burn out and I won\'t be able to keep working.
If the company I work for did not buy me the hardware I need, I would go out and buy it myself.
I am a recent convert to lcd screens.
There are a couple of peculiarities about the ViewSonic VA903b that I have learned and want to share.
I have two of these, and for a little while I wanted to chuck them out with the bath water.
Two things that could be happening with the VA903b to give you a moire effect, a blurry image:
1) If you see ghosting of light letters on a dark background: check the cable on the back of the monitor, make sure it is plugged in properly.
Wiggle it a bit, and the ghosting dissappears. If the cable is too tight from being far from the computer, your image is bad.
2) Check the horizontal size of your screen. I noticed that the auto adjust does not automatically adjust the horizontonal size of the screen.
I also noticed that there is a sweet spot just under the total number of cells on the screen. This setting is *more* important then the "fine tune"
option on the "manual adjust" menu.
Having figured those two things out, I love my monitors way past my old CRTs. I don\'t know that I could ever use a CRT again.',
### link => 'http://leocharre.com/articles/viewsonic-va903b/',
### mt_allow_comments => '1',
### mt_allow_pings => '1',
### mt_excerpt => '',
### mt_keywords => 'VA903b, ViewSonic VA903b',
### mt_text_more => '',
### permaLink => 'http://leocharre.com/articles/viewsonic-va903b/',
### postid => '109',
### title => 'ViewSonic VA903b',
### userid => '2',
### wp_author_display_name => 'leocharre',
### wp_author_id => '2',
### wp_password => '',
### wp_slug => 'viewsonic-va903b'
### },
### {
### categories => [
### 'cool linux commands',
### 'posix'
### ],
### dateCreated => '20080129T10:17:13',
### date_created_gmt => '20080129T18:17:13',
### description => '
Ingredients:
So I get a camera, and take pictures.. now what? I got linux. I thought this may be complicated.. But guess what..
Make sure gphoto2 is installed. If not.. open shell cli prompt (whatever) and become su, then # yum -y install gphoto2, wait for it to complete..
Make your dir to receive photos, change to it.. then # gphoto2 -P
All your photos are downloaded to your current working dir. Now, delete the photos.. # gphoto2 -DR .. All the photos are deleted from your camera.
Done. That\'s it. No mouse clicking. No stupid dialogues. Wow.
', ### link => 'http://leocharre.com/articles/downloading-images-from-a-camera-with-linux/', ### mt_allow_comments => '1', ### mt_allow_pings => '1', ### mt_excerpt => '', ### mt_keywords => 'gphoto2', ### mt_text_more => '', ### permaLink => 'http://leocharre.com/articles/downloading-images-from-a-camera-with-linux/', ### postid => '108', ### title => 'Downloading Images from a Camera with Linux', ### userid => '2', ### wp_author_display_name => 'leocharre', ### wp_author_id => '2', ### wp_password => '', ### wp_slug => 'downloading-images-from-a-camera-with-linux' ### }, ### { ### categories => [ ### 'Uncategorized' ### ], ### dateCreated => '20080127T18:30:21', ### date_created_gmt => '20080128T02:30:21', ### description => 'So, I saw Marie Antoinette. Turns out this movie is directed by Sofia Coppola. I loved Lost in Translation. The good thing about that movie, is that what is on the verge of happening throughout the whole thing never does happen. And you\'re left with this beautiful sweet taste of a sin half way committed. In the movie Marie Antoinette, you know what\'s going to happen. The main characters of the movie are all going to be killed. The whole movie plays like a children\'s show, very flowery. So you think- this is good. Can\'t wait to see where this ends up very witty- this must be showing the situation from their standpoint.. You\'re just.. la dee da.. and look at the pretty flowers, and the sunlight and then - oh no, we\'re dead! The End. Movie over.. aha! What a great movie.. but no. Sorry Sofia Coppola. You suck here. You can\'t use the same formula and get away with it, not here. This screenplay had a chance to actually be witty, to leave some kind of an aftertaste in your eyeballs, nut nooOOOoooo... I\'m Sofia Coppola, I\'m going to make a joke without a punchline and you\'re all going to laugh anyway. Well, I ain\'t laughing. Nor is your father, Francis Ford Coppola. I know it. I know he\'s shaking his head and thinking *tsk* *tsk* - and you\'re like.. "Why daddy! Why! It *is* a good movie! It\'s a fucking masterpiece! It\'s a great movie, daddy!!! buahahhhahahahaah!" And daddy don\'t say nuthin\' does he?! Maybe he nods and says \'yes honey, you made a movie.\' But, I wanna be like daddy!!! Sorry, it takes more then a dick and balls to make Francis Ford Coppola, Sofia. Ps. Gotta tell ya though, incredibly good score. The Strokes.. Joy Division. Almost made the movie good. Try it without the video next time, should be cheaper to make.
2. Enter whatever data you want, a title, address lines 1 through 3, city, state, zip, etc.
3. At the bottom right we see the location widgets as visitors see them. A link to google maps
is generated, provided we have enough data to suggest an address.
wppost -t \'title of the post\' -c stuff,fruit,cake -i \'This is what I think of bla.\'You can also write a text file, the name of the text file is the title.
wppost -i ./path/to/title_of_the_post.txtThis program is in its infancy. But dammit, it works. It\'s how I posted this content via the command like. Also, you can include images in your posts. Multiple images. Via the command line. Anything not in the argument is considered posting content.. So what if your post if about a party you went to, and you have 5 pictures.. First write your halloween_party.txt file, then have your photos lined up somewhere.. then..
wppost -i halloween_party.txt ./images/halloween_photos_post/*jpgDone. Linux rocks. ', ### link => 'http://leocharre.com/articles/posting-to-wordpress-via-the-command-line/', ### mt_allow_comments => '1', ### mt_allow_pings => '1', ### mt_excerpt => '', ### mt_keywords => 'cli, command line wordpress post, wordpress', ### mt_text_more => '', ### permaLink => 'http://leocharre.com/articles/posting-to-wordpress-via-the-command-line/', ### postid => '86', ### title => 'posting to wordpress via the command line', ### userid => '2', ### wp_author_display_name => 'leocharre', ### wp_author_id => '2', ### wp_password => '', ### wp_slug => 'posting-to-wordpress-via-the-command-line' ### }, ### { ### categories => [ ### 'cool linux commands' ### ], ### dateCreated => '20080120T13:25:03', ### date_created_gmt => '20080120T21:25:03', ### description => "mencoder -aoc copy -ovc copy ./file1.avi ./file1.avi -o ./out.avi mencoder is part of mplayer, you can install via yum on fedora core packages..
yum -y install mencoderI had a lot of these to join.. so.. I made a perl script that I can use use without so much fuss.. one that I don\x{2019}t have to tell it what the output file is going to be. I put it in ~/bin/avijoin
#!/usr/bin/perl
use strict;
my \$outfile = outfile();
my \@arg = (qw(mencoder -oac copy -ovc copy), \@ARGV, '-o',\$outfile);
system(\@arg) == 0 or die(\$?);
print \"Wrote:\\n\$outfile\";
exit;
sub outfile {
\@ARGV or die('missing args');
my \$outfile = \$ARGV[0];
\$outfile=~s/([^\\/]+)\\.(\\w{1,5})\$// or die;
my (\$filename,\$ext) = (uc \$1,\$2);
my \$x=0;
\$filename=~s/\\W//g;
my \$_outfile;
for(1){
\$_outfile=\"\$outfile/\$filename\$x.\$ext\";
last unless -e \$_outfile;
\$x++;
}
return \$_outfile;
}
Make sure to chmod 0755 ~/bin/avijoin
",
### link => 'http://leocharre.com/articles/how-to-join-avi-movies/',
### mt_allow_comments => '1',
### mt_allow_pings => '1',
### mt_excerpt => '',
### mt_keywords => '',
### mt_text_more => '',
### permaLink => 'http://leocharre.com/articles/how-to-join-avi-movies/',
### postid => '85',
### title => 'how to join avi movies',
### userid => '2',
### wp_author_display_name => 'leocharre',
### wp_author_id => '2',
### wp_password => '',
### wp_slug => 'how-to-join-avi-movies'
### },
### {
### categories => [
### 'cool linux commands'
### ],
### dateCreated => '20080116T18:42:42',
### date_created_gmt => '20080117T02:42:42',
### description => 'I want to go over linux rename command very quickly. It\'s a simple command but I used to find it tricky and unintuitive.
The man rename output examples of foo and bar are freaking cryptic.
So I want to show some real world examples of rename
Let\'s do a directory listing...
[leo@localhost rename_example_dir]$ ls -l total 1872 -rw-rw-r-- 1 leo leo 845805 2008-01-16 20:36 P1010591.JPG -rw-rw-r-- 1 leo leo 914240 2008-01-16 20:36 P1010624.JPG -rw-rw-r-- 1 leo leo 38167 2008-01-16 20:35 Picture 11.jpg -rw-rw-r-- 1 leo leo 29726 2008-01-16 20:35 Picture 16.jpg -rw-rw-r-- 1 leo leo 25545 2008-01-16 20:35 Picture 21.jpg -rw-rw-r-- 1 leo leo 23886 2008-01-16 20:35 Picture 22.jpg -rw-rw-r-- 1 leo leo 14736 2008-01-16 20:35 Picture 3.jpgGreat. Now, let\'s change those filenames..
[leo@localhost rename_example_dir]$ rename \'Picture \' \'PICTURE_\' ./Pictu* [leo@localhost rename_example_dir]$ ls -l total 1872 -rw-rw-r-- 1 leo leo 845805 2008-01-16 20:36 P1010591.JPG -rw-rw-r-- 1 leo leo 914240 2008-01-16 20:36 P1010624.JPG -rw-rw-r-- 1 leo leo 38167 2008-01-16 20:35 PICTURE_11.jpg -rw-rw-r-- 1 leo leo 29726 2008-01-16 20:35 PICTURE_16.jpg -rw-rw-r-- 1 leo leo 25545 2008-01-16 20:35 PICTURE_21.jpg -rw-rw-r-- 1 leo leo 23886 2008-01-16 20:35 PICTURE_22.jpg -rw-rw-r-- 1 leo leo 14736 2008-01-16 20:35 PICTURE_3.jpgOk, how about we match up the file extensions too..
[leo@localhost rename_example_dir]$ rename JPG jpg ./* [leo@localhost rename_example_dir]$ ls -l total 1872 -rw-rw-r-- 1 leo leo 845805 2008-01-16 20:36 P1010591.jpg -rw-rw-r-- 1 leo leo 914240 2008-01-16 20:36 P1010624.jpg -rw-rw-r-- 1 leo leo 38167 2008-01-16 20:35 PICTURE_11.jpg -rw-rw-r-- 1 leo leo 29726 2008-01-16 20:35 PICTURE_16.jpg -rw-rw-r-- 1 leo leo 25545 2008-01-16 20:35 PICTURE_21.jpg -rw-rw-r-- 1 leo leo 23886 2008-01-16 20:35 PICTURE_22.jpg -rw-rw-r-- 1 leo leo 14736 2008-01-16 20:35 PICTURE_3.jpgNow let\'s talk about what the heck happened. The command is..
rename $takeout $putin $towhatfilesFirst argument is what you do not want there, second argument is what you want to replace it with, third argument is a list of files, you can use wildcards and all the other freaky unix filematch operators. ', ### link => 'http://leocharre.com/articles/rename/', ### mt_allow_comments => '1', ### mt_allow_pings => '1', ### mt_excerpt => '', ### mt_keywords => '', ### mt_text_more => '', ### permaLink => 'http://leocharre.com/articles/rename/', ### postid => '81', ### title => 'rename', ### userid => '2', ### wp_author_display_name => 'leocharre', ### wp_author_id => '2', ### wp_password => '', ### wp_slug => 'rename' ### }, ### { ### categories => [ ### 'Uncategorized' ### ], ### dateCreated => '20080116T17:32:51', ### date_created_gmt => '20080117T01:32:51', ### description => ' Here\'s an example of a cgi script running so that it is profiled.. script.cgi :
#!/usr/bin/perl -d use Devel::DProf; # do whatever .....Afterwards, a tmon.out file resides alongside your script.cgi
# dprofpp -I ./tmon.outWhy the heck would you want to profile a cgi?? As I say over and over again to myself and to anyone that may happen to stand around me, I think a cgi is not a program. I think any web application is not supposed to be an application at all. I think that a web application should be an INTERFACE to a an application. A cgi may do things like manage authentication, take user input, and give feedback. That\'s all. It should NOT do crazy things like perform OCR, make calculations, generate thumbnails, etc etc. That kind of code should be developed and tested via the command line on a terminal emulator. After that works, you can make your interface, or WUI, as I like to call them. Web User Interface. Now, although your web interface may not do much but take input and spit feedback- what is going on behind the scenes may be very complicated. Sometimes your application runs great, and you get users telling you "hey, it\'s slow..". You have to perform all the things they do with their variables etc.. to see what\'s going on. Replicating a cgi environment with authentication, encryption, and god knows what else.. is a pain - in fact.. I\'ve tried a couple of times and it sucked all my energy out. Screw that. So this is the next best thing- profile a cgi run!!! It\'s wonderful- if you have a slow cgi app, this is really useful. ', ### link => 'http://leocharre.com/articles/how-to-profile-cgi/', ### mt_allow_comments => '1', ### mt_allow_pings => '1', ### mt_excerpt => '', ### mt_keywords => 'Devel::DProf, dprofpp, profile cgi, profiling cgi', ### mt_text_more => '', ### permaLink => 'http://leocharre.com/articles/how-to-profile-cgi/', ### postid => '80', ### title => 'how to profile cgi', ### userid => '2', ### wp_author_display_name => 'leocharre', ### wp_author_id => '2', ### wp_password => '', ### wp_slug => 'how-to-profile-cgi' ### }, ### { ### categories => [ ### 'perl', ### 'posix' ### ], ### dateCreated => '20080115T05:01:03', ### date_created_gmt => '20080115T13:01:03', ### description => 'I have a digital cam. I take pictures. I don\'t like a million DSCIM or DSCF or whatever files. It\'s inconvenient with so damn many. It would be nice to rename all the images according to the date, as recorded inside the image exif data, that is, the sate stamp put in by your camera. I hacked together this script to do that.. Use at your own peril. This is a hack. Eventually I will release a refined version on cpan. This scrip requires modules Image::ExifTool, LEOCHARRE::CLI ..
#!/usr/bin/perl -w
use strict;
use File::Copy;
use Cwd;
use LEOCHARRE::CLI;
# requires Image::ExifTool
#
my $o = gopts(\'m\');
#yn(\'rename all jpg files by date in \'.cwd().\'?\') or exit;
my $files = argv_aspaths();
(defined $files and scalar @$files )or die("no file arguments provided");
if ($o->{m}){
-d \'./noout\' or mkdir \'./noout\';
}
for (@$files){
$_=~/(.+)\\/([^\\/]+)$/ or next;
my $abs = $1;
my $filename = $2;
$filename=~/\\.jpg$/i or next;
print STDERR "$abs - $filename \\n" if DEBUG;
if ($filename=~/\\d{4}[_\\: ]+\\d{2}[_\\: ]+\\d{2}/){
print STDERR "file $filename already named?\\n" if DEBUG;
next;
}
my $out = `exiftool -DateTimeOriginal \'$abs/$filename\'`;
chomp $out;
unless( $out ){
print STDERR " no out? $filename\\n" if DEBUG;
if ($o->{m}){
File::Copy::move("$abs/$filename", "$abs/noout/$filename");
}
next;
}
$out=~s/^Date\\/Time Original[\\:\\s]*//i;
$out=~s/:| /_/g;
unless( $out=~/^[\\d_]+$/ ){
print STDERR "dont like [$out]\\n" if DEBUG;
next;
}
print STDERR "$filename : [$out]\\n" if DEBUG;;
rename("$abs/$filename", "$abs/$out\\_$filename");
print STDERR "moved to $abs/$out\\_$filename\\n" if DEBUG;
}
=head1 OPTION FLAGS
-m move to noout dir if cant get date
',
### link => 'http://leocharre.com/articles/rename-images-by-exif-date/',
### mt_allow_comments => '1',
### mt_allow_pings => '1',
### mt_excerpt => '',
### mt_keywords => '',
### mt_text_more => '',
### permaLink => 'http://leocharre.com/articles/rename-images-by-exif-date/',
### postid => '79',
### title => 'rename images by exif date',
### userid => '2',
### wp_author_display_name => 'leocharre',
### wp_author_id => '2',
### wp_password => '',
### wp_slug => 'rename-images-by-exif-date'
### },
### {
### categories => [
### 'near life experience'
### ],
### dateCreated => '20080115T04:07:14',
### date_created_gmt => '20080115T12:07:14',
### description => 'I love coffee.
Coffee should be hot.
The temperature, should be hot.
You should drink coffee when it\'s almost too hit for you.
If the cofee were hotter, it would hurt you.
Perhaps it hurts a little as you drink it.
Coffee should be strong.
Coffee should not be drank in large ammounts.
Coffee should be strong, and hot.
You should not need to drink large volumes of coffee.
Good coffee does not need to be drank in large ammounts.
Drinking large ammounts of good hot coffee should make even a veteran coffee drinker feel slightly uncomfortable.
Drink and smoke.
There are three drinks that go with smoking.
Coffee, acohol, and Pepsi.
I learned this long ago, when I yet was not a smoker.
Coffee should be drank black, like a woman\'s heart.
One should not put creamer or sugar in coffee.
It is permissible to do so rarely. For taste.
Use heavy cream and sugar.
Do not put non fat creamer or fake sweateners in cofee.
This is coffee. This is not about long life, this is about quality of life.
If you want to put \'shit\' in your coffee, get your coffee at McDonalds or 7Eleven.
How to Brew Coffee.
As of late my very loved method is the French Press...
To be continued.',
### link => 'http://leocharre.com/articles/coffee/',
### mt_allow_comments => '1',
### mt_allow_pings => '1',
### mt_excerpt => '',
### mt_keywords => '',
### mt_text_more => '',
### permaLink => 'http://leocharre.com/articles/coffee/',
### postid => '78',
### title => 'Coffee',
### userid => '2',
### wp_author_display_name => 'leocharre',
### wp_author_id => '2',
### wp_password => '',
### wp_slug => 'coffee'
### },
### {
### categories => [
### 'perl',
### 'posix'
### ],
### dateCreated => '20080112T17:14:24',
### date_created_gmt => '20080113T01:14:24',
### description => 'So I was doing a fresh install of my customized database api package for perl. LEOCHARRE::Database.
Goodly enough, my perl Makefile.PL let me know that I was missing DBD::mysql. Great.
I fire up cpan install DBD::mysql, and alas.. No go! How come??
Turns out you need to install mysql-client and mysql-devel.
I\'m on a fedora core gui, so I use yum..
yum -y install mysql-client mysql-devel
Great.
Now let\'s try cpan again..
cpan install DBD::mysql
It works better.. but oops.. still ..
2 tests skipped.
Failed 31/34 test scripts, 8.82% okay. 473/478 subtests failed, 1.05% okay.
make: *** [test_dynamic] Error 255
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won\'t install without force
What\'s up?
I think the mysql server\'s not running on this machine, thus, we need to install to make a full successful check via cpan.
yum -y install mysql-server
And then..
[root@localhost LEOCHARRE-Database]# /etc/init.d/mysqld status
mysqld is stopped
[root@localhost LEOCHARRE-Database]# /etc/init.d/mysqld start
Initializing MySQL database: Installing MySQL system tables...
OK
Filling help tables...
Ok
Great. Let\'s try that cpan again..
cpan install DBD::mysql
Haha! It works! :-)
',
### link => 'http://leocharre.com/articles/problems-installing-dbdmysql/',
### mt_allow_comments => '1',
### mt_allow_pings => '1',
### mt_excerpt => '',
### mt_keywords => 'DBD::mysql, DBI, mysql, perl',
### mt_text_more => '',
### permaLink => 'http://leocharre.com/articles/problems-installing-dbdmysql/',
### postid => '77',
### title => 'problems installing DBD::mysql',
### userid => '2',
### wp_author_display_name => 'leocharre',
### wp_author_id => '2',
### wp_password => '',
### wp_slug => 'problems-installing-dbdmysql'
### },
### {
### categories => [
### 'Uncategorized'
### ],
### dateCreated => '20080111T10:45:27',
### date_created_gmt => '20080111T18:45:27',
### description => 'I converted this image using stencilize, installed WordPress-Post, resolved cpan dependencies, and uploaded via the cli..


cd ~/ mkdir tmp cd tmp wget http://downloads.sourceforge.net/pagetools/pagetools-0.1.tar.gz?use_mirror=internap gunzip pagetools-0.1.tar.gz tar -xvf pagetools-0.1.tar makeAnd likely get an error about missing pbm.h WHY! Because this is provided by another package. I did a yum search
yum provides pbm.hAnd got some results. Then chose what to install..
yum install netpbm-develGreat. Then I did a \'make clean\' to wipe my previous make try..
make cleanNow run the make again..
makeAnd.. and?? What happenned?? What happened is if you look in pbm_findskew/pbm_findskew , this binary is what was compiled for you.
convert skewed.png skewed.pbm ./pbm_findskew/pbm_findskew skewed.pbmOutput is something like \'0.839234\' Great. Now.. Use that value to fix your original
mogrify -rotate "-0.839234" skewed.pngWhy minus - ? Because pbm_findskew tells you how many degrees counter clockqise you must rotate to get it straight. Check it out.
eog skewed.png
reedsolomon.cpp:54: error: explicit specialization of \x{2018}bool ReedSolomon<Galois<8u, 285u, unsigned char> >::SetInput(const std::vector<bool, std::allocator<bool> >&)\x{2019} must be introduced by \x{2018}template <>\x{2019}
reedsolomon.cpp:54: error: template-id \x{2018}SetInput<>\x{2019} for \x{2018}bool ReedSolomon<Galois<8u, 285u, unsigned char> >::SetInput(const std::vector<bool, std::allocator<bool> >&)\x{2019} does not match any template declaration
reedsolomon.cpp:54: error: invalid function declaration
reedsolomon.cpp:83: error: explicit specialization of \x{2018}bool ReedSolomon<Galois<8u, 285u, unsigned char> >::SetInput(u32)\x{2019} must be introduced by \x{2018}template <>\x{2019}
reedsolomon.cpp:83: error: template-id \x{2018}SetInput<>\x{2019} for \x{2018}bool ReedSolomon<Galois<8u, 285u, unsigned char> >::SetInput(u32)\x{2019} does not match any template declaration
reedsolomon.cpp:83: error: invalid function declaration
reedsolomon.cpp:104: error: explicit specialization of \x{2018}bool ReedSolomon<Galois<8u, 285u, unsigned char> >::Process(size_t, u32, const void*, u32, void*)\x{2019} must be introduced by \x{2018}template <>\x{2019}
reedsolomon.cpp:104: error: template-id \x{2018}Process<>\x{2019} for \x{2018}bool ReedSolomon<Galois<8u, 285u, unsigned char> >::Process(size_t, u32, const void*, u32, void*)\x{2019} does not match any template declaration
reedsolomon.cpp:104: error: invalid function declaration
reedsolomon.cpp:192: error: explicit specialization of \x{2018}bool ReedSolomon<Galois<16u, 69643u, short unsigned int> >::SetInput(const std::vector<bool, std::allocator<bool> >&)\x{2019} must be introduced by \x{2018}template <>\x{2019}
reedsolomon.cpp:192: error: template-id \x{2018}SetInput<>\x{2019} for \x{2018}bool ReedSolomon<Galois<16u, 69643u, short unsigned int> >::SetInput(const std::vector<bool, std::allocator<bool> >&)\x{2019} does not match any template declaration
reedsolomon.cpp:192: error: invalid function declaration
reedsolomon.cpp:236: error: explicit specialization of \x{2018}bool ReedSolomon<Galois<16u, 69643u, short unsigned int> >::SetInput(u32)\x{2019} must be introduced by \x{2018}template <>\x{2019}
reedsolomon.cpp:236: error: template-id \x{2018}SetInput<>\x{2019} for \x{2018}bool ReedSolomon<Galois<16u, 69643u, short unsigned int> >::SetInput(u32)\x{2019} does not match any template declaration
reedsolomon.cpp:236: error: invalid function declaration
reedsolomon.cpp:270: error: explicit specialization of \x{2018}bool ReedSolomon<Galois<16u, 69643u, short unsigned int> >::Process(size_t, u32, const void*, u32, void*)\x{2019} must be introduced by \x{2018}template <>\x{2019}
reedsolomon.cpp:270: error: template-id \x{2018}Process<>\x{2019} for \x{2018}bool ReedSolomon<Galois<16u, 69643u, short unsigned int> >::Process(size_t, u32, const void*, u32, void*)\x{2019} does not match any template declaration
reedsolomon.cpp:270: error: invalid function declaration
make[1]: *** [reedsolomon.o] Error 1
make[1]: Leaving directory `/tmp/par2cmdline-0.4'
make: *** [all] Error 2
The problem is the file reedsolomon.cpp , it's got a problem when you try to compile with gcc 4.0
Open up the magic tool and cure for all the problems in the univers: vim , and edit reedsolomon.cpp
Run this command (after pressing 'Esc' and ':' (which puts you in command mode ))
:%s/^bool ReedSolomon/template <> bool ReedSolomon/g
save the file, run make again and it should compile
",
### link => 'http://leocharre.com/articles/installing-par2-par2cmdline-on-fedora-core-4/',
### mt_allow_comments => '1',
### mt_allow_pings => '1',
### mt_excerpt => '',
### mt_keywords => 'par2',
### mt_text_more => '',
### permaLink => 'http://leocharre.com/articles/installing-par2-par2cmdline-on-fedora-core-4/',
### postid => '106',
### title => 'installing par2 par2cmdline on fedora core 4',
### userid => '2',
### wp_author_display_name => 'leocharre',
### wp_author_id => '2',
### wp_password => '',
### wp_slug => 'installing-par2-par2cmdline-on-fedora-core-4'
### },
### {
### categories => [
### 'posix'
### ],
### dateCreated => '20060815T09:58:51',
### date_created_gmt => '20060815T17:58:51',
### description => '
I wanted to index files partly based on inodes. I wanted to store metadata on files. Why work with inodes?
Possible problems.
Copying a file loses all sense to the system. That is , a copy of a file is to the system - a completely different data collection- however to the user it is the same.
Jane copies \'family fotos\' from disk a to disk b- In Jane\'s mind, these are the same. In the computer\'s mind, these might as well be jane\'s photos and the blue prints to the whitehouse. How do we keep metadata associated?
', ### link => 'http://leocharre.com/articles/linux-ext3-inode-questions/', ### mt_allow_comments => '1', ### mt_allow_pings => '1', ### mt_excerpt => '', ### mt_keywords => '', ### mt_text_more => '', ### permaLink => 'http://leocharre.com/articles/linux-ext3-inode-questions/', ### postid => '105', ### title => 'linux ext3 inode questions', ### userid => '2', ### wp_author_display_name => 'leocharre', ### wp_author_id => '2', ### wp_password => '', ### wp_slug => 'linux-ext3-inode-questions' ### }, ### { ### categories => [ ### 'near life experience' ### ], ### dateCreated => '20060731T02:00:43', ### date_created_gmt => '20060731T10:00:43', ### description => ' You can do whatever you want to dolinux kernel 2.16 Fedora Core 4 distro IBM Thinkpad 600E PII 366Mhz 198m memmory 5.6g hd.The date is June 06- no, this is not a prehistory document. This is really one of my work computers. It is sturdy, beautiful, has great review all over the net from geeks and hackers. The CD drive is bust, the battery is dead, I love it. I spent a long time looking for a card that would work with my laptop. I found one, last night it worked. It still works. It\'s a Netgear MA401RA, which is different then a netgear ma401. It works. I had to fc#x with it, but.. It\'s really something. A linux laptop with a wireless connection. ', ### link => 'http://leocharre.com/articles/netgear-ma401ra-works-with-fc4/', ### mt_allow_comments => '1', ### mt_allow_pings => '1', ### mt_excerpt => '', ### mt_keywords => '', ### mt_text_more => '', ### permaLink => 'http://leocharre.com/articles/netgear-ma401ra-works-with-fc4/', ### postid => '104', ### title => 'Netgear MA401RA works with fc4', ### userid => '2', ### wp_author_display_name => 'leocharre', ### wp_author_id => '2', ### wp_password => '', ### wp_slug => 'netgear-ma401ra-works-with-fc4' ### }, ### { ### categories => [ ### 'Uncategorized' ### ], ### dateCreated => '19991130T00:00:00', ### date_created_gmt => '19991130T00:00:00', ### description => 'OMFG, I just learned what xml-rpc is.. what it can do... holy cow. I was using it and I didn\'t even know what it was... Wow.. This is insane, the possibilities... I was experimenting with WordPress, and its xmlrpc.php file, thinking it was just one more php thing. I made some perl tools to automate content posting to wordpress, and then.. wow..', ### link => 'http://leocharre.com/?p=51', ### mt_allow_comments => '1', ### mt_allow_pings => '1', ### mt_excerpt => '', ### mt_keywords => '', ### mt_text_more => '', ### permaLink => 'http://leocharre.com/?p=51', ### postid => '51', ### title => 'xmlrpc', ### userid => '2', ### wp_author_display_name => 'leocharre', ### wp_author_id => '2', ### wp_password => '', ### wp_slug => '' ### }, ### { ### categories => [ ### 'Uncategorized' ### ], ### dateCreated => '19991130T00:00:00', ### date_created_gmt => '19991130T00:00:00', ### description => '"Why have you stooped so low as to apologize to php \'hackers\' for not knowing their inferior \'language\'. "What\'s this about php \'developer\'- there is no such thing, bro ;-) php is all good and it has its place, but that place is not in the same time period as c, perl, python, ruby, java... "I have no idea why you\'re talking like that- you must have a dark fetish with messing with the low arts. You must be a great programmer to be so humble in the face of the horror that is php- surely a language written by some passed out drunk unix hacker as a joke- a way to weed out mice from men." http://blog.xforward.com/?page_id=56#comment-15', ### link => 'http://leocharre.com/?p=40', ### mt_allow_comments => '1', ### mt_allow_pings => '1', ### mt_excerpt => '', ### mt_keywords => '', ### mt_text_more => '', ### permaLink => 'http://leocharre.com/?p=40', ### postid => '40', ### title => 'letter to brett duncavage', ### userid => '2', ### wp_author_display_name => 'leocharre', ### wp_author_id => '2', ### wp_password => '', ### wp_slug => '' ### }, ### { ### categories => [ ### 'Uncategorized' ### ], ### dateCreated => '19991130T00:00:00', ### date_created_gmt => '19991130T00:00:00', ### description => '', ### link => 'http://leocharre.com/?p=41', ### mt_allow_comments => '1', ### mt_allow_pings => '1', ### mt_excerpt => '', ### mt_keywords => '', ### mt_text_more => '', ### permaLink => 'http://leocharre.com/?p=41', ### postid => '41', ### title => 'What Makes for Good Content Presentation', ### userid => '2', ### wp_author_display_name => 'leocharre', ### wp_author_id => '2', ### wp_password => '', ### wp_slug => '' ### } ### ] ### -------------------------- ### $method_name: 'getCategories' ### $return_value: [ ### { ### categoryId => '4', ### categoryName => 'art', ### description => 'art', ### htmlUrl => 'http://leocharre.com/articles/category/art/', ### parentId => '0', ### rssUrl => 'http://leocharre.com/articles/category/art/feed/' ### }, ### { ### categoryId => '6', ### categoryName => 'cool linux commands', ### description => 'cool linux commands', ### htmlUrl => 'http://leocharre.com/articles/category/cool-linux-commands/', ### parentId => '0', ### rssUrl => 'http://leocharre.com/articles/category/cool-linux-commands/feed/' ### }, ### { ### categoryId => '5', ### categoryName => 'near life experience', ### description => 'near life experience', ### htmlUrl => 'http://leocharre.com/articles/category/near-life-experience/', ### parentId => '0', ### rssUrl => 'http://leocharre.com/articles/category/near-life-experience/feed/' ### }, ### { ### categoryId => '2', ### categoryName => 'perl', ### description => 'perl', ### htmlUrl => 'http://leocharre.com/articles/category/perl/', ### parentId => '0', ### rssUrl => 'http://leocharre.com/articles/category/perl/feed/' ### }, ### { ### categoryId => '3', ### categoryName => 'posix', ### description => 'posix', ### htmlUrl => 'http://leocharre.com/articles/category/posix/', ### parentId => '0', ### rssUrl => 'http://leocharre.com/articles/category/posix/feed/' ### }, ### { ### categoryId => '1', ### categoryName => 'Uncategorized', ### description => 'Uncategorized', ### htmlUrl => 'http://leocharre.com/articles/category/uncategorized/', ### parentId => '0', ### rssUrl => 'http://leocharre.com/articles/category/uncategorized/feed/' ### } ### ] ### -------------------------- ### $method_name: 'newMediaObject' ERROR:faultString Bad login/pass combination. ERROR:faultCode 403 ### $return_value: undef ### -------------------------- ### $method_name: 'deletePost' ERROR:faultString Bad login/pass combination. ERROR:faultCode 403 ### $return_value: undef ### -------------------------- ### $method_name: 'getTemplate' ERROR:faultString Bad login/pass combination. ERROR:faultCode 403 ### $return_value: undef ### -------------------------- ### $method_name: 'setTemplate' ERROR:faultString Bad login/pass combination. ERROR:faultCode 403 ### $return_value: undef ### -------------------------- ### $method_name: 'getUsersBlogs' ERROR:faultString Bad login/pass combination. ERROR:faultCode 403 ### $return_value: undef