Here is the commandcat /proc/cpuinfoExample use on my ubuntu machine, It shows me.cat /proc/cpuinfoprocessor : 0vendor_id : GenuineIntelcpu family : 6model : 15model name : Intel(R) Pentium(R) Dual CPU T2330 @ 1.60GHzstepping : 13cpu MHz : 800.000cache size : 1024 KBphysical id : 0siblings : 2core id : 0cpu cores : 2apicid : 0initial apicid … Continue reading Find processor (cpu) information on linux
How to find OS X version on linux machine
Here is the command which will give you OS name with version along with other detail information.cat /etc/*release*Example: On my ubutnu machine, It shows me.cat /etc/*release*DISTRIB_ID=UbuntuDISTRIB_RELEASE=8.10DISTRIB_CODENAME=intrepidDISTRIB_DESCRIPTION="Ubuntu 8.10"
How to map irregular database tables with rails models
Rails specifies standard conventions while creating models, controllers, migrations ( database tables ).Conventions for creating database tables1. Table name should be plural2. id field must be primary_key for table.3. foreign_key must be like <model_name>_id i.e. post_id, site_idConventions for creating models & Controllers1. Model name must be singular and controller name should be plural.Although rails have … Continue reading How to map irregular database tables with rails models
