Suck-O Time

Resources

Latest posts

Sorry, the latest posts are only visible to registered users in order to protect privacy!
Our forums contain more than 72.000 posts in more than 9.500 topics at the moment.

Feel free to register for an account here.

-----

The benefits if you are a registered user:

- Forum access
- Downloads access
- Event calendar access
- Submit links to your sites
- Submit events
- Submit articles
- Apply for an own blog

 


Sunday, 29 December 2013 21:59

PyBass [Bass Audio API] on Android Trials

This is the Bass Audio Library, suggested by my friend Adam a while ago http://www.un4seen.com/. This is Pybass http://sourceforge.net/projects/pybass/ the ctypes implementation of Bass Audio I contributed in the past to various developments on the Pybass scripts such as VST implementation. This is my initial tests in working with PyBass on Android. I am using a rooted phone to copy over the libbass.so file to /data/data on the internal storage. Please be sure you download the bass library for Android. The only line you will need to change in your pybass.py file is the path to libbass.so. Keep in mind a shared object file will not execute from your sdcard it has to be on the internal storage. This has to do with Android security. The test python script I ran was:


from pybass import *

@SYNCPROC
def onEndPlay(handle, buffer, length, user):
    print("playing finished.")

if __name__ == "__main__":
    BASS_Init(1, 44100, 0, 0, 0)
    handle = BASS_StreamCreateFile(False, b'/sdcard/test.mp3', 0, 0, 0)
    BASS_ChannelSetSync(handle, BASS_SYNC_END, 0, onEndPlay, 0)
    play_handle(handle, False)
    BASS_Free()

I ran this from the sdcard using a shell script (see below) the shell script allows me to execute python from the adb shell terminal window standalone_python.sh


#! /system/bin/sh
PW=`pwd`
export EXTERNAL_STORAGE=/mnt/sdcard
export LANG=en
export PYTHONPATH=/mnt/sdcard/com.googlecode.pythonforandroid/extras/python:
/data/data/com.googlecode.pythonforandroid/files/python/lib/python2.6/lib-dynload:
/data/data/com.googlecode.pythonforandroid/files/python/lib/python2.6
export TEMP=/mnt/storage/com.googlecode.pythonforandroid/extras/python/tmp
export PYTHON_EGG_CACHE=$TEMP
export PYTHONHOME=/data/data/com.googlecode.pythonforandroid/files/python
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/data/data/com.googlecode.pythonforandroid/files/python/lib:
/data/data/com.googlecode.pythonforandroid/files/python/lib/python2.6/lib-dynload:
/mnt/sdcard/com.googlecode.pythonforandroid/extras/python
cd $PW
/data/data/com.googlecode.pythonforandroid/files/python/bin/python "$@"

the command was

sh standalone_python.sh test.py

Here is the result and yes there was audio playing off of my phone. Enjoy! Resources http://www.un4seen.com/ http://sourceforge.net/projects/pybass/ http://code.google.com/p/python-for-android/wiki/RunPythonFromShell http://code.google.com/p/python-for-android/

Monday, 04 April 2011 17:23

Just some personal notes on SEO

Change the content to use keywords.

 

  • Make the Title of the Web Site use keywords no more than 70 characters. Keyword > Category > Title

  • Meta Description no more than 150 characters

  • Meta Keywords should be individually categorized to the pages content

  • No more than 100 Unique links per page

  • Page should not exceed 150 kbs

  • Use <h1> Tags referencing keywords in Meta (only one per page)

  • Use <h2> Tags referencing in a sentence using keywords in Meta

  • Use <h3>

  • Use Bold letters for Keywords

  • Use alt tags on Images (including keywords > category > title)

  • Use title tags on links (including keywords > category > title)

  • Use words as keyword links directing to relevant content with in your own web site.

  • URL Slug Formatting is essential an oversimplified example: about-rustytub-it-solutions instead of about.php

  • Understanding how to use MicroData in your site and verifying your MicroData and HTML structure using Google is essential.

  • Use well structured/formed HTML (http://validator.w3.org/nu/)

  • Design your site to be mobile friendly!

  • Localization in Content/URLs/Title/Meta Tags can provide helpful results as well. A localization example would be: www.theworld.com/USA/NewYork/New-York-Times-Newspaper (not a real link)

  • Using the date in your URL/Post can help provide relative content for the information people are searching for (for example with a news web site).

  • Remember who your target audience is when developing SEO. Not all traffic is good traffic.

 

Implement SEO Foundation

  • Generate relevant keywords using Google Adsense Keyword tool

  • Provide relevant content (using keywords) (Why should I visit your web site?)

  • Manually submit site to Google/Yahoo/Bing

  • Add Google/Bing Web Master Tools

  • Create a site map and submit to Google/Bing web master tools

  • Add manual back links from web sites that relate to your content

  • Submit site to DMOZ

  • Submit Site to Google/Bing/Yahoo Places

 

Implement Continuous SEO

 

  • Create a blog where you post articles pertaining to the business.

  • Use Social networks to promote your web site and blog articles

  • Submit Articles to Blog Sites and News Sites

 

SEO Blog Guidelines

 

  • Let crawlers post links and comments but don't publish them

  • Allow trackbacks.

  • Only allow comments to be posted on posts not pages.

  • Only approve relevant comments

Social Media SEO Guideline

  • Same rules apply – Write relevant content including links to your website with that relevant content

 

Above all else POST RELEVANT CONTENT!