apeiros changed the topic of #ruby to: Welcome new users migrating from #ruby-lang! || http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<gizmore> imho, we could start a flamewar, as it is holidays
<ebonics> honestly im not sure what the benefit of either is anymore when there's go
<ebonics> butt to each his own
<gizmore> go!
<apeiros> ebonics: why aren't you eating!
<ebonics> apeiros, i am
<ebonics> i had to go get it
<ebonics> #thai food
<gizmore> let´s all unite against php?
<apeiros> I need to figure where the heck I have an interrobang-button
<apeiros> ‽
<apeiros> hah!
<ebonics> gizmore, i still use php lol
<ebonics> i mean, php fills a role, go, rails, django etc fill another role
Deele has quit [Ping timeout: 256 seconds]
<sushimonster> django sucks? that's racist!
<ebonics> and go seems to be the best of them
<gizmore> the d is tiny
<havenwood> ?rails sushimonster
<ruboto> sushimonster, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<havenwood> ;)
<apeiros> !kick sushimonster no trolls.
sushimonster was kicked from #ruby by ruboto [no trolls.]
sushimonster has joined #ruby
<jhass> havenwood: they actually found that already
<jhass> which means...
<xxneolithicxx> every time i peek my head in that +o gets whipped out
<jhass> sushimonster: you must be really bored if you sign up just to troll. Why not do something productive?
<apeiros> !ban sushimonster !T 1d I thought I was clear with "no trolls"
sushimonster was kicked from #ruby by ChanServ [Banned: I thought I was clear with "no trolls"]
Rollabunna has quit [Ping timeout: 244 seconds]
<shevy> xxneolithicxx we have to fullfil a quota
<shevy> lol
<baweaver> We could just ban the web gateway collectively
<miah> ya the month is half way through...
qwertme has joined #ruby
<apeiros> baweaver: did you measure how many non-trolls use it?
<baweaver> Not offhand. Do you have such a number?
<apeiros> no. and as long as you don't have one, I don't think that suggestion is viable.
* baweaver tinkers with ways of getting that count
<baweaver> What plugin type did ruboto use again?
<apeiros> I could get it through ruboto. but it'd be more effort than what I'm willing to invest.
<apeiros> it's a cinch bot
<atmosx> I wonder if this is an open source forum software: https://forum.middlemanapp.com
<atmosx> it's really nice
<baweaver> atmosx: DIscourse you mean?
<jhass> yeah, that's discourse
<baweaver> Rails / EmberJS
<baweaver> and it is
<atmosx> baweaver: it's discourse?
<baweaver> Codinghorror and his crew made it
<baweaver> yeah
<havenwood> atmosx: http://www.discourse.org/
dc has quit []
<ebonics> i dont understand
<baweaver> Looks like something to the nature of
<ebonics> is it open source and they sell hosting
<baweaver> UserList.map(&:host).group_by(&:itself).map {|k,v| [k,v.length] }.to_h
phutchins has joined #ruby
arescorpio has joined #ruby
<weaksauce> ebonics what's hard to understand about that model? that's actually quite common
<ebonics> weaksauce, i mean i was asking if that was their model
<ebonics> it's not very clear
<weaksauce> yes, it is opensource and also hosted for money
<weaksauce> just like wordpress.
<baweaver> apeiros: See above, that should work for generics, though it could probably be more accurately compacted.
<apeiros> baweaver: 288 distinct nicks from freenode webinterface
<baweaver> fair enough then
* baweaver hangs up hat on the matter
<apeiros> that's since 2015-04-04
<apeiros> now I'd have to figure how many of those got banned
<atmosx> night all
<baweaver> 'night
doodlehaus has joined #ruby
zotherstupidguy has quit [Ping timeout: 244 seconds]
zotherstupidguy1 has quit [Ping timeout: 258 seconds]
atmosx has quit [Quit: parting / quiting]
phutchins has quit [Ping timeout: 265 seconds]
Matachines has joined #ruby
zotherstupidguy has joined #ruby
<miah> would be interesting data
<baweaver> I can only find a Ban class, not sure about a list
zotherstupidguy1 has joined #ruby
<apeiros> miah: you can have access to it if you want
<baweaver> and it looks like you can just grab the username mask and cross-reference it with ban masks
bruno- has quit [Quit: Lost terminal]
doublemalt__ has joined #ruby
doodlehaus has quit [Remote host closed the connection]
tubuliferous has quit [Ping timeout: 256 seconds]
lidenskap has joined #ruby
juanpaucar has joined #ruby
bruno- has joined #ruby
jottr has joined #ruby
bruno- has quit [Client Quit]
bruno- has joined #ruby
ramfjord has quit [Ping timeout: 258 seconds]
doublemalt_ has quit [Ping timeout: 265 seconds]
jbomo has joined #ruby
jottr_ has quit [Ping timeout: 240 seconds]
tjbiddle has quit [Quit: tjbiddle]
Channel6 has quit [Quit: Leaving]
bruno- has quit [Client Quit]
tubuliferous_ has joined #ruby
juanpaucar has quit [Ping timeout: 264 seconds]
queequeg1 has quit [Quit: Changing server]
SouL_|_ has quit [Remote host closed the connection]
bronson has joined #ruby
doodlehaus has joined #ruby
mjuszczak has joined #ruby
<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.
<baweaver> indeed.
<apeiros> but getting the other bans cross-referenced with host-names used at that time is quite a lot of effort.
towski_ has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
davedev2_ has quit [Ping timeout: 272 seconds]
queequeg1 has joined #ruby
doodlehaus has quit [Remote host closed the connection]
davedev24_ has joined #ruby
ddarkpassenger has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
lidenskap has quit [Remote host closed the connection]
robustus|Off has joined #ruby
towski_ has quit [Ping timeout: 272 seconds]
robustus|Off is now known as robustus
lidenskap has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
doodlehaus has joined #ruby
ddarkpassenger has quit [Quit: Textual IRC Client: www.textualapp.com]
maletor has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
Deele has joined #ruby
doodlehaus has quit [Remote host closed the connection]
<shevy> ack
<shevy> TIOBE 2.0
<shevy> ruby is not dead!!!
nahtnam has joined #ruby
lidenskap has quit [Remote host closed the connection]
<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.
jottr has quit [Ping timeout: 245 seconds]
<shevy> I assume you just define an action called "/download"
<shevy> get '/download' do
<nahtnam> shevy: Yeah, I have it defined, but im not sure how I can make the browser download the file
<nahtnam> Would I use send_data
Vile` has quit [Ping timeout: 245 seconds]
marr has quit []
FernandoBasso has quit [Quit: leaving]
lidenskap has joined #ruby
Vile` has joined #ruby
lidenskap has quit [Remote host closed the connection]
<nahtnam> Oh shoot. I forgot to mention something
<nahtnam> One sec while I type it out
jgt2 has joined #ruby
<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.
<nahtnam> EX: If I go to localhost:4567/download, it starts downloading this: https://rubygems.org/downloads/rails-4.2.1.gem
<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
doodlehaus has joined #ruby
jgt1 has quit [Ping timeout: 264 seconds]
doodlehaus has quit [Remote host closed the connection]
bruno- has joined #ruby
bruno- has quit [Client Quit]
havenn has joined #ruby
__chris has joined #ruby
robbyoconnor has quit [Max SendQ exceeded]
RegulationD has joined #ruby
havenwood has quit [Ping timeout: 265 seconds]
robbyoconnor has joined #ruby
<pontiki> doesn't sinatra have a stream file thing?
<Ox0dea> You'll likely want to use `:disposition => :attachment`.
<pontiki> that's it
<navs_> he needs to retrieve the file too
<navs_> if he truly wants to proxy it
<navs_> i dont know ruby so i cant really help, i thought this was a channel about minerals
<Aeyrix> Not rocks?
<navs_> jesus christ
<Aeyrix> :^)
<shevy> lol
mjuszczak has quit []
<shevy> we know a lot about minerals!
<shevy> they differ from one another by their chemical formula
<pontiki> we do?
<shevy> SiO2
<shevy> well I have to google for the more advanced ones
mjuszczak has joined #ruby
mjuszczak has quit [Client Quit]
<miah> reminds me to spend some more time with sinatra
<pontiki> so by "a lot" you really mean "not much at all"
RegulationD has quit [Ping timeout: 250 seconds]
<shevy> oh Sapphire is also simple: Al2O3 (Aluminium oxide)
<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)
maletor has quit [Quit: Computer has gone to sleep.]
<Aeyrix> Si?
<pontiki> last thing i built in sinatra was a stubbed api gateway
<pontiki> then they said "it has to be in rails"
<miah> lol
<Aeyrix> Heh
<nahtnam> navs_: I dont want to download the file though
<pontiki> "rails is our company standard"
tjbiddle has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pontiki> i'm not bitter
<Aeyrix> Are you sure?
<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
<pontiki> are you asking that question because you don't detect the sarcasm?
<Aeyrix> You could make a mean margaritas with all that salt. ;)
<pontiki> indeed
<Aeyrix> I like Sinatra.
<Aeyrix> I'm gonna give Lotus a shot for my latest project.
<shevy> Aeyrix is always in a good mood
<pontiki> i wish i had some more time to play with lotus
bkxd has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
PaulCape_ has joined #ruby
<navs_> nahtam you're gonna download it just maybe not explicitly
<Aeyrix> Last time I played with it, it wasn't a full framework yet.
<miah> lotus looks interesting too
<navs_> does ruby have a way to get a filehandle from a uri maybe
<navs_> you can pass that to send_file
<miah> but ya, thats what i heard too; not quite complete
<navs_> instead of the uri directly
<pontiki> Aeyrix: is it ready for prime time now?
<navs_> would make more sense
<Aeyrix> pontiki: Allegedly!
<Aeyrix> Guess we'll find out.
<pontiki> cool! let us (or at least me) know how it goes? when i first saw it, i was intrigued
<pontiki> i may have to quit work so i can play with more stuff
<navs_> found some guy on the internets doing a send_file open('uri')...
<navs_> try that
<navs_> makes more sense than what you're doing
<navs_> and i dont even know ruby so that says something
<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
<nahtnam> (My api key is in the download url)
chiel_ has joined #ruby
<navs_> you're proxying
<navs_> you're gonna dl the file to your host and serve it
<navs_> try the open(..) thing
<navs_> itll prob work
<nahtnam> navs_: Open thing?
<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
sivoais_ has joined #ruby
<nahtnam> pontiki: Some of the files are mp3s so....
<navs_> nahtnam yea opening()'ing to get an actual file like object
kies^ has joined #ruby
blazes816 has joined #ruby
<navs_> not just passing a remote resource
<navs_> and expecting it to work
<pontiki> Kernel#open can be extended to read URLs with the open-uri stdlib
<navs_> or listen to this guy
<nahtnam> But wont that download the file?
AlexRussia has quit [Ping timeout: 264 seconds]
zenguy_pc has quit [Ping timeout: 264 seconds]
nateberkopec has quit [Read error: Connection reset by peer]
PaulCapestany has quit [Ping timeout: 264 seconds]
tskogberg has joined #ruby
chiel has quit [Ping timeout: 264 seconds]
tcrypt has quit [Ping timeout: 264 seconds]
Guest27857 has quit [Ping timeout: 264 seconds]
kies has quit [Ping timeout: 264 seconds]
A124 has quit [Ping timeout: 264 seconds]
rvchangue has quit [Ping timeout: 264 seconds]
sivoais has quit [Ping timeout: 264 seconds]
BTRE has quit [Ping timeout: 264 seconds]
eregon has quit [Ping timeout: 264 seconds]
csaunders has quit [Ping timeout: 264 seconds]
doublemalt__ has quit [Ping timeout: 264 seconds]
scpike_ has quit [Ping timeout: 264 seconds]
ljarvis has quit [Ping timeout: 264 seconds]
tskogberg has quit [Ping timeout: 264 seconds]
<navs_> yes
<navs_> you have to download the file
A124 has joined #ruby
tercenya has joined #ruby
<nahtnam> I dont want to download the file
<Aeyrix> Absolutely disgusting.
<navs_> ok
BTRE has joined #ruby
<navs_> i dont want to pay my rent
eregon has joined #ruby
<navs_> but turns out theres reality
Guest238 has joined #ruby
<pontiki> then there's squatting
Brock has joined #ruby
<Aeyrix> Yeah I'm trying to think.
phutchins has joined #ruby
<Aeyrix> Tbh you don't have much choice without downloading the file mate.
cranq has quit [Ping timeout: 264 seconds]
tercenya_ has quit [Ping timeout: 264 seconds]
awwaiid has quit [Ping timeout: 264 seconds]
nahtnam_ has joined #ruby
<nahtnam_> For some reason irccloud stopped working
<Aeyrix> Unless you set up a reverse proxy.
<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
<Aeyrix> That'll be because it's garbage
<nahtnam_> I would appreciate it if someone pastes the previous messages
doodlehaus has joined #ruby
doodlehaus has quit [Remote host closed the connection]
<pontiki> !logs
<pontiki> !log
<pontiki> dammit
scpike has joined #ruby
<nahtnam_> Got it
<Aeyrix> ?logs
<ruboto> I don't know anything about logs
iamninja has joined #ruby
<Aeyrix> ?log
<ruboto> I don't know anything about log
cranq has joined #ruby
<Aeyrix> Listen ruboto
csaunders has joined #ruby
<Aeyrix> You're pushing your luck
<navs_> nahtnam_: summary was you have to download the file
<navs_> you dont need to persist it on disk or anything
<pontiki> i thought helpa would know
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<nahtnam_> navs_: Oh ok. There is no way around this?
<navs_> not for your use case
rvchangue has joined #ruby
DynamicMetaFlow has joined #ruby
<navs_> the remote host wont serve the file up w/out your api key right
<navs_> and you never want the client to have it
<nahtnam_> navs_: What if I want to use something like <audio> or <video> tags and stream it. Would it be possible then?
<nahtnam_> I could limit it to mp3s and mp4s
<navs_> from the remote host?
<navs_> to the client
<pontiki> this is why you want to look at streaming in sinatra
<navs_> that requires your api key
<nahtnam_> navs_: through my proxy
<pontiki> and that's the last i'll offer that
<nahtnam_> pontiki: You mentioned something about streaming. Will that work for mp3s and mp4s
<pontiki> why would it care about the content of the data?
<nahtnam_> pontiki: ?
iwaffles has quit [Quit: iwaffles]
<navs_> we hold these truths to be self evident
<nahtnam_> I just dont want to release my api key. Thats all that matters
Takle has joined #ruby
mcpierce` has joined #ruby
_seanc_ has quit [Quit: _seanc_]
ljarvis has joined #ruby
tskogber1 has joined #ruby
<Aeyrix> I feel like you're breaking the provider's terms of use here.
<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?
tubuliferous_ has quit [Ping timeout: 265 seconds]
mordof has quit [Quit: Leaving]
baweaver has quit [Remote host closed the connection]
Royalb15 has joined #ruby
<nahtnam_> pontiki: Can you link me to the sinatra or rails docs for streaming?
iamninja has quit [Ping timeout: 256 seconds]
<pontiki> not any faster than you can find it. there's an example on the main page
sivoais_ has quit [Read error: Connection reset by peer]
x1337807x has joined #ruby
<pontiki> *sigh*
x1337807x has quit [Max SendQ exceeded]
<pontiki> what do *you* think?
x1337807x has joined #ruby
oo_ has joined #ruby
x1337807x has quit [Max SendQ exceeded]
sivoais has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
Takle has quit [Ping timeout: 245 seconds]
fredsir_ has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
zenguy_pc has joined #ruby
AlexRussia has joined #ruby
x1337807x has joined #ruby
doublemalt__ has joined #ruby
A124 has quit [*.net *.split]
tskogberg has quit [*.net *.split]
mcpierce has quit [*.net *.split]
CpuID has quit [*.net *.split]
fredsir has quit [*.net *.split]
bronson has joined #ruby
lidenskap has joined #ruby
concave has joined #ruby
lidenskap has quit [Remote host closed the connection]
A124 has joined #ruby
sivoais has quit [Ping timeout: 244 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fabrice31 has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
A124 is now known as Guest12539
iwishiwerearobot has joined #ruby
iamninja has joined #ruby
dorei has quit []
sivoais has joined #ruby
bronson has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
Channel6 has joined #ruby
mordocai has joined #ruby
darkf has joined #ruby
iwishiwerearobot has quit [Ping timeout: 240 seconds]
<shevy> test
horsecowdog has joined #ruby
sent1nel has joined #ruby
<Aeyrix> Hah
<Aeyrix> There's a letter from the department of justice
<Aeyrix> for the previous tenant of this house :^)
gusrub has joined #ruby
jpfuentes2 has joined #ruby
<xxneolithicxx> hope u didnt open it
horsecowdog has quit [Ping timeout: 244 seconds]
<xxneolithicxx> the guardians of the mail might come and charge u for opening mail thats not urs lol
<xxneolithicxx> i dont understand some people.. you move you file a change of address. how hard is it.
<xxneolithicxx> I got my house and i still get mail for previous owner like 2 yrs later
ramfjord has joined #ruby
<xxneolithicxx> (young dumb kid but still)
maletor has joined #ruby
jottr has joined #ruby
dopieee has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<__chris> is there a difference between `bundle` and `bundle install` ?
dopie has quit [Ping timeout: 258 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
charliesome has quit [Quit: zzz]
jottr has quit [Ping timeout: 265 seconds]
<pontiki> not really
<pontiki> xxneolithicxx: there's a limit on how long the USPS will forward mail, some they don't forward at all
charliesome has joined #ruby
<pontiki> some people are happy to not get some mail forwarded
oo_ has quit [Remote host closed the connection]
<pontiki> the previous tenant of Aeyrix's house might be quite pleased to be overlooked by the DoJ
<pontiki> for a while, anyway
zotherstupidguy has quit [Ping timeout: 256 seconds]
blazes816 has quit []
Soda has quit [Remote host closed the connection]
<miah> guh. i had a problem with mail forwarding
<shevy> ack
<shevy> they copy nim!
<miah> because the previous tenant had the same last name as me and forwarded '* johnson'
<shevy> def greeting(name: str) -> str:
<miah> and so all mail to me was forwarded to them and the usps couldn't exclude my mail
<miah> anwaysy =)
Rollabunna has joined #ruby
<shevy> I kindly forward spam to other people!
Royalb15 has quit [Quit: Leaving]
Agoldfish has quit [Quit: G'Bye]
<miah> back to the spammer?
<shevy> I think most of these are from bots and sripts anyway
Rollabunna has quit [Ping timeout: 244 seconds]
juanpaucar has joined #ruby
mordocai has quit [Remote host closed the connection]
bkxd has joined #ruby
tubuliferous has joined #ruby
juanpaucar has quit [Ping timeout: 255 seconds]
zotherstupidguy1 has quit [Ping timeout: 252 seconds]
charliesome has quit [Quit: zzz]
<Aeyrix> xxneolithicxx: Didn't open it.
<Aeyrix> Says DoJ on front, and has previous tenant's name.
<Aeyrix> As a general rule I refuse to open mail that isn't correctly addressed to me.
zotherstupidguy1 has joined #ruby
jgt2 has quit [Ping timeout: 250 seconds]
<shevy> "Dear Madam Aeyrix"
tubuliferous has quit [Ping timeout: 258 seconds]
<shevy> "Please transfer 1000$ to Lahore, India"
nahtnam_ has quit [Quit: Page closed]
tyfighter has joined #ruby
<Aeyrix> do the needful
baweaver has quit [Remote host closed the connection]
dopie has joined #ruby
zotherstupidguy has joined #ruby
dopieee has quit [Ping timeout: 256 seconds]
<shevy> hmm ruby cgi ... I have something like
<shevy> foo.cgi and I invoke it via: foo.cgi?status
<shevy> the resulting params seems to be a hash: {"status"=>[]}
<shevy> I wonder why that is an (apparently empty) array though
n008f4g_ has quit [Ping timeout: 245 seconds]
<Aeyrix> IIRC charliesome wrote one.
<Aeyrix> It's on Gh
<gizmore> shevy: .... status.nil?
djbkd has joined #ruby
Feyn has joined #ruby
swgillespie has joined #ruby
mordocai has joined #ruby
swgillespie has quit [Client Quit]
djbkd has quit [Ping timeout: 256 seconds]
sdk has joined #ruby
Matachines has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
__chris has quit [Quit: This computer has gone to sleep]
bkxd has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
commondream has joined #ruby
mjuszczak has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
Tux_007__ has joined #ruby
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
sdk has quit [Quit: Leaving...]
bronson has joined #ruby
zotherstupidguy1 has quit [Ping timeout: 258 seconds]
zotherstupidguy has quit [Ping timeout: 264 seconds]
zotherstupidguy has joined #ruby
zotherstupidguy1 has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
hakunin has joined #ruby
davedev24_ has quit []
RegulationD has joined #ruby
_seanc_ has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
ProLoser has joined #ruby
<ProLoser> hallo
<havenn> hi
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ProLoser> so i'm trying to use the haml cli
havenn is now known as havenwood
<ProLoser> how do i have it run through multiple files and output multiple files?
RegulationD has quit [Ping timeout: 256 seconds]
j0n3 has quit [Read error: Connection reset by peer]
Feyn has quit [Ping timeout: 240 seconds]
greenbagels has quit [Quit: Leaving]
MatthewsFace has joined #ruby
ebbflowgo has joined #ruby
_seanc_ has quit [Quit: _seanc_]
_seanc_ has joined #ruby
mattwildig has joined #ruby
<shevy> # cgi/session.rb - session support for cgi scripts
<shevy> # Copyright (C) 2001 Yukihiro "Matz" Matsumoto
<shevy> # Documentation: William Webber (william@williamwebber.com)
<shevy> hehehe
ebbflowgo has quit [Client Quit]
<shevy> wow
<shevy> this is old code...
<shevy> class Session
<shevy> def Session::callback(dbman)
<shevy> that is quite atypical right? these days, we'd use self.callback or?
braincra- has quit [Quit: bye bye]
zotherstupidguy has quit [Ping timeout: 252 seconds]
zotherstupidguy has joined #ruby
Rollabunna has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ebbflowgo has joined #ruby
ninjazach has quit [Quit: LayerBNC - https://LayerBNC.org/ (Account terminated by LayerBNC Staff Team (Idle/Unused))]
hololeap has quit [Ping timeout: 256 seconds]
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
<pontiki> self.callback is current idiom
<pontiki> but Session::callback is also correct
scripore has quit [Quit: This computer has gone to sleep]
commondream has quit [Ping timeout: 246 seconds]
<eam> am I alone in thinking naming the class is more readable?
commondream has joined #ruby
fabrice31 has joined #ruby
<pontiki> i wouldn't say it's more readable
longfeet has joined #ruby
<pontiki> but i think that's pretty subjective, too
iwishiwerearobot has joined #ruby
<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
<pontiki> is there a class_function method like the module_function method?
oo_ has joined #ruby
fabrice31 has quit [Ping timeout: 246 seconds]
mattwildig has quit []
Guest12539 has joined #ruby
Guest12539 has quit [Changing host]
Guest12539 is now known as A124
iwishiwerearobot has quit [Ping timeout: 272 seconds]
hololeap has joined #ruby
horsecowdog has joined #ruby
braincrash has joined #ruby
_seanc_ has quit [Quit: _seanc_]
michael_mbp has quit [Excess Flood]
mjuszczak has quit []
michael_mbp has joined #ruby
Matachines has joined #ruby
_seanc_ has joined #ruby
horsecowdog has quit [Ping timeout: 255 seconds]
oo_ has quit [Remote host closed the connection]
macmarti_ has joined #ruby
macmartine has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
tkuchiki has joined #ruby
macmarti_ has quit [Ping timeout: 265 seconds]
<shevy> class CGI; $CGI_ENV = ENV
<shevy> this code scares me
ebbflowgo has quit [Quit: ebbflowgo]
sethetter has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
<shevy> pontiki hmm don't think there is
<shevy> can you use module_function in a class there?
<pontiki> that would be even more confusing, i think
<pontiki> "why does this class have a module function?!!"
vikaton has joined #ruby
lavros has joined #ruby
<pontiki> i'm not advocating for anything
Ox0dea has quit [Ping timeout: 258 seconds]
<pontiki> for me, self and Class:: are clear enough
pontiki has quit [Quit: Textual IRC Client: www.textualapp.com]
djbkd has joined #ruby
<shevy> well
<shevy> we call "def foo" in a class a method
<shevy> so using module_function would be doubly weird
Ox0dea has joined #ruby
prostitute has quit [Remote host closed the connection]
mroark has joined #ruby
The_Phoenix has joined #ruby
tubuliferous has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
speakingcode has quit [Ping timeout: 258 seconds]
r4pha has joined #ruby
macmartine has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
The_Phoenix has joined #ruby
commondream has quit [Remote host closed the connection]
bkxd has joined #ruby
mroark has left #ruby [#ruby]
swgillespie has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
chinmay_dd has joined #ruby
bkxd has quit [Ping timeout: 264 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
juanpaucar has joined #ruby
phutchins has quit [Ping timeout: 276 seconds]
tubuliferous_ has joined #ruby
sent1nel has quit [Remote host closed the connection]
The_Phoenix has quit [Ping timeout: 246 seconds]
zzing has joined #ruby
juanpaucar has quit [Ping timeout: 272 seconds]
zzing has left #ruby [#ruby]
tkuchiki has quit [Ping timeout: 245 seconds]
_seanc_ has quit [Quit: _seanc_]
shuber_ has quit [Remote host closed the connection]
<shevy> waaa
tubuliferous_ has quit [Ping timeout: 276 seconds]
<shevy> `xrandr` does not work in .cgi files? :(
<shevy> "Can't open display"
<shevy> hmmm
nubyruby has joined #ruby
<nubyruby> Will someone clarify exactly what's happening here? http_basic_authenticate_with name: "dhh", password: "secret", except: [:index, :show]
<nubyruby> does that call the method with a single param, which is a hash with 3 key/val pairs?
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nubyruby> Or does it call the method with 3 params?
<nubyruby> Pretty sure it's the first.
al2o3-cr is now known as kjskjndfnsnf
kjskjndfnsnf is now known as al2o3-cr
<Tux_007__> i just started tutorials on ruby on rails
<Tux_007__> i was wondering how long it would take to capitalize off my skills
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<Tux_007__> i live in dallas where ruby developers are in demand
Palmer11 has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
vikaton has quit []
The_Phoenix has joined #ruby
vikaton has joined #ruby
<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.
vikaton has quit [Client Quit]
<nubyruby> Ox0dea, understood, thanks. I made a param tester method to verify.
<Ox0dea> nubyruby: Do you know about required arguments and **kwargs?
djbkd has quit [Remote host closed the connection]
<nubyruby> Ox0dea, I know about required args. Is the 2nd item also called a splat?
<nubyruby> I'm familiar with splats, though iirc those were * rather than **
<Ox0dea> Right, "**" only consumes the "keyword: arguments".
mrsolo has joined #ruby
mrsolo has quit [Remote host closed the connection]
sevenseacat has joined #ruby
speakingcode has joined #ruby
<nubyruby> Ox0dea, didn't follow you on that one.
towski_ has joined #ruby
ereslibre has quit [Ping timeout: 272 seconds]
ereslibre has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
jsaak_ has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
<Ox0dea> nubyruby: Are you using 2.0+?
hololeap has quit [Ping timeout: 264 seconds]
macmartine has quit []
towski_ has quit [Remote host closed the connection]
bronson has joined #ruby
sudog has quit [Ping timeout: 272 seconds]
<nubyruby> Ox0dea, yes
Matachines has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<nubyruby> are you saying * will consume any # of params, but ** will pick out only the hash-style params?
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
_seanc_ has joined #ruby
<nubyruby> Ox0dea, thanks for the info, have to jet unfortunately.
nubyruby has quit [Quit: Leaving]
<shevy> Tux_007__ the rails guys are on #rubyonrails
<shevy> many people here on #ruby do not know rails
RegulationD has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
unshadow has quit [Ping timeout: 264 seconds]
The_Phoenix has quit [Ping timeout: 245 seconds]
lidenskap has joined #ruby
<eam> what's rails
<miah> its what a train rides on
baweaver has joined #ruby
tkuchiki has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
zotherstupidguy1 has quit [Ping timeout: 255 seconds]
segfalt has quit [Quit: segfalt]
zotherstupidguy1 has joined #ruby
tyfighter has quit [Quit: tyfighter]
_seanc_ has quit [Quit: _seanc_]
lidenskap has quit [Remote host closed the connection]
St1gma has joined #ruby
bronson has quit [Remote host closed the connection]
lavros has quit [Ping timeout: 264 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lavros has joined #ruby
Ropeney has joined #ruby
oli has joined #ruby
sudog has joined #ruby
oli is now known as Guest70145
Cache_Money has joined #ruby
charliesome has quit [Quit: zzz]
<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:
<Guest70145> rbreadline.rb:1097:in `<module:RbReadline>': HOME environment variable (or HOMEDRIVE and HOMEPATH) must be set and point to a directory (RuntimeError)
<Guest70145> can somebody help?
mordocai has quit [Remote host closed the connection]
prostitute has joined #ruby
shuber_ has joined #ruby
Ox0dea has left #ruby ["WeeChat 1.2-rc1"]
<wmoxam> Guest70145: Rails questions are better asked in #rubyonrails
Feyn has joined #ruby
fabrice31 has joined #ruby
<wmoxam> Guest70145: and Rails isn't well supported under Windows, most of the user base uses OSX and/or Linux
bronson has joined #ruby
Spami has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
iwishiwerearobot has joined #ruby
Guest70145 has quit [Quit: Page closed]
shuber_ has quit [Ping timeout: 252 seconds]
fabrice31 has quit [Ping timeout: 250 seconds]
iwishiwerearobot has quit [Ping timeout: 258 seconds]
charliesome has joined #ruby
horsecowdog has joined #ruby
chinmay_dd has joined #ruby
jottr has joined #ruby
tubuliferous has quit [Ping timeout: 265 seconds]
zotherstupidguy1 has quit [Ping timeout: 244 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zotherstupidguy has quit [Ping timeout: 256 seconds]
Cache_Money has quit [Quit: Cache_Money]
horsecowdog has quit [Ping timeout: 244 seconds]
swgillespie has joined #ruby
jottr has quit [Ping timeout: 276 seconds]
zotherstupidguy has joined #ruby
bigmac has joined #ruby
arescorpio has quit [Quit: Leaving.]
lidenskap has joined #ruby
nso95 has quit [Quit: nso95]
hectortrope has joined #ruby
tubuliferous has joined #ruby
hectortrope has quit [Changing host]
hectortrope has joined #ruby
zotherstupidguy1 has joined #ruby
hectortrope has quit [Client Quit]
bigmac is now known as i8igmac
hectortrope has joined #ruby
CloCkWeRX has joined #ruby
Channel6 has quit [Quit: Leaving]
Takle has joined #ruby
chinmay_dd has quit []
Spami has quit [Quit: This computer has gone to sleep]
Hijiri has joined #ruby
Takle has quit [Ping timeout: 272 seconds]
serivichi has joined #ruby
juanpaucar has joined #ruby
bkxd has joined #ruby
tyfighter has joined #ruby
sent1nel has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
serivich has quit [Ping timeout: 258 seconds]
Hijiri has quit [Ping timeout: 272 seconds]
mordocai has joined #ruby
havenwood has quit [Ping timeout: 272 seconds]
tubuliferous_ has joined #ruby
juanpaucar has quit [Ping timeout: 265 seconds]
bkxd has quit [Ping timeout: 256 seconds]
skyjumper has quit [Remote host closed the connection]
Hijiri has joined #ruby
jack_rabbit has quit [Ping timeout: 244 seconds]
tubuliferous_ has quit [Ping timeout: 272 seconds]
jack_rabbit has joined #ruby
kaspernj has joined #ruby
rubie has quit [Remote host closed the connection]
commondream has joined #ruby
lolmaus has joined #ruby
zotherstupidguy1 has quit [Ping timeout: 255 seconds]
zotherstupidguy has quit [Ping timeout: 265 seconds]
balazs has quit [Ping timeout: 265 seconds]
commondream has quit [Ping timeout: 264 seconds]
zotherstupidguy has joined #ruby
michael_mbp has quit [Excess Flood]
zotherstupidguy1 has joined #ruby
rubie has joined #ruby
shuber_ has joined #ruby
michael_mbp has joined #ruby
jack_rabbit has quit [Ping timeout: 276 seconds]
dfockler has joined #ruby
shuber_ has quit [Ping timeout: 244 seconds]
rippa has joined #ruby
dfockler has quit [Ping timeout: 264 seconds]
Hijiri has quit [Ping timeout: 252 seconds]
yeticry has quit [Ping timeout: 252 seconds]
Hijiri has joined #ruby
yeticry has joined #ruby
zotherstupidguy1 has left #ruby ["WeeChat 1.2"]
ebbflowgo has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
jalcine has joined #ruby
r4pha has quit [Quit: leaving]
thebastl has joined #ruby
RegulationD has joined #ruby
amclain has quit [Quit: Leaving]
thebastl has quit [Client Quit]
tyfighter has quit [Quit: tyfighter]
Mon_Ouie has joined #ruby
RegulationD has quit [Ping timeout: 272 seconds]
i8igmac has quit [Ping timeout: 272 seconds]
oo_ has joined #ruby
longfeet has quit [Quit: Leaving]
oo_ has quit [Ping timeout: 265 seconds]
Serifion has quit [Remote host closed the connection]
Nedfo has quit [Remote host closed the connection]
hsps_ has joined #ruby
sigurding has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
coderhs has quit [Ping timeout: 240 seconds]
Tux_007__ has quit [Quit: Connection closed for inactivity]
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
tyfighter has joined #ruby
tubuliferous has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ebonics has quit [Ping timeout: 272 seconds]
jottr has quit [Ping timeout: 255 seconds]
sent1nel has quit [Remote host closed the connection]
Xiti has quit [Read error: Connection reset by peer]
sent1nel has joined #ruby
xcesariox has joined #ruby
swgillespie has joined #ruby
fabrice31 has joined #ruby
xcesariox has quit [Client Quit]
sent1nel has quit [Ping timeout: 265 seconds]
iwishiwerearobot has joined #ruby
doodlehaus has joined #ruby
jbomo has quit [Ping timeout: 272 seconds]
fabrice31 has quit [Ping timeout: 276 seconds]
doodleha_ has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
iwishiwerearobot has quit [Ping timeout: 240 seconds]
horsecowdog has joined #ruby
doodlehaus has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
Takle has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
doodleha_ has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
bluOxigen has joined #ruby
horsecowdog has quit [Ping timeout: 245 seconds]
rubie has quit [Remote host closed the connection]
doodleha_ has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
Takle has quit [Ping timeout: 240 seconds]
HotCoder has quit [Ping timeout: 252 seconds]
doodleha_ has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
mandarinkins has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
tyfighter has quit [Quit: tyfighter]
doodlehaus has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
tyfighter has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
hanmac has quit [Ping timeout: 265 seconds]
doodlehaus has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
User458764 has quit [Ping timeout: 250 seconds]
doodleha_ has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
doodleha_ has quit [Read error: Connection reset by peer]
j416 has quit [Quit: o/]
doodlehaus has joined #ruby
User458764 has joined #ruby
AndChat-359961 has joined #ruby
mandarinkins has quit [Ping timeout: 264 seconds]
doodleha_ has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
arietis has quit [Quit: Leaving.]
Timba-as has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
mercerist has joined #ruby
j416 has joined #ruby
doodleha_ has joined #ruby
s2013 has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
doodleha_ has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
juanpaucar has joined #ruby
doodleha_ has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
Takle has joined #ruby
hanmac has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
arietis has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
tubuliferous has joined #ruby
papercode has quit [Ping timeout: 256 seconds]
juanpaucar has quit [Ping timeout: 258 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
doodlehaus has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
doodleha_ has joined #ruby
tubuliferous has quit [Ping timeout: 256 seconds]
doodleha_ has quit [Read error: Connection reset by peer]
doodleha_ has joined #ruby
ramfjord has joined #ruby
<baweaver> Welcome new users from #ruby-lang? Odd, is that an official move now or what?
doodlehaus has quit [Ping timeout: 276 seconds]
doodleha_ has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
connor_goodwolf has quit [Remote host closed the connection]
<sevenseacat> seems so.
tyfighter has quit [Quit: tyfighter]
doodleha_ has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
Palmer11 has quit [Quit: Palmer11]
doodleha_ has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
doodleha_ has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
jgt2 has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
Notte has joined #ruby
doodleha_ has joined #ruby
sent1nel has joined #ruby
<baweaver> sevenseacat: could you whack doodlehaus for connection flapping?
A205B064 has quit [Ping timeout: 256 seconds]
<sevenseacat> not sure how to do that
iamninja has quit [Read error: Connection reset by peer]
doodleh__ has joined #ruby
iamninja has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
<baweaver> Radar had done it once, I think the precedent was something like kick for an hour with a warning to fix connection
<baweaver> but you'd have to ask him
* baweaver goes back to reading _Programming Scala_
doodlehaus has quit [Ping timeout: 265 seconds]
* sevenseacat goes back to working on R4IA
<baweaver> wasn't it done already and just needed typesetting / finishing?
doodlehaus has joined #ruby
sent1nel has quit [Ping timeout: 252 seconds]
Zggb has joined #ruby
doodleha_ has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
arietis has quit [Quit: Leaving.]
doodleh__ has quit [Ping timeout: 244 seconds]
<sevenseacat> the proofreaders are still doing their thing and coming back with a litany of things to address
doodlehaus has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
_war10ck_ has joined #ruby
<baweaver> Ah
jottr has joined #ruby
<baweaver> Also leaving a ton of proofreading comments on Radar's book
<sevenseacat> he might see them eventually
<baweaver> I'd mentioned it to him
doodlehaus has quit [Read error: Connection reset by peer]
<Radar> Good afternoon.
<sevenseacat> sup.
<baweaver> 'evening for me
doodlehaus has joined #ruby
papercode has joined #ruby
doodlehaus was banned on #ruby by Radar [doodlehaus!*@*]
arietis has joined #ruby
doodleha_ has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
konsolebox has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 272 seconds]
bkxd has joined #ruby
unshadow has joined #ruby
shuber_ has joined #ruby
doodleha_ has joined #ruby
platzhirsch has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
lidenskap has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
shuber_ has quit [Ping timeout: 258 seconds]
AndChat-359961 has quit [Ping timeout: 265 seconds]
RegulationD has joined #ruby
doodleha_ has joined #ruby
last_staff has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
* sevenseacat now goes back to reading Programming Elixir
mandarinkins has joined #ruby
RegulationD has quit [Ping timeout: 272 seconds]
mercerist has quit [Quit: Computer has gone to sleep.]
peteykun has joined #ruby
doodleha_ has joined #ruby
wildroman2 has joined #ruby
mandarinkins has quit [Ping timeout: 265 seconds]
last_staff has quit [Read error: Connection reset by peer]
mandarinkins has joined #ruby
sandelius has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_blizzy_ has quit [Ping timeout: 256 seconds]
yeticry has quit [Read error: Connection reset by peer]
doodleha_ has joined #ruby
i8igmac has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
Rickmasta has joined #ruby
doodleha_ has joined #ruby
prostitute has quit [Ping timeout: 250 seconds]
yeticry has joined #ruby
doodleh__ has joined #ruby
doodleha_ has quit [Ping timeout: 250 seconds]
doodleha_ has joined #ruby
bkxd_ has joined #ruby
doodleh__ has quit [Ping timeout: 245 seconds]
i8igmac has quit [Ping timeout: 255 seconds]
bkxd has quit [Ping timeout: 265 seconds]
doodleh__ has joined #ruby
<Aeyrix> h Radar
doodleha_ has quit [Read error: Connection reset by peer]
<Aeyrix> oh lol that was a while ago
Takle has quit [Remote host closed the connection]
doodleh__ has quit [Read error: Connection reset by peer]
<Aeyrix> Had to write PHP today.
<Aeyrix> Every time I went afk and came back I'd start writing Ruby again.
jsaak has joined #ruby
<sevenseacat> even after four years of writing nearly-exclusively ruby, i still find myself thinking in php methods on occasion
fabrice31 has joined #ruby
doodleha_ has joined #ruby
<Aeyrix> waow
<Aeyrix> Burned into your mind hey? :P
<sevenseacat> yep
iwishiwerearobot has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
IrishGringo has quit [Ping timeout: 265 seconds]
baweaver has quit [Remote host closed the connection]
aphprentice has quit [Ping timeout: 276 seconds]
fabrice31 has quit [Ping timeout: 264 seconds]
doodleha_ has joined #ruby
iwishiwerearobot has quit [Ping timeout: 276 seconds]
Takle has joined #ruby
i8igmac has joined #ruby
horsecowdog has joined #ruby
arietis has quit [Quit: Leaving.]
doodleh__ has joined #ruby
arietis has joined #ruby
sigurding has joined #ruby
doodleha_ has quit [Ping timeout: 258 seconds]
horsecowdog has quit [Ping timeout: 246 seconds]
doodleha_ has joined #ruby
doodleh__ has quit [Read error: Connection reset by peer]
doodleha_ has quit [Read error: Connection reset by peer]
Timba-as has quit [Quit: Lingo: www.lingoirc.com]
doodleha_ has joined #ruby
simpyll has joined #ruby
speakingcode has quit [Ping timeout: 252 seconds]
doodleha_ has quit [Read error: Connection reset by peer]
i8igmac has quit [Ping timeout: 256 seconds]
Jackneill has joined #ruby
doodleha_ has joined #ruby
exadeci has joined #ruby
mordocai has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 245 seconds]
n008f4g_ has joined #ruby
tyfighter has joined #ruby
doodleha_ has quit [Ping timeout: 258 seconds]
bMalum has joined #ruby
i8igmac has joined #ruby
lidenskap has joined #ruby
Spami has joined #ruby
yh__ has quit [Ping timeout: 258 seconds]
Timba-as has joined #ruby
doodleha_ has joined #ruby
arietis has quit [Quit: Leaving.]
gkra has quit [Ping timeout: 256 seconds]
lidenskap has quit [Ping timeout: 255 seconds]
doodleha_ has quit [Read error: Connection reset by peer]
jottr has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
i8igmac has quit [Ping timeout: 250 seconds]
doodleha_ has joined #ruby
Alina-malina has joined #ruby
bkxd_ has quit [Ping timeout: 256 seconds]
juanpaucar has joined #ruby
<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
<nahtnam> The hash is always different
<nahtnam> but I think it is always the same length
doodleha_ has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
bronson has quit [Remote host closed the connection]
codeitagile has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
simpyll has quit [Ping timeout: 246 seconds]
CloCkWeRX has joined #ruby
doodleha_ has joined #ruby
<sevenseacat> thats not valid HTML
<sevenseacat> (when not escaped)
<jhass> lines.last.split.first
<jhass> or maybe [1], I never remember
tubuliferous has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
somnium has quit [Ping timeout: 245 seconds]
juanpaucar has quit [Ping timeout: 272 seconds]
<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?
<sevenseacat> "weird characters"?
<jhass> nahtnam: do you need the rest of the string without the entities?
doodleha_ has joined #ruby
<nahtnam> jhass: No, I just need the last 40 letters
<nahtnam> I already removed the weird entities with gsub
<sevenseacat> -_-
<nahtnam> I did @hash = @hash.to_s.gsub!(/[^0-9A-Za-z]/, '') and @hash = @hash.chop.chop
<nahtnam> sevenseacat: Sorry. I removed the beautiful html entities
<jhass> what about my suggestion instead of all that
doodleha_ has quit [Read error: Connection reset by peer]
tubuliferous has quit [Ping timeout: 255 seconds]
<Aeyrix> nahtnam: Are you scraping a private torrent tracker?
<nahtnam> Aeyrix: Nope, a public one
<sevenseacat> just thepiratebay
<nahtnam> ^^^
<nahtnam> jhass: ".split(//).last(5).join"?
<nahtnam> Oops
<nahtnam> sorry
<Aeyrix> /^[0-9a-f]{40}$/i
<jhass> no, that's not what I wrote
<nahtnam> Ill try "ines.last.split.first"
<Aeyrix> That'll get you the hash.
<jhass> yeah, assuming they'll never change it to include a counterfeit
zotherstupidguy has quit [Ping timeout: 258 seconds]
<Aeyrix> Any other solution here is just as vulnerable to DOM modification.
<Aeyrix> There's no API for TPB.
* sevenseacat wonders why the HTML is invalid
<jhass> sevenseacat: really?
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sevenseacat> ...yes?
zotherstupidguy has joined #ruby
<jhass> I'm rather surprised if I find valid HTML somewhere these days..
simpyll has joined #ruby
<Aeyrix> nahtnam: Seriously
<Aeyrix> @hash.scan(/[a-f0-9/i)
<nahtnam> Aeyrix: "/home/nahtnam/Desktop/jammytime/app/controllers/song_controller.rb:12: premature end of char-class: /[a-f0-9/i"
bkxd has joined #ruby
<jhass> <!-- foolstrytoparsemystuffhahahahahahahahaha -->
<sevenseacat> lol
<sevenseacat> he copied the syntax error and all
<Aeyrix> o wow
bMalum has quit [Quit: bMalum]
<Aeyrix> My fault - syntax error.
<Aeyrix> /[a-f0-9]/i
<Aeyrix> Forgot the closing ].
* sevenseacat knows what is coming next
<Aeyrix> sevenseacat: ?
<sevenseacat> wait for it.
<Aeyrix> Alternatively, nahtnam: Use something like BeautifulSoup.
<Aeyrix> Wait, that's Python.
<Aeyrix> Nokogiri *
<nahtnam> sevenseacat: "undefined method `scan' for #<Nokogiri::XML::NodeSet:0x000000064f7d28>"
<Aeyrix> LOL
<Aeyrix> fuck me
<Aeyrix> to_s
<nahtnam> Thats what you were waiting for right?
<Aeyrix> Undoubtedly.
<sevenseacat> wasnt what i was expecting, but that works too.
<Aeyrix> I came in without context. My apologies.
<Aeyrix> to_s.scan
<Aeyrix> should work
tyfighter has quit [Quit: tyfighter]
Andriamanitra has joined #ruby
<Aeyrix> ... I have physically no answer for that.
<Aeyrix> Mainly because while I'm aware that regex is wrong
<sevenseacat> also not what i was expecting, but XD
<Aeyrix> it would still be
<Aeyrix> sevenseacat: The incorrect regex is what you're waiting for yeah? :P
<sevenseacat> yep.
<Aeyrix> Yeah I don't... what the hell?
<Aeyrix> nahtnam: Can you paste your code please?
<Aeyrix> I have this working np in irb, as I showed before.
<Aeyrix> So :x
<Aeyrix> works4me (tm)
<nahtnam> Aeyrix: Where params[:name] is "Talk Dirty"
sent1nel has joined #ruby
<Andriamanitra> hey guys any idea why cant i require 'tk' in ruby 2.2.0? works fine in 1.9.3
<Andriamanitra> using windows
<sevenseacat> Andriamanitra: dunno, why can't you?
<Andriamanitra> honestly i have no clue
<sevenseacat> do your hands cramp up when you try?
<Aeyrix> sevenseacat: Keyboard converts to Dvorak.
<sevenseacat> oh i know, your computer explodes.
<Andriamanitra> "cannot load such file"
<Andriamanitra> thank you irb that was very helpful
<sevenseacat> Andriamanitra: show us the code and the error.
<Aeyrix> nahtnam: "should work (tm)"
<Aeyrix> if it doesn't, I'm fresh out of ez ideas.
<Andriamanitra> literally just typed "require 'tk'" into irb and got LoadError: cannot load such file -- tk
<Aeyrix> fwiw all solutions presented will have the same issues if TPB modifies their markup.
<sevenseacat> Aeyrix: its for a hackathon, it doesnt matter.
<nahtnam> Aeyrix: Doesnt work (tm)
<nahtnam> Yeah, its a one day thing
<Aeyrix> nahtnam: God dammit.
<Aeyrix> This works fine for me and that aggravates me.
<nahtnam> Aeyrix: params[:name] = talk%20dirty
<nahtnam> try that
wildroman2 has quit [Ping timeout: 272 seconds]
<Aeyrix> I don't have the libs you do.
<Aeyrix> That snippet of code isn't enough for me to rebuilt the program.
sent1nel has quit [Ping timeout: 240 seconds]
<Aeyrix> Oh wait
<sevenseacat> Andriamanitra: http://www.tutorialspoint.com/ruby/ruby_tk_guide.htm see installation?
<Aeyrix> you know that dump of markup you gave earlier?
<nahtnam> Yep
<nahtnam> Aeyrix: The site is bare minimum. All you need is mechanize and uri
<Aeyrix> Is that directly from @hash?
<Andriamanitra> sevenseacat: yeah that's what i've followed
<sevenseacat> Andriamanitra: did you install tk?
AlphaAtom has joined #ruby
<Andriamanitra> yup, and it works just fine in 1.9.3 irb
<nahtnam> Aeyrix: Yeah
<Andriamanitra> but not in 2.2
<Aeyrix> [ confusion intensifies ]
<Andriamanitra> i wonder if i should be using specific version of activetcl or something
<Aeyrix> installing libs now
<sevenseacat> Andriamanitra: where did you install it to?
<Andriamanitra> the default, C:/Tcl
casadei has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 256 seconds]
* sevenseacat gives up, hates Windows
<Andriamanitra> :D
Takle has quit [Remote host closed the connection]
<nahtnam> Aeyrix: Recopied @hash just in case I forgot some characters
<jhass> Andriamanitra: how did you install either ruby actually?
<sevenseacat> i didnt think ruby 2.2 was working under windows yet.
<Andriamanitra> jhass: what you mean how
<Andriamanitra> jhass: i had ruby before activetcl, is that a problem?
<jhass> maybe, I don't know enough about the possible installation methods on windows and their conditions
<sevenseacat> yeah theres no devkit out for 2.2
bkxd has joined #ruby
<Aeyrix> lmfao
<Aeyrix> nahtnam: Even with your code, it works perfectly.
<Andriamanitra> soo i should just use older version?
<nahtnam> Aeyrix: What about this: https://gist.github.com/nahtnam/6c3024d672e35f7aa976
<sevenseacat> rubyinstaller recommends ruby 2.1.6.
<nahtnam> Will it work on that
<nahtnam> *Does
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
postmodern has quit [Quit: Leaving]
mercerist has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
<Andriamanitra> ah actually there's a checkbox in the installer for "Install Tcl/Tk support"
<nahtnam> Aeyrix: Yay! I got the same thing! Now I just have to remove the [" on both sides
<Andriamanitra> I must've missed that when I installed
Spami has quit [Quit: This computer has gone to sleep]
<Aeyrix> nahtnam: Before you try anything
<Aeyrix> think about what [ and ] define.
Spami has joined #ruby
<nahtnam> ?
<Aeyrix> hash[0]
<Aeyrix> it's a single-element array.
Spami has quit [Remote host closed the connection]
<nahtnam> Aeyrix: Cant I just gsub?
<Aeyrix> If you do
<Aeyrix> scan()[0]
<Aeyrix> As in, at the end of the scan, not a new scan() method.
<Aeyrix> But it's an array, you can't gsub those off because they don't exist in the string.
<Aeyrix> They're just there for your own viewing pleasure.
<nahtnam> Aeyrix: Ohh. I see what you are saying
somnium has joined #ruby
Spami has joined #ruby
<Aeyrix> ;-; work tomorrow
<Aeyrix> i've only just gotten used to the weekend
<sevenseacat> because you still were at work yesterday and im surprised youre not there now
keen_________ has joined #ruby
<Aeyrix> Shhhh.
<Aeyrix> I was doing university assignments today.
<sevenseacat> university. i remember that.
sigurding has quit [Quit: sigurding]
Takle has joined #ruby
sigurding has joined #ruby
<Aeyrix> So do I, unfortunately. :(
<Aeyrix> I'm so close to quitting.
wjimenez5271 has quit [Ping timeout: 246 seconds]
keen________ has quit [Ping timeout: 255 seconds]
ramfjord has quit [Ping timeout: 252 seconds]
RegulationD has joined #ruby
<sjums> uniwhat?
Spami has quit [Quit: This computer has gone to sleep]
<sevenseacat> I very very nearly quit in my second year. i'm quite glad i didnt.
<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 :)
<sjums> Was a good choice!
<Aeyrix> I'm already employed full-time though, and have been for two years.
<Aeyrix> ... 3, actually.
<Aeyrix> waow
RegulationD has quit [Ping timeout: 258 seconds]
jottr has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
<bkxd> Aeyrix: where are you working / studying?
<Aeyrix> Melbourne.
shuber_ has joined #ruby
<bkxd> Aeyrix: my home town. i mean which company / subject though
<Aeyrix> I won't give out the company directly, but it's in information security.
<Aeyrix> I study network design and security.
* sevenseacat has a CS degree from melbourne uni
<Aeyrix> It's garbage.
Takle has quit [Remote host closed the connection]
DerisiveLogic has quit [Ping timeout: 276 seconds]
<bkxd> do you work in consultancy or at an asx300 company?
Takle has joined #ruby
<bkxd> just curious as I'm interested in working in infoesc
<Aeyrix> I worked at a fortune
<Aeyrix> now I work at a consultancy.
<bkxd> interesting work? good comp?
<Aeyrix> Consultancy is more fun (imo) - the work never stays the same.
<Aeyrix> Absolutely.
<bkxd> i thought it could be fun to try infosec at booz. i wonder if you need to be a genius level iq though
shuber_ has quit [Ping timeout: 264 seconds]
<Aeyrix> Booz got bought out by my old work.
<Aeyrix> In Australia.
bronson has joined #ruby
ych_ has joined #ruby
lidenskap has joined #ruby
<bkxd> Deloitte?
<bkxd> anyway mate sounds like youre in a good spot
gizless has joined #ruby
bronson has quit [Ping timeout: 258 seconds]
OrbitalKitten has joined #ruby
gizmore has quit [Ping timeout: 256 seconds]
lidenskap has quit [Ping timeout: 265 seconds]
Notte has quit []
bkxd has quit [Ping timeout: 245 seconds]
fabrice31 has joined #ruby
iwishiwerearobot has joined #ruby
bkxd has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
iwishiwerearobot has quit [Ping timeout: 272 seconds]
horsecowdog has joined #ruby
SouL_|_ has joined #ruby
blueOxigen has joined #ruby
platzhirsch has quit [Quit: Leaving.]
horsecowdog has quit [Ping timeout: 276 seconds]
Ilyes512 has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
somnium has quit [Ping timeout: 245 seconds]
sent1nel has joined #ruby
sent1nel has quit [Ping timeout: 276 seconds]
dorei has joined #ruby
xxneolithicxx has quit [Ping timeout: 255 seconds]
_blizzy_ has joined #ruby
<Aeyrix> Weird, Tempfile#unlink isn't deleting the file on the filesystem.
arup_r has joined #ruby
iasoon has joined #ruby
somnium has joined #ruby
mcpierce` has quit [Ping timeout: 255 seconds]
juanpaucar has joined #ruby
Zggb has quit [Quit: Connection closed for inactivity]
shuber_ has joined #ruby
matchaw has joined #ruby
<Aeyrix> welp, Sinatra and Tempfile do not play well together.
tubuliferous has joined #ruby
matchaw has quit [Remote host closed the connection]
juanpaucar has quit [Ping timeout: 256 seconds]
pontiki has joined #ruby
matchaw has joined #ruby
bMalum has joined #ruby
shuber_ has quit [Ping timeout: 252 seconds]
ddarkpassenger has joined #ruby
tubuliferous has quit [Ping timeout: 240 seconds]
<pipework> Aeyrix: doubtful
<Aeyrix> pipework: I'd venture the evidence is pretty concrete.
<pipework> My guess is that the problem exists between the keyboard and chair, not between Sinatra and Tempfile
<Aeyrix> 3edgy
<Aeyrix> 5me
<Aeyrix> 3original
<sevenseacat> oh, this will be good.
<pipework> sevenseacat: It's starting out pretty rubbish, so it can only get better, right?
<sevenseacat> :D
kirun has joined #ruby
<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.
<Aeyrix> That's nice.
connor_goodwolf has joined #ruby
<pipework> Ah just another waste of time. Owl go back to laughing without trying to get information to halp you with.
* Aeyrix shrugs.
mcpierce has joined #ruby
<Aeyrix> If I wanted your help, I'd ask.
<Aeyrix> I've already been advised not to talk to you, though.
<pipework> Lul.
<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.
<Aeyrix> wow so cool
<Aeyrix> please add me to your ignore list
<pipework> I wish more people would join here and identify themselves as not worth paying attention to so quickly.
_blizzy_ has quit [Ping timeout: 265 seconds]
<Aeyrix> pipework: Launch sinatra app
<Aeyrix> create tempfile
<Aeyrix> finish responding to get request, tempfile still exists
<Aeyrix> send SIGTERM to sinatra
<Aeyrix> tempfile still exists
bronson has joined #ruby
<Aeyrix> in the response, there's a tempfile.close
<Aeyrix> and also it should be rm'd when ruby interpreter exits anyway
<Aeyrix> that violates both denotions on the Tempfile#close method documentation.
_blizzy_ has joined #ruby
<Aeyrix> ¯\_(ツ)_/¯
vickleton has joined #ruby
iasoon is now known as TovenaarKlus
bronson has quit [Ping timeout: 265 seconds]
sdothum has joined #ruby
<zotherstupidguy> >> x = a, b, c = 10, a, 30
<ruboto> zotherstupidguy # => undefined local variable or method `a' for main:Object (NameError) ...check link for more (https://eval.in/369210)
<sevenseacat> zotherstupidguy: IRC is not IRB.
<pipework> IRB-As-A-Service-Over-IRC
<Aeyrix> Wow that's a million dollar company right there.
<zotherstupidguy> sevenseacat hai, Gomen'nasai
Mon_Ouie has quit [Quit: WeeChat 1.1.1]
<Aeyrix> pipework: pls2help then
<Aeyrix> if you're a wizzerd
Mon_Ouie has joined #ruby
<Aeyrix> No but really, do you have any idea?
<pipework> Aeyrix: Nahbruh, all fucks I had went out the window the second I chugged half a bottle of nyquil.
<Aeyrix> o rekt
<pipework> Aeyrix: Can you gist up your sinatra app though?
<Aeyrix> Yeah on it.
<pipework> Owl check it out when I wake the fuck up.
<Aeyrix> Oh this is being served by Unicorn
<Aeyrix> would that affect it?
<pipework> Uh, you're killing the master and the child processes are being killed properly, right?
<pipework> That's certainly an idea.
FernandoBasso has joined #ruby
<zotherstupidguy> pipework kill'm all
PaulePanter has quit [Ping timeout: 246 seconds]
<Aeyrix> SIGTERM sends SIGTERM to children.
<Aeyrix> But even at the end of a request, the tempfile isn't being cleaned.
<Aeyrix> Code inc.
PaulePanter has joined #ruby
<Aeyrix> I cleaned all the superfluous bullshit out of it. There's a lot of me experimenting with ideas in maximum haquer way atm.
* zotherstupidguy thinks ascii art to irc, thats a million dollar idea
<Aeyrix> Shame I don't have the strum4h conversation emulation engine anymore.
<Aeyrix> ASCII-as-a-service.
<pipework> Shall putz about with this after waking from a drool-driven-slumber.
<Aeyrix> Can you get that in Australia
<Aeyrix> Nope.
<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.
<pipework> sevenseacat can confirm.
<sevenseacat> hello.
<Aeyrix> pipework: o well
<Aeyrix> At least I'll have had a good nights sleep dammit.
<pipework> You could become a meth addict, but I would honestly suggest heroine instead.
<pipework> Short of that, nyquil is pretty good.
ProLoser has quit [Remote host closed the connection]
tomaw has quit [Quit: Quitting]
<Aeyrix> Heh.
<Aeyrix> Yeah but those are expensive, pipework.
<Aeyrix> 2pricey4me.
<zotherstupidguy> _ _
<zotherstupidguy> ________ _____ _ _ ______ __ _ __ __ _| |_ _ _ ___ __| |_____
<zotherstupidguy> (_-/ -_\ V / -_| ' \(_-/ -_/ _` / _/ _` | _| | '_/ _ / _| / (_-<
<zotherstupidguy> /__\___|\_/\___|_||_/__\___\__,_\__\__,_|\__| |_| \___\__|_\_/__/
<zotherstupidguy>
<zotherstupidguy> it worked!!
<zotherstupidguy> :P
<Aeyrix> Ban incoming.
<zotherstupidguy> i am sorry, i been reading deadpool comics all night, its his fault
ddarkpassenger has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Dakuan has joined #ruby
<zotherstupidguy> aeyrix wow, have you been niktoing pizzhut?
<Aeyrix> No.
arietis has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
sandelius has joined #ruby
<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 !
<Aeyrix> figlet-over-irc
<shevy> wow
<shevy> that's a lot of banner-praise to sevenseacat
<shevy> did she deserve it?
<zotherstupidguy> i belive in sevenseacat, she is the voice of wisdom in the chaos of irc
bigmac has joined #ruby
RegulationD has joined #ruby
bkxd has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
matchaw has quit [Remote host closed the connection]
bigmac has quit [Ping timeout: 276 seconds]
matchaw has joined #ruby
<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
matchaw has quit [Remote host closed the connection]
bigmac has joined #ruby
matchaw has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]
matchaw has quit [Remote host closed the connection]
<zotherstupidguy> actually this is one way to avoid logging! there are no keywords in ascii art!
jottr has quit [Ping timeout: 252 seconds]
matchaw has joined #ruby
<shevy> haha
<zotherstupidguy> if we chat on irc using ascii art, you dudge the logging, its like anti-google ads :D
Ropeney has joined #ruby
<shevy> total anti NSA
<zotherstupidguy> yeah :D
<zotherstupidguy> analyze that ;) goodluck
<zotherstupidguy> no encryptions, nothing! just ascii
bruno- has joined #ruby
<bkxd> too bad it would take about 10m to reverse-engineer!
shuber_ has joined #ruby
<zotherstupidguy> bkxd for a human, sure! but for a computer, not really!
lidenskap has joined #ruby
<bkxd> zotherstupidguy: i mean you could write an algorithm that detected the "/-\ " characters and back-solve pretty easily
<zotherstupidguy> its difficult, ascii art is done in many ways, many fonts, many styles, and you can write an engine in chinese or whtever
<shevy> chinese ascii art?
<zotherstupidguy> why not?
<bkxd> yeah what you're talking about is encryption, except it can ALSO be decrypted by visual human inspection
shuber_ has quit [Ping timeout: 272 seconds]
<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
<apeiros> I'd be more interested in how such agencies try to break steganography
lidenskap has quit [Ping timeout: 245 seconds]
qwertme has joined #ruby
<bkxd> its electronic codebook 'cryptography', aka bullsh*t encryption
<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
<shevy> zotherstupidguy you've just been flagged
<dorei> zotherstupidguy: i think i have somewhere an unfiglet :p
<bkxd> what you're referring to is called PRISM
<zotherstupidguy> shevy i'm cute, i think i will getby =)
<zotherstupidguy> apeiros but i dont think its easy, machine learning is a challange,
<dorei> zotherstupidguy: take a look at : https://gist.github.com/egwspiti/d81db9bb7ad956b84701 to get the idea
davedev24_ has joined #ruby
fabrice31 has joined #ruby
<zotherstupidguy> doret thanks
tomaw has joined #ruby
bronson has joined #ruby
Coldblackice has joined #ruby
<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
iwishiwerearobot has joined #ruby
<zotherstupidguy> doret thanks again, i didnt know unfiglet at all!
<zotherstupidguy> maybe we should have figlet fridays or somthing =)
<zotherstupidguy> bring your figlet bot with you...
spider-mario has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
bronson has quit [Ping timeout: 250 seconds]
iwishiwerearobot has quit [Ping timeout: 256 seconds]
FernandoBasso has quit [Read error: Connection reset by peer]
coderhut has joined #ruby
horsecowdog has joined #ruby
FernandoBasso has joined #ruby
Aswebb_ has joined #ruby
bkxd has quit [Ping timeout: 258 seconds]
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
horsecowdog has quit [Ping timeout: 240 seconds]
redlegion has joined #ruby
<shevy> hmm
<shevy> off-topic - when I have a .md file
<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
<shevy> like:
<shevy> It hides the complexity of ```dlopen()```, ```dlsym()```,
<apeiros> yes, use one of the markdown libraries. like e.g. redcarpet
<jhass> interesting style, I don't think that's any valid extension
charliesome has quit [Quit: zzz]
<jhass> standard markdown only has single ` for inline code
<jhass> and indent four spaces for code blocks
<apeiros> iirc that's github flavor
<jhass> GFMD and CommonMark has ``` (code fences) but not for inline code, just for blocks
<apeiros> ah, yeah, that might be
<zotherstupidguy> shevy plz confirm tht ``` doesnt work inline, the rest is lazy to try.
<jhass> zotherstupidguy: uh, see my link
<shevy> zotherstupidguy inline?
<jhass> I expected more results in the category of cebe/markdown
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zotherstupidguy> shevy `oneline of code` ```a code block``` thats the github way
charliesome has joined #ruby
<shevy> I think the first time I used markdown was when I wrote a README.md or something like that for a gem
<shevy> I think I used only ... indent and * for bold... and some other component for headers
TovenaarKlus has quit [Ping timeout: 252 seconds]
<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
<sevenseacat> asciidoc >>>>>> markdown btw
<apeiros> sevenseacat: sure? I haven't used asciidoc. what's nicer about it?
<sevenseacat> like.... everything
<sevenseacat> markdown gives me the irrits
<sevenseacat> we wrote all of r4ia using asciidoc
oo_ has joined #ruby
DEA7TH has joined #ruby
RegulationD has joined #ruby
bMalum has quit [Quit: bMalum]
[k- has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> never used asciidoc before
scripore has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
davedev24_ has quit []
juanpaucar has joined #ruby
concave has quit [Read error: Connection reset by peer]
bigmac has quit [Ping timeout: 250 seconds]
tomaw_ has quit [Quit: Quitting]
tubuliferous has joined #ruby
weemsledeux has joined #ruby
juanpaucar has quit [Ping timeout: 255 seconds]
sent1nel has joined #ruby
lanemeyer has quit [Ping timeout: 272 seconds]
lanemeyer has joined #ruby
phutchins has joined #ruby
klaas has quit [Read error: Connection reset by peer]
klaas has joined #ruby
tubuliferous has quit [Ping timeout: 256 seconds]
jottr has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
_blizzy_ has joined #ruby
blueOxigen has quit [Ping timeout: 255 seconds]
scripore has quit [Quit: This computer has gone to sleep]
lala has quit [Quit: Connection closed for inactivity]
jottr has quit [Ping timeout: 272 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shuber_ has joined #ruby
Ilyes512 has quit [Quit: Textual IRC Client: www.textualapp.com]
yh__ has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
zotherstupidguy1 has joined #ruby
AlphaAtom has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
redlegion has quit [Read error: Connection reset by peer]
shuber_ has quit [Ping timeout: 272 seconds]
bMalum has joined #ruby
sigurding has quit [Quit: sigurding]
bigmac has joined #ruby
Xiti has joined #ruby
sigurding has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
_war10ck_ has quit [Quit: leaving]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
Deck` has joined #ruby
bronson has joined #ruby
jayeshsolanki has joined #ruby
dfockler has joined #ruby
<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]] ?
havenwood has joined #ruby
bigmac has quit [Ping timeout: 264 seconds]
zotherstupidguy1 has quit [Ping timeout: 250 seconds]
zotherstupidguy has quit [Ping timeout: 240 seconds]
zotherstupidguy1 has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
coderhut has quit [Quit: Page closed]
zotherstupidguy has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
Narzew has joined #ruby
dfockler has quit [Ping timeout: 258 seconds]
jottr has joined #ruby
segfalt has joined #ruby
zotherstupidguy1 has left #ruby ["WeeChat 1.2"]
<jhass> I'd map
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgt2 has quit [Quit: WeeChat 1.1.1]
bMalum has quit [Quit: bMalum]
edwinvdgraaf has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dorei> or a zip
<dorei> >> [1,1,1].zip([2,3,4])
<ruboto> dorei # => [[1, 2], [1, 3], [1, 4]] (https://eval.in/369238)
charliesome has quit [Quit: zzz]
chinmay_dd has joined #ruby
nfk has quit [Quit: yawn]
sigurding has quit [Quit: sigurding]
<[k-> I was thinking of zip in haskell
Feyn has quit [Quit: Leaving]
<[k-> Did not know zip existed in ruby!
<hanmac> >> a = [2,3,4]; [1].cycle(a.size).zip(a)
<ruboto> hanmac # => [[1, 2], [1, 3], [1, 4]] (https://eval.in/369241)
mase-chatter has joined #ruby
keen__________ has joined #ruby
HotCoder has joined #ruby
ohcibi has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
jgt has joined #ruby
keen_________ has quit [Ping timeout: 246 seconds]
robustus has quit [Ping timeout: 255 seconds]
robustus has joined #ruby
Sembei has quit [Max SendQ exceeded]
* jhass 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
Sembei has joined #ruby
pengin has joined #ruby
bMalum has joined #ruby
<jgt> man
<jgt> fuck
<jgt> ugh
zotherstupidguy1 has joined #ruby
jgt has quit [Quit: WeeChat 1.1.1]
bigmac has joined #ruby
jgt has joined #ruby
<shevy> all those unix commands
pokui has joined #ruby
sigurding has joined #ruby
bigmac has quit [Ping timeout: 246 seconds]
<[k-> zip is really more expressive imo, jhass
wildroman2 has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
last_staff has joined #ruby
OrbitalKitten has joined #ruby
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
bogdanteleaga has quit [Read error: Connection reset by peer]
DynamicMetaFlow has quit [Remote host closed the connection]
michaelr` has joined #ruby
<jhass> for zipping up with a single value? just no
bMalum has quit [Quit: bMalum]
lidenskap has joined #ruby
MyMind has joined #ruby
jgt has quit [Quit: WeeChat 1.1.1]
pengin has quit [Ping timeout: 265 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
michaelr` has quit [Remote host closed the connection]
bogdanteleaga has joined #ruby
mjuszczak has joined #ruby
Sembei has quit [Ping timeout: 272 seconds]
bogdanteleaga has quit [Read error: Connection reset by peer]
<sevenseacat> i like jhass' example.
DerisiveLogic has joined #ruby
lidenskap has quit [Ping timeout: 265 seconds]
<hanmac> [1].product([2,3,4])
<hanmac> dorei & jhass hm what about #product?
<hanmac> >> [1].product([2,3,4])
<ruboto> hanmac # => [[1, 2], [1, 3], [1, 4]] (https://eval.in/369259)
<dorei> product is the winner :)
<sevenseacat> oh nice.
pjaspers has left #ruby ["Palaver http://palaverapp.com/"]
<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
fabrice31 has joined #ruby
CloCkWeRX has quit [Ping timeout: 250 seconds]
DerisiveLogic has quit [Ping timeout: 244 seconds]
iwishiwerearobot has joined #ruby
bluish has joined #ruby
shuber_ has joined #ruby
mjuszczak has quit []
mjuszczak has joined #ruby
qwertme has joined #ruby
mjuszczak has quit [Client Quit]
fabrice31 has quit [Ping timeout: 265 seconds]
iwishiwerearobot has quit [Ping timeout: 272 seconds]
horsecowdog has joined #ruby
shuber_ has quit [Ping timeout: 245 seconds]
ponga has joined #ruby
edwinvdgraaf has joined #ruby
bigmac has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
wildroman2 has quit [Ping timeout: 245 seconds]
wildroman3 has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
darkf has quit [Quit: Leaving]
horsecowdog has quit [Ping timeout: 264 seconds]
lessless has joined #ruby
MasterPiece has joined #ruby
bigmac has quit [Ping timeout: 245 seconds]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlphaAtom has joined #ruby
Dakuan has quit [Remote host closed the connection]
ndrei has joined #ruby
AlphaAtom has quit [Client Quit]
bogdanteleaga has joined #ruby
bogdanteleaga has quit [Read error: Connection reset by peer]
mjuszczak has joined #ruby
CloCkWeRX has joined #ruby
sigurding has quit [Quit: sigurding]
bigmac has joined #ruby
AlphaAtom has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
_blizzy_ has quit [Ping timeout: 256 seconds]
mjuszczak has quit [Client Quit]
dseitz has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
MasterPiece has quit [Quit: Leaving]
c_nick has joined #ruby
<Darkwater> what was that irb alternative called again?
pokui has quit [Read error: Connection reset by peer]
<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
mjuszczak has joined #ruby
ohcibi has joined #ruby
<Darkwater> ah never mind, it's pry
ndrei has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
bigmac has quit [Ping timeout: 244 seconds]
bogdanteleaga has joined #ruby
<zotherstupidguy1> how to send colorful msg to irc?
RegulationD has joined #ruby
cirn0 has joined #ruby
<wasamasa> please don't
DLSteve has joined #ruby
<wasamasa> it's annoying and if you're overdoing it, you can get kickbanned for it
<wasamasa> it's also why some channels did disable color codes
<wasamasa> including this one, yay
<shevy> zotherstupidguy1 in mIRC there were colour codes such as yo
<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
pontiki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 276 seconds]
juanpaucar has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
bigmac has joined #ruby
<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"
<IceDragon> hi shevy :3
<jhass> wasamasa: don't worry, we got +c on the channel
<shevy> yo IceDragon
<wasamasa> jhass: yup, noticed that shortly afterwards
tubuliferous has joined #ruby
<IceDragon> shevy: Whats the latest and greatest?
Cache_Money has joined #ruby
<shevy> dunno... trying to fix the "No package 'wayland-egl' found" error right now
juanpaucar has quit [Ping timeout: 250 seconds]
<IceDragon> shevy: Which distro?
<shevy> source
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mandarinkins has quit [Ping timeout: 256 seconds]
zotherstupidguy1 has left #ruby ["WeeChat 1.2"]
<IceDragon> shevy: such hardcore, much l33t, wow
<shevy> it's no problem for well-behaving programs
<IceDragon> well behaving O:
<shevy> well, "egl" isn't a standalone package; and there is no "egl" configure option as part of wayland
tubuliferous has quit [Ping timeout: 250 seconds]
<c_nick> i guess i'll just do a POST and get the stuff in my post handler
bigmac has quit [Ping timeout: 272 seconds]
platzhirsch has joined #ruby
aryaching has joined #ruby
aryaching has quit [Client Quit]
bigmac has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.2/2015041600]]
ndrei has quit [Ping timeout: 272 seconds]
edwinvdgraaf has joined #ruby
aryaching has joined #ruby
pokui has joined #ruby
scripore has joined #ruby
bigmac has quit [Ping timeout: 264 seconds]
scripore has quit [Max SendQ exceeded]
phizzbuzz has quit [Remote host closed the connection]
scripore has joined #ruby
Takle has quit [Remote host closed the connection]
tesuji has joined #ruby
bronson has joined #ruby
umgrosscol has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
ebbflowgo has quit [Read error: Connection reset by peer]
arietis has quit [Quit: Leaving.]
ebbflowgo has joined #ruby
jbomo has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
havenwood has quit [Ping timeout: 264 seconds]
bronson has quit [Ping timeout: 265 seconds]
pontiki has joined #ruby
bigmac has joined #ruby
OrbitalKitten has joined #ruby
__chris has joined #ruby
sent1nel has quit [Remote host closed the connection]
__chris has quit [Client Quit]
__chris has joined #ruby
cirn0 has quit [Remote host closed the connection]
scripore has joined #ruby
blandflakes has joined #ruby
bigmac has quit [Ping timeout: 264 seconds]
Dakuan has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bkxd has joined #ruby
scripore has quit [Client Quit]
__chris has quit [Quit: This computer has gone to sleep]
vikaton has joined #ruby
wildroman2 has joined #ruby
Goldfish has joined #ruby
Goldfish is now known as Guest60466
Guest60466 is now known as Agoldfish
wildroman3 has quit [Read error: Connection reset by peer]
aryaching_ has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
cirn0 has joined #ruby
Dakuan has quit [Ping timeout: 256 seconds]
aryaching_ is now known as aryaching
bkxd has quit [Ping timeout: 256 seconds]
Coldblackice has quit [Ping timeout: 272 seconds]
<hanmac> ping shevy
mandarinkins has joined #ruby
OrbitalKitten has joined #ruby
tjbiddle has joined #ruby
johnny_dz has quit [Ping timeout: 256 seconds]
Channel6 has joined #ruby
cirn0 has quit [Remote host closed the connection]
cirn0 has joined #ruby
Coraline has joined #ruby
tesuji has quit [Ping timeout: 244 seconds]
AndChat-359961 has joined #ruby
<[k-> pong shevy
mandarinkins has quit [Ping timeout: 255 seconds]
<jhass> peng shevy
lidenskap has joined #ruby
mary5030 has joined #ruby
phale has joined #ruby
<phale> how does it feel
lidenskap has quit [Remote host closed the connection]
AndChat-359961 has quit [Ping timeout: 265 seconds]
commondream has joined #ruby
johnny_dz has joined #ruby
<jhass> it?
arietis has joined #ruby
bigmac has joined #ruby
cirn0 has quit [Remote host closed the connection]
commondream has quit [Ping timeout: 240 seconds]
haxrbyte has joined #ruby
<phale> damn
<phale> is this the #music channel?
<jhass> lol, no
scripore has joined #ruby
<phale> oh
<phale> why not?
prostitute has joined #ruby
<jhass> you got a cloak, you're clearly not too dumb to use your client. Stop trolling
fedexo has joined #ruby
bigmac has quit [Ping timeout: 244 seconds]
<phale> jhass: oh hey
<phale> what's your name
<jhass> it's "You don't have to care"
<phale> that's a nice name, You don't have to care.
tesuji has joined #ruby
moshee has joined #ruby
konsolebox has quit [Quit: Leaving]
lkba has joined #ruby
lkba_ has joined #ruby
<phale> why's ruby so slow
fabrice31 has joined #ruby
<jhass> example?
rubie has joined #ruby
<phale> well I do ruby program
<phale> ruby program.rb
<phale> and it takes like 0.9 seconds
<phale> that's pretty slow
_blizzy_ has joined #ruby
<jhass> ruby program.rb 0.05s user 0.01s system 15% cpu 0.386 total
<phale> 0.05s?
<phale> that's really slow
iwishiwerearobot has joined #ruby
sandelius has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<jhass> I hardly notice it
<jhass> no, actually I don't notice it at all, the time output seems instant
<phale> a C program takes 0.004 seconds
<phale> which is much much much faster
aclapinpepin has joined #ruby
<jhass> it does much much much less
<jhass> the fair comparison would include compiling and running it
lkba has quit [Ping timeout: 252 seconds]
<phale> sure
wildroman2 has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
lkba_ has quit [Ping timeout: 250 seconds]
<phale> 0.039
<phale> oh
michael_mbp has quit [Excess Flood]
<jhass> and even then it does much less
fabrice31 has quit [Ping timeout: 272 seconds]
michael_mbp has joined #ruby
<phale> does ruby compile the program, though?
iwishiwerearobot has quit [Ping timeout: 244 seconds]
<jhass> ruby --disable-gems program.rb 0.01s user 0.00s system 67% cpu 0.010 total
<jhass> it does parse it
<jhass> and transform it into an internal presentation to be interpreted by the VM
phizzbuzz has joined #ruby
mase-chatter has quit [Quit: Leaving]
horsecowdog has joined #ruby
<phale> jhass: interesting
<phale> whats the deal with gems, tho?
<phale> they just seem very stupid to me
wildroman2 has quit [Ping timeout: 258 seconds]
<jhass> that's sad to hear, that you're incapable of understanding the value of being able to use libraries easily
bmurt has joined #ruby
phutchins has quit [Ping timeout: 265 seconds]
cirn0 has joined #ruby
jayeshsolanki has quit [Ping timeout: 272 seconds]
<phale> "easily"
<phale> it's easier to use github
horsecow_ has joined #ruby
<phale> i can directly contribute to the repository
horsecowdog has quit [Read error: Connection reset by peer]
bigmac has joined #ruby
rhg135 has joined #ruby
noobQ has joined #ruby
<jhass> you misunderstand gems
<phale> oh, do i?
<jhass> well, else your statement makes zero sense
iamninja has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 256 seconds]
iamninja has joined #ruby
<phale> anyways, ruby's a lot weird
<phale> EOF will cause an exception..
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cirn0 has quit [Remote host closed the connection]
shuber_ has joined #ruby
<DLSteve> gems are just a packages, almost every major language has a package manager now for libs.
<phale> c probably does but doesnt need it
<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
<phale> jhass: OKay
<DLSteve> No language "needs" a package manager, It is for convenience.
bruno- has quit [Ping timeout: 250 seconds]
sandelius has joined #ruby
bigmac has quit [Ping timeout: 250 seconds]
jayeshsolanki has joined #ruby
<phale> sorry for misjudging ruby
Timba-as has quit [Quit: Be back later ...]
bigmac has joined #ruby
[k- has quit [Remote host closed the connection]
rhg135 has quit [Ping timeout: 255 seconds]
Timba-as has joined #ruby
shuber_ has quit [Ping timeout: 244 seconds]
umgrosscol has quit [Remote host closed the connection]
<Andriamanitra> can these god damn gems work for once
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jottr has joined #ruby
DLSteve has joined #ruby
platzhirsch has quit [Quit: Leaving.]
<Andriamanitra> i can see the gem if i type "gem list --local" but requiring it fails
vt102 has quit [Remote host closed the connection]
<Andriamanitra> i wish things would just work for once
<phale> Andriamanitra: well
<jhass> Andriamanitra: do you see a Gemfile ?
<phale> you can always install gentoo
<jhass> phale: don't be silly, that's completely unrelated
<Andriamanitra> jhass: where should it be?
bigmac has quit [Ping timeout: 250 seconds]
<jhass> Andriamanitra: in your projects root
<phale> jhass: what do you mean? just yesterday I installed gentoo and programming in Ruby has been nothing but a breeze.
<phale> no errors at all, everything just works
scwizard has joined #ruby
<jhass> well, then whatever you used previously sucked pretty hard :P
<Andriamanitra> what project o_O i'm just trying it out in irb
<jhass> Andriamanitra: okay, what gem and how do you require it?
<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?
<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"}]}
<phale> jhass: Debian with dwm
<Andriamanitra> nokogiri, require 'nokogiri'
pjaspers has joined #ruby
<jhass> phale: okay, yeah Debian fucks up the Ruby packages
rhg135 has joined #ruby
<phale> jhass: no no
<phale> I mean my programming skills have improved
<jhass> Andriamanitra: okay, are you sure your irb and gem use the same Ruby version? compare gem env and RUBY_DESCRIPTION inside irb
<jhass> did you also try restarting irb since you installed nokogiri?
<scwizard> wait i just need 2 for loops right? I guess my brain no worky right now :(
bronson has joined #ruby
<jhass> scwizard: for is discouraged though, I'd go for .values.flatten.each do |host| host["ip"] I think
<phale> jhass: nah he's better off with
Dakuan has joined #ruby
<phale> .split.values.flatten.each.object.yes.no do |host| host["ip"].value
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mjuszczak has quit []
Narzew has quit [Remote host closed the connection]
<Andriamanitra> ah they seem to be using different installations
<Andriamanitra> thanks
hectortrope has quit [Quit: WeeChat 0.4.2]
DerisiveLogic has joined #ruby
<jhass> phale: nobody's laughing...
sandelius has joined #ruby
<phale> jhass: why would they be laughing?
RegulationD has joined #ruby
<phale> what lol
sandelius has quit [Client Quit]
bigmac has joined #ruby
Matachines has joined #ruby
serivichi has quit [Ping timeout: 265 seconds]
rubie has quit [Remote host closed the connection]
bluish has quit [Quit: bluish]
FernandoBasso has quit [Quit: leaving]
Dakuan has quit [Ping timeout: 276 seconds]
bronson has quit [Ping timeout: 276 seconds]
phale has left #ruby ["Leaving"]
sandelius has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
juanpaucar has joined #ruby
jayeshsolanki has quit [Ping timeout: 265 seconds]
_seanc_ has joined #ruby
Tamae has quit [Ping timeout: 276 seconds]
lavros has quit [Quit: leaving]
lidenskap has joined #ruby
Tamae has joined #ruby
tubuliferous has joined #ruby
platzhirsch has joined #ruby
juanpaucar has quit [Ping timeout: 250 seconds]
Spami has joined #ruby
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
bigmac has quit [Ping timeout: 264 seconds]
tubuliferous has quit [Ping timeout: 272 seconds]
<scwizard> jhass: I went with something like this: http://codepad.org/qtQ8nPcd
jayeshsolanki has joined #ruby
<jhass> looks fine, won't raise an eyebrow ;)
<jhass> calling methods with :: is discouraged though
amclain has joined #ruby
jayeshsolanki has quit [Max SendQ exceeded]
bigmac_ has joined #ruby
jayeshsolanki has joined #ruby
DEA7TH has quit [Ping timeout: 264 seconds]
CustosLimen has quit [Ping timeout: 256 seconds]
rkazak_ has joined #ruby
c355E3B has joined #ruby
djbkd has joined #ruby
tubuliferous has joined #ruby
lidenskap has quit [Remote host closed the connection]
systemd0wn has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
Cache_Money has joined #ruby
casadei has joined #ruby
qwertme has joined #ruby
CustosLimen has joined #ruby
wookiehangover has quit [Ping timeout: 265 seconds]
finisherr has joined #ruby
platzhirsch has left #ruby [#ruby]
<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?
Matachines has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> I think that mixins are a form of inheritance
<sandelius> jhass well yeah that's true but using < Parent
wookiehangover has joined #ruby
bronson has joined #ruby
systemd0wn_ has joined #ruby
claptor has joined #ruby
Palmer11 has joined #ruby
scripore has joined #ruby
systemd0wn has quit [Ping timeout: 256 seconds]
<scwizard> jhass: what other ways can they be called?
<jhass> scwizard: .
tubuliferous has quit [Ping timeout: 258 seconds]
shuber_ has joined #ruby
<jhass> in this example do YAML.load_file instead of YAML::load_file
ramfjord has joined #ruby
ItSANgo__ has joined #ruby
doublemalt__ has quit [Ping timeout: 272 seconds]
DexterLB has quit [Read error: Connection reset by peer]
lala has joined #ruby
mary5030 has quit [Remote host closed the connection]
doublemalt__ has joined #ruby
iwaffles has joined #ruby
20WABBVY2 has quit [Ping timeout: 250 seconds]
mary5030 has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
tubuliferous has joined #ruby
Tamae has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
bigmac_ has quit [Ping timeout: 255 seconds]
ryanhiebert has joined #ruby
mary5030 has quit [Ping timeout: 264 seconds]
ryanhiebert has left #ruby [#ruby]
serivichi has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
DEA7TH has joined #ruby
jpfuentes2 has joined #ruby
ohcibi_ has joined #ruby
bigmac_ has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scripore has quit [Quit: This computer has gone to sleep]
finisherr has quit [Quit: finisherr]
phutchins has joined #ruby
ebonics has joined #ruby
tubuliferous has quit [Quit: ZNC - http://znc.in]
tectonic has joined #ruby
rgb-one has joined #ruby
tskogber1 has quit [Ping timeout: 258 seconds]
finisherr has joined #ruby
<rgb-one> What is the effect of running bundler with root privaleges
<rgb-one> ?
Channel6 has quit [Quit: Leaving]
lala is now known as lili
shuber_ has quit [Remote host closed the connection]
scripore has joined #ruby
noobQ has quit [Quit: WeeChat 0.4.2]
bigmac_ has quit [Ping timeout: 265 seconds]
hectortrope has joined #ruby
hectortrope has quit [Client Quit]
Dakuan has joined #ruby
zotherstupidguy has quit [Ping timeout: 264 seconds]
tyfighter has joined #ruby
ponga has quit [Quit: Leaving...]
tskogberg has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DevastatingDave has joined #ruby
zotherstupidguy has joined #ruby
<jhass> uselessness, bundler will call sudo if it needs to escalate privileges
aclapinpepin has quit [Quit: Leaving]
bMalum has joined #ruby
Dakuan has quit [Ping timeout: 250 seconds]
kaspernj has quit [Remote host closed the connection]
hectortrope has joined #ruby
hectortrope has quit [Client Quit]
rubie has joined #ruby
lkba has joined #ruby
<rgb-one> jhass: Anything else?
bmurt has quit []
towski_ has joined #ruby
<jhass> depends, things like sudo might affect your environment
<jhass> ?root
<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.
lkba has quit [Read error: Connection reset by peer]
<rgb-one> jhass: affect it in what way?
<jhass> unset some variables, set others
<scwizard> This line: puts "".gsub(/D:\Programs\HashiCorp\Vagrant\embedded/, "")
<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/
horsecow_ has quit [Remote host closed the connection]
serivichi has quit [Ping timeout: 258 seconds]
scripore has quit [Quit: This computer has gone to sleep]
<scwizard> why is ruby seeing a regex that includes \P as a unicode property thing and not just text I'm confuse
arietis has quit [Quit: Leaving.]
cirn0 has joined #ruby
towski_ has quit [Remote host closed the connection]
towski_ has joined #ruby
towski_ has quit [Remote host closed the connection]
<ebonics> >> 'abc' =~ /\a/
arup_r has joined #ruby
<ruboto> ebonics # => nil (https://eval.in/369263)
<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.
<jhass> I simply never do
<jhass> since there's no reason to
<ebonics> the reason you avoid using sudo when possible is so that you dont _always_ need root privilages
<ebonics> privileges *
<ebonics> since everything you do as root is going to cause files created etc to be owned by root
<ebonics> if you use sudo for everything you might aswell just use root all the time
scripore has joined #ruby
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
RegulationD has joined #ruby
rubie has quit [Remote host closed the connection]
<rgb-one> ebonics: Ah. good point.
scripore has quit [Remote host closed the connection]
arietis has joined #ruby
scripore has joined #ruby
mtakkman has joined #ruby
fabrice31 has joined #ruby
blandflakes has joined #ruby
shuber_ has joined #ruby
bigmac_ has joined #ruby
iwishiwerearobot has joined #ruby
blandflakes has quit [Client Quit]
RegulationD has quit [Ping timeout: 240 seconds]
spider-mario has quit [Ping timeout: 245 seconds]
mandarinkin has quit [Ping timeout: 240 seconds]
scripore has quit [Client Quit]
centrx has joined #ruby
mandarinkin has joined #ruby
fabrice31 has quit [Ping timeout: 244 seconds]
iwishiwerearobot has quit [Ping timeout: 250 seconds]
Cork has quit [Quit: .]
DexterLB has joined #ruby
bMalum has quit [Quit: bMalum]
bluOxigen has joined #ruby
<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
Spami has quit [Quit: This computer has gone to sleep]
<Mon_Ouie> They do destructure
<Mon_Ouie> >> def foo(a, (b, c)); [a, [b, c]]; end; foo(1, [2, 3])
<ruboto> Mon_Ouie # => [1, [2, 3]] (https://eval.in/369264)
bigmac_ has quit [Ping timeout: 250 seconds]
crdpink has joined #ruby
ohcibi has quit [Read error: Connection reset by peer]
ohcibi_ has quit [Remote host closed the connection]
crdpink2 has quit [Ping timeout: 265 seconds]
bluOxigen has quit [Client Quit]
ohcibi has joined #ruby
ohcibi has quit [Read error: Connection reset by peer]
mandarinkin has quit [Ping timeout: 258 seconds]
ohcibi has joined #ruby
shuber_ has quit [Remote host closed the connection]
cirn0 has quit [Remote host closed the connection]
mandarinkin has joined #ruby
CustosLimen has quit [Ping timeout: 265 seconds]
rippa has joined #ruby
Encapsulation has quit [Ping timeout: 244 seconds]
ArchRogem has joined #ruby
zotherstupidguy1 has joined #ruby
DexterLB has quit [Read error: Connection reset by peer]
<chrisseaton> Mon_Ouie: ah right - they destructure but they'll also take a scalar and interpret it as an array with one value
Cache_Money has quit [Remote host closed the connection]
<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
<IceDragon> shevy: Yay!
<IceDragon> shevy: You can have world domination now right?
<IceDragon> shevy: So far, the only distro I've seen who packages ALL egl, gles headers together is arch :O
tyfighter has quit [Quit: tyfighter]
<shevy> IceDragon dunno about world domination; right now I am compiling gnome3, so gtk3 past 3.14.x required that mesa build
<shevy> arch is unfortunately not perfect; it does not allow an appdir approach
mtakkman has quit [Ping timeout: 244 seconds]
<IceDragon> c9d0d3
<IceDragon> ...
<IceDragon> wrong window..
<shevy> haha
<shevy> d3b0a2
<shevy> right window
DexterLB has joined #ruby
<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?)
<shevy> IceDragon didn't you write some advanced game in mruby?
<IceDragon> shevy: Bah
vikaton has quit []
<arup_r> IceDragon: yes
<arup_r> why your name is not TAB completable :/
<arup_r> anyway....... yes I did
CustosLimen has joined #ruby
<arup_r> IceDragon: I am following this doco -- https://github.com/brandonhilkert/sucker_punch
<IceDragon> shevy: Yes, yes I am ;3
<IceDragon> arup_r: I'll check it out
<arup_r> without async it is working
<arup_r> I tried......
TheNet has joined #ruby
mandarinkin has quit [Ping timeout: 246 seconds]
<IceDragon> ok lets try this locally and see what explodes in my face :O
FernandoBasso has joined #ruby
elev has joined #ruby
<arup_r> me?
elev has left #ruby [#ruby]
elev has joined #ruby
<IceDragon> yup arup_r, I've cloned your gist locally
<arup_r> ok
<elev> what does def means?
<elev> or define? in ruby
ramfjord has quit [Ping timeout: 256 seconds]
<arup_r> elev: def means definition.........
Azure has quit [Quit: Oops.]
<arup_r> method definition
Azure has joined #ruby
Encapsulation has joined #ruby
<c_nick> My Sinatra App takes the default layout for the post quiery but does not render CSS
<c_nick> any idea why it does not work
fedexo has quit [Ping timeout: 256 seconds]
<arup_r> c_nick: #sinatra
<c_nick> thanks arup_r
scripore has joined #ruby
ohcibi has quit [Read error: Connection reset by peer]
ohcibi has joined #ruby
<IceDragon> arup_r: https://gist.github.com/IceDragon200/01db73fbc247eea445e8 # well that escalated quickly
<IceDragon> all I did was: SpeakerJob.new.async.perform "Person-1 says, 'welcome!!'"
<arup_r> what you did? so got too long error
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
<arup_r> Well.....
<arup_r> why should throw error..
<arup_r> what am I missing ???
<IceDragon> I have no idea whats going on, this thing is just fragile...
wildroman2 has joined #ruby
elev has left #ruby [#ruby]
<arup_r> Issue ticket...... should I log?
<arup_r> ur opinion......?
bigmac_ has joined #ruby
ArchRogem has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<IceDragon> arup_r: Yeah, open an issue, and ask the devs whats up, because this SHOULD work
<IceDragon> arup_r: Otherwise, just use good old ruby threads :3
arietis has quit [Quit: Leaving.]
<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.......
<arup_r> have time to listen ? :)
ArchRogem has joined #ruby
atmosx has joined #ruby
ndrei has joined #ruby
mandarinkin has joined #ruby
juanpaucar has joined #ruby
Palmer11 has quit [Quit: found the pills]
bigmac_ has quit [Ping timeout: 246 seconds]
djbkd has quit [Remote host closed the connection]
Mattias__ has joined #ruby
aryaching has quit [Ping timeout: 256 seconds]
tubuliferous has joined #ruby
soulcake has quit [Quit: Quack.]
Mattias__ has quit [Remote host closed the connection]
juanpaucar has quit [Ping timeout: 255 seconds]
arietis has joined #ruby
Dakuan has joined #ruby
<shevy> nobody has time!
<shevy> this is the modern era
rkazak_ has quit [Quit: Sleep.....ing....]
<arup_r> hummmm
<shevy> I feel so alone in the ruby-GUI world...
tubuliferous has quit [Ping timeout: 265 seconds]
finisherr has quit [Quit: finisherr]
lolmaus has quit [Ping timeout: 256 seconds]
<arup_r> what's that ?
shuber_ has joined #ruby
Dakuan has quit [Ping timeout: 240 seconds]
Cork has joined #ruby
Cork is now known as Guest54801
scwizard has left #ruby [#ruby]
mandarinkin has quit [Ping timeout: 250 seconds]
prostitute has left #ruby [#ruby]
hsps__ has joined #ruby
<shevy> :(
zotherstupidguy has quit [Read error: Connection reset by peer]
Takle has joined #ruby
pandaant has joined #ruby
NokiaFan has joined #ruby
c355E3B has quit [Quit: Leaving]
zotherstupidguy1 has quit [Ping timeout: 256 seconds]
zotherstupidguy1 has joined #ruby
soulcake has joined #ruby
nettoweb has joined #ruby
zotherstupidguy has joined #ruby
Guest54801 has quit [Changing host]
Guest54801 has joined #ruby
sepp2k has joined #ruby
<IceDragon> shevy: GUI, SHAME
scripore has quit [Quit: This computer has gone to sleep]
ndrei has quit [Ping timeout: 250 seconds]
<shevy> :(((
hsps_ has quit [Ping timeout: 264 seconds]
Guest54801 is now known as Cork
<IceDragon> shevy: REAL MEN USE THE CONSOLE
<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
<IceDragon> arup_r: What bothers me though, I didn't find a method for awaiting/joining the background threads with the current
<apeiros> wow, I'm so lucky not to be a real man
mandarinkin has joined #ruby
<shevy> IceDragon yeah I do so too, but I want to combine both
<adaedra> apeiros: JOIN THE CONSOLE USERS
<IceDragon> apeiros: HERETIC!
<apeiros> IceDragon: ZEALOT!
<IceDragon> AND PROUD
swgillespie has joined #ruby
<apeiros> SAME
<apeiros> btw, your capslock is stuck
<adaedra> It's below the <Tab> key
<shevy> the most useless key of all times
<apeiros> indeed
spider-mario has joined #ruby
<shevy> it's interesting that, after all those years, we mostly tend to use the generic keyboards... qwerty/qwertz variants
atmosx has quit [Read error: Connection reset by peer]
<IceDragon> apeiros: surprising I used shift ;x
<IceDragon> I'm thinking of making capslock load up firefox >.>
atmosx has joined #ruby
ndrei has joined #ruby
Neomex has joined #ruby
edwardly has quit [Ping timeout: 250 seconds]
marr has joined #ruby
rkazak has joined #ruby
_seanc_ has quit [Quit: _seanc_]
blandflakes has joined #ruby
bigmac_ has joined #ruby
_seanc_ has joined #ruby
mercerist has joined #ruby
dfockler has joined #ruby
HotCoder has quit [Read error: Connection reset by peer]
scripore has joined #ruby
blandflakes has quit [Client Quit]
* atmosx Los Lobos - We Belong Together
<shevy> hmm
<dreinull75> how can I do % operations with hex values? Like 33%10 => 3
<shevy> this does not seem to be hex?
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrei has quit [Remote host closed the connection]
<Mon_Ouie> Just like that though
<dreinull75> no, thats int
<dreinull75> "\0x33"%"\0xf"
aryaching has joined #ruby
<dreinull75> doesnt work
<Mon_Ouie> Those are strings, if you have an integer you can just do 0x33 % 0xf
<dreinull75> oh, the 0 was wrong
<Mon_Ouie> "\0x33" is a 4-byte strings so I'm not sure what it's even meant to mean
<atmosx> dreinull75: why would you wanna do that?
<IceDragon> dreinull75: If you have a HEX string, you can use String#to_i(16) to convert it to an Integer
shuber_ has quit [Remote host closed the connection]
dfockler has quit [Ping timeout: 255 seconds]
<IceDragon> dreinull75: Otherwise, ruby has 0xYOUR_HEX_VALUE eg. 0x7F198732
wildroman2 has quit [Remote host closed the connection]
<dreinull75> IceDragon I have some weird "crypto" sh§$%. Someone tried to be smart and reverse strings: s becomes | for example
bigmac_ has quit [Ping timeout: 276 seconds]
<shevy> \o/
<IceDragon> dreinull75: Sounds familiar, I forgot the name of the crypto method
<dreinull75> is it something known?
<IceDragon> um.. I think it just rotates the byte values
<dreinull75> had to figure it out myself
<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....
<dreinull75> so is there some simple solution? I have to hop to the next f and subtract the last digit from that
<dreinull75> sorry, missing words for hex calculations
<IceDragon> ┐( ̄ヮ ̄)┌
<IceDragon> Dunno, I don't do crypto
ndrei has joined #ruby
<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.........
<arup_r> I thought I
baweaver has joined #ruby
<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
<Mon_Ouie> >> "foo".unpack("C*")
<ruboto> Mon_Ouie # => [102, 111, 111] (https://eval.in/369267)
<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...
<arup_r> Am I doing it correctly..
<atmosx> arup_r: seriously, isn't any better way to get files?
<IceDragon> or you could just get the bytes using #bytes
<arup_r> no... files are in FTP..........
Takle has quit [Ping timeout: 244 seconds]
<arup_r> for each day new files... files are zipped
Takle has joined #ruby
<arup_r> I have to pull those
bruno- has joined #ruby
chinmay_dd has joined #ruby
<baweaver> Probably best to avoid FTP
Palmer11 has joined #ruby
<arup_r> But the point is if I submit o1 to on objects ... to suckerpunch for sync processing........ will it do synchronously.. or randomly......
<hanmac> Mon_Ouie: or more readable:
<hanmac> >> "foo".codepoints
<ruboto> hanmac # => [102, 111, 111] (https://eval.in/369268)
<arup_r> baweaver: I hv no choice
<arup_r> :/
<Mon_Ouie> #bytes was the intent though, not #codepoints
<dreinull75> Mon_Ouie yes I know that but in order to decode I have to use hex values. Like ef => f0-f
<IceDragon> o: hanmac has spoken
* IceDragon bows
<IceDragon> dreinull75: Time to learn binary math ;3
<hanmac> Mon_Ouie: yeah bytes might be better method for that (but i like codepoints too)
bigmac_ has joined #ruby
jbomo has left #ruby [#ruby]
ndrei has quit [Remote host closed the connection]
<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
<dreinull75> IceDragon well yes, next life.
<arup_r> I wrote a simple code.. to test.. https://gist.github.com/aruprakshit/6e1ad8e5b6664f36702f it outputs synchronously.......
<dreinull75> thats why we have ruby, right?
<IceDragon> Mon_Ouie: each_byte does that now ;3
<arup_r> no idea.. in bigger platform what it will do.......
<IceDragon> dreinull75: rgb((rgb24 >> 16) & 0xFF, (rgb24 >> 8) & 0xFF, rgb24 & 0xFF) #ruby
chinmay_dd has quit [Client Quit]
<IceDragon> I don't even use anything beyond simple shifts, ands and ors :(
<arup_r> open to hear you people ideas......
<IceDragon> arup_r: So you need to pull files from an ftp, unzip it, store the files in the database (wait why D:)
<dreinull75> 0x33%0xf #=> 6 ? I expect 3.
<Mon_Ouie> Don't forget 33 != 0x33
<Mon_Ouie> 0x33 is 16*3+3=51
<arup_r> IceDragon: yes
bruno- has quit [Ping timeout: 276 seconds]
<IceDragon> >> CGI.unescape("0x33%0xf")
<ruboto> IceDragon # => uninitialized constant CGI (NameError) ...check link for more (https://eval.in/369269)
<IceDragon> orz
<atmosx> YouTube sells movies?
<atmosx> I missed that.
ndrei has joined #ruby
<dreinull75> Mon_Ouie of course
<IceDragon> WHY FOR THE LOVE OF RUBY CANT I EVER USE CGI CORRECTLY
<dreinull75> "\x33"%"\xf" #=> "3"
<Mon_Ouie> No, it isn't
<IceDragon> >> 0x33 % 0xf
<ruboto> IceDragon # => 6 (https://eval.in/369270)
<Mon_Ouie> >> "\x33" % "\xf"
<ruboto> Mon_Ouie # => "3" (https://eval.in/369271)
<IceDragon> o_e you kidding me right
<Mon_Ouie> Oh wait, misread that
<Mon_Ouie> But it's an operation that has nothing to do with what you're trying to do anyway
rubie has joined #ruby
<dreinull75> Me?
<dreinull75> well yes.
<Mon_Ouie> String#% is string formatting
<IceDragon> arup_r: why exactly do you need to store them in the db?
<arup_r> to query the data,,,,,,,
centrx has quit [Quit: Shutting down, Please wait...]
<Mon_Ouie> >> "hello %s" % "world"
<ruboto> Mon_Ouie # => "hello world" (https://eval.in/369272)
<IceDragon> so data >> database >> ruby >> clear database
<IceDragon> why not: data >> ruby
c_nick has left #ruby [#ruby]
<arup_r> IceDragon: data -> Ruby was taking too much time
<arup_r> because CSV files are huge
_seanc_ has quit [Quit: _seanc_]
<Mon_Ouie> that's the '%' method you use in "\x33" % "\xf", it has nothing to do with modulus
_seanc_ has joined #ruby
<dreinull75> Mon_Ouie you're right
atmosx has quit [Quit: parting / quiting]
<arup_r> but postgres COPY command is fastest.......... IceDragon
ndrei has quit [Ping timeout: 245 seconds]
DexterLB has quit [Read error: Connection reset by peer]
<IceDragon> can postgres import csv files?
<IceDragon> O:
havenwood has joined #ruby
jayeshsolanki has quit [Quit: bye!]
Jackneill has quit [Ping timeout: 246 seconds]
mercerist has quit [Quit: Computer has gone to sleep.]
<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)
baweaver has quit [Remote host closed the connection]
<arup_r> Yes
<ddfreyne> For doing stuff with CSVs, I found this tool to be super useful: https://github.com/BurntSushi/xsv
<ddfreyne> And it's fast.
<IceDragon> except one thing, dats rust
<IceDragon> not ruby
<IceDragon> ;(
zotherstupidguy has quit [Ping timeout: 256 seconds]
<arup_r> All is well.. Only worried about synchronous processing......
<arup_r> I think Rails serves requests using multiple threads......
<IceDragon> postgres should be thread safe, :O but don't listen to me
ndrei has joined #ruby
wlanboy_ is now known as wlanboy
DexterLB has joined #ruby
wildroman2 has joined #ruby
<arup_r> and how those threads will work for o1 to oN .. I don't know with suckerpunch
<IceDragon> arup_r: You'll be interacting with the database via ActiveRecord which most likely, which has thread safety mechanisms in place (otherwise, wtf)
<arup_r> I need synchronous processing in background
zotherstupidguy1 has quit [Ping timeout: 265 seconds]
_seanc_ has quit [Quit: _seanc_]
zotherstupidguy has joined #ruby
pokui has quit [Ping timeout: 255 seconds]
ndrei has quit [Ping timeout: 276 seconds]
ndrei has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
FernandoBasso has quit [Ping timeout: 256 seconds]
zipace has joined #ruby
julian-delphiki has quit [Ping timeout: 246 seconds]
scripore has joined #ruby
FernandoBasso has joined #ruby
<IceDragon> arup_r: SuckerPunch::Job with 1 worker, it will push all the jobs into a queue and process them synchronously (in the background)
<arup_r> well..... i proved suckerpunch don't do synchrouns processing with multiple threads,,,,,,,,, https://gist.github.com/aruprakshit/6e1ad8e5b6664f36702f
<arup_r> :/
ndrei has quit [Ping timeout: 244 seconds]
<arup_r> IceDragon: didn't get you......
concave has joined #ruby
bronson has quit [Remote host closed the connection]
ndrei has joined #ruby
Brozo has joined #ruby
edwardly has joined #ruby
edwardly has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<shevy> you don't get the dragon
<shevy> he is too quick!
baweaver has joined #ruby
<arup_r> hehe
bigmac_ has quit [Ping timeout: 265 seconds]
<arup_r> no he is helpful too shevy :
Dakuan has joined #ruby
RegulationD has joined #ruby
ebonics has left #ruby ["Leaving"]
Vile` has quit [Quit: brb]
ebonics has joined #ruby
ArchRogem has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Narzew has joined #ruby
ebonics has quit [Quit: Leaving]
Dakuan has quit [Ping timeout: 240 seconds]
ebonics has joined #ruby
ArchRogem has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
fabrice31 has joined #ruby
edwardly has quit [Ping timeout: 265 seconds]
horsecowdog has joined #ruby
spider-mario has quit [Remote host closed the connection]
iwishiwerearobot has joined #ruby
zotherstupidguy1 has joined #ruby
bronson has joined #ruby
edwardly has joined #ruby
edwardly has joined #ruby
gizmore has joined #ruby
scripore has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
qwertme has joined #ruby
iwishiwerearobot has quit [Ping timeout: 272 seconds]
gizless has quit [Ping timeout: 245 seconds]
_seanc_ has joined #ruby
Limix has joined #ruby
Brozo has quit [Quit: Leaving...]
ndrei has quit [Remote host closed the connection]
ndrei has joined #ruby
spider-mario has joined #ruby
edwardly has quit [Ping timeout: 256 seconds]
RegulationD has joined #ruby
yqt has joined #ruby
Gmind has joined #ruby
h07737 has joined #ruby
<Gmind> would it be fun if we write Ruby as a Lisp with braces ?
<arup_r> IceDragon: if I set workers 1... getting error as
<arup_r> ERROR -- : Actor crashed!
<arup_r> ArgumentError: minimum pool size is 2
bigmac_ has joined #ruby
<Gmind> checkout my gem: https://rubygems.org/gems/lrb
Gmind has quit [Client Quit]
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
blandflakes has joined #ruby
nateberkopec has joined #ruby
Dakuan has joined #ruby
blandflakes has quit [Client Quit]
hectortrope has joined #ruby
hectortrope has quit [Changing host]
hectortrope has joined #ruby
<wasamasa> these are no braces, damnit
shuber_ has joined #ruby
Palmer11 has quit [Quit: Palmer11]
edwardly has quit [Ping timeout: 245 seconds]
ych_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bigmac_ has quit [Ping timeout: 265 seconds]
Aswebb_ has quit [Remote host closed the connection]
Aswebb_ has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.2/2015041600]]
<jhass> it looks awful anyway
ndrei has quit [Ping timeout: 240 seconds]
<miah> not very nice..
edwardly has joined #ruby
edwardly has joined #ruby
ndrei has joined #ruby
shuber_ has quit [Ping timeout: 272 seconds]
einarj has joined #ruby
mengu has joined #ruby
<shevy> lol
<shevy> I wonder if he was just trolling
qwertme has quit [Quit: Textual IRC Client: www.textualapp.com]
Vile` has joined #ruby
bruno- has joined #ruby
<adaedra> brace yourselves
ndrei has quit [Ping timeout: 264 seconds]
* shevy braces adaedra
<adaedra> nuuuuu
sepp2k has quit [Quit: Leaving.]
bigmac_ has joined #ruby
greenbagels has joined #ruby
baweaver has quit [Remote host closed the connection]
horsecowdog has quit [Remote host closed the connection]
<IceDragon> arup_r: ahh, not sure about this one :(
<IceDragon> arup_r: Might be worth rolling your own background worker
h07737 has left #ruby [#ruby]
Takle_ has joined #ruby
<jhass> (they left)
<IceDragon> jhass: shiiiieeet
<IceDragon> IceDragon.raise PipeBroken
tyfighter has joined #ruby
arietis has quit [Quit: Leaving.]
<adaedra> ok
baweaver has joined #ruby
juanpaucar has joined #ruby
mandarinkin has quit [Ping timeout: 264 seconds]
shuber_ has joined #ruby
baweaver has quit [Remote host closed the connection]
Takle has quit [Ping timeout: 264 seconds]
Limix has quit [Ping timeout: 252 seconds]
shuber_ has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
tubuliferous has joined #ruby
juanpaucar has quit [Ping timeout: 255 seconds]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scripore has joined #ruby
turtil has joined #ruby
Takle_ has quit [Remote host closed the connection]
mandarinkin has joined #ruby
jbomo has joined #ruby
woodennails has joined #ruby
mercerist has joined #ruby
tubuliferous has quit [Ping timeout: 258 seconds]
<woodennails> Evening guys :)
neohunter has joined #ruby
<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?
Rodya_ has joined #ruby
Vile` has quit [Read error: Connection reset by peer]
lhobas has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
Vile` has joined #ruby
bigmac_ has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
<apeiros> woodennails: since they know you don't know ruby - show that you're preparing to learn it
davedev24_ has joined #ruby
xxneolithicxx has joined #ruby
jborica has joined #ruby
<woodennails> Yeah, ive been doing some stuff on codecademy :)
<woodennails> I've been working as a developer for a year, so i hope im gonna be okay, considering its a junior dev role
hectortrope has quit [Quit: WeeChat 0.4.2]
bigmac_ has joined #ruby
pabloh has joined #ruby
yeticry has quit [Ping timeout: 264 seconds]
yeticry has joined #ruby
akfaew has left #ruby [#ruby]
<duderonomy> What region is this in?
bronson has quit [Remote host closed the connection]
<adaedra> Earth.
<duderonomy> It's good to see the job market getting tighter... i presume
einarj has quit [Ping timeout: 276 seconds]
scripore has joined #ruby
einarj has joined #ruby
Notte has joined #ruby
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 246 seconds]
<shevy> hmm
<shevy> what jobs!
mandarinkin has quit [Ping timeout: 240 seconds]
<adaedra> THEY TOOK OUR JOBS
zotherstupidguy1 has quit [Ping timeout: 250 seconds]
zotherstupidguy has quit [Ping timeout: 255 seconds]
balazs has joined #ruby
wildroman2 has quit [Remote host closed the connection]
mandarinkin has joined #ruby
zotherstupidguy has joined #ruby
<ytti> DIKKADOOOO
zotherstupidguy1 has joined #ruby
<adaedra> (One day, I'll be able to deploy a rails app without having to lookup random things on Google)
<shevy> haha
<shevy> damn
<shevy> you are a rails guy
ixti has joined #ruby
gkra has joined #ruby
multi_io has quit [Ping timeout: 265 seconds]
multi_io has joined #ruby
aryaching has quit []
asmodlol has quit [Ping timeout: 258 seconds]
tectonic has quit []
mandarinkin has quit [Ping timeout: 240 seconds]
<woodennails> Its in the UK duderonomy
exadeci has quit [Quit: Connection closed for inactivity]
bigmac_ has quit [Ping timeout: 240 seconds]
<shevy> the UK is very rails heavy
mandarinkin has joined #ruby
<duderonomy> hey thx. I'm in sf bay area (south bay); San Francisco is also Rails heavy.
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
Limix has joined #ruby
A205B064 has joined #ruby
<duderonomy> Is there some inverse correlation btwn Rails and dense urban areas with little-to-none car park availability?
tectonic has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.1.1]
einarj has quit [Ping timeout: 265 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
einarj has joined #ruby
pbruna has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
scripore has quit [Quit: This computer has gone to sleep]
ArchRogem has quit [Quit: Textual IRC Client: www.textualapp.com]
scripore has joined #ruby
xxneolithicxx has quit [Ping timeout: 255 seconds]
shuber_ has joined #ruby
pbruna has quit [Quit: Leaving.]
bigmac has joined #ruby
decoponio has quit [Quit: Leaving...]
shuber_ has quit [Ping timeout: 255 seconds]
tjbiddle has joined #ruby
zotherstupidguy1 has left #ruby ["WeeChat 1.2"]
bigmac has quit [Ping timeout: 272 seconds]
fabrice31 has joined #ruby
woodennails has quit [Quit: Textual IRC Client: www.textualapp.com]
iwishiwerearobot has joined #ruby
mary5030 has quit [Remote host closed the connection]
SouL_|_ has quit [Ping timeout: 255 seconds]
mary5030 has joined #ruby
fabrice31 has quit [Ping timeout: 246 seconds]
mrmargolis has joined #ruby
zotherstupidguy has quit [Ping timeout: 276 seconds]
iwishiwerearobot has quit [Ping timeout: 265 seconds]
mary5030 has quit [Ping timeout: 265 seconds]
zotherstupidguy has joined #ruby
_seanc_ has quit [Quit: _seanc_]
shadeslayer has joined #ruby
blandflakes has joined #ruby
Brozo_ has joined #ruby
platzhirsch has joined #ruby
blandflakes has quit [Client Quit]
serivichi has joined #ruby
zreisman has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
iwaffles has quit [Ping timeout: 265 seconds]
pandaant has quit [Remote host closed the connection]
iwaffles has joined #ruby
ferz_ has joined #ruby
phutchins has quit [Ping timeout: 256 seconds]
<balazs> what is the best way to increment a counter for a key in a hash and handle its creation ?
Papierkorb has joined #ruby
<balazs> something nicer than: foo[bar] ||=0; foo[bar] += 1
bronson has joined #ruby
<jhass> balazs: Hash.new(0)
Notte has quit []
serivichi has quit [Ping timeout: 265 seconds]
mandarinkin has quit [Quit: Leaving]
rubie has quit [Remote host closed the connection]
NokiaFan has left #ruby [#ruby]
rubie has joined #ruby
tjbiddle_ has joined #ruby
tesuji has quit [Read error: Connection reset by peer]
iwaffles has quit [Quit: iwaffles]
irobevjodu has joined #ruby
horsecowdog has joined #ruby
<balazs> thanks !
tjbiddle has quit [Ping timeout: 265 seconds]
tjbiddle_ is now known as tjbiddle
juanpaucar has joined #ruby
tectonic has quit []
yh__ has quit [Ping timeout: 252 seconds]
rubie has quit [Ping timeout: 265 seconds]
bronson has quit [Remote host closed the connection]
wildroman2 has joined #ruby
yh__ has joined #ruby
tubuliferous has joined #ruby
turtil has quit [Remote host closed the connection]
turtil has joined #ruby
turtil has quit [Client Quit]
turtil has joined #ruby
juanpaucar has quit [Ping timeout: 244 seconds]
kirun has quit [Quit: Client exiting]
turtil has quit [Client Quit]
Narzew has quit [Quit: Leaving]
claptor has quit [Quit: this channel is bakas]
tubuliferous has quit [Ping timeout: 258 seconds]
Brozo_ has quit [Quit: Leaving...]
Narzew has joined #ruby
shuber_ has joined #ruby
yh__ has quit [Ping timeout: 258 seconds]
yh__ has joined #ruby
cirn0 has joined #ruby
mengu has quit [Remote host closed the connection]
shuber_ has quit [Ping timeout: 245 seconds]
phutchins has joined #ruby
wildroman2 has quit [Remote host closed the connection]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
rubie has joined #ruby
irobevjodu has quit [Quit: irobevjodu]
irobevjodu has joined #ruby
Timba-as has quit [Quit: Lingo: www.lingoirc.com]
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
horsecowdog has quit [Remote host closed the connection]
wildroman2 has joined #ruby
_seanc_ has joined #ruby
DEA7TH has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
turtil has joined #ruby
Rodya_ has quit [Quit: Leaving...]
blandflakes has joined #ruby
blandflakes has quit [Client Quit]
dseitz has quit [Remote host closed the connection]
davedev24_ has joined #ruby
<dreinull75> btw, I found my "de/encryption" algorithm with hexadecial numbers
<dreinull75> >> "string".split('').map{|c| (c.codepoints[0]-(c.unpack('h')[0].hex*2-15)).chr}.join
<ruboto> dreinull75 # => "|{}fah" (https://eval.in/369286)
davedev2_ has quit [Ping timeout: 265 seconds]
mercerist has quit [Quit: Computer has gone to sleep.]
yh__ has quit [Ping timeout: 265 seconds]
CustosLimen has quit [Quit: Leaving]
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
Ropeney has joined #ruby
concave has quit [Read error: Connection reset by peer]
CustosLimen has joined #ruby
vdamewood has joined #ruby
wildroman2 has quit [Ping timeout: 250 seconds]
yh__ has joined #ruby
granthatcher_ has joined #ruby
granthatcher_ has quit [Max SendQ exceeded]
<al2o3-cr> >>"|{}fah".chars.map{|c| (c.bytes[0]-(c.unpack('h')[0].hex*2-15)).chr}.join
<ruboto> al2o3-cr # => "string" (https://eval.in/369287)
Takle has joined #ruby
einarj_ has joined #ruby
pabloh has quit [Quit: Saliendo]
bronson has joined #ruby
einarj has quit [Ping timeout: 265 seconds]
Zekka has quit [Quit: Lost terminal]
powder has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 272 seconds]
rgb-one has quit [Read error: Connection reset by peer]
vickleton has quit [Quit: Ex-Chat]
fabrice31 has joined #ruby
mjs2600_ has joined #ruby
einarj has joined #ruby
einarj_ has quit [Ping timeout: 264 seconds]
iwishiwerearobot has joined #ruby
sent1nel has joined #ruby
shuber_ has joined #ruby
fabrice31 has quit [Ping timeout: 276 seconds]
turtil has quit [Quit: WeeChat 1.1.1]
iwishiwerearobot has quit [Ping timeout: 272 seconds]
sent1nel has quit [Remote host closed the connection]
turtil has joined #ruby
bigmac has joined #ruby
Takle has quit [Remote host closed the connection]
shuber_ has quit [Ping timeout: 258 seconds]
Dakuan has quit [Remote host closed the connection]
MrBeardy has joined #ruby
Coldblackice_ has joined #ruby
horsecowdog has joined #ruby
davedev2_ has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
Coldblackice_ is now known as Coldblackice
Aswebb_ has quit [Remote host closed the connection]
Limix has quit [Ping timeout: 256 seconds]
iamninja has quit [Read error: Connection reset by peer]
tyfighter has quit [Quit: tyfighter]
iamninja has joined #ruby
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
doublemalt__ has quit [Ping timeout: 246 seconds]
DoubleMalt has joined #ruby
salmiakki1010 has joined #ruby
einarj has quit [Remote host closed the connection]
salmiakki1010 has quit [Client Quit]
vdamewood has quit [Quit: Life beckons.]
baweaver has joined #ruby
ddarkpassenger has joined #ruby
last_staff has quit [Quit: last_staff]
scripore has quit [Quit: This computer has gone to sleep]
HotCoder has joined #ruby
bogdanteleaga has quit [Ping timeout: 256 seconds]
tjbiddle has quit [Quit: tjbiddle]
Synthead has joined #ruby
bronson has joined #ruby
dseitz has joined #ruby
zotherstupidguy has quit [Ping timeout: 245 seconds]
zotherstupidguy has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
Synthead has quit [Ping timeout: 244 seconds]
juanpaucar has joined #ruby
bogdanteleaga has joined #ruby
_blizzy_ has quit [Ping timeout: 256 seconds]
millerti has joined #ruby
matchaw has quit [Ping timeout: 244 seconds]
pdoherty has joined #ruby
CloCkWeRX has quit [Ping timeout: 245 seconds]
tyfighter has joined #ruby
tubuliferous has joined #ruby
juanpaucar has quit [Ping timeout: 272 seconds]
Narzew has quit [Ping timeout: 244 seconds]