LinuxAnswers - the LQ Linux tutorial section.
Go Back > Blogs
User Name



Haskell solves the problem of unexpected IO side effects

Posted 12-20-2012 at 03:40 PM by hydraMax (Bits and Pixels)
Updated 12-20-2012 at 03: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:

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

More Tooling Up Stuff

Posted 12-19-2012 at 12:52 PM by rainbowsally
Updated 08-06-2014 at 10:30 AM by rainbowsally (skip rant, typo correction)

About the commandline

Today's features:
  • Why the commandline rocks and GUI apps have rocks in their heads at times.

You can skip this somewhat rambling rant by going down to "CONTINUE" below.

[Note for KDE users: Konqueror has a nice konsole terminal that can be opened with F4. It's much MUCH better than Dolphin, if you're a programmer. See recent blog including 'launch' and shell-exec if you have trouble executing these files when you click on them...
Posted in Uncategorized
Views 441 Comments 0 rainbowsally is offline

Legacy still lives.

Posted 12-19-2012 at 11:54 AM by peonuser

openbsd 5.2 seems to be an interesting choice for old pentium one computers.
Posted in Uncategorized
Views 489 Comments 0 peonuser is offline

hplip error: Unable to communicate with device (code=12)

Posted 12-19-2012 at 12:00 AM by vik
Updated 07-06-2013 at 12:16 PM by vik

I have a wireless networked HP printer and was getting this error: Unable to communicate with device (code=12). I ran hp-check, hp-setup, hp-plugin, etc. After a few days' worth of frustration, I've figured it out.

The key was this:
So after running
snmpwalk -Os -c public -v 1 ip.address.of.printer
I got this message: Timeout: No Response from ip.address.of.printer

Then I remembered...
Posted in Uncategorized
Views 3520 Comments 2 vik is offline

An STL Template Experiment

Posted 12-18-2012 at 06:05 PM by rainbowsally

Today's features:
  • Getting an address of an iterator from stl.
  • Creating a foreach() macro.
  • A couple of ways to work around unwanted C++ compiler warnings.

STL is a freaking nighmare to trace in a debugger so it's not too easy to tell what goes on in them but one thing became quite clear and that is that iterators are generic pointer types internally, which makes sense since STL needs to deal with so many different types.

Here's a little test to play with to show how...
Posted in Uncategorized
Views 606 Comments 0 rainbowsally is offline


All times are GMT -5. The time now is 04:01 PM.

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