Showing posts with label Source. Show all posts
Showing posts with label Source. Show all posts

Crawling in Open Source, Part 1

Introduction

In this article I will give you a short introduction to crawling in general and then move on to Apache Nutch, its history, and architecture, and explanations of its core processing steps and MapReduce functions at a very technical level. After reading this article readers should be somewhat familiar with the basic crawling concepts and core MapReduce jobs in Nutch.

What is a web crawler?

A Web Crawler is a computer program that usually discovers and downloads content from the web via an HTTP protocol. The discovery process of a crawler is usually simple and straightforward. A crawler is first given a set of URLs, often called seeds. Next the crawler goes and downloads the content from those URLs and then extracts hyperlinks or URLs from the downloaded content. This is exactly the same thing that happens in the real world when a human is interfacing with a web browser and clicks on links from a homepage, and pages that follow, one after another.

When a web crawler discovers new URLs to follow, it then goes to fetch the content from those URLs - just like a normal browser fetches the content when links on a web page are clicked. The download part is even simpler. In the simplified case of HTTP, a network connection to the host is opened, an HTTP request is sent, an HTTP response is read from the wire and then the network connection is closed. A crawler might also support other means of getting the content, making it capable of finding and fetching content from various different places like local or shared file systems, ftp servers, mail boxes etc.

Crawler use cases

Generally speaking, crawlers are used to find and bring in the content that interests you. Often the reason is that you want to make that information searchable by indexing it. The use case and context for crawling can vary greatly depending on the task at hand. For example the most popular web search engines, like Google and Yahoo, deploy a web crawler that primarily finds content that is publicly available via the web. The main challenge for such a generic web crawler is obviously scalability. The crawler architecture needs to be efficient because the amount of content to crawl is enormous and growing all the time at ever increasing speeds. Another example, of a completely different kind of use case, is a price comparison site where users are presented with products and their price information from various online shops.

To gather such information one could implement a crawler that continuously re-crawls content from a predefined set of web sites, and is mainly interested in just a few specific URLs from those sites. A crawler in an enterprise search context possesses yet another set of features important for that context. Usually, an enterprise crawler needs to understand and extract information from various different document formats and access those documents from many different places like mail boxes, CRM systems, and content management systems. Understanding many different document formats plays an important role. And there are many other examples of crawling needs that lie in between these examples that each require a slightly different set of requirements for the crawler to fulfill.

Essential crawler components

There are a few features or characteristics that are very important for a crawler. The most important single feature every crawler should contain is a sense of politeness. Since crawling content from web sites uses resources from the target server, like network bandwidth and processor time, it is mandatory to limit the frequency a crawler accesses particular content or else the target server would soon become inaccessible to real users. Owners of a website may also want to expose only some part of the available content to web crawlers. For such cases there exists a method called Robots Exclusion Standard that gives the owner of a web site the means to control what and how often something is fetched from the server. A polite crawler respects such rules. Politeness is not just following the rules, but respecting a site's resources even when such rules are not explicitly specified by limiting the frequency of your crawler's visits. The most common components of a crawler include a queue, fetcher, extractor and content repository.

The queue contains URLs to be fetched. It may be a simple memory based, first in, first out queue, but usually it's more advanced and consists of host based queues, a way to prioritize fetching of more important URLs, an ability to store parts or all of the data structures on disk and so on. The fetcher is a component that does the actual work of getting a single piece of content, for example one single HTML page. The extractor is a component responsible for finding new URLs to fetch, for example by extracting that information from an HTML page. The newly discovered URLs are then normalized and queued to be fetched. The content repository is a place where you store the content. Later the content is processed and finally indexed. I am not going to go into more detail about crawler architectures and implementation details, but will instead take a closer look at one open source java crawler implementation: Apache Nutch.

Apache Nutch

Nutch was originally implemented by Doug Cutting and Michael Cafarella et al. in around 2002. The goal was to make Nutch a web scale crawler and search application capable of fetching billions of URLs per month, maintain an index of these pages and allow searching of that index 1000 times per second. The original design was proven to scale up to 100 million documents but became impractical with problems of maintenance at such a scale. During 2004, after the incubation process, Nutch became part of Apache. Soon after Google published its MapReduce paper in 2004, the Nutch architecture was rewritten to take advantage of MapReduce, and a new data storage system called NutchDistributedFileSystem (NDFS) was implemented.

