CGAffineTransform Reset

If you are trying to reset the transformation, so that the image appears as it did originally, you can simply set the transform back to the identity. self.imageView.transform = CGAffineTransformIdentity If you want to apply arbitrary transformations to the transformed image, the easiest thing to do would be to use the CGAffineTransform methods that take … Read more

Rake db:migrate – how do I undo all migrations and redo them

Rolling back all migrations To rollback all migrations the best solution is the one @Claudio Floreani proposed: rake db:migrate VERSION=0 This will rollback every migration. You can read why this is the best approach in his answer. Then, run all migrations again with rake db:migrate Resetting the database Reset rake db:migrate:reset #runs db:drop db:create db:migrate … Read more

How to discard changes using repo

This is the command I use for this kind of things, very useful repo forall -vc “git reset –hard” What everything mean here ? the repo forall will execute for all repos. the –v is verbose, so it will print the output of the command the -c “COMMAND TO EXECUTE” is the actual command you … Read more

Wipe data/Factory reset through ADB [closed]

After a lot of digging around I finally ended up downloading the source code of the recovery section of Android. Turns out you can actually send commands to the recovery. * The arguments which may be supplied in the recovery.command file: * –send_intent=anystring – write the text out to recovery.intent * –update_package=path – verify install … Read more

tech