Aly Badawy

Software and web developer


I build applications that can run on Windows, Mac and iOS.
And I build applications for the Web to run inside your browser and shrinks to fit your mobile phone.
I build back-end databases, APIs, and I set up servers to get you up and running.


Latest posts stuff I have written

26 Jan 2014

Mount Active Admin in subdomain:

26 Jan 2014

I am currently working on a Rails website for a car dealership client. I am using Active Admin as the backend CMS for that website. The client was requesting that the administration area be mounted in a subdomain instead of doing it using /admin which is the default for Active Admin In other words, I needed to mount Active admin in http://admin.example.com instead of http://example.com/admin Here is how to do so, Change the default namespace: In order to get this working, you must uncomment the following line in config/initializers/active_admin.rb: config.default_namespace = false This will remove the /admin/ prefix from the Active Admin namespace, which means it will be mounted directly in the route of the application / To make it mounted in a subdomain, we
Read more...


20 Jan 2014

How to install PostgreSQL on Mac OS X the easy way:

20 Jan 2014

MySQL was always my database engine of choice when I develop any new web or desktop application that needs a database, and I will not go into comparing mySQL to PostgreSQL; Choose whatever you like and which ever meets your needs. But lately, I was developing a Rails application for a client of mine that required that I connect to an existing PostgreSQL database. I have searched on how to install PostgreSQL on my Mac computer and how to install the pg gem; and if you ever tried to do so, you will find that there are over a hundred of tutorials that show you how to do this.... in over hundred ways. And I am not sure how to emphasize this, but whatever happens,
Read more...


30 Dec 2013

URL design:

30 Dec 2013

You should take time to design your URL structure. If there's one thing I hope you remember after reading this article it's to take time to design your URL structure. Don't leave it up to your framework. Don't leave it up to chance. Think about it and craft an experience. And once you have a structure implemented, never change it. I will explain why: URL Design is a complex subject. I can't say there are any "right" solutions - it's much like the rest of design. There's good URL design, there's bad URL design, and there's everything in between - it's subjective. But that doesn't mean there aren't best practices for creating great URLs. I hope to impress upon you some best practices in URL
Read more...


29 Dec 2013

SYNC Sublime text 3 settings across multiple Mac OSX computers with Dropbox:

29 Dec 2013

I use Sublime Text 3 for development and all other text-editing needs. It’s great editor with functionalities that I didn't see in any other editor. Give it a Try if you didn't already. Unfortunately it does not provide any way to keep settings in sync between computers and I would really like if it looks and behaves in very consistent way. The good news is that, it’s really easy to implement such feature using Dropbox, an online service that gives you free space and synchronizes that space between all your computers. This Tutorial assumes you have standard installation of Dropbox with main folder in ~/Dropbox, but you may tweak it as you may see fits... Moving all your current settings to Dropbox: You have to
Read more...