Welcome Guest.   Make a donation to an author on the site October 31, 2014, 09:43:25 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.
 
Check out and download the GOE 2007 Freeware Challenge productivity tools.
   
  Forum Home Thread Marks Chat! Downloads Search Login Register  
  Show Posts
      View this member's profile 
      donate to someone Donate to this member 
Pages: Prev 1 [2] 3 4 5 6 7 ... 115 Next
26  Other Software / Developer's Corner / Re: Need help with some string manip in C# on: June 21, 2014, 07:13:19 PM
That looks workable,  Ren. But any regex would need to capture and replace whitespace before,  among and after the numbers: "9. 07" becomes "9.07", and " 7   6 . 04" becomes "76.04"
27  Other Software / Developer's Corner / Re: Need help with some string manip in C# on: June 21, 2014, 06:59:02 PM
For my purposes, an improperly formatted decimal number is any substring which, when any interleaved whitespace or other non-decimal, non alphanumeric characters are removed, forms a decimal number.

"abc3.-04xta" becomes "abc3.04xta"

"abc6/. 7?8xta" becomes "abc6.78xta"
28  Other Software / Developer's Corner / Need help with some string manip in C# on: June 21, 2014, 05:54:32 PM
Maybe someone can help me with this. I'm needing C# code that reliably does the following: given a string of characters, it returns a substring of characters. If the substring has an improperly formatted decimal number, that is the returned substring. Otherwise it returns a zero-length string.

So, as examples, it would detect the following in string "abc3. 04xta": -> returns "3. 04"

And for this string: "3bcd4 0.  25z10": returns "4 0.  25"

What I'm ultimately wanting is for the code to do a string.replace( ) that fixes the misformatting:

"abc3. 04xtra" becomes "abc3.04xtra", and "3bcd4 0.  25z10" becomes "3bcd40.25z10".

I know regular expressions is probably the way to go, but I'm having trouble getting my head around them.

The method I'd like would either return the poorly formatted "decimal number" substring; or, optionally,
it could fix the formatting in that substring and replace all occurrences in the larger string.

The end result is that it would turn this sentence...

"The bread was $3 .49, and it had always been $2 .15 before."

...into the following...

"The bread was $3.49, and it had always been $2.15 before."
29  Other Software / Developer's Corner / GitHub Gist links for six C# utility classes totaling 26 methods on: June 02, 2014, 06:59:25 AM
Console formatting (5 methods):
https://gist.github.com/kyrathasoft/2292a9719517246786af

Boolean tests (4 methods):
https://gist.github.com/kyrathasoft/3946dbdb6de7dc1d20bf

Time formatting (1 method):
https://gist.github.com/kyrathasoft/3e6b808a31fe2a4a5145

String manipulation (6 methods):
https://gist.github.com/kyrathasoft/5933ab0b9f125751bbe9

Forms and Controls (4 methods):
https://gist.github.com/kyrathasoft/7774ac031dc6d8a01cb2

Files (6 methods):
https://gist.github.com/kyrathasoft/e0dc96b13679ff452139

Note: thanks to Deozaan for putting me onto Gist!
30  Other Software / Developer's Corner / Re: I'm posting a small utility class I wrote for files, in C# on: June 02, 2014, 06:29:55 AM
https://gist.github.com/kyrathasoft/e0dc96b13679ff452139
31  Other Software / Developer's Corner / Re: I'm posting a small utility class I wrote for files, in C# on: June 02, 2014, 06:24:51 AM
Good idea. I'll look into it.
32  Other Software / Developer's Corner / Small utility class with methods for manipulating C# forms, controls, and fonts. on: June 01, 2014, 05:44:43 PM
Four methods in static class MyForms.cs
(1) center and size a form
(2) center a control on a form
(3) center a control horizontally only on a form
(4) change the font and font style of a control

Sample project included as attachment.

See this link: http://www.donationcoder.com/forum/index.php?topic=38081
33  Other Software / Developer's Corner / Re: I'm posting a small utility class I wrote for files, in C# on: June 01, 2014, 04:53:29 PM
I'm posting a slightly modified version of the project that adds a demonstration of creating a nested subdirectory and writing a file to it. This version does everything the project in the OP does, plus this extra functionality. See attachment.
34  Other Software / Developer's Corner / Re: I'm posting a small utility class I wrote for files, in C# on: June 01, 2014, 04:03:35 PM
^ Fixed a couple typos in my previous post.
35  Other Software / Developer's Corner / I'm posting a small utility class I wrote for files, in C# on: June 01, 2014, 03:59:04 PM
The attached zip file can be extracted and then the project can be run with Visual Studio (Express or higher editions).
The text file just lists the method signature for the six methods of the static class, and comments them.
As demonstrated in the project, use a "using" statement to reference my namespace.

