keeguon

Activity Graph

Page 1 of 1

2015-08-07

[06:51:31] keeguon: has joined #RubyOnRails
[06:51:32] keeguon: has joined #ruby
[16:41:41] keeguon: Quit: keeguon

2015-08-06

[06:45:03] keeguon: has joined #RubyOnRails
[06:45:04] keeguon: has joined #ruby
[16:56:17] keeguon: Ping timeout: 246 seconds

2015-08-05

[07:21:58] keeguon: has joined #RubyOnRails
[07:21:59] keeguon: has joined #ruby
[17:22:59] keeguon: Ping timeout: 246 seconds

2015-08-04

[07:54:36] keeguon: has joined #ruby
[07:54:41] keeguon: has joined #RubyOnRails
[09:45:16] keeguon: Hey, I???m using Rails 3.2.22 with jRuby 1.7.21 in a compiled manner locked in a production environment. Whenever I try to run a rake task the Rails stack (mainly models) aren???t loaded. At first I thought it was an issue regarding ???dependency_loading??? since I have ???threadsafe!??? enabled but I also have added the line: ???config.dependency_loading = true if $rails_rake_task??? which I know for a fact used to
[09:45:17] keeguon: work but in this case nothing goes. Does anybody might have an idea not involving calling something like ???Rails.application.eager_load!??? in the rake task itself?
[17:01:23] keeguon: Ping timeout: 246 seconds

2015-08-03

[13:49:24] keeguon: has joined #ruby
[13:49:29] keeguon: has joined #RubyOnRails
[16:43:38] keeguon: Ping timeout: 246 seconds

2015-07-31

[13:32:44] keeguon: has joined #ruby
[13:33:25] keeguon: drivers are correctly set). Since it was cryptic and I saw there was some shenanigans going on there in 2013 (https://github.com/jruby/jruby/issues/976) but couldn???t really pinpoint what was going on I decided to hack the ???Kernel.require??? call to log what was going on on boot. Somehow, upon requiring ???rails/application/bootstrap??? it require ???active_support/notification??? which causes a loop requiring it like a
[13:33:25] keeguon: Hey! Might not be the best room to ask my question but whatever. I???m using jRuby 1.7.21 and compiling a Rails 3.2.22 app using warbler on a Linux machine. When I run the code in a Linux machine everything works fine. However when I try to boot it on Windows, it fails with an ???blame_file!??? error coming from ActiveSupport (side note: I???m using SQL Server on the Windows machine and MySQL on the Linux machine but the
[13:33:26] keeguon: gazillion times and then fails with a Java StackOverflowError. Do any of you guys might have an idea?
[13:38:25] keeguon: has joined #RubyOnRails
[13:38:56] keeguon: Hey! Might not be the best room to ask my question but whatever. I???m using jRuby 1.7.21 and compiling a Rails 3.2.22 app using warbler on a Linux machine. When I run the code in a Linux machine everything works fine. However when I try to boot it on Windows, it fails with an ???blame_file!??? error coming from ActiveSupport (side note: I???m using SQL Server on the Windows machine and MySQL on the Linux machine but
[13:38:57] keeguon: the drivers are correctly set). Since it was cryptic and I saw there was some shenanigans going on there in 2013 (https://github.com/jruby/jruby/issues/976) but couldn???t really pinpoint what was going on I decided to hack the ???Kernel.require??? call to log what was going on on boot. Somehow, upon requiring ???rails/application/bootstrap??? it require ???active_support/notification??? which causes a loop requiring
[13:38:58] keeguon: it like a gazillion times and then fails with a Java StackOverflowError. Do any of you guys might have an idea?
[13:40:25] keeguon: Seems like my question was totally ignored in favor of this off-topic madness ^^
[13:43:08] keeguon: adaedra: thought I???d be precise :). Also bonjour ?? toi!
[13:44:01] keeguon: apeiros: yeah that would be the expected behavior but eh it ain???t
[13:44:24] keeguon: jhass: thought I???d increase my chances by asking the question both here and there
[13:46:11] keeguon: jhass & ruboto: nobody seems very active on the jruby channel atm hence the crosspost since I wasn???t getting an answer
[13:54:01] keeguon: mrbubbles: yes
[13:56:34] keeguon: mrbubbles: depends, we sometimes use a different container for our data or we run a database on a bare metal machine that we make available in the container where the rails app is
[13:56:57] keeguon: but yeah mostly the data is outside the app container itself
[13:59:17] keeguon: if the data is stored on another container docker-compose is a good way to tie everything together though not necessary
[14:00:42] keeguon: I???ve seen people manage everything from the Dockerfile itself without relying on docker-compose/fig at all, I guess it???s a question of choice in the end the result is pretty much the same
[14:05:18] keeguon: mrbubbles: no data is lost when a container is stopped only if it is deleted
[14:08:26] keeguon: mrbubbles: basically yeah, one good way to do that would be to create a docker image from your container since you can???t really export container like this per se and then download the image and then recreate a container on your dev machine from that image
[14:09:24] keeguon: mrbubbles: no problem mate!
[16:54:48] keeguon: Quit: keeguon

2015-07-16

[12:56:59] keeguon: has joined #ruby
[16:40:56] keeguon: Quit: keeguon

2015-07-15

[14:09:54] keeguon: has joined #ruby
[14:10:18] keeguon: Hey, any sexp expert in the room?
[14:13:15] keeguon: Well, say I have a :defs node in a sexp would it be possible to easily manipulate it to transform it into a :defn node?
[14:19:12] keeguon: If you want some context I???m moving methods (both static and instance) from a class based on a regexp and I???m using ruby_parser for doing so to detect the nodes and I hit a wall when I want to move static methods (:defs node) into the module since I have to put them in a submodule ???ClassMethods??? and transforming them into a :defn node in the said submodule
[15:12:22] keeguon: Quit: keeguon
[15:19:03] keeguon: has joined #ruby
[16:45:51] keeguon: Quit: keeguon

2014-05-20

[13:58:38] keeguon: Hey, I have a file that I encrypt with openssl using the following command: ???openssl enc -aes256 -K <key> -iv <initvector> -in <inf> -out <outf>???, the key and iv are stored in a file so I can reuse them later in Ruby but when I try to decrypt my file I end up getting the following error: ???`final': wrong final block length (OpenSSL::Cipher::CipherError)??? which is annoying. So I tried encrypting the file with Ruby and
[13:58:39] keeguon: it works I guess but the shasum is totally different from when I encrypt it directly w/ openssl any ideas?
[15:12:59] keeguon: it works I guess but the shasum is totally different from when I encrypt it directly w/ openssl any ideas?
[15:12:59] keeguon: Hey, I have a file that I encrypt with openssl using the following command: ???openssl enc -aes256 -K <key> -iv <initvector> -in <inf> -out <outf>???, the key and iv are stored in a file so I can reuse them later in Ruby but when I try to decrypt my file I end up getting the following error: ???`final': wrong final block length (OpenSSL::Cipher::CipherError)??? which is annoying. So I tried encrypting the file with Ruby and

2014-04-04

[09:33:09] keeguon: Hey guys I???m trying to combine net-ftp w/ openssl to connect to a remote FTPS using a defined certificate/key pair. In order to do this and avoid rewriting code I decided to use the following gem: https://rubygems.org/gems/double-bag-ftps. However whatever I do I run into the following error: "SSL_connect returned=1 errno=0 state=SSLv3 read server hello A: wrong version number???. Any ideas?
[09:35:12] keeguon: FYI the code is here (without the real names): https://gist.github.com/Keeguon/9223910256b8dbfea56d
[13:42:33] keeguon: hey guys do anyone of you know a little bit about the openssl lib?
[13:45:15] keeguon: well I have this tricky issue I???m able to connect to a remote FTPS server (not SFTP but FTP w/ SSL) using openssl s_client and setting the starttls to ftp but when I try to do the same in Ruby combining with the net-ftp lib it seems that the starttls command isn???t sent
[13:46:02] keeguon: which is a bit annoying so is there anyway to replicate what the starttls option of openssl s_client is doing using the openssl in ruby?
[13:52:00] keeguon: okay nevermind fixed it

2013-07-12

[09:07:44] keeguon: hey guys I have a weird problem w/ bundler when I do the following: "$ jruby -S bundle check" I get this: "The Gemfile's dependencies are satisfied" but when I try this: "jruby -S bundle exec rake -T" it tells me: "Your Ruby engine is ruby, but your Gemfile specified jruby", I have tried various things with my Gemfile and currently it looks like this: https://gist.github.com/Keeguon/fdfcdb8bbd2827cc9c1d if any of you
[09:07:45] keeguon: guys has an idea that would be great
[09:11:41] keeguon: well it's a stack requirement thingy
[09:16:30] keeguon: anyhow beyond curiosity do any of you might have a clue on my issue…?
[09:20:06] keeguon: FYI multithreading is better but memory wise it's java so you'd better have a pretty decent machine and if you pack application in WAR to deploy them in a servlet (jetty, tomcat or whatever) you'd have to be sure your app is threadsafe and calibrate the heap size properly to avoid some problems...
[09:23:05] keeguon: because we have client needs and we can't always do what we want
[09:24:04] keeguon: well our client is mostly using java and webapps running in servlet so we have to comply
[09:25:38] keeguon: if it were only just up to me I'd sure use MRI but eh as I said can't always do what you want
[09:26:18] keeguon: however the problem isn't on their side here but rather on ours when trying to use bundler w/ jruby

2013-04-09

[15:40:41] keeguon: "Capybara.app_host" and having an instance of my app running on a custom port all requests end up to go nowhere (not requesting the actual app) and are going into 404, if somebody has a tip for me it will be much appreciated
[15:40:41] keeguon: hey guys I know it has been asked many times by Googling it but I can't seem to figure it out. I'm trying to set up integration testing in my Rails app using rspec and capybara using selenium but my test environment is located on a remote server and not on my machine and everytime I try to perform a request using either rspec directly or capybara using either "get" or "visit" and precising the host using "host!" or
[15:59:52] keeguon: any idea regarding my rspec/capybara issue…?