Posts

Showing posts with the label PROGRAMMIM

Absolutely Position Element Within a Table Cell

Image
Absolutely Position Element Within a Table Cell   Have you ever wanted to absolutely or relatively position a table cell? Well, I can't help you there. Table cell elements just won't take those position values. And thus, you also can't absolutely position elements within the context of those elements either. I can help you out with that issue. The answer is just to make a generic wrapper element inside the table cells (the exact same size of the table cell) and use that as the relative positioning context. Non-semantic? Yep, but we'll chuck that markup in with JavaScript so it's not a big deal. Kludgy fix? You know it. Does it work? Sure does. # Before < table > < tr > < td > < img src = " yay.jpg " alt = " " > </ td > </ tr > </ table > # After < table > < tr > < td > < div class = " innerWrapper " > <!-- appen...

A beginner’s guide to writing title tags and meta descriptions that get clicks

Image
A beginner’s guide to writing title tags and meta descriptions that get clicks It’s true: title tags and meta descriptions won’t help your website magically rise to the top of the search engine results. Google confirmed it back in 2007 so let’s kill that myth right at the outset. However, these two elements can improve click through rates and entice people to click on your link rather than the link of one of your competitors. So why do site owners neglect title tags and meta descriptions, pushing them to the back burner? Title tags and descriptions tell search engines and users what your site is about. They describe the content on each page of your website and explain how it relates to a user’s search query. And, when used properly, they can act as a “hook” of your advertising in the search engine results. If you don’t know what title tags and meta descriptions are, why they’re important and how to write them to get more prospects to click on your links in search engine results, we’ll...

How To Use HTML Meta Tags

Image
Want top search engine rankings? Just add meta tags and your website will magically rise to the top, right? Wrong. Meta tags are one piece in a large algorithmic puzzle that major search engines look at when deciding which results are relevant to show users who have typed in a search query. While there is still some debate about which meta tags remain useful and important to search engines, meta tags definitely aren’t a magic solution to gaining rankings in Google, Bing, Yahoo, or elsewhere – so let’s kill that myth right at the outset. However, meta tags help tell search engines and users what your site is about, and when meta tags are implemented incorrectly, the negative impact can be substantial and heartbreaking. Let’s look at what meta tags are, what meta tags matter, and how to avoid mistakes when implementing meta tags on your website. What Are Meta Tags? HTML meta tags are officially page data tags that lie between the open and closing head tags in the HTML code of a document....

Meta tags that Google understands

Meta tags that Google understands Meta tags are a great way for webmasters to provide search engines with information about their sites. Meta tags can be used to provide information to all sorts of clients, and each system processes only the meta tags they understand and ignores the rest. Meta tags are added to the <head> section of your HTML page and generally look like this: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="Description" CONTENT="Author: A.N. Author, Illustrator: P. Picture, Category: Books, Price: £9.24, Length: 784 pages"> <meta name="google-site-verification" content="+nxGUDJ4QpAZ5l9Bsjdi102tLVC21AIh5d1Nl23908vVuFHs34="/> <title>Example Books - high-quality used books for children</title> <meta name="robots" content="noindex,nofollow"> Google understands the following meta tags (and related items): ...

C# Programming Guide

Image
    This section provides detailed information on key C# language features and features accessible to C# through the .NET Framework. Most of this section assumes that you already know something about C# and general programming concepts. If you are a complete beginner with programming or with C#, you might want to visit the C# Developer Center , where you can find many tutorials, samples and videos to help you get started. For information about specific keywords, operators and preprocessor directives, see C# Reference . For information about the C# Language Specification, see C# Language Specification . Language Sections Inside a C# Program Main() and Command-Line Arguments (C# Programming Guide) Types (C# Programming Guide) Arrays (C# Programming Guide) Strings (C# Programming Guide) Statements, Expressions, and Operators (C# Programming Guide) Classes and Structs (C# Programming Guide) Properties (C# Programming Guide) Interfaces (C# Programming Guide) Indexers (C# Programmin...

C# tutorial

C# Visual Studio C# (pronounced "C sharp") is a programming language that is designed for building a variety of applications that run on the .NET Framework. C# is simple, powerful, type-safe, and object-oriented. The many innovations in C# enable rapid application development while retaining the expressiveness and elegance of C-style languages. If you don't already have C#, you can acquire a version of Visual Studio that includes C# for free from the Visual Studio site. In This Section Getting Started with C# Introduces the features of C# for programmers who are new to the language or are new to Visual Studio, and provides a roadmap for finding Help about Visual Studio. Using the Visual Studio Development Environment for C# Introduces the Visual C# development environment. C# Programming Guide Provides information and practical examples about how to use C# language constructs. C# Reference Provides detailed reference information about C# programmi...

C# Server Socket program

Image
C# Server Socket program The C# Socket Programming has two sections. 1. C# Server Socket Program 2. C# Client Socket Program Server Socket Program The Server Socket Program here is a C# Console based Application . This program act as a Server and listening to clients request . Here we assign a Port No. 8888 for the Server Socket , it is an instance of the C# Class TcpListener , and call its start() method. TcpListener serverSocket = new TcpListener(8888); serverSocket.Start(); The next step is to create an infinite loop for monitoring the request from Client's side . When the Server Socket accept a request from the Client side, it reads the data from NetworkStream and also it write the response to NetworkStream . From the following C# program you can understand how to create a Socket Server in C# . Create a new C# Console Application Project and put the following source code into the project. Next :  C# Client Socket program   Download Source Code Print Source Code   usi...

Reusable multithreaded TCP/IP client and server classes with example project in VB.NET

Image
Reusable multithreaded TCP/IP client and server classes with example project in VB.NET A multithreaded server class that accepts multiple connections from a provided client class. Each client can send and receive files and text (byte data) simultaneously along 250 available channels. Download TcpCommExampleProjectV3.91.zip - 327.7 KB Download TcpCommExampleProjectV2.zip - 41.1 KB Introduction Please see below for a list of fixes / changes in version 3.91. I've left version 2 up so it's available for people who may still need a .net 2.0 only solution. This latest version requires .net 4 or higher. This example project contains four classes - TcpCommServer , TcpCommClient , clsAsyncUnbuffWriter and CpuMonitor . With these classes, you will not only be able to instantly add TCP/IP functionality to your VB.NET applications, but it also has most of the bells and whistles we're all looking for. With these classes, you will be able to connect multiple clients to the server on...

25 Most Frequently Used Linux IPTables Rules Examples

At a first glance, IPTables rules might look cryptic. In this article, I’ve given 25 practical IPTables rules that you can copy/paste and use it for your needs. These examples will act as a basic templates for you to tweak these rules to suite your specific requirement. For easy reference, all these 25 iptables rules are in shell script format: iptables-rules 1. Delete Existing Rules Before you start building new set of rules, you might want to clean-up all the default rules, and existing rules. Use the iptables flush command as shown below to do this. iptables -F (or) iptables --flush 2. Set Default Chain Policies The default chain policy is ACCEPT. Change this to DROP for all INPUT, FORWARD, and OUTPUT chains as shown below. iptables -P INPUT DROP iptables -P FORWARD DROP iptables -P OUTPUT DROP When you make both INPUT, and OUTPUT chain’s default policy as DROP, for every firewall rule requirement you have, you should define two rules. i.e one for incoming and one for outgoing. In ...