This new architecture allowed Nutch to be run on a large cluster of machines, making the architecture scalable both in processing power and data storage. Later both the MapReduce execution framework and NDFS were promoted to a top level Apache project called Apache Hadoop. Hadoop solves much of the maintenance issues Nutch had in the pre-MapReduce era. After setting up a Hadoop cluster you can control Nutch crawling from one single machine despite the size of the cluster you are running Nutch on. Nutch as it exists today is still pretty much an application that helps you to build a generic web search engine. It supports fetching content with various protocols such as HTTP, HTTPS, FTP and local file system. Nutch can also extract textual content from several document formats like HTML, RSS, ATOM, PDF, ms formats (doc, excel, ppt), etc right out of the box. Nutch is not for everyone as some quite low level skills are still required to run a crawl and maintain the indexes.

Apache Nutch Internals

Running Nutch consists of executing several commands from the shell in sequence. Those commands each launch one or more MapReduce jobs that are executed by Hadoop. Next I will walk you through some of the most important commands and how they are constructed as MapReduce jobs and tasks. I'll use Python-like pseudocode to describe the functions in simplified examples for illustration purposes, but this should still capture the most essential aspects of each job. Before going into the individual commands,the core terms and components that I will refer to later in this article need to be explained. The Crawl Database is a data store where Nutch stores every URL, together with the metadata that it knows about. In Hadoop terms it's a Sequence file (meaning all records are stored in sequential manner) consisting of tuples of URL and CrawlDatum. Many other data structures in Nutch are of similar structure and no relational databases are used. The rationale behind this kind of data structure is scalability.

The model of simple, flat data storage works well in a distributed environment. Each node gets a one or more split of the whole data and operates on that (The Map phase of MapReduce). Data can be stored inside the Hadoop Distributed File System so nodes can access the splits from the nearest host that contains a replica of it. Operations (like inserts, deletes and updates) in Crawl Database and other data are processed in batch mode. Here is an example of the contents of crawldb: The Fetch List is a data structure (SequenceFile, URL->Crawldatum) that contains the URL, crawldatum tuples that are going to be fetched in one batch, usually the Fetch list contents are a subset of CrawlDB that was created by the generate command.

FetchList is stored inside Segment. Segment is basically a folder containing all the data related to one fetching batch. Besides the Fetch List, the fetched content itself will be stored there in addition to the extracted plain text version of the content, anchor texts and URLs of outlinks, protocol and document level metadata etc. The Link Database is a data structure (Sequence file, URL -> Inlinks) that contains all inverted links. In the parsing phase Nutch can extract outlinks from a document and store them in format source url -> target_url,anchor_text. In the process of inversion we invert the order and combine all instances making the data records in Link Database look like: targetURL -> anchortext[] text so we can use that information later when individual documents are indexed.

Inject

The Inject command in Nutch has one responsibility: inject more URLs into Crawl Database. Normally you should collect a set of URLs to add and then process them in one batch to keep the time of a single insert small.

Generate

The Generate command in Nutch is used to generate a list of URLs to fetch from Crawl Database URLs with the highest scores are preferred.

Fetch

Fetcher is responsible for fetching content from URLs and writing them to disk. It also optionally parses the content. URLs are read from a Fetch List generated by Generator.

Parse

Parser reads raw fetched content, parses it and stores the results.

Invert links

Inverts link information so we can use anchor texts from other documents that point to a document together with the rest of the document data.

Final words

I have now gone through the core MapReduce jobs in Nutch that are related to crawling. There are also many other data processing jobs in Nutch like indexing, page scoring calculation, removing duplicate content from index etc. The best way to get familiar with the remaining algorithms to look at the following resources (the link is in in references). In the next article of this series I will take a look at other open source crawlers.

free design software USB Storage

Continuar leyendo

How to Stream your music in Second Life - You're Source client software than


Did you know that you can be that the music is streamed in Second Life with the same technology as Internet radio? You put the music on this new target group requires a shoutcast source client that sends your music on a streaming server, the window advertising your music to all listeners in Second Life.

