Latest posts of: kyrathaba - DonationCoder.com
Welcome Guest.   Make a donation to an author on the site July 04, 2015, 11:30:23 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Read the Practical Guide to DonationCoder.com Forum Search Features
   
  Forum Home Thread Marks Chat! Downloads Search Login Register  
  Show Posts
      View this member's profile 
      donate to someone Donate to this member 
Pages: [1] 2 3 4 5 6 ... 115 Next
1  Other Software / Developer's Corner / Re: AutoHotKey text replacement question on: June 29, 2015, 02:22:00 PM
Thanks, kunkel. Added those exceptions.
2  Other Software / Developer's Corner / Re: AutoHotKey text replacement question on: June 28, 2015, 09:06:36 AM
Thanks, MilesAhead. Good catch! I'll add that in my script.
3  Other Software / Developer's Corner / Re: AutoHotKey text replacement question on: June 28, 2015, 08:49:58 AM
Thanks, Lanux!
4  Other Software / Developer's Corner / AutoHotKey text replacement question on: June 27, 2015, 04:05:26 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.
5  DonationCoder.com Software / N.A.N.Y. 2015 / Re: NANY Entry: Galaterra on: December 06, 2014, 11:37:53 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.
6  DonationCoder.com Software / N.A.N.Y. 2015 / Re: NANY Entry: Galaterra on: December 05, 2014, 10:45:04 AM
I uploaded an update. Shouldn't block on torque-wrench use. Should give you a "Continue" hyperlink.
7  DonationCoder.com Software / N.A.N.Y. 2015 / NANY Entry: Galaterra on: December 04, 2014, 12:23:03 PM
[attach]

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

8  Main Area and Open Discussion / Living Room / Re: Sci-fi novel now available from DC member kyrathaba! on: November 01, 2014, 09:08:30 AM
@4wd: Have you read the Necroscope series, by Brian Lumley? Very good stuff.
9  Main Area and Open Discussion / Living Room / Re: Sci-fi novel now available from DC member kyrathaba! on: October 31, 2014, 07:45:34 AM
Highly experimental. Not even sure if Sethra will survive it...  tongue
10  Main Area and Open Discussion / Living Room / Re: Sci-fi novel now available from DC member kyrathaba! on: October 30, 2014, 06:16:38 PM
Do you anticipate departing soon?  ohmy
11  Main Area and Open Discussion / Living Room / Re: Sci-fi novel now available from DC member kyrathaba! on: October 29, 2014, 07:45:06 AM
Thanks for the encouragement, guys smiley Hopefully, my muse will strike again soon. In the meantime, I make a little extra cash proofreading for people.
12  Main Area and Open Discussion / Living Room / Re: Sci-fi novel now available from DC member kyrathaba! on: October 28, 2014, 03:55:11 PM
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
13  Other Software / Developer's Corner / Re: Data not being written to MySQL DB on: July 27, 2014, 08:16:44 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
14  Other Software / Developer's Corner / Re: Data not being written to MySQL DB on: July 26, 2014, 05:25:42 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.

Formatted for PHP with the GeSHI Syntax Highlighter [copy or print]
  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("kyrathasoft@gmail.com","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.
15  Other Software / Developer's Corner / Re: Data not being written to MySQL DB on: July 21, 2014, 10:15:41 PM
@Stoic gotcha. I derived my code from sample code in a php/mysql Head First book.
16  Other Software / Developer's Corner / Re: Data not being written to MySQL DB on: July 21, 2014, 09:35:47 PM
The help guy disabled the module that was causing the error message I showed earlier. But now I'm getting this error_log:

Quote
[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
17  Other Software / Developer's Corner / Re: Data not being written to MySQL DB on: July 21, 2014, 09:34:29 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.
18  Other Software / Developer's Corner / Re: Data not being written to MySQL DB on: July 21, 2014, 08:15:43 PM
Charles Little, one of the support staff, is helping me sort it. I'll post back the solution we arrive at.
19  Other Software / Developer's Corner / Re: Data not being written to MySQL DB on: July 21, 2014, 05:17:09 PM
Note: the following line of code never gets executed:

Quote
echo "Your data was successfully added to the database.";
20  Other Software / Developer's Corner / Re: Data not being written to MySQL DB on: July 21, 2014, 05:15:20 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.
21  Other Software / Developer's Corner / Re: Data not being written to MySQL DB on: July 21, 2014, 04:22:34 PM
Dunno that I have access. This is on a gamera host. I have filed a support ticket.
22  Other Software / Developer's Corner / Data not being written to MySQL DB on: July 21, 2014, 03:33:21 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:

Quote
[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
23  Other Software / Developer's Corner / Re: searching the web (in particular, Amazon.com) from c# program on: July 04, 2014, 07:56:27 AM
I'm downloading the Amazon Web Services SDK, but if there's a quick and dirty way of getting what I want, I'd rather not have to delve into all of that.
24  Other Software / Developer's Corner / searching the web (in particular, Amazon.com) from c# program on: July 04, 2014, 07:54:17 AM
Does anyone know of a free class or control I can use that abstracts away the nitty-gritty details of the search implementation and will simply allow me to search for eBook titles on Amazon.com? Ideally, user could enter a search string in my program (e.g., "Kyrathaba Rising"), and the program would then search Amazon.com for that title.
25  Other Software / Developer's Corner / Re: friend can't run progs made with .net 4.5 on his XP machine on: July 04, 2014, 07:52:09 AM
SOLVED.

Thanks, all.
Pages: [1] 2 3 4 5 6 ... 115 Next
DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.13s | Server load: 0.13 ]


Share on Facebook
submit to reddit