Showing posts with label how to. Show all posts
Showing posts with label how to. Show all posts

How to Extract Digits From a String in C#

How to Extract digits from a string in Csharp. String is a common data type which we use in our code but some time we have to perform some kind of function on string. It is a example of how you can extract numeric digits. Follow the following steps:
Requirement for the use of timer control is following.

- Operating System : Windows XP, Windows 7 , Vista
- Platform : .Net 2.0 or greater
- IDE : Visual Studio
- Language : Csharp

Now Follow the following steps :

- Create New Project on Visual Studio
- Select language C#
- Now Select the Console Application

Add this to your code at top :

-
using System.Text.RegularExpressions;

Use the Following Function :

public static string[] ExtractDigits(string data)
{
System.Text.RegularExpressions.MatchCollection matches
= System.Text.RegularExpressions.Regex.Matches(data,@"(\d+\.?\d*|\.\d+)");
string[] MatchList = new string[matches.Count];
int c = 0;
foreach (System.Text.RegularExpressions.Match match in matches)
{
MatchList[c] = match.ToString();
c++;
}
return MatchList;
}
Now you can use this function in many forms for example im using it for sum of digits :

static void Main(string[] args)
{
string st = "sfdsdfj3w4ew3434mnskjfns34wq34";
int sum = 0;
string[] arra = ExtractDigits(st);

for (int i = 0; i < arra.Length; i++) { Console.WriteLine(arra[i]); sum+= Convert.ToInt32(arra[i]); } Console.WriteLine("SUM is : "+sum.ToString()); Console.ReadLine(); }

How To Create A Log File

We start from the simple question that why we need to create a log file in our application. Simple is that log file keep record of all transaction of data or tells us about the action that we done in application. It help us to recover all previous data. I read many forum related to coding from where I get the question, is there any kind of built in function or .dll in C# that maintains log file. So answer to that question is that there is no such a function or .dll that handle this event. For this purpose I will suggest that y u not make your own program that help you to create a log file.

How To Create Hot Key in Windows Application With Csharp

This is my 4th Tutorial about the basic Windows Programming. Hot key are such key which we embed is in our application for ease of user. For example when we write a URL in browser we write Google and then press Ctrl+Enter then URL look like this http://www.google.com it’s a basic example. we use Alt+F4 to close any kind of window. If you never done this before then your may be thinking that it is very difficult but dear you will surprise to know that its so much easy to create a Hot Key in Windows Application with Csharp.

sabre-oled

SEOTIPS: PHP Google Hack Keyword Summary

