Page 1 of 5 | Next »
[02:10:31] haxx0r: i have a rails project and want to listen on a local running RPC client every second for new stuff. i wonder what would be best practice to have this running in a way that it can literally run forever and won't be interrupted
[02:14:07] haxx0r: should i use this gem https://github.com/thuehlinger/daemons ? wonder how to integrate it into rails
[05:55:14] haxx0r: Uploaded file: https://uploads.kiwiirc.com/files/31e76e51244189c45ac6ecb582401fc7/pasted.txt
[05:56:05] haxx0r: alternatively i could make a cronjob that gets called every minute and the cronjob itself will work 5 times with 10 seconds delays
[18:38:31] haxx0r: Uploaded file: https://uploads.kiwiirc.com/files/8de97ca496fbfd5afb6fce94bde2a61d/pasted.txt
[09:21:17] haxx0r: this is really weired. so i have strings like "DPR5G7-69LNE-XXDNXY" which is 19 chars long. and i have a migration `t.string :reference, null: false, limit: 30` yet i get errormessage: `Mysql2::Error: Data too long for column 'reference' at row 1: `
[09:21:35] haxx0r: so i'm smart and removed the limit. just plain old ` t.string :reference, null: false, index: true
[10:01:32] haxx0r: and app/lib for something like `Cronjob` or maybe `StripeAPIWrapper` or something like `BitcoinRPC`
[10:10:34] haxx0r: you really need to read about this stuff and/or watch some railscasts or other tutorials
[11:48:56] haxx0r: def folders; folder = JqueryFolder.run(params[:directory}); render json: folder: end
[15:56:34] haxx0r: any chance to throw a `Proc` into `validates_numericality_of` so that the value we check against is depending on an association?
[16:44:03] haxx0r: to my own answer: yes it's working `validates_numericality_of :amount, less_than: :minimum_amount` given a symbol will be executed correctly
[05:25:45] haxx0r: NameError: uninitialized constant ActiveRecord::ConnectionAdapters::ColumnMethods
[05:42:35] haxx0r: Uploaded file: https://uploads.kiwiirc.com/files/64a278b6977f9786d8dda4adb5b92eb3/pasted.txt
[05:44:03] haxx0r: from my migration i get `NameError: uninitialized constant ActiveRecord::ConnectionAdapters::ColumnMethods
[16:32:46] haxx0r: Uploaded file: https://uploads.kiwiirc.com/files/b4220e13511c2d31832377e6c94a91b9/pasted.txt
[16:33:22] haxx0r: is that the right place? is that the right way? does it belong into `deposit_address_spec` or is it correct at the user?
[16:35:24] haxx0r: but i think, i would rather return the address or if limit is exceeding raise an exception, than returning true/false
[17:24:27] haxx0r: i need to build a ledger for accounting (deposits, trades, withdrawals etc). obviously i need to avoid all the rounding issues that `float` has. can i use `t.decimal(precision: 16, scale: 6)` and i'm save with rounding errors?
[17:24:44] haxx0r: i need to build a ledger for accounting (deposits, trades, withdrawals etc). obviously i need to avoid all the rounding issues that `float` has. can i use `t.decimal(precision: 16, scale: 6)` and i'm save with rounding errors?
[17:31:17] haxx0r: yeah, i know the money gem. but i feel it's not the best for a crypto exchange platform
[19:50:46] haxx0r: i want to generate generate unique identifiers like `AGBBL3W-ZKPXXL-JZFYWR` or `TAN5OL-RTLX2-4ELIEV` or `OPDTA6-VNN3X-E62FSR`. is there any possibility to do it based on a seed like the current processortime, so i don't need to recheck my database that thisn thing is unique, instead i can just trust that the seed will give me unique things?
[20:18:45] haxx0r: i need customers to tell me the numbers, i dont want them to tell me so many characters. hence just 12 or 15 digits
[21:00:34] haxx0r: Uploaded file: https://uploads.kiwiirc.com/files/43880abca703e49e02a828c66541f59e/pasted.txt
[21:24:01] haxx0r: i personally would say it's safe to use and practically it won't ever create collusions, but i also didn't study science nor am i good at math
[21:27:55] haxx0r: Uploaded file: https://uploads.kiwiirc.com/files/71ea730ef350b8325e683538539d240e/pasted.txt
[21:45:22] haxx0r: so then i don't need to check on validity anymore because i can assume zero collision, ya?
[21:47:15] haxx0r: if it's 1 in 25 million that is ok. record won't be created then. i can live with that
[10:32:09] haxx0r: in shell i call arguments to rpc like this ` ./rpc -testnet listtransactions * 1000 0 true`
[06:42:00] haxx0r: i run 2 domains for the same rails-app. is it possible if user log in at site1.com he's also logged in at site2.com if he visits it?
[12:40:55] haxx0r: the cookie i send needs to be modified, ya? i always thought browsers have cookie storage by TLD