четверг, 7 июня 2012 г.
понедельник, 4 июня 2012 г.
суббота, 2 июня 2012 г.
четверг, 24 мая 2012 г.
вторник, 22 мая 2012 г.
среда, 16 мая 2012 г.
пятница, 4 мая 2012 г.
пятница, 20 апреля 2012 г.
Learn rSpec links
http://blog.carbonfive.com/2010/10/21/rspec-best-practices/
http://www.slideshare.net/andrea.reginato/rspec-2-best-practices
http://eggsonbread.com/2010/03/28/my-rspec-best-practices-and-tips/
http://bitfluxx.com/2011/05/23/some-rspec-tips-and-best-practices.html
http://www.rubyflow.com/items/5238-rspec-best-practices
https://docs.google.com/document/d/1gi00-wwPaLk5VvoAJhBVNh9Htw4Rwmj-Ut88T4M2MwI/edit?hl=en&pli=1#
http://www.methodsandtools.com/tools/tools.php?rspec
http://www.userobsessed.net/testing/2011/04/14/rspec-best-pracitices/
http://www.slideshare.net/andrea.reginato/rspec-2-best-practices
http://eggsonbread.com/2010/03/28/my-rspec-best-practices-and-tips/
http://bitfluxx.com/2011/05/23/some-rspec-tips-and-best-practices.html
http://www.rubyflow.com/items/5238-rspec-best-practices
https://docs.google.com/document/d/1gi00-wwPaLk5VvoAJhBVNh9Htw4Rwmj-Ut88T4M2MwI/edit?hl=en&pli=1#
http://www.methodsandtools.com/tools/tools.php?rspec
http://www.userobsessed.net/testing/2011/04/14/rspec-best-pracitices/
четверг, 12 апреля 2012 г.
вторник, 10 апреля 2012 г.
MD5 Hash of a File in Ruby
md5 = Digest::MD5.hexdigest(File.read('path_to_file'))
Credit:
http://developers.appoxy.com/2010/05/md5-hash-of-file-in-ruby.html
Credit:
http://developers.appoxy.com/2010/05/md5-hash-of-file-in-ruby.html
воскресенье, 8 апреля 2012 г.
Upgrading skills
http://rubydev.ru/ruby_tutorial/ - Ruby
http://rubydev.ru/2011/04/rubydev-ruby-tutorial-object-oriented-programming-ruby/ - OOP
http://learn.javascript.ru/ - JavaScript
https://github.com/bbatsov/ruby-style-guide - Ruby Style guide
https://github.com/bbatsov/rails-style-guide - Rails Style guide
http://php.net/manual/ru/tutorial.php - learn PHP
http://rubydev.ru/2011/04/rubydev-ruby-tutorial-object-oriented-programming-ruby/ - OOP
http://learn.javascript.ru/ - JavaScript
https://github.com/bbatsov/ruby-style-guide - Ruby Style guide
https://github.com/bbatsov/rails-style-guide - Rails Style guide
http://php.net/manual/ru/tutorial.php - learn PHP
суббота, 7 апреля 2012 г.
вторник, 3 апреля 2012 г.
Useful guide about Node.js and npm install
https://gist.github.com/579814#file_node_and_npm_in_30_seconds.sh
I used this one. It i really awesome!
I used this one. It i really awesome!
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc. ~/.bashrcmkdir ~/localmkdir ~/node-latest-installcd ~/node-latest-installcurl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1./configure --prefix=~/localmake install # ok, fine, this step probably takes more than 30 seconds...curl http://npmjs.org/install.sh | shвторник, 27 марта 2012 г.
пятница, 23 марта 2012 г.
среда, 7 марта 2012 г.
HTML5 Upload multiple files links
Maybe it will be useful for me :)
http://www.appelsiini.net/2009/10/html5-drag-and-drop-multiple-file-upload
http://rakaz.nl/2009/08/uploading-multiple-files-using-html5.html
http://www.centurion-project.org/articles/html5-multiple-file-upload-with-progress-bar
Maybe this one is the best:
http://stackoverflow.com/questions/3764966/how-to-post-files-from-html5-drag-drop-to-a-rails-3-app-paperclip
http://root2linux.com/2011/05/multiple-file-uploading-in-rails3-application-using-papercilp/
http://blueimp.github.com/jQuery-File-Upload/
http://www.appelsiini.net/2009/10/html5-drag-and-drop-multiple-file-upload
http://rakaz.nl/2009/08/uploading-multiple-files-using-html5.html
http://www.centurion-project.org/articles/html5-multiple-file-upload-with-progress-bar
Maybe this one is the best:
http://stackoverflow.com/questions/3764966/how-to-post-files-from-html5-drag-drop-to-a-rails-3-app-paperclip
http://root2linux.com/2011/05/multiple-file-uploading-in-rails3-application-using-papercilp/
http://blueimp.github.com/jQuery-File-Upload/
понедельник, 5 марта 2012 г.
Some urls about rails (respond_with)
https://github.com/rails/rails/blob/master/actionpack/lib/action_controller/metal/responder.rb
http://blog.plataformatec.com.br/2009/08/embracing-rest-with-mind-body-and-soul/
http://blog.plataformatec.com.br/2009/08/embracing-rest-with-mind-body-and-soul/
Send json to rails app via curl
curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"event":{"name":"Djent Fest", "place_id":"1"}}' http://localhost:3000/api/events.json
* About to connect() to localhost port 3000 (#0)
* Trying ::1... Connection refused
* Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 3000 (#0)
> POST /api/events.json HTTP/1.1
> User-Agent: curl/7.21.3 (x86_64-pc-linux-gnu) libcurl/7.21.3 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.18
> Host: localhost:3000
> Accept: application/json
> Content-type: application/json
> Content-Length: 47
>
< HTTP/1.1 201 Created
< Content-Type: application/json; charset=utf-8
< X-Ua-Compatible: IE=Edge
< Etag: "118675d32176f7035bd76a35197665ea"
< Cache-Control: max-age=0, private, must-revalidate
< X-Request-Id: d4d0abca7e7a8dba7b6dbdda589c4aab
< X-Runtime: 0.103121
< Content-Length: 127
< Server: WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
< Date: Mon, 05 Mar 2012 18:53:05 GMT
< Connection: Keep-Alive
<
* Connection #0 to host localhost left intact
* Closing connection #0
{"created_at":"2012-03-05T18:53:05Z","id":16,"name":"Djent Fest","place_id":1,"updated_at":"2012-03-05T18:53:05Z","user_id":49}
It is really easy!
Got from here
http://stackoverflow.com/questions/5658510/curl-json-post-request-via-terminal-to-a-rails-app
* About to connect() to localhost port 3000 (#0)
* Trying ::1... Connection refused
* Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 3000 (#0)
> POST /api/events.json HTTP/1.1
> User-Agent: curl/7.21.3 (x86_64-pc-linux-gnu) libcurl/7.21.3 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.18
> Host: localhost:3000
> Accept: application/json
> Content-type: application/json
> Content-Length: 47
>
< HTTP/1.1 201 Created
< Content-Type: application/json; charset=utf-8
< X-Ua-Compatible: IE=Edge
< Etag: "118675d32176f7035bd76a35197665ea"
< Cache-Control: max-age=0, private, must-revalidate
< X-Request-Id: d4d0abca7e7a8dba7b6dbdda589c4aab
< X-Runtime: 0.103121
< Content-Length: 127
< Server: WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
< Date: Mon, 05 Mar 2012 18:53:05 GMT
< Connection: Keep-Alive
<
* Connection #0 to host localhost left intact
* Closing connection #0
{"created_at":"2012-03-05T18:53:05Z","id":16,"name":"Djent Fest","place_id":1,"updated_at":"2012-03-05T18:53:05Z","user_id":49}
It is really easy!
Got from here
http://stackoverflow.com/questions/5658510/curl-json-post-request-via-terminal-to-a-rails-app
воскресенье, 4 марта 2012 г.
useful links about rSpec TDD at Rails
http://killswitchcollective.com/articles/47_testing_rails_controllers_with_rspec
http://kpumuk.info/ruby-on-rails/my-top-7-rspec-best-practices/
http://kpumuk.info/ruby-on-rails/useful-helpers-for-rspec-mocks/
http://rspec.rubyforge.org/rspec/1.1.9/classes/Spec/Matchers.html
http://stackoverflow.com/questions/3622604/rspec-mock-object-example
http://blog.carbonfive.com/2010/10/21/rspec-best-practices/
http://habrahabr.ru/blogs/ruby/123894/
http://chrismdp.github.com/2011/10/your-tests-are-lying-to-you/
http://kpumuk.info/ruby-on-rails/my-top-7-rspec-best-practices/
http://kpumuk.info/ruby-on-rails/useful-helpers-for-rspec-mocks/
http://rspec.rubyforge.org/rspec/1.1.9/classes/Spec/Matchers.html
http://stackoverflow.com/questions/3622604/rspec-mock-object-example
http://blog.carbonfive.com/2010/10/21/rspec-best-practices/
http://habrahabr.ru/blogs/ruby/123894/
http://chrismdp.github.com/2011/10/your-tests-are-lying-to-you/
Подписаться на:
Сообщения (Atom)