topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Monday November 10, 2025, 3:25 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 ... 107 108 109 110 111 [112] 113 114 115 116 117 ... 122next
2776
General Software Discussion / Re: Help needed to alter partitions
« Last post by kyrathaba on October 12, 2010, 05:22 PM »
Thanks for your insight, guys.
2777
Developer's Corner / Re: Check Gmail using C#
« Last post by kyrathaba on October 12, 2010, 12:40 PM »
If anyone is reading these posts and knows the answer to the following questions, let me know:

How does one programmatically monitor and show the end-user, via a progress bar, the progress as a large email (say, a couple of large attachments) is sent?  The way Outlook Express and Outlook do.

How does one programmatically delete a Gmail message from the Inbox (by removing its "INBOX" label, for instance).
2778
Developer's Corner / Re: Check Gmail using C#
« Last post by kyrathaba on October 11, 2010, 09:50 PM »
Made some modifications in the snippet above, for sake of clarity.  Users please note: it may not be a good idea to use a MessageBox to alert the user of your program to the success/failure of the email sending attempt (then again, that may be exactly what you want).
2779
Developer's Corner / Re: Check Gmail using C#
« Last post by kyrathaba on October 11, 2010, 09:43 PM »
And since I've shown how to check Gmail using C# and Gmail's IMAP, the following snippet shows how to send an email programmatically, through your Gmail account, using C# and Gmail's SMTP.  Please note that, although the code doesn't require notification to the user that an email is about to be sent, you should always notify the end-user of your program, and give him/her the option of whether or not to send the email.  If you don't, their firewall or protective software may scare them when it pops up a message about your program attempting to send email.

Notes:

(1) your namespace's using section should include the following:
using System.Net.Mail;

(2) my example code places the email-sending code in a Button's Click() event-handler

Code: C# [Select]
  1. private void button1_Click(object sender, EventArgs e) {
  2.             DialogResult dr = MessageBox.Show("Send email?", "Get Permission", MessageBoxButtons.YesNo, MessageBoxIcon.Question,
  3.                 MessageBoxDefaultButton.Button2);
  4.  
  5.             if (dr == DialogResult.Yes) {
  6.  
  7.                 SmtpClient smtpClnt = new SmtpClient("smtp.gmail.com", 587);
  8.  
  9.                 try {
  10.  
  11.                     MailMessage oMail = new MailMessage();
  12.                     oMail.To.Add(new MailAddress("[email protected]"));
  13.                     oMail.From = new MailAddress("[email protected]");
  14.                     oMail.IsBodyHtml = true;
  15.                    
  16.                     oMail.Body = "your message body goes here";
  17.                     oMail.Subject = "your subject goes here";
  18.  
  19.                     smtpClnt.Timeout = 100000;
  20.  
  21.                     smtpClnt.EnableSsl = true;
  22.                     System.Net.NetworkCredential nc = new System.Net.NetworkCredential("[email protected]", "your_password");
  23.                     smtpClnt.Credentials = nc;
  24.  
  25.                     Attachment oAttached = new Attachment("C:\\yourimage.jpg");
  26.                     oMail.Attachments.Add(oAttached);
  27.  
  28.                     smtpClnt.SendCompleted += new SendCompletedEventHandler(MailDeliveryComplete);
  29.  
  30.                     smtpClnt.SendAsync(oMail, "sending");
  31.  
  32.                 }
  33.                 catch (Exception mailExc) {
  34.                     if (mailExc.ToString().IndexOf("could not be resolved") >= 0) {
  35.                         int line = mailExc.ToString().IndexOf("line");
  36.                         int leng = mailExc.ToString().Length;
  37.                         string sLin = mailExc.ToString().Substring(line, (leng - line));
  38.                         string s = "Either the developer's Gmail SMTP was unavailable, or else your computer is not currently ";
  39.                         s += "connected to the internet.  Error generated at source code " + sLin;
  40.                         MessageBox.Show(s, "Unable to send character file via email");
  41.                     }
  42.                     else {
  43.                         MessageBox.Show("Error:" + Environment.NewLine + Environment.NewLine +
  44.                             mailExc.Message + Environment.NewLine + Environment.NewLine + mailExc.ToString());
  45.                     }
  46.                 }
  47.                 finally {
  48.  
  49.                     //don't invoke smtpClnt.Dispose() here; if you do, the mail never sends
  50.                 }          
  51.  
  52.  
  53.             }
  54.         }
  55.  
  56.  
  57.  
  58.         private void MailDeliveryComplete(object sender, System.ComponentModel.AsyncCompletedEventArgs e) {
  59.  
  60.             string myMessage = e.ToString();
  61.             string myCaption = string.Empty;
  62.  
  63.             if (e.Error != null) {
  64.                 myCaption = "Error sending email";
  65.             }
  66.             else if (e.Cancelled) {
  67.                 myCaption = "Sending of email cancelled.";
  68.             }
  69.             else {
  70.                 myCaption = "Your email message was sent successfully to the Game Master.";
  71.             }
  72.  
  73.             MessageBox.Show(myMessage, myCaption);
  74.  
  75.         }