inurl: index.php?
Id = inurl: trainers.php?
Id = inurl: buy.php?
Category = inurl: article.php?
ID = inurl: play_old.php?
Id = inurl: declaration_more.php?
Decl_i …
inurl: index.php? id =
inurl: trainers.php? id =
inurl: buy.php? category =
inurl: article.php? ID =
inurl: play_old.php? id =
inurl: declaration_more.php?
decl_id =inurl: pageid =
inurl: games.php? id =
inurl: page.php? file =
inurl: newsDetail.php? id =
inurl: gallery.php? id =
inurl: article.php? id =
inurl: show.php? id =
inurl: staff_id =
inurl: newsitem.php? num =
inurl: readnews.php? id =
inurl: top10.php? cat =
inurl: historialeer.php? num =
inurl: reagir.php? num =
inurl: Stray-Questions-View.php? num =
inurl: forum_bds.php? num =
inurl: game.php? id =
inurl: view_product.php? id =
inurl: newsone.php? id =
inurl: sw_comment.php? id =
inurl: news.php? id =
inurl: avd_start.php? avd =
inurl: event.php? id =
inurl: product-item.php? id =
inurl: sql.php? id =
inurl: news_view.php? id =
inurl: select_biblio.php? id =
inurl: humor.php? id =
inurl: aboutbook.php? id =
inurl: ogl_inet.php? ogl_id =
inurl: fiche_spectacle.php? id =
inurl: communique_detail.php? id =
inurl: sem.php3? id =
inurl: kategorie.php4? id =
inurl: news.php? id =
inurl: index.php? id =
inurl: faq2.php? id =
inurl: show_an.php? id =
inurl: preview.php? id =
inurl: loadpsb.php? id =
inurl: opinions.php? id =
inurl: spr.php? id =
inurl: pages.php? id =
inurl: announce.php? id =
inurl: clanek.php4? id =
inurl: participant.php? id =
inurl: download.php? id =
inurl: main.php? id =
inurl: review.php? id =
inurl: chappies.php? id =
inurl: read.php? id =
inurl: prod_detail.php? id =
inurl: viewphoto.php? id =
inurl: article.php? id =
inurl: person.php? id =
inurl: productinfo.php? id =
inurl: showimg.php? id =
inurl: view.php? id =
inurl: website.php? id =
inurl: hosting_info.php? id =
inurl: gallery.php? id =
inurl: rub.php? idr =
inurl: view_faq.php? id =
inurl: artikelinfo.php? id =
inurl: detail.php? ID =
inurl: index.php? =
inurl: profile_view.php? id =
inurl: category.php? id =
inurl: publications.php? id =
inurl: fellows.php? id =
inurl: downloads_info.php? id =
inurl: prod_info.php? id =
inurl: shop.php? do = part & id =
inurl: productinfo.php? id =
inurl: collectionitem.php? id =
inurl: band_info.php? id =
inurl: product.php? id =
inurl: releases.php? id =
inurl: ray.php? id =
inurl: produit.php? id =
inurl: pop.php? id =
inurl: shopping.php? id =
inurl: productdetail.php? id =
inurl: post.php? id =
inurl: viewshowdetail.php? id =
inurl: clubpage.php? id =
inurl: memberInfo.php? id =
inurl: section.php? id =
inurl: theme.php? id =
inurl: page.php? id =
inurl: shredder-categories.php? id =
inurl: tradeCategory.php? id =
inurl: product_ranges_view.php? ID =
inurl: shop_category.php? id =
inurl: transcript.php? id =
inurl: channel_id =
inurl: item_id =
inurl: newsid =
inurl: trainers.php? id =
inurl: news-full.php? id =
inurl: news_display.php? getid =
inurl: index2.php? option =
inurl: readnews.php? id =
inurl: top10.php? cat =
inurl: newsone.php? id =
inurl: event.php? id =
inurl: product-item.php? id =
inurl: sql.php? id =
inurl: aboutbook.php? id =
inurl: preview.php? id =
inurl: loadpsb.php? id =
inurl: pages.php? id =
inurl: material.php? id =
inurl: clanek.php4? id =
inurl: announce.php? id =
inurl: chappies.php? id =
inurl: read.php? id =
inurl: viewapp.php? id =
inurl: viewphoto.php? id =
inurl: rub.php? idr =
inurl: galeri_info.php? l =
inurl: review.php? id =
inurl: iniziativa.php? in =
inurl: curriculum.php? id =
inurl: labels.php? id =
inurl: story.php? id =
inurl: look.php? ID =
inurl: newsone.php? id =
inurl: aboutbook.php? id =
inurl: material.php? id =
inurl: opinions.php? id =
inurl: announce.php? id =
inurl: rub.php? idr =
inurl: galeri_info.php? l =
inurl: tekst.php? idt =
inurl: newscat.php? id =
inurl: newsticker_info.php? idn =
inurl: rubrika.php? idr =
inurl: rubp.php? idr =
inurl: offer.php? idf =
inurl: art.php? idm =
inurl: title.php? id =

via [Biggest Guru]
Please  comment below, if you really like this post.

QuickTip For Blogger: How To Optimize Website Pictures?

