15 Mar 2013 http://stackoverflow.com/questions/2042342/network-path-and-variables-in-python
If you want to use network paths without adding extra slashes, you can use python’s raw string function.
Here’s an example of something you want to make a raw string:
source_path = r " \\mynetworkshare "
07 Mar 2013 CanvasJS high-performance JavaScript charts
The most impressive part is how fast it renders all that data.
05 Mar 2013 This code from StackOverflow helped me find whether a workbook was open with its name. Here’s the link to the thread: Link
Function BookOpen(strBookName As String) As Boolean
Dim oBk As Workbook
On Error Resume Next
Set oBk = Workbooks(strBookName)
On Error GoTo 0
If oBk Is Nothing Then
BookOpen = False
Else
BookOpen = True
End If
End Function
Sub testbook()
Dim strBookName As String
strBookName = "myWork.xls"
If BookOpen(strBookName) Then
MsgBox strBookName & " is open", vbOKOnly + vbInformation
Else
MsgBox strBookName & " is NOT open", vbOKOnly + vbExclamation
End If
End Sub
04 Mar 2013 Using an incorrect e-mail address in the hidden “business” field in your HTML form can cause this issue.
Example of the hidden field with the problem:
<input type= "hidden" name= "business" value= "dave@davesgarage.com" >
01 Mar 2013 pawl/OverdueMemberCalculator
This should help ease the pain of dealing with suspended paypal recurring payment agreements.
The page accepts variables from the URL, then generates a paypal payment button based on the person’s last payment date.
01 Mar 2013 Here’s a good HTML skeleton/boilerplate tool: htmlshell.com
01 Mar 2013 In the console, it was giving me two errors saying it could not GET these two files from the CDN:
http://ajax.microsoft.com/ajax/4.0/2/WebForms.js
http://ajax.microsoft.com/ajax/4.0/2/WebUIValidation.js
To fix it, you need to delete the <script></script> references for both of the files above and make a single reference to:
<script src= "http://ajax.aspnetcdn.com/ajax/4.5/6/WebFormsBundle.js" type= "text/javascript" ></script>
27 Feb 2013 These are my notes for installing Eastein’s announce. It’s a IRC bot that will receive a message and do text to speech on the message: https://github.com/eastein/announce
Installation: Download announce and extract it to it’s own folder.apt-get install python-irclib apt-get install python-pip sudo apt-get install python-dev apt-get install festival festlex-cmu festlex-poslex festlex-oald libestools1.2 unzip apt-get install speech-tools pip install pyzmq --install-option="--zmq=bundled" or (if you have easy_install installed): easy_install pyzmqdownload mediorc and move mediorc into directory easy_install dnspythonapt-get install mplayer apt-get install sox Fix permissions: chmod 777 saypitchprase chmod 777 pitchphrase2wavRunning The Program: Run process in background by starting a screen (first navigate to the Announce folder):
(start a new screen) python announced “tcp://*:4900” (detach from screen) (start a new screen) python announcebot “chat.freenode.net” “voicebot” “#yourircchannel” “tcp://0:4901” (detack from screen) Starting the program using mp3 files in the JSON file (as always, start in the folder which has Announce):
wget http://fake.com/fake/eye_tiger.mp3 (use a real URL with an mp3 file) nano default.jsonenter into the json file: [ ["eye of the tiger", "eye_tiger.mp3"] ] ctrl+x and save (start a new screen) python announced "tcp://0:4900" default.json(detach from screen) (start a new screen) python announcebot “chat.freenode.net” “voicebot” “#yourircchannel” “tcp://0:4900” (detach from screen) now “!say eye of the tiger” in the IRC channel will trigger the mp3 Troubleshooting: Ensure your Raspberry Pi audio is working: http://jeffskinnerbox.wordpress.com/2012/11/15/getting-audio-out-working-on-the-raspberry-pi/
Testing Festival (create a text file named mytext.txt with some words first):
echo "This is a test." | festival --tts
echo "this is a test" > mytext.txt
text2wave -o myaudio.wav mytext.txt
aplay myaudio.wav
better voices: Ubuntu Forums: more realistic voices in Festival Ubuntu Forums: Festival voices thread
adjust the volume: http://blog.scphillips.com/2013/01/sound-configuration-on-raspberry-pi-with-alsa/ or use amixer?
27 Feb 2013 This page will tell you what font an image is using: http://www.myfonts.com/WhatTheFont/
I wish this feature was included in GIMP or Photoshop.
23 Feb 2013 Debuggex
Don’t want to lose this link, it’s going to make regex related programming a lot easier.