« Back to channel list

#ruby - 24 May 2015

« Back 1 day Forward 1 day »
[00:00:04] gizmore: imho, we could start a flamewar, as it is holidays
[00:00:07] ebonics: honestly im not sure what the benefit of either is anymore when there's go
[00:00:11] ebonics: butt to each his own
[00:00:20] apeiros: ebonics: why aren't you eating!
[00:00:24] ebonics: apeiros, i am
[00:00:28] ebonics: i had to go get it
[00:00:34] ebonics: #thai food
[00:00:36] gizmore: let??s all unite against php?
[00:00:37] apeiros: I need to figure where the heck I have an interrobang-button
[00:00:47] ebonics: gizmore, i still use php lol
[00:00:59] ebonics: i mean, php fills a role, go, rails, django etc fill another role
[00:01:01] SushiMonster: django sucks? that's racist!
[00:01:07] ebonics: and go seems to be the best of them
[00:01:09] gizmore: the d is tiny
[00:01:11] havenwood: ?rails sushimonster
[00:01:11] ruboto: sushimonster, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[00:01:21] apeiros: !kick sushimonster no trolls.
[00:01:21] helpa: apeiros: No.
[00:01:22] ruboto: ruboto kicked sushimonster: trolls.
[00:01:22] ruboto: -o ruboto
[00:01:28] SushiMonster: has joined #ruby
[00:02:04] SushiMonster: http://lmgtfy.com/?q=django+slave
[00:02:05] jhass: havenwood: they actually found that already
[00:02:07] jhass: which means...
[00:02:42] xxneolithicxx: every time i peek my head in that +o gets whipped out
[00:02:52] jhass: sushimonster: you must be really bored if you sign up just to troll. Why not do something productive?
[00:02:55] apeiros: !ban sushimonster !T 1d I thought I was clear with "no trolls"
[00:02:55] helpa: Radar, you should ban the person highlighted, signed apeiros.
[00:02:56] ChanServ: +b sushimonster!*@*
[00:02:56] ChanServ: ChanServ kicked sushimonster: I thought I was clear with "no trolls"
[00:02:58] shevy: xxneolithicxx we have to fullfil a quota
[00:03:50] baweaver: We could just ban the web gateway collectively
[00:04:01] miah: ya the month is half way through...
[00:04:07] qwertme: has joined #ruby
[00:04:22] apeiros: baweaver: did you measure how many non-trolls use it?
[00:04:39] baweaver: Not offhand. Do you have such a number?
[00:04:53] apeiros: no. and as long as you don't have one, I don't think that suggestion is viable.
[00:05:10] baweaver: ACTION tinkers with ways of getting that count
[00:05:39] baweaver: What plugin type did ruboto use again?
[00:05:45] apeiros: I could get it through ruboto. but it'd be more effort than what I'm willing to invest.
[00:05:53] apeiros: it's a cinch bot
[00:06:08] atmosx: I wonder if this is an open source forum software: https://forum.middlemanapp.com
[00:06:11] atmosx: it's really nice
[00:06:34] baweaver: atmosx: DIscourse you mean?
[00:06:40] jhass: yeah, that's discourse
[00:06:42] baweaver: Rails / EmberJS
[00:06:54] atmosx: baweaver: it's discourse?
[00:07:00] baweaver: Codinghorror and his crew made it
[00:07:04] havenwood: atmosx: http://www.discourse.org/
[00:08:17] ebonics: i dont understand
[00:08:19] baweaver: Looks like something to the nature of
[00:08:26] ebonics: is it open source and they sell hosting
[00:08:45] baweaver: UserList.map(&:host).group_by(&:itself).map {|k,v| [k,v.length] }.to_h
[00:08:53] phutchins: has joined #ruby
[00:08:58] arescorpio: has joined #ruby
[00:09:11] weaksauce: ebonics what's hard to understand about that model? that's actually quite common
[00:09:20] ebonics: weaksauce, i mean i was asking if that was their model
[00:09:23] ebonics: it's not very clear
[00:09:54] weaksauce: yes, it is opensource and also hosted for money
[00:09:59] weaksauce: just like wordpress.
[00:10:19] baweaver: apeiros: See above, that should work for generics, though it could probably be more accurately compacted.
[00:10:35] apeiros: baweaver: 288 distinct nicks from freenode webinterface
[00:11:00] baweaver: fair enough then
[00:11:06] baweaver: ACTION hangs up hat on the matter
[00:11:23] apeiros: that's since 2015-04-04
[00:11:36] apeiros: now I'd have to figure how many of those got banned
[00:11:40] atmosx: night all
[00:12:08] doodlehaus: has joined #ruby
[00:13:42] Matachines: has joined #ruby
[00:13:59] zotherstupidguy: has joined #ruby
[00:14:02] miah: would be interesting data
[00:14:40] baweaver: I can only find a Ban class, not sure about a list
[00:14:47] zotherstupidguy1: has joined #ruby
[00:14:50] apeiros: miah: you can have access to it if you want
[00:15:13] baweaver: and it looks like you can just grab the username mask and cross-reference it with ban masks
[00:15:51] doublemalt__: has joined #ruby
[00:17:27] lidenskap: has joined #ruby
[00:17:33] juanpaucar: has joined #ruby
[00:17:36] bruno-: has joined #ruby
[00:17:37] jottr: has joined #ruby
[00:19:03] bruno-: has joined #ruby
[00:19:44] jbomo: has joined #ruby
[00:22:29] tubuliferous_: has joined #ruby
[00:27:57] bronson: has joined #ruby
[00:28:45] doodlehaus: has joined #ruby
[00:29:09] mjuszczak: has joined #ruby
[00:29:28] apeiros: baweaver: ok, so 13 distinct banmasks containing web/freenode vs. 288 distinct nicks using web/freenode. I don't think it's a correct way to compare, but at least it gives a bit of insight.
[00:30:42] apeiros: but getting the other bans cross-referenced with host-names used at that time is quite a lot of effort.
[00:31:02] towski_: has joined #ruby
[00:33:15] queequeg1: has joined #ruby
[00:34:59] davedev24_: has joined #ruby
[00:35:02] ddarkpassenger: has joined #ruby
[00:35:58] robustus|Off: has joined #ruby
[00:38:48] lidenskap: has joined #ruby
[00:39:16] Spami: has joined #ruby
[00:40:11] doodlehaus: has joined #ruby
[00:42:14] Maletor: has joined #ruby
[00:44:41] Deele: has joined #ruby
[00:45:42] shevy: TIOBE 2.0
[00:45:43] shevy: http://www.ryan-williams.net/hacker-news-hiring-trends/2015/may.html?compare1=Postgresql&compare2=MySQL&compare3=SQL+Server&compare4=
[00:45:51] shevy: ruby is not dead!!!
[00:48:12] nahtnam: has joined #ruby
[00:48:33] nahtnam: Hey! I have an mp3 file that I want users to be able to download. I was wondering how I can make it so that when people go to /download (sinatra), it starts the download.
[00:50:04] shevy: I assume you just define an action called "/download"
[00:50:18] shevy: get '/download' do
[00:50:30] nahtnam: shevy: Yeah, I have it defined, but im not sure how I can make the browser download the file
[00:50:38] nahtnam: Would I use send_data
[00:52:00] lidenskap: has joined #ruby
[00:52:13] Vile`: has joined #ruby
[00:52:40] nahtnam: Oh shoot. I forgot to mention something
[00:52:48] nahtnam: One sec while I type it out
[00:52:54] jgt2: has joined #ruby
[00:53:49] nahtnam: I want my sinatra app to act as a "middle man" for files. Basically I want it so that when they go to "/download", it streams data from a different url if that makes sense.
[00:54:32] nahtnam: EX: If I go to localhost:4567/download, it starts downloading this: https://rubygems.org/downloads/rails-4.2.1.gem
[00:55:25] nahtnam: Essentially I want to mask the download url so that the user cant find out what it is but let them download the file
[00:55:33] doodlehaus: has joined #ruby
[00:57:04] bruno-: has joined #ruby
[00:57:35] havenn: has joined #ruby
[00:58:48] mrchris: has joined #ruby
[00:59:48] RegulationD: has joined #ruby
[01:00:03] robbyoconnor: has joined #ruby
[01:00:31] Ox0dea: nahtnam: http://www.sinatrarb.com/intro.html#Sending%20Files
[01:00:36] pontiki: doesn't sinatra have a stream file thing?
[01:00:44] Ox0dea: You'll likely want to use `:disposition => :attachment`.
[01:00:51] navs_: he needs to retrieve the file too
[01:00:58] navs_: if he truly wants to proxy it
[01:01:27] navs_: i dont know ruby so i cant really help, i thought this was a channel about minerals
[01:02:03] Aeyrix: Not rocks?
[01:02:13] navs_: jesus christ
[01:03:14] shevy: we know a lot about minerals!
[01:03:21] shevy: they differ from one another by their chemical formula
[01:03:40] shevy: well I have to google for the more advanced ones
[01:03:46] mjuszczak: has joined #ruby
[01:03:59] miah: reminds me to spend some more time with sinatra
[01:04:02] pontiki: so by "a lot" you really mean "not much at all"
[01:04:13] shevy: oh Sapphire is also simple: Al2O3 (Aluminium oxide)
[01:04:33] miah: only thing i've dealt with sinatra with is gemgate (i have a internal fork of it, i need to clean up and release)
[01:05:13] pontiki: last thing i built in sinatra was a stubbed api gateway
[01:05:27] pontiki: then they said "it has to be in rails"
[01:05:47] nahtnam: navs_: I dont want to download the file though
[01:05:52] pontiki: "rails is our company standard"
[01:06:55] tjbiddle: has joined #ruby
[01:07:10] pontiki: i'm not bitter
[01:07:21] Aeyrix: Are you sure?
[01:07:36] nahtnam: Ox0dea: I tried send_file 'https://rubygems.org/downloads/rails-4.2.1.gem', :disposition => :attachment but it keep getting `ERR_INVALID_RESPONSE` in chrome
[01:07:44] pontiki: are you asking that question because you don't detect the sarcasm?
[01:08:02] Aeyrix: You could make a mean margaritas with all that salt. ;)
[01:08:23] Aeyrix: I like Sinatra.
[01:08:37] Aeyrix: I'm gonna give Lotus a shot for my latest project.
[01:08:57] shevy: Aeyrix is always in a good mood
[01:09:21] pontiki: i wish i had some more time to play with lotus
[01:09:41] charliesome: has joined #ruby
[01:09:43] PaulCape_: has joined #ruby
[01:09:44] navs_: nahtam you're gonna download it just maybe not explicitly
[01:09:53] Aeyrix: Last time I played with it, it wasn't a full framework yet.
[01:09:56] miah: lotus looks interesting too
[01:09:57] navs_: does ruby have a way to get a filehandle from a uri maybe
[01:10:03] navs_: you can pass that to send_file
[01:10:04] miah: but ya, thats what i heard too; not quite complete
[01:10:09] navs_: instead of the uri directly
[01:10:12] pontiki: Aeyrix: is it ready for prime time now?
[01:10:13] navs_: would make more sense
[01:10:24] Aeyrix: pontiki: Allegedly!
[01:10:30] Aeyrix: Guess we'll find out.
[01:10:51] pontiki: cool! let us (or at least me) know how it goes? when i first saw it, i was intrigued
[01:11:05] pontiki: i may have to quit work so i can play with more stuff
[01:11:18] navs_: found some guy on the internets doing a send_file open('uri')...
[01:11:36] navs_: makes more sense than what you're doing
[01:11:50] navs_: and i dont even know ruby so that says something
[01:11:59] nahtnam: So basically the situation im in is that I have an api key to a site with a bunch of free credit. I want to let people to download files from the site (which I pay for) but I dont want to release the api key. Therefor I need the download url to be masked
[01:12:10] nahtnam: (My api key is in the download url)
[01:12:10] chiel_: has joined #ruby
[01:12:13] navs_: you're proxying
[01:12:25] navs_: you're gonna dl the file to your host and serve it
[01:12:33] navs_: try the open(..) thing
[01:12:36] navs_: itll prob work
[01:13:18] nahtnam: navs_: Open thing?
[01:13:26] pontiki: you might want to use a stream in this case of proxying than the send_file. it might work ok for small unchunked things, but large files like mp3s and such might not
[01:13:28] sivoais_: has joined #ruby
[01:13:47] nahtnam: pontiki: Some of the files are mp3s so....
[01:13:58] navs_: nahtnam yea opening()'ing to get an actual file like object
[01:14:04] kies^: has joined #ruby
[01:14:11] blazes816: has joined #ruby
[01:14:12] navs_: not just passing a remote resource
[01:14:17] navs_: and expecting it to work
[01:14:22] pontiki: Kernel#open can be extended to read URLs with the open-uri stdlib
[01:14:23] navs_: or listen to this guy
[01:14:28] nahtnam: But wont that download the file?
[01:14:38] tskogberg: has joined #ruby
[01:14:38] navs_: you have to download the file
[01:14:39] A124: has joined #ruby
[01:14:40] tercenya: has joined #ruby
[01:14:41] nahtnam: I dont want to download the file
[01:14:41] Aeyrix: Absolutely disgusting.
[01:14:52] BTRE: has joined #ruby
[01:14:52] navs_: i dont want to pay my rent
[01:14:57] eregon: has joined #ruby
[01:14:58] navs_: but turns out theres reality
[01:15:03] Guest238: has joined #ruby
[01:15:05] pontiki: then there's squatting
[01:15:06] Brock: has joined #ruby
[01:15:07] Aeyrix: Yeah I'm trying to think.
[01:15:28] phutchins: has joined #ruby
[01:15:30] Aeyrix: Tbh you don't have much choice without downloading the file mate.
[01:15:30] nahtnam_: has joined #ruby
[01:15:37] nahtnam_: For some reason irccloud stopped working
[01:15:38] Aeyrix: Unless you set up a reverse proxy.
[01:15:45] navs_: he has to download the file, the remote host wont serve it up w/out his api key and he doesnt want to give it up
[01:15:49] Aeyrix: That'll be because it's garbage
[01:15:52] nahtnam_: I would appreciate it if someone pastes the previous messages
[01:15:57] doodlehaus: has joined #ruby
[01:16:02] helpa: Check your logs. Namely everything in the log folder of your rails app and the error and access logs from Apache or whatever else you're using.
[01:16:03] helpa: It's Log, Log, it's big, it's heavy, it's wood. It's Log, Log, it's better than bad, it's good!
[01:16:08] scpike: has joined #ruby
[01:16:14] ruboto: I don't know anything about logs
[01:16:17] iamninja: has joined #ruby
[01:16:20] ruboto: I don't know anything about log
[01:16:23] cranq: has joined #ruby
[01:16:24] Aeyrix: Listen ruboto
[01:16:28] csaunders: has joined #ruby
[01:16:28] Aeyrix: You're pushing your luck
[01:16:30] navs_: nahtnam_: summary was you have to download the file
[01:16:39] navs_: you dont need to persist it on disk or anything
[01:16:45] pontiki: i thought helpa would know
[01:17:04] nahtnam_: navs_: Oh ok. There is no way around this?
[01:17:11] navs_: not for your use case
[01:17:15] rvchangue: has joined #ruby
[01:17:18] DynamicMetaFlow: has joined #ruby
[01:17:23] navs_: the remote host wont serve the file up w/out your api key right
[01:17:30] navs_: and you never want the client to have it
[01:17:32] nahtnam_: navs_: What if I want to use something like <audio> or <video> tags and stream it. Would it be possible then?
[01:17:38] nahtnam_: I could limit it to mp3s and mp4s
[01:17:40] navs_: from the remote host?
[01:17:44] navs_: to the client
[01:17:46] pontiki: this is why you want to look at streaming in sinatra
[01:17:51] navs_: that requires your api key
[01:17:51] nahtnam_: navs_: through my proxy
[01:17:56] pontiki: and that's the last i'll offer that
[01:18:17] nahtnam_: pontiki: You mentioned something about streaming. Will that work for mp3s and mp4s
[01:18:46] pontiki: why would it care about the content of the data?
[01:19:11] navs_: we hold these truths to be self evident
[01:19:14] nahtnam_: I just dont want to release my api key. Thats all that matters
[01:19:19] Takle: has joined #ruby
[01:19:22] mcpierce`: has joined #ruby
[01:19:43] ljarvis: has joined #ruby
[01:19:52] tskogber1: has joined #ruby
[01:19:56] Aeyrix: I feel like you're breaking the provider's terms of use here.
[01:20:02] pontiki: streaming doesn't care what you're sending through it. why should it care whether it's an mp3, mp4, the entire google catalog, or an endless stream of random bits?
[01:20:32] Royalb15: has joined #ruby
[01:20:46] nahtnam_: pontiki: Can you link me to the sinatra or rails docs for streaming?
[01:20:59] nahtnam_: Is it this: http://sinatra.rubyforge.org/api/classes/Sinatra/Streaming.html?
[01:21:07] pontiki: not any faster than you can find it. there's an example on the main page
[01:21:36] x1337807x: has joined #ruby
[01:22:02] pontiki: what do *you* think?
[01:22:25] x1337807x: has joined #ruby
[01:22:30] Oog: has joined #ruby
[01:23:05] sivoais: has joined #ruby
[01:23:24] x1337807x: has joined #ruby
[01:24:10] fredsir_: has joined #ruby
[01:24:14] x1337807x: has joined #ruby
[01:24:33] zenguy_pc: has joined #ruby
[01:24:53] AlexRussia: has joined #ruby
[01:25:04] x1337807x: has joined #ruby
[01:27:02] doublemalt__: has joined #ruby
[01:28:52] bronson: has joined #ruby
[01:29:05] lidenskap: has joined #ruby
[01:29:16] concave: has joined #ruby
[01:30:18] A124: has joined #ruby
[01:30:43] fabrice31: has joined #ruby
[01:32:11] iwishiwerearobot: has joined #ruby
[01:32:13] iamninja: has joined #ruby
[01:33:07] sivoais: has joined #ruby
[01:34:38] baweaver: has joined #ruby
[01:36:02] Channel6: has joined #ruby
[01:36:20] mordocai: has joined #ruby
[01:36:29] darkf: has joined #ruby
[01:37:27] horsecowdog: has joined #ruby
[01:37:31] sent1nel: has joined #ruby
[01:38:21] Aeyrix: There's a letter from the department of justice
[01:38:32] Aeyrix: for the previous tenant of this house :^)
[01:39:27] gusrub: has joined #ruby
[01:40:24] jpfuentes2: has joined #ruby
[01:41:51] xxneolithicxx: hope u didnt open it
[01:42:34] xxneolithicxx: the guardians of the mail might come and charge u for opening mail thats not urs lol
[01:43:32] xxneolithicxx: i dont understand some people.. you move you file a change of address. how hard is it.
[01:43:54] xxneolithicxx: I got my house and i still get mail for previous owner like 2 yrs later
[01:43:55] ramfjord: has joined #ruby
[01:44:08] xxneolithicxx: (young dumb kid but still)
[01:44:37] Maletor: has joined #ruby
[01:45:19] jottr: has joined #ruby
[01:46:48] dopieee: has joined #ruby
[01:48:58] mrchris: is there a difference between `bundle` and `bundle install` ?
[01:51:43] pontiki: not really
[01:52:25] pontiki: xxneolithicxx: there's a limit on how long the USPS will forward mail, some they don't forward at all
[01:52:34] charliesome: has joined #ruby
[01:53:06] pontiki: some people are happy to not get some mail forwarded
[01:53:59] pontiki: the previous tenant of Aeyrix's house might be quite pleased to be overlooked by the DoJ
[01:54:03] pontiki: for a while, anyway
[01:57:51] miah: guh. i had a problem with mail forwarding
[01:58:05] shevy: https://www.python.org/dev/peps/pep-0484/
[01:58:11] shevy: they copy nim!
[01:58:12] miah: because the previous tenant had the same last name as me and forwarded '* johnson'
[01:58:16] shevy: def greeting(name: str) -> str:
[01:58:31] miah: and so all mail to me was forwarded to them and the usps couldn't exclude my mail
[01:58:34] miah: anwaysy =)
[01:59:04] Rollabunna: has joined #ruby
[01:59:19] shevy: I kindly forward spam to other people!
[02:00:17] miah: back to the spammer?
[02:01:02] shevy: I think most of these are from bots and sripts anyway
[02:06:26] juanpaucar: has joined #ruby
[02:09:16] bkxd: has joined #ruby
[02:10:43] tubuliferous: has joined #ruby
[02:12:12] Aeyrix: xxneolithicxx: Didn't open it.
[02:12:18] Aeyrix: Says DoJ on front, and has previous tenant's name.
[02:12:30] Aeyrix: As a general rule I refuse to open mail that isn't correctly addressed to me.
[02:12:54] zotherstupidguy1: has joined #ruby
[02:15:12] shevy: "Dear Madam Aeyrix"
[02:15:43] shevy: "Please transfer 1000$ to Lahore, India"
[02:17:08] tyfighter: has joined #ruby
[02:17:08] Aeyrix: do the needful
[02:18:03] dopie: has joined #ruby
[02:18:40] zotherstupidguy: has joined #ruby
[02:21:07] shevy: hmm ruby cgi ... I have something like
[02:21:18] shevy: foo.cgi and I invoke it via: foo.cgi?status
[02:21:29] shevy: the resulting params seems to be a hash: {"status"=>[]}
[02:21:40] shevy: I wonder why that is an (apparently empty) array though
[02:23:55] Aeyrix: IIRC charliesome wrote one.
[02:23:57] Aeyrix: It's on Gh
[02:24:24] gizmore: shevy: .... status.nil?
[02:24:26] djbkd: has joined #ruby
[02:28:15] Feyn: has joined #ruby
[02:28:22] swgillespie: has joined #ruby
[02:28:25] mordocai: has joined #ruby
[02:29:59] sdk: has joined #ruby
[02:32:14] jenrzzz: has joined #ruby
[02:36:24] commondream: has joined #ruby
[02:36:26] mjuszczak: has joined #ruby
[02:39:00] commondream: has joined #ruby
[02:39:38] Tux_007__: has joined #ruby
[02:40:14] commondream: has joined #ruby
[02:45:03] bronson: has joined #ruby
[02:46:07] zotherstupidguy: has joined #ruby
[02:46:28] zotherstupidguy1: has joined #ruby
[02:46:54] hakunin: has joined #ruby
[02:48:44] RegulationD: has joined #ruby
[02:49:18] _seanc_: has joined #ruby
[02:50:28] ProLoser: has joined #ruby
[02:51:28] ProLoser: so i'm trying to use the haml cli
[02:53:03] ProLoser: how do i have it run through multiple files and output multiple files?
[02:58:48] MatthewsFace: has joined #ruby
[02:59:17] ebbflowgo: has joined #ruby
[03:00:00] _seanc_: has joined #ruby
[03:02:22] mattwildig: has joined #ruby
[03:03:34] shevy: # cgi/session.rb - session support for cgi scripts
[03:03:40] shevy: # Copyright (C) 2001 Yukihiro "Matz" Matsumoto
[03:03:45] shevy: # Documentation: William Webber (william@williamwebber.com)
[03:04:19] shevy: this is old code...
[03:04:20] shevy: class Session
[03:04:27] shevy: def Session::callback(dbman)
[03:04:39] shevy: that is quite atypical right? these days, we'd use self.callback or?
[03:07:34] zotherstupidguy: has joined #ruby
[03:07:54] Rollabunna: has joined #ruby
[03:08:43] ebbflowgo: has joined #ruby
[03:11:45] commondream: has joined #ruby
[03:13:43] pontiki: self.callback is current idiom
[03:13:54] pontiki: but Session::callback is also correct
[03:16:31] eam: am I alone in thinking naming the class is more readable?
[03:17:08] commondream: has joined #ruby
[03:19:32] fabrice31: has joined #ruby
[03:20:02] pontiki: i wouldn't say it's more readable
[03:20:11] longfeet: has joined #ruby
[03:20:13] pontiki: but i think that's pretty subjective, too
[03:20:58] iwishiwerearobot: has joined #ruby
[03:21:35] pontiki: if the intent is to make it a clearer distinction that a method is a class method, there could probably a clearer way of saying that directly
[03:23:16] pontiki: is there a class_function method like the module_function method?
[03:23:52] Oog: has joined #ruby
[03:25:08] Guest12539: has joined #ruby
[03:25:50] hololeap: has joined #ruby
[03:26:23] horsecowdog: has joined #ruby
[03:27:01] braincrash: has joined #ruby
[03:28:19] michael_mbp: has joined #ruby
[03:29:06] Matachines: has joined #ruby
[03:29:32] _seanc_: has joined #ruby
[03:33:25] macmarti_: has joined #ruby
[03:34:22] jottr: has joined #ruby
[03:36:58] tkuchiki: has joined #ruby
[03:37:58] shevy: class CGI; $CGI_ENV = ENV
[03:38:01] shevy: this code scares me
[03:38:44] sethetter: has joined #ruby
[03:39:15] shevy: pontiki hmm don't think there is
[03:39:27] shevy: can you use module_function in a class there?
[03:39:47] pontiki: that would be even more confusing, i think
[03:39:59] pontiki: "why does this class have a module function?!!"
[03:40:07] vikaton: has joined #ruby
[03:40:14] lavros: has joined #ruby
[03:40:21] pontiki: i'm not advocating for anything
[03:40:38] pontiki: for me, self and Class:: are clear enough
[03:42:15] djbkd: has joined #ruby
[03:42:37] shevy: we call "def foo" in a class a method
[03:42:45] shevy: so using module_function would be doubly weird
[03:42:52] Ox0dea: has joined #ruby
[03:43:28] mroark: has joined #ruby
[03:44:39] The_Phoenix: has joined #ruby
[03:44:40] tubuliferous: has joined #ruby
[03:45:07] r4pha: has joined #ruby
[03:45:20] macmartine: has joined #ruby
[03:46:02] The_Phoenix: has joined #ruby
[03:48:45] bkxd: has joined #ruby
[03:49:17] mroark: has left #ruby: ()
[03:49:38] swgillespie: has joined #ruby
[03:53:20] chinmay_dd: has joined #ruby
[03:55:24] juanpaucar: has joined #ruby
[03:59:31] tubuliferous_: has joined #ruby
[04:00:15] zzing: has joined #ruby
[04:00:37] zzing: has left #ruby: ()
[04:04:56] shevy: `xrandr` does not work in .cgi files? :(
[04:06:05] shevy: "Can't open display"
[04:06:54] nubyruby: has joined #ruby
[04:07:19] nubyruby: Will someone clarify exactly what's happening here? http_basic_authenticate_with name: "dhh", password: "secret", except: [:index, :show]
[04:08:03] nubyruby: does that call the method with a single param, which is a hash with 3 key/val pairs?
[04:08:25] nubyruby: Or does it call the method with 3 params?
[04:08:33] nubyruby: Pretty sure it's the first.
[04:12:53] Tux_007__: i just started tutorials on ruby on rails
[04:13:02] Tux_007__: i was wondering how long it would take to capitalize off my skills
[04:13:14] Tux_007__: i live in dallas where ruby developers are in demand
[04:13:17] Palmer11: has joined #ruby
[04:14:35] chinmay_dd: has joined #ruby
[04:19:04] The_Phoenix: has joined #ruby
[04:19:54] vikaton: has joined #ruby
[04:19:58] Ox0dea: nubyruby: Your intuition is operationally correct, but realize that you can destructure the "hash" in all sorts of ways by varying the method signature.
[04:21:04] nubyruby: Ox0dea, understood, thanks. I made a param tester method to verify.
[04:21:24] Ox0dea: nubyruby: Do you know about required arguments and **kwargs?
[04:21:56] nubyruby: Ox0dea, I know about required args. Is the 2nd item also called a splat?
[04:22:17] nubyruby: I'm familiar with splats, though iirc those were * rather than **
[04:22:36] Ox0dea: Right, "**" only consumes the "keyword: arguments".
[04:22:58] mrsolo: has joined #ruby
[04:23:06] sevenseacat: has joined #ruby
[04:23:33] speakingcode: has joined #ruby
[04:23:41] nubyruby: Ox0dea, didn't follow you on that one.
[04:25:42] towski_: has joined #ruby
[04:26:15] ereslibre: has joined #ruby
[04:27:10] charliesome: has joined #ruby
[04:27:12] Ox0dea: nubyruby: Are you using 2.0+?
[04:28:57] bronson: has joined #ruby
[04:31:38] nubyruby: Ox0dea, yes
[04:32:30] nubyruby: are you saying * will consume any # of params, but ** will pick out only the hash-style params?
[04:33:06] bronson: has joined #ruby
[04:35:29] _seanc_: has joined #ruby
[04:35:35] nubyruby: Ox0dea, thanks for the info, have to jet unfortunately.
[04:36:56] shevy: Tux_007__ the rails guys are on #rubyonrails
[04:37:05] shevy: many people here on #ruby do not know rails
[04:37:37] RegulationD: has joined #ruby
[04:43:26] lidenskap: has joined #ruby
[04:43:32] eam: what's rails
[04:43:52] miah: its what a train rides on
[04:45:23] baweaver: has joined #ruby
[04:46:14] tkuchiki: has joined #ruby
[04:51:34] zotherstupidguy1: has joined #ruby
[04:53:04] st1gma: has joined #ruby
[04:54:40] lavros: has joined #ruby
[04:55:36] Ropeney: has joined #ruby
[04:56:53] oli: has joined #ruby
[04:57:03] sudog: has joined #ruby
[04:57:40] Cache_Money: has joined #ruby
[04:59:54] Guest70145: I just installed ruby on windows 8, using "gem install rails". Everything seemed to go fine. Then when i try to run ..."rails new myapp" I get a runtime error:
[04:59:55] Guest70145: rbreadline.rb:1097:in `<module:RbReadline>': HOME environment variable (or HOMEDRIVE and HOMEPATH) must be set and point to a directory (RuntimeError)
[05:00:02] Guest70145: can somebody help?
[05:03:29] prostitute: has joined #ruby
[05:04:59] shuber_: has joined #ruby
[05:05:05] Ox0dea: has left #ruby: ("WeeChat 1.2-rc1")
[05:07:01] wmoxam: Guest70145: Rails questions are better asked in #rubyonrails
[05:07:03] Feyn: has joined #ruby
[05:08:24] fabrice31: has joined #ruby
[05:08:31] wmoxam: Guest70145: and Rails isn't well supported under Windows, most of the user base uses OSX and/or Linux
[05:08:46] bronson: has joined #ruby
[05:09:04] Spami: has joined #ruby
[05:09:42] iwishiwerearobot: has joined #ruby
[05:14:41] charliesome: has joined #ruby
[05:15:17] horsecowdog: has joined #ruby
[05:15:56] chinmay_dd: has joined #ruby
[05:16:03] jottr: has joined #ruby
[05:20:50] swgillespie: has joined #ruby
[05:22:21] zotherstupidguy: has joined #ruby
[05:22:27] bigmac: has joined #ruby
[05:25:28] lidenskap: has joined #ruby
[05:26:25] hectortrope: has joined #ruby
[05:27:19] tubuliferous: has joined #ruby
[05:28:42] hectortrope: has joined #ruby
[05:29:29] zotherstupidguy1: has joined #ruby
[05:32:07] hectortrope: has joined #ruby
[05:33:29] CloCkWeRX: has joined #ruby
[05:35:23] Takle: has joined #ruby
[05:39:02] Hijiri: has joined #ruby
[05:41:50] serivichi: has joined #ruby
[05:44:13] juanpaucar: has joined #ruby
[05:44:15] bkxd: has joined #ruby
[05:44:52] tyfighter: has joined #ruby
[05:44:54] sent1nel: has joined #ruby
[05:47:49] mordocai: has joined #ruby
[05:48:20] tubuliferous_: has joined #ruby
[05:51:05] Hijiri: has joined #ruby
[05:54:08] jack_rabbit: has joined #ruby
[05:57:39] kaspernj: has joined #ruby
[05:59:13] commondream: has joined #ruby
[06:03:00] lolmaus: has joined #ruby
[06:04:49] zotherstupidguy: has joined #ruby
[06:05:14] zotherstupidguy1: has joined #ruby
[06:07:36] Rubie: has joined #ruby
[06:07:38] shuber_: has joined #ruby
[06:08:19] michael_mbp: has joined #ruby
[06:10:53] dfockler: has joined #ruby
[06:13:35] rippa: has joined #ruby
[06:20:05] Hijiri: has joined #ruby
[06:20:20] yeticry: has joined #ruby
[06:21:47] zotherstupidguy1: has left #ruby: ("WeeChat 1.2")
[06:22:06] ebbflowgo: has joined #ruby
[06:23:52] ebbflowgo: has joined #ruby
[06:24:13] jalcine: has joined #ruby
[06:25:42] thebastl: has joined #ruby
[06:26:25] RegulationD: has joined #ruby
[06:30:48] Mon_Ouie: has joined #ruby
[06:32:33] Oog: has joined #ruby
[06:37:19] hsps_: has joined #ruby
[06:38:36] sigurding: has joined #ruby
[06:43:14] baweaver: has joined #ruby
[06:43:22] tyfighter: has joined #ruby
[06:46:51] jottr: has joined #ruby
[06:53:59] sent1nel: has joined #ruby
[06:55:55] xcesariox: has joined #ruby
[06:56:30] swgillespie: has joined #ruby
[06:57:01] fabrice31: has joined #ruby
[06:58:35] iwishiwerearobot: has joined #ruby
[07:00:37] doodlehaus: has joined #ruby
[07:02:30] doodleha_: has joined #ruby
[07:04:10] horsecowdog: has joined #ruby
[07:04:23] doodlehaus: has joined #ruby
[07:06:10] Takle: has joined #ruby
[07:06:21] doodleha_: has joined #ruby
[07:08:14] doodlehaus: has joined #ruby
[07:08:22] bluOxigen: has joined #ruby
[07:10:13] doodleha_: has joined #ruby
[07:12:06] doodlehaus: has joined #ruby
[07:13:12] mandarinkins: has joined #ruby
[07:13:59] doodlehaus: has joined #ruby
[07:15:54] doodlehaus: has joined #ruby
[07:16:47] tyfighter: has joined #ruby
[07:17:53] doodlehaus: has joined #ruby
[07:19:47] doodlehaus: has joined #ruby
[07:21:40] doodleha_: has joined #ruby
[07:23:34] doodlehaus: has joined #ruby
[07:23:57] User458764: has joined #ruby
[07:25:00] AndChat-359961: has joined #ruby
[07:25:31] doodleha_: has joined #ruby
[07:26:17] Timba-as: has joined #ruby
[07:27:26] doodlehaus: has joined #ruby
[07:27:58] mercerist: has joined #ruby
[07:29:06] j416: has joined #ruby
[07:29:21] doodleha_: has joined #ruby
[07:29:24] s2013: has joined #ruby
[07:31:16] doodlehaus: has joined #ruby
[07:33:08] juanpaucar: has joined #ruby
[07:33:13] doodleha_: has joined #ruby
[07:33:36] Takle: has joined #ruby
[07:33:49] Hanmac: has joined #ruby
[07:35:06] doodlehaus: has joined #ruby
[07:36:09] arietis: has joined #ruby
[07:36:58] doodlehaus: has joined #ruby
[07:37:08] tubuliferous: has joined #ruby
[07:38:54] doodlehaus: has joined #ruby
[07:40:47] doodleha_: has joined #ruby
[07:42:42] doodleha_: has joined #ruby
[07:43:27] ramfjord: has joined #ruby
[07:43:31] baweaver: Welcome new users from #ruby-lang? Odd, is that an official move now or what?
[07:44:43] doodlehaus: has joined #ruby
[07:46:35] doodleha_: has joined #ruby
[07:48:38] doodlehaus: has joined #ruby
[07:50:28] doodleha_: has joined #ruby
[07:51:37] jgt2: has joined #ruby
[07:52:20] doodlehaus: has joined #ruby
[07:52:48] Notte: has joined #ruby
[07:54:17] doodleha_: has joined #ruby
[07:54:38] sent1nel: has joined #ruby
[07:54:39] baweaver: sevenseacat: could you whack doodlehaus for connection flapping?
[07:55:53] sevenseacat: not sure how to do that
[07:56:10] doodleha_: has joined #ruby
[07:56:27] iamninja: has joined #ruby
[07:56:34] baweaver: Radar had done it once, I think the precedent was something like kick for an hour with a warning to fix connection
[07:56:38] baweaver: but you'd have to ask him
[07:57:20] baweaver: ACTION goes back to reading _Programming Scala_
[07:57:34] sevenseacat: ACTION goes back to working on R4IA
[07:57:55] baweaver: wasn't it done already and just needed typesetting / finishing?
[07:58:05] doodlehaus: has joined #ruby
[07:59:12] Zggb: has joined #ruby
[07:59:58] doodleha_: has joined #ruby
[08:01:28] sevenseacat: the proofreaders are still doing their thing and coming back with a litany of things to address
[08:01:59] doodlehaus: has joined #ruby
[08:02:06] _war10ck_: has joined #ruby
[08:02:40] jottr: has joined #ruby
[08:02:43] baweaver: Also leaving a ton of proofreading comments on Radar's book
[08:02:56] sevenseacat: he might see them eventually
[08:03:13] baweaver: I'd mentioned it to him
[08:03:38] Radar: Good afternoon.
[08:03:52] baweaver: 'evening for me
[08:03:53] doodlehaus: has joined #ruby
[08:04:19] papercode: has joined #ruby
[08:04:29] Radar: +b doodlehaus!*@*
[08:05:27] arietis: has joined #ruby
[08:05:47] doodleha_: has joined #ruby
[08:06:42] konsolebox: has joined #ruby
[08:07:36] bkxd: has joined #ruby
[08:08:17] unshadow: has joined #ruby
[08:09:16] shuber_: has joined #ruby
[08:09:35] doodleha_: has joined #ruby
[08:09:40] platzhirsch: has joined #ruby
[08:15:23] RegulationD: has joined #ruby
[08:15:25] doodleha_: has joined #ruby
[08:16:45] last_staff: has joined #ruby
[08:18:10] sevenseacat: ACTION now goes back to reading Programming Elixir
[08:18:49] mandarinkins: has joined #ruby
[08:22:03] Peteykun: has joined #ruby
[08:23:05] doodleha_: has joined #ruby
[08:23:27] wildroman2: has joined #ruby
[08:23:52] mandarinkins: has joined #ruby
[08:24:04] sandelius: has joined #ruby
[08:28:48] doodleha_: has joined #ruby
[08:30:40] i8igmac: has joined #ruby
[08:31:29] rickmasta: has joined #ruby
[08:32:38] doodleha_: has joined #ruby
[08:34:12] yeticry: has joined #ruby
[08:36:30] doodleha_: has joined #ruby
[08:38:26] doodleha_: has joined #ruby
[08:39:21] bkxd_: has joined #ruby
[08:42:18] doodleha_: has joined #ruby
[08:42:46] Aeyrix: oh lol that was a while ago
[08:44:04] Aeyrix: Had to write PHP today.
[08:44:14] Aeyrix: Every time I went afk and came back I'd start writing Ruby again.
[08:44:46] jsaak: has joined #ruby
[08:45:37] sevenseacat: even after four years of writing nearly-exclusively ruby, i still find myself thinking in php methods on occasion
[08:45:59] fabrice31: has joined #ruby
[08:46:06] doodleha_: has joined #ruby
[08:46:40] Aeyrix: Burned into your mind hey? :P
[08:47:19] iwishiwerearobot: has joined #ruby
[08:51:51] doodleha_: has joined #ruby
[08:52:17] Takle: has joined #ruby
[08:52:23] i8igmac: has joined #ruby
[08:53:02] horsecowdog: has joined #ruby
[08:55:43] doodleha_: has joined #ruby
[08:56:20] arietis: has joined #ruby
[08:56:28] sigurding: has joined #ruby
[08:57:36] doodleha_: has joined #ruby
[09:01:26] doodleha_: has joined #ruby
[09:02:16] simpyll: has joined #ruby
[09:03:55] Jackneill: has joined #ruby
[09:05:20] doodleha_: has joined #ruby
[09:06:03] exadeci: has joined #ruby
[09:09:40] n008f4g_: has joined #ruby
[09:10:01] tyfighter: has joined #ruby
[09:11:05] bmalum: has joined #ruby
[09:13:06] i8igmac: has joined #ruby
[09:13:15] lidenskap: has joined #ruby
[09:14:44] Spami: has joined #ruby
[09:16:40] Timba-as: has joined #ruby
[09:16:48] doodleha_: has joined #ruby
[09:18:26] jottr: has joined #ruby
[09:20:36] doodleha_: has joined #ruby
[09:20:46] Alina-malina: has joined #ruby
[09:22:09] juanpaucar: has joined #ruby
[09:22:18] nahtnam: Hey. I have a really weird string: https://gist.github.com/nahtnam/ea4e62d9d40a04911f4b I was wondering how I can get the hash at the end of the code
[09:22:24] nahtnam: The hash is always different
[09:22:30] nahtnam: but I think it is always the same length
[09:22:50] jenrzzz: has joined #ruby
[09:23:16] codeitagile: has joined #ruby
[09:23:57] CloCkWeRX: has joined #ruby
[09:24:28] doodleha_: has joined #ruby
[09:25:01] sevenseacat: thats not valid HTML
[09:25:16] sevenseacat: (when not escaped)
[09:25:26] jhass: lines.last.split.first
[09:25:54] jhass: or maybe [1], I never remember
[09:25:56] tubuliferous: has joined #ruby
[09:26:58] jhass: -b *!~lnr@*$##ruby-fix-your-connection
[09:27:11] alphaatom: has joined #ruby
[09:27:27] nahtnam: jhass: I was actually able to remove all of the weird characters. Now I just need to remove all letters except the last 40. Any idea how to do that?
[09:27:46] sevenseacat: "weird characters"?
[09:28:06] jhass: nahtnam: do you need the rest of the string without the entities?
[09:28:19] doodleha_: has joined #ruby
[09:28:32] nahtnam: jhass: No, I just need the last 40 letters
[09:28:50] nahtnam: I already removed the weird entities with gsub
[09:29:06] nahtnam: I did @hash = @hash.to_s.gsub!(/[^0-9A-Za-z]/, '') and @hash = @hash.chop.chop
[09:29:24] nahtnam: sevenseacat: Sorry. I removed the beautiful html entities
[09:29:45] jhass: what about my suggestion instead of all that
[09:30:45] Aeyrix: nahtnam: Are you scraping a private torrent tracker?
[09:30:54] nahtnam: Aeyrix: Nope, a public one
[09:30:57] sevenseacat: just thepiratebay
[09:31:16] nahtnam: jhass: ".split(//).last(5).join"?
[09:31:27] Aeyrix: /^[0-9a-f]{40}$/i
[09:31:29] jhass: no, that's not what I wrote
[09:31:31] nahtnam: Ill try "ines.last.split.first"
[09:31:33] Aeyrix: That'll get you the hash.
[09:31:57] jhass: yeah, assuming they'll never change it to include a counterfeit
[09:32:21] Aeyrix: Any other solution here is just as vulnerable to DOM modification.
[09:32:28] Aeyrix: There's no API for TPB.
[09:32:32] sevenseacat: ACTION wonders why the HTML is invalid
[09:32:42] jhass: sevenseacat: really?
[09:33:28] zotherstupidguy: has joined #ruby
[09:33:33] jhass: I'm rather surprised if I find valid HTML somewhere these days..
[09:34:10] simpyll: has joined #ruby
[09:35:31] Aeyrix: nahtnam: Seriously
[09:35:40] Aeyrix: @hash.scan(/[a-f0-9/i)
[09:36:26] nahtnam: Aeyrix: "/home/nahtnam/Desktop/jammytime/app/controllers/song_controller.rb:12: premature end of char-class: /[a-f0-9/i"
[09:36:27] bkxd: has joined #ruby
[09:36:38] jhass: <!-- foolstrytoparsemystuffhahahahahahahahaha -->
[09:36:46] Aeyrix: nahtnam: https://takethis.link/faqzx8tlxneq
[09:36:51] sevenseacat: he copied the syntax error and all
[09:37:13] Aeyrix: My fault - syntax error.
[09:37:21] Aeyrix: /[a-f0-9]/i
[09:37:23] Aeyrix: Forgot the closing ].
[09:37:41] sevenseacat: ACTION knows what is coming next
[09:37:48] Aeyrix: sevenseacat: ?
[09:38:01] Aeyrix: Alternatively, nahtnam: Use something like BeautifulSoup.
[09:38:04] Aeyrix: Wait, that's Python.
[09:38:06] Aeyrix: Nokogiri *
[09:38:08] nahtnam: sevenseacat: "undefined method `scan' for #<Nokogiri::XML::NodeSet:0x000000064f7d28>"
[09:38:23] nahtnam: Thats what you were waiting for right?
[09:38:28] Aeyrix: Undoubtedly.
[09:38:28] sevenseacat: wasnt what i was expecting, but that works too.
[09:38:32] Aeyrix: I came in without context. My apologies.
[09:38:35] Aeyrix: to_s.scan
[09:38:36] Aeyrix: should work
[09:40:11] Andriamanitra: has joined #ruby
[09:41:07] nahtnam: Aeyrix: That returns https://gist.github.com/nahtnam/9aafe02c4ed75492c16e
[09:41:20] Aeyrix: ... I have physically no answer for that.
[09:41:50] Aeyrix: Mainly because while I'm aware that regex is wrong
[09:41:50] sevenseacat: also not what i was expecting, but XD
[09:41:53] Aeyrix: it would still be
[09:42:03] Aeyrix: sevenseacat: The incorrect regex is what you're waiting for yeah? :P
[09:42:10] Aeyrix: Yeah I don't... what the hell?
[09:42:17] Aeyrix: nahtnam: Can you paste your code please?
[09:42:41] Aeyrix: I have this working np in irb, as I showed before.
[09:42:48] nahtnam: Aeyrix: https://gist.github.com/nahtnam/6909fc23a6ca8b3cd846
[09:42:49] Aeyrix: works4me (tm)
[09:43:06] nahtnam: Aeyrix: Where params[:name] is "Talk Dirty"
[09:43:23] sent1nel: has joined #ruby
[09:43:53] Andriamanitra: hey guys any idea why cant i require 'tk' in ruby 2.2.0? works fine in 1.9.3
[09:44:09] sevenseacat: Andriamanitra: dunno, why can't you?
[09:44:24] Andriamanitra: honestly i have no clue
[09:44:32] sevenseacat: do your hands cramp up when you try?
[09:44:44] Aeyrix: sevenseacat: Keyboard converts to Dvorak.
[09:44:46] sevenseacat: oh i know, your computer explodes.
[09:44:51] Andriamanitra: "cannot load such file"
[09:44:57] Andriamanitra: thank you irb that was very helpful
[09:45:00] sevenseacat: Andriamanitra: show us the code and the error.
[09:45:02] Aeyrix: nahtnam: https://gist.github.com/anonymous/808010006f78380cd6a3
[09:45:19] Aeyrix: nahtnam: "should work (tm)"
[09:45:24] Aeyrix: if it doesn't, I'm fresh out of ez ideas.
[09:45:36] Andriamanitra: literally just typed "require 'tk'" into irb and got LoadError: cannot load such file -- tk
[09:45:38] Aeyrix: fwiw all solutions presented will have the same issues if TPB modifies their markup.
[09:45:48] sevenseacat: Aeyrix: its for a hackathon, it doesnt matter.
[09:45:51] nahtnam: Aeyrix: Doesnt work (tm)
[09:45:55] nahtnam: Yeah, its a one day thing
[09:45:56] Aeyrix: nahtnam: God dammit.
[09:46:02] Aeyrix: This works fine for me and that aggravates me.
[09:47:13] nahtnam: Aeyrix: params[:name] = talk%20dirty
[09:47:33] Aeyrix: I don't have the libs you do.
[09:47:42] Aeyrix: That snippet of code isn't enough for me to rebuilt the program.
[09:48:06] sevenseacat: Andriamanitra: http://www.tutorialspoint.com/ruby/ruby_tk_guide.htm see installation?
[09:48:07] Aeyrix: you know that dump of markup you gave earlier?
[09:48:15] nahtnam: Aeyrix: The site is bare minimum. All you need is mechanize and uri
[09:48:16] Aeyrix: Is that directly from @hash?
[09:48:21] Andriamanitra: sevenseacat: yeah that's what i've followed
[09:48:28] sevenseacat: Andriamanitra: did you install tk?
[09:48:38] alphaatom: has joined #ruby
[09:48:41] Andriamanitra: yup, and it works just fine in 1.9.3 irb
[09:48:43] nahtnam: Aeyrix: Yeah
[09:48:46] Andriamanitra: but not in 2.2
[09:48:52] Aeyrix: [ confusion intensifies ]
[09:49:05] Andriamanitra: i wonder if i should be using specific version of activetcl or something
[09:49:14] Aeyrix: installing libs now
[09:49:30] sevenseacat: Andriamanitra: where did you install it to?
[09:49:43] Andriamanitra: the default, C:/Tcl
[09:49:58] sevenseacat: ACTION gives up, hates Windows
[09:50:39] nahtnam: Aeyrix: Recopied @hash just in case I forgot some characters
[09:50:40] nahtnam: https://gist.github.com/nahtnam/bfe0b06ad3c8987e0ff4
[09:51:06] jhass: Andriamanitra: how did you install either ruby actually?
[09:51:16] sevenseacat: i didnt think ruby 2.2 was working under windows yet.
[09:51:32] Andriamanitra: jhass: what you mean how
[09:51:41] Andriamanitra: jhass: i had ruby before activetcl, is that a problem?
[09:52:00] jhass: maybe, I don't know enough about the possible installation methods on windows and their conditions
[09:52:08] sevenseacat: yeah theres no devkit out for 2.2
[09:52:10] bkxd: has joined #ruby
[09:53:02] Aeyrix: nahtnam: Even with your code, it works perfectly.
[09:53:09] Andriamanitra: soo i should just use older version?
[09:53:10] nahtnam: Aeyrix: What about this: https://gist.github.com/nahtnam/6c3024d672e35f7aa976
[09:53:11] sevenseacat: rubyinstaller recommends ruby 2.1.6.
[09:53:16] nahtnam: Will it work on that
[09:53:52] Aeyrix: For me.https://takethis.link/y98hym1bz9t
[09:53:56] Aeyrix: https://takethis.link/y98hym1bz9t *
[09:55:27] mercerist: has joined #ruby
[09:55:57] Andriamanitra: ah actually there's a checkbox in the installer for "Install Tcl/Tk support"
[09:55:58] nahtnam: Aeyrix: Yay! I got the same thing! Now I just have to remove the [" on both sides
[09:56:05] Andriamanitra: I must've missed that when I installed
[09:56:15] Aeyrix: nahtnam: Before you try anything
[09:56:19] Aeyrix: think about what [ and ] define.
[09:56:27] Spami: has joined #ruby
[09:56:50] Aeyrix: it's a single-element array.
[09:57:18] nahtnam: Aeyrix: Cant I just gsub?
[09:57:41] Aeyrix: If you do
[09:57:43] Aeyrix: scan()[0]
[09:58:02] Aeyrix: As in, at the end of the scan, not a new scan() method.
[09:58:05] Aeyrix: But it's an array, you can't gsub those off because they don't exist in the string.
[09:58:12] Aeyrix: They're just there for your own viewing pleasure.
[09:58:17] nahtnam: Aeyrix: Ohh. I see what you are saying
[09:58:59] Somnium: has joined #ruby
[09:59:15] Spami: has joined #ruby
[09:59:56] Aeyrix: ;-; work tomorrow
[10:00:00] Aeyrix: i've only just gotten used to the weekend
[10:00:19] sevenseacat: because you still were at work yesterday and im surprised youre not there now
[10:00:27] keen_________: has joined #ruby
[10:00:48] Aeyrix: I was doing university assignments today.
[10:00:59] sevenseacat: university. i remember that.
[10:01:30] Takle: has joined #ruby
[10:01:35] sigurding: has joined #ruby
[10:02:45] Aeyrix: So do I, unfortunately. :(
[10:02:48] Aeyrix: I'm so close to quitting.
[10:04:16] RegulationD: has joined #ruby
[10:04:48] sevenseacat: I very very nearly quit in my second year. i'm quite glad i didnt.
[10:06:00] sjums: I dropped out on 2. of 3 years. Started another, shorter educations as web developer, and scored a job immediately after. Now 3 years later I'm still at that place :)
[10:06:04] sjums: Was a good choice!
[10:08:06] Aeyrix: I'm already employed full-time though, and have been for two years.
[10:08:33] Aeyrix: ... 3, actually.
[10:09:12] jottr: has joined #ruby
[10:10:40] iamninja: has joined #ruby
[10:10:43] bkxd: Aeyrix: where are you working / studying?
[10:10:48] Aeyrix: Melbourne.
[10:11:20] shuber_: has joined #ruby
[10:11:29] bkxd: Aeyrix: my home town. i mean which company / subject though
[10:12:21] Aeyrix: I won't give out the company directly, but it's in information security.
[10:12:26] Aeyrix: I study network design and security.
[10:12:26] sevenseacat: ACTION has a CS degree from melbourne uni
[10:12:27] Aeyrix: It's garbage.
[10:13:34] bkxd: do you work in consultancy or at an asx300 company?
[10:13:39] Takle: has joined #ruby
[10:13:41] bkxd: just curious as I'm interested in working in infoesc
[10:14:31] Aeyrix: I worked at a fortune
[10:14:34] Aeyrix: now I work at a consultancy.
[10:14:46] bkxd: interesting work? good comp?
[10:14:50] Aeyrix: Consultancy is more fun (imo) - the work never stays the same.
[10:14:52] Aeyrix: Absolutely.
[10:15:20] bkxd: i thought it could be fun to try infosec at booz. i wonder if you need to be a genius level iq though
[10:20:33] Aeyrix: Booz got bought out by my old work.
[10:20:40] Aeyrix: In Australia.
[10:23:55] bronson: has joined #ruby
[10:24:07] ych_: has joined #ruby
[10:26:43] lidenskap: has joined #ruby
[10:27:49] bkxd: Deloitte?
[10:28:10] bkxd: anyway mate sounds like youre in a good spot
[10:28:36] gizless: has joined #ruby
[10:29:59] OrbitalKitten: has joined #ruby
[10:34:45] fabrice31: has joined #ruby
[10:36:04] iwishiwerearobot: has joined #ruby
[10:37:41] bkxd: has joined #ruby
[10:41:53] horsecowdog: has joined #ruby
[10:43:25] SouL_|_: has joined #ruby
[10:46:50] blueOxigen: has joined #ruby
[10:47:26] Ilyes512: has joined #ruby
[10:53:58] sent1nel: has joined #ruby
[11:02:45] dorei: has joined #ruby
[11:03:30] _blizzy_: has joined #ruby
[11:03:58] Aeyrix: Weird, Tempfile#unlink isn't deleting the file on the filesystem.
[11:04:44] arup_r: has joined #ruby
[11:06:16] iasoon: has joined #ruby
[11:08:11] Somnium: has joined #ruby
[11:10:55] juanpaucar: has joined #ruby
[11:12:29] shuber_: has joined #ruby
[11:14:10] matchaw: has joined #ruby
[11:14:27] Aeyrix: welp, Sinatra and Tempfile do not play well together.
[11:14:44] tubuliferous: has joined #ruby
[11:16:28] pontiki: has joined #ruby
[11:16:42] matchaw: has joined #ruby
[11:17:02] bmalum: has joined #ruby
[11:17:35] ddarkpassenger: has joined #ruby
[11:19:51] pipework: Aeyrix: doubtful
[11:20:14] Aeyrix: pipework: I'd venture the evidence is pretty concrete.
[11:20:16] pipework: My guess is that the problem exists between the keyboard and chair, not between Sinatra and Tempfile
[11:20:28] Aeyrix: 3original
[11:20:31] sevenseacat: oh, this will be good.
[11:20:46] pipework: sevenseacat: It's starting out pretty rubbish, so it can only get better, right?
[11:21:22] kirun: has joined #ruby
[11:21:29] pipework: Aeyrix: I'm amused that you think Sinatra won't work with Tempfile. I bet it has more to do with the code you've written than either of those libraries.
[11:21:43] Aeyrix: That's nice.
[11:21:47] connor_goodwolf: has joined #ruby
[11:22:07] pipework: Ah just another waste of time. Owl go back to laughing without trying to get information to halp you with.
[11:22:18] Aeyrix: ACTION shrugs.
[11:22:20] mcpierce: has joined #ruby
[11:22:22] Aeyrix: If I wanted your help, I'd ask.
[11:22:28] Aeyrix: I've already been advised not to talk to you, though.
[11:23:10] pipework: I tend not play too nice with people like you, you're right. Good luck with whatever it is you think you're doing though. Happy hacking.
[11:23:30] Aeyrix: wow so cool
[11:23:35] Aeyrix: please add me to your ignore list
[11:23:36] pipework: I wish more people would join here and identify themselves as not worth paying attention to so quickly.
[11:24:20] Aeyrix: pipework: Launch sinatra app
[11:24:22] Aeyrix: create tempfile
[11:24:35] Aeyrix: finish responding to get request, tempfile still exists
[11:24:39] Aeyrix: send SIGTERM to sinatra
[11:24:41] Aeyrix: tempfile still exists
[11:24:53] bronson: has joined #ruby
[11:24:59] Aeyrix: in the response, there's a tempfile.close
[11:25:09] Aeyrix: and also it should be rm'd when ruby interpreter exits anyway
[11:25:16] Aeyrix: that violates both denotions on the Tempfile#close method documentation.
[11:25:25] _blizzy_: has joined #ruby
[11:25:35] Aeyrix: ??\_(???)_/??
[11:27:10] vickleton: has joined #ruby
[11:34:30] sdothum: has joined #ruby
[11:35:28] zotherstupidguy: >> x = a, b, c = 10, a, 30
[11:35:29] ruboto: zotherstupidguy # => undefined local variable or method `a' for main:Object (NameError) ...check link for more (https://eval.in/369210)
[11:35:44] sevenseacat: zotherstupidguy: IRC is not IRB.
[11:36:07] pipework: IRB-As-A-Service-Over-IRC
[11:36:19] Aeyrix: Wow that's a million dollar company right there.
[11:36:31] zotherstupidguy: sevenseacat hai, Gomen'nasai
[11:36:44] Aeyrix: pipework: pls2help then
[11:36:48] Aeyrix: if you're a wizzerd
[11:36:52] Mon_Ouie: has joined #ruby
[11:36:53] Aeyrix: No but really, do you have any idea?
[11:37:12] pipework: Aeyrix: Nahbruh, all fucks I had went out the window the second I chugged half a bottle of nyquil.
[11:37:20] pipework: Aeyrix: Can you gist up your sinatra app though?
[11:37:25] Aeyrix: Yeah on it.
[11:37:29] pipework: Owl check it out when I wake the fuck up.
[11:37:32] Aeyrix: Oh this is being served by Unicorn
[11:37:35] Aeyrix: would that affect it?
[11:37:57] pipework: Uh, you're killing the master and the child processes are being killed properly, right?
[11:38:07] pipework: That's certainly an idea.
[11:38:08] FernandoBasso: has joined #ruby
[11:38:11] zotherstupidguy: pipework kill'm all
[11:38:16] Aeyrix: SIGTERM sends SIGTERM to children.
[11:38:25] Aeyrix: But even at the end of a request, the tempfile isn't being cleaned.
[11:38:26] Aeyrix: Code inc.
[11:39:46] Aeyrix: https://gist.github.com/anonymous/c5790c498ee9ecb15491
[11:40:03] PaulePanter: has joined #ruby
[11:40:10] Aeyrix: I cleaned all the superfluous bullshit out of it. There's a lot of me experimenting with ideas in maximum haquer way atm.
[11:40:32] zotherstupidguy: ACTION thinks ascii art to irc, thats a million dollar idea
[11:41:05] Aeyrix: Shame I don't have the strum4h conversation emulation engine anymore.
[11:41:12] Aeyrix: ASCII-as-a-service.
[11:41:14] pipework: Shall putz about with this after waking from a drool-driven-slumber.
[11:41:32] Aeyrix: Can you get that in Australia
[11:42:04] pipework: Aeyrix: I'm pretty sure that if you did, you'd die because something will most definitely kill you if you're ever that off guard.
[11:42:09] pipework: sevenseacat can confirm.
[11:42:26] Aeyrix: pipework: o well
[11:42:32] Aeyrix: At least I'll have had a good nights sleep dammit.
[11:42:52] pipework: You could become a meth addict, but I would honestly suggest heroine instead.
[11:43:02] pipework: Short of that, nyquil is pretty good.
[11:43:32] Aeyrix: http://www.pizzahut.com/assets/pizzanet/home.html
[11:43:42] Aeyrix: Yeah but those are expensive, pipework.
[11:43:47] Aeyrix: 2pricey4me.
[11:44:21] zotherstupidguy: ________ _____ _ _ ______ __ _ __ __ _| |_ _ _ ___ __| |_____
[11:44:23] zotherstupidguy: (_-/ -_\ V / -_| ' \(_-/ -_/ _` / _/ _` | _| | '_/ _ / _| / (_-<
[11:44:25] zotherstupidguy: /__\___|\_/\___|_||_/__\___\__,_\__\__,_|\__| |_| \___\__|_\_/__/
[11:44:48] Aeyrix: Ban incoming.
[11:45:08] zotherstupidguy: i am sorry, i been reading deadpool comics all night, its his fault
[11:46:15] Dakuan: has joined #ruby
[11:46:56] zotherstupidguy: aeyrix wow, have you been niktoing pizzhut?
[11:48:27] arietis: has joined #ruby
[11:49:26] sandelius: has joined #ruby
[11:51:04] zotherstupidguy: aeyrix ok, a serious idea now, how about ascii art irc client, where each message is sent in ascii art, we will never get anything done !
[11:51:17] Aeyrix: figlet-over-irc
[11:51:34] shevy: that's a lot of banner-praise to sevenseacat
[11:51:39] shevy: did she deserve it?
[11:52:06] zotherstupidguy: i belive in sevenseacat, she is the voice of wisdom in the chaos of irc
[11:52:35] bigmac: has joined #ruby
[11:53:06] RegulationD: has joined #ruby
[11:53:59] bkxd: has joined #ruby
[12:01:34] matchaw: has joined #ruby
[12:03:57] zotherstupidguy: found a ruby gem artii, that generates ascii art, artii + cinch and the world is a better place for good! must try that at #bots
[12:07:32] bigmac: has joined #ruby
[12:07:54] matchaw: has joined #ruby
[12:10:09] zotherstupidguy: actually this is one way to avoid logging! there are no keywords in ascii art!
[12:10:41] matchaw: has joined #ruby
[12:11:28] zotherstupidguy: if we chat on irc using ascii art, you dudge the logging, its like anti-google ads :D
[12:11:36] Ropeney: has joined #ruby
[12:11:36] shevy: total anti NSA
[12:11:48] zotherstupidguy: analyze that ;) goodluck
[12:11:59] zotherstupidguy: no encryptions, nothing! just ascii
[12:12:59] bruno-: has joined #ruby
[12:13:17] bkxd: too bad it would take about 10m to reverse-engineer!
[12:13:33] shuber_: has joined #ruby
[12:14:33] zotherstupidguy: bkxd for a human, sure! but for a computer, not really!
[12:15:26] lidenskap: has joined #ruby
[12:15:49] bkxd: zotherstupidguy: i mean you could write an algorithm that detected the "/-\ " characters and back-solve pretty easily
[12:15:58] zotherstupidguy: its difficult, ascii art is done in many ways, many fonts, many styles, and you can write an engine in chinese or whtever
[12:17:15] shevy: chinese ascii art?
[12:17:49] bkxd: yeah what you're talking about is encryption, except it can ALSO be decrypted by visual human inspection
[12:18:23] apeiros: zotherstupidguy: while I doubt bkxd's 10min, I don't think either that it'd be too hard. detection is relatively trivial. and from there on it's just grunt work to implement a "parser" for each set of shapes
[12:19:30] apeiros: I'd be more interested in how such agencies try to break steganography
[12:20:12] qwertme: has joined #ruby
[12:20:45] bkxd: its electronic codebook 'cryptography', aka bullsh*t encryption
[12:20:47] zotherstupidguy: from what i understand form the movies, is they have somthing called full-take, which means they store EVERYTHING about EVERYONE, and got some kind of AI that raises flags, if a flag is raised then extra levels of inspections are required
[12:21:11] shevy: zotherstupidguy you've just been flagged
[12:21:27] dorei: zotherstupidguy: i think i have somewhere an unfiglet :p
[12:21:40] bkxd: what you're referring to is called PRISM
[12:21:52] zotherstupidguy: shevy i'm cute, i think i will getby =)
[12:23:11] zotherstupidguy: apeiros but i dont think its easy, machine learning is a challange,
[12:23:13] dorei: zotherstupidguy: take a look at : https://gist.github.com/egwspiti/d81db9bb7ad956b84701 to get the idea
[12:23:25] davedev24_: has joined #ruby
[12:23:29] fabrice31: has joined #ruby
[12:23:48] tomaw: has joined #ruby
[12:23:57] bronson: has joined #ruby
[12:24:47] Coldblackice: has joined #ruby
[12:24:48] dorei: zotherstupidguy: u should probably comment out lines 17 and 35, since i've got no idea where i've put the figlet.input file
[12:24:54] iwishiwerearobot: has joined #ruby
[12:26:33] zotherstupidguy: doret thanks again, i didnt know unfiglet at all!
[12:26:47] zotherstupidguy: maybe we should have figlet fridays or somthing =)
[12:27:02] zotherstupidguy: bring your figlet bot with you...
[12:27:10] spider-mario: has joined #ruby
[12:30:22] coderhut: has joined #ruby
[12:30:45] horsecowdog: has joined #ruby
[12:30:46] FernandoBasso: has joined #ruby
[12:31:57] Aswebb_: has joined #ruby
[12:34:04] davedev24_: has joined #ruby
[12:36:32] redlegion: has joined #ruby
[12:37:46] shevy: off-topic - when I have a .md file
[12:38:00] shevy: is there a way to use ruby to generate some .html representation of that? the current .md file I am looking at has some weird markups
[12:38:10] shevy: It hides the complexity of ```dlopen()```, ```dlsym()```,
[12:38:22] apeiros: yes, use one of the markdown libraries. like e.g. redcarpet
[12:39:17] jhass: interesting style, I don't think that's any valid extension
[12:39:30] jhass: standard markdown only has single ` for inline code
[12:39:44] jhass: and indent four spaces for code blocks
[12:39:44] apeiros: iirc that's github flavor
[12:40:17] jhass: GFMD and CommonMark has ``` (code fences) but not for inline code, just for blocks
[12:41:33] apeiros: ah, yeah, that might be
[12:41:38] jhass: http://johnmacfarlane.net/babelmark2/?text=It+hides+the+complexity+of+%60%60%60dlopen%28%29%60%60%60%2C+%60%60%60dlsym%28%29%60%60%60 fairly consistent output, interesting
[12:42:02] zotherstupidguy: shevy plz confirm tht ``` doesnt work inline, the rest is lazy to try.
[12:42:36] jhass: zotherstupidguy: uh, see my link
[12:42:53] shevy: zotherstupidguy inline?
[12:43:04] jhass: I expected more results in the category of cebe/markdown
[12:44:38] zotherstupidguy: shevy `oneline of code` ```a code block``` thats the github way
[12:44:41] charliesome: has joined #ruby
[12:45:27] shevy: I think the first time I used markdown was when I wrote a README.md or something like that for a gem
[12:45:45] shevy: I think I used only ... indent and * for bold... and some other component for headers
[12:46:34] shevy: I've only used kramdown so far, but for in .rb files code... now I have that standalone .md written by someone else, with those weird ``` ... they actually make it quite hard to read
[12:46:59] sevenseacat: asciidoc >>>>>> markdown btw
[12:48:00] apeiros: sevenseacat: sure? I haven't used asciidoc. what's nicer about it?
[12:48:10] sevenseacat: like.... everything
[12:48:15] sevenseacat: markdown gives me the irrits
[12:48:28] sevenseacat: we wrote all of r4ia using asciidoc
[12:50:12] Oog: has joined #ruby
[12:50:34] DEA7TH: has joined #ruby
[12:54:00] RegulationD: has joined #ruby
[12:55:05] [k-: has joined #ruby
[12:57:53] shevy: never used asciidoc before
[12:58:17] Scripore: has joined #ruby
[12:59:46] juanpaucar: has joined #ruby
[13:03:32] tubuliferous: has joined #ruby
[13:04:12] weemsledeux: has joined #ruby
[13:04:42] sent1nel: has joined #ruby
[13:06:50] lanemeyer: has joined #ruby
[13:07:15] phutchins: has joined #ruby
[13:08:12] klaas: has joined #ruby
[13:09:39] jottr: has joined #ruby
[13:12:38] _blizzy_: has joined #ruby
[13:14:52] shuber_: has joined #ruby
[13:17:02] yh__: has joined #ruby
[13:17:36] edwinvdgraaf: has joined #ruby
[13:17:37] zotherstupidguy1: has joined #ruby
[13:17:53] alphaatom: has joined #ruby
[13:18:40] tkuchiki: has joined #ruby
[13:21:17] bmalum: has joined #ruby
[13:22:03] bigmac: has joined #ruby
[13:22:05] Xiti: has joined #ruby
[13:22:18] sigurding: has joined #ruby
[13:23:54] iamninja: has joined #ruby
[13:24:29] Deck`: has joined #ruby
[13:24:52] bronson: has joined #ruby
[13:25:49] jayeshsolanki: has joined #ruby
[13:26:10] dfockler: has joined #ruby
[13:26:14] Deck`: What's the most efficient way to create pairs from one item and an array: 1 + [2,3,4] = [[1,2],[1,3],[1,4]] ?
[13:26:43] havenwood: has joined #ruby
[13:27:25] zotherstupidguy1: has joined #ruby
[13:28:15] zotherstupidguy: has joined #ruby
[13:29:35] Narzew: has joined #ruby
[13:31:11] jottr: has joined #ruby
[13:32:30] segfalt: has joined #ruby
[13:32:43] zotherstupidguy1: has left #ruby: ("WeeChat 1.2")
[13:34:00] edwinvdgraaf: has joined #ruby
[13:38:25] dorei: >> [1,1,1].zip([2,3,4])
[13:38:26] ruboto: dorei # => [[1, 2], [1, 3], [1, 4]] (https://eval.in/369238)
[13:39:28] chinmay_dd: has joined #ruby
[13:41:34] [k-: I was thinking of zip in haskell
[13:41:44] [k-: Did not know zip existed in ruby!
[13:42:13] Hanmac: >> a = [2,3,4]; [1].cycle(a.size).zip(a)
[13:42:14] ruboto: hanmac # => [[1, 2], [1, 3], [1, 4]] (https://eval.in/369241)
[13:42:26] mase-chatter: has joined #ruby
[13:42:26] keen__________: has joined #ruby
[13:42:27] HotCoder: has joined #ruby
[13:43:25] jgt: has joined #ruby
[13:47:13] robustus: has joined #ruby
[13:48:17] jhass: ACTION waits for anything that's actually shorter and more expressive than [2,3,4].map {|e| [1, e] } or [2,3,4].each_with_object(1) if it's about iterating
[13:48:56] Sembei: has joined #ruby
[13:49:13] pengin: has joined #ruby
[13:49:59] bmalum: has joined #ruby
[13:50:52] zotherstupidguy1: has joined #ruby
[13:51:23] bigmac: has joined #ruby
[13:51:34] jgt: has joined #ruby
[13:52:12] shevy: all those unix commands
[13:53:19] pokui: has joined #ruby
[13:54:57] sigurding: has joined #ruby
[13:55:55] [k-: zip is really more expressive imo, jhass
[13:57:14] wildroman2: has joined #ruby
[13:57:38] edwinvdgraaf: has joined #ruby
[13:57:57] last_staff: has joined #ruby
[13:58:13] OrbitalKitten: has joined #ruby
[14:00:35] pengin: has joined #ruby
[14:02:24] michaelr`: has joined #ruby
[14:03:05] jhass: for zipping up with a single value? just no
[14:04:14] lidenskap: has joined #ruby
[14:04:32] MyMind: has joined #ruby
[14:06:26] bogdanteleaga: has joined #ruby
[14:06:34] mjuszczak: has joined #ruby
[14:08:01] sevenseacat: i like jhass' example.
[14:08:02] DerisiveLogic: has joined #ruby
[14:09:37] Hanmac: dorei & jhass hm what about #product?
[14:09:37] Hanmac: [1].product([2,3,4])
[14:09:43] Hanmac: >> [1].product([2,3,4])
[14:09:44] ruboto: hanmac # => [[1, 2], [1, 3], [1, 4]] (https://eval.in/369259)
[14:09:52] dorei: product is the winner :)
[14:10:20] pjaspers: has left #ruby: ("Palaver http://palaverapp.com/")
[14:10:49] jhass: mh, doesn't get the "don't try to be too smart" label, but I think I wouldn't mind either variant, product or map
[14:12:18] fabrice31: has joined #ruby
[14:13:42] iwishiwerearobot: has joined #ruby
[14:14:19] bluish: has joined #ruby
[14:15:35] shuber_: has joined #ruby
[14:16:06] mjuszczak: has joined #ruby
[14:16:08] qwertme: has joined #ruby
[14:19:40] horsecowdog: has joined #ruby
[14:20:02] ponga: has joined #ruby
[14:21:05] edwinvdgraaf: has joined #ruby
[14:21:19] bigmac: has joined #ruby
[14:21:32] wildroman3: has joined #ruby
[14:24:28] lessless: has joined #ruby
[14:25:17] MasterPiece: has joined #ruby
[14:28:01] alphaatom: has joined #ruby
[14:29:06] ndrei: has joined #ruby
[14:30:33] bogdanteleaga: has joined #ruby
[14:31:29] mjuszczak: has joined #ruby
[14:31:45] CloCkWeRX: has joined #ruby
[14:32:01] bigmac: has joined #ruby
[14:32:06] alphaatom: has joined #ruby
[14:34:22] dseitz: has joined #ruby
[14:36:05] DEA7TH: has joined #ruby
[14:38:14] c_nick: has joined #ruby
[14:38:56] Darkwater: what was that irb alternative called again?
[14:39:12] c_nick: HAML has text box and a button .. when user clicks on the button i need to pass the value of text box to my ruby code, I am able to get this in JS but i dont know how i will interface HTML/HAML = Ruby
[14:39:14] mjuszczak: has joined #ruby
[14:39:21] ohcibi: has joined #ruby
[14:39:23] Darkwater: ah never mind, it's pry
[14:39:33] ndrei: has joined #ruby
[14:40:35] bogdanteleaga: has joined #ruby
[14:42:27] zotherstupidguy1: how to send colorful msg to irc?
[14:42:55] RegulationD: has joined #ruby
[14:43:58] cirn0: has joined #ruby
[14:44:46] wasamasa: please don't
[14:44:47] DLSteve: has joined #ruby
[14:44:57] wasamasa: it's annoying and if you're overdoing it, you can get kickbanned for it
[14:45:06] wasamasa: it's also why some channels did disable color codes
[14:45:42] wasamasa: including this one, yay
[14:46:35] shevy: zotherstupidguy1 in mIRC there were colour codes such as yo
[14:47:25] shevy: zotherstupidguy1 I don't remember how they were sent in IRC protocol, or whether it was a custom extension; some special character token... on my keyboard the above was strg+7, which I assume is control key + 7
[14:48:44] juanpaucar: has joined #ruby
[14:51:35] bigmac: has joined #ruby
[14:51:48] icedragon: zotherstupidguy1: If your doing it from code the escape code is: "\x03#{fg_color_code},#{bg_color_code}#{message}\x03" # "\x031,2This is how I roll with friends\x03"
[14:51:51] icedragon: hi shevy :3
[14:51:52] jhass: wasamasa: don't worry, we got +c on the channel
[14:52:04] shevy: yo IceDragon
[14:52:13] wasamasa: jhass: yup, noticed that shortly afterwards
[14:52:21] tubuliferous: has joined #ruby
[14:52:29] icedragon: shevy: Whats the latest and greatest?
[14:52:43] Cache_Money: has joined #ruby
[14:52:48] shevy: dunno... trying to fix the "No package 'wayland-egl' found" error right now
[14:53:43] icedragon: shevy: Which distro?
[14:55:32] zotherstupidguy1: has left #ruby: ("WeeChat 1.2")
[14:55:54] icedragon: shevy: such hardcore, much l33t, wow
[14:56:07] shevy: it's no problem for well-behaving programs
[14:56:33] icedragon: well behaving O:
[14:56:58] shevy: well, "egl" isn't a standalone package; and there is no "egl" configure option as part of wayland
[14:57:19] c_nick: i guess i'll just do a POST and get the stuff in my post handler
[14:58:03] platzhirsch: has joined #ruby
[14:59:26] aryaching: has joined #ruby
[15:01:57] bigmac: has joined #ruby
[15:03:57] edwinvdgraaf: has joined #ruby
[15:06:13] aryaching: has joined #ruby
[15:07:12] pokui: has joined #ruby
[15:07:16] Scripore: has joined #ruby
[15:10:22] Scripore: has joined #ruby
[15:12:58] tesuji: has joined #ruby
[15:13:45] bronson: has joined #ruby
[15:14:53] umgrosscol: has joined #ruby
[15:16:09] ebbflowgo: has joined #ruby
[15:16:35] jbomo: has joined #ruby
[15:20:09] pontiki: has joined #ruby
[15:21:18] bigmac: has joined #ruby
[15:21:29] OrbitalKitten: has joined #ruby
[15:21:45] mrchris: has joined #ruby
[15:24:27] mrchris: has joined #ruby
[15:25:31] Scripore: has joined #ruby
[15:26:27] blandflakes: has joined #ruby
[15:28:47] Dakuan: has joined #ruby
[15:29:48] bkxd: has joined #ruby
[15:31:00] vikaton: has joined #ruby
[15:31:32] wildroman2: has joined #ruby
[15:31:52] Goldfish: has joined #ruby
[15:32:59] aryaching_: has joined #ruby
[15:33:19] cirn0: has joined #ruby
[15:36:12] Hanmac: ping shevy
[15:36:37] mandarinkins: has joined #ruby
[15:36:39] OrbitalKitten: has joined #ruby
[15:37:26] tjbiddle: has joined #ruby
[15:38:48] Channel6: has joined #ruby
[15:39:43] cirn0: has joined #ruby
[15:40:21] Coraline: has joined #ruby
[15:43:58] AndChat-359961: has joined #ruby
[15:45:33] [k-: pong shevy
[15:46:14] jhass: peng shevy
[15:46:17] lidenskap: has joined #ruby
[15:46:22] mary5030: has joined #ruby
[15:47:36] phale: has joined #ruby
[15:47:43] phale: how does it feel
[15:48:43] commondream: has joined #ruby
[15:49:19] johnny_dz: has joined #ruby
[15:50:18] arietis: has joined #ruby
[15:51:14] bigmac: has joined #ruby
[15:52:59] haxrbyte: has joined #ruby
[15:54:12] phale: is this the #music channel?
[15:54:25] Scripore: has joined #ruby
[15:55:09] prostitute: has joined #ruby
[15:55:17] jhass: you got a cloak, you're clearly not too dumb to use your client. Stop trolling
[15:55:35] fedexo: has joined #ruby
[15:55:57] phale: jhass: oh hey
[15:55:59] phale: what's your name
[15:56:18] jhass: it's "You don't have to care"
[15:56:25] phale: that's a nice name, You don't have to care.
[15:57:49] tesuji: has joined #ruby
[15:57:50] moshee: has joined #ruby
[15:57:50] moshee: has joined #ruby
[16:00:00] lkba: has joined #ruby
[16:00:13] lkba_: has joined #ruby
[16:00:38] phale: why's ruby so slow
[16:01:07] fabrice31: has joined #ruby
[16:01:23] Rubie: has joined #ruby
[16:01:27] phale: well I do ruby program
[16:01:29] phale: ruby program.rb
[16:01:36] phale: and it takes like 0.9 seconds
[16:01:40] phale: that's pretty slow
[16:02:02] _blizzy_: has joined #ruby
[16:02:03] jhass: ruby program.rb 0.05s user 0.01s system 15% cpu 0.386 total
[16:02:15] phale: that's really slow
[16:02:26] iwishiwerearobot: has joined #ruby
[16:02:26] sandelius: has joined #ruby
[16:02:34] jhass: I hardly notice it
[16:03:06] jhass: no, actually I don't notice it at all, the time output seems instant
[16:03:09] phale: a C program takes 0.004 seconds
[16:03:12] phale: which is much much much faster
[16:03:29] aclapinpepin: has joined #ruby
[16:03:32] jhass: it does much much much less
[16:03:57] jhass: the fair comparison would include compiling and running it
[16:04:19] wildroman2: has joined #ruby
[16:06:00] jhass: and even then it does much less
[16:06:23] michael_mbp: has joined #ruby
[16:06:24] phale: does ruby compile the program, though?
[16:07:40] jhass: ruby --disable-gems program.rb 0.01s user 0.00s system 67% cpu 0.010 total
[16:07:43] jhass: it does parse it
[16:08:07] jhass: and transform it into an internal presentation to be interpreted by the VM
[16:08:12] phizzbuzz: has joined #ruby
[16:08:31] horsecowdog: has joined #ruby
[16:08:32] phale: jhass: interesting
[16:09:15] phale: whats the deal with gems, tho?
[16:09:20] phale: they just seem very stupid to me
[16:10:09] jhass: that's sad to hear, that you're incapable of understanding the value of being able to use libraries easily
[16:10:22] bmurt: has joined #ruby
[16:10:47] cirn0: has joined #ruby
[16:11:32] phale: it's easier to use github
[16:11:46] horsecow_: has joined #ruby
[16:12:09] phale: i can directly contribute to the repository
[16:12:46] bigmac: has joined #ruby
[16:12:49] rhg135: has joined #ruby
[16:13:14] noobQ: has joined #ruby
[16:13:14] jhass: you misunderstand gems
[16:13:40] phale: oh, do i?
[16:13:50] jhass: well, else your statement makes zero sense
[16:16:08] iamninja: has joined #ruby
[16:16:09] phale: anyways, ruby's a lot weird
[16:16:41] phale: EOF will cause an exception..
[16:17:30] shuber_: has joined #ruby
[16:17:57] DLSteve: gems are just a packages, almost every major language has a package manager now for libs.
[16:18:10] phale: c probably does but doesnt need it
[16:19:08] jhass: phale: btw I would suggest you to use less factual wording to voice your opinions, "I think that .. ", "It seems like ..." etc help a lot to keep a civil and interesting discussion
[16:19:22] phale: jhass: OKay
[16:19:34] DLSteve: No language "needs" a package manager, It is for convenience.
[16:20:15] sandelius: has joined #ruby
[16:20:31] jayeshsolanki: has joined #ruby
[16:20:33] phale: sorry for misjudging ruby
[16:21:28] bigmac: has joined #ruby
[16:22:13] Timba-as: has joined #ruby
[16:23:21] Andriamanitra: can these god damn gems work for once
[16:23:38] jottr: has joined #ruby
[16:23:49] DLSteve: has joined #ruby
[16:25:19] Andriamanitra: i can see the gem if i type "gem list --local" but requiring it fails
[16:25:31] Andriamanitra: i wish things would just work for once
[16:25:50] phale: Andriamanitra: well
[16:25:54] jhass: Andriamanitra: do you see a Gemfile ?
[16:26:00] phale: you can always install gentoo
[16:26:14] jhass: phale: don't be silly, that's completely unrelated
[16:26:17] Andriamanitra: jhass: where should it be?
[16:26:28] jhass: Andriamanitra: in your projects root
[16:26:30] phale: jhass: what do you mean? just yesterday I installed gentoo and programming in Ruby has been nothing but a breeze.
[16:26:39] phale: no errors at all, everything just works
[16:26:46] scwizard: has joined #ruby
[16:27:01] jhass: well, then whatever you used previously sucked pretty hard :P
[16:27:04] Andriamanitra: what project o_O i'm just trying it out in irb
[16:27:15] jhass: Andriamanitra: okay, what gem and how do you require it?
[16:27:16] scwizard: Hey I'm kind of a ruby noob. Does anyone know how I might loop through the IP addresses in a hash that looks like this?
[16:27:19] scwizard: {"automation"=>[{"ip"=>"192.168.32.5", "name"=>"lclcnc"}], "dns"=>[{"ip"=>"192.168.32.3", "name"=>"lcldns1"}, {"ip"=>"192.168.32.4", "name"=>"lcldns2"}], "sphinx"=>[{"ip"=>"192.168.32.6", "name"=>"lclsphinx"}], "web"=>[{"ip"=>"192.168.32.20", "name"=>"lclweb1"}, {"ip"=>"192.168.32.21", "name"=>"lclweb2"}]}
[16:27:20] phale: jhass: Debian with dwm
[16:27:26] Andriamanitra: nokogiri, require 'nokogiri'
[16:27:29] pjaspers: has joined #ruby
[16:27:34] jhass: phale: okay, yeah Debian fucks up the Ruby packages
[16:27:36] rhg135: has joined #ruby
[16:27:44] phale: jhass: no no
[16:27:48] phale: I mean my programming skills have improved
[16:28:39] jhass: Andriamanitra: okay, are you sure your irb and gem use the same Ruby version? compare gem env and RUBY_DESCRIPTION inside irb
[16:28:57] jhass: did you also try restarting irb since you installed nokogiri?
[16:29:14] scwizard: wait i just need 2 for loops right? I guess my brain no worky right now :(
[16:29:41] bronson: has joined #ruby
[16:30:00] jhass: scwizard: for is discouraged though, I'd go for .values.flatten.each do |host| host["ip"] I think
[16:30:10] phale: jhass: nah he's better off with
[16:30:14] Dakuan: has joined #ruby
[16:30:28] phale: .split.values.flatten.each.object.yes.no do |host| host["ip"].value
[16:30:53] Andriamanitra: ah they seem to be using different installations
[16:31:34] DerisiveLogic: has joined #ruby
[16:31:35] jhass: phale: nobody's laughing...
[16:31:42] sandelius: has joined #ruby
[16:31:44] phale: jhass: why would they be laughing?
[16:31:44] RegulationD: has joined #ruby
[16:32:21] bigmac: has joined #ruby
[16:32:30] Matachines: has joined #ruby
[16:35:10] phale: has left #ruby: ("Leaving")
[16:36:02] sandelius: has joined #ruby
[16:37:35] juanpaucar: has joined #ruby
[16:38:04] _seanc_: has joined #ruby
[16:39:56] lidenskap: has joined #ruby
[16:40:44] Tamae: has joined #ruby
[16:41:11] tubuliferous: has joined #ruby
[16:42:17] platzhirsch: has joined #ruby
[16:42:50] Spami: has joined #ruby
[16:48:34] scwizard: jhass: I went with something like this: http://codepad.org/qtQ8nPcd
[16:49:23] jayeshsolanki: has joined #ruby
[16:49:26] jhass: looks fine, won't raise an eyebrow ;)
[16:49:38] jhass: calling methods with :: is discouraged though
[16:50:45] amclain: has joined #ruby
[16:51:18] bigmac_: has joined #ruby
[16:51:30] jayeshsolanki: has joined #ruby
[16:53:12] rkazak_: has joined #ruby
[16:54:52] c355E3B: has joined #ruby
[16:55:21] djbkd: has joined #ruby
[16:55:46] tubuliferous: has joined #ruby
[16:57:02] systemd0wn: has joined #ruby
[16:58:14] Cache_Money: has joined #ruby
[16:58:35] casadei: has joined #ruby
[16:59:09] qwertme: has joined #ruby
[16:59:21] CustosLimen: has joined #ruby
[17:00:24] finisherr: has joined #ruby
[17:00:42] platzhirsch: has left #ruby: ()
[17:01:12] sandelius: there's always a lot of talk about inheritance vs mixins. My ideas has alwys been that required functionally, for a class, should be inherit and optional, extensions, should be included. What do you think?
[17:02:15] jhass: I think that mixins are a form of inheritance
[17:04:23] sandelius: jhass well yeah that's true but using < Parent
[17:04:56] wookiehangover: has joined #ruby
[17:05:49] bronson: has joined #ruby
[17:06:24] systemd0wn_: has joined #ruby
[17:07:03] claptor: has joined #ruby
[17:07:18] Palmer11: has joined #ruby
[17:07:22] Scripore: has joined #ruby
[17:07:26] scwizard: jhass: what other ways can they be called?
[17:07:38] jhass: scwizard: .
[17:08:09] shuber_: has joined #ruby
[17:08:18] jhass: in this example do YAML.load_file instead of YAML::load_file
[17:08:28] ramfjord: has joined #ruby
[17:08:30] ItSANgo__: has joined #ruby
[17:09:36] lala: has joined #ruby
[17:09:58] doublemalt__: has joined #ruby
[17:10:04] iWaffles: has joined #ruby
[17:10:13] mary5030: has joined #ruby
[17:11:21] tubuliferous: has joined #ruby
[17:16:21] ryanhiebert: has joined #ruby
[17:17:27] ryanhiebert: has left #ruby: ()
[17:17:35] serivichi: has joined #ruby
[17:19:01] Scripore: has joined #ruby
[17:20:59] DEA7TH: has joined #ruby
[17:22:14] jpfuentes2: has joined #ruby
[17:22:32] ohcibi_: has joined #ruby
[17:22:39] bigmac_: has joined #ruby
[17:25:39] phutchins: has joined #ruby
[17:25:41] ebonics: has joined #ruby
[17:26:11] tectonic: has joined #ruby
[17:26:25] rgb-one: has joined #ruby
[17:26:35] finisherr: has joined #ruby
[17:27:00] rgb-one: What is the effect of running bundler with root privaleges
[17:29:24] Scripore: has joined #ruby
[17:30:51] hectortrope: has joined #ruby
[17:31:09] Dakuan: has joined #ruby
[17:32:46] tyfighter: has joined #ruby
[17:33:26] tskogberg: has joined #ruby
[17:34:14] DevastatingDave: has joined #ruby
[17:34:45] zotherstupidguy: has joined #ruby
[17:35:10] jhass: uselessness, bundler will call sudo if it needs to escalate privileges
[17:35:38] bmalum: has joined #ruby
[17:36:36] hectortrope: has joined #ruby
[17:37:13] Rubie: has joined #ruby
[17:37:17] lkba: has joined #ruby
[17:37:33] rgb-one: jhass: Anything else?
[17:37:43] towski_: has joined #ruby
[17:38:16] jhass: depends, things like sudo might affect your environment
[17:38:19] ruboto: General advise in system administration: do not and that means never use sudo or root to "fix" things. Only use it if you exactly know why it would work and why it wouldn't work under any circumstances as normal user. Or if you're told to do it.
[17:39:04] rgb-one: jhass: affect it in what way?
[17:39:25] jhass: unset some variables, set others
[17:39:27] scwizard: This line: puts "".gsub(/D:\Programs\HashiCorp\Vagrant\embedded/, "")
[17:39:43] scwizard: gives me this error: D:/VagrantHome/gems/gems/vagrant-triggers-0.5.0/lib/vagrant-triggers/dsl.rb:94: warning: invalid Unicode Property \P: /D:\Programs\HashiCorp\Vagrant\embedded/
[17:40:53] scwizard: why is ruby seeing a regex that includes \P as a unicode property thing and not just text I'm confuse
[17:41:59] cirn0: has joined #ruby
[17:42:20] towski_: has joined #ruby
[17:44:52] ebonics: >> 'abc' =~ /\a/
[17:44:52] arup_r: has joined #ruby
[17:44:52] ruboto: ebonics # => nil (https://eval.in/369263)
[17:45:11] rgb-one: jhass: Thank you but the info thus far is a bit vague. Do you have any experience running bundler with sudo what did you observe happening. Explain to me like I am a child.
[17:45:50] jhass: I simply never do
[17:45:57] jhass: since there's no reason to
[17:46:12] ebonics: the reason you avoid using sudo when possible is so that you dont _always_ need root privilages
[17:46:16] ebonics: privileges *
[17:46:30] ebonics: since everything you do as root is going to cause files created etc to be owned by root
[17:46:51] ebonics: if you use sudo for everything you might aswell just use root all the time
[17:47:10] Scripore: has joined #ruby
[17:47:40] RegulationD: has joined #ruby
[17:48:01] rgb-one: ebonics: Ah. good point.
[17:48:45] arietis: has joined #ruby
[17:48:50] Scripore: has joined #ruby
[17:49:41] mtakkman: has joined #ruby
[17:49:58] fabrice31: has joined #ruby
[17:50:10] blandflakes: has joined #ruby
[17:50:37] shuber_: has joined #ruby
[17:50:51] bigmac_: has joined #ruby
[17:51:15] iwishiwerearobot: has joined #ruby
[17:53:39] centrx: has joined #ruby
[17:53:57] mandarinkin: has joined #ruby
[17:56:21] DexterLB: has joined #ruby
[17:56:48] bluOxigen: has joined #ruby
[17:56:51] chrisseaton: What do parens in a parameter list mean? e.g. def foo(a, (b, c), d) - they don't seem to destructure or anything like that
[17:58:27] Mon_Ouie: They do destructure
[17:58:50] Mon_Ouie: >> def foo(a, (b, c)); [a, [b, c]]; end; foo(1, [2, 3])
[17:58:51] ruboto: Mon_Ouie # => [1, [2, 3]] (https://eval.in/369264)
[17:59:14] crdpink: has joined #ruby
[17:59:55] ohcibi: has joined #ruby
[18:00:30] ohcibi: has joined #ruby
[18:02:01] mandarinkin: has joined #ruby
[18:02:25] rippa: has joined #ruby
[18:03:00] ArchRogem: has joined #ruby
[18:03:42] zotherstupidguy1: has joined #ruby
[18:04:53] chrisseaton: Mon_Ouie: ah right - they destructure but they'll also take a scalar and interpret it as an array with one value
[18:05:35] shevy: IceDragon tackled that wayland-egl problem; it wasn't a problem of wayland per-se but mesalib did not have egl/gles* stuff, things are working now
[18:06:13] icedragon: shevy: Yay!
[18:06:24] icedragon: shevy: You can have world domination now right?
[18:06:46] arup_r: Why this error ? https://gist.github.com/aruprakshit/67ba7c8b6c04db85978c
[18:06:47] icedragon: shevy: So far, the only distro I've seen who packages ALL egl, gles headers together is arch :O
[18:07:20] shevy: IceDragon dunno about world domination; right now I am compiling gnome3, so gtk3 past 3.14.x required that mesa build
[18:07:34] shevy: arch is unfortunately not perfect; it does not allow an appdir approach
[18:08:50] icedragon: wrong window..
[18:09:03] shevy: right window
[18:09:31] DexterLB: has joined #ruby
[18:10:07] icedragon: arup_r: Have you tried it step by step (like creating a person and trying the say, and then trying the SpeakerJob without async?)
[18:10:07] shevy: IceDragon didn't you write some advanced game in mruby?
[18:10:45] arup_r: IceDragon: yes
[18:11:01] arup_r: why your name is not TAB completable :/
[18:11:11] arup_r: anyway....... yes I did
[18:11:32] CustosLimen: has joined #ruby
[18:11:38] arup_r: IceDragon: I am following this doco -- https://github.com/brandonhilkert/sucker_punch
[18:12:01] icedragon: shevy: Yes, yes I am ;3
[18:12:07] icedragon: arup_r: I'll check it out
[18:12:22] arup_r: without async it is working
[18:12:28] arup_r: I tried......
[18:13:19] TheNet: has joined #ruby
[18:13:22] icedragon: ok lets try this locally and see what explodes in my face :O
[18:13:27] FernandoBasso: has joined #ruby
[18:13:51] elev: has joined #ruby
[18:14:16] elev: has left #ruby: ()
[18:14:18] elev: has joined #ruby
[18:14:18] icedragon: yup arup_r, I've cloned your gist locally
[18:14:34] elev: what does def means?
[18:14:37] elev: or define? in ruby
[18:14:51] arup_r: elev: def means definition.........
[18:15:00] arup_r: method definition
[18:15:11] Azure: has joined #ruby
[18:15:18] Encapsulation: has joined #ruby
[18:15:40] c_nick: My Sinatra App takes the default layout for the post quiery but does not render CSS
[18:15:47] c_nick: any idea why it does not work
[18:15:56] arup_r: c_nick: #sinatra
[18:16:25] c_nick: thanks arup_r
[18:16:27] Scripore: has joined #ruby
[18:16:42] ohcibi: has joined #ruby
[18:17:42] icedragon: arup_r: https://gist.github.com/IceDragon200/01db73fbc247eea445e8 # well that escalated quickly
[18:18:26] icedragon: all I did was: SpeakerJob.new.async.perform "Person-1 says, 'welcome!!'"
[18:18:37] arup_r: what you did? so got too long error
[18:18:39] DEA7TH: has joined #ruby
[18:18:50] arup_r: Well.....
[18:18:58] arup_r: why should throw error..
[18:19:03] arup_r: what am I missing ???
[18:19:33] icedragon: I have no idea whats going on, this thing is just fragile...
[18:19:42] wildroman2: has joined #ruby
[18:19:55] elev: has left #ruby: ()
[18:20:33] arup_r: Issue ticket...... should I log?
[18:20:41] arup_r: ur opinion......?
[18:20:56] bigmac_: has joined #ruby
[18:22:21] icedragon: arup_r: Yeah, open an issue, and ask the devs whats up, because this SHOULD work
[18:22:28] icedragon: arup_r: Otherwise, just use good old ruby threads :3
[18:23:32] arup_r: IceDragon: I have some other things which I am trying to accomplish using this Gem.. or Atleast trying to see if I can do it or not.......
[18:23:45] arup_r: have time to listen ? :)
[18:24:15] ArchRogem: has joined #ruby
[18:24:43] atmosx: has joined #ruby
[18:24:54] ndrei: has joined #ruby
[18:26:03] mandarinkin: has joined #ruby
[18:26:28] juanpaucar: has joined #ruby
[18:28:08] Mattias__: has joined #ruby
[18:29:57] tubuliferous: has joined #ruby
[18:31:11] arietis: has joined #ruby
[18:31:40] Dakuan: has joined #ruby
[18:32:13] shevy: nobody has time!
[18:32:15] shevy: this is the modern era
[18:34:30] shevy: I feel so alone in the ruby-GUI world...
[18:35:13] arup_r: what's that ?
[18:35:45] shuber_: has joined #ruby
[18:36:01] Cork: has joined #ruby
[18:36:35] scwizard: has left #ruby: ()
[18:37:01] prostitute: has left #ruby: ()
[18:37:45] hsps__: has joined #ruby
[18:38:13] Takle: has joined #ruby
[18:38:20] pandaant: has joined #ruby
[18:38:27] NokiaFan: has joined #ruby
[18:39:59] zotherstupidguy1: has joined #ruby
[18:40:04] soulcake: has joined #ruby
[18:40:12] nettoweb: has joined #ruby
[18:40:18] zotherstupidguy: has joined #ruby
[18:40:43] Guest54801: has joined #ruby
[18:40:48] sepp2k: has joined #ruby
[18:40:59] icedragon: shevy: GUI, SHAME
[18:43:04] icedragon: shevy: REAL MEN USE THE CONSOLE
[18:43:08] icedragon: arup_r: I just learned something, add a sleep after the `50.times` block and it will work just fine, the gem is meant to run in the background with your regular process
[18:43:10] icedragon: arup_r: What bothers me though, I didn't find a method for awaiting/joining the background threads with the current
[18:43:45] apeiros: wow, I'm so lucky not to be a real man
[18:44:09] mandarinkin: has joined #ruby
[18:44:18] shevy: IceDragon yeah I do so too, but I want to combine both
[18:44:55] adaedra: apeiros: JOIN THE CONSOLE USERS
[18:45:46] icedragon: apeiros: HERETIC!
[18:46:00] apeiros: IceDragon: ZEALOT!
[18:46:10] swgillespie: has joined #ruby
[18:46:22] apeiros: btw, your capslock is stuck
[18:46:26] adaedra: It's below the <Tab> key
[18:46:36] shevy: the most useless key of all times
[18:46:53] spider-mario: has joined #ruby
[18:47:07] shevy: it's interesting that, after all those years, we mostly tend to use the generic keyboards... qwerty/qwertz variants
[18:47:17] icedragon: apeiros: surprising I used shift ;x
[18:47:27] icedragon: I'm thinking of making capslock load up firefox >.>
[18:47:29] atmosx: has joined #ruby
[18:48:13] ndrei: has joined #ruby
[18:48:19] Neomex: has joined #ruby
[18:49:35] marr: has joined #ruby
[18:49:54] rkazak: has joined #ruby
[18:50:56] blandflakes: has joined #ruby
[18:50:57] bigmac_: has joined #ruby
[18:51:08] _seanc_: has joined #ruby
[18:51:20] mercerist: has joined #ruby
[18:52:28] dfockler: has joined #ruby
[18:52:51] Scripore: has joined #ruby
[18:53:23] atmosx: ACTION Los Lobos - We Belong Together
[18:53:42] dreinull75: how can I do % operations with hex values? Like 33%10 => 3
[18:53:54] shevy: this does not seem to be hex?
[18:54:07] Mon_Ouie: Just like that though
[18:54:08] dreinull75: no, thats int
[18:54:25] dreinull75: "\0x33"%"\0xf"
[18:54:27] aryaching: has joined #ruby
[18:55:00] Mon_Ouie: Those are strings, if you have an integer you can just do 0x33 % 0xf
[18:55:24] dreinull75: oh, the 0 was wrong
[18:55:41] Mon_Ouie: "\0x33" is a 4-byte strings so I'm not sure what it's even meant to mean
[18:55:50] atmosx: dreinull75: why would you wanna do that?
[18:55:52] icedragon: dreinull75: If you have a HEX string, you can use String#to_i(16) to convert it to an Integer
[18:56:49] icedragon: dreinull75: Otherwise, ruby has 0xYOUR_HEX_VALUE eg. 0x7F198732
[18:56:58] dreinull75: IceDragon I have some weird "crypto" sh??$%. Someone tried to be smart and reverse strings: s becomes | for example
[18:57:24] icedragon: dreinull75: Sounds familiar, I forgot the name of the crypto method
[18:57:37] dreinull75: is it something known?
[18:57:43] icedragon: um.. I think it just rotates the byte values
[18:57:47] dreinull75: had to figure it out myself
[18:58:25] arup_r: I am working on Rails project.. where end user will submit a request to generate a report..... task is get files fro FTP server..... unzip it... import to DB.... export the records as per the wriiten SQL ... and then email..... after this clean the DB.. DB has only 2 tables....
[18:58:35] dreinull75: so is there some simple solution? I have to hop to the next f and subtract the last digit from that
[18:58:47] dreinull75: sorry, missing words for hex calculations
[18:58:58] icedragon: ???(?????????)???
[18:59:06] icedragon: Dunno, I don't do crypto
[18:59:16] ndrei: has joined #ruby
[18:59:27] arup_r: Now for one user it is ok.. Not able to understand how can I scale this without impacting any other user requests.... for N number of users.........
[18:59:39] arup_r: I thought I
[19:00:00] baweaver: has joined #ruby
[19:00:05] Mon_Ouie: If you want to perform numerical operations on the values of the bytes that make up a string, use string.unpack("C*") to get an array of integers
[19:00:12] Mon_Ouie: >> "foo".unpack("C*")
[19:00:13] ruboto: Mon_Ouie # => [102, 111, 111] (https://eval.in/369267)
[19:00:40] arup_r: will create a class UserReuest.. inside which I'll wrap all other taks and then submit it to the suckerpunch queue... for synchronous processing...
[19:00:50] arup_r: Am I doing it correctly..
[19:00:52] atmosx: arup_r: seriously, isn't any better way to get files?
[19:00:55] icedragon: or you could just get the bytes using #bytes
[19:01:14] arup_r: no... files are in FTP..........
[19:01:43] arup_r: for each day new files... files are zipped
[19:01:48] Takle: has joined #ruby
[19:01:51] arup_r: I have to pull those
[19:02:02] bruno-: has joined #ruby
[19:02:15] chinmay_dd: has joined #ruby
[19:02:30] baweaver: Probably best to avoid FTP
[19:02:31] Palmer11: has joined #ruby
[19:02:48] arup_r: But the point is if I submit o1 to on objects ... to suckerpunch for sync processing........ will it do synchronously.. or randomly......
[19:02:51] Hanmac: Mon_Ouie: or more readable:
[19:02:51] Hanmac: >> "foo".codepoints
[19:02:52] ruboto: hanmac # => [102, 111, 111] (https://eval.in/369268)
[19:03:07] arup_r: baweaver: I hv no choice
[19:03:31] Mon_Ouie: #bytes was the intent though, not #codepoints
[19:03:39] dreinull75: Mon_Ouie yes I know that but in order to decode I have to use hex values. Like ef => f0-f
[19:03:42] icedragon: o: hanmac has spoken
[19:03:42] icedragon: ACTION bows
[19:03:59] icedragon: dreinull75: Time to learn binary math ;3
[19:04:00] Hanmac: Mon_Ouie: yeah bytes might be better method for that (but i like codepoints too)
[19:04:03] bigmac_: has joined #ruby
[19:04:18] jbomo: has left #ruby: ()
[19:04:20] Mon_Ouie: I guess I got used to not using #bytes because it used to return an Enumerator and so I don't think of it now :p
[19:04:35] dreinull75: IceDragon well yes, next life.
[19:04:41] arup_r: I wrote a simple code.. to test.. https://gist.github.com/aruprakshit/6e1ad8e5b6664f36702f it outputs synchronously.......
[19:04:45] dreinull75: thats why we have ruby, right?
[19:04:47] icedragon: Mon_Ouie: each_byte does that now ;3
[19:04:55] arup_r: no idea.. in bigger platform what it will do.......
[19:05:13] icedragon: dreinull75: rgb((rgb24 >> 16) & 0xFF, (rgb24 >> 8) & 0xFF, rgb24 & 0xFF) #ruby
[19:05:58] icedragon: I don't even use anything beyond simple shifts, ands and ors :(
[19:06:35] arup_r: open to hear you people ideas......
[19:06:48] icedragon: arup_r: So you need to pull files from an ftp, unzip it, store the files in the database (wait why D:)
[19:06:50] dreinull75: 0x33%0xf #=> 6 ? I expect 3.
[19:07:15] Mon_Ouie: Don't forget 33 != 0x33
[19:07:22] Mon_Ouie: 0x33 is 16*3+3=51
[19:07:26] arup_r: IceDragon: yes
[19:07:40] icedragon: >> CGI.unescape("0x33%0xf")
[19:07:41] ruboto: IceDragon # => uninitialized constant CGI (NameError) ...check link for more (https://eval.in/369269)
[19:07:44] atmosx: YouTube sells movies?
[19:07:47] atmosx: I missed that.
[19:07:59] ndrei: has joined #ruby
[19:08:24] dreinull75: Mon_Ouie of course
[19:08:40] icedragon: WHY FOR THE LOVE OF RUBY CANT I EVER USE CGI CORRECTLY
[19:08:43] dreinull75: "\x33"%"\xf" #=> "3"
[19:09:03] Mon_Ouie: No, it isn't
[19:09:03] icedragon: >> 0x33 % 0xf
[19:09:04] ruboto: IceDragon # => 6 (https://eval.in/369270)
[19:09:13] Mon_Ouie: >> "\x33" % "\xf"
[19:09:14] ruboto: Mon_Ouie # => "3" (https://eval.in/369271)
[19:09:25] icedragon: o_e you kidding me right
[19:09:31] Mon_Ouie: Oh wait, misread that
[19:09:50] Mon_Ouie: But it's an operation that has nothing to do with what you're trying to do anyway
[19:09:58] Rubie: has joined #ruby
[19:10:03] Mon_Ouie: String#% is string formatting
[19:10:03] icedragon: arup_r: why exactly do you need to store them in the db?
[19:10:22] arup_r: to query the data,,,,,,,
[19:10:47] Mon_Ouie: >> "hello %s" % "world"
[19:10:48] ruboto: Mon_Ouie # => "hello world" (https://eval.in/369272)
[19:10:48] icedragon: so data >> database >> ruby >> clear database
[19:10:58] icedragon: why not: data >> ruby
[19:11:05] arup_r: https://github.com/aruprakshit/music_track/blob/master/lib/query/daily_report.rb look here
[19:11:18] c_nick: has left #ruby: ()
[19:11:27] arup_r: IceDragon: data -> Ruby was taking too much time
[19:11:35] arup_r: because CSV files are huge
[19:11:38] Mon_Ouie: that's the '%' method you use in "\x33" % "\xf", it has nothing to do with modulus
[19:11:56] _seanc_: has joined #ruby
[19:12:23] dreinull75: Mon_Ouie you're right
[19:12:58] arup_r: but postgres COPY command is fastest.......... IceDragon
[19:13:30] icedragon: can postgres import csv files?
[19:13:40] havenwood: has joined #ruby
[19:14:45] icedragon: if ruby is too slow for csv parsing, all you need is a faster csv parser instead of a full blown database which serves no other purpose but to load your csv for a one off use (and possibly queries, guess I can't beat that one ;x)
[19:16:33] ddfreyne: For doing stuff with CSVs, I found this tool to be super useful: https://github.com/BurntSushi/xsv
[19:16:40] ddfreyne: And it's fast.
[19:16:53] arup_r: IceDragon: http://www.postgresql.org/docs/9.2/static/sql-copy.html
[19:16:59] icedragon: except one thing, dats rust
[19:17:36] arup_r: All is well.. Only worried about synchronous processing......
[19:18:13] arup_r: I think Rails serves requests using multiple threads......
[19:18:16] icedragon: postgres should be thread safe, :O but don't listen to me
[19:18:18] ndrei: has joined #ruby
[19:18:35] DexterLB: has joined #ruby
[19:18:51] wildroman2: has joined #ruby
[19:19:05] arup_r: and how those threads will work for o1 to oN .. I don't know with suckerpunch
[19:21:13] icedragon: arup_r: You'll be interacting with the database via ActiveRecord which most likely, which has thread safety mechanisms in place (otherwise, wtf)
[19:21:27] arup_r: I need synchronous processing in background
[19:22:49] zotherstupidguy: has joined #ruby
[19:23:44] ndrei: has joined #ruby
[19:25:55] zipace: has joined #ruby
[19:26:12] Scripore: has joined #ruby
[19:26:45] FernandoBasso: has joined #ruby
[19:27:32] icedragon: arup_r: SuckerPunch::Job with 1 worker, it will push all the jobs into a queue and process them synchronously (in the background)
[19:28:02] arup_r: well..... i proved suckerpunch don't do synchrouns processing with multiple threads,,,,,,,,, https://gist.github.com/aruprakshit/6e1ad8e5b6664f36702f
[19:28:35] arup_r: IceDragon: didn't get you......
[19:28:53] concave: has joined #ruby
[19:29:32] ndrei: has joined #ruby
[19:30:22] Brozo: has joined #ruby
[19:30:55] edwardly: has joined #ruby
[19:30:55] edwardly: has joined #ruby
[19:31:35] shevy: you don't get the dragon
[19:31:40] shevy: he is too quick!
[19:31:49] baweaver: has joined #ruby
[19:32:09] arup_r: no he is helpful too shevy :
[19:32:29] Dakuan: has joined #ruby
[19:33:39] RegulationD: has joined #ruby
[19:34:05] ebonics: has left #ruby: ("Leaving")
[19:35:08] ebonics: has joined #ruby
[19:36:14] Narzew: has joined #ruby
[19:36:46] ebonics: has joined #ruby
[19:37:09] ArchRogem: has joined #ruby
[19:38:38] fabrice31: has joined #ruby
[19:39:10] horsecowdog: has joined #ruby
[19:40:03] iwishiwerearobot: has joined #ruby
[19:41:30] zotherstupidguy1: has joined #ruby
[19:43:08] bronson: has joined #ruby
[19:43:24] edwardly: has joined #ruby
[19:43:24] edwardly: has joined #ruby
[19:43:25] gizmore: has joined #ruby
[19:43:30] Scripore: has joined #ruby
[19:44:17] qwertme: has joined #ruby
[19:45:02] _seanc_: has joined #ruby
[19:45:18] Limix: has joined #ruby
[19:47:33] ndrei: has joined #ruby
[19:47:46] spider-mario: has joined #ruby
[19:49:06] RegulationD: has joined #ruby
[19:49:41] yqt: has joined #ruby
[19:49:52] gmind: has joined #ruby
[19:49:55] h07737: has joined #ruby
[19:50:26] gmind: would it be fun if we write Ruby as a Lisp with braces ?
[19:50:30] arup_r: IceDragon: if I set workers 1... getting error as
[19:50:34] arup_r: ERROR -- : Actor crashed!
[19:50:35] arup_r: ArgumentError: minimum pool size is 2
[19:50:45] bigmac_: has joined #ruby
[19:51:21] gmind: checkout my gem: https://rubygems.org/gems/lrb
[19:51:56] edwardly: has joined #ruby
[19:51:56] edwardly: has joined #ruby
[19:52:05] blandflakes: has joined #ruby
[19:52:44] nateberkopec: has joined #ruby
[19:53:38] Dakuan: has joined #ruby
[19:54:17] hectortrope: has joined #ruby
[19:55:00] hectortrope: has joined #ruby
[19:55:47] wasamasa: these are no braces, damnit
[19:57:07] shuber_: has joined #ruby
[19:59:26] Aswebb_: has joined #ruby
[20:00:33] jhass: it looks awful anyway
[20:00:58] miah: not very nice..
[20:01:57] edwardly: has joined #ruby
[20:01:57] edwardly: has joined #ruby
[20:02:15] ndrei: has joined #ruby
[20:03:21] einarj: has joined #ruby
[20:04:09] mengu: has joined #ruby
[20:04:53] shevy: I wonder if he was just trolling
[20:06:28] Vile`: has joined #ruby
[20:06:46] bruno-: has joined #ruby
[20:06:54] adaedra: brace yourselves
[20:07:17] shevy: ACTION braces adaedra 
[20:09:35] bigmac_: has joined #ruby
[20:09:37] greenbagels: has joined #ruby
[20:11:32] icedragon: arup_r: ahh, not sure about this one :(
[20:12:07] icedragon: arup_r: Might be worth rolling your own background worker
[20:12:08] h07737: has left #ruby: ()
[20:12:30] Takle_: has joined #ruby
[20:12:58] jhass: (they left)
[20:13:13] icedragon: jhass: shiiiieeet
[20:13:36] icedragon: IceDragon.raise PipeBroken
[20:13:41] tyfighter: has joined #ruby
[20:14:51] baweaver: has joined #ruby
[20:15:23] juanpaucar: has joined #ruby
[20:15:35] shuber_: has joined #ruby
[20:18:45] tubuliferous: has joined #ruby
[20:20:41] Scripore: has joined #ruby
[20:21:17] turtil: has joined #ruby
[20:21:44] mandarinkin: has joined #ruby
[20:22:37] jbomo: has joined #ruby
[20:23:11] woodennails: has joined #ruby
[20:23:12] mercerist: has joined #ruby
[20:23:55] woodennails: Evening guys :)
[20:24:12] neohunter: has joined #ruby
[20:24:44] woodennails: I have a job interview next week for a Junior developer job, they know i don't know Ruby, but they're taking junior developers on and cross training them onto Ruby, Anything i could say/do you guys think to prepare in advance?
[20:24:58] Rodya_: has joined #ruby
[20:25:48] lhobas: has joined #ruby
[20:27:10] Vile`: has joined #ruby
[20:27:29] mary5030: has joined #ruby
[20:28:46] apeiros: woodennails: since they know you don't know ruby - show that you're preparing to learn it
[20:30:59] davedev24_: has joined #ruby
[20:32:24] xxneolithicxx: has joined #ruby
[20:33:08] jborica: has joined #ruby
[20:33:22] woodennails: Yeah, ive been doing some stuff on codecademy :)
[20:33:48] woodennails: I've been working as a developer for a year, so i hope im gonna be okay, considering its a junior dev role
[20:34:55] bigmac_: has joined #ruby
[20:35:10] pabloh: has joined #ruby
[20:37:08] yeticry: has joined #ruby
[20:38:23] akfaew: has left #ruby: ()
[20:38:34] duderonomy: What region is this in?
[20:39:30] duderonomy: It's good to see the job market getting tighter... i presume
[20:41:55] Scripore: has joined #ruby
[20:42:29] einarj: has joined #ruby
[20:46:43] Notte: has joined #ruby
[20:46:44] davedev24: has joined #ruby
[20:47:42] shevy: what jobs!
[20:48:26] adaedra: THEY TOOK OUR JOBS
[20:49:59] balazs: has joined #ruby
[20:51:10] mandarinkin: has joined #ruby
[20:51:27] zotherstupidguy: has joined #ruby
[20:51:41] ytti: DIKKADOOOO
[20:52:17] zotherstupidguy1: has joined #ruby
[20:53:17] adaedra: (One day, I'll be able to deploy a rails app without having to lookup random things on Google)
[20:53:30] shevy: you are a rails guy
[20:53:35] ixti: has joined #ruby
[20:54:25] gkra: has joined #ruby
[20:57:28] multi_io: has joined #ruby
[21:02:24] woodennails: Its in the UK duderonomy
[21:02:49] shevy: the UK is very rails heavy
[21:03:19] mandarinkin: has joined #ruby
[21:03:25] duderonomy: hey thx. I'm in sf bay area (south bay); San Francisco is also Rails heavy.
[21:04:55] Limix: has joined #ruby
[21:05:26] A205B064: has joined #ruby
[21:06:24] duderonomy: Is there some inverse correlation btwn Rails and dense urban areas with little-to-none car park availability?
[21:07:19] tectonic: has joined #ruby
[21:10:03] einarj: has joined #ruby
[21:10:46] pbruna: has joined #ruby
[21:16:01] Scripore: has joined #ruby
[21:18:44] shuber_: has joined #ruby
[21:20:54] bigmac: has joined #ruby
[21:25:24] tjbiddle: has joined #ruby
[21:26:03] zotherstupidguy1: has left #ruby: ("WeeChat 1.2")
[21:27:36] fabrice31: has joined #ruby
[21:28:50] iwishiwerearobot: has joined #ruby
[21:30:20] mary5030: has joined #ruby
[21:32:18] mrmargolis: has joined #ruby
[21:36:14] zotherstupidguy: has joined #ruby
[21:38:28] shadeslayer: has joined #ruby
[21:40:49] blandflakes: has joined #ruby
[21:41:41] Brozo_: has joined #ruby
[21:42:05] platzhirsch: has joined #ruby
[21:44:27] serivichi: has joined #ruby
[21:44:28] zreisman: has joined #ruby
[21:45:33] Scripore: has joined #ruby
[21:49:36] iWaffles: has joined #ruby
[21:50:27] ferz_: has joined #ruby
[21:52:38] balazs: what is the best way to increment a counter for a key in a hash and handle its creation ?
[21:52:55] Papierkorb: has joined #ruby
[21:53:13] balazs: something nicer than: foo[bar] ||=0; foo[bar] += 1
[21:53:57] bronson: has joined #ruby
[21:54:59] jhass: balazs: Hash.new(0)
[22:00:06] NokiaFan: has left #ruby: ()
[22:00:16] Rubie: has joined #ruby
[22:00:34] tjbiddle_: has joined #ruby
[22:01:55] irobevjodu: has joined #ruby
[22:02:04] horsecowdog: has joined #ruby
[22:04:14] juanpaucar: has joined #ruby
[22:05:53] wildroman2: has joined #ruby
[22:07:00] yh__: has joined #ruby
[22:07:34] tubuliferous: has joined #ruby
[22:08:14] turtil: has joined #ruby
[22:08:39] turtil: has joined #ruby
[22:13:31] Narzew: has joined #ruby
[22:20:08] shuber_: has joined #ruby
[22:21:27] yh__: has joined #ruby
[22:23:11] cirn0: has joined #ruby
[22:24:48] phutchins: has joined #ruby
[22:26:54] iamninja: has joined #ruby
[22:27:34] Rubie: has joined #ruby
[22:30:07] irobevjodu: has joined #ruby
[22:33:06] wildroman2: has joined #ruby
[22:33:45] _seanc_: has joined #ruby
[22:40:34] turtil: has joined #ruby
[22:41:38] blandflakes: has joined #ruby
[22:48:17] davedev24_: has joined #ruby
[22:48:34] dreinull75: btw, I found my "de/encryption" algorithm with hexadecial numbers
[22:48:40] dreinull75: >> "string".split('').map{|c| (c.codepoints[0]-(c.unpack('h')[0].hex*2-15)).chr}.join
[22:48:41] ruboto: dreinull75 # => "|{}fah" (https://eval.in/369286)
[22:57:00] wildroman2: has joined #ruby
[22:58:18] Ropeney: has joined #ruby
[22:59:33] CustosLimen: has joined #ruby
[23:00:25] vdamewood: has joined #ruby
[23:02:08] yh__: has joined #ruby
[23:03:10] granthatcher_: has joined #ruby
[23:03:23] al2o3-cr: >>"|{}fah".chars.map{|c| (c.bytes[0]-(c.unpack('h')[0].hex*2-15)).chr}.join
[23:03:24] ruboto: al2o3-cr # => "string" (https://eval.in/369287)
[23:04:36] Takle: has joined #ruby
[23:05:07] einarj_: has joined #ruby
[23:06:13] bronson: has joined #ruby
[23:10:06] powder: has joined #ruby
[23:16:30] fabrice31: has joined #ruby
[23:16:45] mjs2600_: has joined #ruby
[23:16:46] einarj: has joined #ruby
[23:17:37] iwishiwerearobot: has joined #ruby
[23:18:36] sent1nel: has joined #ruby
[23:20:38] shuber_: has joined #ruby
[23:23:49] turtil: has joined #ruby
[23:24:33] bigmac: has joined #ruby
[23:26:59] MrBeardy: has joined #ruby
[23:27:13] Coldblackice_: has joined #ruby
[23:27:49] horsecowdog: has joined #ruby
[23:28:11] davedev24: has joined #ruby
[23:34:12] iamninja: has joined #ruby
[23:35:36] DoubleMalt: has joined #ruby
[23:36:43] salmiakki1010: has joined #ruby
[23:40:05] baweaver: has joined #ruby
[23:42:10] ddarkpassenger: has joined #ruby
[23:44:54] HotCoder: has joined #ruby
[23:47:27] Synthead: has joined #ruby
[23:47:59] bronson: has joined #ruby
[23:48:18] dseitz: has joined #ruby
[23:49:33] zotherstupidguy: has joined #ruby
[23:53:16] juanpaucar: has joined #ruby
[23:53:29] bogdanteleaga: has joined #ruby
[23:53:44] millerti: has joined #ruby
[23:54:56] pdoherty: has joined #ruby
[23:56:07] tyfighter: has joined #ruby
[23:56:22] tubuliferous: has joined #ruby