Jump to content

iwato

Members
  • Content count

    1,321
  • Joined

  • Last visited

  • Days Won

    1

iwato last won the day on August 14

iwato had the most liked content!

Community Reputation

14 Good

1 Follower

About iwato

  • Rank
    Dedicated Member

Contact Methods

  • AIM
    moogoonghwa
  • Website URL
    http://www.grammarcaptive.com
  • Yahoo
    iddor
  • Skype
    kiusau

Profile Information

  • Gender
    Male
  • Location
    Seattle, Washington USA 98104

Previous Fields

  • Languages
    HTML, CSS, Javascript, PHP, MySQL and Spoken Language

Recent Profile Visitors

15,991 profile views
  1. BACKGROUND: I have recently discovered GreenSock AP that is an interesting blend of Javascript and CSS for the purpose of producing animation. Like all new such discoveries I spend a lot of time exploring before I begin coding, and as a result learn a lot of new code and make more robust what I already know. In particular, I am curious about the value of the y parameter in the following .from() tween specification. TweenLite.from($box, 1, {y: '-=40', autoAlpha: 0, ease:Power4.easeInOut}); Now, $box refers to a jQuery object where $box = $('#box') and #box refers to a div whose id attribute has been set to box. QUESTIONS: 1) In the absence of the tween could the expression y: '-=40' be rewritten as box.y = '-=40'; box.y = '-=40'; 2) When the tween is invoked there is a downward vertical displacement of the object. The statement appears to set the starting position of the tween 40 pixels higher than its final position. In discursive English what exactly does the expression '-=40' say? I am baffled by the -= syntax. Roddy
  2. iwato

    Installing MeCab

    Please ignore this question. I just discovered the source of my problem. I was not logging in at the top of folder hierarchy. Yes, that was it. Will it, however, overcome the problem that I am having accessing my hostserver? Write now I am working with both BBEdit and FETCH, but am limited in my ability to access those folders closest to my root. Roddy
  3. iwato

    Installing MeCab

    Thank you. Yes, really that was all that I was asking. Now, I recall sometime back that you recommended a terminal editor that would not cost me and arm and leg in learning costs. What was it again, please? Roddy
  4. iwato

    Installing MeCab

    OK. So, how would you determine the "install path" of any installation, if you yourself did not perform the installation? Roddy
  5. iwato

    Installing MeCab

    Firstly, thank you for your response. Now, I understand what an environmental variable is. Unfortunately, the environmental variable MYSQL_HOME is not defined for my system. The MySQL statements mysqladmin global variables and mysqladmin variables show no variable with the name MYSQL_HOME, and the list for each statement is quite long. Please consider carefully the following and advise again: The Absolute Path to the mecabrc File is: /usr/lib64/mysql/mecab/etc/mecabrc The Absolute Path to the MySQL Application is: /usr/bin/mysql What I want to know is how to fill in MYSQL_HOME in the phrase MYSQL_HOME/lib/mecab/etc/mecabrc as designated by the following MySQL directive: /usr/bin/mysql_config_editor loose-mecab-rc-file=MYSQL_HOME/lib/mecab /etc/mecabrc Could you write the phrase based upon what is given? Roddy
  6. iwato

    Installing MeCab

    The Absolute Path to the mecabrc File is: /usr/lib64/mysql/mecab/etc/mecabrc The Absolute Path to the MySQL Application is: /usr/bin/mysql What I want to know is how to fill in MYSQL_HOME in the phrase MYSQL_HOME/lib/mecab/etc/mecabrc as designated by the following MySQL directive: /usr/bin/mysql_config_editor loose-mecab-rc-file=MYSQL_HOME/lib/mecab /etc/mecabrc Could you write the phrase based upon what is given? Roddy
  7. iwato

    A Flexible PHPMailer Factory Class with Traits

    I don't get it. Please, if you would, give me one example as how to get from if ($this->use = 'newsletter') { use PHPMailerNewsletterConfig; } else if ($this->use = 'verification') { use PHPMailerVerifyConfig; } else if ($this->use = 'confirmation') { use PHPMailerConfirmConfig; } else { die('Please designate an appropriate trait'); } } to what it is that you are describing. Roddy
  8. iwato

    Installing MeCab

    Installation path? I think in terms of relative and absolute paths. What exactly do you mean by installation path? In any case, the problem in utmost clarity is the following: The Absolute Path to the mecabrc File is: /usr/lib64/mysql/mecab/etc/mecabrc The Absolute Path to the MySQL Application is: /usr/bin/mysql What I want to know is how to fill in MYSQL_HOME in the phrase MYSQL_HOME/lib/mecab/etc/mecabrc as designated by the following MySQL directive: /usr/bin/mysql_config_editor loose-mecab-rc-file=MYSQL_HOME/lib/mecab/etc/mecabrc Roddy
  9. iwato

    Getting the last 4 uploaded images from a directory

    Where and how have you stored the images? In a folder or in a data base? If in a folder does each image have a filename that reflects the order in which it was saved? If in a data base, are you using a time stamp with each entry? Roddy
  10. iwato

    A Flexible PHPMailer Factory Class with Traits

    OK. So, I have verified what you stated, but I am not very happy with your remedy, for the whole purpose of my design was to eliminate having to create new variable names for each set of mailing uses, on the one hand, and not have to enter each and every value for each and every use as an argument of a constructor function on the other. What if I were to enter the values as elements of a unique array -- one for each use -- via the constructor function. In this way I could still use the same variable names for all uses, but perform the logic within the constructor function. How then would I access the arrays? Could I include a path to each via the global.init.php file? How would this work? Roddy
  11. iwato

    Installing MeCab

    And, if it is the location, how would you write it relative to /usr/bin/mysql? Or, would you use an absolute URL? Or, does it even make a difference? Also, I have chosen to use the mysql_config_editor, because I am not permitted to enter the required directories with my usual editing software. Moreover, I do not want to learn still another Terminal editor; they are simply cumbersome and so infrequently used. I would venture to guess that this is the reason mysql_config_editor was created. Roddy
  12. iwato

    A Flexible PHPMailer Factory Class with Traits

    Certainly not without the required data. For the moment I am only concerned about the overall concept. With the exception of my if-else statements I have adhered very closely to the manual's restrictions with regard to the use of traits. There was no example for my use of the if-else statements. This I invented on my own. As far as I can tell, the trait is little more than a code-assisted cut-and-paste -- well, this is least how it has been interpreted by several PHP manual contributors. It is not a precise analogy, because traits have class-like stand alone functionality, as well. Roddy
  13. BACKGROUND: After a careful study of the use of traits I have come up with the following schema for PHPMailer factory class to cover a large variety of circumstances. ./global.init.php <?php error_reporting(E_ALL ^ E_STRICT); ini_set('error_log', __DIR__ . '/error.log'); include './php_mailer/PHPMailerAutoload.php'; include './classes/class.phpmailer_factory.php'; include './classes/trait.smtpserver_config.php'; include './classes/trait.phpmailer_newsletter_config.php'; include './classes/trait.phpmailer_verification_config.php': include './classes/trait.phpmailer_confirmation_config.php'; ?> trait.smtpserver_config.php <?php trait SmtpServerConfig { static $smtp_server = ''; static $smtp_port = ''; } ?> trait.phpmailer_newsletter_config.php <?php trait PHPMailerNewsletterConfig { use SmtpServerConfig; private $email_account_name = '...'; private $email_account_pswd = '...'} private $sender_addr = '...'; private $sender_name = '...'; private $replyto_addr = '...'; private $replyto_name = '...'; private $subject = '...'; private $html_message = '...'; private $alt_message = '...'; public function set_letter_contents($subject, $html_message, $alt_message) { $this->Subject = $subject; $this->msgHTML($html_message); $this->AltBody = $alt_message; } } ?> class.phpmailer_factory.php <?php class PHPMailerFactory extends PHPMailer { error_reporting(E_ALL ^ E_STRICT); ini_set('error_log', __DIR__ . '/error.log'); use SmtpServerConfig; private $use = ''; if ($this->use = 'newsletter') { use PHPMailerNewsletterConfig; } else if ($this->use = 'verification') { use PHPMailerVerifyConfig; } else if ($this->use = 'confirmation') { use PHPMailerConfirmConfig; } else { die('Please designate an appropriate trait'); } private $charset = ''; private $smtp_debug = 0; private $smtp_output = 'html'; private $smtp_auth = 'true'; public function __construct($use, $username, $email, $charset='UTF-8', $debug=0) { parent::__construct() $this->use = $use; $this->addAddress($email, $username); $this->CharSet = $this->charset; $this->Host = self::hostserver; $this->Port = self::smpt_port; $this->isSMTP(); $this->SMTPDebug = $this->smtp_debug; $this->Debugoutput = $this->smtp_output; $this->SMTPAuth = $this->smtp_auth; $this->Username = $this->email_account_name; $this->Password = $this->email_account_pswd; $this->setFrom($this->sender_addr, $this->sender_name); $this->addReplyTo($this->replyto_addr, $this->replyto_name); $this->Subject = $this->subject; $this->msgHTML($this->html_message); $this->AltBody = $this->alt_message; } public function set_charset($charset) { $this->charset = $charset; } public function get_charset() { return $this->charset; } } ?> Please comment on its efficacy. Your criticism and praise are both welcome. Roddy
  14. iwato

    Installing MeCab

    Much research and exploration later I believe that all I really have to do is connect the dots. In https://dev.mysql.com/doc/refman/8.0/en/fulltext-search-mecab.html I am told Now, I have discovered the location of mecabrc /usr/lib64/mysql/mecab/etc/mecabrc Also, I have found something called /usr/bin/mysql_config_editor This program is in the same folder as mysql and the mysql_config and mysql_config-64 files Further, I have been told Further, the help manual to the mysql_config_editor provides the following MySQL Configuration Utility. Usage: mysql_config_editor [program options] [command [command options]] -#, --debug[=#] This is a non-debug version. Catch this and exit. -?, --help Display this help and exit. -v, --verbose Write more information. -V, --version Output version information and exit. Variables (--variable-name=value) and boolean options {FALSE|TRUE} Value (after reading options) --------------------------------- ---------------------------------------- verbose FALSE Where command can be any one of the following : set [command options] Sets user name/password/host name/socket/port for a given login path (section). remove [command options] Remove a login path from the login file. print [command options] Print all the options for a specified login path. reset [command options] Deletes the contents of the login file. help Display this usage/help information. Now I am inclined to call the mecab_config_editor with the following command, but am unsure how to interpret MYSQL_HOME /usr/bin/mecab_config_editor loose-mecab-rc-file=MYSQL_HOME/lib/mecab/etc/mecabrc relative to /usr/bin/mysql QUESTION: How would you write the above mecab_config_editor command? Or, would you do something completely different? Roddy
  15. iwato

    Installing MeCab

    More multi-tasking BACKGROUND: I discovered the following passage at <https://dev.mysql.com/doc/refman/5.7/en/fulltext-search-mecab.html> and would like to know clearly what it means The reasons that I do not understand it are several, but the primary results from this discovery within my on system. /usr/lib64/mysql/plugin/libpluginmecab.so /usr/lib64/mysql/mecab The above suggests that MeCab is already installed, does it not? However, when I try to alter my current table to accommodate the MeCab functionality, I am rejected with an error that reads MeCab is undefined. This suggests that it is not installed. Please advise. Roddy
×