Author: Jude Pereira
-
Calculate the REAL scale factor and the angle of rotation from an Android Matrix
After performing transformations such as rotation of a bitmap about an arbitrary point, the scale is lost. Of course, this makes sense because the bitmap is rotated inside the same bounds. To get the real scale now, along with the most reliable degree of rotation, I had to follow this method. Hope it saves the…
-
Multi Touch in Android – Translate, Scale, and Rotate
| androidHere’s a quick and easy implementation of Android’s multi touch feature – one finger to move, two to zoom, and three to rotate the image. Assuming you have a basic understanding of 2D matrix transformations, the Matrix class in Android uses a 3×3 matrix to achieve all of the 2D transformations. The source code and…
-
Notes on running the Crippled Turbo C/C++ from Dosbox, within a Linux Env
Notes on setting up Turbo C/C++ within DosBox 0.74, compiled from source: Install DosBox from source This is the dosbox_shared directory containing Turbo C/C++ This config file is tested and works, modify the last three commands, to set the correct path to where you’ve extracted the dosbox_shared.tar.bz2 Place the config file in /home/username/.dosbox/dosbox-0.74.conf
-
Rooted? Get the most of your Android phone | A power saving strategy
| life!The smart-phones these days are power hungry devices, and often drain the battery within six to eight hours, or even less. However, if it’s running Android, there’s a good chance that that can change. The key is to find the right set of tools, and optimize your phone to be right on the edge, there…
-
Use Ruby to Generate your Shadow Password
I was initially stumbled on creating the shadow compatible SHA-512 hash. After a little research, the answer was obvious: require ‘digest/sha2’ password = “pass@123” salt = rand(36**8).to_s(36) shadow_hash = password.crypt(“$6$” + salt) And you now have a password hash which you can directly use in /etc/shadow
-
The Puppet Cyclic Dependency Nightmare
Want to see the wildest cyclic dependency graph ever? Well, here it is: After this was fixed finally, after a lot of frustration, the result was majestic:
-
Hacking your GoFlex Home, #2 UART Serial Console
Serial console? That’s beautiful when it comes to debugging. The following images are specific to the Seagate GoFlex Home, however, you may be able to figure out the connections for other Marvell SoCs. On the board: Notice that according to the picture, the bottom right last three pins are used. The junction: I’ve used extra…
-
recursive get from an FTP server
As we all know, downloading a directory from an FTP server over FTP over the command line is not possible. Some, have found mget to be the holy grail, I certainly do not. I was restoring my music backup from my NAS, and I didn’t want to do it the GUI way, so CLI is…
-
Evidently, SEED is just a kid in the corporate world
Despite several efforts to contact SEED Infotech regarding their mishap for the past two days, they do not respond. E-mails, twitter updates, facebook posts being deleted from their end, says everything: SEED Infotech is lazy. They cannot afford to sponsor an event such as this one. What’s more, today’s challenge makes no sense whatsoever! SEED…
-
SEED hits the pit again #iknowvention
SEED continues to make mistakes. So is today’s challenge: #include int main(int argc, char *argv[]) { printf(“%d”,4[“seed”]); return 0; } The answer for the above is 0, as the fourth element in the array “seed” does not exist. This is because of the index value, which starts from 0. Had it been 3, then it…
-
SEED makes Blunder! #iknowvention
Alright, so I’m taking part in this SEED Infotech C programming contest, and here’s one of yesterday’s challenges: main() { if(printf(“C for yourself how it works \n”); main(); } One of the options were a) C for yourself how it works infinate times Now isn’t that catchy? Look at it clearly, there’s one pair of…
