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
| Linea : 6,1333504800,17,10,8,, | |
| Data : 6,1333504800,17,10,8. | |
| DEBUG: kbtree_leaf_insert(): inserted at position 0. | |
| Linea : 3,1331793000,19,13,4,, | |
| Data : 3,1331793000,19,13,4. | |
| DEBUG: kbtree_leaf_insert(): inserted at position 1. | |
| Linea : 5,1335126600,11,4,3,, | |
| Data : 5,1335126600,11,4,3. | |
| DEBUG: kbtree_leaf_insert(): inserted at position 2. | |
| Linea : 4,1328477400,10,7,3,, |
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
| MiddleMan.worker(:fast_import_worker) | |
| => #<BackgrounDRb::RailsWorkerProxy:0x3b6d9a8 @worker_key=nil, @middle_man=#<BackgrounDRb::ClusterConnection:0x32b84e8 @request_count=1, @bdrb_servers=[#<struct #<Class:0x32a7ff8> ip="0.0.0.0", port=11006>], @round_robin=[0], @last_polled_time=Fri Jun 08 06:25:06 -0700 2012, @disconnected_connections={}, @backend_connections=[#<BackgrounDRb::Connection:0x32a7b98 @mutex=#<Mutex:0x32a7b48>, @server_ip="0.0.0.0", @connection_status=true, @cluster_conn=#<BackgrounDRb::ClusterConnection:0x32b84e8 ...>, @server_port=11006>]>, @worker_name=:fast_import_worker, @tried_connections=[]> | |
| >> MiddleMan.worker(:fast_import_worker).csv_local | |
| => "dummy_result" | |
| >> MiddleMan.worker(:fast_import_worker).async_csv_local | |
| => nil | |
| >> MiddleMan.worker(:fast_import_worker).async_csv_local(:arg => {:import_type => 7, :list_name => "probando" }) | |
| => nil | |
| >> MiddleMan.worker(:fast_import_worker).csv_local(:arg => {:import_type => 7, :list_name => "probando" }) | |
| => "dummy_result" |
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
| #@sql = "LOAD DATA LOCAL INFILE '/tmp/hh_import_#{@user.id}#{rand_filename}.tsv' INTO TABLE contacts (phone) SET user_id=#{@user.id},status=#{import_type},import=1,created_at=UTC_TIMESTAMP(),updated_at=UTC_TIMESTAMP()" | |
| #ActiveRecord::Base.connection.execute(@sql) if @exists_phones.length > 0 #.join adds a \n to empty arrays | |
| @contacts = Contact.create( | |
| @exists_phones.map{|phone| {:phone => phone, :status => import_type, :user_id => @user.id, :import => 1} } | |
| ) | |
| ids = @contacts.map(&:id) | |
| @q_contacts = QcallContact.create( | |
| ids.map{|contact_id| {:qcall_contact_list_id => @q_new_list.id, :qpriority => 10, :qcall_id => @qcall.id, :contact_id => contact_id } } |
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
| # Esto hizo tonchis hasta ahora. | |
| private var edited_row_index:int; | |
| private function editCell(event:AdvancedDataGridEvent):void{ | |
| edited_row_index = event.rowIndex; | |
| ExternalInterface.call('console.log', "Event" + event); | |
| } | |
| private function putNewValue(event:AdvancedDataGridEvent):void{ |
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
| <mx:AdvancedDataGridColumn dataField="active" headerText="Active" editable="false"> | |
| <mx:itemRenderer> | |
| <mx:Component> | |
| <mx:Canvas width="100%" height="100%"> | |
| <mx:CheckBox selected="{data.active}" horizontalCenter="0" click="alertData(event);"> | |
| <mx:Script> | |
| <![CDATA[ | |
| import mx.controls.Alert; | |
| import flash.external.ExternalInterface; | |
| import mx.events.FlexEvent; |
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
| hice click en el checkbox de Arizona....(id: 169) Salio todo esto en el log: | |
| Processing TzQcallListsController#update to fxml (for 10.0.2.2 at 2012-06-26 05:41:17) [PUT] | |
| Parameters: {"id"=>"169", "tz_qcall_list"=>{"qcall_contact_list_id"=>"26", "timezone"=>"Arizona", "active"=>"false", "weight"=>"45"}} | |
| Completed in 10ms (DB: 2) | 200 OK [http://localhost/tz_qcall_lists/169.fxml?_method=put] | |
| Processing TzQcallListsController#update to fxml (for 10.0.2.2 at 2012-06-26 05:41:17) [PUT] | |
| Parameters: {"id"=>"169", "tz_qcall_list"=>{"qcall_contact_list_id"=>"26", "timezone"=>"Arizona", "active"=>"true", "weight"=>"45"}} |
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
| has_many :tz_qcall_lists, :conditions => ["qcall_contacts_count > 0"], :dependent => :destroy | |
| #qcalls_controller.rb | |
| format.fxml { render :fxml => @qcall.to_fxml( | |
| :only => [ | |
| :id,:name,:desc,:user_group_id, | |
| :callerid_name,:callerid_phone,:msgset_abandon, | |
| :duration_abandon,:total_calls,:abandon_calls, | |
| :stats_call,:vmd,:poverride,:max_retry, |
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
| def tz_qcall_lists | |
| TzQcallList.find(:all, :conditions => ['qcall_contact_list_id = ? AND qcall_contacts_count > 0', self.id]) | |
| 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
| Contact.transaction do | |
| @contacts = Contact.create( | |
| @exists_phones.map{|phone| {:phone => phone, :status => import_type, :user_id => @user.id, :import => 1} } | |
| ) | |
| 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
| require 'logger' | |
| class DbImportWorker < BackgrounDRb::MetaWorker | |
| set_worker_name :db_import_worker | |
| def create(args = nil) | |
| end | |
| def insert_log(log,msg) | |
| log.debug msg |
OlderNewer