topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Monday April 29, 2024, 4:33 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - kyrathaba [ switch to compact view ]

Pages: prev1 ... 3 4 5 6 7 [8] 9 10 11 12 13 ... 122next
176
Living Room / Re: The Movie and Book Writing Thread
« on: July 06, 2015, 09:18 PM »
Here's a little script that'll run in the background and correct up to 4500 common mistakes, AS YOU MAKE THEM, in whatever editor you're typing...

177
Living Room / Re: The Movie and Book Writing Thread
« on: July 06, 2015, 09:14 PM »
I've continued to write, since authoring Kyrathaba Rising in 2013. Three more books, each under a different pseudonym. My average income from Kindle/Audible over the past six months is about $115 per month. So it's fun-money. I play with it.

I cash in a lot better on proofreading/rewriting. Of course, I've been cultivating connections with authors via FB, G+, and LinkedIn for a couple years, now.

Nothing in the works right now, so if anyone has a co-authorship idea or some group writing project, I'd like to hear about it.

178
Living Room / Re: The end of the hard disk
« on: July 06, 2015, 09:03 PM »
I can't wait to see some really high capacity usb 3.0 sticks cheap.

+1.

179
Developer's Corner / Re: AutoHotKey text replacement question
« on: June 29, 2015, 02:22 PM »
Thanks, kunkel. Added those exceptions.

180
Developer's Corner / Re: AutoHotKey text replacement question
« on: June 28, 2015, 09:06 AM »
Thanks, MilesAhead. Good catch! I'll add that in my script.

181
Developer's Corner / Re: AutoHotKey text replacement question
« on: June 28, 2015, 08:49 AM »
Thanks, Lanux!

182
Developer's Corner / AutoHotKey text replacement question
« on: June 27, 2015, 04:05 PM »
I belong to a forum where a lot of amateur writers gather. They're wanting a script that will catch misspellings as they type. I'm developing a simple script that replaces the wrong wording with the correct wording. For example:

::good advise::good advice

The above works flawlessly: as soon as a user types "good advise" it gets changed by the script to "good advice" and the user just keeps on typing.

I want the script to detect anytime the writer types the article 'a' and the next word begins with a vowel. In that case, I want the script to change 'a' to 'an'. So, below shows what the author types and then after the arrow I show the correction made by the script:

a otter -> an otter

a icycle -> an icycle

Any help would be appreciated.

183
N.A.N.Y. 2015 / Re: NANY Entry: Galaterra
« on: December 06, 2014, 11:37 AM »
Yes, InkleWriter is pretty cool. I decided to fool around with Twine because the created games can either be hosted on a webpage or the HTML file can be emailed to someone or downloaded and played by anyone with a modern browser.

184
N.A.N.Y. 2015 / Re: NANY Entry: Galaterra
« on: December 05, 2014, 10:45 AM »
I uploaded an update. Shouldn't block on torque-wrench use. Should give you a "Continue" hyperlink.

185
N.A.N.Y. 2015 / NANY Entry: Galaterra
« on: December 04, 2014, 12:23 PM »
galaterra.png

My entry this year is a brief, proof-of-concept game implemented in JavaScript. It demonstrates an implementation of loops, commands, etc. all processed via the browser. This entry was created using Twine (http://twinery.org):

http://williambryanmiller.com/game.html


186
Living Room / Re: Sci-fi novel now available from DC member kyrathaba!
« on: November 01, 2014, 09:08 AM »
@4wd: Have you read the Necroscope series, by Brian Lumley? Very good stuff.

187
Highly experimental. Not even sure if Sethra will survive it...  :P

188
Do you anticipate departing soon?  :o

189
Thanks for the encouragement, guys :) Hopefully, my muse will strike again soon. In the meantime, I make a little extra cash proofreading for people.

190
I have two free downloads of the audiobook version of Kyrathaba Rising to give away to DC members. If my illustrator and proofreader would contact me, I'll send you two your coupon codes and the link.

