The configuration section 'scriptResourceHandler' cannot be read because it is missing a section declaration
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
#!/bin/bash
# check file audio file for being greater than 80 mins and halfing it
file=$1
#4440 seconds = 74mins
max=4440
mins=$((`soxi $file -D | sed -e "s/\..*//"`))
echo "file $file $mins"
if [ $mins -gt $max ]; then
echo "SPLITTING"
half=$((`soxi $file -s `/2))
sox $file --show-progress -r 44100 -c 2 $(basename "$file" .wav)_part1.wav trim 0s $(($half))s
sox $file --show-progress -r 44100 -c 2 $(basename "$file" .wav)_part2.wav trim $(($half))s
rm $file
ls $(basename "$file" .wav)*
fi
cdrecord dev=4,0,0 -blank=fast
cdrecord dev=4,0,0 -pad -audio tnew.wav
#!/bin/bash
#podcast loading
#split into 5 mins chunks
#Now with spoken intro detailing number of track and total tracks
./mp3splt -t 5.0 *.mp3
if [ $(find . -iname "*__*" | wc -c) -eq 0 ]; then
echo "found NO processed files"
exit
fi
#delete originals
find . -iname "*.mp3" -size +7M -type f -exec rm {} \;
#pad into padding folder
for i in *.mp3; do sox "$i" "padded/$i" pad 2 0;echo -n .; done;echo ""
#delete unpadded
rm *.mp3
#wrap with starter intro speech
cd padded
# get total number of files
total=$(ls | wc -l)
for f in $( ls ) ;do
# get number of file
index=$(ls | grep -nh $f | grep -o "^[0-9]*")
echo $index of $total
# create speech file
espeak -w out.wav "playing $index of $total"
# convert to mp3
sox out.wav out.mp3
#attach it to the front
mp3wrap ../$f out.mp3 $f
done
cd ..
rm padded/*
echo "======================================================================="
echo "move the mp3 files to your device and remember to sync;umount ... ;sync"
RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
GPIO.setup(pin,GPIO.OUT)
GPIO.cleanup()
# Name: Steptwo.py
#
# Author: Rob Davis
# Based on the Stepper Motor code from matt.hawkins www.raspberrypi-spy.co.uk/2012/07/stepper-motor-control-in-python/
#
# Created: 2014/03/12
#
# Takes parameters for number of steps and which direction for each motor from the command line.
# e.g.
# sudo python step.py 4100 CCW 2050 CW
# To operate motor 1 for 4100 steps (a complete revolution) in a counter clockwise direction and at the same time turn motor 2 in a Clockwise direct for 2050 steps (180 degrees).
#-----------------------------------
#!/usr/bin/env python
# Import required libraries
import sys
import time
import RPi.GPIO as GPIO
# Use BCM GPIO references
# instead of physical pin numbers
GPIO.setmode(GPIO.BCM)
# Define GPIO signals to use
# GPIO24,GPIO25,GPIO8,GPIO7
StepPins1 = [24,25,8,7] # CW rotation
if (sys.argv[2]=="CCW") :
StepPins1 = [7,8,25,24] # CCW rotation
StepPins2 = [14,15,18,23] # CW rotation
if (sys.argv[4]=="CCW") :
StepPins2 = [23,18,15,14] # CCW rotation
# Set all pins as output
for pin in StepPins1:
# print "Setup pins"
GPIO.setup(pin,GPIO.OUT)
GPIO.output(pin, False)
for pin in StepPins2:
# print "Setup pins"
GPIO.setup(pin,GPIO.OUT)
GPIO.output(pin, False)
# Define some settings
StepCounter = 0
WaitTime = 0.01
# Define simple sequence
StepCount1 = 4
Seq1 = []
Seq1 = range(0, StepCount1)
Seq1[0] = [1,0,0,0]
Seq1[1] = [0,1,0,0]
Seq1[2] = [0,0,1,0]
Seq1[3] = [0,0,0,1]
# Define advanced sequence
# as shown in manufacturers datasheet
StepCount2 = 8
Seq2 = []
Seq2 = range(0, StepCount2)
Seq2[0] = [1,0,0,0]
Seq2[1] = [1,1,0,0]
Seq2[2] = [0,1,0,0]
Seq2[3] = [0,1,1,0]
Seq2[4] = [0,0,1,0]
Seq2[5] = [0,0,1,1]
Seq2[6] = [0,0,0,1]
Seq2[7] = [1,0,0,1]
# Choose a sequence to use
Seq = Seq1
StepCount = StepCount1
Seq = Seq2
StepCount = StepCount2
# Start main loop
steps1 = int(sys.argv[1])
steps2 = int(sys.argv[3])
stepc = 0
while (stepc<=steps1) or (stepc<=steps2):
if (stepc<=steps1):
print "Step %i of %i" %(stepc,steps1)
if (stepc<=steps2):
print "Step %i of %i" %(stepc,steps2)
for pin in range(0, 4):
if (stepc<=steps1):
xpin1 = StepPins1[pin]
if Seq[StepCounter][pin]!=0:
# print " Step %i Enable %i" %(StepCounter,xpin1)
GPIO.output(xpin1, True)
else:
GPIO.output(xpin1, False)
if (stepc<=steps2):
xpin2 = StepPins2[pin]
if Seq[StepCounter][pin]!=0:
# print " Step %i Enable %i" %(StepCounter,xpin2)
GPIO.output(xpin2, True)
else:
GPIO.output(xpin2, False)
StepCounter += 1
# If we reach the end of the sequence
# start again
if (StepCounter==StepCount):
StepCounter = 0
if (StepCounter<0):
StepCounter = StepCount
# Wait before moving on
time.sleep(WaitTime)
stepc+=1
GPIO.cleanup()
email
root
flog archives
In fact I'm not responsible for anything ever, so there!
Disclaimer:
This page is by me for me, if you are not me then please be aware of the following
I am not responsible for anything that works or does not work including files and pages made available at www.jumpstation.co.uk
I am also not responsible for any information(or what you or others do with it) available at www.jumpstation.co.uk