topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Tuesday May 13, 2025, 2:19 pm
  • 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

Recent Posts

Pages: prev1 ... 101 102 103 104 105 [106] 107 108 109 110 111 ... 122next
2626
Developer's Corner / Re: How to program for all 3 platforms at once
« Last post by kyrathaba on December 13, 2010, 07:38 PM »
Hmm, I have some background with QuickBASIC, so I think I could pick up RealBASIC pretty easily.  Especially now that I have some OOP background with C#.  I'm just wondering if the cost would be worth it, to me personally.  It looks like you have to get at least the "Pro" version in order to be able to deploy to all three major platforms.  Not sure I want to layout the cash right now.  Carol, I'd be interested in hearing your impressions if you do pursue this avenue of development.
2627
From JavaJones: Wikileaks is showing that the people and organizations we have entrusted with maintaining the structure of our society and the sanctity of our lives and rights have abused that trust, time and again.

Agree!

From Renegade: "...with enough "tattling"...companies would be forced to behave more ethically."

Agree!!

2628
My dream is to be a novelist.  Sit at home in my underwear (well, okay, add a bathrobe when family members are home with me) and write books for a living.  Trouble is, to make enough as an author to live comfortably, you've got to be quite popular which, in turn, probably requires skills above the level of those I possess.
2629
But wow, don't those ads sound like something you'd see in xxx spam?

"1 ridiculously huge [????] a day."
"Watch as this woman is mercilessly [????] to her limits!"

LMAO!
2630
Living Room / Re: Crime pays - and our governments love it.
« Last post by kyrathaba on December 13, 2010, 09:20 AM »
Unfortunately, we're living in a time where accountability is selectively rather than universally enforced.  I myself am held accountable at my place of work, but our CEO is protected by the corrupt chairman of the board.  Same thing in government.  The little guy gets the shaft, but wherever accountability would adversely affect the truly wealthy or politically powerful, it is conveniently subverted.
2631
Living Room / Re: Crime pays - and our governments love it.
« Last post by kyrathaba on December 13, 2010, 06:52 AM »
Mind-boggling!
2632
Living Room / Re: Where do you get your news from?
« Last post by kyrathaba on December 12, 2010, 04:09 PM »
National Public Radio, when I have the time.  Otherwise, I catch about 10 minutes a week of "nightly news" when my wife channel-surfs to one of the major networks to catch the weather.
2633
I lean toward the NANY version being Free / Donationware for its life (no time-limit, no nag screen after a period of time).

There is nothing stopping further development happening after NANY and a paid version(s) released at a later date.

+1.
2634
My wife and I are managing to live within our means, even beneath our means.  So money matters aren't particularly stressful.  But I would dearly love to have the kind of freedom that the article in the OP talks about.
2635
Living Room / The minimalist lifestyle. Anyone here successfully implemented it?
« Last post by kyrathaba on December 10, 2010, 07:13 AM »
Is the minimalist lifestyle described in this Lifehacker article really attainable?  Anyone here successfully doing it?
2636
N.A.N.Y. 2011 / Re: NANY 2011 Release: Dominion Rules Character Creator
« Last post by kyrathaba on December 09, 2010, 04:37 PM »
Now that I've officially released this app, people should only use the download link provided in my original post above.  Thanks!
2637
Living Room / Re: Unbelievable 3D Holograph (on 2D surface) from Zebra Imaging
« Last post by kyrathaba on December 08, 2010, 09:18 PM »
Quite impressive.
2638
Hmm, a Mac sounds perfect for my dad.  He can't even figure out how to send a page link with Opera ;)
2639
N.A.N.Y. 2011 / Re: NANY 2011 Pledge: Dominion Rules Character Creator
« Last post by kyrathaba on December 07, 2010, 08:18 PM »
Redacted.
2640
Living Room / Re: What books are you reading?
« Last post by kyrathaba on December 05, 2010, 02:23 PM »
Thanks for that link, Darwin.  I read the article.  It appears Amazon was trying to act in compliance with the law, and that they have subsequently changed their own internal policy (and perhaps their arrangement with third party suppliers) to prevent a recurrence.  I sure hope so.  I was relieved to learn that they did at least refund the purchase cost of the revoked downloaded materials.
2641
Living Room / Re: What books are you reading?
« Last post by kyrathaba on December 05, 2010, 01:20 PM »
You're only licensing the limited right to read something - and that right is subject to change at Amazon's discretion.