http://www.audible.com/pd/Sci-Fi-Fantasy/Kyrathaba-Rising-Audiobook/B00OSI3WAA/ref=a_search_c4_1_1_srTtl?qid=1414516940&sr=11

191
Developer's Corner / Re: Data not being written to MySQL DB
« on: July 27, 2014, 08:16 AM »
Thanks, Ath. That may be what the problem was. I found an online example and worked backward from it, and got it working:

http://williambryanmiller.com/proofreading/needProofreading.php

192
Developer's Corner / Re: Data not being written to MySQL DB
« on: July 26, 2014, 05:25 PM »
At this point, I can connect to my server, AND correctly select the desired database. My code even creates the needed table if it's not existent. But there's some little problem that prevents my code from inserting a record. To see the results, go to the following URL and enter a fake first name, last name, and email address and click the submit button:

http://williambryanmiller.com/proofreading/index.html

Below is my PHP Script. The only thing I've altered is to replace the actual database name and password with an asterisk, but we already know my code connects and selects the database.

Code: PHP [Select]
  1. <center><a href="index.html">Return to proofreading page</a></center>
  2.  
  3. <?php
  4.        
  5.        
  6.         $tablename = 'proofreading_sought';
  7.         $echo_on = true;
  8.         $user="kyrathab";
  9.         $password="*";
  10.         $database="*";
  11.         $mysql_host = "localhost";
  12.        
  13.         if($_POST['firstname']=='')
  14.         {              
  15.                 ?>
  16.                 You should <a href="index.html">return</a> to my proofreading page, because
  17.                 <?php
  18.                         die(" you failed to enter data for your first name!");
  19.         }
  20.         if($_POST['lastname']=='')
  21.         {
  22.                 ?>
  23.                 You should <a href="index.html">return</a> to my proofreading page, because
  24.                 <?php
  25.                         die(" you failed to enter data for your last name!");
  26.         }
  27.        
  28.         if($_POST['email']=='')
  29.         {
  30.                 ?>
  31.                 You should <a href="index.html">return</a> to my proofreading page, because
  32.                 <?php
  33.                         die(" you failed to enter an email address!");
  34.         }
  35.        
  36.         echo 'Hello, ' . $_POST['firstname'] . ' ' . $_POST['lastname'] . '!<p>';
  37.         echo 'You specified the following email address: ' . $_POST['email'] . '.';
  38.         echo '<p>';
  39.         echo "Your information was submitted. Thank you! You should hear back from the proofreader within the next 48 hours. ";
  40.         echo "The proofreader will attempt to contact you at the following email address: " . $theMail . '<p>';
  41.        
  42.        
  43.         mail("[email protected]","Interested in obtaining proofreading", $msg, 'From:' . $_POST['email']);
  44.        
  45.         $link = mysql_connect($mysql_host, $user, $password);
  46.         if (!$link) {
  47.                 die('Could not connect to host: ' . mysql_error());
  48.         }
  49.         echo 'Connected to host...<p>';
  50.        
  51.         $db_selected = mysql_select_db($database, $link) or die('Connected to host but could not select database: '     . mysql_error());
  52.         echo 'Connected successfully to the database...<p>';
  53.        
  54.         if (!blnTableNameFoundInDatabase($database,$tablename)){        
  55.         //Let's create the table...
  56.         if($echo_on){ echo "Creating table $tablename"; }
  57.         $query = "CREATE TABLE $tablename
  58.         ( ID int unsigned not null auto_increment primary key,
  59.         FirstName char(45) not null, LastName char(45) not null,
  60.         Email char(50) not null)";
  61.         @mysql_query($query) or Die('Failed to create table $tablename, script dies...' . mysql_error());      
  62.         $blnJustCreatedTable = True;
  63.         }
  64.        
  65.         $query = "INSERT INTO $tablename (FirstName, LastName, Email)
  66.                 VALUES ($first, $last, $theMail)";
  67.         mysql_query($query) or die('Insertion failed!' . mysql_error() . '<p>');
  68.  
  69.        
  70.         $file = 'proofread_seekers.txt';
  71.         // The new person to add to the file
  72.         $person = $name . '|' . $theMail . '|' . date("Y-m-d H:i:s") . "\n";
  73.         // Write the contents to the file,
  74.         // using the FILE_APPEND flag to append the content to the end of the file
  75.         // and the LOCK_EX flag to prevent anyone else writing to the file at the same time
  76.         file_put_contents($file, $person, FILE_APPEND | LOCK_EX);
  77.        
  78.         function blnTableNameFoundInDatabase($the_database, $the_tablename){
  79.                 $res = mysql_query("SHOW TABLES FROM $the_database");  
  80.                 $bln = False;
  81.                 while($row = mysql_fetch_array($res, MYSQL_NUM)){
  82.                         if($row[0] == $the_tablename){ $bln = True; }
  83.                 }
  84.         return $bln;
  85. }
  86.                
  87.  
  88. ?>