2780
Living Room / Re: How much soda (pop) do you drink?
« Last post by kyrathaba on October 11, 2010, 06:21 PM »
Speaking of calories and the Food Pyramid we all grew up learning about in health class:

Lifehacker article

2781
Living Room / Google testing cars that drive themselves...
« Last post by kyrathaba on October 11, 2010, 06:16 PM »
Did you guys see this?

Mashable article

2782
Living Room / Re: The Internet by 2020?
« Last post by kyrathaba on October 11, 2010, 05:29 PM »
please advise a link for the full image - thanks !
Why I ask : image is chopped on right side

I don't think it's chopped off: I believe you just have to scroll horizontally to see the full image.
2783
Living Room / Re: Changes Coming To My Home Network
« Last post by kyrathaba on October 10, 2010, 06:17 PM »
Thanks for mentioning Drobo.  It looks interesting.
2784
Living Room / The Internet by 2020?
« Last post by kyrathaba on October 10, 2010, 05:37 PM »
Check out this chart.  

internet2020.jpg
2785
General Software Discussion / Re: Help needed to alter partitions
« Last post by kyrathaba on October 10, 2010, 05:05 PM »
I, too, need help to alter partitions.  Since my need seems very much in line with this post, I thought I should post here, rather than start a separate topic of very similar content.

I have a single hard drive in my laptop.  Per the screenshot below, you can see I have 40 Mb of unallocated space.  Can someone give me some help using either "Partition Wizard" or "Easeus Partition" to return the 40 Mb of unallocated space to drive C.

partWiz.png
2786
Living Room / Re: How much soda (pop) do you drink?
« Last post by kyrathaba on October 10, 2010, 09:34 AM »
My bad habit right now in terms of drinks is coffee.  I bet I've drank more coffee in the past two years since remarrying than in the previous thirty years!  My wife's a big coffee fan.  I suppose I've picked up the habit.  During the week, it's not bad -- maybe one or two coffee daily.  But on weekends, it can be 4-6 coffee daily.  I'm sure that's too much:  although, I'm sleeping fine.
2787
Living Room / Re: Show us a photo of your mutt or other creatures..
« Last post by kyrathaba on October 09, 2010, 08:56 PM »
SANY0284.jpg
SANY0286.jpg
SANY0289.jpg
2788
Living Room / Re: Just Enjoying a Saturday afternoon with my Dogs
« Last post by kyrathaba on October 09, 2010, 04:41 PM »
awesome: feel free to move it; sorry I didn't realize...
2789
Living Room / Re: Changes Coming To My Home Network
« Last post by kyrathaba on October 09, 2010, 03:48 PM »
Our new solid oak computer desk and hutch-style shelving is almost ready.  I'll upload a photo as soon as it arrives.  

Thinking about getting a desktop unit and monitor to go with it.  I will probably still use my laptop quite a bit.  My wife and I tend to dork around on our laptops while watching t.v. at night.  However, I'm sure I'd spend some time on the new desktop.  In particular, we're putting a 40+" HDMI-enabled LCD television in the same room (bedroom), and I'd like to be able to connect the desktop to the LCD t.v. for watching downloaded movies (Amazon Unbox, etc.), and would probably do some e-reading and programming using the t.v.'s display in tandem with a wireless keyboard (while lying in bed:  one or two nights a week, I have unexplained insomnia, and programming or silently surfing Youtube vids with earplugs in would be a nice option).

I'm not a high-powered gamer, but am willing to spring for a relatively low-cost (say, sub $80) graphics card.  Not heavy into video-editing either.  Mainly I use my computers for C# programming, web-surfing (forum visiting, etc.), and email.