Does that mean Amazon could deny me the ability to read something I've paid for and downloaded?
2642
Living Room / Re: What books are you reading?
« Last post by kyrathaba on December 05, 2010, 09:47 AM »
Thanks for the great info, 40hz!  I will give this one a try!

Question?  If I buy the hardback from Amazon, does that also mean I'm entitled to the Kindle version?  Or is it one or the other?
2643
Living Room / Re: What books are you reading?
« Last post by kyrathaba on December 04, 2010, 10:03 PM »
[attachthumb=#1][/attachthumb]

I read "Sandman Slim" earlier this year.  Pretty fast-paced and entertaining.  Not suitable for children.  It's also rather irreverent, but it has that dark, gritty texture that a lot of people seem to enjoy.  Like I indicated, I liked it.

2644
Developer's Corner / Re: Check Gmail using C#
« Last post by kyrathaba on December 04, 2010, 08:10 PM »
I spent some time this afternoon experimenting.  Hacked out this code that seems to work (see class code-listing below).  Note: allows uploading to specific directory on your website, downloading from a specific directory to a specific local directory, and has ability to return a list of files found in the root of any directory.  I also posted a copy of the code on my DC C# Errata.

Code: C# [Select]
  1. public class FTPClient {
  2.  
  3.         // The hostname or IP address of the FTP server
  4.         private string _remoteHost;
  5.  
  6.         // The remote username
  7.         private string _remoteUser;
  8.  
  9.         // Password for the remote user
  10.         private string _remotePass;
  11.  
  12.         public FTPClient(string remoteHost, string remoteUser, string remotePassword) {
  13.             _remoteHost = remoteHost;
  14.             _remoteUser = remoteUser;
  15.             _remotePass = remotePassword;
  16.         }
  17.  
  18.         public string DirectoryListing() {
  19.             FtpWebRequest request = (FtpWebRequest)WebRequest.Create(_remoteHost);
  20.             request.Method = WebRequestMethods.Ftp.ListDirectory;
  21.             request.Credentials = new NetworkCredential(_remoteUser, _remotePass);
  22.             FtpWebResponse response = (FtpWebResponse)request.GetResponse();
  23.             Stream responseStream = response.GetResponseStream();
  24.             StreamReader reader = new StreamReader(responseStream);
  25.  
  26.             string result = string.Empty;
  27.  
  28.             while (!reader.EndOfStream) {
  29.                 result += reader.ReadLine() + Environment.NewLine;
  30.             }
  31.  
  32.             reader.Close();
  33.             response.Close();
  34.             return result;
  35.         }
  36.  
  37.  
  38.  
  39.  
  40.         public string DirectoryListing(string folder) {
  41.             FtpWebRequest request = (FtpWebRequest)WebRequest.Create(_remoteHost + folder);
  42.             request.Method = WebRequestMethods.Ftp.ListDirectory;
  43.             request.Credentials = new NetworkCredential(_remoteUser, _remotePass);
  44.             FtpWebResponse response = (FtpWebResponse)request.GetResponse();
  45.             Stream responseStream = response.GetResponseStream();
  46.             StreamReader reader = new StreamReader(responseStream);
  47.  
  48.             string result = string.Empty;
  49.  
  50.             while (!reader.EndOfStream) {
  51.                 result += reader.ReadLine() + Environment.NewLine;
  52.             }
  53.  
  54.             reader.Close();
  55.             response.Close();
  56.             return result;
  57.         }
  58.  
  59.  
  60.         public void Download(string file, string destination) {
  61.             FtpWebRequest request = (FtpWebRequest)WebRequest.Create(_remoteHost + file);
  62.             request.Method = WebRequestMethods.Ftp.DownloadFile;
  63.             request.Credentials = new NetworkCredential(_remoteUser, _remotePass);
  64.             FtpWebResponse response = (FtpWebResponse)request.GetResponse();
  65.             Stream responseStream = response.GetResponseStream();
  66.             StreamReader reader = new StreamReader(responseStream);
  67.  
  68.             StreamWriter writer = new StreamWriter(destination);
  69.             writer.Write(reader.ReadToEnd());
  70.  
  71.             writer.Close();
  72.             reader.Close();
  73.             response.Close();
  74.         }
  75.  
  76.  
  77.  
  78.         public void UploadFile(string FullPathFilename) {
  79.             string filename = Path.GetFileName(FullPathFilename);
  80.  
  81.             FtpWebRequest request = (FtpWebRequest)WebRequest.Create(_remoteHost + filename);
  82.             request.Method = WebRequestMethods.Ftp.UploadFile;
  83.             request.Credentials = new NetworkCredential(_remoteUser, _remotePass);
  84.  
  85.             StreamReader sourceStream = new StreamReader(FullPathFilename);
  86.             byte[] fileContents = Encoding.UTF8.GetBytes(sourceStream.ReadToEnd());
  87.  
  88.             request.ContentLength = fileContents.Length;
  89.  
  90.             Stream requestStream = request.GetRequestStream();
  91.             requestStream.Write(fileContents, 0, fileContents.Length);
  92.  
  93.             FtpWebResponse response = (FtpWebResponse)request.GetResponse();
  94.  
  95.             response.Close();
  96.             requestStream.Close();
  97.             sourceStream.Close();
  98.         }
  99.  
  100.  
  101.  
  102.     }
2645
Living Room / Re: What books are you reading?
« Last post by kyrathaba on December 04, 2010, 06:09 PM »
Just finished "Sole Survivor" (Dean Koontz) -- seventeenth novel of his I've read, thus far.  Quite entertaining...
2646
Living Room / Re: Still holding out, won't join Facebook
« Last post by kyrathaba on December 04, 2010, 10:22 AM »
Here's an article about current scams prevalently being perpetrated on FB.
2647
Developer's Corner / Re: Check Gmail using C#
« Last post by kyrathaba on December 04, 2010, 09:58 AM »
Used this FTP code, but got the error shown below:

Code: C# [Select]
  1. string FTPAddress = "ftp://glensforkumc.com/non_church";
  2.             FtpWebRequest request = (FtpWebRequest)FtpWebRequest.Create(FTPAddress + "/UploadDownload.pdb");
  3.  
  4.             request.Method = WebRequestMethods.Ftp.UploadFile;
  5.             request.Credentials = new NetworkCredential(username, password);
  6.             request.UsePassive = true;
  7.             request.UseBinary = true;
  8.             request.KeepAlive = false;
  9.  
  10.             FileStream stream = File.OpenRead("UploadDownload.pdb");
  11.             byte[] buffer = new byte[stream.Length];
  12.  
  13.             stream.Read(buffer, 0, buffer.Length);
  14.             stream.Close();
  15.  
  16.             try {
  17.                 Stream reqStream = request.GetRequestStream();
  18.                 reqStream.Write(buffer, 0, buffer.Length);
  19.                 reqStream.Close();
  20.             }
  21.             catch (Exception ex) {
  22.                 MessageBox.Show(ex.Message);
  23.             }

error3.png
2648
Developer's Corner / Re: Check Gmail using C#
« Last post by kyrathaba on December 04, 2010, 09:51 AM »
Thanks, guys.  Following up on your links and doing some reading, I've discovered it seems inordinately involved to accomplish what I'm wanting to do with http.  I'll keep researching this.  I have the following domain, which I've had for the past 18 months:

http://www.glensforkumc.com

It's a church website, but I pay for the space personally, and reserve the "non_church" subdirectory for my own use (hey, we've got 600 GB of storage, and after 18 months of use we've only used about 2 GB ;))

So, I have the required username and password to access the website.  I'm able to use FileZilla easily to upload files.  I realize that the difference is that FileZilla is using FTP, not HTTP.

What I'm looking for is simple code (no more than a few lines) to upload a local file to a specified subdirectory on the website.  I'll continue reading from the posts you linked to, and thanks!
2649
Developer's Corner / Re: Check Gmail using C#
« Last post by kyrathaba on December 03, 2010, 06:44 PM »
Hmm, yeah, I can see why some of the examples would lead you to think that a concatenation is called for; however, there's no overload of the method that takes a single argument:

error2.png
2650
Developer's Corner / Re: Check Gmail using C#
« Last post by kyrathaba on December 03, 2010, 04:14 PM »
Tried the code shown in the screenshot, with the resultant error (note: I'm trying to upload file "UploadDownload.pdb" that resides in the application directory of my C# app.  I want to upload it to the following directory:

http://www.glensforkumc.com/non_church/

I expected an error about not supplying a username and password (which should be required), but I'm getting the following:

error.png
Pages: prev1 ... 101 102 103 104 105 [106] 107 108 109 110 111 ... 122next