Posts

Download Android SDK standalone for offline installation

Update :- SDK for Android version (6.0) added ! How to install Android SDK without internet connection I searched all over the internet and found no posts like this, hence I'm making one hoping it would be helpful for a lot of people. The magic URL used to be  - http://dl-ssl.google.com/android/repository/repository.xml  (Outdated) That is the XML file from which the URL for downloading the SDK packages are obtained. Update :- The previous URL is now invalid, the new URL is given below https://dl-ssl.google.com/android/repository/repository-5.xml  (Outdated) Update 4  :- New URL https://dl-ssl.google.com/android/repository/repository-10.xml  (thanks topcoder from comments) Update 5  :- New URL https://dl-ssl.google.com/android/repository/repository-12.xml For e.g. if you want to download Android SDK for version 4.0.3 for all platforms, you could look up that XML file. You will find a block under tag SDK 4.0.3 like this <sdk:arch...

Pointer not declared even when declared !

Image
A Strange problem encountered yesterday which left us puzzled for a few mins :) (Check image below) So now, we tried everything possible. Until at last when we saw that there was a backslash after "Plist" in the comment line. As backslash is an escape sequence, it made the whole next line invalid, more like a comment. Once we deleted that backslash, things were back to normal. But hey, aren't comments supposed to suppress anything in them including escape characters

How to ignore build directory in SVN from command line

This works for Windows/Mac/Linux, but its tested on Mac. On Windows, you can do it easily with Free TortoiseSVN Shell context menu, so this method will be useful on Mac/Linux. Lets suppose your folder structure is SVNfolder->trunk->development->Projectfolder->build Now open terminal and cd to development. (Now if you 'ls' it wil' list Projectfolder) type svn propset svn:ignore "build" Projectfolder/  and press Enter. and that is it, your build folder will be ignored.

Simflex Image Gallery - Full Free Flex Image Gallery

Image
I am releasing my source code for a full fledged Flex 3 image gallery along with a PHP based Minimal Image file manager page with upload, delete and automatic thumbnail generation features. I had made this while learning Flex, but it is very usable in many projects. To see it in action, download, extract and put the bin-debug folder under your web server. There is a folder called "Admin" inside "bin-debug" folder which has the PHP part responsible image upload, XML file generation and auto thumbnail code. To manage the images, use filelist.php in admin folder. Tested with JPG and PNG images. Download Source code - 8.78 MB (along with sample images) Please drop me a line if you are using this anywhere.

3d Tunnel OpenGL Source code - iPhone OpenGL ES compatible !

Image
I am releasing source code of the iPhone OpenGL ES compatible Never-Ending Tunnel Source Code. The code is done using SDL on Windows only. But the OpenGL elements use only Triangle strips and all OpenGL ES compatible functions and porting to iPhone is a cakewalk. I have searched on the web and never found a ES compatible version which is easily portable, so here we go enjoy. I have intentionally left a small glitch in Texture Coordinate generation, which actually looks pretty according to me. If you need I can help you to fix is easily. Some important notes :- No Models present - The Tunnel is a torus which is completely procedurally generated.. so the torus properties can be changed easily. The Texture generation part is platform dependent. The files RTexture.h and RTexture.cpp is almost completely copy-paste reusable :D DO NOT REMOVE - #define QUAKEBOY_IS_AWESOME (!) Download Source code (along with SDL Library and Binaries included - 1.36 MB)

Andre Michelle's Tile based Scrolling ported to AS 3

Update:- I have found something that has to be added to the existing code. The SWF embedded here runs only @ around 60 FPS on a Safari or Firefox on a Mac . I will work on a more consistent render loop code adding some timer calculation elements soon. I have ported the Tile based scrolling in Flash code by Andre Michelle to use Actionscript 3.0 Main challenge I faced was the tearing issue which was removed after I used Timer Event and updateAfterEvent() method. Thanks to 8bitRocket site for the tip. I am getting a blazing 160 FPS in browser.. OMG Flash rocks ! If anyone wants me to provide comments and documentation for the code. I will happily do it on request. Click here to get the full source code. P.S. If its slow, its because you might be having the static noise swf playing below (scroll page down). View on the post page by click the title to ensure it plays smoothly.

Creating Static TV Noise in Flash using AS3

Creating Fast and Smooth Static TV Noise in Flash using AS3 was a simpler task than I expected it. First attempt was using for loops to set every pixel and was not very fast. A Simple browse through the API docs for BitmapData class gave me the 'noise' method bgdata.noise(Math.random() * 1000, 0, 255, 7, true); did the trick :) Complete code below package { import flash.display.Sprite; import flash.events.Event; import flash.display.Graphics; import flash.display.Bitmap; import flash.display.BitmapData; import flash.geom.Point; public class StaticNoise extends Sprite { const ww = 480; const hh = 272; var bgdata:BitmapData = new BitmapData(ww, hh, false, 0xffffff); var bg:Bitmap = new Bitmap(bgdata); var zeroPt:Point = new Point(0,0); public function StaticNoise() { addChild(bg); addEventListener(Event.ENTER_FRAME, drawBaby); } function drawBaby(e:Event) { bgdata.lock(); bgdata.noise(Math.random() * 1000, 0, 255, 7, true); bgdata.un...