This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alter system set "_ORACLE_SCRIPT"=true SCOPE=SPFILE; | |
alter session set "_ORACLE_SCRIPT"=TRUE; -- para permitir a criação de usuários sem o prefixo C## ou c## | |
CREATE USER NOME_USUARIO_AQUI IDENTIFIED BY SENHA_USUARIO_AQUI DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP ACCOUNT UNLOCK; | |
GRANT CREATE SESSION TO NOME_USUARIO_AQUI; | |
GRANT CREATE TABLE TO NOME_USUARIO_AQUI; | |
ALTER USER NOME_USUARIO_AQUI QUOTA UNLIMITED ON USERS; | |
GRANT EXP_FULL_DATABASE TO NOME_USUARIO_AQUI; | |
GRANT CONNECT TO NOME_USUARIO_AQUI; | |
GRANT create session, alter session TO NOME_USUARIO_AQUI; | |
GRANT create procedure to NOME_USUARIO_AQUI; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (UIImage *)resizedImage:(CGSize)newSize interpolationQuality:(CGInterpolationQuality)quality { | |
BOOL drawTransposed; | |
CGAffineTransform transform = CGAffineTransformIdentity; | |
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 5.0) { | |
// Apprently in iOS 5 the image is already correctly rotated, so we don't need to rotate it manually | |
drawTransposed = NO; | |
} else { | |
switch (self.imageOrientation) { | |
case UIImageOrientationLeft: |