Monitoramento App: Ativação de dispositivo


Alcohol Device Para ativar um dispsoitivo de Alcohol em uma pessoa é necessário seguir as configuraçãoes citadas abaixo. “Querys” deve ser considerado apenas se for ativação direto na base de dados. ####################################### Home Station Device Para ativar um Home Station é necessário relacioná-lo ao site e o site a pessoa, conforme a imagem abaixo: Lembrando […]

The Power of Habit


The book “The Power of Habito” by Charles Duhigg is a self-help that aims to explain the concept of habit, because they exist, how they work…, so that in the end the reader can change habits that he considers negative/harmful in his life. In the course of the book Duhigg presents interesting ideas about psychology […]

Yii/PostgreSQL: Erro de apóstrofo


yii framework

Recentemente me deparei com um problema de segurança no framework Yii. Quando ao pesquisar por um registro como na grid (zii.widgets.grid.CGridView). “SELECT * FROM tb_pessoa WHERE nome like ‘%Joana d’Arc%'”; A solução foi fazer um bindParam do PDO para tratamento de valores antes de inserir na base de dados: $sql = “SELECT * FROM tb_pessoa […]

Yii Model


yii framework

Yii Model Delete <?php $model=User::model()->findByPk($id); if($model){ $model->delete(); } # OR $model=User::model()->deleteAll(); # OR $model=User::model()->deleteAll(array(“condition”=>”userid=’$id'”)); # OR $mode=User::model()->deleteAll(“status=’A'”); ?> Yii Model Update <?php $model=User::model()->updateByPk( $ID, array(“status”=>’DECLINED’) ); # OR $model=User::model()->updateAll(array( ‘first_name’=>”$firstname”, ’email’=>”$email” ), “UserID=$id and status IS NULL ” ); # OR $model=User::model()->updateAll( array(‘status’ => 1), ‘UserID =’.$userid ); ?>


Unsupported extensions disabled: how to re-enable blocked extension in Chrome


The first error occurred because my extension did search in an HTTP (unsafe) domain, so I changed it to HTTPS to resolve. 2.1 – I was using an addEventListener with anonymous function, to fix I created a function to be passed in addEventListener; 2.2 – I gave names of words reserved to the functions, to […]

Chrome Web Store: Removal notification


Dear Developer, We routinely review items in the Chrome Web Store for compliance with our Program policies to ensure a safe and trusted experience for our users. Your item “myAPP,” with ID: XXXXXXXXXXXX, is being taken down as it currently does not work or provide any functionality upon installation. Items on the Chrome Web Store […]

Protected: Chronos help


There is no excerpt because this is a protected post.

Small Move, Big Change – Caroline L. Arnold


The author tells us that the idea of how micro resolutions are fully achievable. It’s the way we achieve our goals without so much suffering and frustration. To demonstrate this, the book brings a very comprehensive view with many examples such as family, employment, money, friends, diet, relationships among other numerous approaches. The key point […]

CDbCommand Yii 1


yii framework

A good practice of programming is to use “statement”, to do CRUD actions in a safe and scalable way. The Yii framework has by default its library for ease of development. SELECT Queryng with the template referencing the primary key: INSERT DELETE


The 4-Hour Workweek


The 4-Hour Workweek – Timothy Ferriss It’s a book that has many positive points, such as fighting for having a sufficient income, administering your work remotely, taking extended and clear vacations, working 4 hours a week, among others. But I don’t agree with forging a disease or producing less at work just to get a […]

Moeda Tipo Valor
Dollar Compra R$ 5,29
Dollar Venda R$ 5,29
Data 06/03/2026

March 2026
S M T W T F S
1234567
891011121314
15161718192021
22232425262728
293031