This article lists the main decisions Shoutcast / Icecast source client. This source is the client software running on yourThe computer and connects to the music he plays with the streaming server.

What does

The Shoutcast / Icecast streaming source client accepts audio input from a hardware device or program that encodes it into a stream of media and send streaming media in a streaming server. Every step of this process requires configuration, and each program is different in the specifics of the place where you can find these settings. However, the settings are pretty selfuniversal.

Music Source

The entrance to the source client computer can be a media player such as iTunes, Winamp or Windows Media Player, or it can be your'm a hardware device for output - a mixer connected as a sound card or even a built-in microphone laptop. Your source client has chosen a list of possible items from which you can choose from, broadcast.

Coding

Some sourceCustomers may be able to encode in multiple media formats. But for compatibility with Second Life, you must use mp3. The Second Life Viewer on the laptop does not support end-WMA, AAC, Ogg, or other formats. You will notice that when you try to use the most pristine settings of MP3 encoding with the audience jumps in the flow of experience. The best thing is not greater than 44.1, use 64 kbps, stereo. You should be able to find these settings groupedtogether.

Specifies the streaming server

Finally, you must specify Shoutcast / Icecast streaming server to which the source client. This is in the form of a URL or an IP address, port number and a password. Some customers streaming, you can create a "library" of servers, each with its own URL, the port and password. This is useful if you regularly in a number of places. Each seat has its own server. So you can a, once configured, you simply select a location from a list of servers, and have all of the settings at once. If your source client does not have this feature, you must manually enter the data at any time and any place.

Criteria

For each of the streaming client software listed in the price list I have, where you get it, what platform is running, and other attributes. After reading this article, you should be ready to select a source of streaming> Client that meets your needs.

Before the electoral list, I first define what the various attributes.

Operating System (OS) - Find out which operating system of the Streaming Client is compatible with the source. There are options for Windows, Mac OS, Linux and other Unix-like operating systems.

Plugin vs standalone - Some Shoutcast Icecast source client "plugin" programs that work in others. One example is the Shoutcast DSP plug-inInstalled 'in' Winamp as a guest. Another source of customers in a separate window to run and offers all the features needed to.

Record function - Some customers will also record the source (or 'archive'), your power. The stream is sent to the streaming server, but also in a file written to the hard disk of your computer as mp3. This allows you to play your stream later.

Presentation of candidates

Butt (broadcast using thisTool)
Free
Linux, MacOS and Windows.
open source project hosted on Source Forge
Stand Alone
Video streaming and recording at the same time with different bit rates this relatively new offers all the features you would need or want. The fact that it is free and works on almost any computer, making it a good choice.

Winamp with Shoutcast DSP plugin
Free
Windows, Mac OS, Linux, UNIX, others
Winamp Winamp makes standard
Shoutcast Shoutcast agoDSP Plugin
Host Media Player plug-
N. built in the recording solution functionalityThis the pillar within Windows, especially since its price was.

Nice Cast
$ 40 (demo)
Mac OS
Rogueamoeba is the company behind Nicecast
Stand Alone
Stock functionFor years has been standard in this area Fully equipped Mac.

SimpleCast
$ 139
Windows
SpacialAudio product SimpleCast
Stand Alone
No registration built in functionalityThisThe selection comes from a company with a complete line of professional Internet radio.

Reaper with Shoutcast plugin
$ 60 (demo)
Windows
Cockos Reaper ago
Landoleet is where you can connect reaper_shoutcast.dll (this is NOT the same as the Shoutcast DSP plugin for Winamp)
DAW and plug-ins
Full multi-track recording capabilityReaper a complete DAW is worked by a company from the man who established the first technology invented Shoutcast. Extremely powerful, withComplexity per game.

EdCast
Free
Windows
Oddsock makes edcast
Both stand-alone or as a plug-in for Winamp or Foobar2000.
Not built-in recorder in.Both EdCast Oddcast and its predecessors from the developer himself, with a number of other useful tools, music (including a Stream recorder).

The envelope, please