Image optimization is the site search engine optimization one of the most important part. The pictures on the website search engin optimization / SEO website will not only bring more additional traffic, but also bring visitors a better user experience. Images in this article summarizes the optimization techniques to note 16.
1. In the picture of the alt tag (replacement text) to add keywords, which is image optimized in the most important point.
2. Standard image embed code should contain five key tags: src, width, height, alt and title. Replace the text (alt) is to give those who can not see images in your document text description provided here. title is a description and additional images to add, if you need to text when the mouse through the pictures should prompt property title. Alt tag generally the most critical.
3. Give you the picture a descriptive and contain your target keywords in the file name. If you have a lovely parrot picture is about, then this should be used as a descriptive parrot.jpg file name, rather than using the code name t123.jpg such is, of course, can make the image file name and ALT tags inside the content of the same or the same. Do not casually use such names pic1234.jpg, but should describe more clearly the name of cute-parrot.jpg.
4. Picture and where the content must be related to: web visitors to browse images is not the first thing, but it will make visitors stay longer on the page longer. (Based on eye tracking research, browsing the text of priority in the picture, but when printing the article, people will look at the picture. While looking at web pages will look at the text, but pictures will make them stay longer pages longer and more impressive)
5. In the picture around to add relevant information. If you use Google search for images, will be not difficult to find in each picture there will be a descriptive text under which keywords appear in bold. Google Image Search by analyzing the page image in the vicinity of the text, images, headings and many other elements to determine the image content. Therefore, the picture around to add a description contains the keyword information to optimize website pictures in search engine rankings.
6. Point to the picture links to include keywords.
Open the image using the hyperlink, then the name of the hyperlink of keywords should include pictures, for example you want to link a lovely parrot picture, it should not use the “Click for full size” and link text, but should try to use such as ” Lovely parrot “named form like.
7. Use Tag to tag the picture. Use as flickr photo storage services like, it is best for the pictures with tag.
8. To ensure the picture can be crawled by search engines. Set the site robots.txt file to ensure image files can be searched spider crawling. Remember not to use javascript links to picture files. If you do so, search engines can not retrieve your image of the document.
9. No need to optimize your site for all the pictures. Such as the use of template images, navigation in the image are background images, etc., we do not have ALT tags for these add a picture, we can put these pictures in a separate folder. And by setting the robots.txt file to block spiders to crawl these pictures.
You can set all the spiders have been prevented from crawling the images:
User-agent: *
Disallow: / Images
Can only prevent Google image search spiders crawl:
User-agent: Googlebot-Image
Disallow: / Images
10. To avoid a repeat of the picture. For example, your site a picture of three forms: small size of the picture, medium size image, the larger size of the image. So, do not let it be indexed to the three pictures. Deal with this situation the best way is to use robots.txt file to tell spiders not to crawl you do not want to be indexed image version.
11. Number of images per page is less possible.
12. Note that the image size to accommodate the search engine, such as your link is a wallpaper, then the size of wallpaper should be compliant. As Google, Baidu and other image search are available under the picture size to search.
13. Frequently updated picture. If you do not change the picture for a long time (image size, image file size, image location and image name so no change), its ranking may be reduced, because the search engine would suspect image content is outdated.
14. Using Google Webmaster enhanced image search. Enable enhanced image search, Google will use tools such as Google Image Labeler your site includes images associated with the label in order to optimize the picture quality of the index and improve the search.
15. Check the index by search engines picture search picture your situation. In order to check the pictures on the website optimization is successful, need to monitor the search engine on the web site picture of your rate. Method is http://images.google.cn/ search bar input (to replace you need to check www.example.org the domain name). Other search engines have this feature.

How To Make Money Online From Internet?

With each passing day, Internet is changing world around us. It has not only changed our lifestyle but also the way we do business, make money and generate income. Now make money online and making online businesses are the biggest trends in the world.
There are thousands of Pakistanis that are earning online very well. Even few have earned thousands of Dollars in last few years and have established very big companies online.
This website has many pages, tips, and techniques on how to make money online from Pakistan, making money online from Pakistan, running affiliate programs from Pakistan, make money through freelancing from Pakistan, useful tips, money-making articles, researches, reviews and recommendations. So Just Read, Learn and Earn Online!

How to Make Money Online

We have categorized and compiled a list of the available to make money online methods so that every visitor will have a reference point which provides them with all information they need. Choose a category which suits you most to earning money online. Read and learn as much as you can in that category and start Earning Online but again do this in your free time:

Ways to Make Money Online

  1. Set Up a Blog and Earn $500 to $1,500 Per Month.
  2. Start a Website and Earn $300 to $1,000 Per Month.
  3. Start Affiliate Marketing and Earn $1,000 to $3,000 Per Month.
  4. Start an Online Business and Earn $5,000 to $15,000 Per Month.
  5. Find a Virtual Job or Freelance and Earn $1500 to $5000.
  6. Start Domaining and Earn $300 to $2000 per Month.
  7. Participate in Get-Paid-Websites and Earn $300 to $1000.

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Powered by Blogger