LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Closed Thread
  Search this Thread
Old 02-17-2010, 07:24 PM   #316
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158

Hi,

Quote:
Originally Posted by MTK358 View Post
What's an "Optical Comment Remover"?
Your eye!

I was just joking back with GrapefruiTgirl.

I really don't care to re-type my own code. I use a scanner with Optical Character Recognition (OCR) software. Sometimes the files are not always readily available but the print copy is so scan is a must since my big fingers & hands slow me down.

 
Old 02-17-2010, 07:54 PM   #317
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by onebuck View Post
Hi,



Your eye!

I was just joking back with GrapefruiTgirl.

I really don't care to re-type my own code. I use a scanner with Optical Character Recognition (OCR) software. Sometimes the files are not always readily available but the print copy is so scan is a must since my big fingers & hands slow me down.

I don't understand, what does OCR have to do with an online tutorial?

Or are you talking about paper books?
 
Old 02-17-2010, 08:11 PM   #318
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Smile

Quote:
Originally Posted by unSpawn View Post
Yeah, I'd thought you'd appreciate a visit from the spam demon ;-p
Ha-ha, that caught me by surprise, unSpawn. Funny stuff, man!
 
Old 02-18-2010, 07:38 AM   #319
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Hi,

Quote:
Originally Posted by MTK358 View Post
I don't understand, what does OCR have to do with an online tutorial?

Or are you talking about paper books?
I was speaking about hard copy. Not cut & paste.
 
Old 02-18-2010, 04:12 PM   #320
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
Going back to the whole "playing non-audio files as sound" thing, I found a way to do it that isn't limited to 8kHz mono:

Put this in your terminal (assuming you have SoX installed):

Code:
play -q -t raw -s -b 16 -r 44100 -c 2 <file of your choice here>
This plays the file as a signed, 16-bit PCM wave at 44100Hz, in stereo.

Another advantage of doing it this way is that you have control over the volume (-v option).

Enjoy

EDIT: DON'T do this with device files! I tried it, and not only did I not hear anything (tried it with /dev/input/mouse0), but I also couldn't get play to abort with ^C. I had to kill it manually, which didn't allow it to release the audio device, and so I had to reboot to get sound back.

Last edited by MrCode; 02-18-2010 at 04:57 PM.
 
Old 02-19-2010, 04:57 AM   #321
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Quote:
Originally Posted by MrCode View Post
Going back to the whole "playing non-audio files as sound" thing, I found a way to do it that isn't limited to 8kHz mono:

Put this in your terminal (assuming you have SoX installed):

Code:
play -q -t raw -s -b 16 -r 44100 -c 2 <file of your choice here>
This plays the file as a signed, 16-bit PCM wave at 44100Hz, in stereo.

Another advantage of doing it this way is that you have control over the volume (-v option).

Enjoy

Have you found any interesting examples you can give us?
 
Old 02-19-2010, 12:56 PM   #322
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
Quote:
Have you found any interesting examples you can give us?
Try redirecting the output of a command that produces a lot of text output to a file (e.g. "ls -R / > all-dirs-list.txt" or "tree / > tree-list.txt"), then play back the text file.
 
Old 02-20-2010, 05:50 PM   #323
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
lets see maybe so
 
Old 02-21-2010, 07:37 AM   #324
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
I still think cat whatever.iso > /dev/dsp gives the most interesting results.
 
Old 02-22-2010, 01:35 PM   #325
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
Testing code syntax highlighting:

PHP Code:
#include <stdlib.h>
#include <stdio.h>

int main()
{
    
printf("Hello, World!");
    return 
0;

Okay, so it's not the best, but it kind of works for C

(I think it would be neat if there were actually a BBCode tag for C/C++ syntax highlighting, instead of just PHP.)

Last edited by MrCode; 02-22-2010 at 01:36 PM.
 
Old 02-22-2010, 02:08 PM   #326
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
Alot of programming sites have
[code language=c]
printf(":");
[/code]
or
[code=c]
[/code]
 
Old 02-27-2010, 12:48 PM   #327
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 594

Rep: Reputation: 141Reputation: 141
Browser string test.
 
Old 03-06-2010, 10:23 PM   #328
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
testing useragent in google chrome
 
Old 03-06-2010, 10:37 PM   #329
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
System settings saved?
 
Old 03-06-2010, 11:34 PM   #330
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
Testybollox
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gawk related issue scbops Programming 6 08-17-2007 10:45 AM
Help me diagnose this internet problem (DNS related) WebGraphics Linux - Networking 9 06-01-2007 11:33 AM
NFS related issue push19180 Linux - Networking 1 05-19-2006 07:36 AM
process related issue LinuxRam Linux - Networking 1 09-12-2004 04:24 PM
configure qt thread issue (just compiled qt w/ -thread option) cleff Linux - Software 8 05-07-2004 11:11 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 04:36 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
Open Source Consulting | Domain Registration