If you start in just a second life in music streaming, I recommend you start down. SillyName, I know. Yet it is free do whatever you want to do it, and runs the same way on each computer that you probably have. In addition, an open source program, which means that its future is more or less secure.

Each of the other options would be the same. They all work pretty hiccup-free. If your needs are unique, may be preferable for any other reason to go head to head.

I myself am using Reaper with the Shoutcast plug-in. Reaper is a fully featured music production DAWas Pro Tools, Logic, Sonar, etc., in fact, was my first DAW to start streaming in Second Life. The fact that Reaper will vary depending on the type of guy, Internet radio (such as Winamp, Gnutella and other modern necessities) that is strong is invented by me.

Go ahead!

You really can not go wrong with one of the evil. Take a simple, grab a free Second Life viewer, create a free Second Life account, access and begin to implement the greedy Second LifeFans!

I hope you visit us in this journey into a strange and wonderful new world. In the meantime, you can make some initial explorations on their own - it's free to get started! Just click on the link below:

wireless inkjet printer

Continuar leyendo

How to send your music in Second Life - Six client source software compared


Did you know that you can transfer music in Second Life, the same technology with Internet radio? Bring your music in this new target group requires a shoutcast source client that sends your music to a streaming server, which then stream your music to all listeners in Second Life.

This article lists the most important decisions in the Shoutcast / Icecast source client. This source is the client software that runs on> Computers and connects the music that is played with the streaming server.

What does

The Shoutcast / Icecast streaming source client takes audio signals from a program or hardware device is encoded in a media stream, and sends the media stream to a streaming server. Every step of this process requires configuration, and each program differs in particular, where you can find these settings. But the settings themselves are relativelyuniversal.

Music Source

Access to the source client can come from a media player like iTunes, Winamp or Windows Media Player or can be a single hardware device connected to your computer - as a mixer connected to a sound card or integrated microphone in the handset. Your client source chosen is a list of possible items from which you can choose broadcast.

Coding

Some sourceCustomers can code in any number of media formats. However, for compatibility with Second Life, you must use the mp3. The Second Life Viewer on your handset does not support the end of WMA, AAC, Ogg, or other formats. Also, is if you use the MP3 encoding settings untouched, try your audience to jump in the flow experiment. And 'no better than 44.1, use 64 kbps, stereo. You should be able to find these settings, groupedtogether.

Specify the server Stream

Finally, you must specify Shoutcast / Icecast streaming server, with which the client connects. This will be the form of a URL or an IP address, port number and password. Some clients streaming, you can create a "library" of servers, each with its own URL, port and password. This is useful if you perform regularly in a number of places. Every place has its own server. This allows have, once configured, you only choose a specific location of the server from a list, and all values are set at a time. If your client does not originally have this feature, you must manually enter the information each time for each location.

Criteria

For each streaming client software listed, I list prices, where you can get, what platform is running and other attributes. After reading this article, you should be ready to select a source streaming> Client that meets your needs.

Before the selection list, you must first define what the different attributes.

Operating System (OS) - This tells you what operating system the client source is compatible with streaming. There are options for Windows, Mac OS, Linux and other Unix-like operating systems.

Plugin vs standalone - Some / Shoutcast Icecast source client "plugins" that programs work inside the other. One example is the Shoutcast DSP plugin, theinstalled and how to 'host Winamp. Another source of customers in a separate window to run, has all the features you need them.

Record functionality - Some source client will also record (or 'archive') your flow. The stream is sent not only to the server for streaming, but also wrote the file to your hard drive of your computer as mp3. This allows you to play your stream later.

Presentation of candidates

Butt (broadcast using thisTool)
Free
Linux, MacOS and Windows.
Open source project hosted on SourceForge
Standalone
Streaming and recording simultaneously with several relatively new bitratesThis has all the features you need or want. That is free and works on almost all computers, making it a good choice.

Winamp with Shoutcast DSP Plugin
Free
Windows, Mac OS, Linux, UNIX, others
Winamp Winamp makes standard
Shoutcast Shoutcast agoDSP Plugin
Host Media Player Plugin
No solution has been built recording functionalityThis pillar within Windows, mainly because of its price.

Nicecast
$ 40 (demo)
Mac OS
Rogueamoeba is the company behind Nicecast
Standalone
Archive functionFor years has been the standard within Mac Complete.

