Results for "Category: String Manipulation"
Just a little snip of code that lets you trim a specified number of characters from either side of a string.
This program encrypt or decrypt a text, with a key and a checksum checker. Very good program
Finds words starting with, containing, ending with, >
This script displays records retrieved from the database. You can sort each field and jump to any page in the database. You can customize the records per page and all the colors. You may also attatch a style sheet to change the colors of each class type. this script is very close to being XML compatable. (still in the works).
This code lets visitors to your site perform complex queries. Users may choose if specific words (or phrases) must or must not match - or if they are optional (default).
I've coded many dynamic pages that needed the support of displaying data accross multiple pages. Whith this script, it will build a small navigation that you can display at the top and/or bottom of your results to navigate to the next page. It also supports the ability to only display pages within a specified range. (ie - if you have 1000 pages, it will only write links to 5 of the pages closest to the current page being viewed.)
Add search to your site using a database.
Actually this is kind of fun. This program genaerates 1000000 completely random letters and then uses the microsoft Word Spell check object to look for real words. You can specify the minimum length of text to search for as well as maximum and it will highlight real words. i put an Algorythm that looks for words based on each character position, for example, if "WHOLE" is found it will return 3 words, "Whole", Hole", and OLE". You would be surprised to see some of the words that are generated. Oh well, good for a dyno test on your computer at least. Comments and votes are greatly appreciated.
This example will show you how parse a list a variables quickly with minimal coding.
this is and update of lotto number checker it checks your lotto numbers for you
k so i was bored so sue me! neway i made this as a joke for when im on the irc or something i dunno its not perfect, but dont expect ne updates if you want anything diff. do it yourself i think it would be really fun to add this to an irc client , so that as you type it changes it. easily done just change the stuff in the button to text1_change and it should work
This code will cycle through a text box or rich text box line by line, select the line and place it into a string array. The array will then be passed to another method where it will be placed into a list box excluding the blank lines. I've seen other code like this but if there is no ending vbCrLf then the last line of the box is not read, I've fixed this and showed how to extract the line information and how to use it. The code is slowed down using a pause routine that I made about a year ago.
MySQL-API for dotNET. I needed a fast connection to mysql for c#, thus I wrote this class(MySQLdotNet). You can get DataSets from Querys and Update them. Also you can send Querys(SQLNonQuery), which do not send data back. SQLScalar returns only one value. 'TestDataAccess' is a little test-client for the API. The source is written in c#, but you can use it with every dotNet-language. To open the project, doubleclick on "\TestDataAccess\TestDataAccess.sln" This Source-code is Freeware. If you modify or update something, that make the program better, please let me know, or send me the sourcecode. Requirement libmysql.dll Today(12-07-2002) I fixed a bug to delete rows from a DataTable (13-07-2002) added flags to DataColumns & primary-keys to the DataTable Enjoy...
The original source code was from someone (AndrComm or Sebastien?) else. I recode the whole thing, but having reference to the original. Anyway thanks, whoever who are who wrote the original code (yeahh.. all creadits to him) since i learnt some performance optimization (my original codes are tremendously slow).I did some code clean up and comments. The encode speed increased by 20%, decoded speed increased by 30%. Here's the best results that i come out with: file : command.com (93,040 bytes) load : 2.56 mb/sec (n/a in original code) save : 3.39 mb/sec (n/a in original code) encode : 7.17 mb/sec (20% faster, original code runs at 6.05 mb/sec) decode : 7.31 mb/sec (30% faster, original code runs at 5.61 mb/sec) Here's the changes I've made : 1. *REWROTE* code clean up (i think it should be more readable) 2. *REWROTE* encode and decode table is created together. 3. *REWROTE* sub DECODE rewrote (should be faster). 4. *REWROTE* sub SPAN and UNSPAN now supports SpanSeparator. 5. *ADDED* More detailed co1mments for novice, not experts 6. *ADDED* some form controls, for input and output. 7. *ADDED* file loading and saving feature 8. *FIXED* encode / decode rate calculation fixed... more accurate should be 1 sec = 1024 ticks (kernel 1044 ticks?) and 1 mb = 1048576 bytes. (1024b x 1024b) and some other minor corrections as well...
reads SQL Stored procedure meta data to provide a complete reporting solution including user input forms for criteria and sortable, pageable html reports.
Regular Expressions is a very powerful tool for string manipulations. I have developed an inhouse tool to to test and optimize pattern code. A tutorial is included that will get the new user "up to speed" in seconds!
***UPDATED 01/22/2003*** This is the same as my VB6 program only it's been adjusted to compile in the .NET environment. It does as stated below. To retrieve a list of jobs on a given SQL Server (7.0 or 2000) and track it's progress through it's numerous jobsteps. This is typically a nice little app to have if you have many jobs that run throughout the day and you want to see if one of those steps has hung up. To make this app truly useful I added a monitoring timer that refreshes every ten seconds or so. The Restart Jobs button is not activated at this time, but the coding should be a snap someone wanting the ability to stop and start jobs from this application. This application is in it's infancy at this moment since I've been working on it for only a couple of days, but is useful even now as far as I'm concerned. Please vote if you like it...
The code generates a random name. I am giving basically two simple functions with which you can create a loop that will make many thousands of nicknames or names for roleplay games. Check it out.
This piece of code demonstrate the way of accessing database (basic reading and writing). Good for beginners who wish to learn ASP. Nearly every line is documented.
Converts IRC text to RTF and displays it in a RichText Box. Supports everything.