What coding language should I begin with?

Thursday, March 3, 2011

What coding language should I pick to start coding spy programs?That's the question I hear most:What coding language should I pick to start coding spy programs?By experience, I started with Visual Basic 5, in 1999. Even though I didn't use Windows...
READ MORE - What coding language should I begin with?

How to get requested controller name, action name and id in Rails3 view

To get requested controller name, action name and id in view we will call a simple helper function. For example we have the '/users/show/23' request, by routing rule: 'match ':controller(/:action(/:id(.:format)))''#to get controller name:<%= controller.controller_name...
READ MORE - How to get requested controller name, action name and id in Rails3 view

Each loop for a class or model instance variables

Sometimes we need to check all of instance variables in a class or model one by one. In this exaple we will check if a varaible is an Array or not:your_model.instance_variables.each do |i| if your_model.instance_variable_get(i).instance_of?(Array)...
READ MORE - Each loop for a class or model instance variables