Showing posts with label general. Show all posts
Showing posts with label general. Show all posts

Thursday, 29 August 2013

Windows - VMWare Sound Audio Troubleshooting

Check Realtek Audio Manager

Ensure Both Playback and Recording Devices Working

Check VMWare player Sound Device Setting


Thursday, 25 July 2013

Python - VoIP with SIP & Others

Public SIP Server List
https://code.google.com/p/sipml5/wiki/Public_SIP_Servers

SIP Client (Debug Tool)
http://icanblink.com/index.phtml

SIP response codes
http://en.wikipedia.org/wiki/List_of_SIP_response_codes

SIP

SIPpy
http://www.b2bua.org/

PJSIP Python
http://trac.pjsip.org/repos/wiki/Python_SIP_Tutorial
http://blog.pjsip.org/2008/07/24/python-sip-voip-softphone-client/

SIP SIMPLE
http://sipsimpleclient.org/
https://code.google.com/p/moshimoshi/
https://github.com/grengojbo/python-sipsimple

SIPVicious
https://code.google.com/p/sipvicious/

Divmod Sine
http://bazaar.launchpad.net/~divmod-dev/divmod.org/trunk/files/head:/Sine/
https://github.com/rcarmo/divmod.org

Shtoom (Last updated 2006)
http://sourceforge.net/projects/shtoom/
https://github.com/jrydberg/natmap

D-Bus
http://telepathy.freedesktop.org/wiki/
http://telepathy.freedesktop.org/doc/book/sect.services.python.html
https://github.com/PabloCastellano/telepathy-python

Asterisk server
https://pypi.python.org/pypi/django-asterisk/0.1

PyAudio (One way)
http://people.csail.mit.edu/hubert/pyaudio/
http://sharewebegin.blogspot.com/2013/06/real-time-voice-chat-example-in-python.html
http://www.ugw.name/?page_id=157

Twilio
https://www.twilio.com/
http://www.twilio.com/docs/libraries
https://developers.google.com/appengine/articles/twilio

GoogleVoice
https://code.google.com/p/pygooglevoice/

HTML5 SIP Client
http://sipml5.org/

P2P-SIP
http://39peers.net/
https://code.google.com/p/p2p-sip/

WebRTC (HTML5)
http://www.webrtc.org/reference/getting-started
https://code.google.com/p/py-webrtc/

Web Audio API (HTML 5)
https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html
http://www.html5rocks.com/en/tutorials/webaudio/intro/
http://updates.html5rocks.com/2012/09/Live-Web-Audio-Input-Enabled

Currently testing on: P2P-SIP (39Peers)

Tuesday, 23 July 2013

Heroku - Django Project Startup

settings.py
Troubleshooting for dj-static (In case static files error)
OSError: [Errno 2] No such file or directory: '/app/PROJECT_NAME/static'
heroku run python manage.py collectstatic --dry-run --noinput
wsgi.py
Procfile
runtime.txt
requirements.txt

Related Cmd

ssh-keygen -t rsa
# Generate ssh pub key (id_rsa)
ssh -v git@github.com
# Check your default .pub location for troubleshooting 
# Make sure both files included in the directory (id_rsa & id_rsa.pub)

heroku login
heroku keys
heroku keys:remove xxx@xxx

git init
echo local_settings.py>> .gitignore
# Remember to exclude local_settings.py in .gitignore
More info: https://devcenter.heroku.com/articles/gitignore
git add .
git commit -m 'Initial commit'

git remote -v
git remote rm heroku
More info: https://devcenter.heroku.com/articles/git

heroku create APP_NAME OR heroku git:remote -a EXISTING_APP_NAME

git push heroku master

heroku addons | grep POSTGRES
heroku addons:add heroku-postgresql:dev
heroku pg:wait
heroku config | grep HEROKU_POSTGRESQL
heroku pg:promote HEROKU_POSTGRESQL_XXX_URL
# Replace XXX with info from heroku config
More info: https://devcenter.heroku.com/articles/heroku-postgresql

heroku open

heroku run python manage.py syncdb
heroku run python manage.py migrate APP
heroku run python manage.py shell

More info: https://devcenter.heroku.com/articles/django

Wednesday, 19 June 2013

Python - Headless Web Browsing Development

PhantomJS

Technology:
QtWebKit

Remark:
Common way to interact with PhantomJS by using subprocess

Link:

Ghost.py

Technology:
Qt4

Remark:
PyQt4 (GPL) or PySide (LGPL)

Link:

spynner

Technology:
Qt4

Remark:
PyQt4

Link:

phantompy

Technology:
Qt5

Remark:
Support Python >= 3.3 & Partially Support Python >= 2.7
# https://phantompy.readthedocs.org/en/latest/install.html#python-compatibility

Link:
https://github.com/niwibe/phantompy

python-zombie


Technology:
Zombie.js, Node.js

Remark: -

Link:
https://github.com/ryanpetrello/python-zombie

Monday, 3 June 2013

General - CSS JS Order Optimization

script.js
var i, total=0;
for (i=1;i<=3000;i++){
    total += Math.sqrt(2 * Math.pow(i, 2));;
    document.write("Total: " + total);
    document.write("<br>");
}
CSS then JS

JS then CSS

CSS, JS, CSS then JS

JS, CSS, JS then CSS

*In Most Cases, CSS FirstJS Second

More Info: 

Sunday, 19 May 2013

General - Computer Units Conversion

1 Bit = Binary Digit (1/0)
8 Bits = 1 Byte
1024 Bytes = 1 Kilobyte
1024 Kilobytes = 1 Megabyte
1024 Megabytes = 1 Gigabyte
1024 Gigabytes = 1 Terabyte
1024 Terabytes = 1 Petabyte
1024 Petabytes = 1 Exabyte
1024 Exabytes = 1 Zettabyte
1024 Zettabytes = 1 Yottabyte
1024 Yottabytes = 1 Brontobyte
1024 Brontobytes = 1 Geopbyte
1024 Geopbyte = 1 Saganbyte
1024 Saganbyte = 1 Pijabyte
1024 Pijabyte = 1 Alphabyte
1024 Alphabyte = 1 Kryatbyte
1024 Kryatbyte = 1 Amosbyte
1024 Amosbyte = 1 Pectrolbyte
1024 Pectrolbyte = 1 Bolgerbyte
1024 Bolgerbyte = 1 Sambobyte
1024 Sambobyte = 1 Quesabyte
1024 Quesabyte = 1 Kinsabyte
1024 Kinsabyte = 1 Rutherbyte
1024 Rutherbyte = 1 Dubnibyte
1024 Dubnibyte = 1 Seaborgbyte
1024 Seaborgbyte = 1 Bohrbyte
1024 Bohrbyte = 1 Hassiubyte
1024 Hassiubyte = 1 Meitnerbyte
1024 Meitnerbyte = 1 Darmstadbyte
1024 Darmstadbyte = 1 Roentbyte
1024 Roentbyte = 1 Coperbyte

Wednesday, 15 May 2013

General - 250GB = 233GB


Hard Disk Manufacturer
1GB = 1000 MB; 1 MB = 1000 KB
250 x 1000 x 1000 x 1000 = 250000000000 Bytes = 250 GB

Computer
1KB = 1024 Bytes
250000000000/­ (1024*1024*1024) = 232.83 GB