I briefly became enchanted with Pogoplug, but after allowing myself a cool-down period, in which I lurked some Pogoplug user forums, I came to the conclusion that it's not a mature, mostly debugged technology... yet.  May later add NAS.

So, I'd like to get the most bang for my buck.  I'm looking to get the computer and at least a 20" monitor for sub $850.

Suggestions?
2790
Living Room / Just Enjoying a Saturday afternoon with my Dogs
« Last post by kyrathaba on October 09, 2010, 03:27 PM »
SANY0306.jpg
if only I had a real dog to hold...

SANY0307.jpg
who is more relaxed?

SANY0311.jpg
I guess that answers that question...
2791
I get the following error when I try http://www.anova.org/ or http://www.anova.org/index.html  :

anova_not.png
2792
Living Room / Re: Tortoise SVN and online repositories
« Last post by kyrathaba on October 08, 2010, 07:31 AM »
Hehe, thanks barney :)  That's about what I suspected.  Since I'm a one-man software-team, and since the current app I'm working on is liable to be used only by a very limited number of people, I won't worry too much.  Been working on it since August, and it's grown (in total, counting all modules) to over 4,000 lines of code.  I've gone from 1.0 to 1.3, so far...
2793
I'd go for the lifetime upgrades.
2794
You mentioned you'd tried Tortoise SVN and been aggravated with its context menus and the hoops it makes you jump through.

I've found there's quite a learning curve, but that it's worth it.

You mentioned archiving a project's code when you feel you have reached a milestone. TSVN will let you do that using Export.

Good luck. 
2795
Great post, Nudone!  I had the same book as a kid, and once upon a time, I too could solve the Rubik's cube.  No longer, sadly...

Very nostalgic  :)
2796
Living Room / Re: Tortoise SVN and online repositories
« Last post by kyrathaba on October 06, 2010, 07:38 PM »
Thanks, Deozaan.

Question: how do you identify what a "major" versus "minor" revision is?
2797
Living Room / Tortoise SVN and online repositories
« Last post by kyrathaba on October 06, 2010, 05:50 PM »
I've been using Tortoise SVN for about a month now to backup my work on a C# project.  Love it!  Anyone have any knowledge about how to do revision numbers?  I confess I really don't understand revision numbers.  I've been occasionally updating my "version" as I add considerably more features.  Now I'm at v1.2, but don't have any rational why it's "1.2" and not 0.99 or 1.3.  Any help?

Also, anyone have any experience creating patches with Tortoise SVN?
2798
Living Room / Re: Should I buy a tablet pc, ipad, netbook, or other?
« Last post by kyrathaba on October 06, 2010, 10:54 AM »
I was watching MSNBC last night, and the announcer stated that over 3 million iPads have been sold so far, with a rate of over 1 million sells per month, and that this is revolutionary ;) 

2799
Living Room / Re: What books are you reading?
« Last post by kyrathaba on October 06, 2010, 10:51 AM »
Read so far, this year:

   1. Frankenstein: Lost Souls, by Dean Koontz
   2. The Left Hand of God, by Paul Hoffman
   3. The Passage, by Justin Cronin
   4. Relentless, by Dean Koontz
   5. The World Inside, by Robert Silverberg
   6. Across the Nightingale Floor, by Lian Hern
   7. By Schism Rent Asunder, by David Weber
   8. Off Armageddon Reef, by David Weber
   9. Var the Stick, by Piers Anthony (1973)
  10. The Many-Colored Land (422 pp.), by Julian May
  11. The Ring of Charon, by Roger MacBride Allen
  12. Sandman Slim, by Richard Kadrey
  13. The Courts of Chaos, by Roger Zelazny
  14. The Hand of Oberon, by Roger Zelazny
  15. Signs of the Unicorn, by Roger Zelazny
  16. The Guns of Avalon, by Roger Zelazny
2800
Living Room / Re: Anyone have any experiences (good or bad) with Wireless USB?
« Last post by kyrathaba on October 05, 2010, 08:36 PM »
I was hoping for a dedicated dock for my Inspiron 1545 (so it'd be charging my laptop battery while I'm plugged in), but no such luck.  So it's either a universal USB dock, or nothing.
Pages: prev1 ... 107 108 109 110 111 [112] 113 114 115 116 117 ... 122next