Tag Archives: Hey Guys

Projector while camping power consumption question

By techno-shaman

Hey Guys,
I have a vision of being able to use a projector while camping to watch movies and play snes games etc.. Here is the set up I am going to run.

I am going to run a Raspberry Pi (Raspberry Pi | An ARM GNU/Linux box for $25. Take a byte!) with RaspBMC running on it as my media player coupled with a usb hub and external 2.5″ hdd for media storage.

I am going to use a M2 Micro Projector (M2 Micro Projector 2013 – TopTenREVIEWS) for my display projecting on to a screen hung up in between trees.

I am going to run a Bosch PB360D (www.boschtools.com/products/tools/Pages… as a portable sound system for this set up.

I want to get a small quiet power generator for this set up to be able to run it all night (8-10 hours) I want to know how much power I will need to be able to do this, and also if I would be able to charge up a car battery or something similar and just run everything off a battery for the duration of the night.

any suggestions?

Thanks in advance!

…read more

Source: DoItYourself.com

Parsing file data

By silverdust

Hey Guys,

I’m a novice at shell scripts and i need some help parsing file data.

Basically, I want to write a script that retrieves URLs.

Here is what I have so far.

Code:

#!/bin/bash

echo "Please enter start date (format: yyyy-mm-dd):c"
read STARTDATE
echo "Please enter end date (format: yyyy-mm-dd):c"
read ENDDATE
wget -O filename download_location


So this downloads a page from download_location and saves it as filename. I need to parse the downloaded page and retrieve the URLs. Below is a small snippet of the data I’m parsing:

Code:

<a target=_blank title='http://149.47.192.185/b6caba9f46bef1d14f/w.php'2013-02-16 21:56:52

0 / 2 <a target=_blank title='http://199.204.210.238/eda89353bf8789202d999ee8e832c/w.php'


The url is after “a title=” and is enclosed in single quotes (‘url_here’). I want to grab the data enclosed in the quotes and discard the rest.

Thanks for your help, I’m really bad at this stuff.

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Script to find line in one file and replace in another

By padgo

Hey Guys, im looking for a script that will work under OSX.

What i want to do is copy information from one file (Specific LIne) and write it to a certain line in another. To be more specific…

I want the hostname of a mac to be gathered ( i assume its stored in a .plist file somewhere) and that hostname value to be written to another pslist file:

The source could be a .plist file

The pslist file that i want it WRITTEN to looks like this:

bgPath
/logo.jpg
defaultBootOS
Mac OS X
linJustification

linuxPartition

mosxJustification
VALUE TO GO HERE

timeLimit
0
title
School of Architecture
userChoosesBootOS

winJustification

windowsPartition
/dev/disk0s3

I have no idea how to do this, any guidance would be appreciated.

Cheers 🙂

Source: FULL ARTICLE at The UNIX and Linux Forums