If anyone can test the web form and take a gander at my PHP and figure out why it's producing the error, I'd be much obliged.

193
Developer's Corner / Re: Data not being written to MySQL DB
« on: July 21, 2014, 10:15 PM »
@Stoic gotcha. I derived my code from sample code in a php/mysql Head First book.

194
Developer's Corner / Re: Data not being written to MySQL DB
« on: July 21, 2014, 09:35 PM »
The help guy disabled the module that was causing the error message I showed earlier. But now I'm getting this error_log:

[21-Jul-2014 22:30:42 America/New_York] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/: cannot read file data: Is a directory in Unknown on line 0

195
Developer's Corner / Re: Data not being written to MySQL DB
« on: July 21, 2014, 09:34 PM »
Both lines of the $query are needed. The "VALUES..." needs to be concatenated with the dot operator to the previous line, because you must match values to the number of column parameters passed into the table.

196
Developer's Corner / Re: Data not being written to MySQL DB
« on: July 21, 2014, 08:15 PM »
Charles Little, one of the support staff, is helping me sort it. I'll post back the solution we arrive at.

197
Developer's Corner / Re: Data not being written to MySQL DB
« on: July 21, 2014, 05:17 PM »
Note: the following line of code never gets executed:

echo "Your data was successfully added to the database.";

198
Developer's Corner / Re: Data not being written to MySQL DB
« on: July 21, 2014, 05:15 PM »
I'm attaching my PHP script. The only thing I've changed is that I substituted the pound symbol (#) in place of the actual characters used in my db password, username, etc.

That, and the attached file ends in .txt instead of .php. Now, be gentle, I've never written PHP code before, so it's probably not well-formed. But see if anything is a deal-breaker
in the code. I'm not triggering the die( ) function in my code.

199
Developer's Corner / Re: Data not being written to MySQL DB
« on: July 21, 2014, 04:22 PM »
Dunno that I have access. This is on a gamera host. I have filed a support ticket.

200
Developer's Corner / Data not being written to MySQL DB
« on: July 21, 2014, 03:33 PM »
I have a very simple web form that collects firstname, lastname, and email address from someone visiting my Proofreading Services page and wanting to contact me regarding me doing some proofreading work for them.

I'm quite sure that my username, database, password, and host are set correctly, and my attempt to write to the database doesn't trigger a die(), and yet...

No data gets written to the MySQL database table. Furthermore, I get the following error-log info:

[21-Jul-2014 16:24:38 America/New_York] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/php_xslt.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/php_xslt.dll: cannot open shared object file: No such file or directory in Unknown on line 0
[21-Jul-2014 16:28:38 America/New_York] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/php_xslt.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/php_xslt.dll: cannot open shared object file: No such file or directory in Unknown on line 0

Pages: prev1 ... 3 4 5 6 7 [8] 9 10 11 12 13 ... 122next