# change mirror to ubuntu.osuosl.org first
sudo apt-get update
sudo apt-get install build-essential libreadline-dev libssl-dev zlib1g-dev libxml2-dev libxslt-dev
asdf asdf asdfa sdfasdf |
{ | |
"estados": [ | |
{ | |
"sigla": "AC", | |
"nome": "Acre", | |
"cidades": [ | |
"Acrelândia", | |
"Assis Brasil", | |
"Brasiléia", | |
"Bujari", |
function _uploadProfileImage(params) { | |
var d = $q.defer(); | |
function onUploadSuccess(result) { | |
console.log("result uploa image profile ==>> "+ JSON.stringify(result)); | |
d.resolve(result.data); | |
} | |
function onUploadFail(error) { | |
// 1 = FileTransferError.FILE_NOT_FOUND_ERR |
function _openCamera() { | |
var options = _getOptionsCamera(Camera.PictureSourceType.CAMERA); | |
$cordovaCamera.getPicture(options).then(function(imageUrl) { | |
UserSrv.uploadProfileImage({ | |
image : imageUrl | |
}).then(function(image) { // jshint ignore:line | |
console.log("image => "+ JSON.stringify(image)); | |
}).catch(function(err) { // jshint ignore:line | |
// console.error("error upload => "+ JSON.stringify(err)); |
function _getOptionsCamera(sourceType) { | |
var _cameraPopover = new CameraPopoverOptions(300, 300, 100, 100, Camera.PopoverArrowDirection.ARROW_ANY); | |
return { | |
quality: 90, | |
destinationType: Camera.DestinationType.FILE_URI, | |
sourceType: sourceType, | |
mediaType: Camera.MediaType.PICTURE, | |
allowEdit: true, | |
encodingType: ionic.Platform.isAndroid()?Camera.EncodingType.JPEG:Camera.EncodingType.PNG, |
<html> | |
<head> | |
<title>Focus-in APIs</title> | |
<meta charset="UTF-8"> | |
</head> | |
<body style="margin: 0px; padding: 0px;"> | |
<a name="top"></a> | |
<h1>API</h1> | |
<b>Mensagem Boas Vindas</b> |
E/TiApplication(23659): (main) [715194,715194] Sending event: exception on thread: main msg:java.lang.NullPointerException; Titanium 3.1.3,2013/09/18 12:01,222f4d1 | |
E/TiApplication(23659): java.lang.NullPointerException | |
E/TiApplication(23659): at org.appcelerator.titanium.proxy.ActionBarProxy.handleSetTitle(ActionBarProxy.java:154) | |
E/TiApplication(23659): at org.appcelerator.titanium.proxy.ActionBarProxy.handleMessage(ActionBarProxy.java:207) | |
E/TiApplication(23659): at android.os.Handler.dispatchMessage(Handler.java:98) | |
E/TiApplication(23659): at android.os.Looper.loop(Looper.java:136) | |
E/TiApplication(23659): at android.app.ActivityThread.main(ActivityThread.java:5017) |
/*! Socket.IO.js build:0.9.6, development. Copyright(c) 2011 LearnBoost <dev@learnboost.com> MIT Licensed */ | |
/** | |
* Originally Ported to titanium by Jordi Domenech <jordi@iamyellow.net> | |
* source: https://github.com/iamyellow/socket.io-client | |
*/ | |
this.io = {}; | |
module.exports = this.io; | |
/** |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> | |
<soapenv:Body> | |
<ns2:consultarExtratoResponse xmlns:ns2="http://www.smartnet.com.br/services/vrrh/v20130418"> | |
<return> | |
<codigoResposta>0</codigoResposta> | |
<descricaoResposta>Consulta de saldo realizada com sucesso</descricaoResposta> | |
<saldo>973.0</saldo> | |
<valorPendenteAutorizacao>0.0</valorPendenteAutorizacao> | |
<totalDebitos>27.0</totalDebitos> | |
<totalCreditos>0.0</totalCreditos> |