Kashiftufail

Lahore, Pakistan

Age: 30

Feb
12
accepted How i can sort ip address in Rails 4 using postgresql
Feb
10
comment How i can sort ip address in Rails 4 using postgresql
Error is "PG::InvalidTextRepresentation: ERROR: invalid input syntax for type inet: "12.33.44.555" : SELECT "ip_addresses".* FROM "ip_addresses" ORDER BY ip::inet ASC"
Feb
10
comment How i can sort ip address in Rails 4 using postgresql
It was my mistake when put question.
Feb
10
revised How i can sort ip address in Rails 4 using postgresql
deleted 2 characters in body
Feb
10
asked How i can sort ip address in Rails 4 using postgresql
Feb
5
awarded Popular Question
Feb
2
comment how can i run command line commands on heroku
This error is "/app/vendor/bundle/ruby/2.0.0/bin/rake: No such file or directory - traceroute.db"
Feb
2
comment how can i run command line commands on heroku
In above comment i say i have tried traceroute.db -q 1 -n google.com in rake task. but same error.
Feb
2
comment how can i run command line commands on heroku
I see this is "heroku run traceroute.db -q 1 -n google.com" running fine. But i want to run this " traceroute -q 1 -n google.com " in my rake task. i tried this traceroute.db -q 1 -n google.com with this command "heroku run rake traceroute_ip --app openreverseip" but same error.
Feb
1
awarded Inquisitive
Jan
28
comment how can i run command line commands on heroku
In above comment you can see traceroute have installed below is my rake task :traceroute_ip => :environment do puts "start.........................." puts traceroute -q 1 -n google.com end it giving me error "/app/vendor/bundle/ruby/2.0.0/bin/rake: No such file or directory - traceroute" any help please?
Jan
28
comment how can i run command line commands on heroku
After this operation, 176 kB of additional disk space will be used. Get:1 archive.ubuntu.com/ubuntu trusty/universe traceroute amd64 1:2.0.19-3 [44.6 kB] Fetched 44.6 kB in 0s (658 kB/s) Download complete and in download only mode -----> Installing traceroute_1%3a2.0.19-3_amd64.deb -----> Writing profile script =====> Downloading Buildpack: github.com/heroku/heroku-buildpack-ruby =====> Detected Framework: Ruby
Jan
28
comment how can i run command line commands on heroku
i have done as you describe above. Add two file .buildpack text file with these contents github.com/ddollar/heroku-buildpack-apt github.com/heroku/heroku-buildpack-ruby and APtfile file with this traceroute. Then push to heroku below is my all output when deploying
Jan
27
asked how can i run command line commands on heroku
Jan
25
accepted How do pagination on hash that have value in form of array using Rails 4
Jan
24
comment How do pagination on hash that have value in form of array using Rails 4
Not working for me..................
Jan
24
asked How do pagination on hash that have value in form of array using Rails 4
Jan
23
accepted How to find ids of record from array of records using Ruby 2.0
Jan
23
asked How to find ids of record from array of records using Ruby 2.0
Jan
19
comment How I can run 'cmd' command inside rake process using Rails 4
Thanks a lot @Damax works for me...
1 2 3 4 5