This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Session Management with API | |
import requests,httpx | |
def bse(): | |
reqUrl = "https://api.bseindia.com/RealTimeBseIndiaAPI/api/GetSensexData/w" | |
headersList = {"Referer": "https://www.bseindia.com/" } | |
response = requests.GET(reqUrl, headers=headersList) | |
print(response.text) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
activerecord (3.0.0) lib/active_record/connection_adapters/abstract_adapter.rb:202:in `log' | |
activerecord-jdbc-adapter (1.1.1) lib/arjdbc/jdbc/adapter.rb:183:in `execute' | |
activerecord-jdbc-adapter (1.1.1) lib/arjdbc/jdbc/adapter.rb:275:in `select' | |
activerecord (3.0.0) lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `select_all' | |
activerecord (3.0.0) lib/active_record/connection_adapters/abstract/query_cache.rb:54:in `select_all' | |
activerecord (3.0.0) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `cache_sql' | |
activerecord (3.0.0) lib/active_record/connection_adapters/abstract/query_cache.rb:54:in `select_all' | |
activerecord (3.0.0) lib/active_record/base.rb:467:in `find_by_sql' | |
activerecord (3.0.0) lib/active_record/relation.rb:64:in `to_a' | |
activerecord (3.0.0) lib/active_record/relation/finder_methods.rb:143:in `all' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Model: | |
class SiteAlert < ActiveRecord::Base | |
def self.per_page | |
3 | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
saideep@saideep-laptop:~/Rails/dynamo$ RAILS_ENV=development jruby -s script/rails server -p 3333 | |
=> Booting WEBrick | |
=> Rails 3.0.0 application starting in development on http://0.0.0.0:3333 | |
=> Call with -d to detach | |
=> Ctrl-C to shutdown server | |
[2011-05-03 11:33:02] INFO WEBrick 1.3.1 | |
[2011-05-03 11:33:02] INFO ruby 1.8.7 (2010-12-03) [java] | |
[2011-05-03 11:33:07] INFO WEBrick::HTTPServer#start: pid=6083 port=3333 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActiveRecord::StatementInvalid in Site alertsController#show | |
ActiveRecord::JDBCError: DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601, SQLERRMC=desc;ORDER BY startdate;<interval_qualifier>, DRIVER=3.57.82: SELECT site_alerts.* FROM site_alerts ORDER BY startdate desc) A ) B WHERE B.internal$rownum > 0 AND B.internal$rownum <= 3 | |
Rails.root: /home/saideep/Rails/dynamo | |
Application Trace | Framework Trace | Full Trace | |
app/controllers/site_alerts_controller.rb:31:in `show' |