NodeJS Routes
This post was written 4 months ago
If you using NodeJS without any routing functionality like in Express framework
and you would like to implement this functionality, you could write a simple class that can handle this for you with regular expression.
and you would like to implement this functionality, you could write a simple class that can handle this for you with regular expression.
Benchmark HTTP Stress Test
This post was written 5 months ago
To stress test your site you can use Siege.
I'm using it on Mac.
http://jason.pureconcepts.net/2011/09/installing-siege-mac-os-x-lion/
I'm using it on Mac.
http://jason.pureconcepts.net/2011/09/installing-siege-mac-os-x-lion/
Notify Plugin - Position Element
This post was written 5 months ago
This is a small plugin I wrote to position any element on the bottom of the screen, either on right or left.
1. Add this to your stylesheet
2. Add this to your javascript
3. Finish
1. Add this to your stylesheet
2. Add this to your javascript
3. Finish
Backup MySQL Database S3
This post was written 5 months ago
This code takes backup of your rails application database. (ONLY MYSQL)
Upload Assets to Amazon S3
This post was written 5 months ago
Here is a task I developed to upload all assets files to S3.
1. Add this line to Gemfile
gem 'aws-sdk'
2. Setup s3.yml file inside config directory.
3. Add this code to /lib/tasks/amazon.rake
Then type this in the console
rake amazon:upload_assets
Remember to configure your application to serving your assets files through host in the production.rb file
config.action_controller.asset_host = "http://assets.soueidan.com"
1. Add this line to Gemfile
gem 'aws-sdk'
2. Setup s3.yml file inside config directory.
3. Add this code to /lib/tasks/amazon.rake
Then type this in the console
rake amazon:upload_assets
Remember to configure your application to serving your assets files through host in the production.rb file
config.action_controller.asset_host = "http://assets.soueidan.com"
About me
"I've been learning various technologies, because of my urge to discover new ways of developing websites, and my fascination for the technologies..."
Github Profile