LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

sed awk tr etc

Posted 01-15-2013 at 06:33 AM by NullTerminator
Updated 01-18-2013 at 06:54 AM by NullTerminator (add sed cmd for non prinitng char)

A couple sample to strip unreadable characters from a binary file
Code:
# Translate junk characters into newlines while squeezing
C:\Temp>tr -sc '[\011\012\015\040-\176]' \n < blob_of_data.txt

# Translate and discard single character lines
C:\Temp>tr -sc '[\011\012\015\040-\176]' \n < blob_of_data.txt | awk "length($0) > 1"
# replace a bad character in a file
0xa0 is a 'non breaking space' that appears often when...
LQ Newbie
Posted in Uncategorized
Views 608 Comments 0 NullTerminator is offline
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 492 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 448 Comments 0 rainbowsally is offline
Old

PlayShell 0.2-WP14

Posted 01-14-2013 at 03:02 AM by konsolebox

PlayShell 0.2-WP14 was released today.

Homepage: http://playshell.sourceforge.net/
SF.net summary page: http://sourceforge.net/projects/playshell/
Release files: http://sourceforge.net/projects/play...hell/0.2-WP14/
Online repository: http://sourceforge.net/p/playshell/code/
Senior Member
Posted in Projects
Views 412 Comments 0 konsolebox 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 983 Comments 2 Lufbery is offline

  



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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration