Page 1 of 1
[00:34:56] Aces1up: as any other file added to that directory rails cannot see any modules or classes I put into it.
[16:49:07] Aces1up: hey all i have been searching around but can not find an answer to this. when i save a datetime to column in rails I know it saves it as utc.. How can I later do a query on that datetime to see if it has passed a certain time in another timezone?
[16:49:47] Aces1up: it is as simple as querying the database using a datetime object set with a different timezone and AR knows what to do from there?
[17:13:19] Aces1up: <aces1up> it is as simple as querying the database using a datetime object set with a different timezone and AR knows what to do from there?
[17:13:19] Aces1up: hey all i have been searching around but can not find an answer to this. when i save a datetime to column in rails I know it saves it as utc.. How can I later do a query on that datetime to see if it has passed a certain time in another timezone?
[17:23:20] Aces1up: right now i have an app where i was storing all things as unix timestamp, now i need to adapt it to retreieve stuff based on biz location / timezone
[17:26:10] Aces1up: or should i just switch over everything to date time object so AR can do queries against timezone of business?
[17:27:02] Aces1up: its polling businesses for new leads that come in.. so i have a cron job running every 30 secs.
[17:29:12] Aces1up: sure let me know your thoughts if i can adapt just Timestamps to work with timezones.
[17:29:37] Aces1up: i guess i need to convert the timestamp to time object then convert to timezone but then how would I do a query with all those conversions.
[16:06:59] Aces1up: hey all hope you guys can help this is kind of an active record / ror question but I can not get access to that channel
[16:07:01] Aces1up: Determine if Current time falls within time ranges.. If not find what the next open window is
[16:07:13] Aces1up: https://stackoverflow.com/questions/53265793/determine-if-current-time-falls-within-time-ranges-if-not-find-what-the-next-o
[16:09:00] Aces1up: hey all maybe someone can assist me here. have the following post on stack exchange https://stackoverflow.com/questions/53265793/determine-if-current-time-falls-within-time-ranges-if-not-find-what-the-next-o
[16:09:16] Aces1up: Determine if Current time falls within time ranges.. If not find what the next open window is
[14:58:06] Aces1up: can someone help me with some association model issues I am having? have posted code here : https://paste.ofcode.org/XuBbAx3Jq2g6RQxCQkFY6E
[15:02:45] Aces1up: i know this isnt an active record channel but not getting a response on those chnnels for the issue im having maybe someone here can help https://paste.ofcode.org/XuBbAx3Jq2g6RQxCQkFY6E
[15:09:41] Aces1up: hrmm didnt notice it was referencing my framework.. just assumed it was coming from AR
[00:24:07] Aces1up: so i would have a search array like that I want to make sure all those entries have availability > 0
[00:24:59] Aces1up: actually no return value needed, just checking to make sure that there is availability
[00:28:03] Aces1up: how would i add in the rate and room_type to make sure it only compares dates with those columns matching rate and room_type ?
[09:22:15] Aces1up: dminuoso cool so it will allow you to build up custom json structures likes this?
[10:22:49] Aces1up: anyone know of a cool math gem that can parse language math statements? ex. two plus 5 times six
[13:40:41] Aces1up: how can i split a do block into 1 or more files? I have a gui library that makes me put all my layout code in 1 block..
[11:28:29] Aces1up: hey, i ususally develop on cloud9 ide.. I was wondering for a ruby standalone what would be a good package/system i can use along with git to auto push my app/gems/etc to my deployment server?
[06:08:36] Aces1up: i cannot seem to find a simple answer to this, just want to get current time, in timezone pacific.. in date and timestamp format.
[04:19:04] Aces1up: hello i have a long string with multiple newlines i am writing to a socket, what should i use to make sure I send the whole string? puts, and gets on the server cut the string at the first newline
[04:19:28] Aces1up: what io method should i use both to write the string and read the string on the server side?
[04:37:42] Aces1up: eam how can i do sysread on server end if I do not know how many bytes were sent?
[08:29:27] Aces1up: i am trying to add a node right before the closing </body> tag of an html document
[08:55:45] Aces1up: nothing but from reading, i do not see any functions that would do what i want, sorry if i'm not seeing it, i will read through it again.
[09:01:41] Aces1up: so i would have to traverse the whole document to detect the node right before the closing <body> so i can add a child to that node?
[12:05:38] Aces1up: anyone know a decent proxy server gem that can handle http and https, I would also like to have hooks if possible to modify content on the fly
[12:21:06] Aces1up: i want to build in some custom stats count requests, types of requests, where they are going etc.
[12:38:42] Aces1up: what is something i can use to comapare a string against an array of strings for the closest match case insensetive?
[12:46:03] Aces1up: hey i have a few scripts i want to make into executables is there any recent good ruby to exe gems?
[17:28:19] Aces1up: trying to understand, if I generate a bitcoin address, how can I load test funds to it with the bitcoin test net
[10:19:25] Aces1up: if i needed to insert 100k rows into a remote AR DB with validations what would be the quickest way to do it? i am using activerecord-import now and it is still pretty slow.
[10:20:29] Aces1up: rvanlieshout i was thinking about generating a .csv and then uploading it to the server and executing remote commands to import it.. wondering if it would be faster..
[10:24:29] Aces1up: workmad3 yes something like that, i'm using activerecord-import gem to send say 100-1000 records at a time and perform validations.
[10:26:45] Aces1up: rvanlieshout its basically an incremental update.. eventually the rows that would need to be fetched might grow to big.
[10:28:32] Aces1up: hrmmm ok.. yeh maybe i can just remote it then and pipe back the errors etc on my local machine.
[10:31:35] Aces1up: rvanlieshout when i generate this data.. It typically takes around 1-2 houts to generate those 100k rows.. could I have a threadpool that just pushes work and saves the records as they are made?
[19:02:10] Aces1up: is the .count a heavy operation on say 1mil records if I did like a Product.count? is it single query or it pull all records?
[06:20:59] Aces1up: if you had to delete a mass amount of file remotely.. could I script this with say perhaps sftp? possibly slow, or can I script via ssh connection somehow?
[07:36:58] Aces1up: if i have an integer of say 10000 how could i loop through it and get a per batch of 1000
[07:40:24] Aces1up: twistedpixels what would that look like? was looking to batch it and create a range that i could do work on,.
[07:51:18] Aces1up: got it scaled pretty good across multiple server i scrape a couple mil pages a day.