Demonstrates:
(1) converting file size (number of bytes) to string description, e.g., "7.405 Kb"
(2) reading a file into an array of type byte
(3) writing string data to a filepath
(4) returning number of files in given directory matching a given pattern
(5) returning total size of those pattern-matched files, in bytes
(6) obtaining the directory of the currently executing assembly for a C# console application

See this link: http://www.donationcoder.com/forum/index.php?topic=38081
36  Main Area and Open Discussion / Living Room / Re: What books are you reading? on: May 31, 2014, 09:17:24 PM
Prof. Rob Miles' "C# Yellow Book"
37  Main Area and Open Discussion / Living Room / Re: What books are you reading? on: May 30, 2014, 10:04:55 PM
An Intro to GCC Compilers, by Brian Gough
38  Main Area and Open Discussion / Living Room / Re: Programmers: What size monitors do you guys prefer? on: May 20, 2014, 10:48:16 PM
Really nice, Deozaan smiley
39  Special User Sections / N.A.N.Y. 2014 / Re: N.A.N.Y. 2014 Submission: Kyrathaba's Sudoku on: May 01, 2014, 06:16:11 PM
Thanks, TRJ smiley
40  Other Software / Found Deals and Discounts / two 32GB Lexar jump drives for $22 and free shipping on: March 21, 2014, 06:29:30 PM
Thought this might be of interest: buydig.com is currently selling a pair of 32 GB flash drives for $22 and shipping is free.
41  Main Area and Open Discussion / Living Room / Re: What books are you reading? on: March 15, 2014, 10:15:36 AM
I recently read Brian Lumley's "Necroscope". Outstanding!  Thmbsup
42  Main Area and Open Discussion / Living Room / Re: Sci-fi novel now available from DC member kyrathaba! on: March 04, 2014, 10:44:01 AM
Panzer, I emailed it a few minutes ago. Let me know if you don't get it  smiley
43  Main Area and Open Discussion / Living Room / Re: Sci-fi novel now available from DC member kyrathaba! on: March 03, 2014, 07:44:04 AM
Panzer, PM me your email address and I'll send you another copy.
44  Main Area and Open Discussion / Living Room / Re: What books are you reading? on: February 28, 2014, 10:03:37 PM
I recently read "Irrefutable Proof" by Abby Vandiver. I don't recommend it.

I'm currently reading The Towers of the Sunset by L. E. Modesett, Jr.
45  Main Area and Open Discussion / Living Room / Re: Sci-fi novel now available from DC member kyrathaba! on: February 25, 2014, 06:21:44 PM
Get Kyrathaba Rising in .mobi format for 84 cents until March 1st. Also, this informs writers and aspiring writers of yet another sales avenue for their work. Sellfy is no in beta:

https://sellfy.com/p/6Gqy/
46  DonationCoder.com Software / Kyrathaba Software / Re: Kyrathaba's Text File Duplicate Finder on: February 22, 2014, 08:08:40 PM
Great, DyNama! Glad I could help!
47  Main Area and Open Discussion / Living Room / Re: Programming/Coder humor on: January 30, 2014, 08:35:40 PM
^ Yeah, and when you're reviewing a Java developer's code: "Dude, that is some good shit..."
48  Main Area and Open Discussion / Living Room / Re: Programming/Coder humor on: January 30, 2014, 07:22:46 AM
I always thought Java was a bit ... smelly...
49  Main Area and Open Discussion / Living Room / Re: A Table Tennis match turns into an amazing display of playfullness on: January 28, 2014, 07:52:08 AM
Fantastic!
50  Main Area and Open Discussion / Living Room / Re: Interesting "stuff" on: January 24, 2014, 07:06:13 AM
[attach=1]

The world's most famous bike race. The "R" in "Tour" is a cyclist.
The yellow circle is the front wheel of a bicycle, the "O" is the back wheel.
Pages: Prev 1 [2] 3 4 5 6 7 ... 115 Next
DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.025s | Server load: 0.24 ]