LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Blogs > Bits and Pixels
User Name
Password

Notices


Concerning free software, programming, and whatever else I find interesting. Also the blog for my Web site, frigidcode.com.
Old

Quick and dirty plotting with Haskell + Gnuplot

Posted 12-28-2012 at 05:13 PM by hydraMax (Bits and Pixels)
Updated 12-28-2012 at 05:17 PM by hydraMax
Tags haskell

Assuming you are a Haskeller, you can get a simply x-y plot up very quickly with the gnuplot interface module. This is useful for getting a rough graphical view of some function. Simply...

1. install Gnuplot (through your package manager)
2. cabal install gnuplot
3. use ghci:

Code:
$ ghci
GHCi, version 7.4.1: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ...
...
Attached Images
File Type: png image3023.png (29.8 KB, 3 views)
Member
Posted in Uncategorized
Views 7279 Comments 0 hydraMax is offline
Old

Dorito Thief Strikes Again!

Posted 12-27-2012 at 11:25 PM by hydraMax (Bits and Pixels)
Tags humor

http://youtu.be/Kqy9hxhUxK0
Member
Posted in Uncategorized
Views 1117 Comments 0 hydraMax is offline
Old

Haskell solves the problem of unexpected IO side effects

Posted 12-20-2012 at 02:40 PM by hydraMax (Bits and Pixels)
Updated 12-20-2012 at 02:46 PM by hydraMax
Tags haskell, humor

Programmers are universally familiar with the challenges of dealing with unwanted side effects in IO operations. Few are aware, however, that the Haskell programming language provides a very straightforward approach to dealing with this problem, packaged in a convenient module:

http://hackage.haskell.org/packages/...RealWorld.html

The solution involves making available a full existential state as a retrievable value. This value...
Member
Posted in Uncategorized
Views 1142 Comments 0 hydraMax is offline
Old

Logstalgia

Posted 12-08-2012 at 03:38 AM by hydraMax (Bits and Pixels)

Here's a weird one that recently hit the Gentoo repositories:

Logstalgia

Basically, it replays the access log for your Web server - video game style! Using opengl, it transforms your Web log into a colorful version of Pong: each time you get a hit, the paddle for that virtual host (if in vhost paddle mode) intercepts the ball, also displaying the return code and the page accessed. Maintains a counter for the hits. Fun to watch, and also handy because you can adjust...
Member
Posted in Uncategorized
Views 1182 Comments 0 hydraMax is offline

  



All times are GMT -5. The time now is 04:29 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration