Posts

Install Rails 7 Edge Alpha

Setup your app directory mkdir rails7-edge-alpha-app cd rails7-edge-alpha-app Specify your Ruby version touch .ruby-version echo 'ruby-3.0.0' > .ruby-version Setup Gemfile with edge rails7 touch Gemfile printf "source 'https://rubygems.org'\nruby '3.

Software development toolkit 2019

Here is the following list of tools and utilities, I’m using for application(s) development in 2019: [List](with links) Duck - For Search (skip Google) Opera - Web Browser (With VPN mode enabled)(It’s really awesome) RubyMine (we’ve licence :D) Ubuntu 16.

Downgrade Mysql to 5.6 from 5.7 on Ubuntu 16.04(xenial)

Ubuntu 16.04 only provides packages for MySql 5.7(by default) which has a range of backwards compatibility issues with code written against older MySql versions. for Rails specific see this Oracle maintains a list of official APT repositories for MySql 5.

managing node versions with n

Node version management with n Node version management with nvm is great yet there is one new tool comes up which is n. Currently n supports only linux and Osx not available for windows.

install PhoneGap pushPlugin 2.0.0 on ubuntu/Osx

Problem We’re using phonegap-plugin-push to Register and receive push notifications to ionic applications and unfortunately that’s get updated. Version 2.0.0, this plugin will support CocoaPods installation of the Firebase Cloud Messaging library.

AWS cloudformation with AutoScalingGroup and LaunchConfiguration

Problem We’re currently looking into such an option to run multiple number of ec2 instances into already running environment(VPC) with launch configurations too. Solution Amazon web services - Cloudformation - AutoScaling CloudFormation is one of the coolest services from AWS at no additional charge.

Over the ait update hack for oneplus india

Problem Roll-out of OTA for OnePlus, generally comes to india after requirement and excitement dies. Solution It’s a Quick Hack Install Opera VPN App. Open App And connect to Canada(works always for me) Region.

tempfile generation issue from user generated filename in ruby/OS

Problem We used a super simple code in ruby to generate tempfiles with dynamic filename. temp_file = Tempfile.new([title, '.pdf']) where title is a variable value (Input taken from user).so if your insert special or not allowed/expected character as a filename in any Operating system this code will fail.

Gemfile audits in rails

Problem Ruby, majorly well-known for rapid web-development via rails. there are number of rubygems coming everyday and un-countable versions of existing rubygems are released per day. these updates may have problems like outdated support,vulnerabilities, bugs or deprecated features (In general it doesn’t happen).

Bad to worse rails practice

Problem We used ruby gem paranoia to soft delete our active-records. which is super easy to integrate with a rails application. Our migrations consists such code to update all User/Project. While running migrations to a new created DB following code will break due to paranoia expectations of having deleted_at column, which is being added in later migrations.