apeiros changed the topic of #ruby to: Ruby 2.1.1; 2.0.0-p451; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<shevy> osx5 the biggest difference between ruby and python is the philosophy, look at the link I gave you, then also read the zen of python, then you will know which language to pick
zorak has joined #ruby
<osx5> It's still wanted around my area
<shevy> perl is used by fossil coders
<popl> shevy: some people tend to stick with a language, I guess. It's strange but I don't think it means I dislike other languages.
<shevy> yeah
m4n1f3st0 has quit [Ping timeout: 252 seconds]
<shevy> I could probably switch to python
papercode has quit [Quit: WeeChat 0.4.3]
<shevy> but I can't say if it would be worth a switch
<popl> I just have to listen to a lot of shit in different IRC channels hating on all the languages I like for various reasons.
<shevy> popl which languages do you like?
<osx5> popl: At least you understand it
<popl> Since people cannot be reasonable and must have a personal vendetta against whatever they're bitching about. :P
<shevy> is it php
<popl> shevy: I like a lot of a different languages.
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
<shevy> I knew it
<popl> shevy: Nope.
<popl> I can write in PHP though.
havenwood has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
m4n1f3st0 has joined #ruby
LexicalScope has joined #ruby
pigzzcanfly has joined #ruby
<popl> I think there's a part of me that likes (at least a little) most of the programming languages I've ever used.
sambao21 has joined #ruby
JBreit has joined #ruby
<shevy> osx5 popl is a good man, there is not much hate in his heart
<popl> Because I like programming I think.
<popl> shevy: not unless I flip the Machiavelli switch. ;P
JBreit has left #ruby [#ruby]
supermarin has quit [Quit: Computer has gone to sleep.]
<shevy> Machiavelli is good for thinking and it's good to be able to do evil yet then decide to not want to do evil
weems has quit [Read error: Connection reset by peer]
<platzhirsch> I go to bed now. Thanks for listening to my unfortunate encounter with humanity
<popl> platzhirsch: I'd say that was inhumanity.
<shevy> platzhirsch don't forget the reallife date!
sambao21 has quit [Client Quit]
<platzhirsch> and get sucked punched and robbed?
<shevy> platzhirsch also write back and say you answer 50% of the questions but expect that she answers as well to you
<platzhirsch> great...
jhass is now known as jhass|off
<shevy> hey it's not the USA
<platzhirsch> haha
<popl> platzhirsch: buy a taser
<platzhirsch> that's a great idea shevy
sambao21 has joined #ruby
<popl> platzhirsch: pepper spray
<platzhirsch> Buy a taser, get tasered
<shevy> lol
<popl> platzhirsch: Bowie knife.
<popl> platzhirsch: hire a thug
<platzhirsch> haha
funburn has joined #ruby
<shevy> man
jbueza has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> if you include the cost for hiring a thug, sleeping on the streets may be much better and cheaper
jbueza has joined #ruby
<shevy> under a bridge
boombadaroomba has quit [Quit: Leaving]
<platzhirsch> I could hire a thug who protects me while I am asleep on the street
<popl> I have to find a place really soon.
<popl> platzhirsch: but then he might just beat you up and take your money.
<shevy> and have a poster "will program for food"
<osx5> platzhirsch: Give me 10 bitcoins and I'll fly out there as backup
<platzhirsch> I only have half a bitcoin
pigzzcanfly has quit [Ping timeout: 255 seconds]
<shevy> where did the other half go?
<platzhirsch> I will sleep in the office. Period.
<shevy> yeah
<shevy> that shows real dedication
chipotle has quit [Read error: Connection reset by peer]
<osx5> Lol
<platzhirsch> shevy: got back my investment because I am not a gambler
<popl> wanna bet?
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
<osx5> platzhirsch: There are lunatics predicting Bitcoin will hit 100k
<platzhirsch> I don't see this currently
<platzhirsch> not after Mt.Gox
<osx5> Mt Fox ;-)
m4n1f3st0 has quit []
<shevy> Mt. Goat
sambao21 has quit [Quit: Computer has gone to sleep.]
<osx5> $300 million dollars worth of coins to steal, it'll happen again with btc-e
<osx5> They don't even know who owns it in russia
jollyy has quit [Quit: jollyy]
zcreative has joined #ruby
aspires has joined #ruby
newUser1234 has quit [Remote host closed the connection]
sambao21 has joined #ruby
doodlehaus has joined #ruby
ivangood has joined #ruby
snuffeluffegus has joined #ruby
Kricir has quit [Remote host closed the connection]
platzhirsch has left #ruby [#ruby]
eynj1 has joined #ruby
m4n1f3st0 has joined #ruby
doodleha_ has quit [Ping timeout: 252 seconds]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nari has quit [Ping timeout: 246 seconds]
ezra has joined #ruby
ezra is now known as Guest31606
<Guest31606> hey, im trying to install a gem in CentOS and getting permission denied errors
eynj1 has quit [Client Quit]
m4n1f3st0 has quit [Client Quit]
eynj1 has joined #ruby
eynj has quit [Ping timeout: 255 seconds]
s2013 has joined #ruby
<Guest31606> Ruby v 2.1.0
Lewix has quit [Remote host closed the connection]
newUser1234 has joined #ruby
LexicalScope` has joined #ruby
aspires has quit []
LexicalScope has quit [Read error: Connection reset by peer]
kennym has joined #ruby
brunops has quit [Quit: leaving]
sambao21 has quit [Quit: Computer has gone to sleep.]
pwh has joined #ruby
<BraddBitt> probably an issue with user permissions for the current user gu
<BraddBitt> Guest31606 *
<combusean> Guest31606, how did you install ruby?
<combusean> the rpm?
<Guest31606> combusean: with RVM I think
<combusean> system rvm?
aspires has joined #ruby
Zwicker has joined #ruby
<Guest31606> combusean: no, curl -L get.rvm.io | bash -s stable
sambao21 has joined #ruby
<combusean> you did it as a user or root?
<Guest31606> im not sure it actually installed, apparnelty I had 2.1.0 installed anyway previously
<Guest31606> that command as normal
sambao21 has quit [Client Quit]
<combusean> sudo chown -R ezra ~/.rvm will fix it
<Guest31606> the version I have in console is ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
<combusean> erm
<combusean> sudo cown -R ezra ~ezra/.rvm
<combusean> chown*
<Guest31606> I tink I already own that..
<Guest31606> drwxrwxr-x 25 ezra ezra 4096 Apr 7 03:51 .rvm
aspires has quit [Client Quit]
<combusean> what does ls -ld /home/ezra/.rvm/gems/ruby-2.1.0/gems/github-markup-1.1.0 look like?
<combusean> the -R makes it recursive
<combusean> i suspect you somehow have a bad permission in some deep dir entry in your ~/.rvm
eov has joined #ruby
<Guest31606> wow, ur right. they are owned by root
aspires has joined #ruby
narcan has quit [Remote host closed the connection]
glanzi has quit [Quit: Leaving...]
narcan has joined #ruby
<havenwood> rvm fix-permissions
atno has quit [Remote host closed the connection]
mrmargolis has joined #ruby
<combusean> ahh
<combusean> didn't realize that command existed havenwood =)
saarinen has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
toastyne_ has quit [Remote host closed the connection]
<Guest31606> havenwood: OoOoOo :)
atno has joined #ruby
toastynerd has joined #ruby
<eov> Hi guys, ruby noob here. In the same program I compare the efficiency(timing) of two sorting algos. Their input is a randomly generated array. The issue: Once processed by one sorting algo, the second deliver a very fast result like there was some sort of cache. Is their such possibility ?
<Guest31606> combusean: thanks for ur help :)
<combusean> no problem.
Jeticus has quit [Ping timeout: 246 seconds]
zachallett has quit [Remote host closed the connection]
psyko666 has joined #ruby
Es0teric has quit [Ping timeout: 255 seconds]
rm_ has joined #ruby
s2013 has quit [Ping timeout: 246 seconds]
zachallett has joined #ruby
<havenwood> eov: Instantiate a Class with an instance variable storing the sorted Array.
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
weems has joined #ruby
Es0teric has joined #ruby
toastynerd has quit [Ping timeout: 255 seconds]
rylev has quit [Remote host closed the connection]
fgo has quit [Remote host closed the connection]
<eov> havenwood: I'll give it a try. Thx
tcstar has quit [Ping timeout: 240 seconds]
aspires has quit []
rm_ has quit [Ping timeout: 246 seconds]
zachallett has quit [Ping timeout: 255 seconds]
<havenwood> eov: then maybe an attr_reader for that instance variable
<havenwood> eov: np
emaxi has quit [Remote host closed the connection]
amclain has quit [Quit: Leaving]
idiocrash has quit [Ping timeout: 246 seconds]
emaxi has joined #ruby
benzrf|offline is now known as benzrf
Guest31606 is now known as Nicekiwi
<benzrf> hello ruby-using entities
ixti has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
<havenwood> hellooo
<combusean> hi havenwood
emaxi has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
<combusean> hi benzrf :)
rahult has joined #ruby
jackyalcine has joined #ruby
osx5 has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
Lewix has joined #ruby
s2013 has joined #ruby
<benzrf> sup combusean
<benzrf> have i roped u into trying quick yet
<benzrf> (⊙ω⊙)
pigzzcanfly has joined #ruby
pontiki has joined #ruby
darmou has joined #ruby
Dysruption has joined #ruby
Bumptious has joined #ruby
jackyalcine is now known as jacky
slawrence00 has quit [Ping timeout: 252 seconds]
<combusean> nope
tcstar has joined #ruby
<combusean> benzrf, privmsg me a url i gotta run to the store before they close
LexicalScope has joined #ruby
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
LexicalScope` has quit [Ping timeout: 255 seconds]
Speed has quit [Ping timeout: 252 seconds]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
sqwirl has joined #ruby
doodlehaus has quit [Remote host closed the connection]
<benzrf> combusean: crap was in other window :u
<benzrf> combusean: i assume youre familiar with typescripts as created by the script command?
Megtastique has joined #ruby
maletor has joined #ruby
rm_ has joined #ruby
newUser1234 has quit [Remote host closed the connection]
RowdyChildren is now known as RowdyChild|Away
ckinni has joined #ruby
TripTastic has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
alekst has quit [Quit: Leaving...]
Megtastique has quit [Client Quit]
jacky has quit [Excess Flood]
jonno11 has joined #ruby
tjr9898 has joined #ruby
ckinni has quit [Client Quit]
newUser1234 has joined #ruby
nari has joined #ruby
sambao21 has joined #ruby
fgo has joined #ruby
emaxi has joined #ruby
<darmou> has anyone worked with webdav?
crystal77 has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
maletor has quit [Ping timeout: 246 seconds]
aniM has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
eov has quit [Ping timeout: 255 seconds]
maletor has joined #ruby
thomasxie has joined #ruby
bousquet has quit []
TripTastic has left #ruby ["Leaving"]
derek_c has joined #ruby
mrmargolis has quit [Remote host closed the connection]
ckinni has joined #ruby
jacky has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
DouweM has quit [Read error: Operation timed out]
axilaris has joined #ruby
thomasxie has quit [Client Quit]
ckinni has quit [Client Quit]
newUser1234 has quit [Remote host closed the connection]
<axilaris> $ heroku run “ruby -rpsych -e \”p Psych.libyaml_version.join(‘.’)\”” -a <app name>
<axilaris> returned me
<axilaris> -bash: syntax error near unexpected token `('
charliesome has joined #ruby
Solnse has quit [Ping timeout: 240 seconds]
brucelee has quit [Ping timeout: 240 seconds]
thomasxie has joined #ruby
chrisja has quit [Quit: leaving]
Solnse has joined #ruby
ckinni has joined #ruby
eynj1 has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
ckinni has quit [Client Quit]
dr0ff has quit [Read error: No route to host]
aspires has quit []
ckinni has joined #ruby
kukyakya has joined #ruby
havenwood has quit []
noob101 has joined #ruby
<noob101> Hello.
<noob101> I am a beginner rubyist.
<benzrf> hows it goin
DuoSRX has quit [Quit: Connection closed for inactivity]
evenix has joined #ruby
<noob101> My question is about the exercise def_slicing_arrays, I don't understand that
<noob101> array = [:peanut, :butter, :and, :jelly]
<noob101> array[0,1]
<noob101> What does that mean?
<benzrf> start at element 0
<benzrf> take 1 element
<benzrf> >> [:peanut, :butter, :and, :jelly][0,1]
<noob101> That's it?
<eval-in> benzrf => [:peanut] (https://eval.in/132978)
<benzrf> yep
<benzrf> pass it a range if you want to specify start and end points instead
<benzrf> >> [:peanut, :butter, :and, :jelly][1..3]
<eval-in> benzrf => [:butter, :and, :jelly] (https://eval.in/132979)
francisfish has joined #ruby
<benzrf> ew
<noob101> but it's a comma.
<benzrf> yeah
gr33n7007h has quit [Ping timeout: 240 seconds]
<noob101> But yeah I think I kind of get it.
evenix has quit [Remote host closed the connection]
<benzrf> foo[1,2] is 2 args to []
sambao21 has joined #ruby
<benzrf> foo[1..2] is 1 arg which is a Range
<benzrf> >> 1..2
<eval-in> benzrf => 1..2 (https://eval.in/132980)
<noob101> Um, can you give me a make up example and watch if I can do it please.
vpretzel has joined #ruby
<benzrf> >> (1..2).class
<eval-in> benzrf => Range (https://eval.in/132981)
<noob101> Something intuitive.
<benzrf> well
<benzrf> do you know what a range is?
evenix has joined #ruby
eynj has joined #ruby
<noob101> Range is like um.
<noob101> I know what it is, it's like the numbers between two specified numbers right?
gr33n7007h has joined #ruby
<noob101> like (3..10)= numbers between 3 and 10?
<noob101> I am not sure eh.
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> yeah
<benzrf> tbp a range object represents that range of numbers
<noob101> I am familiar cause I used that in my programs.
<benzrf> right
<benzrf> anyway
<benzrf> the 3 main uses of [] on an array are:
<benzrf> 1. pass a single number
<benzrf> you probably know this onewheelskyward
<benzrf> *one
<benzrf> 2. pass 2 numbers
<benzrf> youll get back a slice starting at the first number, with the length of the 2nd
<benzrf> 3. pass 1 range
ckinni has joined #ruby
<benzrf> youll get back a slice starting at the first num in the range and ending at the 2nd one
<noob101> um can you give foo examples of ruby code please
fgo has joined #ruby
<noob101> It's hard for me to interpret
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emaxi_ has joined #ruby
francisfish has quit [Ping timeout: 252 seconds]
sambao21 has quit [Ping timeout: 252 seconds]
evenix has quit [Ping timeout: 255 seconds]
Dysruption has quit [Quit: Dysruption]
<benzrf> kk
havenwood has joined #ruby
<benzrf> noob101: 1 sec
fgo has quit [Read error: No route to host]
emaxi has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
<benzrf> >> l = %w/foo bar baz fooby foobar foobaz bazby quux/; l[3]
<eval-in> benzrf => "fooby" (https://eval.in/132983)
ckinni has quit [Client Quit]
<benzrf> ^4th element
<benzrf> >> l = %w/foo bar baz fooby foobar foobaz bazby quux/; l[3,2]
<eval-in> benzrf => ["fooby", "foobar"] (https://eval.in/132984)
<benzrf> ^start at 4th, take 2
jorts has joined #ruby
<benzrf> >> l = %w/foo bar baz fooby foobar foobaz bazby quux/; l[2..4]
<eval-in> benzrf => ["baz", "fooby", "foobar"] (https://eval.in/132986)
<benzrf> ^start at 3rd, go to 5th
ckinni has joined #ruby
danshultz has joined #ruby
dr0ff has joined #ruby
ckinni has quit [Client Quit]
sambao21 has joined #ruby
fgo has quit [Client Quit]
jorts has quit [Client Quit]
ckinni has joined #ruby
michaeldeol has joined #ruby
<noob101> benzrf ok
ckinni has quit [Client Quit]
evenix has joined #ruby
danijoo has joined #ruby
pigzzcanfly has joined #ruby
sambao21 has quit [Client Quit]
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 246 seconds]
jorts has joined #ruby
* combusean looks around
tjr9898 has quit [Remote host closed the connection]
zorak has quit [Ping timeout: 255 seconds]
chichou has joined #ruby
<benzrf> yo combusean
<combusean> hi benzrf
<benzrf> 09:10 < benzrf> [21:00:20] combusean: crap was in other window :u
<benzrf> 09:10 < benzrf> [21:00:37] combusean: i assume youre familiar with typescripts as created by the script command?
<combusean> actually i'm not
<benzrf> kk
<benzrf> ^download those two
<benzrf> then do:
<benzrf> scriptreplay timing -s typescript
<combusean> is this a windows thing?
<benzrf> no
<benzrf> its a unix thing
<popl> no, script is a unix utility
<benzrf> youre not on windows arw you o.o
<benzrf> *are
<popl> combusean: you use script to record interactions with the shell. then you can demonstrate it to somebody else or replay it later to accomplish some task
hamakn has quit [Remote host closed the connection]
<benzrf> terminal, even
<popl> point
<combusean> ohh
<combusean> benzrf@benzrf-laptop:~/quick_example/quick_fuse_fs/Foo$ vim some_methods.rb
<combusean> [H[?12;25h[?12l[?25h[H[2J[?25l[32B"some_methods.rb" 0L, 0C[H[34m[40m 1 [39m[49m
<combusean> [1m[34m~
<combusean> it's this i don't get tho
<popl> which?
<popl> the escape codes?
<combusean> aha
<combusean> i should have been able to recognize those
<benzrf> wha
<benzrf> why is it showing esc codes instead of the thing
<popl> it records keystrokes. if you fuck up typing something for instance and hit backspace 6 times it will record that.
<combusean> ohhh
<popl> because it replays it for the terminal
* combusean blinks
<combusean> i'm trying to think of how i'd use this
<popl> I used it a lot in school.
<benzrf> recorded this in a 124 x 33
<benzrf> sized terminal
<benzrf> u may need to resize to view it correctly >.>
<combusean> for my own system stuff i'd use chef for CM, at work we just do shit, document it, and make AMIs
ablemike has quit []
<combusean> a recording of shell interaction would include a lot of mistakes as i'm trying to figure something out
<popl> have you named one RITE yet?
<benzrf> hue
<popl> it's probably good for a movie
<popl> you know, when you want it to look like the actor is doing something on a computer.
Megtastique has joined #ruby
jamto11 has joined #ruby
jorts has quit [Quit: jorts]
danijoo has quit [Remote host closed the connection]
<benzrf> probably shopt
snath has quit [Read error: Connection timed out]
<benzrf> combusean: did u get it playing right
toretore has quit [Quit: This computer has gone to sleep]
rahult is now known as rahult_
doodlehaus has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
doodlehaus has quit [Remote host closed the connection]
siwica has joined #ruby
andy__ has joined #ruby
organmeat has joined #ruby
zorak has joined #ruby
tjr9898 has joined #ruby
bbloom has joined #ruby
hamakn has joined #ruby
mary5030 has joined #ruby
locriani has joined #ruby
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
pigzzcanfly has quit [Remote host closed the connection]
locriani has quit [Client Quit]
snath has joined #ruby
rahult_ is now known as rahult
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
MatthewsFace has joined #ruby
Dysruption has joined #ruby
evenix has quit [Remote host closed the connection]
trhodes_ has quit [Ping timeout: 255 seconds]
binaryhat has joined #ruby
evenix has joined #ruby
mesamoo has joined #ruby
radic_ has quit [Ping timeout: 246 seconds]
aniM has quit [Ping timeout: 255 seconds]
radic has joined #ruby
trhodes_ has joined #ruby
jorts has joined #ruby
evenix has quit [Ping timeout: 252 seconds]
aniM has joined #ruby
Doppp has quit [Ping timeout: 240 seconds]
genescissors has joined #ruby
Megtastique has quit []
pigzzcanfly has joined #ruby
krz has joined #ruby
tectonic has quit []
s2013 has quit [Ping timeout: 255 seconds]
Trynemjoel has quit [Ping timeout: 245 seconds]
sensen has joined #ruby
jack_rabbit has quit [Ping timeout: 246 seconds]
tectonic has joined #ruby
Megtastique has joined #ruby
pdtpatrick has joined #ruby
Trynemjoel has joined #ruby
jorts has quit [Quit: jorts]
binaryhat has quit [Quit: Leaving]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
tectonic has quit [Client Quit]
sski has joined #ruby
selina345 has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
derek_c has quit [Quit: Leaving]
<selina345> hi if in the gemfile i have
<selina345> gem 'pg'
<selina345> but then under group :development do
<selina345> have gem 'sqlite3"
<selina345> will it my app run on postgres or sqlite
Tritania has quit [Ping timeout: 265 seconds]
danshultz has quit [Ping timeout: 240 seconds]
Tritania has joined #ruby
<benzrf> selina345: how are you acccessing the db?
<noob101> benzrf
<noob101> you never did that foo example ;9
<noob101> :(
<benzrf> foo example?
<noob101> I wanted you to show me an example of the splitting array
<noob101> I wanted you to use foo or whatever it is
kitak_ has quit [Remote host closed the connection]
<noob101> no sliving
<noob101> slicing*
<noob101> you said one sec
darmou has quit [Quit: darmou]
<benzrf> i posted some examples tho :|
Megtastique has quit []
jack_rabbit has joined #ruby
fluve has joined #ruby
<selina345> oh shit
<selina345> yeah
<selina345> im supposed to delete the sqlite gem from the development group
Dysruption has quit [Quit: Dysruption]
kitak has joined #ruby
richardjortega has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pwh has quit []
aniM has quit [Ping timeout: 240 seconds]
Dysruption has joined #ruby
ckinni has joined #ruby
Melpaws has joined #ruby
viscera has joined #ruby
braincrash has quit [Quit: bye bye]
porco has joined #ruby
<combusean> selina345, are you running rails?
<selina345> yes
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<combusean> you can have both gems installed but the database.yml is only configured to use one connection adapter
<combusean> per environment
<selina345> ahh thought so
<selina345> that's why i wasnt getting any errors
<selina345> since i configured database.yml to postgres
<selina345> thanks combusean
<benzrf> combusean: did u ever figure out that demo =[
<combusean> lemme play with it
<combusean> i mean i don't have much of a use for it
tjr9898 has quit [Remote host closed the connection]
<benzrf> >tfw
<combusean> tfw?
braincrash has joined #ruby
organmeat has quit [K-Lined]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
michaeldeol has joined #ruby
scarolan has quit [Ping timeout: 240 seconds]
<combusean> benzrf, put something in your docs about fuse dependencies
<combusean> have no idea what that is
<benzrf> >.>
<benzrf> u want libfuse-dev
* combusean is on os x :P
jason___ has quit [Remote host closed the connection]
robbyoconnor has quit [Excess Flood]
<benzrf> why use a proprietary pseudo-bsd when u could have a FLOSS ACTUAL bsd?
<benzrf> :-D
robbyoconnor has joined #ruby
<combusean> because i do occasional media and video production
amskah has joined #ruby
<combusean> and kde sucks, and gtk is lame ass windowsy with its ctrl-a to select all instead of go to the beginning of the line in a mac
<benzrf> >:{
<benzrf> if u love emacs so much why dont u marry it
<combusean> i use vim in my editor
<combusean> i just like emacs keymappings elsewhere
<combusean> s/in/as/
Dysruption has quit [Quit: Dysruption]
<combusean> i used linux on the desktop from 1997 - 2011
<combusean> personally preferred Enlightenment
<combusean> and dark blue gtk themes
<combusean> kinda miss that on os x
trhodes_ has quit [Ping timeout: 255 seconds]
supermarin has joined #ruby
narcan has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
trhodes_ has joined #ruby
porco has quit [Quit: Leaving...]
<benzrf> if anybody still hasnt seen it https://www.youtube.com/watch?v=BKorP55Aqvg
jorts has joined #ruby
zalmoxes is now known as houseManwoody
houseManwoody is now known as zalmoxes
sqwirl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
richardjortega has quit [Quit: richardjortega]
amskah has quit [Quit: Leaving]
zorak has quit [Read error: Connection reset by peer]
azkah has joined #ruby
zorak has joined #ruby
porco has joined #ruby
some1else has quit []
jorts has quit [Quit: jorts]
tcstar has quit [Ping timeout: 240 seconds]
francisfish has joined #ruby
_sambao21 has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
crystal77 has quit [Quit: Computer has gone to sleep.]
<BraddBitt> ugh
<BraddBitt> the sketch is just so painfully accurate benzrf
<BraddBitt> even with how over-the-top it is
<combusean> motherfuckers
<combusean> benzrf, fuse is kinda broken on os x
<combusean> with brew
nisstyre has joined #ruby
francisfish has quit [Ping timeout: 240 seconds]
<benzrf> >tfw
<benzrf> BraddBitt: yeah
<benzrf> i find it hard to watch
<combusean> benzrf, what is >tfw?
saarinen has quit [Quit: saarinen]
<benzrf> that feel when
<benzrf> its chanspeak
<havenwood> combusean: trans field warp
<BraddBitt> lmao
<benzrf> it has infected my brain
<benzrf> :(
<combusean> oh
<combusean> i'm a redditor :P
<benzrf> i dont even like 4chan much
<benzrf> nor do i visit it often
<combusean> before that was a slashdotter
<centrx> benzrf has been absorbed into reddit/4chan land
<benzrf> it's just worked its way into my automatic vocab
<benzrf> D:
<combusean> lol
<benzrf> >tfw greentexting in irc
<centrx> Whole society is being absorbed by reddit/4chan
<combusean> uhh
<benzrf> christ the internet is awful
<combusean> that is a narrow definition of whole society centrx :P
<centrx> benzrf = whole society
<centrx> QED
<benzrf> kek
<combusean> lol
<benzrf> reddit ruined my life AMA
<popl> This sure looks a lot like 4chan…
<selina345> lol
<benzrf> tbh reddit has probably actually been a good thing for me
<centrx> Even digg destroyed by reddit/4chan
<popl> Or at least a cross between 4chan and a text conversation between my niece and one of her friends.
<combusean> digg destroyed itself
<combusean> it was a giant scam, and that's why people left.
<benzrf> cuz the metasphere that jerks about all of its awful parts made me realize my own issues with those awful parstg
<benzrf> i fit the neckbeard personality profile to a t
<benzrf> close one o.o
<popl> It's like horoscopes, benzrf.
* combusean fits no personality.
<benzrf> yea?
<combusean> i thought i was unique in phoenix, then I came to SF
<popl> I'm sure non-tech savvy folks fit the "profile" you're thinking of too.
<benzrf> oh im not saying its rare
mattmcclure has joined #ruby
<benzrf> im just saying
<selina345> combusean: i wanna be inSFFFF
<selina345> :(
<selina345> sobad
<benzrf> like 90% of the threads ive seen on circlebroke dissecting the mentality of the typical redditor and why reddit is so awful because of those parts
<benzrf> fit me perfectly
<popl> any (well, ok most) guys can get lazy and grow a beard.
<combusean> selina345, privmsg me about it, i like helping people come to SF
<selina345> for reals
<selina345> k
<BraddBitt> man
<popl> benzrf: I guess an agent of change can be a good thing, in any guise.
<benzrf> mhm
dapz has joined #ruby
<BraddBitt> i wish you could do parallel assignment in a ternary operator
<BraddBitt> that would be cool
<benzrf> BraddBitt: wut
<BraddBitt> x, y = (true ? a, b : b, a )
<benzrf> 3perl5me
<popl> selina345: he'll even give you a job
<BraddBitt> ( ≖‿≖)
<benzrf> BraddBitt: just use []
<benzrf> >> x, y = (true ? a, b : b, a )
<eval-in> benzrf => /tmp/execpad-3d0a234cc77e/source-3d0a234cc77e:2: syntax error, unexpected ',', expecting ':' ... (https://eval.in/133005)
<benzrf> >> x, y = (true ? [a, b] : [b, a])
<eval-in> benzrf => undefined local variable or method `a' for main:Object (NameError) ... (https://eval.in/133006)
mehlah has quit [Quit: Leaving...]
sepp2k has quit [Quit: Leaving.]
<benzrf> ive come to some of my own conclusions also
<benzrf> meh nvm
tcstar has joined #ruby
yourmysin has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
Kricir has joined #ruby
bitcycle has joined #ruby
<bitcycle> Hey all. Can I do this command with ruby openssl apis? openssl verify -CApath /opt/my_custom_certstore -crl_check public-cert.pem
lxsameer has joined #ruby
tkuchiki_ has joined #ruby
jamto11 has joined #ruby
danijoo has joined #ruby
CaptainJet has joined #ruby
pigzzcanfly has joined #ruby
bogeyd6 has quit [Ping timeout: 255 seconds]
<centrx> bitcycle, It seems like something exec/system would be useful for
Krypt has joined #ruby
werdnativ has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has quit [Ping timeout: 255 seconds]
centrx has quit [Quit: All this computer hacking is making me thirsty]
robustus has quit [Ping timeout: 255 seconds]
jamto11 has quit [Ping timeout: 252 seconds]
selina345 has left #ruby [#ruby]
timonv has joined #ruby
Martxel_ has quit [Ping timeout: 246 seconds]
browndawg has quit [Quit: Leaving.]
Kryptonical has quit [Ping timeout: 240 seconds]
robustus has joined #ruby
<werdnativ> Given a string of hex like "ffcc33", can "unpack" turn it into ordinal bytes like [255, 204, 51]?
<werdnativ> I see a lot of examples use scan(/../) to get the character pairs. Is there a better way without a regexp?
chris_th_ is now known as chris_thomson
mesamoo has quit [Quit: Konversation terminated!]
oo_ has quit [Remote host closed the connection]
kobain has quit [Ping timeout: 255 seconds]
kobain has joined #ruby
<werdnativ> I have: text.scan(/../).map { |h| h.to_i(16) } but wondering if there's a more direct way.
oo_ has joined #ruby
snuffeluffegus has quit [Quit: Leaving]
mercwithamouth has quit [Ping timeout: 246 seconds]
<benzrf> werdnativ:
genescissors has quit [Ping timeout: 255 seconds]
<benzrf> >> 'foobarbaz'.chars.each_slice 2
<eval-in> benzrf => #<Enumerator: ["f", "o", "o", "b", "a", "r", "b", "a", "z"]:each_slice(2)> (https://eval.in/133007)
emaxi_ has quit [Remote host closed the connection]
AndyWojo has quit [Read error: Operation timed out]
<benzrf> >> 'foobarbaz'.chars.each_slice(2).to_a
<eval-in> benzrf => [["f", "o"], ["o", "b"], ["a", "r"], ["b", "a"], ["z"]] (https://eval.in/133008)
AndyWojo has joined #ruby
<benzrf> werdnativ: wait a sec
<benzrf> >> 'foo'.unpack
<eval-in> benzrf => wrong number of arguments (0 for 1) (ArgumentError) ... (https://eval.in/133009)
havenwood has quit [Remote host closed the connection]
<benzrf> >> '\x02\x03'.unpack 'a'
<eval-in> benzrf => ["\\"] (https://eval.in/133010)
<benzrf> p:
<benzrf> >> '\x02\x03'.unpack 'aa'
<eval-in> benzrf => ["\\", "x"] (https://eval.in/133011)
supermarin has quit [Quit: Computer has gone to sleep.]
danijoo has quit [Remote host closed the connection]
siwica has quit [Ping timeout: 246 seconds]
trhodes_ has quit [Quit: ZNC - http://znc.in]
<werdnativ> benzrf: thanks, that might be better.
<werdnativ> Still I suspect there's a more direct way...
emaxi has joined #ruby
_sambao21 has quit [Quit: Computer has gone to sleep.]
* benzrf shrugs
Dysruption has joined #ruby
<krz> i have an array of hashes in a file. https://gist.github.com/8d8cc514ad4d6b7571d5 assigns the values of each line to var h. but it seems like its escaping each character. how do i assign the values as is?
<benzrf> >> 'foo bar'.bytes
<eval-in> benzrf => [102, 111, 111, 32, 98, 97, 114] (https://eval.in/133012)
<benzrf> :-)
<benzrf> o wait i see
<benzrf> derp
<benzrf> wrong thing haha
<werdnativ> benzrf: yeah, each pair of chars is a byte
sdouglas has joined #ruby
michael_lee has joined #ruby
sdwrage has joined #ruby
<benzrf> each_slice is probably the least perlish way to do it
<benzrf> [i say that as a good thing]
<werdnativ> haha, yeah.
<krz> ecen File.readlines('daily_stats').each { |line| puts line }
<krz> ecen=even
<krz> escapes "
oo_ has quit [Remote host closed the connection]
<arubin> >> "ffcc33".unpack("a2a2a2").map {|h| h.hex}
<eval-in> arubin => [255, 204, 51] (https://eval.in/133013)
bitcycle has quit [Quit: Page closed]
<werdnativ> :) that's it arubin!
<arubin> werdnativ: I am not sure that this is better than using scan.
habanany has joined #ruby
oo_ has joined #ruby
<benzrf> >> 'ffcc33'.unpack 'a2'
<eval-in> benzrf => ["ff"] (https://eval.in/133014)
<benzrf> hmmm
<benzrf> >> 'ffcc33'.unpack 'h2'
<eval-in> benzrf => ["66"] (https://eval.in/133015)
<werdnativ> yeah, I see. plus, still need to map over it.
<benzrf> >> 'ffcc33'.unpack 'h*'
<arubin> benzrf: Yeah, I already tried that.
<eval-in> benzrf => ["666636363333"] (https://eval.in/133016)
<benzrf> meh
<arubin> benzrf: The other issue with h is that there is also H. One must know the byte order.
<werdnativ> big-endian.
<werdnativ> like normal reading left to right.
<arubin> But I do not understand what h and H are doing exactly.
derek_c has joined #ruby
arietis has joined #ruby
<werdnativ> me neither.
trhodes_ has joined #ruby
<krz> even File.read(path) converts the contents of a file into a string
<krz> is there a way to prevent that?
<werdnativ> I suspect I need one of the unpack directives that return an "Integer" not a String. There's x for moving forward a byte too... hm.
<benzrf> >> 'ffcc33'.unpack 'h'
<eval-in> benzrf => ["6"] (https://eval.in/133017)
<benzrf> ?
<benzrf> abcdef perhaps
<werdnativ> krz: what does your input look like?
<arubin> The example in the documentation is odd: "aaa".unpack('h2H2c') #=> ["16", "61", 97]
oo_ has quit [Remote host closed the connection]
<krz> werdnativ: hang on
advorak has joined #ruby
<arubin> I think that it is taking one character at a time, even with the 2.
JasmeetQA has joined #ruby
<arubin> Which makes sense since each character is two bytes I guess.
<krz> werdnativ: something like "[{\"id\"=>23, \"stat_date\"=>Sat, 29 Mar 2014, \"category\"=>\"general\",
<krz> ...
habanany1 has joined #ruby
narcan has quit [Ping timeout: 255 seconds]
<werdnativ> krz and you want to eval that back into ruby?
Lewix has quit [Remote host closed the connection]
<werdnativ> arubin, benzrf, Getting closer unpacking with "C" but still not sure how to get it to read the pair of chars...
Lewix has joined #ruby
habanany has quit [Ping timeout: 240 seconds]
sdouglas has quit [Remote host closed the connection]
sdouglas has joined #ruby
matcouto has joined #ruby
advorak has quit [Quit: Ex-Chat]
<werdnativ> krz: I'm not sure what your question is.
x1337807x has joined #ruby
obs has joined #ruby
advorak has joined #ruby
<arubin> I really think that "ffcc33".scan(/../).map {|h| h.hex} is your best bet.
<werdnativ> krz: it's not escaping, that's just how it shows the strings. if you use "puts" it won't show the backslashes.
<arubin> You could even more it more specific.
Kricir has quit [Remote host closed the connection]
SolarSailor has joined #ruby
crystal77 has joined #ruby
<arubin> >> "ffcc33".scan(/[0-9a-f]{2}/).map {|h| h.hex}
<werdnativ> arubin: yeah, it works. I was just playing and thinking there has to be a way to unpack it directly... maybe not.
* arubin looks at eval-in
kukyakya has quit [Remote host closed the connection]
chris_thomson has quit [Quit: Zzz...]
<arubin> To be even more accurate: "FFCC33".scan(/[0-9a-f]{2}/i).map {|h| h.hex}
evenix has joined #ruby
bogeyd6 has joined #ruby
dseitz has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
zcreative has joined #ruby
rm_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
rm_ has joined #ruby
<krz> werdnativ: the original content of the file looks like this: [{"id"=>50, "user_id"=>64, "category"=>"general", ...
funburn has quit [Quit: funburn]
<krz> id like to assign that value to a ruby var
<krz> not as a string though, but as an array of hashes
<werdnativ> krz you'd have to do arr = eval(line)
_justin has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
<krz> ah
Kricir has joined #ruby
<benzrf> werdnativ: ewwwwwwwwww
phansch has joined #ruby
<benzrf> krz: do not listen to this BAD PERSON
<arubin> krz: How much do you trust the author of this file?
<werdnativ> mind that eval is evil... but if you want to go from that to ruby values that's the way.
<benzrf> i believe apeiros [or somebody else in this chan] made a gem for parsing data literals
<werdnativ> krz but I would ultimately suggest something like JSON for that.
genescissors has joined #ruby
<krz> inteersting gem
<werdnativ> I wonder how easily it can be broken...
<benzrf> python has that particular feature in the stdlib :3
<benzrf> u jely rooby scrubz
oo_ has joined #ruby
<arubin> Not really.
<werdnativ> that gem does look cool.
bogeyd6 has quit [Ping timeout: 255 seconds]
darmou has joined #ruby
<arubin> How often is one really going to come across Ruby data structures being used for data exchange?
<arubin> Or Python for that matter.
<werdnativ> agreed. I think it masks over the fact that you're still evaling input.
<benzrf> Just Use Marshal <tm>
<benzrf> werdnativ: or is it doing that?
Melpaws1 has joined #ruby
<benzrf> check the code
<benzrf> im gonna guess it parses it then traverses the nodes doing evaluation
<werdnativ> haven't looked, I assume it has to regexp the code and eventually turn the input into ruby somehow...
<benzrf> as opposed to
<benzrf> 'checking if its safe'
<benzrf> or some shit
<werdnativ> so there's some point when it has to eval "42" into 42.
<krz> ok well lets say the file was json instead
<krz> how coudl i convert it back to ruby?
<benzrf> >implying parsing ruby with regex is a thing
<werdnativ> krz: JSON.parse
<krz> swee
<krz> ok ill use json then
Melpaws has quit [Read error: Connection reset by peer]
funburn has joined #ruby
<arubin> It does not appear to use eval.
* werdnativ cracks open lib/literal_parser to see
<benzrf> arubin: i should certainly hope not
<benzrf> wait wtf is this
* benzrf slaps Apocalypse
<benzrf> oh shit
<benzrf> i meant apeiros
<benzrf> >.<
<benzrf> oh noooo
<benzrf> i thought you were on the side of the angels apeiros
<benzrf> i really thought you were
<benzrf> i trusted you, once
<benzrf> why did u have to throw it all away
<benzrf> ;-;
* benzrf sinks to his knees
<benzrf> fiiiine i guess ill have to write my own version w/ ruby_parser
<benzrf> [insert blackjack & hookers meme here]
<werdnativ> ruby_parser or such is a better idea. If you're gonna eval then be explicit about it.
<arubin> benzrf: What is your objection to the way that this is done?
<benzrf> it is poor
<benzrf> for 1
<benzrf> it uses regex
<benzrf> ;-;
<werdnativ> I guessed regex + eval before even looking ;-)
<arubin> At some level, do most parsers not use regex eventually?
<arubin> werdnativ: It uses eval for one case where it has already checked input.
<werdnativ> arubin: not really. usually a stack that you push tokens onto.
porco has quit [Quit: Leaving...]
<arubin> werdnativ: Yes, but how do you split into tokens?
x77686d has quit [Quit: x77686d]
arietis has quit [Quit: Computer has gone to sleep.]
x77686d has joined #ruby
<benzrf> > 12:55 < arubin> At some level, do most parsers not use regex eventually?
<werdnativ> read bytes. Fundamentally you're right that you scan the input, but it's typically not a "general" regex parser but one that's designed for the things you need.
<benzrf> u have lost 1 respect point
<jarray52> I'm getting a seg fault while using the Ruby debugger. The problem does not occur if I'm not using the Ruby debugger.
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jarray52> What's the best way to proceed with discussing this issue?
Dysruption has quit [Quit: Dysruption]
<benzrf> arubin: ill have u know i made a vaguely Parsec-like mini parser lib for fun once
x77686d has quit [Client Quit]
<benzrf> it was FULLY FUNKSHUNAL
<benzrf> without ur goddamn regex
<benzrf> k??
<werdnativ> jarray52: what version of ruby, what debugger? There are various incompatible combos.
<benzrf> arubin: ?
<benzrf> what does this prove
brucelee has joined #ruby
<arubin> Nothing. I am still reading through it.
<arubin> I see some use of scan with regex.
<benzrf> arubin: i want you to try parsec before you say anything more about parsing at any time
<benzrf> >:(
<jarray52> werdnativ: ruby-2.1.1 and debugger 1.6.6.
Jon30 has quit [Ping timeout: 255 seconds]
nisstyre has quit [Quit: bai]
<jarray52> werdnativ: This occurs in a Rails application. Does ruby-2.1.1 completely specify the sourcecode? (the patch numbers are no longer there. I haven't read up on the new versioning system.)
<werdnativ> jarray52: debugger gem known issues: https://github.com/cldwalker/debugger#known-issues
<arubin> benzrf: I just want to know whether you now hate ruby_parser too, since it appears to use quite a bit of regex.
* benzrf weeps
jenskarlsen has joined #ruby
<werdnativ> jarray52: `ruby --version` should tell you the patchlevel but your problem might be fundamental to 2.0+
<jarray52> werdnativ: Thanks. I'm using ruby 2.1.1p76
Solnse has quit [Quit: Leaving.]
<werdnativ> jarray52: pry with pry-byebug are a good combo.
mary5030 has quit [Remote host closed the connection]
arietis has joined #ruby
mary5030 has joined #ruby
<jarray52> werdnativ: Thanks. That's extremely helpful.
kevinykchan has joined #ruby
<jarray52> werdnativ: I'll look into it.
<benzrf> arubin: u have not known how pleasant parsing can be until youve done it with monads
<benzrf> :-3
<arubin> I will take your word for it.
derek_c has quit [Read error: Operation timed out]
<werdnativ> hipster.
<benzrf> u wut
<benzrf> just cuz i am a hipster
<benzrf> does not make monads not legitimately a great abstraction
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<werdnativ> I still don't get monads. I think I get functional combinators, but it's like an abstract combinator for combinators or something?
parduse has quit [Ping timeout: 255 seconds]
parduse has joined #ruby
narcan has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
<arubin> werdnativ: There is a good talk that helped me to almost understand monads.
<arubin> One moment.
<werdnativ> by the way, this: http://www.youtube.com/watch?v=FITJMJjASUs
<benzrf> werdnativ: hold on i got u
<benzrf> werdnativ: do u get functors?
mary5030 has quit [Ping timeout: 240 seconds]
<benzrf> ew
<benzrf> more of those
<benzrf> burritos!
<werdnativ> I'd have to look it up again, the terminology falls out of my head if I don't use the stuff.
<benzrf> werdnativ:
<benzrf> class Functor f where fmap :: (a -> b) -> f a -> f b
<benzrf> instance Functor [] where fmap = map
iliketurtles has joined #ruby
<benzrf> instance Functor Maybe where fmap f (Just v) = Just (f v); fmap _ Nothing = Nothing
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
Doppp has joined #ruby
sensen has quit [Ping timeout: 252 seconds]
* combusean blinsk
<combusean> blinks
<combusean> I've never seen :: or -> in ruby
<arubin> werdnativ: And yes, the Jim Weirich talk on the Y-Combinator did help me to understand it.
<arubin> Not that I could write it from memory.
<arubin> combusean: I am fairly certain that we are being treated to some Haskell.
<werdnativ> ultimate kata
<combusean> oh
* combusean bans benzrf
burgess|vayo has joined #ruby
<benzrf> >mfw haskell bigots
<arubin> Haskell is one of those languages where I cannot understand most code just by looking at it.
<combusean> mfw?
<combusean> your chanspeak ...
<arubin> Especially when it is written in the point free style.
Bumptious has quit [Remote host closed the connection]
<arubin> One day I will correct this, but it is far down my list.
<combusean> i do not know haskell
Bumptious has joined #ruby
braincra- has joined #ruby
dh64 has joined #ruby
<arubin> benzrf: Do you visit ##programming? Several people there enjoy beating everyone over the head with Haskell.
crodas has quit [Remote host closed the connection]
crodas has joined #ruby
* werdnativ goes down the rabbit hole
Bumptious has quit [Remote host closed the connection]
yacks has joined #ruby
<benzrf> arubin: :-)
aagdbl has joined #ruby
Bumptious has joined #ruby
<benzrf> werdnativ: do u know ur functors
andy__ has quit [Remote host closed the connection]
<werdnativ> nope. I'm not deep into f.programming.
<benzrf> they are an abstraction for things whose insides you can run functions over
<benzrf> basically anything where...
<benzrf> class Functor f where fmap :: (a -> b) -> f a -> f b
kitak has quit [Remote host closed the connection]
braincrash has quit [Ping timeout: 246 seconds]
<benzrf> given a func from a to b and a value of type 'f a' (i.e. f parameterized with a), fmap returns something of type 'f b'
<benzrf> if f is []/List, that's
<benzrf> (a -> b) -> [a] -> [b]
<benzrf> aka map
<benzrf> if f is Maybe, that's
<benzrf> (a -> b) -> Maybe a -> Maybe b
<benzrf> aka apply-if-not-null
<arubin> benzrf: Perhaps it is just me, but the Haskell code makes most of this rather difficult to understand.
<benzrf> if f is ((->) a), aka (a ->)
<benzrf> you get
<benzrf> wait
<benzrf> if f is ((->) r), aka (r ->)
<benzrf> u get
Morkel has joined #ruby
evenix has quit [Remote host closed the connection]
<benzrf> (a -> b) -> (r -> a) -> (r -> b)
<benzrf> aka composition!
evenix has joined #ruby
<benzrf> mother
<benzrf> fuckin
<benzrf> functors
<arubin> Now in Ruby.
ekinmur has joined #ruby
ekinmur has quit [Excess Flood]
<benzrf> ruby has no type system =[
ekinmur has joined #ruby
<benzrf> and no ADTs
<benzrf> and no typeclasses.
<benzrf> this gon be hard
ekinmur has quit [Excess Flood]
AlexRussia has quit [Read error: Operation timed out]
<arubin> Ruby has a type system.
<werdnativ> watching the video, but I'm curious if you can show this in ruby benzrf
MatthewsFace has quit [Ping timeout: 246 seconds]
apeiros_ has joined #ruby
rtlong has quit [Ping timeout: 245 seconds]
Mars` has quit [Ping timeout: 245 seconds]
evenix has quit [Ping timeout: 253 seconds]
<benzrf> :\
ekinmur has joined #ruby
<benzrf> kk 1 second
<benzrf> class Array
<benzrf> alias_method :fmap, :map
<benzrf> end
jimeh has quit [Ping timeout: 245 seconds]
G has quit [Ping timeout: 245 seconds]
ekinmur has quit [Excess Flood]
<benzrf> ^fmap on arrays!
<benzrf> class NilClass
<benzrf> def fmap; self; end;
<benzrf> no wai
<apeiros_> benzrf: uh, I thought I had pushed a change where constant lookup was disabled by default :-S
ryanuber has quit [Ping timeout: 245 seconds]
MatthewsFace has joined #ruby
SegFaultAX has quit [Ping timeout: 264 seconds]
omegahm has quit [Ping timeout: 264 seconds]
<apeiros_> the eval *should* be safe as it's whitelisted. but *should* is still only a *should*. deep const get sadly is a good bit slower than eval. not sure I should offer it as an option.
ekinmur has joined #ruby
ekinmur has quit [Excess Flood]
angelixd has quit [Ping timeout: 264 seconds]
G has joined #ruby
<benzrf> class NilClass
<benzrf> def fmap(&_); self; end;
<benzrf> end
<benzrf> class Object
<benzrf> def fmap; yield self; end;
<benzrf> end
<benzrf> ^fmap for Maybe
<benzrf> class Proc
<benzrf> def fmap(&other)
<benzrf> class Proc
<benzrf> def fmap(&other)
<benzrf> proc {|v| other.call(self.call(v))}
<benzrf> end
<benzrf> end
<benzrf> ^fmap for procs
lbwski has quit [Ping timeout: 264 seconds]
apeiros has quit [Ping timeout: 240 seconds]
ekinmur has joined #ruby
angelixd has joined #ruby
browndawg has joined #ruby
SolarSailor has quit [Ping timeout: 240 seconds]
kitak has joined #ruby
jimeh has joined #ruby
timonv has quit [Remote host closed the connection]
ryanuber has joined #ruby
rtlong has joined #ruby
Mars` has joined #ruby
lbwski has joined #ruby
SegFaultAX has joined #ruby
monkegjinni has joined #ruby
francisfish has joined #ruby
ekinmur has quit [Client Quit]
mostlybadfly has quit [Quit: Connection closed for inactivity]
JBreit has joined #ruby
derek_c has joined #ruby
IceDragon has quit [Quit: Space~~~]
francisfish has quit [Read error: Operation timed out]
<benzrf> >tfw functors
tonni has quit [Remote host closed the connection]
JBreit has left #ruby [#ruby]
browndawg has quit [Quit: Leaving.]
armyriad has joined #ruby
weems has quit [Ping timeout: 240 seconds]
monkegjinni has quit [Remote host closed the connection]
tagrudev has joined #ruby
<miah> apeiros_: yes that is i
emaxi has quit [Read error: Connection reset by peer]
omegahm has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
krz has joined #ruby
bluOxigen has joined #ruby
<apeiros_> miah: nice to meet you here :)
burgess|vayo has quit [Quit: ^zzz]
matcouto has joined #ruby
blueOxigen has quit [Ping timeout: 252 seconds]
<benzrf> http://bpaste.net/show/198559 <- works :-)
<benzrf> [not w/ constants]
<benzrf> [could be easily modified]
northfurr has quit [Ping timeout: 255 seconds]
centrx has joined #ruby
quantsini has quit [Quit: meow]
<benzrf> centrx: i will take the nick leftrx
pdtpatrick has quit [Quit: pdtpatrick]
atno has quit [Remote host closed the connection]
iliketurtles has quit [Quit: Textual IRC Client: www.textualapp.com]
sensen has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tonni has joined #ruby
tobago has joined #ruby
* centrx is now known as rightrx
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
renklaf has joined #ruby
<apeiros_> benzrf: I'll check this evening what happened to my change with optional constant resolution. after all, it was a main point of literal parser, not to use eval.
* apeiros_ off for commute now
<benzrf> apeiros_: dude
apeiros_ is now known as apeiros
makara has joined #ruby
rhys has quit [Remote host closed the connection]
<apeiros> ah
<apeiros> will take a look at that too
<apeiros> ruby_parser is zenspiders?
<benzrf> ?
predator217 has quit [Remote host closed the connection]
<apeiros> seems to be :)
jamto11 has joined #ruby
bigkevmcd has joined #ruby
predator117 has joined #ruby
<apeiros> anyway, really gotta go. cya!
apeiros has quit [Remote host closed the connection]
rhys has joined #ruby
apeiros has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
_tpavel has joined #ruby
sski has quit [Remote host closed the connection]
crystal77 has quit [Quit: Computer has gone to sleep.]
sski has joined #ruby
eynj has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
pdtpatrick has joined #ruby
apeiros has quit [Ping timeout: 246 seconds]
lkba has joined #ruby
sski has quit [Ping timeout: 240 seconds]
dhunter has joined #ruby
jprovazn has joined #ruby
<benzrf> bye also
benzrf is now known as benzrf|offline
sdouglas has quit [Remote host closed the connection]
<dhunter> Anyone here now how diaspora athenticates users? Im not a ruby guy.
chichou has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
brucelee has quit [Ping timeout: 255 seconds]
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
bal has joined #ruby
mary5030 has joined #ruby
danijoo has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
sdouglas has joined #ruby
sski has joined #ruby
Nicekiwi has quit [Remote host closed the connection]
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mary5030 has quit [Ping timeout: 255 seconds]
ndrei has joined #ruby
anarang has joined #ruby
s3ri0us has joined #ruby
tonni has quit [Ping timeout: 252 seconds]
kennym has quit [Quit: Leaving.]
defnix has joined #ruby
sski has quit [Remote host closed the connection]
sski has joined #ruby
Lewix has quit [Remote host closed the connection]
weems has joined #ruby
sski has quit [Ping timeout: 240 seconds]
Kricir has quit [Remote host closed the connection]
rahult is now known as rahult_
tonni has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
porco has joined #ruby
danijoo has quit [Remote host closed the connection]
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
MatthewsFace has joined #ruby
jxf has quit [Ping timeout: 255 seconds]
CaptainJet has quit [Ping timeout: 255 seconds]
Jeticus has joined #ruby
monkegjinni has joined #ruby
porco has quit [Ping timeout: 240 seconds]
bambuka has joined #ruby
relix has joined #ruby
Macaveli has joined #ruby
jarray52 has left #ruby [#ruby]
bal has quit [Quit: bal]
Xeago has quit [Ping timeout: 252 seconds]
jackneill has joined #ruby
jackneill has joined #ruby
MatthewsFace has quit [Client Quit]
bal has joined #ruby
Slavox is now known as Slavox|AFK
momomomomo has quit [Quit: momomomomo]
Hobogrammer has quit [Quit: WeeChat 0.4.3]
GreatSUN has quit [Quit: Page closed]
rahult_ is now known as rahult
Zespre has quit [Ping timeout: 252 seconds]
Alina-malina has quit [Ping timeout: 255 seconds]
Alina-malina has joined #ruby
dagobah has joined #ruby
chihhsin has quit [Ping timeout: 252 seconds]
luckyruby has joined #ruby
luckyruby has quit [Remote host closed the connection]
mieko has joined #ruby
luckyruby has joined #ruby
<luckyruby> d
luckyruby has left #ruby [#ruby]
luckyruby has joined #ruby
DouweM has joined #ruby
Xeago has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
werdnativ has quit [Quit: werdnativ]
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
monkegjinni has quit [Remote host closed the connection]
Es0teric has joined #ruby
penguinpowernz has joined #ruby
<penguinpowernz> can i make install ruby into it's own directory
<penguinpowernz> i want to package it
<penguinpowernz> done .configure --prefix=/usr && make -j4
yfeldblum has quit [Ping timeout: 255 seconds]
<penguinpowernz> i thought I could just copy bin, lib, include and share after compilation but that doesn't appear to be the case
Zespre has joined #ruby
chihhsin has joined #ruby
<penguinpowernz> if i could just make install --target="package-dir" it would be sweet
Es0teric has quit [Client Quit]
shaileshg has joined #ruby
dumdedum has joined #ruby
axilaris has quit [Remote host closed the connection]
toastynerd has joined #ruby
sqwirl has joined #ruby
_justin has quit [Quit: _justin]
dapz has joined #ruby
viscera has quit [Quit: viscera]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
monkegjinni has joined #ruby
azkah1 has joined #ruby
apeiros has joined #ruby
Xeago has quit [Remote host closed the connection]
browndawg has joined #ruby
sputnik13 has joined #ruby
olivier_bK has quit [Ping timeout: 246 seconds]
ahawkins has joined #ruby
_justin has joined #ruby
DouweM has quit [Ping timeout: 240 seconds]
canton7 has joined #ruby
Kneferilis has joined #ruby
charliesome has joined #ruby
sputnik13 has quit [Read error: Connection reset by peer]
sputnik13 has joined #ruby
blackmesa has joined #ruby
quantsini has joined #ruby
supersym has quit [Quit: WeeChat 0.4.3]
timonv has joined #ruby
aganov has joined #ruby
funburn has quit [Quit: funburn]
davedev24 has quit [Remote host closed the connection]
claymore has joined #ruby
timonv has quit [Read error: Connection reset by peer]
sigurding has joined #ruby
timonv_ has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
timonv has joined #ruby
tobago is now known as Z0_R1_N
fabrice31 has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
lsmola_ has joined #ruby
tonni has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 240 seconds]
weems has quit [Read error: Connection reset by peer]
sigurding has quit [Read error: Connection reset by peer]
shashank_rs has joined #ruby
obs has quit [Quit: Konversation terminated!]
timonv has quit [Remote host closed the connection]
klaut has joined #ruby
timonv has joined #ruby
makara has quit [Ping timeout: 255 seconds]
brucelee has joined #ruby
ndrei has joined #ruby
Aquilo has joined #ruby
yfeldblum has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
greenarrow has joined #ruby
Xeago has joined #ruby
txdv_ has quit [Ping timeout: 255 seconds]
blackmesa has quit [Ping timeout: 265 seconds]
kitak_ has joined #ruby
kitak has quit [Read error: Connection reset by peer]
sdouglas has quit [Remote host closed the connection]
sdouglas has joined #ruby
deadlock has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
francisfish has joined #ruby
yacks has quit [Read error: Operation timed out]
browndawg has quit [Read error: Operation timed out]
sdouglas has quit [Ping timeout: 255 seconds]
phansch has quit [Quit: WeeChat 0.4.2]
Slavox|AFK is now known as Slavox
browndawg has joined #ruby
francisfish has quit [Ping timeout: 240 seconds]
AlSquirrel has quit [Quit: This computer has gone to sleep]
AlexRussia has joined #ruby
Jeticus has quit [Ping timeout: 246 seconds]
heftig has joined #ruby
ndrei has joined #ruby
hermanmunster has quit [Remote host closed the connection]
nemesit|- has quit [Ping timeout: 240 seconds]
shredding has joined #ruby
jonno11 has joined #ruby
CaptainJet has joined #ruby
m0s is now known as m0s^away
nemesit|znc has joined #ruby
oo_ has quit [Remote host closed the connection]
tonni has joined #ruby
AlSquire has joined #ruby
VinceThePrince has joined #ruby
jlebrech has joined #ruby
kaspergr_ has quit [Remote host closed the connection]
Macaveli has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
dyoko has joined #ruby
CaptainJet has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 240 seconds]
riotjones has left #ruby [#ruby]
fabrice31 has quit [Remote host closed the connection]
Zackio has quit [Quit: ZNC - http://znc.in]
yacks has joined #ruby
fabrice31 has joined #ruby
danijoo has joined #ruby
darmou has quit [Quit: darmou]
CaptainJet has joined #ruby
derek_c has quit [Ping timeout: 246 seconds]
Zackio has joined #ruby
CaptainJet has quit [Client Quit]
rylev has joined #ruby
rylev has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
browndawg has quit [Read error: Connection timed out]
Maitiu has joined #ruby
oo_ has quit [Remote host closed the connection]
browndawg has joined #ruby
monkegjinni has quit [Remote host closed the connection]
DaniG2k has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
ghr has joined #ruby
jamto11 has joined #ruby
olivier_bK has joined #ruby
_tpavel has quit [Quit: Leaving]
makara has joined #ruby
_tpavel has joined #ruby
rdark has joined #ruby
rahult has quit [Ping timeout: 246 seconds]
armyriad has quit [Ping timeout: 255 seconds]
elaptic`` is now known as elaptics
oo_ has joined #ruby
armyriad has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
combusean has quit [Ping timeout: 252 seconds]
marr has joined #ruby
kobain has quit []
keeguon has joined #ruby
dr0ff has left #ruby [#ruby]
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
ephemerian has joined #ruby
funburn has joined #ruby
AlexRussia has joined #ruby
joonty has quit [Quit: WeeChat 0.4.2]
nfk has joined #ruby
Xeago has joined #ruby
nvrch has joined #ruby
DaniG2k_ has joined #ruby
qba73 has joined #ruby
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
bluenemo has joined #ruby
DaniG2k has quit [Ping timeout: 255 seconds]
Jonah11_ has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
scttnlsn has quit [Ping timeout: 240 seconds]
joonty has joined #ruby
nhhagen has joined #ruby
francisfish has joined #ruby
rm_ has quit [Ping timeout: 255 seconds]
skaflem has joined #ruby
einarj has joined #ruby
jason_ has joined #ruby
Hanmac has joined #ruby
funburn has quit [Quit: funburn]
ndrei has quit [Ping timeout: 255 seconds]
Hanmac1 has quit [Ping timeout: 252 seconds]
rahult has joined #ruby
jlebrech has quit [Quit: Konversation terminated!]
jason_ has quit [Ping timeout: 246 seconds]
shashank_rs has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby
shashank_rs has joined #ruby
browndawg has quit [Read error: Connection timed out]
DaniG2k_ has quit [Quit: leaving]
kaspergrubbe has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
kaspergrubbe has joined #ruby
canton7-mac has joined #ruby
canton7-mac has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 255 seconds]
Xeago_ has joined #ruby
canton7-mac has joined #ruby
VinceThePrince has quit [Read error: No route to host]
Johnny has joined #ruby
timonv has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kaspergr_ has joined #ruby
Xeago has quit [Ping timeout: 255 seconds]
kaspergrubbe has quit [Ping timeout: 246 seconds]
rylev has joined #ruby
davidmles has joined #ruby
pdtpatrick has quit [Quit: pdtpatrick]
mehlah has joined #ruby
sdouglas has joined #ruby
rylev has quit [Remote host closed the connection]
davidmles has left #ruby [#ruby]
rylev has joined #ruby
Quadlex has joined #ruby
himsin has joined #ruby
m0s^away is now known as m0s
s3ri0us has quit [Quit: Linkinus - http://linkinus.com]
greenarrow has quit [Quit: 500]
azkah has quit [Quit: WeeChat 0.4.2]
psyko666 has quit [Quit: Leaving]
davidmles has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
davidmles has left #ruby [#ruby]
sdouglas has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
Lewix has joined #ruby
jlebrech has joined #ruby
jokke1 has quit [Disconnected by services]
jokke1 has joined #ruby
phansch has joined #ruby
AlSquire has joined #ruby
Mon_Ouie has joined #ruby
jokke has quit [Quit: WeeChat 0.4.3]
jokke1 has quit [Client Quit]
jokke has joined #ruby
greenarrow has joined #ruby
jottr_ has joined #ruby
Dr3amc0d3r|away has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Quit: ciao.]
Xeago_ has quit [Remote host closed the connection]
shashank_rs has quit [Read error: Operation timed out]
dumdedum has quit [Ping timeout: 252 seconds]
jollyy has joined #ruby
Dr3amc0d3r|away has joined #ruby
mikecmpbll has joined #ruby
ndrei has quit [Remote host closed the connection]
obs has joined #ruby
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
timonv has quit [Remote host closed the connection]
anarang has quit [Ping timeout: 255 seconds]
timonv has joined #ruby
rahult is now known as rahult_
rahult_ is now known as rahult
timonv has quit [Read error: Connection reset by peer]
Bish_ is now known as Bish
timonv has joined #ruby
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
ndrei has joined #ruby
weems has joined #ruby
brucelee has quit [Ping timeout: 240 seconds]
m0s is now known as m0s^away
greenarrow has quit [Quit: 500]
obs has quit [Quit: Konversation terminated!]
greenarrow has joined #ruby
obs has joined #ruby
peterellisjones has joined #ruby
agjacome has joined #ruby
Xeago has joined #ruby
gaussblurinc has joined #ruby
Zai00 has joined #ruby
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CaptainJet has joined #ruby
anarang has joined #ruby
helpa has quit [Remote host closed the connection]
dumdedum has joined #ruby
fluve has quit []
Radar has quit [Ping timeout: 246 seconds]
crazysim has quit [Ping timeout: 246 seconds]
nari has quit [Ping timeout: 264 seconds]
helpa has joined #ruby
quantsini has quit [Ping timeout: 255 seconds]
erichmenge has quit [Ping timeout: 240 seconds]
DouweM has joined #ruby
narcan has quit [Ping timeout: 246 seconds]
n88 has quit [Ping timeout: 240 seconds]
zastern has quit [Ping timeout: 240 seconds]
jericon has quit [Ping timeout: 240 seconds]
Radar has joined #ruby
quantsini has joined #ruby
crazysim has joined #ruby
jericon has joined #ruby
erichmenge has joined #ruby
mbuf has joined #ruby
pedda has joined #ruby
<mbuf> is there a way to install a list of dependency gems for a rubygem using 'gem or bundle install'?
klaut has quit [Remote host closed the connection]
narcan has joined #ruby
Xeago has quit [Remote host closed the connection]
ikaros has joined #ruby
Shidash has joined #ruby
Xeago has joined #ruby
n88 has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
nhhagen has quit [Remote host closed the connection]
thomasxie has quit [Quit: Leaving.]
blackmesa has joined #ruby
<apeiros> mbuf: bundler writes all dependencies into Gemfile.lock
mehlah has quit [Quit: Leaving...]
Xeago_ has joined #ruby
<mbuf> apeiros, if I have a hola-0.0.1.gem, will 'gem install' ensure listing all the dependencies?
<mbuf> apeiros, or they will need to be listed in the .gemspec?
Xeago has quit [Ping timeout: 252 seconds]
tacos1de has quit [Ping timeout: 265 seconds]
thomasxie has joined #ruby
sski has joined #ruby
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
CaptainJet has quit []
Speed has joined #ruby
tacos1de has joined #ruby
brucelee has joined #ruby
andikr has joined #ruby
Xeago_ has quit [Remote host closed the connection]
nari has joined #ruby
Martxel_ has joined #ruby
Jetchisel has joined #ruby
jollyy has quit [Ping timeout: 240 seconds]
krandi has joined #ruby
burgess|vayo has joined #ruby
rahult has joined #ruby
krandi has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andikr has quit [Remote host closed the connection]
andikr has joined #ruby
Xeago has joined #ruby
shredding has quit [Quit: shredding]
Xeago has quit [Remote host closed the connection]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
azkah1 has quit [Read error: Connection reset by peer]
maximski has joined #ruby
jollyy has joined #ruby
fella7s has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
shredding has joined #ruby
Johnny has quit [Quit: Leaving]
obs_ has joined #ruby
Macaveli has joined #ruby
burgess|vayo has quit [Quit: ^zzz]
ndrei has quit [Remote host closed the connection]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
obs_ has quit [Client Quit]
Hanmac has joined #ruby
sensen has quit [Ping timeout: 252 seconds]
_justin has quit [Quit: _justin]
brucelee has quit [Ping timeout: 240 seconds]
Hanmac1 has quit [Ping timeout: 255 seconds]
_justin has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
blackmesa has quit [Quit: WeeChat 0.4.3]
Hanmac1 has joined #ruby
ndrei has joined #ruby
mengu has quit [Remote host closed the connection]
armyriad has joined #ruby
Hanmac has quit [Ping timeout: 246 seconds]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonno11 has joined #ruby
jollyy has quit [Quit: jollyy]
vlad_starkov has joined #ruby
nhhagen has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
arietis has joined #ruby
kevinykchan has joined #ruby
kaspergr_ has quit [Ping timeout: 240 seconds]
francisfish has quit [Remote host closed the connection]
funburn has joined #ruby
nari has quit [Ping timeout: 240 seconds]
francisfish has joined #ruby
Jetchisel has quit [Ping timeout: 260 seconds]
rahult is now known as rahult_
Martxel_ is now known as Martxel
thomasxie has quit [Remote host closed the connection]
<crome> hey humans, does anyone use a non-macbook air ultrabook?
papercode has joined #ruby
psyko666 has joined #ruby
papercode has quit [Client Quit]
shaileshg has quit [Quit: Connection closed for inactivity]
funburn has quit [Quit: funburn]
<danijoo> @crome yeah, why u ask?
Martxel has quit [Ping timeout: 255 seconds]
kennym has joined #ruby
Hanmac has joined #ruby
jamto11 has joined #ruby
nvrch has quit [Quit: nvrch]
Hanmac1 has quit [Ping timeout: 253 seconds]
fabrice31 has quit [Remote host closed the connection]
ivangood has quit [Remote host closed the connection]
Port3M5[Work] has quit [Remote host closed the connection]
aagdbl has quit [Quit: This computer has gone to sleep]
aagdbl has joined #ruby
jamto11 has quit [Ping timeout: 246 seconds]
Hanmac has quit [Ping timeout: 252 seconds]
cover has joined #ruby
Port3M5[Work] has joined #ruby
yfeldblum has quit [Remote host closed the connection]
mgomezch has joined #ruby
yfeldblum has joined #ruby
rylev has quit [Remote host closed the connection]
jollyy has joined #ruby
arnis has quit [Read error: Operation timed out]
mengu has joined #ruby
dukz has joined #ruby
arnis has joined #ruby
francisfish has quit [Remote host closed the connection]
Macaveli has quit [Quit: Leaving]
fgo has joined #ruby
banister has joined #ruby
claymore has quit [Ping timeout: 255 seconds]
francisfish has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
rylev has joined #ruby
rylev has quit [Remote host closed the connection]
claymore has joined #ruby
mbuf has quit [Ping timeout: 240 seconds]
rylev has joined #ruby
vlad_sta_ has joined #ruby
Speed has quit [Ping timeout: 240 seconds]
aagdbl has quit [Quit: This computer has gone to sleep]
rahult_ is now known as rahult
Hanmac has joined #ruby
rahult is now known as rahult_
ixti has joined #ruby
ndrei has quit [Remote host closed the connection]
rahult_ is now known as rahult
fella7s has quit [Ping timeout: 246 seconds]
ctp has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
aagdbl has joined #ruby
sensen has joined #ruby
fella7s has joined #ruby
maximski has quit []
maximski has joined #ruby
rylev has quit [Read error: Connection reset by peer]
rylev has joined #ruby
ctp has quit [Client Quit]
sski has quit [Remote host closed the connection]
charliesome has joined #ruby
Bish has quit [Excess Flood]
sski has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
maximski has quit [Ping timeout: 252 seconds]
mbuf has joined #ruby
_justin has quit [Quit: _justin]
anarang has quit [Ping timeout: 252 seconds]
browndawg has joined #ruby
aagdbl has joined #ruby
Bish has joined #ruby
klaut has joined #ruby
dyoko has quit [Quit: Leaving.]
mehlah has joined #ruby
<apeiros> mbuf: the author of the gem must inform rubygems about its dependencies via the .gemspec. rubygems isn't driven by magic and pixie dust, after all ;-)
sski has quit [Ping timeout: 246 seconds]
davedev24 has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mehlah has quit [Client Quit]
brucelee has joined #ruby
fannye has joined #ruby
fgo has quit [Remote host closed the connection]
nomenkun has joined #ruby
_justin has joined #ruby
rylev has quit [Ping timeout: 246 seconds]
kevinykchan has quit [Quit: Computer has gone to sleep.]
brucelee has quit [Ping timeout: 252 seconds]
gabrielCmendes has quit [Ping timeout: 240 seconds]
anarang has joined #ruby
<crome> disappointing!
<crome> danijoo: which one?
<danijoo> lenovo ;)
yfeldblum has joined #ruby
<crome> Im thinking about buying and Im looking for some opinions
workmad3 has joined #ruby
workmad3 has quit [Client Quit]
<danijoo> i have this lenovo yoga 13 ultrabook/tablet hybrid thing
Xeago has joined #ruby
<danijoo> and im quite happy with it
<crome> how does it fare with battery life?
<crome> and what os are you running on it?
<danijoo> 4-5 hours depending on what im doing i think
<danijoo> and windows 8. because there are no stable wifi drivers for linux yet :(
mostlybadfly has joined #ruby
workmad3 has joined #ruby
workmad3 has quit [Client Quit]
<crome> oh
<crome> bummer
<danijoo> yeah thats a negative point. :)
<apeiros> funny, only 3y ago I would have found 4-5h a quite good operating time
<crome> this macbook air I got from the company set the battery life standard pretty high
<crome> it is just driving me crazy
<danijoo> well its 4-5 while compiling stuff every few minutes etc.
Speed has joined #ruby
<danijoo> it may be more with usual "couch-work" :p
<apeiros> ok. I don't regularly compile stuff. so no idea how it'd look there.
<apeiros> but coding, I easily get 10h+
<danijoo> yeah i think there isnt much beating the new airbooks batteries
yfeldblum has quit [Ping timeout: 265 seconds]
* apeiros hopes that time will go even further up in future
Xeago has quit [Ping timeout: 240 seconds]
<crome> Im wondering if running linux on the air is feasible within reasonable limits
<danijoo> but i dont really bother about battery as long as it gets me to university and home every day :>
workmad3 has joined #ruby
<apeiros> would be nice not having to charge the laptop for a whole day, no matter what you do. e.g. flash in chrome -> 2-3h (flash in safari is 5-6h)
<crome> but something tells me I should forget about getting the webcam and/or the wifi to work
mehlah has joined #ruby
<Hanmac> tomorrow is the big day ;P
<rdark> crome: lenovo x240. 20+ hours battery life
<popl> Hanmac: Tacos?
<popl> Tacos are awesome.
<Hanmac> popl: Support end from WindowsXP ... buried next to the support end from ruby1.8
kaspergr_ has joined #ruby
mbuf has quit [Ping timeout: 246 seconds]
<popl> Hanmac: The British government bought extra support for XP.
vlad_sta_ has quit []
<Hanmac> yeah some goverments in germany bourght it too because "some" company didnt managed to migrate the pcs to newer versions
<crome> rdark: Im not saying that battery life is of the utmost importance, I would just like to have an idea about what different models are capable of compared to my current device
<crome> but it definitely sounds good
<crome> althogh lenovo.com sayts its "up to 6 hours" ;>
workmad3_ has joined #ruby
kaspergrubbe has quit [Ping timeout: 255 seconds]
<rdark> crome: if you buy the elite docking station and a pair of DP 1.2 MST hubs, it'll drive 6 monitors at 2560x1600
<rdark> that's with the built-in 3 cell battery. It has an additional 6 cell that slots in the back
<danijoo> @crome did u every got the batterylife the companies say it has? XD
<rdark> the 3 cell isn't removeable though, it'ls built-in
izzol has joined #ruby
<apeiros> ah that's the one reeeally dissappointing fact about my macbook retina (mid 2012) - it can only drive a 4K screen via HDMI, and only at 30Hz :(
mbuf has joined #ruby
* apeiros wants 2x4K 24"
dyoko has joined #ruby
workmad3 has quit [Quit: leaving]
workmad3 has joined #ruby
<rdark> apeiros: samsung announced some cheap (ish) 27" 4k displays the other week.
<crome> danijoo: surprisingly enough the macbook air lives up to it
<izzol> apeiros: my brand new macbook air doens't work at all with HDMI->TV (samsung) :-)
<apeiros> rdark: dell has cheap-ish 24" 4Ks
<apeiros> so that's not really the problem
workmad3_ has quit [Client Quit]
workmad3 has quit [Client Quit]
<rdark> imho, 6x 1920x1200 (16:10 aspect ratio) is just fine
<apeiros> the problem is that the displayport/thunderbolt ports on the 2012 MBR can't drive it
<rdark> ah.
<apeiros> and over HDMI only at 30Hz, which is reported to be unpleasant for things like scrolling
noop has joined #ruby
<apeiros> I guess it just means that I'll get a new laptop this or next year :D
<crome> cmon, its 4k
<crome> you are not supposed to scroll
<rdark> apeiros: it wouldn't be that much of an issue for general browsing or coding, but you'd notice it for video or gaming
lkba has joined #ruby
thomasxie has joined #ruby
<apeiros> I will use the 4K similarly to how I use the retina - high resolution. not huge workspace.
fgo has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
sski has joined #ruby
twiceaday has quit [Ping timeout: 246 seconds]
evenix has joined #ruby
twiceaday has joined #ruby
mbuf has quit [Ping timeout: 255 seconds]
thomasxie has quit [Client Quit]
Xeago has joined #ruby
claymore has quit [Ping timeout: 255 seconds]
<shevy> god
fabrice31 has joined #ruby
<shevy> you guys are monitor junkies
<apeiros> rdark: SyncMaster LU28D590DS the one you mean?
banister has joined #ruby
_justin has quit [Ping timeout: 255 seconds]
Lewix has quit [Remote host closed the connection]
<apeiros> oh, wow, the dell one got cut down in price a lot… before ~CHF 1300, now CHF 700 (roughly 1200$ and 630$)
evenix has quit [Ping timeout: 240 seconds]
<apeiros> and that only in the last ~6w
<apeiros> wait… that's actually a different product. the one I see now is 28", the one before was 24"
schu has joined #ruby
<rdark> apeiros: yeah, that was the one. afaik, the (cheaper) dell model only had hdmi in, so you could only drive it at 30hz@4k
claymore has joined #ruby
zastern has joined #ruby
nari has joined #ruby
* Hanmac has currently his old CFT because his old TFT was broken and he didnt buy a new one yet
jds has joined #ruby
willb1 has quit [Read error: Operation timed out]
Zambz has joined #ruby
<Hanmac> xD
<banister> Hanmac did u find that funny
<Hanmac> half/half its funny but also sad (that someone did not know the difference)
blackmesa has joined #ruby
_justin has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rylev has joined #ruby
<banister> Hanmac do u have much faith in the future of star wars franchise
shashank_rs has joined #ruby
hermanmunster has joined #ruby
willb1 has joined #ruby
<Hanmac> banister: hm how bad can it be? the worst i could image would be a Starwars movie with a Disney Princess, and even that could be watchable ;P
<banister> Hanmac i find the newer ones nearly unwatchable -- jar jar binks put me off 4 good
<Hanmac> yeah in the movies he was nealry unbearable ... in the animated series, he was okay later after he turned into some kind of "Fake"-Jedi ;P
doodlehaus has joined #ruby
azkah has joined #ruby
rylev has quit [Ping timeout: 246 seconds]
kukyakya has joined #ruby
<crome> jar jar is weird as fuck
<crome> but he is sort of funny when you think about him as a talking horse
<popl> worst character ever
mbuf has joined #ruby
kukyakya has quit [Remote host closed the connection]
jonno11 has quit [Quit: Textual IRC Client: www.textualapp.com]
okdas has joined #ruby
browndawg has quit [Ping timeout: 252 seconds]
Hanmac1 has joined #ruby
sensen has quit [Ping timeout: 252 seconds]
sski has quit [Remote host closed the connection]
sski has joined #ruby
shredding has quit [Quit: shredding]
Hanmac has quit [Ping timeout: 240 seconds]
ktun has joined #ruby
kennym has quit [Ping timeout: 252 seconds]
jack_rabbit_ has joined #ruby
sski has quit [Ping timeout: 255 seconds]
_justin has quit [Quit: _justin]
Zambz has left #ruby [#ruby]
kennym has joined #ruby
jack_rabbit has quit [Ping timeout: 240 seconds]
browndawg has joined #ruby
wolfsoul has joined #ruby
wolfsoul has joined #ruby
jack_rabbit_ is now known as jack_rabbit
sigurding has joined #ruby
viscera has joined #ruby
wolfsoul has quit [Client Quit]
wolfsoul has joined #ruby
hermanmunster has quit [Remote host closed the connection]
mmochan_ has joined #ruby
francisfish has quit [Remote host closed the connection]
DaniG2k has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
sdouglas has joined #ruby
tjbiddle has joined #ruby
wolfsoul has quit [Client Quit]
_justin has joined #ruby
wolfsoul has joined #ruby
kennym has quit [Quit: Leaving.]
kennym has joined #ruby
eka has joined #ruby
atno has joined #ruby
<shevy> Hanmac1, do you use rather module or class for top namespace?
shashank_rs has quit [Ping timeout: 252 seconds]
Hanmac1 is now known as Hanmac
yfeldblum has joined #ruby
<Hanmac> shevy: in most of the chases its a module
<jottr_> does anyone know of a good gem that generates schema.org metadata? I am using middleman and would like to try and embed schema data into my html output
Martxel has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
jottr_ is now known as jottr
luckyruby has quit [Quit: Leaving...]
wolfsoul has quit [Client Quit]
thomasxie has joined #ruby
noob101 has quit [Ping timeout: 245 seconds]
arietis has joined #ruby
robde has joined #ruby
phutchins has joined #ruby
keen__ has joined #ruby
keen__ is now known as keen_
francisfish has joined #ruby
nvrch has joined #ruby
sputnik13 has joined #ruby
ctp has joined #ruby
doodlehaus has quit [Remote host closed the connection]
toretore has joined #ruby
danshultz has joined #ruby
JasmeetQA has quit [Read error: Connection reset by peer]
yalue has joined #ruby
gerep has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
kaspergr_ has quit []
rylev has joined #ruby
rylev_ has joined #ruby
dukz has quit [Remote host closed the connection]
Hanmac has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
jamto11 has joined #ruby
MachineX has joined #ruby
monkegjinni has joined #ruby
rylev has quit [Ping timeout: 246 seconds]
bluenemo has quit [Remote host closed the connection]
jamto11 has quit [Ping timeout: 255 seconds]
tjbiddle has quit [Quit: tjbiddle]
claymore has quit [Ping timeout: 240 seconds]
MachineX has left #ruby [#ruby]
tjbiddle has joined #ruby
<tjbiddle> Hey all - I'm seeing "If String === ...." here https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/package/pip.rb#L76 - What does this mean?
claymore has joined #ruby
<tjbiddle> Both using `String` in a conditional, as well as the triple =. Neither of which I've seen in Ruby thus far.
jacky has quit [Excess Flood]
jacky has joined #ruby
jacky has quit [Excess Flood]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<crome> String is the name of the class strings are instances of
shredding has joined #ruby
monkegji_ has joined #ruby
ktun has quit [Ping timeout: 252 seconds]
krz has quit [Quit: WeeChat 0.4.3]
workmad3 has joined #ruby
sumark has quit [Remote host closed the connection]
monkegji_ has quit [Client Quit]
<crome> >> 'asd'.class
<eval-in> crome => String (https://eval.in/133247)
kraljev6 has joined #ruby
<kraljev6> What is the simplest way to add comparision operator to class?
<kraljev6> ==
<tjbiddle> crome: I know that. So why are they throwing it into a conditional? I don't understand what it's checking
oo_ has quit [Remote host closed the connection]
<crome> and === doing String === something is analogue to doing something.is_a?(String)
sumark has joined #ruby
<crome> oh wow, that sentence is a bit screwed up
<kraljev6> It should return true iff:
<kraljev6> 1. class is the same
<kraljev6> 2. all instance variables compare true with ==
<toretore> http://rubydoc.info/stdlib/core/Module#%3D%3D%3D-instance_method
jxf has joined #ruby
<crome> tjbiddle: it is checking the type of @resource[:ensure]
<toretore> kraljev6: define the method, implement desired behavior
<tjbiddle> crome: Perfect. Thanks!
mbuf has quit [Read error: Operation timed out]
monkegjinni has quit [Ping timeout: 246 seconds]
<kraljev6> toretore: I care about simple code
tkuchiki has quit [Ping timeout: 255 seconds]
<kraljev6> I wonder whether there is something inbuilt
<kraljev6> like:
<kraljev6> include default_compare
<apeiros> 14:19 kraljev6: 1. class is the same
<apeiros> incorrect
<apeiros> subclass works too
<apeiros> >> Enumerable === []
<eval-in> apeiros => true (https://eval.in/133249)
m4n1f3st0 has joined #ruby
<toretore> he's not answering a question ;)
<apeiros> crome said it correctly when he said "analogue to is_a?" (class being the same would be instance_of?)
tvw has joined #ruby
RowdyChild|Away is now known as RowdyChildren
<apeiros> ah, sorry kraljev6 - I thought you were talking about tjbiddle's question
<apeiros> ignore what I said then :)
narcan has joined #ruby
<apeiros> kraljev6: built-in is Object#==, #===, #eql? and #equal? - by default their behavior is identical (object identity)
<apeiros> so you'll have to define your own
dblessing has joined #ruby
sailias has quit [Read error: Operation timed out]
chris_thomson has joined #ruby
sambao21 has joined #ruby
ayaz has joined #ruby
timonv has quit [Remote host closed the connection]
schu has quit [Remote host closed the connection]
jkamenik has joined #ruby
Guedes has joined #ruby
nolic has joined #ruby
sdwrage has joined #ruby
dunix has joined #ruby
brucelee has joined #ruby
<kraljev6> Why doesn't Set have #to_s?
sdwrage has quit [Client Quit]
rmorello has joined #ruby
<shevy> perhaps it was forgotten
aagdbl has joined #ruby
<kraljev6> >> puts Set[:a, :b]
<eval-in> kraljev6 => uninitialized constant Set (NameError) ... (https://eval.in/133254)
<kraljev6> >> require 'set'; puts Set[:a, :b]
<eval-in> kraljev6 => #<Set:0x418233b8> ... (https://eval.in/133255)
mjs2600 has joined #ruby
timonv has joined #ruby
chrisseaton has joined #ruby
m4n1f3st0 has quit []
brucelee has quit [Ping timeout: 240 seconds]
<shevy> though
<shevy> >> require 'set'; x = Set.new; x.respond_to? :to_s
<eval-in> shevy => true (https://eval.in/133256)
<shevy> hmm
<shevy> >> require 'set'; x = Set.new; x.respond_to? :to_str
<eval-in> shevy => false (https://eval.in/133257)
brian___ has joined #ruby
francisfish has quit [Remote host closed the connection]
brian___ has quit [Client Quit]
<kraljev6> yes, that is logical
<kraljev6> because it inherits default #to_s from Object
andrewlio has joined #ruby
Megtastique has joined #ruby
<kraljev6> Well, I'll just monkey patch it
<kraljev6> "{#{to_a * ', '}}"
yfeldblum has joined #ruby
mary5030 has joined #ruby
ayaz has quit [Read error: Connection reset by peer]
m4n1f3st0 has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
Macaveli has joined #ruby
sski has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
_tpavel has quit [Quit: Leaving]
tjr9898 has joined #ruby
davedev24 has quit []
rylev_ has quit [Remote host closed the connection]
jph98 has joined #ruby
rylev has joined #ruby
scarolan has joined #ruby
linojon has joined #ruby
moeSeth_ has joined #ruby
RowdyChildren is now known as RowdyChild|Away
vt102 has joined #ruby
<jokke> hello
<jokke> i'm having some trouble with guard, maybe someone here can help me
Z0_R1_N is now known as tobago
viscera has quit [Quit: viscera]
thomasxie has left #ruby [#ruby]
mary5030 has quit [Remote host closed the connection]
<jokke> i'm using it to compile coffeescript in a web project. When the files have been compiled they need to be merged using juicer. At the moment i'm using a guard shell task to watch for compiled js files, however that way the shell task is run many times (for every compiled js file). Is it possible to chain tasks in guard in another way?
mary5030 has joined #ruby
nbouscal has joined #ruby
<jokke> oh there's a guard channel
<jokke> -> #guard
arietis has joined #ruby
garndt has joined #ruby
mary5030 has quit [Remote host closed the connection]
coderhs has joined #ruby
mary5030 has joined #ruby
himsin has quit [Quit: himsin]
Kneferilis has quit [Quit: Leaving]
tkuchiki has joined #ruby
larissa has joined #ruby
phantummm has joined #ruby
m4n1f3st0 has quit []
ndrei has joined #ruby
Jetchisel has joined #ruby
djbender has joined #ruby
ktun has joined #ruby
Dysruption has joined #ruby
davedev24 has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
aagdbl has quit [Quit: This computer has gone to sleep]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nhhagen_ has joined #ruby
_justin has quit [Quit: _justin]
the_mentat has quit [Ping timeout: 246 seconds]
codabrink has joined #ruby
aagdbl has joined #ruby
dumdedum has quit [Quit: foo]
nhhagen has quit [Ping timeout: 240 seconds]
<jokke> hm #guard is dead..
badhatter_ has quit [Read error: Connection reset by peer]
Dysruption has quit [Quit: Dysruption]
sski has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
sski has joined #ruby
sdwrage has joined #ruby
the_mentat has joined #ruby
osvico has quit [Read error: Connection reset by peer]
rylev has quit [Remote host closed the connection]
jollyy_ has joined #ruby
hermanmunster has joined #ruby
jollyy has quit [Ping timeout: 255 seconds]
jollyy_ is now known as jollyy
osvico has joined #ruby
doodlehaus has joined #ruby
m4n1f3st0 has joined #ruby
rylev has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
phantummm has quit [Quit: phantummm]
mrmargolis has joined #ruby
sski has quit [Ping timeout: 252 seconds]
northfurr has joined #ruby
northfurr has joined #ruby
northfurr has quit [Changing host]
<shevy> yeah!
dawkirst_ has joined #ruby
dukz has joined #ruby
phantummm has joined #ruby
<crome> any rubymine users by any chance?
emaxi has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
<shevy> no!
snath has quit [Ping timeout: 246 seconds]
alexju has joined #ruby
<Jamo> I had used it for one day and the I switched back to VIM
aagdbl has quit [Quit: This computer has gone to sleep]
zachallett has joined #ruby
<crome> yeah, Im generally a happy vim user
pu22l3r has joined #ruby
<crome> its just vim sucks balls on (my) mac
<crome> but asking a few colleagues they have similar issues
<shevy> abandon your dirty vim past, my son!
<crome> such as scrolling/moving around in files in vim makes the cpu burn and its slow as hell
<crome> same with macvim
<Jamo> how old yout mac is?
<shevy> that's vim just taking extra CPU today to give you more CPU power tomorrow
<shevy> it's an investment
<shevy> like bitcoins
osx5 has joined #ruby
<crome> Jamo: latest air
<Jamo> do you use graphical vim or in termina?
<crome> its more like how new it is
<olivier_bK> i try to understand something why there is a class inside a module and after a method ??? https://gist.github.com/zyriuse75/ec1ff71df49c1883c6cd
<crome> iterm2 and tmux
<crome> olivier_bK: first of all, you can define classes where you want, really
<Jamo> I bought 11" air one week ago, I have at least 4 vims running on different iterm2 windows, and cpu uage is 0%
ckinni has joined #ruby
<crome> wherever*
darmou has joined #ruby
<crome> Jamo: I noticed that turning syntax hightlight off "fixes" the problem
<Jamo> have you tried instalin macvim via homebrew?
<crome> yeah, I tried it
viscera has joined #ruby
<crome> 14:26:08 < crome> same with macvim
phantummm has quit [Quit: phantummm]
paulfm has joined #ruby
chris_thomson has quit [Quit: Zzz...]
<olivier_bK> crome, i understand but why after a method why he dont insert the method inside the class ?
<crome> the method is in a class
<crome> in the Module class
<shevy> but I think I need something more of an IDE myself
<shevy> something like "dear editor, please open the file where the method def bla is defined for me, thank you."
<workmad3> shevy: can't you do that with pry?
<olivier_bK> oh okai i understand now thanks men
<Jamo> and with ctags
m4n1f3st0 has quit []
<crome> I dont really want to change but I really cant figure out why my vim operates weird so I thought I would use rubymine until I figure out which non-mac machine I want to get
<shevy> dunno, I am not using pry as my editor though
<crome> but I just cant figure shit out in it :D
taf2 has joined #ruby
sailias has joined #ruby
<workmad3> shevy: you don't need to use pry as your editor
enebo has joined #ruby
<Jamo> crome: have you tried using vim without own configs
<crome> Jamo: of course but then whats the point
<crome> it works fine if I launch vim stripped of everything
jamto11 has joined #ruby
<workmad3> shevy: just type 'edit Object#method' inside a pry console, it opens the file in your chosen editor
<workmad3> shevy: using $EDITOR (or fallback to nan)
<workmad3> *nano
<shevy> hmm
<shevy> that works only for core ruby classes?
<shevy> and I need to know the namespace?
<workmad3> shevy: no, just did it for a file I'd just loaded
sailias1 has joined #ruby
<workmad3> shevy: and you'd only need the namespace if it was outside the current context
<shevy> rubygems/dependency.rb:298:in `to_specs': Could not find 'slop' (~> 3.4) - did find: [slop-2.4.4] (Gem::LoadError)
<shevy> god I hate this ~> dependency handling
<shevy> oh no wait
<shevy> I mislooked
<shevy> I thought it meant 2.3.4
himsin has joined #ruby
himsin has quit [Client Quit]
sailias has quit [Ping timeout: 240 seconds]
<workmad3> shevy: btw, thanks for the question so I looked that up... I keep on meaning to improve my pry usage :)
<shevy> well
<workmad3> shevy: and yes, just checked with a rails project... dumped a 'binding.pry' in an index action, then did 'edit show' and it just opened vim on the show action in the right controller :)
treehug88 has joined #ruby
_justin has joined #ruby
<shevy> right now I am trying to find out what you meant with "outside the current context" exactly, so I am working through the deps...
arietis has joined #ruby
<workmad3> shevy: I mean that if you dump 'binding.pry' inside a method, you could do 'edit <method>' on any other methods that would be visible, afaik
<shevy> hmm
<workmad3> shevy: but if you wanted to open up a method in a different class, you'd need to provide the class (and namespace)
<workmad3> shevy: you could check the exact behaviour with banister I suspect ;)
dukz_ has joined #ruby
sailias1 has quit [Ping timeout: 255 seconds]
pigzzcanfly has joined #ruby
dukz has quit [Read error: Connection reset by peer]
<shevy> I don't think it is quite what I had in mind
spstarr_ has joined #ruby
spstarr_ is now known as spstarr_work
pdtpatrick has joined #ruby
<shevy> right now if I forgot where something is defined on my local system (whole filesystem), I run recursive grep and then open stuff in my editor
<shevy> that is rather tedious to do in general
<shevy> the grep step especially
<workmad3> shevy: I'm not sure an IDE would especially help with that
<shevy> :(
Guest29592 is now known as deepy
<shevy> don't destroy my dreams!
<workmad3> shevy: the IDEs I've seen, you'd only get that sort of behaviour for finding methods that are available within the project (similar to pry)
<shevy> I want to remain lazy
<shevy> damn
ADNIX has joined #ruby
noop has quit [Ping timeout: 252 seconds]
<workmad3> shevy: rather than some arbitrary code you wrote in a random file located in some crazy place in your entire filesystem ;)
<shevy> yeah ok but there may be some clues
<shevy> the files I work with in the editor would be more important than most others (and should have the things I am looking for 95% of the time)
bal has quit [Quit: bal]
<shevy> it's perhaps a bit more like a recursive but targeted grep
<shevy> perhaps grep is stinking limited!
<workmad3> shevy: start using ack?
<shevy> hehe
<shevy> ack!
<workmad3> shevy: that said... which bit of a grep/ack search of your filesystem is tedious?
bal has joined #ruby
emaxi has quit [Remote host closed the connection]
<workmad3> shevy: it could be that you could fine-tune that aspect to give you what you want in a nicer manner :)
<shevy> workmad3 that I have to do it again and again; the workflow is like this: have my happy gtk2 editor, switch to kde konsole (the editor has no inbuilt terminal!), run a tiring grep -r, find where stuff is defined or may be used, open that in konsole, switch to the editor
yfeldblum has joined #ruby
emaxi has joined #ruby
<workmad3> shevy: ah, so it's really the lack of being able to fire up console commands from your editor
<workmad3> shevy: use a better editor? :P
<shevy> that's one problem
<shevy> like what
<ADNIX> vim
<workmad3> shevy: *cough* vim *cough*
<shevy> nah, vim requires enormous and extremely tedious commands
<workmad3> shevy: such as?
<shevy> don't downgrade what I use!
phantummm has joined #ruby
<shevy> any use of //
<workmad3> shevy: I can't think of any enormous and tedious commands
nhhagen_ has quit [Remote host closed the connection]
<workmad3> shevy: how is that enormous and tedious?
<shevy> that I have to type
<shevy> that I have to memorize commands
<workmad3> shevy: '/<stuff I want to find in the file<return>'
<shevy> no thank you
<workmad3> shevy: so <Ctrl-f><stuff I want to find in the file><return> is less tedious?
<shevy> inside the file yes
<shevy> but I am comparing searching like through grep
<workmad3> shevy: so 2 keypresses == less tedious than 1?
<shevy> workmad3, I use about 20.000 aliases in my bash
<shevy> workmad3 it is the sum of keystrokes to have to use and the combination of it
nhhagen has joined #ruby
afreidah1 has joined #ruby
sambao21 has joined #ruby
<workmad3> shevy: just trying to figure out where these 'enormous commands' are coming from in your vim usage... I've yet to find a vim command longer than about 4 keystrokes, and they do a massive amount
emaxi has quit [Ping timeout: 252 seconds]
<shevy> workmad3 I used vim for a few years back from around 2004 to 2007
yfeldblum has quit [Ping timeout: 265 seconds]
<workmad3> shevy: I've been using it for about 3 years now, and I keep on finding shorter ways to do things ;)
<shevy> it's good that vim works for you
<workmad3> shevy: as I said, I'm just trying to understand where the 'enormous' commands came from
<workmad3> shevy: so I'm kinda looking for examples of enormous commands that are typical vim usage :)
<shevy> ok you do have to give specific instructions to vim when you use it all the time right?
codabrink has quit [Quit: Textual IRC Client: www.textualapp.com]
codabrink has joined #ruby
<workmad3> shevy: sure... same as with anything... but you can also set up short aliases for stuff if you do it a lot
<shevy> no not same as with anything
<shevy> I use almost nothing that my current editor offers because I dont need it
<shevy> I'd like to reduce the amount of features it has :(
m4n1f3st0 has joined #ruby
nhhagen has quit [Remote host closed the connection]
<shevy> workmad3 yeah, my old vimrc had about 20.000 lines
<workmad3> shevy: well, from your previous comments, it sounds more like you'd like to change the features it offered, not reduce the amount
<workmad3> shevy: so it had features you would use, rather than 0 features
<shevy> one day I was too tired to spend anymore time maintaing or changing it
<shevy> well, the editor I use it very limited
<shevy> geany would have vte-tabs for instance
<workmad3> shevy: one example I think you'd like to add to your editor would be some terminal integration ;)
<shevy> but geany is weird in different ways
<shevy> workmad3 yeah
<workmad3> shevy: seeing as you were just bemoaning that lack... ;)
<shevy> but it's not the only thing
<shevy> geany is sort of ugly :\
<shevy> sublime is the visually nicest one
<shevy> they said "use themes" for geany, which was better but still ugly
zchrykng-work has joined #ruby
dumdedum has joined #ruby
shashank_rs has joined #ruby
<shevy> anyone knows whether sublime has a terminal?
jlast has joined #ruby
<shevy> I loved on kde that you could press F12 to have yakuake scroll down when required, that was neat
meatherly has joined #ruby
tkuchiki has quit [Remote host closed the connection]
m4n1f3st0 has quit [Read error: Connection reset by peer]
m4n1f3st_ has joined #ruby
phantummm has quit [Ping timeout: 255 seconds]
mary5030 has joined #ruby
badhatter has joined #ruby
badhatter has joined #ruby
badhatter has quit [Changing host]
jherbst has joined #ruby
dik_dak has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
ffranz has joined #ruby
will_wielder has joined #ruby
ndrei has quit [Quit: leaving]
ndrei has joined #ruby
will_wielder has left #ruby [#ruby]
nhhagen has joined #ruby
phantummm has joined #ruby
zchrykng-work_ has joined #ruby
francisfish has joined #ruby
aagdbl has joined #ruby
jbzt has joined #ruby
dh64 has quit [Quit: Konversation terminated!]
Lewix has joined #ruby
gr33n7007h has quit [Ping timeout: 252 seconds]
claymore has quit [Ping timeout: 252 seconds]
nhhagen has quit [Remote host closed the connection]
james_d_h has joined #ruby
Xeago has quit [Remote host closed the connection]
zchrykng-work has quit [Ping timeout: 255 seconds]
saarinen has joined #ruby
<jbzt> I'm trying to write a test using RSpec for a static method that throws an exception, but the expectation doesn't seem catch the exception: https://gist.github.com/jcblitz/ab99f4a07964c4f5bb64
nhhagen has joined #ruby
lxsameer has quit [Quit: Leaving]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nhhagen has quit [Remote host closed the connection]
badhatter has quit [Ping timeout: 246 seconds]
<tobiasvl> vim is the best editor ever! shevy let's fight :@
rm_ has joined #ruby
<tobiasvl> http://vim.sexy/
tcstar has quit [Read error: Operation timed out]
Jonah11_ has joined #ruby
duggiefresh has joined #ruby
<canton7-mac> jbzt, you're sure it's throwing an ArgumentError, not an Exception ?
dukz_ has quit [Remote host closed the connection]
<lewellyn> tobiasvl: hahahaha seriously funny.
<tobiasvl> lewellyn: yeah ;) it's an atom.io parody obviously
<jbzt> canton7-mac: hah, you're right
<lewellyn> it looks nothing like atom.iio
<lewellyn> it looks like someone screwed up, here
danshultz has quit [Remote host closed the connection]
<jbzt> canton8-mac: I just changed what it raises and I get the same result, though it tells me it's an argument error this time
Xeago has joined #ruby
<tobiasvl> lewellyn: hmm yeah, would you look at that … it works if I remove http:// and let it resolve in the browser
danshultz has joined #ruby
<tobiasvl> STRANGE
emaxi has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
<workmad3> jbzt: get rid of line 3
<lewellyn> tobiasvl: um. if you're not accessing it over http, what are you accessing it over?
danshultz has joined #ruby
<workmad3> jbzt: the block you pass to expect is executed, that block passes the expectation, and then you're running that line again outside of everything, generating another exception that fails the test
skaflem has quit [Quit: Leaving]
<lewellyn> oh. it's screwy in a gui browser too.
<jbzt> oh, thanks
david- has joined #ruby
david- is now known as ktun2
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jbzt> workmad3: That explains everything! Good to go, thanks
Jonah11_ has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
claymore has joined #ruby
emaxi has quit [Ping timeout: 252 seconds]
popl has quit [Ping timeout: 240 seconds]
mary5030 has quit [Ping timeout: 255 seconds]
emaxi has joined #ruby
freerobby has joined #ruby
jbzt has quit [Quit: jbzt]
m4n1f3st_ has quit [Read error: Connection reset by peer]
m4n1f3st0 has joined #ruby
pu22l3r has quit [Remote host closed the connection]
davedev2_ has joined #ruby
pu22l3r has joined #ruby
danshultz has quit [Remote host closed the connection]
andy__ has joined #ruby
danshultz has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
danshultz has joined #ruby
davedev24 has quit [Ping timeout: 240 seconds]
axl_ has joined #ruby
ktun has quit [Quit: Textual IRC Client: www.textualapp.com]
viscera has quit [Ping timeout: 252 seconds]
ktun has joined #ruby
RowdyChild|Away is now known as RowdyChildren
tcstar has joined #ruby
makara has quit [Ping timeout: 246 seconds]
Melpaws1 has quit [Ping timeout: 240 seconds]
pwh has joined #ruby
boxmein has joined #ruby
m4n1f3st0 has quit [Read error: Connection reset by peer]
paulfm has quit []
m4n1f3st0 has joined #ruby
<boxmein> does ruby have something trivial I can shove a 'file format description' and a file into to return a data structure
andy__ has quit [Read error: Connection reset by peer]
simono has joined #ruby
TripTastic has joined #ruby
andy__ has joined #ruby
paulfm has joined #ruby
tagrudev has quit [Remote host closed the connection]
m4n1f3st0 has quit [Read error: Connection reset by peer]
CreativeEmbassy has joined #ruby
<jlebrech> is there a reason why two png images that look just the same would have different hex digests?
pwh has quit [Client Quit]
tobago has quit [Remote host closed the connection]
nhhagen has joined #ruby
nolic has quit [Remote host closed the connection]
ktun2 has quit [Quit: Linkinus - http://linkinus.com]
Xeago has quit [Remote host closed the connection]
<tobiasvl> define "look just the same" …
<CreativeEmbassy> jlebrech: lots of reasons. especially if there's an alpha channel, you can hide all sorts of stuff in the image, hide it with the alpha channel, and dramatically change the "image" without it looking any different when being previewed
jameswlane has joined #ruby
mengu has quit []
SCommette has joined #ruby
newUser1234 has joined #ruby
sailias has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
ktun has quit [Quit: Textual IRC Client: www.textualapp.com]
kevind has joined #ruby
<jlebrech> creativeembassy: 9/10 times the image will have the same md5 hash, other times i'll just have to check each pixel, and that works
<canton7-mac> there's also a shit-ton of metadata, free-text comment fields, etc
ktun has joined #ruby
jaywastaken has quit [Quit: Leaving]
<workmad3> jlebrech: it could also be that the two png images have different levels of compression
<canton7-mac> plus most compression algorithms (and I suspect png is included) have free reign to make all sorts of decisions as they see fit, based on a load of varying criteria
lmickh has joined #ruby
brucelee has joined #ruby
Jonah11_ has joined #ruby
<canton7-mac> so two different programs will make all sorts of different decisions when saving the same image
kevinykchan has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Macaveli has joined #ruby
viscera has joined #ruby
shashank_rs has quit [Ping timeout: 246 seconds]
blurredbits has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
crystal77 has joined #ruby
robbyoconnor has quit [Ping timeout: 255 seconds]
genescissors has quit [Ping timeout: 246 seconds]
s2013 has joined #ruby
nateberkopec has joined #ruby
brucelee has quit [Ping timeout: 255 seconds]
kitak has joined #ruby
genescissors has joined #ruby
Vovko has joined #ruby
<tsunamie> want to check with the ruby guys in here. In the following code. https://github.com/elasticsearch/logstash/blob/master/lib/logstash/inputs/s3.rb on line 202. The following code exists. "FileUtils.remove_entry_secure(tmp, force=true)" Should this not force the delete of a folder with all the files it was processing. Does anyone know of a senario of why the file would not be deleted after being processed?
<jlebrech> canton7-mac: yeah, same code creates both pngs. so it must be a tiny difference, but that drastically changes the md5 hash
matcouto has joined #ruby
jameswlane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nhhagen has quit [Remote host closed the connection]
rylev has quit [Remote host closed the connection]
bean has joined #ruby
yfeldblum has joined #ruby
andrewlio has quit [Quit: Leaving.]
rylev has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arietis has joined #ruby
<canton7-mac> jlebrech, might it be setting the metadata differently?
hamakn_ has quit [Remote host closed the connection]
toastynerd has joined #ruby
dtcrshr has joined #ruby
Shidash has quit [Ping timeout: 246 seconds]
jgoss has quit [Ping timeout: 240 seconds]
jrhe has joined #ruby
s2013 has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
andy__ has quit [Read error: Operation timed out]
m4n1f3st0 has joined #ruby
rm_ has quit [Remote host closed the connection]
rayners has joined #ruby
rm_ has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
viscera has quit [Quit: viscera]
nhhagen has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
pwh has joined #ruby
sambao21 has joined #ruby
djbender has quit [Quit: djbender]
rayners has quit [Read error: Connection reset by peer]
enebo has quit [Quit: enebo]
nhhagen has quit [Remote host closed the connection]
jorts has joined #ruby
rm_ has quit [Ping timeout: 255 seconds]
kevinykchan has quit [Quit: Computer has gone to sleep.]
mary5030 has quit [Remote host closed the connection]
RowdyChildren is now known as RowdyChild|Away
taf2 has quit [Quit: taf2]
jonno11 has joined #ruby
yokel has joined #ruby
andy__ has joined #ruby
paulfm has quit []
hamakn has joined #ruby
x77686d has joined #ruby
failshell has joined #ruby
bal has quit [Quit: bal]
heftig has quit [Quit: Quitting]
sigurding has quit [Read error: Connection reset by peer]
DaniG2k has quit [Quit: leaving]
mary5030 has joined #ruby
djbender has joined #ruby
andy___ has joined #ruby
jespada has joined #ruby
paulfm has joined #ruby
andy__ has quit [Ping timeout: 252 seconds]
jgoss has joined #ruby
xiella has joined #ruby
<ghr> Is there a better way of doing `!"a string".empty?`
phutchin1 has joined #ruby
moeSeth_ has quit [Quit: Connection closed for inactivity]
<ghr> in 1.8.7 you could do `"a string".any?`
jollyy_ has joined #ruby
IceDragon has joined #ruby
jollyy_ has quit [Read error: Connection reset by peer]
snath has joined #ruby
enebo has joined #ruby
<apeiros> ghr: not really
phutchins has quit [Read error: Operation timed out]
jollyy_ has joined #ruby
Melpaws has joined #ruby
andy___ has quit [Ping timeout: 255 seconds]
jollyy_ has quit [Read error: Connection reset by peer]
jollyy has quit [Ping timeout: 255 seconds]
<DouweM> `unless "a string".empty?` might read nicer
<DouweM> and if you're using Rails, check out #present?
<ghr> it's in a method, so `unless` doesn't really work here
jollyy has joined #ruby
<DouweM> in that case, !
sigurding has joined #ruby
<ghr> eg def has_content?; !body.empty?; end
<ghr> yeah
<ghr> thanks both :)
jollyy has quit [Read error: Connection reset by peer]
nhhagen has joined #ruby
<DouweM> body.length > 0
andy__ has joined #ruby
jollyy has joined #ruby
<Hanmac> or you do !!"a string"[0] ;P
andy__ has quit [Read error: Connection reset by peer]
_1_mauricio has joined #ruby
einarj has quit []
yfeldblum has joined #ruby
<_1_mauricio> hola
<ghr> I think ! empty? probably works best for this :)
<ghr> Hanmac I'll consider that one ;)
samuel02 has joined #ruby
_1_mauricio has quit [Remote host closed the connection]
nhhagen has quit [Ping timeout: 240 seconds]
<cout> empty? is better hypothetically just in case you are using it on a data type where #length is O(n)
sdouglas has quit [Remote host closed the connection]
<cout> but I never remember that it exists
Apocalypse has quit [Ping timeout: 252 seconds]
andy__ has joined #ruby
andy__ has quit [Remote host closed the connection]
sdouglas has joined #ruby
<DouweM> cout: true
Waheedi has joined #ruby
geggam has joined #ruby
<Waheedi> yo
andy__ has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
<Waheedi> I'm using File.open to read from file /x/x.txt
<Waheedi> and I want to write on line no 3
<Waheedi> i found the File.write(name, string, offset) method
<Waheedi> and it seems convenient
obscured has joined #ruby
robbyoconnor has joined #ruby
<cout> Waheedi: easiest solution is to read the whole file, make a change, and write the whole file back out
<DouweM> Waheedi: that #write method will overwrite some stuff though
<Waheedi> oh i just tried it
<Waheedi> its totally not what i want
<Waheedi> shit
<DouweM> Waheedi: and it doesn't know about lines, because there's really not such a thing as a line as far as a binary file is concerned
<Waheedi> i mean you can loop through the file lines and be smart and write on specific line
sdwrage has joined #ruby
zachallett has quit [Remote host closed the connection]
zachallett has joined #ruby
axl_ has quit [Ping timeout: 255 seconds]
sdouglas has quit [Ping timeout: 240 seconds]
VTLob has joined #ruby
blackavr has quit [Quit: blackavr]
pu22l3r has quit [Remote host closed the connection]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pu22l3r has joined #ruby
lbwski has quit [Read error: Operation timed out]
havenwood has joined #ruby
sdouglas has joined #ruby
sdwrage has quit [Ping timeout: 240 seconds]
<Waheedi> found a hack
<Waheedi> lol
ADNIX has quit [Quit: User abort with 5 Ctrl-C's]
<Waheedi> this is bullshit
fabrice31 has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
osx5 has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
phansch has quit [Quit: WeeChat 0.4.2]
jprovazn is now known as jprovazn_bbl
<DouweM> what hack
jameswlane has joined #ruby
alekst has joined #ruby
pu22l3r has quit [Read error: Connection reset by peer]
Piotrek has joined #ruby
bilbo_swaggins has joined #ruby
robbyoconnor has quit [Ping timeout: 240 seconds]
pu22l3r has joined #ruby
lbwski has joined #ruby
devdazed has joined #ruby
robbyoconnor has joined #ruby
codezomb has joined #ruby
toastynerd has quit [Remote host closed the connection]
browndawg has quit [Quit: Leaving.]
zorak has quit [Read error: Connection reset by peer]
emaxi has quit [Remote host closed the connection]
rippa has joined #ruby
SCommette has quit [Quit: SCommette]
zorak has joined #ruby
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
spinx^ has quit [Ping timeout: 245 seconds]
jxf has quit [Read error: Operation timed out]
lbwski has quit [Read error: Operation timed out]
renklaf has quit [Remote host closed the connection]
rm_ has joined #ruby
emaxi_ has joined #ruby
larissa has quit [Quit: Leaving]
fgo has quit [Remote host closed the connection]
armyriad has quit [Ping timeout: 252 seconds]
r0bby has joined #ruby
_justin has quit [Quit: _justin]
armyriad has joined #ruby
r0bby has quit [Client Quit]
jonathanwallace has joined #ruby
Xeago has joined #ruby
fella7s is now known as fella5s
brucelee has joined #ruby
Xeago has quit [Remote host closed the connection]
Macaveli has quit [Ping timeout: 252 seconds]
evenix has joined #ruby
ndrei has joined #ruby
SCommette has joined #ruby
treehug88 has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Ping timeout: 252 seconds]
renier has quit [Read error: Connection reset by peer]
jeregrine has joined #ruby
dyoko has quit [Quit: Leaving.]
acrussell has joined #ruby
dapz has joined #ruby
renier has joined #ruby
robde has quit [Ping timeout: 246 seconds]
naw has joined #ruby
darmou has quit [Quit: darmou]
Cache_Money has quit [Quit: Cache_Money]
brucelee has quit [Ping timeout: 252 seconds]
pontiki has quit [Remote host closed the connection]
darmou has joined #ruby
tonni has quit [Remote host closed the connection]
robde has joined #ruby
Melpaws has quit [Quit: Leaving.]
charlies_ has joined #ruby
francisfish has quit [Ping timeout: 252 seconds]
rayners has joined #ruby
nhhagen has joined #ruby
nhhagen has quit [Remote host closed the connection]
sdwrage has joined #ruby
francisfish has joined #ruby
kevinykchan has joined #ruby
nhhagen has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
_justin has joined #ruby
Hobogrammer has joined #ruby
treehug88 has joined #ruby
ckinni has joined #ruby
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
thrillagorilla has joined #ruby
m4n1f3st0 has quit []
darmou has quit [Quit: darmou]
sdouglas has quit [Remote host closed the connection]
Kruppe has quit [Quit: ZNC - http://znc.in]
crystal77 has quit [Quit: Computer has gone to sleep.]
qmfnp has joined #ruby
Solnse has joined #ruby
apeiros has quit [Remote host closed the connection]
newUser1234 has quit [Remote host closed the connection]
Kruppe has joined #ruby
apeiros has joined #ruby
newUser1234 has joined #ruby
aganov has quit [Quit: Leaving]
sigurding has quit [Read error: Connection reset by peer]
obscured has quit [Quit: leaving]
karmatr0n has joined #ruby
ahawkins has quit [Quit: leaving]
sdwrage has quit [Quit: This computer has gone to sleep]
<shevy> Waheedi the simplest way is to use File.readlines('your_file_here'), modify that array (line to modify - 1, as ruby arrays start at 0), then save the modified array to a file via File.new or File.open
emaxi_ has quit [Remote host closed the connection]
emaxi has joined #ruby
Martxel has quit [Ping timeout: 255 seconds]
apeiros has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
darmou has joined #ruby
_5kg has quit [Ping timeout: 240 seconds]
crystal77 has joined #ruby
m4n1f3st0 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<Hanmac> shevy like File.write('your_file_here', File.foreach('your_file_here').map { ... mod }.join("\n"))
jherbst has quit [Quit: Textual IRC Client: www.textualapp.com]
ndrei has quit [Ping timeout: 240 seconds]
sailias has quit [Ping timeout: 252 seconds]
cocotton has joined #ruby
roflik_ has quit [Quit: leaving]
<shevy> Hanmac why do you keep on writing this to me, I didn't ask the question ;P
timonv has quit [Remote host closed the connection]
<Hanmac> oh i didt see that, my monitor was blended
mmoretti has joined #ruby
sailias has joined #ruby
MatthewsFace has joined #ruby
<Hanmac> Waheedi: see the code line i posted before
emaxi has quit [Ping timeout: 240 seconds]
dagobah has quit [Quit: Leaving...]
MatthewsFace has quit [Read error: Operation timed out]
MatthewsFace has joined #ruby
sdwrage has joined #ruby
dyoko has joined #ruby
cocotton has quit [Remote host closed the connection]
sambao21 has joined #ruby
_justin has quit [Quit: _justin]
taf2 has joined #ruby
Hobogrammer has quit [Ping timeout: 240 seconds]
f0ster` has joined #ruby
f0ster` is now known as f0ster_
RowdyChild|Away is now known as RowdyChildren
pdtpatrick has quit [Quit: pdtpatrick]
CreativeEmbassy has quit [Quit: FO SHO]
qba73 has quit []
Hobogrammer has joined #ruby
blackavr has joined #ruby
boxmein has quit [Ping timeout: 252 seconds]
vtonkovich has joined #ruby
axl_ has joined #ruby
coderhs has quit [Ping timeout: 255 seconds]
SCommette has quit [Quit: SCommette]
toastynerd has joined #ruby
shredding has quit [Quit: shredding]
bilbo_swaggins has quit [Quit: Leaving]
thumpba has quit []
wimplash_ has joined #ruby
afreidah1 has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
wimplash_ has quit [Client Quit]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
darmou has quit [Quit: darmou]
joelteon has left #ruby ["bye"]
ktun has joined #ruby
ktun has quit [Max SendQ exceeded]
dukz has joined #ruby
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pu22l3r has quit [Ping timeout: 246 seconds]
ktun has joined #ruby
thumpba has joined #ruby
subbyyy_ has joined #ruby
newUser1234 has quit [Remote host closed the connection]
m0s^away is now known as m0s
arietis has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Remote host closed the connection]
duggiefresh has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 255 seconds]
nomenkun has quit [Remote host closed the connection]
f0ster_ has quit [Quit: Leaving...]
oso96_2000 is now known as oso|away
afreidah1 has joined #ruby
pdtpatrick has joined #ruby
greenarrow has quit [Quit: 500]
goleldar has joined #ruby
f0ster` has joined #ruby
duggiefr_ has joined #ruby
newUser1234 has joined #ruby
sdouglas has joined #ruby
freggles has joined #ruby
Rafalski_ has joined #ruby
IceDragon has quit [Ping timeout: 252 seconds]
codabrink has quit [Ping timeout: 255 seconds]
<Rafalski_> File.join(folder_path, '/\/', file_name)
timonv has joined #ruby
<Rafalski_> Hey all. I'm trying to link to a file on a network drive. This is the code I have but it only returns the folder path: File.join(folder_path, '/\/', file_name) please help
werdnativ has joined #ruby
maletor has joined #ruby
charlies_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlebrech has quit [Quit: Konversation terminated!]
scarolan_ has joined #ruby
papercode has joined #ruby
saarinen has joined #ruby
timonv_ has joined #ruby
michaeldeol has joined #ruby
saarinen has quit [Client Quit]
RowdyChildren is now known as RowdyChild|Away
codabrink has joined #ruby
scarolan has quit [Ping timeout: 240 seconds]
emaxi has joined #ruby
arietis has joined #ruby
jonno11 has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
jobewan has joined #ruby
shevy has joined #ruby
coderhs has joined #ruby
dstynchula has joined #ruby
michaeldeol has quit [Client Quit]
trautwein has joined #ruby
s2013 has quit [Ping timeout: 252 seconds]
BP_out has joined #ruby
andy___ has joined #ruby
canton7-mac has quit [Remote host closed the connection]
mjs2600 has quit [Remote host closed the connection]
zchrykng-work_ is now known as zchrykng-work
kirun has joined #ruby
codenapper has quit [Ping timeout: 252 seconds]
olivier_bK has quit [Read error: Operation timed out]
apeiros has joined #ruby
zachallett has quit [Remote host closed the connection]
<linduxed> if i've got an if-elsif-else tree that goes something like "if is_banana?(fruit) \n "Banana" \n elsif is_apple?(fruit) \n "Apple" \n else \n "Square" \n end"
<linduxed> is there some way to avoid typing the (fruit) part all the time?
<linduxed> like, somehow writing (&:is_apple) instead and it just knowing that it needs a parameter?
<linduxed> (curried functions, essentially)
andy__ has quit [Ping timeout: 240 seconds]
francisfish has quit [Remote host closed the connection]
Rafalski_ has quit [Quit: Rafalski_]
zachallett has joined #ruby
<banister> linduxed can you show the complete example of how you'd like it to look?
gaussblurinc has quit [Quit: Leaving.]
mmoretti has quit [Quit: Leaving...]
CreativeEmbassy has joined #ruby
sdouglas has quit [Remote host closed the connection]
IceDragon has joined #ruby
saarinen has joined #ruby
sdouglas has joined #ruby
<linduxed> banister: now this obviously doesn't work, but this is kinda what i want https://gist.github.com/linduxed/c84d1b612c62ba49b384
treehug88 has quit [Read error: Connection reset by peer]
emaxi has quit [Remote host closed the connection]
treehug88 has joined #ruby
emaxi has joined #ruby
GodPuppet has joined #ruby
spider-mario has joined #ruby
psyko666 has quit [Quit: Leaving]
sdouglas has quit [Ping timeout: 252 seconds]
crystal77 has quit [Quit: Computer has gone to sleep.]
atno has quit [Remote host closed the connection]
pdtpatrick has quit [Quit: pdtpatrick]
atno has joined #ruby
mikecmpbll has quit [Read error: Operation timed out]
andrewlio has joined #ruby
x77686d has quit [Quit: x77686d]
Bumptious has quit [Remote host closed the connection]
emaxi has quit [Ping timeout: 252 seconds]
_5kg has joined #ruby
keeguon has quit [Quit: keeguon]
red234324 has joined #ruby
Bumptious has joined #ruby
s2013 has joined #ruby
benzrf|offline is now known as benzrf
m4n1f3st0 has quit []
Advocation has joined #ruby
Advocation has quit [Client Quit]
<banister> linduxed why wouldnt that work?
yfeldblum has quit [Remote host closed the connection]
Advocation has joined #ruby
obs has quit [Quit: Konversation terminated!]
anarang has quit [Quit: Leaving]
<linduxed> /home/linduxed/Documents/exercism/ruby/bob/bob.rb:7: syntax error, unexpected &
<linduxed> on the (&:
<linduxed> when (&:shouting?) && (&:has_letters?)
<linduxed> omg i'm stupid, why don't i just paste the error
Xeago has joined #ruby
glanzi has joined #ruby
<linduxed> there
pel_daniel has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CreativeEmbassy has quit [Quit: FO SHO]
Bumptious has quit [Ping timeout: 255 seconds]
shashank_rs has joined #ruby
Biohazard has joined #ruby
hooper has joined #ruby
Xeago has quit [Read error: Operation timed out]
lbwski has joined #ruby
havenwood has joined #ruby
jbueza has joined #ruby
CreativeEmbassy has joined #ruby
crystal77 has joined #ruby
Jonah11_ has quit [Ping timeout: 240 seconds]
ascarter has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
ascarter has quit [Max SendQ exceeded]
vtonkovich has quit [Remote host closed the connection]
ascarter has joined #ruby
mityaz has joined #ruby
ndrei has joined #ruby
dukz has quit [Remote host closed the connection]
Morkel_ has joined #ruby
spinx^ has joined #ruby
jbueza has quit [Ping timeout: 240 seconds]
x77686d has joined #ruby
wallerdev has joined #ruby
Morkel has quit [Ping timeout: 255 seconds]
Morkel_ is now known as Morkel
rylev has quit [Remote host closed the connection]
jxf has joined #ruby
redondos has quit [Changing host]
redondos has joined #ruby
alexju has quit [Read error: Connection reset by peer]
alexju has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami has joined #ruby
carraroj has joined #ruby
afreidah1 has quit [Read error: Operation timed out]
timonv_ has quit [Remote host closed the connection]
dapz has joined #ruby
arturaz has quit [Ping timeout: 240 seconds]
_justin has joined #ruby
kraljev6 has quit [Read error: Operation timed out]
CaptainJet has joined #ruby
chichou has joined #ruby
Xeago has joined #ruby
momomomomo has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
Hanmac1 has joined #ruby
<momomomomo> DouweM: Finally: https://github.com/google/signet/pull/40
billy_ran_away_ is now known as billy_ran_away
earth has joined #ruby
DouweM has quit [Ping timeout: 246 seconds]
<Senjai> momomomomo: That didnt look fun
jack_rabbit has quit [Ping timeout: 255 seconds]
claymore has quit [Ping timeout: 246 seconds]
Jonah11_ has joined #ruby
<momomomomo> Senjai: No, but at the moment, anyone who is using the Google-Api-Client filestorage is at risk of experiencing silent failures; and, in a background service, this can just show up as a silent failure, aka your url didn’t go through etc. https://github.com/momer/signet/commit/d2a8cc31ebbd3d7dc579d3399bac96d1c5c66ee4#commitcomment-5930816
<momomomomo> Senjai: worth it
cocotton has joined #ruby
Hanmac has quit [Ping timeout: 255 seconds]
Martxel has joined #ruby
hfp`away is now known as hfp
emaxi has joined #ruby
nhhagen has quit [Remote host closed the connection]
arietis has quit [Quit: Computer has gone to sleep.]
Es0teric has joined #ruby
saarinen has quit [Quit: saarinen]
s2013_ has joined #ruby
arietis has joined #ruby
<Emmanuel_Chanel> Hello! How are you, all? I'm trying to analyze the pages of textream, Yahoo Japan's public forum.
rezzack has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
cocotton has quit [Ping timeout: 255 seconds]
<benzrf> hows it goin Emmanuel_Chanel
bilbo_swaggins has joined #ruby
<Emmanuel_Chanel> Well, not going well. I'm new to ruby. So I don't know good coding ways on ruby.
Zai00 has quit [Quit: Zai00]
peterellisjones has quit [Quit: Leaving.]
<Emmanuel_Chanel> I'm seeking websites abotu ruby by Google and so on.
sarlalian has quit [Quit: WeeChat 0.4.0]
<Emmanuel_Chanel> Is there the best page to teach how to deal http connection on ruby?
<Emmanuel_Chanel> I'm seeking it on Google now.
s2013 has quit [Ping timeout: 240 seconds]
fabrice31 has joined #ruby
toastynerd has quit [Remote host closed the connection]
sarlalian has joined #ruby
rainmanjam has joined #ruby
<BP_out> Emmanuel_Chanel: I recommend official ruby docs
<BP_out> specifically, Net::HTTP
vpretzel has quit []
vpretzel has joined #ruby
sputnik13 has joined #ruby
Shidash has joined #ruby
nanoyak has joined #ruby
apeiros has quit [Remote host closed the connection]
sdwrage has quit [Quit: This computer has gone to sleep]
apeiros has joined #ruby
Guest23306 has joined #ruby
toastynerd has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
fannye has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
s2013_ is now known as s2013
supermarin____ has joined #ruby
sputnik13 has quit [Ping timeout: 240 seconds]
zachallett has quit [Remote host closed the connection]
zellio has quit []
<Emmanuel_Chanel> BP_out: Yes. I checked it. But I don't feel it explaining much.
rdark has quit [Quit: leaving]
SCommette has joined #ruby
apeiros has quit [Ping timeout: 252 seconds]
supermarin____ has quit [Client Quit]
<Emmanuel_Chanel> BP_out: I want to use only one http TCP connections for downloading various pages on "textream" website.
zachallett has joined #ruby
Xeago has quit [Remote host closed the connection]
<Emmanuel_Chanel> BP_out: And I want a code block to check if the TCP connection is alive and to reconnect.
CreativeEmbassy has quit [Quit: FO SHO]
<BP_out> sure
<BP_out> so you can do something like TCPSocket.new(server, port)
<BP_out> er
<BP_out> rather
kitak has quit [Remote host closed the connection]
jottr has joined #ruby
<BP_out> socket = TCPSocket.new(server, port)
majoh has joined #ruby
<BP_out> until socket.eof?
<BP_out> (do stuff here)
<BP_out> end
sdwrage has joined #ruby
kitak has joined #ruby
TripTastic has left #ruby ["Leaving"]
mikecmpbll has joined #ruby
<Emmanuel_Chanel> So I cannot do same thing with Net/HTTP?
jollyy has quit [Quit: jollyy]
<BP_out> I'm sure you can
<BP_out> what are you connecting to, Emmanuel_Chanel?
<Emmanuel_Chanel> textream is a website of Yahoo Japan's forum. So textream.yahoo.co.jp:80 is what I want to connect.
afreidah1 has joined #ruby
Apocalypse has joined #ruby
tonni has joined #ruby
Xeago has joined #ruby
<Emmanuel_Chanel> http://textream.yahoo.co.jp/ And I don't know its API.
<BP_out> but its just a static page right?
ctp has quit [Ping timeout: 240 seconds]
<BP_out> you just want the data from the page source I assume?
arietis has quit [Quit: Computer has gone to sleep.]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
supermarin has joined #ruby
tonni has quit [Read error: Connection reset by peer]
carraroj has quit [Ping timeout: 246 seconds]
tonni has joined #ruby
nvrch has quit [Quit: nvrch]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
<havenwood> Emmanuel_Chanel: Ruby also has lovely gems like HTTPClient, Mechanize, Typhoeus, Faraday, et al.
<Emmanuel_Chanel> BP_out: No... It's a forum site. I want to download some threads of the forum, actually.
<Emmanuel_Chanel> ok. I check.
nanoyak has quit [Read error: Connection reset by peer]
randomnick_ has joined #ruby
nanoyak has joined #ruby
danshult_ has joined #ruby
phansch has joined #ruby
keeguon has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
djbender has quit [Quit: djbender]
djbender has joined #ruby
CreativeEmbassy has joined #ruby
danshultz has quit [Ping timeout: 240 seconds]
doodleha_ has joined #ruby
toastynerd has quit [Remote host closed the connection]
lbwski has quit [Read error: Operation timed out]
ascarter has joined #ruby
testcore has joined #ruby
obs has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mjs2600 has joined #ruby
x1337807x has joined #ruby
Hanmac has joined #ruby
<Emmanuel_Chanel> When I connected a website with net/http , how can I know if it's disconnected?
arietis has joined #ruby
nhhagen has joined #ruby
doodlehaus has quit [Ping timeout: 255 seconds]
apeiros has joined #ruby
lbwski has joined #ruby
Musashi1 has joined #ruby
ascarter has quit [Client Quit]
Hanmac1 has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby
<f0ster`> trying to force myself to use 1.9 hash syntax instead of hash rockets.. so much hurt
coderhs has quit [Ping timeout: 246 seconds]
pushpak has joined #ruby
saarinen has joined #ruby
francisfish has joined #ruby
cocotton has joined #ruby
saarinen has quit [Client Quit]
JohnBat26 has joined #ruby
<Emmanuel_Chanel> brb.
tjbiddle has quit [Quit: tjbiddle]
cocotton has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
yfeldblu_ has joined #ruby
m4n1f3st0 has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
pw3 has joined #ruby
ndrei has joined #ruby
davedev2_ has quit [Ping timeout: 246 seconds]
luriv has joined #ruby
armyriad has quit [Ping timeout: 255 seconds]
bricker has joined #ruby
spyderman4g63 has joined #ruby
djbender has quit [Quit: djbender]
arietis has quit [Quit: Computer has gone to sleep.]
pw3 has quit [Client Quit]
m4n1f3st0 has quit [Ping timeout: 252 seconds]
ndrei has quit [Read error: Operation timed out]
Xeago has quit [Remote host closed the connection]
mr_snowf1ake has quit [Ping timeout: 240 seconds]
djbender has joined #ruby
jollyy has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
m4n1f3st0 has joined #ruby
tonni has quit [Remote host closed the connection]
m4n1f3st0 has quit [Read error: Connection reset by peer]
rylev has joined #ruby
m4n1f3st0 has joined #ruby
Jonah11_ has quit [Read error: Connection reset by peer]
dyoko has quit [Ping timeout: 246 seconds]
coderhs has joined #ruby
dyoko has joined #ruby
dtcrshr has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
nouitfvf_ has quit []
dtcrshr has joined #ruby
afex has joined #ruby
hooper has quit [Ping timeout: 252 seconds]
karmatr0_ has joined #ruby
elaptics is now known as elaptics`away
karmatr0n has quit [Read error: Connection reset by peer]
subbyyy_ has quit [Ping timeout: 246 seconds]
Macaveli has joined #ruby
Macaveli has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
davedev24 has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
jhass|off is now known as jhass
crazysim has quit [Max SendQ exceeded]
crazysim has joined #ruby
heftig has joined #ruby
toastynerd has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
nanoyak has quit [Client Quit]
saarinen has joined #ruby
danijoo has quit [Remote host closed the connection]
spyderman4g63 has quit [Remote host closed the connection]
yfeldblum has joined #ruby
saarinen has quit [Client Quit]
RowdyChild|Away is now known as RowdyChildren
blackavr has quit [Ping timeout: 240 seconds]
spyderman4g63 has joined #ruby
mjs2600 has quit [Remote host closed the connection]
blackavr_ has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
toastynerd has joined #ruby
spyderman4g63 has joined #ruby
ikaros has quit [Quit: Ex-Chat]
yfeldblu_ has quit [Ping timeout: 265 seconds]
armyriad has joined #ruby
m4n1f3st0 has quit []
horrorvacui has joined #ruby
blackmesa has quit [Remote host closed the connection]
m4n1f3st0 has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
tjr9898_ has joined #ruby
mehlah has quit [Quit: Leaving...]
sdwrage has quit [Quit: This computer has gone to sleep]
tjr9898__ has joined #ruby
saarinen has joined #ruby
<Emmanuel_Chanel> Back.
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
centrx has joined #ruby
reset has joined #ruby
<apeiros> Front.
tjr9898 has quit [Ping timeout: 240 seconds]
* apeiros - professional contrarian
dapz has joined #ruby
_justin has quit [Ping timeout: 255 seconds]
afex has quit [Ping timeout: 255 seconds]
tjr9898_ has quit [Ping timeout: 252 seconds]
<lewellyn> side
redondos has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
sputnik13 has joined #ruby
<apeiros> lewellyn - professional lateral thinker
<apeiros> hm, either the pun was not as funny as I thought, or latin is indeed dead :o(
redondos has joined #ruby
x77686d has quit [Quit: x77686d]
vongrippen has quit [Read error: Operation timed out]
carif has joined #ruby
<benzrf> it was the funniest thing ive ever heard!!!!!
<benzrf> i just didnt respond because i was TOO BUSY LAUGHING O=
<apeiros> hah
sdwrage has joined #ruby
danijoo has joined #ruby
sputnik13 has quit [Ping timeout: 240 seconds]
UserNameInvalid has joined #ruby
djbender has quit [Quit: djbender]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Musashi1 has quit [Excess Flood]
mdpatrick has quit [Ping timeout: 252 seconds]
cocotton has joined #ruby
chrisseaton has quit []
mdpatrick has joined #ruby
moted has joined #ruby
Musashi1 has joined #ruby
supermarin has quit [Ping timeout: 255 seconds]
sputnik13 has joined #ruby
sdwrage has quit [Client Quit]
tjr9898__ has quit [Remote host closed the connection]
Jon30 has joined #ruby
dstynchu_ has joined #ruby
sdwrage has joined #ruby
<s2013> are there any good algorithm book that uses ruby?
dstynchula has quit [Read error: Connection reset by peer]
FifthWall is now known as the5thwall
Guest23306 has quit [Ping timeout: 252 seconds]
tjr9898_ has joined #ruby
arubincloud has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
<BP_out> most algorithm books are language agnostic, s2013
<s2013> i know
supermarin has joined #ruby
alexju has quit [Ping timeout: 246 seconds]
the5thwall is now known as theGreatAndPower
<CreativeEmbassy> I'm trying to examine some pretty deeply-nested variables, inside all manner of threads and continuation queues and what not
tjr9898_ has joined #ruby
<s2013> but i meant anything ruby specific? i feel like algorithms arent as important in the ruby world.
<CreativeEmbassy> trying to figure out how to escape strings for bash
<CreativeEmbassy> I'm doing this:
<centrx> s2013, Looks like there are on Google. Best algorithm books are C
<CreativeEmbassy> `echo we got here > /dev/ttys004`
<s2013> most books just use pseudocode i know that
theGreatAndPower is now known as TGnP5thWall
chrisseaton has joined #ruby
cocotton has quit [Remote host closed the connection]
lewellyn has left #ruby ["ETOOMANYCHANNELS"]
toastynerd has quit [Remote host closed the connection]
<CreativeEmbassy> so I can watch one terminal, and see "we got here" in it, no matter where it's running in the code
djbender has joined #ruby
tjr9898__ has joined #ruby
<s2013> im just trying to refresh my memory. if ogot most algo stuff from college
<CreativeEmbassy> but I want to inspect variables
<shevy> is there a way to suppress warnings from a given .rb file?
<s2013> which is good but its very dense imo
<CreativeEmbassy> `echo #{object.inspect} > /dev/ttys004`
Kricir has joined #ruby
pu22l3r has joined #ruby
<CreativeEmbassy> but running object.inspect outputs quotes and stuff
echevemaster has joined #ruby
<CreativeEmbassy> so it's doing all kinds of godawful stuff to my computer, lol
<CreativeEmbassy> actually, this:
<CreativeEmbassy> `echo #{object.inspect} > /dev/ttys004`
<CreativeEmbassy> crap, one more time.
<CreativeEmbassy> `echo "#{object.inspect}" > /dev/ttys004`
tjr989___ has joined #ruby
arietis has joined #ruby
TGnP5thWall is now known as FifthWall
nari has quit [Ping timeout: 240 seconds]
<apeiros> creativeembassy: aaaaaah!
nanoyak has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
<CreativeEmbassy> apeiros: :D
<apeiros> creativeembassy: a) use shellwords, b) better yet, use a subshell which supports array arguments
<CreativeEmbassy> am I out of my mind?
<CreativeEmbassy> lol
<apeiros> YES
m4n1f3st0 has quit []
<CreativeEmbassy> goooooogling shellwords
<apeiros> your embassy rights are hereby revoked! :-p
<apeiros> nooooo!
<apeiros> use ri! or ruby-doc.org, or rdoc.info
kevinykchan has joined #ruby
<BP_out> s2013: I would recommend just googling common interview problems
<CreativeEmbassy> I'm on ruby-doc.org
tjr9898 has joined #ruby
tjr9898_ has quit [Ping timeout: 240 seconds]
tjr9898__ has quit [Read error: Connection reset by peer]
m4n1f3st0 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
SHyx0rmZ has joined #ruby
northfurr has quit [Ping timeout: 255 seconds]
jollyy has quit [Quit: jollyy]
<shevy> damn it...
<shevy> $VERBOSE = nil kills all warnings
spyderma_ has joined #ruby
sepp2k has joined #ruby
<s2013> BP_out, yeah
alexju has joined #ruby
<CreativeEmbassy> ugh, I think I figured it out
<CreativeEmbassy> thanks aperiros
tjr989___ has quit [Ping timeout: 252 seconds]
<CreativeEmbassy> apeiros
Jetchisel has quit [Ping timeout: 260 seconds]
doodlehaus has joined #ruby
blackmesa has joined #ruby
afex has joined #ruby
boxmein has joined #ruby
claymore has joined #ruby
Kricir has quit [Remote host closed the connection]
doodleha_ has quit [Ping timeout: 252 seconds]
danshult_ has quit [Remote host closed the connection]
danshultz has joined #ruby
vongrippen has joined #ruby
vongrippen has quit [Remote host closed the connection]
mdpatrick has quit [Read error: Connection reset by peer]
<BP_out> can anyone help me with a time complexity analysis?
<centrx> Go on...
<BP_out> this is O(n) + C right?
nari has joined #ruby
Shidash has quit [Ping timeout: 255 seconds]
shashank_rs has quit [Ping timeout: 252 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
<bilbo_swaggins> s2013: algorithms are timeless
<bilbo_swaggins> programming just wouldn't be the same without them
<centrx> BP_out, It's probably O(n^2) because str2.include? looks through the entire string, right?
tvw has quit [Ping timeout: 252 seconds]
<BP_out> right, i see
<BP_out> that was the bit I had a question about
gigetoo has quit [Remote host closed the connection]
<s2013> hmm
danshultz has quit [Ping timeout: 252 seconds]
<jhass> I think str1[i..-1] is more expensive than it looks too
<bilbo_swaggins> "googling common interview problems" is bad advice
<advorak> is it appropriate in a class, for a getter method of an instance variable which happens to be an array, to dup the variable so that such things as getter#push cannot be called on them? ie: https://gist.github.com/advorak/10023642
toastynerd has joined #ruby
<BP_out> what do you mean, jhass?
<bilbo_swaggins> advorak, sure
razrunelord has joined #ruby
speakingcode has joined #ruby
<jhass> BP_out: accessing ith position may be constant time, but then you need to copy the rest of the string, which increases the longer the string is
<advorak> bilbo_swaggins, is it common practice and should I expect it to lead to confusion?
<bilbo_swaggins> first I've heard of the practice
<bilbo_swaggins> yet if anything it just ups the separation of concerns
sepp2k has quit [Ping timeout: 240 seconds]
<bilbo_swaggins> I'd wonder why you need it to do this
<BP_out> right. Is there a better way to do it? I mean any sort of string comparison is a costly thing to do
gigetoo has joined #ruby
<bilbo_swaggins> BP_out string comparisons aren't so bad
<bilbo_swaggins> what are we talking here
<BP_out> perhaps mapping the string in a hash first?
<jhass> BP_out: that's the theoretical analysis so far. In practice you need veeery long string to matter
<BP_out> right, obviously
aspires has quit []
<bilbo_swaggins> BP_out turning it into a hash just increases the time it takes!
postmodern has joined #ruby
<bilbo_swaggins> advorak: I don't see a specific use case for what you're doing
<BP_out> ah nevermind you're correct
<bilbo_swaggins> but it prevents a potentially real problem
<BP_out> stupid idea haha
<benzrf> sup bilbo_swaggins
spicerack has joined #ruby
<bilbo_swaggins> swagginin
<shevy> sup benzrf
<benzrf> good meme yolo
Hanmac1 has joined #ruby
<bilbo_swaggins> I didn't do any work this weekend
<bilbo_swaggins> first in a long time
<bilbo_swaggins> I just laid on my ass
<bilbo_swaggins> much recommended activity
<benzrf> mmm
<advorak> bilbo_swaggins, thanks.
Nukepuppy has joined #ruby
CreativeEmbassy has quit [Quit: FO SHO]
danshultz has joined #ruby
<bilbo_swaggins> advorak, what you're doing is similar to functional programming in a way
Hanmac has quit [Ping timeout: 255 seconds]
<benzrf> FP woot woot
<bilbo_swaggins> actually
<bilbo_swaggins> it's equivalent
<bilbo_swaggins> at least this specific simple example
<advorak> bilbo_swaggins, I've never considered this a problem before, and nobody else seems to ... so maybe I shouldn't consider it a problem?
<bilbo_swaggins> might as well not worry about it unless you need to
<advorak> *nods*
m4n1f3st0 has quit []
<bilbo_swaggins> better to concern yourself with preventing the sort of situation where it would be a problem
agarie has joined #ruby
<bilbo_swaggins> i.e. sharing state across too much of the application
<bilbo_swaggins> but that's a wonderfully hand-wavy answer
esposito has joined #ruby
renklaf_ has joined #ruby
sputnik13 has quit [Ping timeout: 246 seconds]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andikr has quit [Remote host closed the connection]
pdtpatr11k has quit [Quit: leaving]
pdtpatr1ck has joined #ruby
obs has quit [Remote host closed the connection]
dapz has joined #ruby
ckinni has joined #ruby
obs has joined #ruby
geggam has quit [Ping timeout: 240 seconds]
esposito has quit [Client Quit]
francisfish has quit [Remote host closed the connection]
aspires has joined #ruby
karmatr0_ has quit [Remote host closed the connection]
geggam has joined #ruby
RowdyChildren is now known as RowdyChild|Away
noop has joined #ruby
newUser1234 has quit [Remote host closed the connection]
mehlah has joined #ruby
phoo1234567 has joined #ruby
freerobby has quit [Quit: Leaving.]
joshualivesay has joined #ruby
freerobby has joined #ruby
sepp2k has joined #ruby
fabrice31 has joined #ruby
DrShoggoth has joined #ruby
armyriad has quit [Ping timeout: 255 seconds]
hermanmunster has quit [Remote host closed the connection]
rakm has joined #ruby
alvaro_o has joined #ruby
b00stfr3ak has joined #ruby
robbyoconnor has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
Gadgetoid has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
advorak has quit [Quit: Ex-Chat]
rm_ has quit [Remote host closed the connection]
mordocai has joined #ruby
rm_ has joined #ruby
<joshualivesay> I'm having some trouble understanding how to use my data models in rails. For example. I have three tables. addresses(address,city,state) / people(address_id, name) / companies(address_id, name) I'm trying set up the relationships every which way. Right now I have the Person and Company models to belongs_to :Address and the Address as has_many :companies and has_many :people If I have an address record I can do Address.
combusean has joined #ruby
nhhagen has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
pigzzcanfly has joined #ruby
rm_ has quit [Read error: Operation timed out]
derek_c has joined #ruby
<Hanmac1> joshualivesay: #RubyOnRails
tjr9898 has quit [Ping timeout: 255 seconds]
Hanmac1 is now known as Hanmac
zachallett has quit [Ping timeout: 240 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<joshualivesay> My apologies.
acrussell has quit [Quit: Leaving.]
newUser1234 has joined #ruby
tjr9898 has joined #ruby
cocotton has joined #ruby
afex has quit [Read error: Operation timed out]
yfeldblum has joined #ruby
ADNIX has joined #ruby
rfennec has joined #ruby
tjr9898 has quit [Remote host closed the connection]
<rfennec> where can i get help for thinkingsphinx
<rfennec> ?
tjr9898 has joined #ruby
spstarr_work has quit [Quit: Page closed]
<centrx> rfennec, Try #rubyonrails
subbyyy_ has joined #ruby
zachallett has joined #ruby
chipotle has quit [Quit: cya]
supermarin has quit [Quit: Computer has gone to sleep.]
pu22l3r has quit [Remote host closed the connection]
mjs2600 has joined #ruby
pu22l3r has joined #ruby
mjs2600 has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
<rfennec> thanks
BP_out has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
chrisseaton has quit []
pushpak has quit [Quit: Linkinus - http://linkinus.com]
cocotton has quit [Remote host closed the connection]
alexju has quit [Remote host closed the connection]
Hanmac has quit [Read error: Connection reset by peer]
pu22l3r has quit [Ping timeout: 240 seconds]
cocotton has joined #ruby
b00stfr3ak has quit [Read error: Operation timed out]
m4n1f3st0 has joined #ruby
Hanmac has joined #ruby
Spami has joined #ruby
renklaf_ has quit [Ping timeout: 255 seconds]
jds has quit [Quit: Connection closed for inactivity]
<genescissors> exit
genescissors has quit [Quit: WeeChat 0.4.3]
dyoko has quit [Ping timeout: 252 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
b00stfr3ak has joined #ruby
mordocai has quit [Remote host closed the connection]
earth has quit [Quit: earth]
larsam has quit [Read error: Connection reset by peer]
dumdedum has quit [Quit: foo]
duggiefr_ has quit [Remote host closed the connection]
<joshualivesay> what's the extensions again?
x77686d has joined #ruby
<benzrf> manacit:
<benzrf> *man
larsam has joined #ruby
<benzrf> wouldnt it be great if ruby supported delimited continuation natively and with usable performane
<benzrf> *performance
<benzrf> o3o
joshualivesay has left #ruby [#ruby]
afex has joined #ruby
CreativeEmbassy has joined #ruby
chrisseaton has joined #ruby
ndrei has quit [Quit: Lost terminal]
yfeldblum has joined #ruby
tjr9898 has quit [Remote host closed the connection]
CorySimmons has joined #ruby
davy_ has joined #ruby
freggles has quit [Remote host closed the connection]
newUser1234 has quit [Remote host closed the connection]
_lazarevsky_ has joined #ruby
rezzack has quit [Quit: Leaving.]
m4n1f3st0 has quit []
f0ster` has quit [Read error: Operation timed out]
Es0teric has quit [Quit: Computer has gone to sleep.]
elaptics`away is now known as elaptics
<shevy> what is an "ass clown"?
vongrippen has joined #ruby
toastynerd has quit [Remote host closed the connection]
zachallett has quit [Remote host closed the connection]
failshell has quit []
newUser1234 has joined #ruby
<benzrf> shevy: look in a mirror to find out
<benzrf> ba dum psh
<shevy> I see a king there
nhhagen has joined #ruby
<shevy> the lyrics of the parody from shakira + rihanna are awesome https://www.youtube.com/watch?v=3wFwYBPvYu8 but now I must determine what "ass clown" means
zachallett has joined #ruby
mweshi has joined #ruby
combusean has quit [Ping timeout: 252 seconds]
toastynerd has joined #ruby
karmatr0n has joined #ruby
dunix has quit []
maximski has joined #ruby
sailias has quit [Ping timeout: 252 seconds]
tjr9898 has joined #ruby
karmatr0_ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
karmatr0n has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
jackneill has quit [Ping timeout: 255 seconds]
havenwood has quit []
carraroj has joined #ruby
CorySimmons has quit [Quit: Bye!]
mjs2600 has joined #ruby
armyriad has joined #ruby
m8 has joined #ruby
circuit has joined #ruby
Hobogrammer has quit [Ping timeout: 252 seconds]
f0ster`_ has joined #ruby
agarie has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JohnBat26 has quit [Ping timeout: 240 seconds]
shashank_rs has joined #ruby
mjs2600 has quit [Remote host closed the connection]
jonno11 has joined #ruby
kennym has quit [Quit: Leaving.]
karmatr0_ has quit [Read error: Connection reset by peer]
phutchin1 has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
yalue has quit [Quit: Leaving]
karmatr0n has joined #ruby
sambao21 has quit [Client Quit]
Es0teric has joined #ruby
karmatr0n has quit [Read error: Connection reset by peer]
karmatr0n has joined #ruby
BradPitt_ has joined #ruby
mityaz has quit [Quit: See ya!]
endash_ has joined #ruby
yfeldblum has quit [Read error: Operation timed out]
tonni has joined #ruby
benzrf is now known as benzrf|offline
oz` has joined #ruby
patronus_ has joined #ruby
ItSAN____ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
b00stfr3ak has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
cocotton has quit [Quit: Leaving...]
sailias has joined #ruby
rakm_ has joined #ruby
danshultz has quit [Remote host closed the connection]
jeregrine_ has joined #ruby
ahuman_ has joined #ruby
sambao21 has joined #ruby
robbyoconnor has quit [Ping timeout: 252 seconds]
MatthewsFace has joined #ruby
_zxq9_ has joined #ruby
danshultz has joined #ruby
rudisimo has joined #ruby
jhass is now known as jhass|off
vlad_starkov has joined #ruby
wuest_ has joined #ruby
<bilbo_swaggins> shevy are you american
dazeddev_ has joined #ruby
nwkr has joined #ruby
inverses2uarelaw has joined #ruby
sawtooth_ has joined #ruby
<shevy> nope
nighter_ has joined #ruby
qz_ has joined #ruby
michael_imac has joined #ruby
kloeri_ has joined #ruby
Muz_ has joined #ruby
<bilbo_swaggins> it's just the same as all other English insults
davy_ has quit [Ping timeout: 255 seconds]
Fraeon has joined #ruby
rs0_ has joined #ruby
Hamled|Erp has joined #ruby
mnms__ has joined #ruby
cHarNe2_ has joined #ruby
<horrorvacui> Its someone who is a joke and asshole at the same time.
drager_ has joined #ruby
<bilbo_swaggins> take a southerly body part or activity it's in regards to
d-snp_ has joined #ruby
<bilbo_swaggins> and add another word
<shevy> cool
emaxi has quit [Remote host closed the connection]
<shevy> I always associated a clown to be positive
lukec has joined #ruby
<shevy> like the one in The Simpsons
b00stfr3ak has joined #ruby
<horrorvacui> I don't know if it's something more prolific in the US but clowns are usually hated here.
maletor has joined #ruby
aef_ has joined #ruby
newUser1234 has quit [Remote host closed the connection]
samuel02 has quit [Remote host closed the connection]
<horrorvacui> I blame the movie IT and Gacy the serial killer for one.
sdouglas has joined #ruby
samuel02 has joined #ruby
danshultz has quit [Ping timeout: 252 seconds]
jgrevich has joined #ruby
Davey_ has joined #ruby
Naoe-Kanno has joined #ruby
bio has joined #ruby
jaxxstorm_ has joined #ruby
paul__k has joined #ruby
hostess_ has joined #ruby
kartouch_ has joined #ruby
_aeris has joined #ruby
ninegrid_ is now known as ninegrid
FaresKAlaboud has joined #ruby
SHyx0rmZ has quit [Ping timeout: 255 seconds]
rakm has quit [*.net *.split]
echevemaster has quit [*.net *.split]
jeregrine has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
Biohazard has quit [*.net *.split]
Trynemjoel has quit [*.net *.split]
flower-pot has quit [*.net *.split]
snapcase has quit [*.net *.split]
St_Marx has quit [*.net *.split]
wuest has quit [*.net *.split]
aspiers has quit [*.net *.split]
hfp has quit [*.net *.split]
ahuman has quit [*.net *.split]
endash has quit [*.net *.split]
jgrevich2 has quit [*.net *.split]
Nowaker has quit [*.net *.split]
patronus has quit [*.net *.split]
aef has quit [*.net *.split]
BraddBitt has quit [*.net *.split]
wchun has quit [*.net *.split]
ItSANgo__ has quit [*.net *.split]
jwest has quit [*.net *.split]
RSTJNII has quit [*.net *.split]
zerun0 has quit [*.net *.split]
zxq9 has quit [*.net *.split]
Freijo has quit [*.net *.split]
edwardly has quit [*.net *.split]
inversesquarelaw has quit [*.net *.split]
paul_k has quit [*.net *.split]
Davey has quit [*.net *.split]
rs0 has quit [*.net *.split]
dazeddev has quit [*.net *.split]
go|dfish has quit [*.net *.split]
drager has quit [*.net *.split]
Hamled has quit [*.net *.split]
qz has quit [*.net *.split]
phreax has quit [*.net *.split]
cHarNe2 has quit [*.net *.split]
ping-pong has quit [*.net *.split]
j416 has quit [*.net *.split]
lupine has quit [*.net *.split]
m4rcu5 has quit [*.net *.split]
kloeri has quit [*.net *.split]
mnms_ has quit [*.net *.split]
DylanJ has quit [*.net *.split]
hostess has quit [*.net *.split]
Muz has quit [*.net *.split]
michael_mbp has quit [*.net *.split]
nighter has quit [*.net *.split]
d-snp has quit [*.net *.split]
sawtooth has quit [*.net *.split]
FaresKA has quit [*.net *.split]
majoh has quit [*.net *.split]
jaxxstorm has quit [*.net *.split]
oz has quit [*.net *.split]
_aeris_ has quit [*.net *.split]
kartouch has quit [*.net *.split]
kalz has quit [*.net *.split]
kartouch_ is now known as kartouch
endash__ is now known as endash
_aeris is now known as _aeris_
oz` is now known as oz
lupine_85 has joined #ruby
rakm_ is now known as rakm
wuest_ is now known as wuest
jaxxstorm_ is now known as jaxxstorm
Davey_ is now known as Davey
jeregrine_ is now known as jeregrine
edwardly_ has joined #ruby
<shevy> oh now that you mention it horrorvacui
kirun has quit [Quit: Client exiting]
<shevy> in that movie, there was this horror clown that killed children or something like that
SegFaultAX has joined #ruby
phreax has joined #ruby
edwardly_ is now known as edwardly
ADNIX has quit [Quit: User abort with 5 Ctrl-C's]
jhass|off is now known as jhass
jxf has quit [Ping timeout: 246 seconds]
lupine_85 is now known as lupine
aspires has quit []
Es0teric has quit [Quit: Computer has gone to sleep.]
badhatter has joined #ruby
<horrorvacui> shevy: Yeah and Gacy was a serial killer who dressed as a clown and killed a lot men. Not sure if he killed them as a clown though.
samuel02 has quit [Ping timeout: 240 seconds]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
carraroj has quit [Quit: Konversation terminated!]
emaxi has joined #ruby
Megtastique has quit []
x77686d has quit [Quit: x77686d]
robbyoconnor has joined #ruby
kennym has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
phansch_ has joined #ruby
Es0teric has joined #ruby
mdpatrick has joined #ruby
michaeldeol has joined #ruby
Es0teric has quit [Client Quit]
DylanJ has joined #ruby
aspiers has joined #ruby
ping-pong has joined #ruby
zerun0 has joined #ruby
go|dfish has joined #ruby
RSTJNII has joined #ruby
flowerpot has joined #ruby
jwest has joined #ruby
pskosinski has joined #ruby
x77686d has joined #ruby
UserNameInvalid has quit [Quit: Leaving]
phansch has quit [Ping timeout: 255 seconds]
x77686d has quit [Client Quit]
kalz has joined #ruby
aspires has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hobogrammer has joined #ruby
francisfish has joined #ruby
jasonwebster has joined #ruby
echevemaster has joined #ruby
vlad_starkov has quit []
Zai00 has joined #ruby
ckinni has joined #ruby
phansch_ has quit [Quit: WeeChat 0.4.2]
wallerdev has quit [Quit: wallerdev]
ikaros has joined #ruby
shinobi_one has joined #ruby
Marfi has joined #ruby
<Marfi> hello
x1337807x has joined #ruby
yfeldblum has quit [Remote host closed the connection]
michael_lee has quit [Quit: Ex-Chat]
nari has quit [Ping timeout: 252 seconds]
<Marfi> anybody using swig? how write extension in C to ruby. I have library -png
bilbo_swaggins has quit [Quit: keep bein pimps]
derek_c has quit [Quit: Leaving]
sdwrage has joined #ruby
derek_c has joined #ruby
pu22l3r has joined #ruby
rm_ has joined #ruby
end_guy has quit [Remote host closed the connection]
rayners has quit [Ping timeout: 255 seconds]
kevind_ has joined #ruby
mjs2600 has joined #ruby
mjs2600 has quit [Remote host closed the connection]
vongrippen has quit []
mr_red has quit [Ping timeout: 240 seconds]
kevind has quit [Ping timeout: 240 seconds]
frem has joined #ruby
kevind_ is now known as kevind
sailias1 has joined #ruby
sailias has quit [Ping timeout: 255 seconds]
rfennec has left #ruby ["Leaving"]
zachallett has quit [Remote host closed the connection]
Mapley has quit [Read error: Connection reset by peer]
Cydrobolt has quit [Read error: Connection reset by peer]
end_guy has joined #ruby
rayners has joined #ruby
<chrisseaton> Marfi: libpng? There is a Ruby version if you can use that - ChunkyPNG
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tos9 has joined #ruby
<Marfi> I need write extension in C to ruby , my extension using -lpng
vongrippen has joined #ruby
asteros has joined #ruby
<tos9> How do I get bundler to use the ruby version specified in .ruby-version? When I `bundle install`, it's still using the system ruby version
<Marfi> How write extension with library not naked C
vongrippen has quit [Client Quit]
<Riking> tos9, rvm i think
<tos9> Riking: I got rid of rvm, I'm using rbenv instead.
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tos9> Which supposedly doesn't require / use gemsets, you just use bundler.
<Riking> hm. don't have experience with it, sorry
<Marfi> chrisseaton, where is any extension example to dynamic library?
<Marfi> -lpng ot other
centrx has quit [Quit: All this computer hacking is making me thirsty]
<chrisseaton> Marfi: using libpng doesn't make any difference to writing your extension, just statically or dynamically link it into your extension library like you would in any other project
<tos9> Maybe I'm supposed to put the rbenv shims directory on my PATH...
<Marfi> chrisseaton, I use this : http://www.swig.org/tutorial.html when I add -lpng function I heve error linking when runing ruby script
<chrisseaton> Marfi: sorry, I'm not that familiar with this stuff
robbyoconnor has quit [Max SendQ exceeded]
<Marfi> chrisseaton, ok
<Marfi> meybe You use mruby?
dapz has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Guedes has left #ruby ["Saindo"]
robbyoconnor has joined #ruby
<Marfi> I'm looking any working example of using mruby in C program.
mgomezch has quit [Ping timeout: 240 seconds]
<shevy> nobody uses mruby :)
spider-mario has quit [Remote host closed the connection]
* Marfi ;(
mark_locklear has joined #ruby
<shevy> I still dont know how people can require something in mruby
tos9 has left #ruby [#ruby]
<Marfi> mruby is better than lua
<horrorvacui> mruby is used to build ruby
dhunter has quit [Quit: leaving]
rylev has quit [Remote host closed the connection]
jprovazn_bbl has quit [Quit: Odcházím]
<Marfi> mruby is for embeding ruby in C program
sputnik13 has joined #ruby
rylev has joined #ruby
<jeregrine> anyone using ruby-concurrent in production?
dapz has quit [Client Quit]
supermarin has joined #ruby
centrx has joined #ruby
agarie has joined #ruby
<jeregrine> and or how does it line up with something like celluoid?
mgomezch has joined #ruby
agarie_ has joined #ruby
agarie_ has quit [Remote host closed the connection]
Takumo has joined #ruby
agarie_ has joined #ruby
sambao21 has joined #ruby
x77686d has joined #ruby
rylev_ has joined #ruby
s2013 has quit [Read error: Connection reset by peer]
kinginky has joined #ruby
s2013 has joined #ruby
Mapley has joined #ruby
chipotle has joined #ruby
<kinginky> does anyone know of some kind of gem that allows you to quickly generate source trees from skeletons for new projects? something you could also easily setup your own skeletons with, preferable
<kinginky> preferably*
<kinginky> it cut me off, apologies. im looking for a gem of some kind, that will lets me generate source trees.
Musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
agarie has quit [Ping timeout: 240 seconds]
Zai00 has quit [Quit: Zai00]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
rylev has quit [Ping timeout: 246 seconds]
mrjensen has joined #ruby
fabrice31 has joined #ruby
nisstyre has joined #ruby
<apeiros> kinginky: unfinished, but may be good enough: https://github.com/apeiros/directory_template
<apeiros> feel free to contribute
<kinginky> sweet, that's perfect. ill look into it now. thank you
Advocation has quit [Quit: Advocation]
zachallett has joined #ruby
einarj has joined #ruby
nfk has quit [Quit: yawn]
weems has quit [Read error: Connection reset by peer]
Piotrek has left #ruby ["/part"]
mweshi has quit [Quit: Page closed]
zachallett has quit [Remote host closed the connection]
Marfi has quit [Quit: Wychodzi]
fabrice31 has quit [Ping timeout: 246 seconds]
supermarin has quit [Quit: Computer has gone to sleep.]
supermarin has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 252 seconds]
sailias1 has quit [Quit: Leaving.]
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
asteros has quit [Quit: asteros]
brunops has joined #ruby
defunct_process has joined #ruby
Emmanuel_Chanel has joined #ruby
agarie_ has quit [Read error: Connection reset by peer]
paulfm has quit []
agarie has joined #ruby
agarie has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Ping timeout: 255 seconds]
x1337807x has joined #ruby
supermarin_ has joined #ruby
asteros has joined #ruby
supermarin has quit [Read error: Connection reset by peer]
FxK has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
davedev2_ has joined #ruby
blueOxigen has joined #ruby
jibi has joined #ruby
IcyDragon has joined #ruby
IceDragon has quit [Ping timeout: 246 seconds]
davedev24 has quit [Ping timeout: 255 seconds]
mr_red has joined #ruby
Deele has quit [Ping timeout: 240 seconds]
sdwrage has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
momomomomo has quit [Remote host closed the connection]
_lazarevsky_ has quit [Ping timeout: 245 seconds]
ghr has joined #ruby
djbender has quit [Ping timeout: 252 seconds]
oso|away is now known as oso96_2000
armyriad has quit [Quit: Leaving]
Trynemjoel has joined #ruby
Eiam has joined #ruby
djbender has joined #ruby
hfp has joined #ruby
olivier_bK has joined #ruby
UserNameInvalid has joined #ruby
St_Marx has joined #ruby
jack_rabbit has joined #ruby
pu22l3r has quit [Remote host closed the connection]
Nukepuppy has quit [Ping timeout: 240 seconds]
pu22l3r has joined #ruby
snapcase has joined #ruby
chichou has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 255 seconds]
red234324 has quit [Quit: Leaving]
atno has quit [Remote host closed the connection]
noop has quit [Ping timeout: 255 seconds]
Megtastique has joined #ruby
juanmnl has joined #ruby
penguinpowernz has quit [Quit: leaving]
ctp has joined #ruby
mckain has joined #ruby
<shevy> hmm
djbender has quit [Quit: djbender]
samuel02 has joined #ruby
RowdyChild|Away is now known as RowdyChildren
chichou has joined #ruby
danijoo has quit [Remote host closed the connection]
afex has quit [Ping timeout: 255 seconds]
sski has joined #ruby
james_d_h has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
osx5 has joined #ruby
sepp2k has quit [Quit: Leaving.]
toastynerd has quit [Remote host closed the connection]
sputnik13 has joined #ruby
_zxq9_ is now known as zxq9
jkamenik has left #ruby [#ruby]
sambao21 has quit [Quit: Computer has gone to sleep.]
pu22l3r has quit [Ping timeout: 240 seconds]
lazyguru has quit [Ping timeout: 264 seconds]
samuel02 has quit [Ping timeout: 246 seconds]
francisfish has quit [Remote host closed the connection]
randomnick_ has quit [Remote host closed the connection]
mrjensen has quit [Remote host closed the connection]
Shidash has joined #ruby
sdwrage has quit [Ping timeout: 240 seconds]
mrjensen has joined #ruby
osx5 has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
toastynerd has joined #ruby
derek_c has quit [Ping timeout: 252 seconds]
lazyguru has joined #ruby
IcyDragon has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrjensen has quit [Ping timeout: 255 seconds]
rudisimo has quit [Remote host closed the connection]
asteros has quit [Quit: asteros]
Prometheian has joined #ruby
sdwrage has joined #ruby
<Prometheian> Anyone got some experience using capybara? #capybara is dead :(
yfeldblu_ has joined #ruby
rudisimo has joined #ruby
majoh has joined #ruby
asteros has joined #ruby
mrjensen has joined #ruby
funburn has joined #ruby
<iitywimwybmab> Prometheian: i'd bet someone does.. what's the question?
robbyoconnor has joined #ruby
<Prometheian> I've got a label next to a dropdown box. Both are in seperate <td>'s. Is there a way to confirm that the dropdown is indeed a dropdown given just the name of the label? Kinda out there, but Imo I've been given unreasonable sepcs by my boss.
tjr9898 has quit [Remote host closed the connection]
pigzzcanfly has quit [Remote host closed the connection]
zachallett has joined #ruby
<jhass> xpath should be able to do it
jack_rabbit has quit [Ping timeout: 255 seconds]
tjr9898 has joined #ruby
<jhass> so expect(page).to have_xpath("...")
freerobby has quit [Quit: Leaving.]
jrhe has quit [Quit: Connection closed for inactivity]
<Prometheian> Well no, I can make it work if I move outside those specs. That's not hard. What my boss wants me to do is basically "Page has a dropdown called Provider" when the label is Provider and the dropdown has its own set of stuff.
mrjensen has quit [Remote host closed the connection]
crystal77 has quit [Quit: Computer has gone to sleep.]
mark_locklear has quit [Ping timeout: 240 seconds]
mrjensen has joined #ruby
f0ster`_ is now known as f0ster`
freerobby has joined #ruby
nisstyre has quit [Quit: WeeChat 0.4.3]
Morkel has quit [Quit: Morkel]
<jhass> //td/select[ancestor::td[label[@text="Provider"]]] something along those lines, my xpath is already rusty again
derek_c has joined #ruby
<Prometheian> huh
<Prometheian> I'll give that a shot, ty
tjr9898 has quit [Ping timeout: 255 seconds]
danijoo has joined #ruby
<jhass> er, s/@text/text()/
<Prometheian> tr[7]/td[2]/select vs tr[7]/td[1]/span
Stalkr_ has joined #ruby
mrjensen has quit [Ping timeout: 255 seconds]
supermarin_ has quit [Quit: Computer has gone to sleep.]
<Prometheian> jhass: Just the second line? Confused.. :s
supermarin_ has joined #ruby
matchaw_ has joined #ruby
IcyDragon has joined #ruby
matchaw has quit [Ping timeout: 240 seconds]
<jhass> nah, sed command, replace @text by text()
end_guy has quit [Remote host closed the connection]
end_guy has joined #ruby
<Prometheian> Huh?
<Prometheian> Sorry, end of work day and head's foggy
<jhass> //td/select[ancestor::td[label[text()="Provider"]]]
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Takumo> I'm wondering how to impliment Warden into a module, it appears there is no 'use' method for a Module... so how would I set create a Warden module for my app to include?
momomomomo has joined #ruby
jespada has quit [Quit: Leaving]
<Takumo> as the docs seem to indicate I need to `use Warden::Manager` and configure it with a block
matchaw has joined #ruby
matchaw_ has quit [Ping timeout: 255 seconds]
supermarin_ has quit [Ping timeout: 255 seconds]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Takumo> oh I'm being silly
emaxi has quit [Remote host closed the connection]
claymore has quit [Quit: Leaving]
funburn has quit [Quit: funburn]
evenix has quit [Remote host closed the connection]
atmosx has quit [Remote host closed the connection]
andrewlio has quit [Read error: Connection reset by peer]
evenix has joined #ruby
<Prometheian> jhass: Using this with page.has_content? but given how reliable this is, no idea if it worked
evenix has quit [Read error: Connection reset by peer]
atmosx has joined #ruby
evenix has joined #ruby
cover has quit [Remote host closed the connection]
evenix has quit [Remote host closed the connection]
sdouglas has quit [Remote host closed the connection]
derek_c has quit [Ping timeout: 240 seconds]
<jhass> Prometheian: expect(page).to have_xpath '//td/select[parent::td[preceding-sibling::td/label[text()="Provider"]]]' # Actually tested that one
zerun0 has quit [Quit: Leaving]
evenix has joined #ruby
sdouglas has joined #ruby
hooper has joined #ruby
crystal77 has joined #ruby
shashank_rs has quit [Read error: Connection reset by peer]
obs has quit [Quit: Konversation terminated!]
mary5030 has quit [Remote host closed the connection]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dorei has joined #ruby
<Prometheian> testing
<dorei> hello
<Prometheian> It's failing.. so I guess that's good.
Zubin has joined #ruby
<Prometheian> Should it be parent::tr?
<dorei> let's say I have an array a, is there a more elegant way to check if the array has unique items other than a.size == a.uniq.size ?
rakm has quit [Quit: Connection closed for inactivity]
<jhass> Prometheian: I understood your structure as <tr><td><label>Provider</td><td><select /></td></tr>
<apeiros> dorei: um, your code doesn't do what you say it does
evenix has quit [Ping timeout: 252 seconds]
<Prometheian> there's xpath's
<Prometheian> :s
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<apeiros> it does not tell you whether it *has* unique items. it tells you whether it *only* consists of unique items.
Zubin has quit [Remote host closed the connection]
<dorei> apeiros: uhm, what's the subtle difference between those two?
<apeiros> [1,2,2,3,4] has unique items
endash has quit [Quit: endash]
endash_ is now known as endash
<apeiros> [1,2,3,4] has only unique items
<dorei> okie, the second one
<jhass> Prometheian: well then use span instead of label (and ugh, what an ugly structure)
<dorei> i want to check it if only consists of unique items
funburn has joined #ruby
<apeiros> then your code is probably the most concise way
mercwithamouth has joined #ruby
DouweM has joined #ruby
UserNameInvalid has quit [Read error: Operation timed out]
osx5 has joined #ruby
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
<Prometheian> jhass: That ran clear. I'm still worried it isn't workin right. I needa go though so I'll work on this more later, thx very much!
<jhass> dorei: ^ +1 I mean you could check the return value of uniq! but nobody will understand that
<jhass> Prometheian: easy to test just change the text or reorder the elements or something
<Prometheian> I'm testing against a webpage I don't have control over. :(
<Prometheian> But anywho, thx again! Peace!
Prometheian has quit [Quit: ChatZilla 0.9.90.1 [Firefox 28.0/20140314220517]]
funburn has quit [Client Quit]
ctp has quit [Ping timeout: 240 seconds]
afex has joined #ruby
phantummm has quit [Quit: phantummm]
osx5 has quit [Client Quit]
viscera has joined #ruby
sputnik13 has joined #ruby
jobewan has quit [Quit: Leaving]
doodlehaus has quit [Remote host closed the connection]
defunct_process has quit [Read error: Connection reset by peer]
pigzzcanfly has joined #ruby
treehug88 has quit []
mary5030 has joined #ruby
afreidah1 has quit [Read error: Operation timed out]
UserNameInvalid has joined #ruby
hooper has quit [Read error: Operation timed out]
lukec has quit [Quit: lukec]
mrmargolis has quit [Remote host closed the connection]
zachallett has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
tacos1de has quit [Remote host closed the connection]
atmosx has quit [Read error: Connection reset by peer]
pskosinski has quit [Remote host closed the connection]
tacos1de has joined #ruby
pigzzcanfly has quit [Ping timeout: 255 seconds]
atmosx has joined #ruby
pskosinski has joined #ruby
lukec has joined #ruby
RichGuk has joined #ruby
rococo has joined #ruby
rayners has quit [Ping timeout: 240 seconds]
supermarin_ has joined #ruby
pskosinski has quit [Client Quit]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jackyalcine has joined #ruby
maximski has quit []
jhass is now known as jhass|off
s2013 has quit [Ping timeout: 252 seconds]
blueOxigen has quit [Ping timeout: 240 seconds]
bean has joined #ruby
sputnik13 has joined #ruby
keeguon has quit [Quit: keeguon]
Olipro has quit [Ping timeout: 246 seconds]
kitak has quit [Remote host closed the connection]
dtcrshr has quit [Remote host closed the connection]
kitak has joined #ruby
nhhagen has quit [Remote host closed the connection]
darmou has joined #ruby
viscera has left #ruby [#ruby]
CorySimmons has joined #ruby
SCommette has quit [Quit: SCommette]
sski has quit [Remote host closed the connection]
sski has joined #ruby
IcyDragon is now known as IceDragon
x77686d has quit [Quit: x77686d]
geggam has quit [Remote host closed the connection]
taf2 has quit [Quit: taf2]
<zastern> Is there a way to specify encryption length with ruby's crypt function? It appears much shorter than the crypt passwords I create with htpasswd -d, but there's nothing I cna change but the salt
<dorei> u mean the lenght of the output?
<zastern> I've definitely got only a rudimentary understanding of what's happening here but presumably shorter string for same password = less good encryption?
<dorei> it depends on the algorythm used
kitak has quit [Ping timeout: 260 seconds]
<zastern> indeed. but crypt seems to take no arguments other than a 2 cahr salt
<zastern> as far as I can tell
sski has quit [Ping timeout: 240 seconds]
<zastern> the password works inside of htpasswd so presuambly its the same overall algorithm as the htpasswd command with -d flag
<zastern> (which specifies use crypt instead of md5)
asteros has quit [Ping timeout: 255 seconds]
meatherly has quit [Remote host closed the connection]
badhatter has left #ruby ["Leaving"]
badhatter has joined #ruby
terrellt_ has joined #ruby
meatherly has joined #ruby
<dorei> check the comments
<zastern> ah neat.
RowdyChildren is now known as RowdyChild|Away
<zastern> thanks!
terrellt has quit [Ping timeout: 252 seconds]
<dorei> man crypt might also help you
k776 has joined #ruby
<zastern> Yeah I did read that but I couldn't figure out how to tie it into the ruby function
<zastern> Since it's not directly documented
<zastern> but this looks like what I need, thanks
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
testcore has quit [Ping timeout: 265 seconds]
uxfi has joined #ruby
<uxfi> Hey all
<uxfi> im super new to programming
<uxfi> is ruby a good way to get starteD/
chipotle has quit [Quit: cya]
meatherly has quit [Ping timeout: 252 seconds]
<dorei> no programming experience at all?
<uxfi> well
<uxfi> I did a little java
<uxfi> but Hated it
<uxfi> so not really dorei but I know its system.out.print and stuff
setient has quit [Ping timeout: 255 seconds]
<dorei> then u'll love ruby :)
<uxfi> yeah I get that
<shevy> uxfi ruby can be simple if you decide to keep it simple, that includes learning it
<uxfi> but I dont know programming :0
<uxfi> what about lisps and stuff?
<uxfi> heeh
<shevy> what about it
chris_thomson has joined #ruby
habanany1 has quit [Ping timeout: 240 seconds]
<uxfi> I wanted to try learn ruby the hard way
<shevy> do you speak about fossil languages?
<dorei> lol
<k776> Hello. Is there any way to get the current module name? Specific case: I want to include a module containing some I18n helpers into rails helper modules, and they should be able to get the module it's called from. Example code: http://pastie.org/9001908
<uxfi> But my freind who's a sofware engeineer said it wont teach you crap
<uxfi> :P
<shevy> the author abandoned ruby
<zastern> I hated LRTHW. It gets real boring real fast.
<zastern> I tried it.
<uxfi> really?
<uxfi> hmmm
<zastern> I really enjoyed lynda.com's ruby videos
<uxfi> what should I do then?
<zastern> That's waht finally got me quasi-productive in ruby
<uxfi> zastern: Were you new to programming?
<k776> With classes it's a piece of cake (self.class.name), modules don't work like that :-( Any ideas how?
<zastern> uxfi: yes.
<dorei> shevy: http://awk.info/?dsl/awklisp
<uxfi> really?
<shevy> uxfi the only way to learn ruby is to write scripts
<zastern> Fakely.
<uxfi> I see
bambuka has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
<shevy> dorei can't see much other than a wild attack of ()s
speakingcode has quit [Ping timeout: 255 seconds]
olivier_bK has quit [Ping timeout: 246 seconds]
<uxfi> well
<shevy> can't lisp be all written on one line?
<uxfi> what should I try ?
<uxfi> see How would I know about this :p
<shevy> uxfi are you on linux
<uxfi> nope OS X :)
<zastern> shevy: can't ruby? `;`
<dorei> shevy: i'm allergic to parentheses too :(
<uxfi> hehe
<uxfi> see should I try to learn the basics of programming first or ?
<uxfi> hmm
<shevy> zastern nah that is not good, ; is optional as you can use \n but the () are mandatory in lisp
<zastern> I was just kidding.
m8 has quit [Quit: Sto andando via]
<dorei> uxfi: ruby is really a fun language to learn programming, fun and elegant :)
<shevy> uxfi what are the basics of programming
<uxfi> dorei: im not sure ..
<uxfi> an IDE
<uxfi> uh
<uxfi> brackets?
fabrice31 has joined #ruby
rezzack has joined #ruby
<uxfi> output?
mary5030 has quit [Ping timeout: 255 seconds]
<shevy> hehe
<zastern> 0001110010101011110001010000111100000
<uxfi> see
<shevy> an IDE
<uxfi> Binarycode
<uxfi> !
VTLob has quit [Quit: VTLob]
<uxfi> that too :p
<shevy> you should keep it simple
<uxfi> ok
<uxfi> shevy: Im just worried
j416 has joined #ruby
<shevy> uxfi first identify a task you want to solve
<uxfi> I mean my freind asys why learn how to program if the guide deosnt even have good examples?
<uxfi> not sure what to say
<shevy> what guide
<uxfi> Learn Ruby the had way
<uxfi> I used it before for a little Python
<shevy> I dunno
<uxfi> its not bad
<shevy> did anyone here recommend it?
<uxfi> but im not sure as im SUPER new :p
<uxfi> yeah I asked on anotehr palce
mary5030 has joined #ruby
<shevy> <shevy> the author abandoned ruby
<shevy> <zastern> I hated LRTHW. It gets real boring real fast.
<uxfi> hmm
<shevy> so
<uxfi> guess not
<shevy> go read it but so far noone from #ruby recommended it
<uxfi> ok
ikaros has quit [Quit: Ex-Chat]
<uxfi> well how did you learn RUby
crystal77 has quit [Quit: Computer has gone to sleep.]
<uxfi> I feel silly :P
<shevy> well I am not in the same position
<shevy> I started with perl
<shevy> did not like it much, but I had a good book
<uxfi> ok
<uxfi> How do you sugest I get started?
<uxfi> :)
<shevy> you must write scripts
<uxfi> like what kind? what kind of tutorials?
<uxfi> like a hello world one?
<shevy> you should have some goal
yosafbridge has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<shevy> come on
<shevy> is hello world that useful?
<uxfi> well no
<shevy> show how you would write hello world in ruby
<uxfi> ok
<shevy> you can use the bot here, like:
<shevy> >> 5+5
<eval-in> shevy => 10 (https://eval.in/133475)
<shevy> it evaluates ruby code
Dysruption has joined #ruby
<uxfi> >>system.out.print("hello World")
<eval-in> uxfi => wrong number of arguments (0 for 1+) (ArgumentError) ... (https://eval.in/133476)
<shevy> is this ruby code
<uxfi> hrk
<uxfi> nope
<shevy> did you hope it would work
<uxfi> I saw it on LRHW
<uxfi> I tried
fabrice31 has quit [Ping timeout: 240 seconds]
<shevy> omg
<dorei> that's java. not ruby :p
<uxfi> argh
<shevy> uxfi now you see that you should use good resources
<uxfi> Maybe I havent read the guide in a while
<uxfi> :)
<shevy> ok here is one
<uxfi> yeah ..
<uxfi> thanks
<shevy> but you must try it locally on your computer
<uxfi> this is in Ruby?
robbyoconnor has quit [Ping timeout: 246 seconds]
<shevy> in irb
<shevy> !!!
<shevy> start irb!
<uxfi> irb?
<shevy> you are on osx, no excuses
<shevy> yeah
<shevy> open terminal
<uxfi> ok
<shevy> type: irb
<uxfi> I'll use a text editor
<uxfi> :)
<dorei> irb is interactive
<uxfi> interactive?
<uxfi> :)
<dorei> an interactive enviroment helps u more when u learn
<uxfi> But bu a text editor :P
havenwood has joined #ruby
<uxfi> hey havenwood
<havenwood> uxfi: hi
x77686d has joined #ruby
<uxfi> anyways I'll check it out
boxmein has quit [Quit: [02:26.00] <Ristovski> mozzarella filofax fadget]
<uxfi> :)
<shevy> uxfi the point of irb is that you can type ruby code and have it evaluated instantly
dblessing has quit [Quit: dblessing]
<uxfi> oh wow
pel_daniel has quit [Ping timeout: 255 seconds]
<shevy> uxfi you should really start irb
<uxfi> sure
tentees has joined #ruby
<wallerdev> irb is great for learning ruby
blurredbits has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pel_daniel has joined #ruby
tentees is now known as setient
<uxfi> so I just tpe my stuff in and thats that?
<shevy> did you start it finally :P
<uxfi> eh
<uxfi> not yet
<uxfi> shevy: Do you guys use Irssi too ?
<wallerdev> lol
<shevy> no
<shevy> i use xchat
<uxfi> heh
<wallerdev> i used irssi a few years back
<uxfi> see A GUI TEXt editor :P
<uxfi> er GUI RIC chat program
<shevy> I mispaste too often with clients like irssi
<uxfi> and a terminal "P
<uxfi> I see
<shevy> yeah
<shevy> kde konsole
<uxfi> What text editor do you use?
<uxfi> for code?
<shevy> bluefish 1.0.7
<shevy> have you finally started irb?
yosafbridge has joined #ruby
<uxfi> haha yes
<shevy> EXCELLENT
carif has quit [Quit: Ex-Chat]
<shevy> you gained enough xp to attain level 2
<uxfi> I win
<uxfi> what do I win?
<shevy> now at https://pine.fm/LearnToProgram/?Chapter=01 this one teaches you how ruby sees numbers
<shevy> uxfi a pink ribbon
<uxfi> yay
<shevy> uxfi after you read it, you must explain to us the difference between a Float and an Integer (in ruby)
<uxfi> shevy: You think it will be ok for it to show me what to do with Ruby?
<uxfi> like lisips/
<uxfi> general aspects of programming/
<uxfi> again thanks :)
<shevy> well
<shevy> that's a good question
<shevy> why do you want to program :)
<uxfi> well
<uxfi> im not sure yet
freerobby has quit [Quit: Leaving.]
<uxfi> Im using a RUby based irc cleint too soemtimes
<uxfi> I want to bridge Obj C and Ruby
<uxfi> :p
<uxfi> I think RubyCocoa does htat
<uxfi> that*
<shevy> no real idea, some here use osx
<uxfi> hmm
<shevy> like havenwood right!
<uxfi> well shevy I'l lget started on it
<uxfi> shevy: but you think fater I use this site then I can move on to another other langauge?
<shevy> hehe
<uxfi> Im just new so a lik worried
evenix has joined #ruby
<uxfi> lil
<shevy> well, many things are identical in all programming languages
<uxfi> ok
<shevy> it really does not matter where you start as long as you do start somewhere
RowdyChild|Away is now known as RowdyChildren
<uxfi> well still my freind said that it would be easy if we started with a book on basic programming shevy ?
<uxfi> but I'll use the site
<shevy> dunno what is basic programming
<shevy> a book helps me to not have to sit before a computer
<shevy> which is often really helpful
testcore has joined #ruby
<uxfi> I see
<uxfi> shevy: well I mean the bascis of it
<shevy> uxfi sites alone won't teach you that much really
<uxfi> like what brackets are and stuff?
<uxfi> yeah tahs what I mean
<shevy> there is no alternative, you must write code
<shevy> well what are brackets
<shevy> I help
<uxfi> Im not sure
<shevy> {
<uxfi> :)
<shevy> }
<uxfi> eah those
<uxfi> :P
karmatr0n has quit [Remote host closed the connection]
<shevy> good
<shevy> now you know what brackets are
hermanmunster has joined #ruby
<shevy> so that question won't come up again
<shevy> :>
k776 has left #ruby [#ruby]
karmatr0n has joined #ruby
<uxfi> hehe
<shevy> but now comes a question
pu22l3r has joined #ruby
<shevy> uxfi why are brackets used at all in programming languages?
<uxfi> yep?
<uxfi> shevy: well to not get code mixed up I assume?
<shevy> who would mix up the code
<uxfi> to keep different lines of things?
<uxfi> hmm
<uxfi> no
Es0teric has joined #ruby
<shevy> can you write everything in one line
<uxfi> I'm not sure but I'd say to order the finctions?
<uxfi> and no
<Solnse> set precedence?
<uxfi> organize the code :)
<uxfi> yes
<uxfi> :D
<shevy> does your computer want organized code
<uxfi> I think so
<uxfi> helps tell the program what is has to do
<Solnse> and in what order
kevinykchan has quit [Read error: Connection reset by peer]
<uxfi> depends on the bracker oder i assume
<uxfi> order*
<uxfi> bracket order
<shevy> well you used java before
<shevy> did you define a function or method in java?
<uxfi> not yet
<uxfi> I dont think so
<uxfi> shevy: I gotta run though
<uxfi> :)
uxfi has left #ruby [#ruby]
<shevy> ok
nhhagen has joined #ruby
<shevy> bye
uxfi has joined #ruby
<uxfi> ttyl :)
kevinykchan has joined #ruby
uxfi has left #ruby [#ruby]
CreativeEmbassy has quit [Quit: FO SHO]
garndt has quit [Quit: Connection closed for inactivity]
jlast has quit [Remote host closed the connection]
MindfulMonk has quit [Read error: Connection reset by peer]
karmatr0n has quit [Ping timeout: 246 seconds]
elaptics is now known as elaptics`away
MindfulMonk has joined #ruby
pigzzcanfly has joined #ruby
predator217 has joined #ruby
benzrf|offline is now known as benzrf
chrisseaton has quit []
Melpaws has joined #ruby
terrellt_ is now known as terrellt
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ylluminate has joined #ruby
darmou has quit [Quit: darmou]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
nhhagen has quit [Ping timeout: 246 seconds]
mary5030 has quit [Remote host closed the connection]
f0ster` is now known as f0ster_
mary5030 has joined #ruby
f0ster_ is now known as f0ster
f0ster has quit [Changing host]
f0ster has joined #ruby
predator117 has quit [Ping timeout: 255 seconds]
dr0ff has joined #ruby
sputnik13 has joined #ruby
Vovko has quit []
snath has quit [Ping timeout: 246 seconds]
pigzzcanfly has quit [Ping timeout: 252 seconds]
joast has quit [Quit: Leaving.]
arubincloud has quit []
sputnik13 has quit [Client Quit]
mikecmpbll has quit [Quit: ciao.]
ffranz has quit [Quit: Leaving]
mary5030 has quit [Ping timeout: 246 seconds]
klaut has quit [Remote host closed the connection]
supermarin__ has joined #ruby
ghr has joined #ruby
m4n1f3st0 has joined #ruby
hermanmunster has quit [Remote host closed the connection]
sputnik13 has joined #ruby
mary5030 has joined #ruby
hermanmunster has joined #ruby
supermarin_ has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
joast has joined #ruby
speakingcode has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
osx5 has joined #ruby
matcouto has joined #ruby
hermanmunster has quit [Ping timeout: 246 seconds]
spyderma_ has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mary5030 has quit [Ping timeout: 240 seconds]
baroquebobcat has joined #ruby
nateberkopec has joined #ruby
kevind has quit [Quit: kevind]
hermanmunster has joined #ruby
spyderman4g63 has quit [Read error: Operation timed out]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
supermarin__ has quit [Quit: Computer has gone to sleep.]
sputnik13 has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
blackavr_ has quit [Quit: blackavr_]
robde has quit [Quit: Gone.]
lkba has joined #ruby
darmou has joined #ruby
<havenwood> doing a refresh of @nahi's Ruby HTTP client spreadsheet: https://www.icloud.com/iw/#numbers/BAJeQeTNVAaUXYSbM2aBfwFap7MSIqaK2yiF/nahi-ruby-http-clients
freerobby has joined #ruby
<havenwood> anyone wanna help fill in any of the purples ^ up there? :P
Stalkr_ has quit [Quit: Leaving...]
<havenwood> heh, also curious if it looks okay in your browser..
sputnik13 has quit [Client Quit]
pu22l3r has quit [Remote host closed the connection]
francisfish has joined #ruby
<benzrf> havenwood: im look
sdwrage has quit [Quit: This computer has gone to sleep]
<benzrf> havenwood: >using nonfree apple stuff
<benzrf> u make rms cry
<benzrf> fyi i cant click ok
<havenwood> :'(
einarj has quit [Remote host closed the connection]
jack_rabbit has joined #ruby
<havenwood> benzrf: though maybe it'd be nice for the OS X folk, but yeah probably not a good platform for this >.>
tkuchiki has joined #ruby
funburn has joined #ruby
<havenwood> benzrf: not being able to click "okay" to that silly little msg puts a damper on things.
<benzrf> >not supporting firefox
<benzrf> appel pls
<havenwood> oh dear
crystal77 has joined #ruby
<havenwood> benzrf: first i've ever used iCloud Numbers beta, guess i shoulda assumed it'd be totally broken.
<benzrf> why do so many rubyists use macs anyway >:[
emaxi has joined #ruby
<benzrf> they arent even floss
<benzrf> gosh
francisfish has quit [Read error: Operation timed out]
<benzrf> *osx isnt i gues
<havenwood> benzrf: but it is posix!
<havenwood> so there's that
<benzrf> w/eeee
lmickh has quit [Remote host closed the connection]
<benzrf> in any case im kinda glad the whole 'super hipster only use the newest thing shiny shiny' stereotype has mostly hopped to nodejs now
<havenwood> the eternal BSD/GNU battle
<jamto11> is there any difference between find_all and select in ruby?
<benzrf> its not even bsd/gnu
<benzrf> osx is proprietary
<benzrf> ;-;
DrShoggoth has quit [Quit: Leaving]
<osx5> Osx isn't even osx anymore
<benzrf> oh?
<benzrf> jamto11: i doubt it
<osx5> Its just a hybrid of ios and osx now
<benzrf> jamto11: you can check the docs
jibi has quit [Read error: Operation timed out]
<benzrf> >tfw objc
<osx5> I hate what apple has done to it since mountain lion
rudisimo has quit []
<benzrf> isnt that just mavericks
<benzrf> see there u go
<benzrf> not floss -> cant fork
<osx5> Yup
<benzrf> ;-;
poguez_ has joined #ruby
<osx5> I can't afford macs anymore
<benzrf> man i overuse ;-; altogether to much
<osx5> So I use Linux
<benzrf> *too
supermarin__ has joined #ruby
<benzrf> benzrf.com/misc/4/gnu.png
<benzrf> oops
<havenwood> osx5: i actually like mavericks very much, as far as os x goes
sdouglas has quit [Remote host closed the connection]
<osx5> Whys that?
<havenwood> osx5: the power saving is fantastic, retina support is beautiful
<osx5> They hide the HD icon on the desktop by default, that's a fail in itself. Sure you can enable it again
rainmanjam has quit [Remote host closed the connection]
nisstyre has joined #ruby
<osx5> It's just not a geeks os anymore
<osx5> It was a few years back
jibi has joined #ruby
<osx5> A lot of the ports / apps are gone
<osx5> Hell, X11 is gone
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tjr9898 has joined #ruby
m4n1f3st0 has quit []
ukd1 has joined #ruby
<benzrf> D:
Melpaws has quit [Quit: Leaving.]
juanmnl has quit [Ping timeout: 240 seconds]
samuel02 has joined #ruby
<osx5> Osx should just be killed off and the Mac with it , ios will rule
<havenwood> jamto11: on Enumerable they're identical, though there is also an Array#select.
<jamto11> thanks haven
sdouglas_ has joined #ruby
CorySimmons has quit [Quit: Bye!]
m0s is now known as m0s^away
toastynerd has quit [Remote host closed the connection]
<havenwood> i do wish they'd go to bash 4, that is truly a pain
<momomomomo> you’re a bash
andy___ has quit [Remote host closed the connection]
<momomomomo> gotta run!
baroquebobcat has quit [Ping timeout: 240 seconds]
jamto11 has quit []
andy___ has joined #ruby
momomomomo has quit [Quit: momomomomo]
<havenwood> momomomomo: i'm a bashelor
Geniack has quit [Ping timeout: 240 seconds]
samuel02 has quit [Ping timeout: 252 seconds]
jack_rabbit has quit [Ping timeout: 246 seconds]
pel_daniel has left #ruby [#ruby]
sdouglas_ has quit [Remote host closed the connection]
<havenwood> #bash say they don't like being called anything, but basher if they must be named
<benzrf> hmmm
* havenwood chants "zsh, zsh!".
Kricir has joined #ruby
<benzrf> how does Kernel#to_enum accomplish its inversion of flow
<osx5> Zsh isn't all that popular?
Geniack has joined #ruby
<havenwood> osx5: i think pretty popular, a lot more so than mksh, but not as oft a default as bash
zchrykng-work has quit [Quit: Leaving]
andy___ has quit [Ping timeout: 240 seconds]
yfeldblu_ has quit [Remote host closed the connection]
osx5 has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
osx5 has joined #ruby
robbyoconnor has joined #ruby
oso96_2000 is now known as oso|away
<havenwood> benzrf: inversion of flow? don't think i follow
sdwrage has joined #ruby
<benzrf> to_enum :method_name allows yield to act like in python instead of like it does by defaul
<benzrf> t
sambao21 has quit [Ping timeout: 246 seconds]
<benzrf> i.e. gives control back until returned UPWARD instead of downward
evenix has quit [Remote host closed the connection]
cj3kim_ has joined #ruby
yfeldblum has joined #ruby
evenix has joined #ruby
mansi has joined #ruby
mansi has quit [Client Quit]
tjr9898 has quit [Remote host closed the connection]
<havenwood> benzrf: ah, interesting
narcan has joined #ruby
<wallerdev> rb_magic
<benzrf> :[
userx has joined #ruby
<benzrf> it's almost like delimited continuations, but mutating instead of new-returning
osx5 has left #ruby [#ruby]
<benzrf> well, delimcc as done w/ reset/shift
hooper has joined #ruby
hermanmunster has quit []
tjr9898 has joined #ruby
james_d_h has joined #ruby
derek_c has joined #ruby
<benzrf> and you get back values instead of sending them in
evenix has quit [Ping timeout: 246 seconds]
b00stfr3ak has quit [Ping timeout: 246 seconds]
<benzrf> and only works 1 level upwards...
<benzrf> ok not so much like delimcc >.>
<wallerdev> banister probably knows
brunops has quit [Ping timeout: 252 seconds]
combusean has joined #ruby
pu22l3r has joined #ruby
<benzrf> yo banister get off from the side of the stairs and help me out
Kricir has quit [Remote host closed the connection]
<benzrf> i already regret making that pun
b00stfr3ak has joined #ruby
fuhgeddaboudit has joined #ruby
<banister> benzrf fibers
<benzrf> o.o
sputnik13 has joined #ruby
<benzrf> Cooler_:
hooper has quit [Ping timeout: 246 seconds]
<benzrf> *cool
<banister> benzrf co-routines basically
<benzrf> no ive seen fibers i think
tomshafer has joined #ruby
<banister> a block that can suspend itself, and return to its caller which can then run more code and reinvoke the block at will
<benzrf> right
ephemerian has quit [Remote host closed the connection]
tomshafer has quit [Client Quit]
<banister> benzrf i used fibers to implement haskell like do-notation
Celm has joined #ruby
pigzzcanfly has joined #ruby
<banister> it's pretty cool
<benzrf> hmmm, i guess my vaguely seaside-ish shitty-ass thingy couldve been done with fibers
jalcine has quit [Excess Flood]
<benzrf> banister: oh was that yours
UserNameInvalid has quit [Quit: Leaving]
sputnik13 has quit [Client Quit]
<benzrf> i assumed it was AST manip o-o
<banister> well i'm sure im not the only one who thought of it it's pretty obvious
<banister> nah
f0ster has quit [Remote host closed the connection]
emdub has quit [Quit: .]
<benzrf> ah right no reliable block -> ast since 1.8
supermarin__ has quit [Ping timeout: 255 seconds]
<benzrf> do-notation is basically delimited continuations isnt it
rahult has joined #ruby
aspires has quit []
marr has quit [Ping timeout: 252 seconds]
<benzrf> at least
<benzrf> semantically equivalent or w/e
vt102 has quit [Read error: Connection reset by peer]
<banister> no idea :)
viscera has joined #ruby
GodPuppet has quit [Remote host closed the connection]
sputnik13 has joined #ruby
supermarin__ has joined #ruby
<benzrf> `foo <- bar` is approx. equivalent to `foo = shift {|cont| bar.bind cont}`
<benzrf> [i think?]
aspires has joined #ruby
emdub has joined #ruby
<banister> what does shift do?
Kricir has joined #ruby