SimpleCast
$ 139
Windows
SpacialAudio product SimpleCast
Standalone
No built-in recording functionalityThisSelection comes from a company with a complete line of professional Internet radio.

Reaper with Shoutcast-Plugin
$ 60 (demo)
Windows
Cockos Reaper ago
Landoleet is where you can get the reaper_shoutcast.dll plugin (this is NOT the same as the Shoutcast DSP plugin for Winamp)
Host DAW and plug-ins
Full multi-track recording DAWs capabilityReaper is a complete work, a company founded by the man who invented the Shoutcast technology. Extremely powerful, withComplexity to do.

EdCast
Free
Windows
Oddsock makes edcast
Available in both stand-alone or as a plugin for Winamp or Foobar2000.
Recorder in.Both EdCast Oddcast and its predecessors are built by the developer himself, with a number of other useful musical instruments (including a Stream recorder).

The envelope, please

If you are just starting your streaming music in Second Life, I recommend you start with Butt. AlbernName, I know. However, it is free, not everything you want it, and runs the same on each computer that is likely. Plus, is an open-source, meaning that their future is virtually assured.

Any of the other choices would be nice too. They all work more or less hiccup-free. If your needs are unique, may be preferable for some reason other than a butt.

Myself, I use Reaper with the Shoutcast plugin. Reaper is a full service music production DAWsuch as Pro Tools, Logic, Sonar, etc., in fact, was my first DAW to start streaming in Second Life. That guy from Reaper, type, Internet radio (such as Winamp, Gnutella invented, and other needs modern) has a strong influence on me.

Go!

You really can not go wrong with any of the foregoing. Take a simple, take the free Second Life viewer, create a free Second Life account, access and start to implement the zealous Second LifePublic!

I hope you visit us in this journey into a strange and wonderful new world. Meanwhile, you can do some 'first explorations on their own - it's free to get started! Just click on the link below:

My Links : MP3 Player epson stylus gadgets windows

Continuar leyendo

Medical Billing - Getting Clients

Well, you've set up your medical billing company and you're all set to do business. Except there's one problem. You don't have any clients. So the question is, how do you go about getting them? Since nobody knows you even exist yet, they're not likely to come knocking on your door. Well, hopefully, after you've read this article, you'll have several good ideas for how to build up your medical billing client base.

Typically, what this is all going to come down to is advertising, obviously. But how? Years ago, you didn't have nearly the number of advertising methods that you have today. The Internet has opened up a new world to businesses from all over.

So let's start with the Internet. The first thing you're probably going to want to do is put up a web site. Even though you are dealing with the offline world, most businesses today do have an Internet presence. It is therefore important that you establish your own Internet presence.

To do this, the first thing you need to do is get a domain for your site. That should be easy enough. You have a company name, so use it as your domain name. If by some chance your domain name is taken, see if you can purchase it from the owner. If they're not willing to sell, then pick a name that is close enough as long as it contains the name of your company within the domain name itself.

After you have your domain, you need to put up your site. If you don't have your own web design team, then hire somebody from an outside company to do the design for you. It doesn't have to be fancy but it should be professional looking. Make sure the site has all the information about your company, what it does and how you can handle the medical billing needs of anyone.

After the site is up, you're going to want to begin promoting it. There are a number of methods to promote web sites on the Internet these days. These methods range from paid to free ads. Do your homework on this. Ask around for what the experts feel are your best options. We're not going to endorse any particular form of Internet advertising in this article.

Over time, you will begin to see your client base build. But the Internet shouldn't be your main focus. The traditional forms of advertising still apply, even in this highly technical world that we live in. This means don't forget to register with all the medical agencies in the United States. There are a number of them to choose from. If anybody needs a medical biller, each agency will recommend them to the closest company in their area. You'll get more than your share of work. Also, don't neglect newspapers, radio and television.

Getting clients, if you're a medical billing agency, doesn't have to be like pulling teeth at a dentist's office. If you take advantage of all the mediums available, there is no reason why you can't run a more than profitable medical billing business.

Hd Dvr Dell Ink game droiddoes

Continuar leyendo