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

Notices


Old

Quick and dirty plotting with Haskell: Supplement

Posted 01-14-2013 at 11:54 PM by hydraMax (Bits and Pixels)

I just wanted to add a brief note to my previous post: It is also quite simple to do a plot with multiple functions. The following code gives the graph seen in the attached PNG:

Code:
h> import Graphics.Gnuplot.Simple
h> let f x = 3 - 2*x + 4*x**2
h> let g x = 8*x - 2
h> let h a x = g a * (x - a) + f a
h> plotFuncs [] (linearScale 1000 (-10,10)) [f, g, h (-5)]
f(x) is a function, g(x) is the derivative of f(x), and...
Attached Images
File Type: png plotFuncs.png (49.5 KB, 4 views)
Member
Posted in Uncategorized
Views 564 Comments 0 hydraMax is offline
Old

QT4 -- Having trouble with qInitResouces_<appname>() ?

Posted 01-14-2013 at 03:46 AM by rainbowsally
Updated 01-14-2013 at 04:01 AM by rainbowsally

Having trouble with qInitResouces_<appname>()?

Try this.
Code:
#ifdef Q_INIT_RESOURCE
#undef Q_INIT_RESOURCE
#endif

#define Q_INIT_RESOURCE(name) extern void qInitResources_##name()
The version of this macro in qglobal.h could never have ever worked.

If you enjoy digging into the low level stuff, I think you'll be amused by the context of this bug. ;-)

- The Computer Mad Science Team...
Member
Posted in Uncategorized
Views 575 Comments 0 rainbowsally is offline
Old

Slackware “Clean Upgrade” (with pre- and post-installation tasks)

Posted 01-13-2013 at 10:14 PM by Lufbery (The Slacker's Blog)
Updated 01-13-2013 at 10:22 PM by Lufbery

Introduction

Slackware is perfectly usable from a fresh (full) installation with only two essential tasks to perform after the installation is complete:
  1. creating an initial RAM disk (using mkinitrd) so that one boots to the generic kernel, and
  2. creating at least one non-root user (using adduser).

Everything else — installing additional software, setting up e-mail, etcetera — is really personalizing and/or customizing to suit one’s own tastes and needs....
Senior Member
Posted in Uncategorized
Views 1136 Comments 2 Lufbery is offline
Old

Simple C example for beginners and bug fix for libLQ-qt version 3.0.x

Posted 01-13-2013 at 06:57 PM by rainbowsally

Simple C example for beginners and bug fix for libLQ-qt version 3.0.x

[v.3.0 (mc2 and libLQ) will no longer be the current version(s) but it still works and we have a bug fix here that applies to all 3.0.x versions.]

Today's feature:
  • A simple C/C++ example.
  • A converter from relative paths to absolute.
  • A bug fix for the libLQ-qt/mc2 3.0 d/load.

While 'canonicalize_file_name()' is great for paths that don't have macros in them, and for dereferencing symlinks,...
Member
Posted in Uncategorized
Views 462 Comments 0 rainbowsally is offline
Old

great xmas

Posted 01-11-2013 at 08:52 PM by peonuser

Thought I managed to save 4 or 5 p1 systems, Two servers bit the dust (or at least one more did). Scavenged those machines and a couple of others while cleaning out the closet. Reclaimed items went to the parts closet.

Brother game me an android tablet for xmas. A whole new world in some ways. For the amount of swipes you do, you can easlity have just tuped in something from a command line....... Guess I will get used to it. Sure there are a lot of hacks for it, but I will wait a...
Member
Posted in Uncategorized
Views 404 Comments 0 peonuser is offline

  



All times are GMT -5. The time now is 02:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration