NET libraries every developer should know about. Webdistortion. Every good developer knows never to re- invent the wheel, especially if there is software out there that has been tested by others, and has an established track record.
As a developer using the . NET framework I’ve found some of these libraries invaluable, so I’m sharing them for some of the other dev’s out there with a brief outline of how to use. Yedda Twitter Library. URL: http: //devblog. I’ve used this on a number of very simple twitter projects, where I’ve just needed to send an update. As the site says its more of a wrapper for the Twitter API than an actual library, but none the less its an easy way to integrate with the service via a drop in dll. Here’s how to use it.
![Microsoft Expression Web Step Step Pdf Compressor Microsoft Expression Web Step Step Pdf Compressor](http://static2.afreedownload123.info/2017/0502/pdfescape-editor_68aea.png)
Dim obj. Yedda As New Yedda. Twitter. Dim status as String. Dim str. Twitter.
User as String = “username”Dim str. Twitter. Password as String = “password”status = “Hello World”obj.
We provide excellent essay writing service 24/7. Enjoy proficient essay writing and custom writing services provided by professional academic writers.
![Microsoft Expression Web Step Step Pdf Compressor Microsoft Expression Web Step Step Pdf Compressor](http://utilities.softlandmark.com/images/screenshots/Free_Lepide_User_Management_328451.jpg)
- ★ Best Golf Cart Batteries Trojan - Deep Cycle Battery 31 54tj Dead Battery Syndrome Motorcycle Battery Goes Dead.
- It happened. Bright, white light flashed before your eyes, the power of the sun licked your skin, and you felt a shock wave of dust and debris plow through the city.
Yedda. Update(str. Twitter. User, str. Twitter. Password, str. Status, Yedda. Twitter. Output. Format. Type.
RSS)This small section of code will update your Twitter stream (provided you have a reference to the DLL), and your username and password correct. File. Helpers Library.
URL: http: //filehelpers. The File. Helpers library was created to stop developers from continuing to parse CSV. If you are doing any kind of importing and exporting within your application using the CSV format to get data in or out, look no further. You can strong type your flat file simply by coding up a class that maps a data type to each record. This way data consistency, and import / export reliability can be tightened up on quite a bit. Writing out to a new file is also pretty easy once you’ve created your base classes defining the structure.
Great little library for your toolkit. First define the structure class…< Delimited. Record(“,”)> _Public Class Product. Public Product. Name As String. Public Product. Code As Integeretc. End Class. Add a reference to the File.
Helper. dll, and read from the file , casting to a array of product objects. Dim engine As New File. Helper. Engine(Get. Type(Product))Dim my. Product As Product() = Direct. Cast(engine. Read.
File(“product. txt”), Product())Perform actions on the array of Products. For Each pro As Product In my. Product)Response. Write(pro. Product. Name)Next. Elmah.
URL: http: //code. Elmah stands for error logging module and handlers. It is a completely pluggable in system for error handling within your . NET app. It catches bot thrown and unhandled exceptions across the scope of your app, logs them, and allows you to browse the full stack trace, all without exposing the error to the users of your application. That’s useful for a number of reasons. Firstly you aren’t getting the performance hit of using debug=true within your application (which by the way you should never be using in a production environment anyway) – and it means you can still get to the bottom of little blips as and if they happen. Coolio. Elmah works as an HTTP module, so it takes little or no effort to deploy on any project.
Just configure a few bits and bobs, and away it goes. All of the configuration is performed in the configuration file – just telling it whether you want your errors logged in a database, in memory or in a txt file is as simple as changing some web config parameters. You can even grab recent errors via RSS and get notified like that. Log. 4Net. URL: http: //logging.
Following in the same vein as Elmah – Log. Net is a port of the well known logging framework for Java log. J. Whilst Elmah concentrates on exceptions that are thrown, Log. Net allows a much more granualar approach to program debugging. With log. 4net it is possible to enable logging at runtime without modifying the original application binary and without incurring a high performance cost.
Multiple “levels” of logging can be set within your program as well, and so you can determine quickly where “fatal” errors occur, and where “warnings” occur that can be ignored in the safe running of your application. Log. 4Net enables all of these things whilst providing the same level of control over the logging format and location as Elmah. You can decide whether you’d like your debug message sent to a database, a text file, or indeed a TCP port.
Different “Appenders” define where and how to send the messages, so if there’s somewhere else you’d like to see errors, you can easily write your own appender to perform this. Again, the appenders are defined in the web.
Imports log. 4net. Imports log. 4net. Config. Private Shared log As log. ILog. Public Sub Page_Load(Byval s as Object, Byval e As Event.
Args) Handles My. Base. Loadlog = Log. Manager. Get. Logger(System. Reflection. Method. Base. Get. Current.
Method(). Declaring. Type)Basic. Configurator. Configure()log. Debug(“Debug Message”)log. Warn(“Warning Message”)log. Fatal(“Fatal Message”)End Sub.
Enterprise DT FTP Library. URL: http: //www. Enterprise DT is a great little FTP library, that performs all the needful without you getting your hands too dirty. It works with both web and offline applications, and again is a port of a Java library.
I’ve used it for automating FTP tasks at the command line, sending photos between two sites automatically via FTP, and for sending feeds to google. It’s really easy to use, and saves you from having to write your own FTP operations. Fire it up, pass some usernames and passwords to it, and away we go. As below: Dim ftp as FTPConnection = new FTPConnection()ftp. Connection. Server. Address = “myserver”ftp. Connection. User.
Name = user. Nameftp. Connection. Password = passwordftp. Connection. Connect()ftp. Connection. Upload. File(local. File. Path, remote. File.
Name)ftp. Close()Html. Agility. Pack. URL: http: //www. The Html Agility Pack is a library for parsing HTML. It is particularly useful if you are doing any kind of scraping work, with the main object of the software to transform real world HTML into structured and parseable DOM structure.
It supports plain XPATH or XSLT syntax for traversing through HTML, making loops and extraction of text a breeze. Knowing these two technologies isn’t a pre- requisite to using it, but it sure as heck helps. You don’t have to setup the Web. Request or anything to grab remote files, which is handy – as you’ll see from the example. Dim hw As New Html.
Agility. Pack. Html. Web. Dim doc As Html. Agility. Pack. Html. Documentdoc = hw. Load(“http: //www.
For Each s As Html. Agility. Pack. Html. Node In doc. Document.
Node. Select. Nodes(“//a[@href]”)Dim att As Html. Agility. Pack. Html.
Attribute = s. Attributes(“href”)Response. Write(att. Value & vb. Cr. Lf)Next. Open. Auth Library. URL: http: //code. Open Auth is slowly becoming the norm, with web apps many preferring its usage over other less secure forms of authentication. This library is a . NET implementation of Open.
Auth, and is mighty useful if you need to get up and running quickly. You are sure to run into a web service that needs you to auth via it. Google, Yahoo, Netflix and Twitter all support Open. Auth to interact with their service. The code needed for open auth is more extensive than some of the other bits and bobs, and has been better explained by others.
Some of these links are worth a look. Shannon Whitley offers this example: Code | Live demo.
Daniel Crenna’s examples: OAuth Specification. The OAuth Workflow. OAuth Walkthrough.
Microsoft Anti. XSS library. URL: http: //bit. Crt. This is one of the security packs that MS have released to help . NET developers write better, more secure code.
Essentially it is an encoding library designed to help protect ASP. NET web- based applications from XSS attacks, and works on the principals of inclusion (white- listing) to accept valid characters. I’ve used it successfully on a couple of projects, and some of the pre- written methods have been rigourously tested by leading security experts. Microsoft. Security. Application. Anti. Xss. Html. Encode(str. Notrust) Microsoft.
Security. Application. Anti. Xss. Java. Script. Encode(str. Notrust)C5 Collections – Collections for . NETURL: http: //www. C5 provides functionality and data structures not provided by the standard . Net System. Collections.
Generic namespace, such as persistent tree data structures, heap based priority queues, hash indexed array lists and linked lists, and events on collection changes. Also, it is more comprehensive than collection class libraries on other similar platforms, such as Java.