|
WebStatistics
|
14 Oct 2008 - 17:04 - r1.122
|
Main.guest
|
| |
Statistics for Erlang Web Month: Topic views: Topic saves: File uploads: Most popular topic views: Top contributors for topic save and uploads: Oct 2008 5621 0 0 ... |
|
StringBasics
|
13 Nov 2007 - 16:23 - r1.7
|
LukiShei
|
| |
STARTINCLUDE String Basics Few would recommend Erlang as a high-performance string manipulating language. Strings in erlang are simply lists of characters, with a ... |
|
WebHome
|
17 Jul 2007 - 16:58 - r1.8
|
FrancescoC
|
| |
Welcome to the Erlang Cookbook. The Erlang Cookbook is a collaborative effort to produce practical documentation for using the Erlang language, particularly in commercial ... |
|
StringCSV
|
17 May 2007 - 18:50 - r1.2
|
JosephWecker
|
| |
STARTINCLUDE Processing Comma Separated Values Problem You want to work with comma separated value records, such as those exported from popular spreadsheet and database ... |
|
FileIntroduction
|
07 Jan 2007 - 15:49 - r1.2
|
KlausMomberger
|
| |
STARTINCLUDE Introduction This chapter deals with file access; that is, opening files, passing files as arguments to procedures that work with them, and so on. File ... |
|
StringControlCase
|
04 Jan 2007 - 15:10 - r1.2
|
JeromeSautret
|
| |
STARTINCLUDE Controlling Case Problem You need to convert a string to all uppercase or all lowercase. Solution Use httpd util:to upper or httpd util:to lower from ... |
|
FileReadingLines
|
18 Jul 2006 - 15:23 - r1.4
|
MrsHarris
|
| |
STARTINCLUDE Reading Lines from a Text File Erlang offers the get line function for reading lines of text from an IoDevice. The following are some useful procedures ... |
|
ListTraversingMultiple
|
09 Jul 2006 - 08:17 - r1.4
|
PhilipRobinson
|
| |
STARTINCLUDE Traversing Multiple Lists Problem You want to traverse multiple source lists in a nested fashion, but do not want to define nested functions. For example ... |
|
StringNumber
|
15 Jun 2006 - 15:02 - r1.4
|
PhilipRobinson
|
| |
STARTINCLUDE Testing Whether a String Represents an Integer Problem You want to determine whether a string is an integer Solution The io lib:fread function is the ... |
|
FileRead
|
07 Feb 2006 - 17:00 - r1.2
|
MarkWutka
|
| |
STARTINCLUDE Reading An Entire Text File Problem You want to read the lines from a file and store them in a list. Solution begin erlang readlines(FileName) {ok, ... |
|
StringRecipeLevenshtein
|
21 Dec 2005 - 13:29 - r1.2
|
AdamLindberg
|
| |
STARTINCLUDE Testing Similarity of Two Strings via Levenshtein Distance Problem You want to determine how "similar" two strings (or lists, or vectors) are, such as ... |
|
StringIntroduction
|
30 Nov 2005 - 06:06 - r1.3
|
AntonVanStraaten
|
| |
Introduction In Erlang, a string is a list of characters. The designers of Erlang thoughtfully included a bit of syntactic sugar so that strings in source code could ... |
|
WebNotify
|
04 Sep 2004 - 07:25 - r1.3
|
AntonVanStraaten
|
| |
This is a subscription service to be automatically notified by e-mail when topics change in this Erlang web. This is a convenient service, so you do not have to come ... |
|
FileDeletingAFile
|
03 Sep 2004 - 07:20 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Deleting a File Problem You want to delete a file. Solution Use Erlang's standard function file:delete . begin erlang 1 file:delete("/this/file/will ... |
|
FileCreateDeepDirectory
|
03 Sep 2004 - 07:14 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Creating Directories Including Parent Directories Problem You want to be able to create a directory without having to verify each parent element of the ... |
|
FileCountLines
|
03 Sep 2004 - 07:11 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Counting Lines in a File Problem You need to count how many lines are in a file. Solution begin erlang int countlines(Device, Result) case io:get line ... |
|
WebPreferences
|
02 Sep 2004 - 21:46 - r1.11
|
BrentAFulgham
|
| |
TWiki.Erlang Web Preferences The following settings are web preferences of the TWiki.Erlang web. These preferences overwrite the site-level preferences in TWIKIWEB ... |
|
FileWalkDirectoryTree
|
02 Sep 2004 - 07:52 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Walking Directory Trees Problem You need to look at every file in a directory, or an entire directory tree, that matches a given pattern. Solution wildcard ... |
|
NumberBiasedRands
|
01 Sep 2004 - 20:01 - r1.4
|
BrentAFulgham
|
| |
STARTINCLUDE Generating Biased Random Numbers Problem Instead of a truly random number, you wish to randomly select a value from a set in which some values are more ... |
|
NumberRomanNumerals
|
01 Sep 2004 - 18:02 - r1.2
|
BrentAFulgham
|
| |
Working with Roman Numerals Problem You want to convert decimal numbers to Roman numerals and Roman numerals to decimal numbers. Solution Here is some example code ... |
|
TimeIntroduction
|
01 Sep 2004 - 17:25 - r1.3
|
BrentAFulgham
|
| |
STARTINCLUDE Introduction Erlang provides basic, but important ways of manipulating time and dates. erlang:localtime built-in function returns the current time as ... |
|
NumberCorrectPlurals
|
01 Sep 2004 - 17:24 - r1.2
|
BrentAFulgham
|
| |
STARTINCLUDE Printing Correct Plurals Problem You would like to generate messages reporting quantities with correct grammar. For example, you would like to say "There ... |
|
StringSubstring
|
01 Sep 2004 - 17:22 - r1.3
|
BrentAFulgham
|
| |
STARTINCLUDE Accessing Substrings Problem You want to extract part of a string. Solution Option 1: Generic Lists Module The lists:sublist function is the most general ... |
|
FileChapter
|
01 Sep 2004 - 06:46 - r1.2
|
BrentAFulgham
|
| |
STARTINCLUDE Files and Directories TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"FileChapterComment"} Set ALLOWTOPICCHANGE Main.ErlangEditorsGroup ... |
|
FileSplitPath
|
01 Sep 2004 - 00:17 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Splitting a Path into All of Its Parts Problem You want to split a path into all of its components. Solution The split function in the Erlang standard ... |
|
FileMaybeMakeDirectory
|
01 Sep 2004 - 00:10 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Making A Directory If It Doesn't Already Exist Problem You want to create a directory only if it doesn't already exist. Solution The filelib:ensure dir ... |
|
FileMakePlatformIndependentPath
|
01 Sep 2004 - 00:06 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Creating a Platform Independent Path Problem You want to create a directory in a platform independent way. The directory is several levels deep and you ... |
|
FileRecipes
|
01 Sep 2004 - 00:00 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Recipes TMPL:P{"recipequery"} STOPINCLUDE Set ALLOWTOPICCHANGE Main.ErlangEditorsGroup Main.BrentAFulgham 01 Sep 2004 |
|
FileIsADirectory
|
01 Sep 2004 - 00:00 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Testing Whether A File Is A Directory Problem You have a list of file names, which includes the names of some directories. You want to test if a name ... |
|
HashRecipePrinting
|
31 Aug 2004 - 20:34 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Printing a Hash Problem You want to print a hash (keys and values). Solution Using recipe HashRecipeTraverse we can easily print all the elements in ... |
|
HashRecipeAddingElement
|
31 Aug 2004 - 20:26 - r1.2
|
BrentAFulgham
|
| |
STARTINCLUDE Adding an Element to a Hash Problem You need to add an entry to a Hash. Solution Use the dict:append/3 or dict:store/3 functions to add to an existing ... |
|
HashRecipeTraverse
|
31 Aug 2004 - 20:23 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Traversing a Hash Problem You want to perform an action on each entry in a hash. Solution Use one of the built-in traversal functions: For the dict module ... |
|
HashRemove
|
31 Aug 2004 - 19:23 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Deleting from a Hash Problem Remove an entry {key, value} from a hash table. Solution The dict:erase function erases all entries in the table with a ... |
|
HashRecipePresenceOfKeys
|
31 Aug 2004 - 19:04 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Testing for the Presence of a Key in a Hash Problem You need to know wheter a hash (Dictionary) has a particular key, regardless of whatever value may ... |
|
HashRetrieve
|
31 Aug 2004 - 18:56 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Retrieving an Element from a Hash STOPINCLUDE Main.BrentAFulgham 31 Aug 2004 |
|
HashRecipeImmutable
|
31 Aug 2004 - 18:55 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Creating a Hash with Immutable Keys or Values Problem You would like to have a hash table whose values or keys couldn't be modified once set. Solution ... |
|
HashRecipes
|
31 Aug 2004 - 17:58 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Recipes TMPL:P{"recipequery"} STOPINCLUDE Set ALLOWTOPICCHANGE Main.ErlangEditorsGroup Main.BrentAFulgham 31 Aug 2004 |
|
HashChapter
|
31 Aug 2004 - 17:52 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Hashes TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"HashChapterComments"} Set ALLOWTOPICCHANGE Main.ErlangEditorsGroup Main ... |
|
HashIntroduction
|
31 Aug 2004 - 17:51 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Introduction Erlang provides native support for hash tables through the dict and ets modules. dict provides a simple dictionary implementation, in which ... |
|
RegexpValidEmail
|
31 Aug 2004 - 05:56 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Matching a Valid Email Address Problem Solution Discussion |
|
RegexpMatchingFromLastPattern
|
31 Aug 2004 - 05:55 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Matching from Where the Last Pattern Left Off Problem Solution Discussion |
|
RegexUrlify
|
31 Aug 2004 - 05:55 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Program: urlify Problem Solution Discussion |
|
RegexTestingValidPattern
|
31 Aug 2004 - 05:54 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Testing for a Valid Pattern Problem Solution Discussion |
|
RegexTcgrep
|
31 Aug 2004 - 05:53 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Program: tcgrep Problem Solution Discussion |
|
RegexSpeedUpInterpolation
|
31 Aug 2004 - 05:52 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Speeding Up Interpolated Matches Problem Solution Discussion |
|
RegexShellGlobs
|
31 Aug 2004 - 05:52 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Matching Shell Globs as Regular Expressions Problem Solution Discussion |
|
RegexRangeOfLines
|
31 Aug 2004 - 05:51 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Extracting a Range of Lines Problem Solution Discussion |
|
RegexPatternSeparator
|
31 Aug 2004 - 05:50 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Reading Records with a Pattern Separator Problem Solution Discussion |
|
RegexMultiByteCharacters
|
31 Aug 2004 - 05:50 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Matching Multiple-Byte Characters Problem Solution Discussion |
|
RegexMatchMultipleLines
|
31 Aug 2004 - 05:49 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Matching Multiple Lines Problem Solution Discussion |