Nov 24, 2011

Tethering in Iphone 4 - Movistar Argentina

  • General → Network → Cellular Data Network
  • Under "Internet Tethering" we write:
    APN:internet.gprs.unifon.com.ar
    Username: internet
    Password: internet
  • Turn on and off
  • General → Network → Personal Hotspot and swipe to on
  • Select a password and you're done!

New Ninja-IDE scheme color - focojoaco version 2

{
    "keyword": "#228b22",
    "operator": "#242424",
    "brace": "#228b22",
    "definition": "#6495ed",
    "string": "#ff8c00",
    "string2": "#838b83",
    "comment": "#8b8878",
    "properObject": "#8b0a50",
    "numbers": "#ff4500",
    "spaces": "#000000",
    "extras": "#A37A00",
    "editor-background": "#eeeee0",
    "editor-selection-color": "#ebc79e",
    "editor-selection-background": "#8b8878",
    "editor-text": "#242424",
    "current-line": "#6ca6Cf",
    "selected-word": "#a2cd5a",
    "fold-area": "white",
    "fold-arrow": "darkGray"
}

Nov 6, 2011

Removing white spaces in Python

Using split()
in = " something     with multiple white spaces   "
parsed = in.split()
output = ' '.join(in)
Using regular expresions
import re
in =  " something     with multiple white spaces   "
output = re.sub("\s+" , " ", in)