content top

Ruby on Rails Note To Self – File Upload App

Ruby on Rails Note To Self  – File Upload App

Wow, this article has been long overdue. I have been learning so much, but have not given this blog the priority it deserves. I refuse to use the excuse of “not enough time” :(

Even though , the full code is in my GitHub. This post is a reminder and a compilation of the resources , I used to complete my first webapp using Ruby on Rails.

The File Upload App currently allows a user to upload and save any file type, download the files belonging to that user and of course deleting the uploaded files if necessary. It also has a small admin mode, where the user with administrator privileges can see all files uploaded by all users and has the ability to delete both users and files uploaded.

I used the following to develop the complete WebApp

  1. 1. Twitter Bootstrap for UI etc.
  2. 2. Devise for authentication
  3. 3. Paperclip for handling uploads
  4. 4.Annotate for detailed model info

 

Listing All Users Registered Using Devise

rails generate controller user index show

Add the following to your users_controller to get all the users.

def index
   @users = User.all
end
Read More

Email Service For Your Web Application (Amazon SES)

Email Service For Your Web Application (Amazon SES)

Considering the wide variety of email services currently available and the task of keeping all the moving parts of a start up running. For sending emails why not use one of the services already available ? What did you say … you want to save money ? ..you want do be super “lean” ? Well I wasted a lot of time trying to get my emails from being routed to the spam folder amongst other things.

  • Metrics around your email
  • One less infrastructure based service to maintain
  • Fewer rejects and as a result higher conversions
Read More

Open Source Antivirus Protection for Macs

[23 March  2012]  Seems I had this rant in my draft

In my humble opinion, it is absolutely necessary to have basic antivirus protection installed on your Mac regardless of the number of virus currently out there for the Mac.

“It wasn’t raining when Noah built the ark.” – Howard Ruff

In short its about being prepared

No personal computer exists in a vacuum. As elegantly designed as Macs are, a connected world means that their popularity attracts the attention of malware writers and virus engineers. Not only can malware and other threats attack the Mac OS X platform directly, but Macs can also serve as a carrier of Windows or Linux-based threats. Network shares, email and removable media like USB keys are easy ways for multiplatform malware to spread undetected. Additionally, third party applications which are not consistently patched and updated, are prime targets for hackers to gain control of user systems.

Read More

Iterm2 + Homebrew + Htop + MacVim = Awesomeness

Iterm2 + Homebrew + Htop + MacVim =  Awesomeness

To get  ”awesomeness”  you will need to install the following:

Read More

Using VI Over SSH From Mac OS to Remote Solaris Machine Terminal Error

Using VI Over SSH From Mac OS  to  Remote Solaris Machine Terminal Error

When trying to use VI on a remote machine in my case Solaris from Mac,I got the following error

xterm-color:

Read More

OS X is NOT Bullet Proof (Mac Viruses – Fiction or Fact)

OS X is NOT Bullet Proof (Mac Viruses – Fiction or Fact)

 

As most of us know, Macs have a  ”renowned”  virus free reputation at least to the society at large.Mac’s aren’t immune to viruses  and there is no reason to believe that they will now and forever be “virus free” .. unless they had some form of super dupper force field that magically protects them, which unfortunately they dont.

I am sure there are other  reasons why  the Mac appears to be virus free.However one of the main reasons  

Read More

Packaging Applications Benefits and Deploying Applications using Windows Server 2003

Packaging Applications Benefits and Deploying Applications using Windows Server 2003

Deploying and maintaining applications across multiple PC’s  across an organization is  demanding and time consuming especially  when machines are constantly being refreshed. Packaging applications, provides a centralized location to automatically manage, deploy, repair and patch applications. A Few of the benefits of packaging applications are:

Read More
content top