rubyracer has quit [Quit: Konversation terminated!]
iamjarvo has joined #ruby
nerium has quit [Quit: nerium]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mehowte has joined #ruby
TheHodge has joined #ruby
<bean>
ruby 1.8 is just so old now.
Methylated has quit [Client Quit]
Methylated has joined #ruby
robaman has quit [Ping timeout: 245 seconds]
<gks>
bean, yea, i was trying to avoid going out of my way to make things difficult.. i got pretty far but this one is probably a deal breaker… i don't even include any gems in this thing so that i don't have to worry about all of the crap with that
hiroyuki has joined #ruby
reset has joined #ruby
blooberr_ has joined #ruby
<gks>
ah well, been at the computer for about 10 hours, time to call it a day i think. thanks for your help all. have a great evening!
dangerousdave has quit [Ping timeout: 272 seconds]
jmimi has quit [Ping timeout: 260 seconds]
hiroyuki_ has quit [Ping timeout: 268 seconds]
sambao21 has joined #ruby
jokke has quit [Quit: WeeChat 0.4.2]
jmimi1 is now known as jmimi
nutella has joined #ruby
Methylated has quit [Ping timeout: 260 seconds]
nutella is now known as Guest75135
sambao21 has quit [Client Quit]
madhatter has quit [Ping timeout: 245 seconds]
jokke has joined #ruby
robonerd has joined #ruby
madhatter has joined #ruby
mehowte has quit [Ping timeout: 240 seconds]
geoffw8_ has joined #ruby
reset has quit [Ping timeout: 268 seconds]
earthquake has joined #ruby
robonerd has quit [Remote host closed the connection]
ahawkins has quit [Ping timeout: 246 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
robbyoconnor has quit [Ping timeout: 240 seconds]
robaman has joined #ruby
allaire has joined #ruby
karnowski has joined #ruby
kitak_ has joined #ruby
Shidash has joined #ruby
robonerd- has joined #ruby
stkowski has quit [Quit: stkowski]
MrZYX is now known as MrZYX|off
hiroyuki has quit [Ping timeout: 240 seconds]
robonerd- has quit [Remote host closed the connection]
kitak__ has joined #ruby
kitak_ has quit [Read error: Connection reset by peer]
Andrevan has joined #ruby
mojjojo has joined #ruby
flowerhack has joined #ruby
jhulten has quit [Remote host closed the connection]
threesome has quit [Ping timeout: 245 seconds]
robonerd- has joined #ruby
kitak has quit [Ping timeout: 246 seconds]
jhulten has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
jhulten has quit [Read error: Connection reset by peer]
robonerd- is now known as robonerd
robonerd has quit [Changing host]
robonerd has joined #ruby
lfox has quit [Quit: ZZZzzz…]
jhulten has joined #ruby
marcdel has joined #ruby
reset has joined #ruby
devoldmx3 has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
Guest75135 has quit [Ping timeout: 265 seconds]
ph8 has quit [Ping timeout: 245 seconds]
Naeblis has joined #ruby
robaman has quit [Read error: Operation timed out]
lmickh has quit [Quit: lmickh]
mrsolo has joined #ruby
Beoran_ has joined #ruby
larissa has joined #ruby
[Neurotic] has joined #ruby
robaman has joined #ruby
ph8 has joined #ruby
joshwines has joined #ruby
frustrum has quit [Quit: WeeChat 0.4.2]
ffranz has joined #ruby
Beoran__ has quit [Ping timeout: 272 seconds]
kevind has quit [Quit: kevind]
JoeTheGuest has joined #ruby
r0b0 has joined #ruby
einarj has joined #ruby
dziga has joined #ruby
phantasm66 has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has quit [Client Quit]
marr has quit [Ping timeout: 272 seconds]
MiguelGD has quit [Ping timeout: 245 seconds]
ismlages has quit [Read error: Connection reset by peer]
jkhwan has quit [Remote host closed the connection]
Apane has joined #ruby
jkhwan has joined #ruby
jkline has joined #ruby
<Apane>
Hey guys, so I have an array of movies and I'd like to be able to sort through them alphebetically.. from a-z. What would be the best way to do this? I'm thinking of case when maybe? or is there a better way.
einarj has quit [Ping timeout: 246 seconds]
<zastern>
Any ideas why this keeps looping forever?
freezey_ has quit [Remote host closed the connection]
coldmethod has left #ruby [#ruby]
lewis has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
bugsinlights has joined #ruby
iliketurtles has joined #ruby
devoldmx has joined #ruby
devoldmx3 has quit [Ping timeout: 246 seconds]
Lewix has joined #ruby
lewis has joined #ruby
tomzx_mac has joined #ruby
vlad_starkov has joined #ruby
stringoO has joined #ruby
lukec has quit [Quit: lukec]
Voodoofish430 has quit [Quit: Leaving.]
dhruvasagar has joined #ruby
soheil has joined #ruby
ldnunes has quit [Quit: Leaving]
AlwaysBCoding has joined #ruby
<AlwaysBCoding>
anyone know of a good strategy to screenscrape data with Nokogiri from a site that loads its data with javascript?
nstdloop has joined #ruby
g0bl1n has joined #ruby
g0bl1n has quit [Changing host]
g0bl1n has joined #ruby
jhulten has quit [Remote host closed the connection]
nisstyre has quit [Ping timeout: 264 seconds]
jhulten has joined #ruby
Mattias has quit [Ping timeout: 245 seconds]
rdnsget has joined #ruby
rdnsget has left #ruby [#ruby]
RichardBaker has quit [Quit: RichardBaker]
jamblack has quit [Quit: jamblack]
graft_ has quit [Ping timeout: 245 seconds]
mansi has quit [Remote host closed the connection]
mikesplain has joined #ruby
mansi has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
TheShaun is now known as TheShaun|AFK
mikesplain has quit [Client Quit]
jmimi has left #ruby [#ruby]
Mattias has joined #ruby
devoldmx has joined #ruby
jonathanwallace2 has quit [Ping timeout: 264 seconds]
<nhmood>
I have files that I have packaged in my Ruby gem but when I try to access them from the Ruby app it cannot seem to find the files?
x1337807x has quit [Ping timeout: 246 seconds]
<nhmood>
Is there something extra I have to do with the Ruby gem (gemspec?) in order to tell my Ruby app where the packaged files can be found
sambao21 has quit [Quit: Computer has gone to sleep.]
mikesplain has joined #ruby
jhulten has quit [Ping timeout: 245 seconds]
<g0bl1n>
I need to use some methods of file b.rb in a new applicaton a.rb. So I created a.rb and required the class in b.rb. The problem is I'm trying to discard method before, but always get an error when requiring the file: "undefined method `before' for Reports:Class (NoMethodError)" http://pastie.org/8455954
nucatus has joined #ruby
lfox has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
pragmatism has quit [Quit: Leaving...]
mary5030 has joined #ruby
silent_root has joined #ruby
idiocrash has joined #ruby
<IcyDragon>
g0bl1n: before needs to be a class method
<IcyDragon>
change it to: def self.before *args # in a.rb
tylersmith has joined #ruby
mikesplain has quit [Ping timeout: 246 seconds]
<g0bl1n>
IcyDragon, done, thanks
<IcyDragon>
np
nucatus has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
danshultz has joined #ruby
Xiti` is now known as Xiti
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iliketurtles has quit [Quit: zzzzz…..]
bigoldrock has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
tylersmith has quit [Ping timeout: 245 seconds]
nisstyre has joined #ruby
mary5030 has quit [Remote host closed the connection]
jamblack has joined #ruby
mary5030 has joined #ruby
silent_root has quit [Quit: Lost terminal]
silent_root has joined #ruby
Briareos1 has quit [Remote host closed the connection]
stringoO has quit [Quit: stringoO]
bigoldrock has quit [Ping timeout: 246 seconds]
devoldmx has quit [Ping timeout: 268 seconds]
Briareos1 has joined #ruby
devoldmx has joined #ruby
TheShaun|AFK is now known as TheShaun
niklasb_ has quit [Ping timeout: 240 seconds]
TheShaun is now known as TheShaun|AFK
dancinllama_ is now known as dancinllama
fijimunkii has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
ixti has quit [Ping timeout: 272 seconds]
devoldmx has quit [Ping timeout: 245 seconds]
iamjarvo has joined #ruby
ericmathison has joined #ruby
goleldar has quit [Ping timeout: 245 seconds]
devoldmx has joined #ruby
Seich_ has joined #ruby
marcdel has joined #ruby
iamjarvo has quit [Remote host closed the connection]
devoldmx3 has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
devoldmx has joined #ruby
devoldmx3 has quit [Read error: Connection reset by peer]
jcromartie has joined #ruby
itissid has quit [Quit: Leaving.]
Anselm has quit []
silent_root has quit [Quit: Lost terminal]
lfox has quit [Ping timeout: 240 seconds]
burgess has joined #ruby
danman has joined #ruby
danman has quit [Client Quit]
mrsolo has quit [Quit: This computer has gone to sleep]
iamjarvo_ has joined #ruby
btanaka has quit [Remote host closed the connection]
digital-ghost has quit [Remote host closed the connection]
rickruby has quit [Ping timeout: 268 seconds]
IcyDragon has quit [Quit: Space~~~]
mercwithamouth has quit [Ping timeout: 264 seconds]
cfi30 has left #ruby [#ruby]
iamjarvo has quit [Ping timeout: 240 seconds]
lfox has joined #ruby
araujo has quit [Quit: Leaving]
Targen has quit [Ping timeout: 246 seconds]
varfoo has joined #ruby
lukec has joined #ruby
thepumpkin has joined #ruby
nwertman has quit [Ping timeout: 240 seconds]
mmcdaris has quit [Quit: mmcdaris]
mmitchell has joined #ruby
mrsolo has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
jcarouth has quit [Excess Flood]
jcarouth has joined #ruby
thepumpkin has quit [Ping timeout: 260 seconds]
ravster has left #ruby [#ruby]
vlad_starkov has joined #ruby
codeFiend has joined #ruby
devoldmx3 has joined #ruby
havenwood has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
iamjarvo_ has quit [Remote host closed the connection]
dmiller has joined #ruby
iamjarvo has joined #ruby
mixel has quit [Quit: mixel]
danshultz has quit [Remote host closed the connection]
nwertman has joined #ruby
danshultz has joined #ruby
jkline has quit [Quit: jkline]
bugsinlights has quit [Read error: Connection reset by peer]
bugsinlights has joined #ruby
iliketurtles has joined #ruby
g0bl1n has quit [Ping timeout: 252 seconds]
soheil has quit [Remote host closed the connection]
Parduse has joined #ruby
soheil has joined #ruby
Briareos1 has quit [Remote host closed the connection]
crucify_me has joined #ruby
iamjarvo has quit [Ping timeout: 264 seconds]
DanKnox is now known as DanKnox_away
tommyvyo_ has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danshultz has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
Muz has quit [Ping timeout: 245 seconds]
Muz has joined #ruby
werdnativ has joined #ruby
coca_rails has joined #ruby
TomRone has quit [Ping timeout: 245 seconds]
jamblack has quit [Quit: jamblack]
tylersmith has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
soheil has quit [Ping timeout: 240 seconds]
hamakn has joined #ruby
TomRone has joined #ruby
cosjef has joined #ruby
<coca_rails>
yo
cosjef is now known as adrock
cads has joined #ruby
banisterfiend has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 268 seconds]
tkuchiki has quit [Remote host closed the connection]
cooldman224 has joined #ruby
adrock has quit [Client Quit]
Spami has quit [Quit: This computer has gone to sleep]
mmitchell has quit [Remote host closed the connection]
Seich_ has quit [Ping timeout: 268 seconds]
xk_id has quit [Quit:
robbyoconnor has joined #ruby
burgess has quit [Quit: ^ddd]
tkuchiki has joined #ruby
ZadYree has quit [Ping timeout: 245 seconds]
chiel has quit [Ping timeout: 272 seconds]
rickruby has joined #ruby
chiel has joined #ruby
ZadYree has joined #ruby
Seich_ has joined #ruby
kobain has quit []
coca_rails has quit [Remote host closed the connection]
io_syl has quit []
nucatus has joined #ruby
coca_rails has joined #ruby
adrock has joined #ruby
adrock has left #ruby [#ruby]
lethjakman has quit [Ping timeout: 240 seconds]
polaco is now known as polaco_zZz
coca_rails has quit [Ping timeout: 245 seconds]
nucatus has quit [Ping timeout: 252 seconds]
saarinen has joined #ruby
CreativeEmbassy has joined #ruby
allaire has quit []
vlad_starkov has quit [Read error: Connection reset by peer]
wesside has quit [Quit: Computer has gone to sleep.]
TheShaun|AFK is now known as TheShaun
iamjarvo has joined #ruby
xk_id has joined #ruby
t_p has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
wesside has joined #ruby
bugsinlights has quit [Ping timeout: 245 seconds]
petey___ has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
marcdel has joined #ruby
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
petey__ has quit [Read error: Operation timed out]
Targen has joined #ruby
lewis has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
lnormous has quit [Quit: Leaving]
saarinen has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
pothibo has quit [Quit: pothibo]
mansi has joined #ruby
werdnativ has quit [Quit: werdnativ]
ehc has quit [Quit: ehc]
saarinen has quit [Client Quit]
Seich_ has quit [Ping timeout: 245 seconds]
saarinen has joined #ruby
Lewix has quit [Ping timeout: 246 seconds]
Seich_ has joined #ruby
fijimunkii has joined #ruby
RORgasm has joined #ruby
Davey has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RORgasm has quit [Ping timeout: 240 seconds]
freezey has joined #ruby
mynck has joined #ruby
<mynck>
thnks
mlpinit has quit [Ping timeout: 252 seconds]
reset has quit [Quit: Leaving...]
reset has joined #ruby
saarinen has quit [Read error: Connection reset by peer]
<mynck>
.
saarinen has joined #ruby
icy` has joined #ruby
codeFiend has quit [Quit: codeFiend]
d2dchat has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
iamjarvo has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
radic_ has joined #ruby
radic has quit [Disconnected by services]
iamjarvo has joined #ruby
reset has quit [Ping timeout: 245 seconds]
mynck has quit [Quit: ChatZilla 0.9.90.1 [Firefox 24.0/20130910160258]]
x0nic has quit [Ping timeout: 240 seconds]
dfyuij has joined #ruby
x0nic has joined #ruby
amacgregor has joined #ruby
icy` has quit [Ping timeout: 264 seconds]
amacgregor__ has joined #ruby
vlad_starkov has joined #ruby
wallerdev has joined #ruby
dfyuij has left #ruby [#ruby]
bricker`LA has joined #ruby
kaspergrubbe has quit [Ping timeout: 260 seconds]
icy` has joined #ruby
aaroncm_ has joined #ruby
adrock has joined #ruby
amacgregor has quit [Ping timeout: 245 seconds]
n88 has quit [Ping timeout: 245 seconds]
tommyvyo_ has quit [Read error: No route to host]
aaroncm has quit [Ping timeout: 245 seconds]
n88 has joined #ruby
jonahR has joined #ruby
rickruby has quit [Remote host closed the connection]
tommyvyo_ has joined #ruby
freerobby has joined #ruby
albioner has left #ruby ["Signing off..."]
Blue_Ice has quit [Ping timeout: 245 seconds]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
pu22l3r has joined #ruby
parus has quit [Ping timeout: 245 seconds]
Mr_Wharfsnort has joined #ruby
chiel has quit [Ping timeout: 245 seconds]
jkhwan has quit [Remote host closed the connection]
zeropx has quit [Quit: zeropx]
parus has joined #ruby
jkhwan has joined #ruby
dma_ has quit [Remote host closed the connection]
chiel has joined #ruby
dma_ has joined #ruby
ericmathison has quit [Quit: leaving]
fella6s has joined #ruby
Lewix has joined #ruby
lewis has joined #ruby
Blue_Ice has joined #ruby
platypine has quit [Ping timeout: 245 seconds]
wesside has quit [Quit: Computer has gone to sleep.]
danshultz has joined #ruby
devoldmx3 has quit [Remote host closed the connection]
adrock has quit []
fella7s has quit [Ping timeout: 252 seconds]
jkhwan has quit [Ping timeout: 272 seconds]
petey___ has quit [Remote host closed the connection]
lyanchih has quit [Quit: lyanchih]
dma_ has quit [Ping timeout: 245 seconds]
lyanchih has joined #ruby
jkhwan has joined #ruby
cooldman224 has quit [Remote host closed the connection]
funburn has quit [Remote host closed the connection]
funburn has joined #ruby
<havenwood>
Since Homebrew refuses to play nice with sudo, MacPorts or Fink would be the only options on a multi-user system. Alas I'm single user and haven't had enough pain brewing to look seriously at non-beaten-path options.
Seich_ has quit [Quit: Computer has gone to sleep.]
Seich_ has joined #ruby
burgess has joined #ruby
<DanBoy>
sorry
Seich_ has quit [Ping timeout: 240 seconds]
<DanBoy>
was away
<DanBoy>
ya dude i like macports its been awhile since i set it up and what not
<DanBoy>
just about as simple as the FreeBSD ports
<havenwood>
checking it out now, got curious - nice
<DanBoy>
port install wget
burlyscudd has quit [Quit: Leaving.]
<DanBoy>
stuff like that
<DanBoy>
goes into /opt/local
<DanBoy>
homebrew is written in ruby right
<havenwood>
DanBoy: yup, indeed
<DanBoy>
a lot of ruby devs use it
marcdel has joined #ruby
<DanBoy>
my friend keeps trying to get me to switch but i already set up macports and i don't see the big idea
<havenwood>
DanBoy: yeah, super easy to brew your own packages
<DanBoy>
i got my *sql and apache im fine
Seich_ has joined #ruby
<DanBoy>
installing stuff is just as simple as apt-get and what not
amritanshu_RnD has joined #ruby
<DanBoy>
but i like how it totally isolates itself from the OS
<DanBoy>
everything goes into /opt/local
<DanBoy>
then + rvm you never use any of the system stuff
<DanBoy>
but its been like a year since i set it up
<DanBoy>
i think i needed to install xcode and what not
bricker`1A has joined #ruby
<havenwood>
DanBoy: yeah, with build tools already installed the macports pkg 'just worked', with the one caveat of putting PATH changes in bash_profile when i'm using zsh :P
jamblack has quit [Quit: jamblack]
bricker`1A is now known as bricker`away
ryanRT_ has quit [Quit: Ex-Chat]
bricker`LA has quit [Disconnected by services]
bricker`away is now known as bricker`LA
rickruby has quit [Remote host closed the connection]
<DanBoy>
ya and i believe its not very hard to remove macports as well
yfeldblum has joined #ruby
rickruby has joined #ruby
ZenGuy311 has quit [Ping timeout: 246 seconds]
ahawkins has joined #ruby
nucatus has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<DanBoy>
does homebrew aim at other OS's besides osx
burgess has quit [Ping timeout: 240 seconds]
<havenwood>
nope
ZenGuy311 has joined #ruby
zigomir has joined #ruby
<DanBoy>
cuz normally on an osx box its just you on it
yfeldblum has joined #ruby
mansi has quit [Remote host closed the connection]
<havenwood>
Single-user OS X is the only trick in its bag.
iliketurtles has joined #ruby
jkhwan has quit [Remote host closed the connection]
mansi has joined #ruby
jkhwan has joined #ruby
petey__ has joined #ruby
<havenwood>
They could deescalate privileges and support sudo, but they choose not to as a (somewhat misguided I think) philosophical choice
rickruby has quit [Ping timeout: 245 seconds]
Sl1nksh0t has joined #ruby
<DanBoy>
sudo is being used stupidly now a days
<havenwood>
But yeah, in the 99% use-case it just doesn't actually matter I suppose.
rickruby has joined #ruby
<DanBoy>
people are afraid of a root account i don't know why
<havenwood>
Think of the children!
rezzack has quit [Quit: Leaving.]
<DanBoy>
sudo is supposed to be configured to allow certain users certain permissions
<DanBoy>
not just full access to the system
nucatus has quit [Ping timeout: 245 seconds]
<DanBoy>
but thats OSX so i won't ask any questions ;p
petey__ has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 245 seconds]
nateberkopec has quit [Quit: Leaving...]
vlad_starkov has quit [Read error: Connection reset by peer]
jkhwan has quit [Ping timeout: 272 seconds]
<DanBoy>
actually less secure to use sudo in the manner its being used with the newer linux distros
petey__ has joined #ruby
lfox has quit [Quit: ZZZzzz…]
<tygator>
any one here care to persuade / dissuade me from Dev Bootcamp? My final application interview is tomorrow and I want to talk to some actual dev's to make sure I'm doing the right thing.
<DanBoy>
whats dev bootcamp
merica has joined #ruby
duggiefresh has joined #ruby
<tygator>
its a 12 week RoR training program in SF
amacgregor has joined #ruby
amacgregor_ has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
amacgregor__ has quit [Ping timeout: 245 seconds]
dmiller has quit [Quit: Leaving...]
amacgregor has quit [Read error: No route to host]
Methylated has quit [Quit: Leaving.]
<havenwood>
tygator: I've heard really good things from two folks who completed Hacker School in Brooklyn. I've never met anyone who did or is doing Dev Bootcamp, so I can't compare.
<sevenseacat>
i dont know why you'd pay a lot of money to learn what you can learn for free
<havenwood>
tygator: But +1 for being a Ruby dev! :)
<DanBoy>
ya
<DanBoy>
just read the books
pu22l3r has quit [Remote host closed the connection]
<havenwood>
i think there could be a lot of value in learning in an intensive with access to experts, especially for new beginners depending on learning style
<tygator>
Right,I'm terrible with just books. I need to be somewhere I can bounce things off of people to figure out a problem.
<havenwood>
Hacker School is free though, not 12k. And not one language/stack.
pu22l3r has joined #ruby
<sevenseacat>
i also think there's value in trying to figure it out yourself, doing it wrong for a while, then learning why that way is wrong
<havenwood>
But you probably need to be further along to start with.
<sevenseacat>
rather than just being force fed the 'right way'
<havenwood>
tygator: Know much Ruby or Rails at all yet?
<tygator>
As of now I've done codecademy Ruby/html/css/js/jQuery and I went through LRTHW
duggiefresh has quit [Ping timeout: 245 seconds]
jonahR has quit [Quit: jonahR]
Seich_ has quit [Quit: Computer has gone to sleep.]
<havenwood>
Seems that if you want to build confidence to get a nice job, and need to just get up to speed quickly, just paying and doing an intensive course should get you there pretty quickly in a structured way makes sense.
Seich_ has joined #ruby
<havenwood>
Not how i learned, but i'm kinda jealous of working closely with other people learning.
dma_ has joined #ruby
<tygator>
havenwood: yeah I'm looking at it not just as a good learning enviroment, but also a foot in the door to a decent job... Hopefully
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
<DanBoy>
i've just used books my whole life
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
DanBoy: Books and documentation ftw.
<sevenseacat>
i've done all self-studying apart from my university degree, which was admittedly more theoretical
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
petey__ has quit [Ping timeout: 240 seconds]
RORgasm has joined #ruby
OdNairy has joined #ruby
jaimef has quit [Excess Flood]
dma__ has joined #ruby
<DanBoy>
i know people who are all self taught, they went back to school for math degrees rather than sit in intro to C classes
dma_ has quit [Read error: Connection reset by peer]
pu22l3r has quit [Ping timeout: 268 seconds]
jaimef has joined #ruby
<tygator>
I think I'll learn languages going forward on my own with books and such. but I want to get the basics down in a stuctured env. What kind of jobs do you guys have?
merica has quit []
<DanBoy>
whatever learning structure you like just stick with it
<havenwood>
tygator: Get hired in an environment where you can pair and learn. Whatever you need to do to get that. Getting paid to learn is a really nice way.
Seich_ has quit [Ping timeout: 268 seconds]
Apane has quit [Ping timeout: 268 seconds]
justsee has quit [Ping timeout: 246 seconds]
<tygator>
Agreed
petey__ has joined #ruby
dhruvasagar has quit [Quit: leaving]
brianpWins has joined #ruby
dhruvasagar has joined #ruby
<tygator>
Any pearls for someone looking to get in at a jr dev level. Generaly speaking
RORgasm has quit [Ping timeout: 252 seconds]
lukec has quit [Quit: lukec]
tkuchiki has quit [Remote host closed the connection]
dma__ has quit [Ping timeout: 252 seconds]
ahawkins has quit [Ping timeout: 260 seconds]
justinsc has joined #ruby
araujo has joined #ruby
tkuchiki has joined #ruby
Seich_ has joined #ruby
fritzthecat has joined #ruby
tkuchiki has quit [Remote host closed the connection]
ananthakumaran has quit [Ping timeout: 264 seconds]
funburn has joined #ruby
yojimbo has joined #ruby
newbiehacker has joined #ruby
Vendeth__ has quit [Remote host closed the connection]
Vendethi_ has quit [Remote host closed the connection]
jpinnix has quit [Ping timeout: 245 seconds]
bartj3 has quit [Ping timeout: 245 seconds]
hp_ has joined #ruby
vpretzel has joined #ruby
<gcds>
anyone?
Vendethi_ has joined #ruby
brennanMKE has joined #ruby
pyrac has quit [Quit: pyrac]
leonidlm has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
jpinnix has joined #ruby
einarj has quit [Remote host closed the connection]
vpretzel has quit [Read error: Connection reset by peer]
hp_ has quit [Client Quit]
einarj has joined #ruby
<Hanmac>
shevy: but my current problem is that Symbol Helper inherits from Object and not BasicObject , but BasicObject does not work yet for unknown reason: https://eval.in/private/0b8df02101a54c
vpretzel has joined #ruby
TMM has joined #ruby
<Hanmac>
gcds: hm did you try Puma::HttpParser or something similar?
amacgregor has joined #ruby
Vendethi_ has quit [Remote host closed the connection]
vpretzel has quit [Read error: Connection reset by peer]
Seich has quit [Ping timeout: 259 seconds]
<gcds>
yeah no luck :/
Vendethi_ has joined #ruby
vpretzel has joined #ruby
bartj3 has joined #ruby
vpretzel has quit [Read error: Connection reset by peer]
mengu has quit [Remote host closed the connection]
Vendethi_ has quit [Remote host closed the connection]
vpretzel has joined #ruby
mengu has joined #ruby
yfeldblum has joined #ruby
mengu has quit [Read error: Connection reset by peer]
Vendethi_ has joined #ruby
<gcds>
found gem which wraps http11 ragel parser :)
shaunbaker has joined #ruby
pyrac has joined #ruby
mengu has joined #ruby
brennanMKE has quit [Ping timeout: 268 seconds]
brtdv has quit [Read error: Connection reset by peer]
vpretzel has quit [Read error: Connection reset by peer]
vpretzel has joined #ruby
brtdv has joined #ruby
wildroman2 has joined #ruby
ezkl has joined #ruby
vpretzel has quit [Remote host closed the connection]
Vendethi_ has quit [Write error: Broken pipe]
vpretzel has joined #ruby
Vendethi_ has joined #ruby
aa47f8_ has joined #ruby
aa47f8 has quit [Remote host closed the connection]
Advocation has joined #ruby
RORgasm has joined #ruby
maasha has joined #ruby
vpretzel has quit [Remote host closed the connection]
vpretzel has joined #ruby
workmad3 has joined #ruby
mrsolo has joined #ruby
adambeynon has joined #ruby
Vendethi_ has quit [Remote host closed the connection]
thecopy has quit [Quit: thecopy]
vpretzel_ has joined #ruby
vpretzel has quit [Read error: Connection reset by peer]
Vendethi_ has joined #ruby
vpretzel_ has quit [Read error: Connection reset by peer]
vpretzel has joined #ruby
jbpros has joined #ruby
<maasha>
Hi
RORgasm has quit [Ping timeout: 246 seconds]
Vendethi_ has quit [Remote host closed the connection]
claymore has quit [Quit: Leaving]
vpretzel has quit [Read error: Connection reset by peer]
vpretzel has joined #ruby
Vendethi_ has joined #ruby
<maasha>
I am trying to use simplecov, but from the resulting report it looks like nothing is tested - which is untrue. I suppose it is setup wrong, but I cant figure out what the problem is.
reset has joined #ruby
banisterfiend has joined #ruby
vpretzel has quit [Read error: Connection reset by peer]
vpretzel has quit [Read error: Connection reset by peer]
vpretzel has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
mr_red has joined #ruby
mansi has joined #ruby
vpretzel has quit [Read error: Connection reset by peer]
vpretzel has joined #ruby
bricker`LA has quit [Ping timeout: 246 seconds]
gasbakid has quit [Ping timeout: 252 seconds]
vpretzel_ has joined #ruby
vpretzel has quit [Write error: Connection reset by peer]
clocKwize has quit [Ping timeout: 272 seconds]
iliketurtles has quit [Ping timeout: 245 seconds]
avril14th has quit [Remote host closed the connection]
kaspergrubbe has quit [Read error: Connection reset by peer]
gasbakid has joined #ruby
vpretzel_ has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
vpretzel has joined #ruby
clocKwize has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
<Hanmac>
workmad3: first i had it inherit from Object, but i think that would not be nice enough (because of #class and other fun methods)
vpretzel has quit [Read error: Connection reset by peer]
vpretzel has joined #ruby
Macaveli has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
vpretzel has quit [Read error: Connection reset by peer]
Cork has quit [Ping timeout: 272 seconds]
vpretzel has joined #ruby
kaspergrubbe has joined #ruby
<workmad3>
hanmac: nice :)
jbpros has quit [Quit: jbpros]
Macaveli has quit [Remote host closed the connection]
lkba has joined #ruby
vpretzel has quit [Write error: Connection reset by peer]
vpretzel has joined #ruby
<workmad3>
hanmac: now extend it to allow blocks to be thrown into the chain? ;)
kaspergr_ has joined #ruby
sectionme has joined #ruby
thams has quit [Quit: thams]
vasilakisFiL has joined #ruby
vpretzel_ has joined #ruby
<Hanmac>
hm make me sample code, because currently i dont know what would be the best way for that
vpretzel has quit [Read error: Connection reset by peer]
TMM has quit [Read error: Connection reset by peer]
Cork has joined #ruby
TMM has joined #ruby
TMM has joined #ruby
TMM has quit [Changing host]
<vasilakisFiL>
hey where should I store oauth tokens? in an enviroment variable or in a file ?
bluenemo has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
vpretzel has joined #ruby
vpretzel_ has quit [Read error: Connection reset by peer]
kaspergrubbe has quit [Ping timeout: 245 seconds]
axsuul has quit [Ping timeout: 240 seconds]
brennanMKE has joined #ruby
jgoss has left #ruby [#ruby]
<Hanmac>
the best place would be to store them at the place where the sun does not shine ;P
nisstyre has quit [Ping timeout: 245 seconds]
jonathanwallace2 has quit [Ping timeout: 264 seconds]
vpretzel has quit [Read error: Connection reset by peer]
lyanchih has quit [Quit: lyanchih]
vpretzel_ has joined #ruby
Squarepy has quit [Ping timeout: 240 seconds]
yacks has joined #ruby
Squarepy has joined #ruby
<vasilakisFiL>
yeah I know.. I was thinking to create a file with variables oauth_token, oauth_token_secret etc without the tokens, add it in git and then add the tokens in this file and never commit it to git again. Maybe storing them in environment is more secure but it is not very elegant solution
<vasilakisFiL>
what do you think ?
vpretzel has joined #ruby
vpretzel_ has quit [Read error: Connection reset by peer]
amacgregor_ has joined #ruby
<workmad3>
hanmac: well, I just got it working with '&:any?.(){|i| i.even?}'
vpretzel has quit [Read error: Connection reset by peer]
vpretzel_ has joined #ruby
amacgregor__ has joined #ruby
<Hanmac>
… i dont know if its a good idea to commit secret token stuff into git … (when you store them into files inside the project dir, add the files to .gitignore
brennanMKE has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
<Hanmac>
workmad3: AH ok but when i do i do it like &:any?.(&:even?) ;D
<workmad3>
hanmac: also works :)
amacgregor has quit [Ping timeout: 245 seconds]
<Hanmac>
i do it later today in my launch time
vpretzel has joined #ruby
vpretzel_ has quit [Read error: Connection reset by peer]
<workmad3>
hanmac: I just had to add &blk to the Symbol#call, SymbolHelper#initialize, SymbolHelper#method_missing
<workmad3>
hanmac: and then pass it through in the .new calls and in the public_send
urbanslug is now known as i_jizz_in_my_soc
<Hanmac>
yeah and **kargs too
<workmad3>
oh, and stored it in @blk in the initialize :)
vpretzel has quit [Read error: Connection reset by peer]
<workmad3>
vasilakisFiL: environment is a nice place
vpretzel has joined #ruby
<workmad3>
vasilakisFiL: so is storing them in a file on the production server and copying into place as part of your capistrano deploy
Aryasam has joined #ruby
amacgregor_ has quit [Ping timeout: 245 seconds]
<workmad3>
vasilakisFiL: having them in a file that has a stub that you intend to never commit to git again... not so much... it's way too easy to accidentally commit it :)
i_jizz_in_my_soc has quit [Quit: leaving]
<workmad3>
vasilakisFiL: the more common practice is to have a keys.whatever.sample file that contains a stub, and your real keys are in keys.whatever that is .gitignored and never goes into the repo
vpretzel has quit [Read error: Connection reset by peer]
vpretzel_ has joined #ruby
h_kon has quit [Remote host closed the connection]
vpretzel_ has quit [Remote host closed the connection]
vpretzel has joined #ruby
<vasilakisFiL>
hmmm ok
<vasilakisFiL>
thanks!
vpretzel has quit [Read error: Connection reset by peer]
vpretzel has quit [Read error: Connection reset by peer]
reset has quit [Ping timeout: 245 seconds]
vpretzel has joined #ruby
fijimunkii has quit [Ping timeout: 260 seconds]
<Ben_Dobell>
I'm going a bit insane at the moment trying to work out how to reliably call bundler i.e. "bundle exec <blah>" within a shell (bash) script. The problem is "bundle" is not a command. Which is presumably because the ruby environment isn't setup in the script. I'm using chruby and have chruby (and auto chruby's ruby selection) in my .bashrc. Does anyone have any idea what is going on?
fijimunkii has joined #ruby
<bnagy>
hanmac: .(2)??
<Hanmac>
Ben_Dobell: did you try #bundler ?
vpretzel has quit [Read error: Connection reset by peer]
<bnagy>
that is barfy, imho
vpretzel has joined #ruby
<Hanmac>
bnagy yeah its .call(2) … do you have a better yeah without adding new syntax? ;P
<Ben_Dobell>
hanmac: It's not a bundler issue specifically, because other ruby binaries aren't in my PATH. I'll try chruby though.
<bnagy>
I would be happy with just [1,2,3].map &:to_s, 2
<bnagy>
chainable is just shooting for the moon / writing a different language :P
vpretzel has quit [Read error: Connection reset by peer]
vpretzel has joined #ruby
justsee has joined #ruby
<Hanmac>
bnagy, hm ok i dont think that would work because &:to_s, 2 then the 2 is not connected to the proc or to the symbol (and #map need to support that)
vpretzel has quit [Read error: Connection reset by peer]
<Hanmac>
bnagy: yeah the ticket maker used &.sym in Crystal http://crystal-lang.org/2013/09/15/to-proc.html which is similar to ruby … i try to get it working in ruby without needing new syntax
fijimunkii has quit [Ping timeout: 252 seconds]
danshultz has joined #ruby
vpretzel has quit [Read error: Connection reset by peer]
vpretzel has joined #ruby
edasawa has quit [Ping timeout: 245 seconds]
vpretzel has quit [Remote host closed the connection]
<bnagy>
well it's a cool hack.. but I could never get behind that syntactic construction :/
psyl0n has joined #ruby
vpretzel has joined #ruby
Seich has joined #ruby
popl has quit [Quit: We must make an idol of our fear, and call it God.]
thecopy has joined #ruby
vpretzel has quit [Read error: Connection reset by peer]
vpretzel has joined #ruby
zipper has joined #ruby
iliketurtles has joined #ruby
fijimunkii has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
MrZYX|off is now known as MrZYX
thomasxie has quit [Ping timeout: 246 seconds]
vpretzel has quit [Read error: Connection reset by peer]
vpretzel has joined #ruby
Vendethi_ has joined #ruby
AlwaysBCoding has joined #ruby
MrZYX is now known as MrZYX|off
vx9r has quit [Ping timeout: 260 seconds]
vpretzel has quit [Read error: Connection reset by peer]
hiyosi has joined #ruby
codenapper has joined #ruby
vpretzel has joined #ruby
leonidlm has quit [Ping timeout: 246 seconds]
<clocKwize>
busy here today..
Vendethi_ has quit [Read error: Connection reset by peer]
Seich has quit [Ping timeout: 268 seconds]
vpretzel has quit [Read error: Connection reset by peer]
vpretzel_ has joined #ruby
relix has joined #ruby
gasbakid_ has joined #ruby
vpretzel_ has quit [Read error: Connection reset by peer]
pranny1 has quit [Quit: Leaving.]
vpretzel has joined #ruby
eka has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
hiyosi has quit [Ping timeout: 246 seconds]
dma_ has joined #ruby
vpretzel has quit [Read error: Connection reset by peer]
gasbakid has quit [Ping timeout: 252 seconds]
vpretzel has joined #ruby
ixti has quit [Ping timeout: 268 seconds]
thyagobr has joined #ruby
vpretzel has quit [Remote host closed the connection]
Vendethi_ has quit [Remote host closed the connection]
dzan has joined #ruby
vpretzel has quit [Read error: Connection reset by peer]
Azulinho has joined #ruby
vpretzel_ has joined #ruby
ahawkins has joined #ruby
vpretzel_ has quit [Read error: Connection reset by peer]
dzan has quit [Remote host closed the connection]
vpretzel has joined #ruby
<clocKwize>
hanmac: yes I'd like that feature, it'd be handy.. its very annoying having to use a block when you can see a way to make it work without that isn't supporte
dma_ has quit [Ping timeout: 268 seconds]
dzan has joined #ruby
vpretzel has quit [Remote host closed the connection]
banisterfiend has quit [Quit: Computer has gone to sleep.]
vpretzel has joined #ruby
<clocKwize>
I'd also like [1,2,3].map(&other_object.method) instead of [1, 2, 3].map { |x| other_object.method(x) }
<Hanmac>
did you see the samples of my work like map(&any?.(&:even?)) ;P
vpretzel has quit [Read error: Connection reset by peer]
vpretzel has joined #ruby
vpretzel has quit [Read error: Connection reset by peer]
vpretzel has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
postmodern has quit [Quit: Leaving]
leonidlm has joined #ruby
vpretzel has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
mansi has joined #ruby
vpretzel_ has joined #ruby
pyrac has joined #ruby
Vendethi_ has joined #ruby
vpretzel_ has quit [Read error: Connection reset by peer]
vpretzel has joined #ruby
maasha has quit [Ping timeout: 250 seconds]
<clocKwize>
hanmac: yeah, but as commented, its extra slow down for pretty syntax :(
Vendethi_ has quit [Remote host closed the connection]
<Hanmac>
hm yeah … but written in C it may be faster
vpretzel has quit [Read error: Connection reset by peer]
vpretzel has joined #ruby
<clocKwize>
true
banisterfiend has joined #ruby
<clocKwize>
powerful I admit :)
<clocKwize>
love how extensible ruby is
d45h has quit [Ping timeout: 246 seconds]
lyanchih has quit [Ping timeout: 245 seconds]
mercwithamouth has quit [Ping timeout: 245 seconds]
vpretzel has quit [Read error: Connection reset by peer]
mansi has quit [Remote host closed the connection]
vpretzel has joined #ruby
Vendethi_ has joined #ruby
mansi has joined #ruby
dyyylan has joined #ruby
dma_ has joined #ruby
danshult_ has joined #ruby
vpretzel has quit [Remote host closed the connection]
dyyylan has quit [Client Quit]
jonathanwallace2 has joined #ruby
vpretzel has joined #ruby
Vendethi_ has quit [Read error: Connection reset by peer]
blackmes1 has joined #ruby
blackmesa has quit [Remote host closed the connection]
vpretzel has quit [Read error: Connection reset by peer]
vpretzel_ has joined #ruby
danshultz has quit [Ping timeout: 240 seconds]
bastienl__ has joined #ruby
Vendethi_ has quit [Read error: Connection reset by peer]
<bastienl__>
hello
mansi has quit [Ping timeout: 245 seconds]
mercwithamouth has joined #ruby
vpretzel has joined #ruby
vpretzel_ has quit [Read error: Connection reset by peer]
<bastienl__>
I am trying to install Rails on Arch Linux
<bastienl__>
I get this error when running bundle install: Errno::ENOENT: No such file or directory - /usr/lib/ruby/gems/2.0.0/build_info/i18n-0.6.1.info
vpretzel has quit [Read error: Connection reset by peer]
<bastienl__>
the build_info directory doesn't exist at all
danshult_ has quit [Ping timeout: 268 seconds]
dma_ has quit [Ping timeout: 268 seconds]
<bastienl__>
does anybody know how this happened?
vpretzel has joined #ruby
vlad_starkov has joined #ruby
<andrewvos>
Maybe you need sudo or something
<bastienl__>
I tried installing with gem install and pacgem
iliketurtles has quit [Ping timeout: 246 seconds]
<andrewvos>
How have you installed ruby?
<bastienl__>
yeah I installed with the package manager
<andrewvos>
Oh
<bastienl__>
Ruby*
<bastienl__>
that's the problem?
<andrewvos>
Well that sucks for you, as far as I know
vpretzel has quit [Remote host closed the connection]
dickery has left #ruby [#ruby]
<andrewvos>
You need sudo I guess
<andrewvos>
But I don't know if bundler works with sudo
<andrewvos>
Maybe it does
vpretzel has joined #ruby
<bastienl__>
why do I need sudo?
<zipper>
never heard of "bundler"
<andrewvos>
bastienl__: Actually on closer inspection you shouldn't need sudo
bamdad has joined #ruby
justsee has quit [Ping timeout: 245 seconds]
vpretzel has quit [Read error: Connection reset by peer]
vpretzel has joined #ruby
<clocKwize>
I tend not to use packages to install ruby, they all seem to have problems of some sort (missing ssl support, etc..)..
soba_ has joined #ruby
vpretzel has quit [Read error: Connection reset by peer]
<bastienl__>
do you use gem install?
DrCode has quit [Ping timeout: 240 seconds]
vpretzel has joined #ruby
<clocKwize>
not to install ruby
Hanmac has quit [Quit: Leaving.]
vpretzel has quit [Remote host closed the connection]
<bastienl__>
where should the build_info come from anyway? Should it come with the gem?
<bastienl__>
build_info directory*
Hanmac has joined #ruby
vpretzel has quit [Read error: Connection reset by peer]
mojjojo has joined #ruby
<workmad3>
bastienl__: it's where gem build info goes
thecopy has quit [Quit: thecopy]
vpretzel has joined #ruby
thecopy has joined #ruby
Vendethi_ has joined #ruby
<workmad3>
bastienl__: so it gets managed by rubygems... but it looks like your bundle install is trying to use the system gem repo as your GEM_HOME (which would require sudo to install) rather than a user repo
<bastienl__>
that seems to work
<bastienl__>
thanks a lot!
vpretzel has quit [Read error: Connection reset by peer]
vpretzel_ has joined #ruby
<workmad3>
it looks like the arch linux ruby package is reasonably sane btw :)
udoprog has quit [Ping timeout: 245 seconds]
Vendethi_ has quit [Read error: Connection reset by peer]
relix has joined #ruby
joshua_Bishop has joined #ruby
vpretzel_ has quit [Read error: Connection reset by peer]
<Hanmac>
phuhother samples: julia does not support singleton methods for objects, (that means you may cant use extend) other things are bad so that only true and false are allowed in if that prevents you from using str.upcase! ? "changed" : "not changed"
<phuh>
but it's worth noting their performance, numerical computing features, and syntactic sugar and core lib design borrowed from existing popular languages.
byprdct has quit [Ping timeout: 245 seconds]
Aryasam has quit [Ping timeout: 268 seconds]
mikee has quit [Ping timeout: 246 seconds]
_maes_ has joined #ruby
<_br_>
I wonder what makes or breaks certain languages. Why do they at some point take off or die down into obscurity.
Soda has joined #ruby
<phuh>
_br_: never seen this before. but this doesn't seem to have a great selling point compared to julia to consider switching to new language
<Hanmac>
phuh no key arguments as far as i see
<_br_>
phuh: Oh, IO has alot of interesting features.
mikee has joined #ruby
Aryasam has joined #ruby
starchild_ has joined #ruby
<waxjar>
isn't julia a niche language like R and matlab?
<_br_>
havenwood: Cargo cult, yeah probably, but doesn't it make more impact if a large corporation is pushing it or not?
<Hanmac>
_br_ R is Rank 21th
iliketurtles has quit [Ping timeout: 245 seconds]
<phuh>
_br_: waxjar: i think right now they just focused and marketted in that position but the language offers much more than that as far as i learned from their docs
<havenwood>
_br_: Tiobe is the most insane of the rankings. Really, really bad imho. Looking at stuff like counting number of Google results with pathetic attempts to normalize for false positives.
<_br_>
havenwood: They are all bad. Just trust the statistic you forged yourself.
<Hanmac>
_br_ the problem is that for each stuff i do for ruby i only increase the C++ section ;P …
yfeldblum has quit [Remote host closed the connection]
<phuh>
it may be missing some things hanmac pointed out but considering it's only 1.5 yr old language it does a pretty good job already offerig good parts from other languages
<_br_>
havenwood: Yeah, its another interesting one
ephemerian has quit [Quit: Leaving.]
<havenwood>
If a bunch of 'PHP sucks and isn't useable!' posts go up, PHP just got more popular accd to Tiobe.
freezey has joined #ruby
<_br_>
hanmac: hehe C++11 ? :)
yfeldblum has joined #ruby
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
<Hanmac>
_br_ for some things yes (because one gem has an optional require for a c++11 lib)
<_br_>
php is everywhere.. though to be fair the php parser is insane.
<havenwood>
Matlab and R are particularly high for number of SO questions, not quite so high on Github projects.
<phuh>
havenwood: interesting
rrichardsr3 has joined #ruby
rrichardsr3 has quit [Client Quit]
maasha has joined #ruby
nucatus has quit [Ping timeout: 268 seconds]
cody-- has quit [Quit: derp]
<_br_>
havenwood: I worked alot with R, S-Plus, SPSS, OCaml. In certain circles its quite popular, but very statistics heavy hence maybe the increased discussion on SO
<havenwood>
sec_: Ruby masters are named `hanma` in this channel. A letter is put on the end, to show which master they are. So like `hanmaa` is the first.
<_br_>
hehe
kevinykchan has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby
<havenwood>
hanmac: :P
g0bl1n_ has quit [Ping timeout: 245 seconds]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
tomzx_mac has quit [Ping timeout: 240 seconds]
<Hanmac>
havenwood: so you mean i am only allowed to do C-Rank and Lower missions? ;P
<havenwood>
lawl
<_br_>
:D
Czupa has joined #ruby
<shevy>
_br_ hehe
<shevy>
the more code my classes need to make use of, the tighter the coupling, the more I'd have to distribute to others too :(
jxf has quit [Quit: Leaving]
<shevy>
it's why I gave up on "monkey patching" too
alekst has joined #ruby
claymore has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
Lewix has joined #ruby
lewis has joined #ruby
<_br_>
I thought ninja patching is the new hotness ;)
<havenwood>
hanmac: ah, nice - i didn't even know bugs.ruby-lang.org was a thing. >.> thanks
brennanMKE has joined #ruby
babinho has quit [Ping timeout: 260 seconds]
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
<Hanmac>
havenwood: it has symbol chaining with blocks ;P (currently i had a problem to get key args working .. but i think someday i can mangage that )
vlad_sta_ has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
rdnsget has joined #ruby
rdnsget has left #ruby [#ruby]
vlad_starkov has joined #ruby
lmickh has joined #ruby
mansi has joined #ruby
mansi has quit [Read error: Connection reset by peer]
brennanMKE has quit [Ping timeout: 245 seconds]
thams has joined #ruby
mansi has joined #ruby
<Hanmac>
shevy & havenwood do you want something to laugh? Adobe used 3DES for the passwords of the user accounts ;P
<havenwood>
hanmac: Well, that is *military grade encryption*!! Wait, hold on, the 80's are calling and want their cipher back.
<atmosx>
When you dev a web application, you write the entire backed first and then you design the front end or you do both in parallel?
Guest7285 is now known as diegoviola
Seich has joined #ruby
<havenwood>
`qwerty`...
sayan has quit [Ping timeout: 245 seconds]
nari has quit [Ping timeout: 246 seconds]
<_br_>
3des that obsolete? when did NIST retire it? like 15 years ago?
Aryasam has quit [Ping timeout: 260 seconds]
<momomomomo>
I like that "fuckyou" is #51
fridim_ has joined #ruby
<havenwood>
_br_: hrm, DES is 1976, what is 3DES like early 2000's?
cody-- has joined #ruby
tkuchiki has quit [Remote host closed the connection]
krz has quit [Ping timeout: 240 seconds]
tommyvyo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
d45h has quit []
pyrac has quit [Quit: pyrac]
Aryasam has joined #ruby
<_br_>
havenwood: yeah though so...
tkuchiki has joined #ruby
tonni has quit [Remote host closed the connection]
<havenwood>
chain 3 DES with different keys
vlad_sta_ has joined #ruby
tonni has joined #ruby
<Hanmac>
hm wasn't 3DES marked 2000 as dead and to replace with AES ?
<havenwood>
i guess security through 2^112 operations is the name of that game
CaptainKnots has joined #ruby
<Hanmac>
havenwood: the cracker says they used "ECB mode"
vlad_starkov has quit [Read error: Connection reset by peer]
<_br_>
well stream mode makes hardly sense here.
_maes_ has joined #ruby
<_br_>
maybe they started the whole project like 10-15 years ago and its legacy mess?
<havenwood>
_br_: But CBC or CTR mode and they wouldn't have this "same password" problem
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
eeriegeek has joined #ruby
<havenwood>
ECB mode should just *always* be avoided imho.
mansi has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
<havenwood>
CBC with a public IV, no prob.
<Hanmac>
its still curious why they used an symetric system for that oO
mansi has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
<_br_>
what kind of data is stored there, username, password, ... credit cards too ?
<havenwood>
hanmac: Guess they didn't know what they were doing. Looks like at some point they switched to a proper AES with sane cipher, and these are just the older ones?
tonni has quit [Ping timeout: 264 seconds]
lord1234 has left #ruby [#ruby]
Monie has joined #ruby
graydot has quit [Quit: graydot]
<havenwood>
you gotta expect related key attacks in this case, at least they weren't stored in plaintext??
ixti has quit [Ping timeout: 240 seconds]
dEPy has joined #ruby
redhat_ has joined #ruby
icecandy has joined #ruby
<Hanmac>
havenwood: like "forgive them because they did not know what they do" ? ;P
aryaching has joined #ruby
<havenwood>
indeed >.>, except i'm not advocating forgiveness :
<Hanmac>
xD
<_br_>
hehe
mrsolo has quit [Quit: Leaving]
yfeldblum has quit [Remote host closed the connection]
CaptainKnots has quit [Quit: bazinga!]
redhat_ has quit [Client Quit]
CaptainKnots has joined #ruby
Aryasam has quit [Quit: Bye]
Liquid-- has joined #ruby
RaCx has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
nerium has quit [Quit: nerium]
jonathanwallace2 has quit [Ping timeout: 245 seconds]
gcds has quit [Quit: gcds]
DouweM has quit [Ping timeout: 260 seconds]
<_br_>
reminds me a bit of the Sony mess, though that was even more nuts.
<Hanmac>
_br_ user info, "encrypted" password and from some ones the credit card records … and they get the Source Code of some Photoshop products … (and some joked, that while they had access, the hacker did fix the flash player)
thesheff17 has joined #ruby
<havenwood>
publicly exposing consumer info on a REST API, then encourage criminal charges for the guy who discovered it
jbpros has quit [Quit: jbpros]
<_br_>
hanmac: credit cards too ? Wow, fun.
lewis has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
<_br_>
havenwood: Didn't know about ATT, thanks for the link
graydot has joined #ruby
dhruvasagar has quit [Read error: Operation timed out]
arietis has joined #ruby
<_br_>
havenwood: Yeah, its a default mode of corporations. Lets sue the people who actually maybe try to help.
<Hanmac>
some person in forum joked: "lets make a new SI unit, we call it 1Sony, it is for messoring how many secruity shit an company did do … and he says: Adobe was 1.3 Sony" ;P
krz has joined #ruby
<_br_>
hahaha nice
Lewix has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
lewis_ has joined #ruby
lewis has quit [Read error: No route to host]
Seich has quit [Quit: Computer has gone to sleep.]
hornairs has quit [Remote host closed the connection]
<_br_>
wtf.
hornairs has joined #ruby
<Hanmac>
"Credit monitoring" oO that smells like an NSA-gate like fail
<havenwood>
_br_: He just iterated over potentially valid ICC-IDs until he hit one the API returned. For that, 3 years in prison. Our system in that regard is failing miserably.
<_br_>
havenwood: 3 years. Three?!?!
tjadc has quit [Ping timeout: 245 seconds]
<havenwood>
_br_: They got him on the CFAA, which I know I violate weekly, but who doesn't?
<_br_>
Speechless....
alecs has joined #ruby
<havenwood>
_br_: Guys is a douche, but sets a terrible precedent and shows what a non-technical jury of your 'peers' results in
<alecs>
hello!
<havenwood>
_br_: A jury of his actually peers would have acquitted so fast it'd make your head spin.
<deepy>
What is credit monitoring?
<havenwood>
alecs: Helloo.
<havenwood>
deepy: They let you know when someone screws your credit. Thanks Adobe, great....
mengu has quit []
byprdct has quit [Read error: Connection reset by peer]
<_br_>
havenwood: Yes, that is the point.
<alecs>
i am running /bin/bash -l -c /path/to/my/vendor/cli/messages_handler.rb and i get this error, even if all my file is commented ... any ideeas ?
<alecs>
(LoadError)h file or directory --
BizarreCake has joined #ruby
<havenwood>
_br_: Absurdity level OVER 9000.
brtdv has quit []
Seich has quit [Ping timeout: 245 seconds]
newbiehacker_ has joined #ruby
* Hanmac
is in conspiracy mode … Adobe is a phantom company from the NSA
<havenwood>
alecs: Ruby Ruby scripts with Ruby not Bash.
* _br_
power level scouter on his face explodes
mrfoto has quit []
bricker`LA has joined #ruby
tboerger has left #ruby [#ruby]
<havenwood>
alecs: Then saith he unto them, Render therefore unto Bash the things which are Bash's; and unto Ruby the things that are Ruby's.
<havenwood>
alecs: A good place to expect Ruby: /usr/env ruby
Czupa has quit [Remote host closed the connection]
newbiehacker has quit [Ping timeout: 252 seconds]
<alecs>
havenwood: thanks ... i am actually using : $(which ruby) /path/to/my/vendor/cli/messages_handler.rb
<havenwood>
** /usr/bin/env ruby
mdst3 has joined #ruby
<havenwood>
alecs: $(which ruby) is `/bin/bash -l -c`??
<havenwood>
alecs: How about plain ole: ruby your_file.rb
<alecs>
havenwood: thanks :) is simpler
Advocation has joined #ruby
<Hanmac>
_br_ i heard about but i didnt see the kickstarter page yet … from the current it has twice that much that is needed yet (i mean for the days already passed)
Soda has quit [Ping timeout: 252 seconds]
pitzips has joined #ruby
Soda has joined #ruby
<_br_>
hanmac: yeah, maybe something interesting will come from it, lets see
greenrose has joined #ruby
acrussell has joined #ruby
d45h has joined #ruby
Ripp__ has joined #ruby
greenrose1 has quit [Ping timeout: 272 seconds]
DaniG2k has joined #ruby
freezey has joined #ruby
andikr has quit [Remote host closed the connection]
Theravadan has quit [Quit: Ex-Chat]
thecopy has quit [Quit: thecopy]
arietis has quit [Quit: Computer has gone to sleep.]
thesheff17 has quit [Remote host closed the connection]
pyrac has joined #ruby
icecandy has quit [Quit: Going offline, see ya! (www.adiirc.com)]
freezey_ has quit [Ping timeout: 245 seconds]
thesheff17 has joined #ruby
Soda has quit [Ping timeout: 245 seconds]
marcdel has joined #ruby
reset has joined #ruby
jcromart_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bricker`1A has joined #ruby
bricker`LA has quit [Ping timeout: 246 seconds]
silent_root has joined #ruby
gcds has joined #ruby
alecs has left #ruby [#ruby]
ixti has quit [Ping timeout: 245 seconds]
ReachingFarr has joined #ruby
gwillickers has joined #ruby
lethjakm1 has joined #ruby
tonni has joined #ruby
ahawkins_ has quit [Ping timeout: 246 seconds]
mikesplain has joined #ruby
dhruvasagar has joined #ruby
simplex_ has quit [Quit: simplex_]
aganov has quit [Remote host closed the connection]
tesuji has quit [Ping timeout: 246 seconds]
reset has quit [Ping timeout: 240 seconds]
TheMoonMaster has quit [Excess Flood]
gwillickers has left #ruby [#ruby]
TheMoonMaster has joined #ruby
thecopy has joined #ruby
wald0 has joined #ruby
<wald0>
what is exactly attr_accessor for? i have not quite understand it
Liquid-- has quit [Quit: Computer has gone to sleep.]
achru has quit [Write error: Broken pipe]
ixti has joined #ruby
<wald0>
ri says that it also creates a method, how i can print the body of a class to view "what has made on it" ?
codeFiend has quit [Quit: codeFiend]
alup has quit [Quit: Leaving]
<havenwood>
wald0: It is syntactic sugar to create an instance_variable and getter/setter methods of the same name.
<havenwood>
wald0: I like to use Pry to look into classes.
<havenwood>
wald0: Syntactic sugar again. Allows you to `length = this`.
bean__ has quit [Remote host closed the connection]
<wald0>
yeah, but i have a "lenght" and a "lenght=" here
<Hanmac>
havenwood: interesting is that attr_accessor :abc makes the "abc" and the "abc=" method but creates only the symbols "abc" and "@abc" … very curios ;P
<workmad3>
havenwood: you know that you didn't call setter= there, right? :P
<Hanmac>
havenwood: you get fooled ;P
<havenwood>
workmad3: yeah, just re-read it
<havenwood>
i need more coffee
<havenwood>
ivars and barewords oh my
<havenwood>
>.>
tylersmith has quit [Remote host closed the connection]
<havenwood>
wald0: my example was so absolutely terribad, plz disregard, lol - just trying to point out you can make your own method= methods
sputnik13 has joined #ruby
larissa has joined #ruby
<wald0>
ok
<wald0>
maybe i dont know what means the "=" after the word
* wald0
thinks that has not read about this yet
<workmad3>
wald0: it's just part of the method name
<workmad3>
wald0: 'def length=(foo); @foo = foo; end' defines a method called 'length='
gcds has quit [Quit: gcds]
lewis_ has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
<Hanmac>
! and ? can be part of the method name too
<wald0>
mmh, and why not "lenght" only, without = ? or in fact, attr_accessor seems to set both
<havenwood>
wald0: Syntactic sugar. The #length= method can be called normally like `o.length= ...` or the sugar way like `o.length = ...`
<workmad3>
wald0: the ruby interpreter just has a bit of syntax sugar where it'll essentially rewrite 'obj.length = 30' into 'obj.length=(30)'
Seich has quit [Ping timeout: 246 seconds]
lewis has joined #ruby
<wald0>
ah, mh
Soda has quit [Remote host closed the connection]
<wald0>
ruby is full of sugar i think
<havenwood>
`o.length = ()` (with omitted parens) just reads nicer than `o.length=()`
ryanRT has joined #ruby
hornairs_ has joined #ruby
tlewin has joined #ruby
jamblack has quit [Quit: jamblack]
<workmad3>
wald0: the confusion comes in when you omit the 'obj.' in that and try 'length = 30'... the interpreter treats that as a local variable definition
<DaniG2k>
wow there are so many ruby haters out there
<havenwood>
hanmac: ah, saw it mentioned before but wasn't sure on the status - in this morning's tradition of being wrong, i though we were talking f not b
<_br_>
DaniG2k: ?
<havenwood>
**of me being wrong
<havenwood>
DaniG2k: Who's hat'n?
digital-ghost has joined #ruby
vlad_starkov has joined #ruby
<Hanmac>
havenwood: when there is one option/suffix there will be more (and more)
mrsolo has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
timonv_ has joined #ruby
simoz has quit [Ping timeout: 264 seconds]
vlad_sta_ has joined #ruby
Voodoofish430 has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lukec has joined #ruby
fightback has joined #ruby
kevinfagan has joined #ruby
<DaniG2k>
havenwood _br_ was just reading some things online
* Hanmac
tries to summon charliesome … but it was not effective
vlad_starkov has quit [Read error: Connection reset by peer]
Guest10049 has quit [Ping timeout: 264 seconds]
moted has quit [Quit: moted]
moted has joined #ruby
reset has joined #ruby
<_br_>
DaniG2k: yeah, just ignore it, mostly trolling people
jamblack has quit [Quit: jamblack]
TomRone has quit [Ping timeout: 245 seconds]
mikecmpbll has joined #ruby
Monie has quit [Ping timeout: 264 seconds]
<wald0>
im trying to write a small reference, but i dont quite understand what is useful for, the "self" thing
RaCx has quit [Quit: Computer has gone to sleep.]
dancinllama_ is now known as fourq_
<Hanmac>
wald0: you need self when you are inside an object and want to call some methods wich are not so easy accessable, like []=
duggiefresh has joined #ruby
reset has quit [Ping timeout: 268 seconds]
fourq_ is now known as SaIesforceWizard
lfox has quit [Quit: ZZZzzz…]
SaIesforceWizard has left #ruby [#ruby]
<wald0>
i should define all my methods inside classes with self. ?
TomRone has joined #ruby
bklane has joined #ruby
g0bl1n has quit [Quit: g0bl1n]
Lean_ has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 268 seconds]
ravster has joined #ruby
vlad_starkov has joined #ruby
timonv_ has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
tjad has joined #ruby
<wald0>
hanmac: so when i want to create methods only for the classes and not instance objects, i should use self.something ?
timonv has quit [Ping timeout: 245 seconds]
Seich has joined #ruby
colonolGron has joined #ruby
brtdv has joined #ruby
dhruvasagar has joined #ruby
JMcAfreak has joined #ruby
niklasb_ has quit [Ping timeout: 264 seconds]
<wald0>
the difference between private and protected is that protected allows to communicate objects of the same class themselves?
<Hanmac>
yes to both
<bklane>
I am pulling my hair out trying to get ruby working on maverick. After downloading maverick tried to download 2.0 (been working in 1.9.3) and then all hell broke loose. Now i have 1.9.3 reinstalled but it keeps breaking when trying to bundle install libv8 or rubyracer, any ideas?
choobie has left #ruby [#ruby]
newbiehacker` has joined #ruby
DaniG2k has quit [Quit: leaving]
<_br_>
bklane: Pastie with error messages?
lethjakm1 has joined #ruby
DanKnox_away is now known as DanKnox
<Hanmac>
bklane: try to understand why the stuff breaks for 2.0 and seems to work for 1.9.3 … imo that looks like a serious bug for me
yfeldblum has quit [Remote host closed the connection]
<bklane>
it breaks for both...I just cant use ruby at all now, uninstalled 2.0 hanmac
mdst3 has quit [Ping timeout: 240 seconds]
<Hanmac>
bklane what does "clang -v" returns for you? ;P
<nhmood>
Do I need to append dirs to my load path in every lib/appname/{files}.rb or does adding it at the lib/appname.rb file carry through all the files?
tris has quit [Excess Flood]
Tuxist has joined #ruby
kevinykchan has joined #ruby
<bklane>
Barnetts-MacBook-Pro:r9 bklane$ clang -v
<bklane>
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
<bklane>
Thread model: posix
<bklane>
Target: x86_64-apple-darwin13.0.0
newbiehacker_ has quit [Ping timeout: 268 seconds]
<Hanmac>
hm should be current enougth … mom i test it on my mace
tris has joined #ruby
jcromart_ has joined #ruby
<bklane>
ya like i went through all the possible soutions on stack overflow, command line tools, uninstall/reinstall and always coming back to this
vlad_starkov has quit [Remote host closed the connection]
<bklane>
at first it was libv8 but got that good now i believe
vlad_starkov has quit [Remote host closed the connection]
IcyDragon has quit [Ping timeout: 245 seconds]
zarubin has joined #ruby
<Hanmac>
hm i use non maverik but it works on my version … i have ruby 2.1
voodoofish has quit [Ping timeout: 272 seconds]
iliketurtles has joined #ruby
barratt has quit [Ping timeout: 257 seconds]
Advocation has quit [Quit: Advocation]
Advocation has joined #ruby
Advocation has quit [Client Quit]
vlad_starkov has joined #ruby
Advocation has joined #ruby
pothibo has quit [Quit: pothibo]
johnnyfuchs has joined #ruby
<Hanmac>
bklane: you can also try to build your ruby against an real gcc version (like 4.7+), for testing i have two rubies, one build against real-gcc and one against clang
Advocation has quit [Client Quit]
jonathanwallace has quit [Remote host closed the connection]
arietis has quit [Quit: Computer has gone to sleep.]
lfox has quit [Quit: ZZZzzz…]
lukec has joined #ruby
kevinfagan has quit [Ping timeout: 264 seconds]
<wald0>
havenwood: seems like i need to work with "files" ? i use pry actually for just do tests learning ruby, so no files at all, just testing classes and similar things, but sometimes i want to modify them, i cannot scroll up to change the code :/
<Hanmac>
havenwood: thats what i like … users that says: "i want help" and we answer :"yes we want to help you" and then they says nothing and disappear later …
diegoviola has quit [Ping timeout: 246 seconds]
<a1ph4g33k>
Good morning all.
kadoo has joined #ruby
<havenwood>
hanmac: Key is come back later and paste same question, repeat! :P
Guest9444 has quit [Remote host closed the connection]
<havenwood>
a1ph4g33k: g'morn
vlad_sta_ has quit [Remote host closed the connection]
stkowski has joined #ruby
<a1ph4g33k>
any interesting challenges this mornign ?
<a1ph4g33k>
s/gn/ng/
dma has joined #ruby
mansi has quit [Read error: Connection reset by peer]
<wald0>
havenwood: yeah, but i was unable to do it, seems like after i created an object i cannot reach the class editing info
noop has quit [Ping timeout: 260 seconds]
noop has joined #ruby
<a1ph4g33k>
hanmac, that syntax is pretty evil.
Seich_ has quit [Ping timeout: 272 seconds]
<havenwood>
wald0: Did you read?: help edit
<havenwood>
wald0: Shows how
codeFiend has quit [Quit: codeFiend]
aapzak has quit [Ping timeout: 253 seconds]
dhruvasagar has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
d45h has quit []
<havenwood>
I can't explain more concisely, rtfm. :P
aapzak has joined #ruby
<Hanmac>
a1ph4g33k: yeah i tryed to make i more evil but i failed ;P
coca_rails has quit [Remote host closed the connection]
<nhmood>
So I'm printing out my load path [ p($:) ] and I see the directory (file under it) I am trying to access listed but my app can't seem to find the file, any ideas?
nucatus has quit []
iamjarvo has joined #ruby
jkline has joined #ruby
<nhmood>
mydir/filename, mydir is in the load path, I am trying to File.open(filename)
<Hanmac>
nhmood: File.open does not care about load path
derebos has quit [Ping timeout: 264 seconds]
<Hanmac>
it only cares about current directory
<nhmood>
Ahhh I see
<a1ph4g33k>
hanmac, I would think that modifying the behavior of map would be more appropriate ... as in ... currently it accepts no args & a block or no block ... wouldn't be hard to add a new behavior based on the list of passed in arguments ...
<a1ph4g33k>
would be kinda cool actually ...
Mitchellvanw has joined #ruby
nhhagen has joined #ruby
<nhmood>
So then I can't get an absolute dir using File either then?
burlyscudd1 has quit [Quit: Leaving.]
<nhmood>
path*
<a1ph4g33k>
pass in a list of procs to perform and they are handled in order ...
<havenwood>
nhmood: Dir.pwd and __dir__
jaimef has quit [Excess Flood]
huttan has quit [Ping timeout: 240 seconds]
io_syl has joined #ruby
thesheff17 has quit [Remote host closed the connection]
tonni has quit [Read error: Connection reset by peer]
tonni has joined #ruby
<nhmood>
havenwood: But those return the path to the current directory?
<nhmood>
In order to use File I need the absolute path to my file no?
silent_root has quit [Quit: Lost terminal]
<havenwood>
nhmood: They differ. `Dir.pwd` is the current working directory, and `__dir__` is path to where the method was called.
<nhmood>
Ohh I see, let me try that out
catphish has quit [Quit: Leaving]
<Hanmac>
a1ph4g33k: the most interesting part is thar my stuff is chainable, like you can see in the sample (its interesting for lazyness)
<havenwood>
nhmood: Before Ruby 2.0, `__dir__` was commonly written as something like: File.dirname(File.realpath(__FILE__))
mark_locklear has joined #ruby
<havenwood>
nhmood: Still do that for 1.9 compat or to work in irb/pry.
workmad3 has quit [Ping timeout: 245 seconds]
<nhmood>
I see
krz has joined #ruby
colonolGron has quit [Ping timeout: 264 seconds]
kirun has joined #ruby
d45h has joined #ruby
freerobby has quit [Quit: Leaving.]
<nhmood>
So if my file is in assets/myFile and I'm calling it from lib/myapp/app.rb theres no easy way, I have to use that __dir__ and then slice off until I get to the top directory
tris has quit [Excess Flood]
jaimef has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
carraroj has joined #ruby
<nhmood>
I guess I could use basename since I know it is under lib/myapp/__FILE__
tris has joined #ruby
Ziarkaen has joined #ruby
mansi has quit [Remote host closed the connection]
jkline has quit [Quit: jkline]
Mitchellvanw has quit [Quit: Dozing off...]
mansi has joined #ruby
carif_ has quit [Ping timeout: 272 seconds]
tvw has quit []
petey has quit [Remote host closed the connection]
petey has joined #ruby
cody-- has joined #ruby
dEPy has quit [Remote host closed the connection]
motto has joined #ruby
dEPy has joined #ruby
Liquid-- has joined #ruby
btanaka has quit [Write error: Broken pipe]
<bklane>
havenwood: did the installing of gcc48 take a while? mine has been on the 'make bootstrap' step for 30-40
krz has quit [Ping timeout: 245 seconds]
<havenwood>
bklane: a surprisingly long time, indeed
<a1ph4g33k>
more my style ... could be added to make multi-part filters as well.
BraddPitt has quit [Ping timeout: 260 seconds]
heidi has joined #ruby
colonolGron has joined #ruby
Soda has joined #ruby
<sweeper>
hmm. I'm in a situation where we need to migrate from one ORM/DB to another, and we want to be able to do it class by class. Is there a way I can have an instance of a class delegate all methods to another class depending on a condition?
jojosch has joined #ruby
<Hanmac>
a1ph4g33k: first, Method and Proc can be handld in the same when, UnboundMethod is wrong it need to be bind(i).call … otherwise it its totaly different from mine, because my supports lazyness, yours doesnt that much
MrZYX|off is now known as MrZYX
nhhagen has quit [Remote host closed the connection]
krz has joined #ruby
<sweeper>
I'd like to do something along the lines of "unless account.migrated?('this_model_name') call(ThisOtherModel.my_method)"
BizarreCake has quit [Ping timeout: 246 seconds]
<a1ph4g33k>
hanmac, yep, I was just fixing the unbound method, and I know that Method & Proc *could* be handled the same, but I wasn't sure I wanted to.
<a1ph4g33k>
and that's completely true, but I don't do much lazy processing.
staafl has quit [Ping timeout: 245 seconds]
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
jamblack has quit [Quit: jamblack]
SirFunk_ has joined #ruby
<a1ph4g33k>
the next step would be to wrap up transform to return an enumerable when no block is passed, or handle a block.
<krz>
basically i need all three singleton methods to access and set a varibales value
kaspergrubbe has joined #ruby
<krz>
can this be done via a class var?
jamblack has joined #ruby
<krz>
or other
thesheff17 has joined #ruby
<krz>
?
jojosch has quit [Client Quit]
jonathanwallace has quit [Ping timeout: 264 seconds]
jkhwan_ has joined #ruby
preller has quit [Ping timeout: 252 seconds]
havenwood has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
jkhwan has quit [Read error: Connection reset by peer]
thesheff17 has quit [Max SendQ exceeded]
goodeveningmiss has joined #ruby
SirFunk_ has quit [Remote host closed the connection]
timonv has joined #ruby
gcds has joined #ruby
<a1ph4g33k>
krz, yes you can define singleton methods with access to a class variable.
<a1ph4g33k>
>> class Foo ; def self.get_a ; @a ; end ; def self.set_a( new_value ) ; @a = new_value ; end ; end ; puts Foo.get_a ; Foo.set_a 3 ; puts Foo.get_a
gcds has quit [Read error: Connection reset by peer]
<a1ph4g33k>
within a self. method its an instance variable of the class Foo.
<a1ph4g33k>
not an instance method of an object of type Foo.
SirFunk_ has joined #ruby
gcds has joined #ruby
mikesplain has quit [Ping timeout: 240 seconds]
mikesplain has joined #ruby
<Hanmac>
a1ph4g33k: its a class instance variable … totaly different ;P
niklasb_ has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
<droptone>
what does the operator ||= mean in ruby?
rylev has joined #ruby
<a1ph4g33k>
... or to word that more correctly ... When you define a self. method ... you are adding methods to the instance of Class that you have defined ( in this case Foo ) ... therefore instance variables are within that instance of Class ...
<a1ph4g33k>
isnt' that what I just said ;) ?
jamesnelson has joined #ruby
<a1ph4g33k>
droptone, a ||= b means a = a || b
<droptone>
gotcha, thank you
<Hanmac>
droptone: but it does magic when the variable does not exist yet
<prophile>
droptone: that's not quite true
<prophile>
I think it behaves more like a || a = b
alvaro_o has joined #ruby
sayan has joined #ruby
<jamesnelson>
I'm having a problem implementing the Workflow gem off an abstract class
<a1ph4g33k>
prophile, so a += b is a + a = b ?
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jblack>
there was a post about || on reddit not long ago
<a1ph4g33k>
no.
d45h has quit []
<a1ph4g33k>
it's a concatenation of a logical comparison and an assignment.
<jamesnelson>
I'm trying to load configs per class from the db, and I'm getting a 'undefined method assign_workflow' error
reset has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby
madb055 has quit [Ping timeout: 240 seconds]
<prophile>
a1ph4g33k: yes, but it isn't
<prophile>
because ruby
<a1ph4g33k>
so a ||= b is the result of a || b being assigned back to a.
bigoldrock has quit [Ping timeout: 240 seconds]
<a1ph4g33k>
if a is falsy ... then b gets used.
<a1ph4g33k>
undefined/nil == falsy.
<prophile>
yes, but from what I recall the assignment doesn't actually happen if a is not falsy
<Hanmac>
a1ph4g33k: like for sample when you have obj[key] ||= val its like obj[key] || (obj[key] = val) so it does not call the []= method when the position already exists
<prophile>
^
freakazoid0223 has quit [Read error: Connection reset by peer]
<jblack>
irb(main):014:0> a,b=nil,true; a||=b; a
<jblack>
=> true
tris has quit [Excess Flood]
tris has joined #ruby
mansi has quit [Remote host closed the connection]
d45h has joined #ruby
larissa has joined #ruby
mansi has joined #ruby
mansi has quit [Read error: Connection reset by peer]
<_br_>
Nokogiri? I thought all the cool kidz these days use Ox gem ?
<Hanmac>
_br_ that are only hipsters
mva3212 has joined #ruby
<_br_>
ohhhh :D
devbox_ has joined #ruby
mva3212 has quit [Client Quit]
<samfisher>
hanmac: thank you so much!
devbox_ is now known as mva3212
kadoo has joined #ruby
kadoo has quit [Client Quit]
brtdv has quit []
d45h has quit []
RaCx has quit [Ping timeout: 246 seconds]
mva3212 is now known as mva1
mikesplain has quit [Ping timeout: 272 seconds]
mva3212 has joined #ruby
kadoo has joined #ruby
amacgregor__ has quit [Read error: Connection reset by peer]
Schuy13r has left #ruby ["WeeChat 0.4.0"]
<samfisher>
hanmac: and if I want to define a specific code?
<samfisher>
or <cod>
<godd2>
Is there any go-to 'must learn these gems' list when picking up Ruby?
mva3212 has quit [Client Quit]
mva1 has quit [Client Quit]
brtdv has joined #ruby
RaCx has joined #ruby
<Hanmac>
samfisher: better xpath go get the first cod: .xpath("*/banca[1]/cod").text
<Hanmac>
the [1] can be used as index
nhhagen has joined #ruby
<_br_>
xpath is a bit confusing at first, but its quite worth learning actually
TMM has joined #ruby
BraddPitt has joined #ruby
Hellcat has joined #ruby
<_br_>
not so its retarted cousin wsdl.
<samfisher>
hanmac: thank you, but I wanted to choose another <cod> not the first
Hellcat is now known as Guest53708
<_br_>
or xslt for that matter...
Parduse has quit [Read error: Connection reset by peer]
<Hanmac>
samfisher: depends, use different index or something like that: .xpath("*/banca[nume='Royal Bank of Scotland']/cod").text
_HolyCow1 is now known as _HolyCow
jbpros has quit [Quit: jbpros]
<Hanmac>
_br_ i dont want to sound cruel but wsdl should have been killed before birth … :(
Parduse has joined #ruby
Guest53708 has quit [Excess Flood]
artm has quit [Ping timeout: 264 seconds]
<_br_>
hanmac, I don't think it would be cruel. Would be some mercy killing.
petey has joined #ruby
Guest53708 has joined #ruby
Guest53708 is now known as Shellcat
bean__ has joined #ruby
<_br_>
Wrote a fun little lib for that long ago, took nearly my sanity.
interactionjaxsn has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
Targen has joined #ruby
sayan has joined #ruby
<Hanmac>
_br_ a long time ago i did an funny clock like image in svg … and then i need to did it in wsml too because of IE are to dumb to display svg (was that fixed yet?) … as you can think i was failed because wsml didnt work like svg
<_br_>
IE ? No clue. I so don't care about that browser.
<Hanmac>
ahh IE9 can do svg ;P
i_s has joined #ruby
<_br_>
hehe
RaCx has quit [Quit: Computer has gone to sleep.]
<Hanmac>
for a moment i thought that lynx get earlier svg support than IE
Apane has joined #ruby
thecopy has joined #ruby
<bklane>
havenwood: what would be the max time ya think? im at an hour and a half
SirFunk has quit [Read error: Connection reset by peer]
StFS has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
<Hanmac>
bklane: oO is it realy still building? it sounds like it is hanging … (i already builded gcc48 a few minutes ago and it didnt take that long oO )
kaspergrubbe has joined #ruby
<StFS>
Hi. I have a ruby script that seems to be flushing stdout rather rarely. Can anybody tell me if I can force flushing without changing the ruby program? For example using some environment variable or something?
mansi has quit [Remote host closed the connection]
<Tr_OLL>
how can i do my best trolling job but do not get kicked out of this channel?
<yxhuvud>
hanmac: they are still not even close to the amount of public cameras per capita that UK have.
mansi has joined #ruby
huttan has joined #ruby
<bootcoder>
My final interview with Dev Bootcamp is toady. Anyone care to persuade / dissaude on the merits of going to such a school...
jhulten has quit [Remote host closed the connection]
xk_id has quit [Quit:
<Tr_OLL>
bootcoder: it's today not toady
jcromart_ has joined #ruby
<Spitfire>
bootcoder, do you get a recognised qualification from them?
<jblack>
How much is it, bootcooder?
<bootcoder>
Spitfire: no they do not offer any kind of degree. but claim a 90% job placement in jr level
<Tr_OLL>
bootcoder: yes that's right i would say that's 1 point for me
<jblack>
I don't trust those kinds of schools.
jhulten has joined #ruby
<Tr_OLL>
i'm a good troll though
<Spitfire>
lol
noop has joined #ruby
gcds has joined #ruby
<bootcoder>
Tr_OLL: troll success
<Spitfire>
jblack, $12,200 I believe.
divi_ has joined #ruby
<jblack>
Maybe it is toady....
<Tr_OLL>
not a bad guy
decoponio has quit [Quit: Leaving...]
<bootcoder>
jblack: whys that?
pu22l3r__ has quit [Remote host closed the connection]
<jblack>
They might help if you need to be spoonfed information, but you're in the wrong field if you need to be spoonfed.
<Tr_OLL>
bootcoder: because i am a troll.
<AntelopeSalad>
ruby devs seem to have a good knack for naming things, how would you guys label an html table column that contains both an icon + name of something that would be technically described as a class or model but in less technical wording?
<bootcoder>
i mean I can teach myself but it will take wayyy longer. And I'll have a harder time getting a job
mansi has quit [Ping timeout: 272 seconds]
pu22l3r has joined #ruby
<jamesnelson>
I've hired people from coding schools before - they're no better prepared than someone who just bit the bullet and pitched in on an open source project or two
<jblack>
A good way to get recognition is to work on free software.
pothibo has quit [Quit: pothibo]
RichardBaker has quit [Quit: RichardBaker]
<Tr_OLL>
or become a troll like me.
<jamesnelson>
I cut my teeth doing linux kernel stuff
SHyx0rmZ has joined #ruby
<jamesnelson>
that got enough published work out to get me my first paying gig
maletor has quit [Quit: Computer has gone to sleep.]
<Spitfire>
jamesnelson is a man of many talents.
<Tr_OLL>
jamesnelson: shame on you
<jblack>
One problem is that that schools like that tend to focus on older technologies. It takes time to build a curriculim. Our field moves faster than that.
drPoggs has quit [Ping timeout: 243 seconds]
<Spitfire>
dentistry... music...
jhulten has quit [Read error: Connection reset by peer]
jhulten_ has joined #ruby
drPoggs has joined #ruby
qz has quit [Ping timeout: 264 seconds]
skaflem has quit [Quit: Leaving]
qz has joined #ruby
qz has joined #ruby
qz has quit [Changing host]
<bootcoder>
The curriculim is heavy RoR and JS
<Tr_OLL>
bootcoder: sounds good to me
xk_id has joined #ruby
<jblack>
Also, they usually have very little impact upon hiring. A lot of the people that come out of short tech schools (<= 6 months) are usually more trouble than they're worth.
brtdv has quit []
<jblack>
They think they know more than they do, they can be stubborn and arrogant. I'm sure you're an exception, but it's a bias you'll have to deal with from others.
jkamenik has joined #ruby
<Tr_OLL>
i at least admin i'm a troll
RaCx has joined #ruby
<jblack>
Wow, you're a troll admin? There's a position for that?
Bira has joined #ruby
noop has quit [Ping timeout: 264 seconds]
aspires has joined #ruby
<bootcoder>
so save the money and just learn on my own... whats a realistic timeline to go from noob to paid dev
<Lewix>
bootcoder: I did it in two months
<jblack>
That's highly dependent upon your intelligence, dedication, commitment and memory
brtdv has joined #ruby
pu22l3r has quit [Ping timeout: 268 seconds]
<Spitfire>
bootcoder, if you were looking at RoR/JS, I'm guessing you want to do web dev?
<Tr_OLL>
bootcoder: take his advice or join me to become the next generation of trolls
<bootcoder>
so far i worked through Learn Ruby the hard way as well everything on codecademy.com
jkline has quit [Quit: jkline]
<jblack>
If you learn quickly, study 3-4 hours a day, get involved in free software projects, about 6 months.
<Tr_OLL>
Spitfire: bad assumption. the two languages go way farther than just web
<jblack>
Six months to enter the field on the low end, mind you.
<Lewix>
There are a lot of factors involved , you cannot really put a timeframe on that.
<bootcoder>
there seems to be alot of job demand in web development so yes. im not really tied to anything, I need a new line of work and I think this would be a good one
<Hanmac>
bootcoder: was the curriculim named "rails" or something similar in the name or in the discription? if no, that it is not fair to ask rails questions … its like asking an pilot how to drive a submarine
<Spitfire>
Tr_OLL, hence asking. Hush now, the adults are talking.
<jblack>
It takes about a decade of solid work to become a solid programmer.
<jblack>
A solid, well rounded, has all the bases covered one.
<Lewix>
bootcoder: If it's just for work and you don't actually enjoy it, the learning curve is gonna be higher for sure
<Tr_OLL>
Spitfire: this is what i do, and why i am here. take it as free entertainment service.
<jamesnelson>
yep - I've got 7 years of professional experience, and about 4 years of OSS work before that
* Hanmac
pings apeiros
<Spitfire>
bootcoder, you can make a bit of money on the side while learning, by doing odd jobs for people. People are often looking for a web dev to do a one-off project/small bit of work.
<Spitfire>
That also makes your CV look better when you come around to applying for positions.
<Tr_OLL>
give him some real examples of work when you say that
<Tr_OLL>
help the poor soul
<jblack>
Yeah. I'd take on someone with lots of minor contributions to free software over a trade school any day of the week.
<jblack>
It's not even close
simplex_ has joined #ruby
<bootcoder>
I think I will enjoy it. I like what ive done so far. although i dont have any practical knowledge just yet. so I cant really build things. I think I will like it much more once I cross a threshhold of being able to produce useful code
<Tr_OLL>
jblack: don;t be a d to young man
<Lewix>
Spitfire: odd jobs?
gcds has quit [Quit: gcds]
<jblack>
Sure, use it as a way to get started. =)
jcromart_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jblack>
Tr_OLL: I'm not. He asked. =)
<jamesnelson>
do documentation - it's thankless but a real learning experience
<jblack>
oh man, that's a wide open field there...
<jblack>
That's excellent advice jn is giving you, bootcoder
<Tr_OLL>
jblack: i think you're way too harsh on him. give him some break
nomenkun has joined #ruby
tjaco has quit [Ping timeout: 260 seconds]
gcds has joined #ruby
pu22l3r has joined #ruby
<bootcoder>
How about job happiness. Do you guys have it? How long have you been in?
<jblack>
if you think debugging is a crap job.....
<bootcoder>
idk what make a crap job
<Tr_OLL>
bootcoder: you need to take 101 again. you're missing quotations
Targen has quit [Quit: No Ping reply in 180 seconds.]
<jamesnelson>
crap jobs are ones with tyrant bosses, unrealistic expectations, unpaid overtime, death marches to reach artificial goals, working without specs, no surce control system, no QA team
<jblack>
bootcoder: lack of empowerment. lack of respect.
kindjal has joined #ruby
Targen has joined #ruby
<Tr_OLL>
better be a troll than having a crap job
fuzzyhorns1 has joined #ruby
<bootcoder>
so its more a function of where you work thenur job as to the quality of y
fuzzyhorns has quit [Ping timeout: 240 seconds]
kevinfagan has joined #ruby
<Tr_OLL>
write that question in code bootcoder
<bootcoder>
*so its more a function of where you work then as to the quality of your job
<Tr_OLL>
write it in ruby or js
<jblack>
bootcoder: Who you deal with is definitely a bit part of the metric
<jblack>
s/bit/big
mark_locklear has quit [Ping timeout: 264 seconds]
jamblack has joined #ruby
<Spitfire>
apeiros, yo?
end_guy has quit [Ping timeout: 240 seconds]
<maurogoncalo>
By the way, where should we look for odd jobs to do on the side?
<jblack>
You don't want to work for a micromanaging detail oriented boss. Steve Jobs may gotten some nifty things into the market, but he was a borderline slaver.
Soda has quit [Read error: Connection reset by peer]
<Tr_OLL>
jblack: that's it? no more insane advice from you?
RaCx has joined #ruby
end_guy has joined #ruby
tonni has joined #ruby
<bootcoder>
jblack: thanks
<jblack>
maurogoncalo: Most of my work comes from references
codenapper has quit [Read error: Connection reset by peer]
randomnick_ has joined #ruby
codenapper has joined #ruby
<jblack>
What they say about not burning bridges is true.
<jamesnelson>
Craigslist can get you some work, but it's full of "ideas men" who think they're the next Steve Jobs, just need a programmer to implement their big ideas
<Spitfire>
sepp2k, you around?
<Spitfire>
jamesnelson, lol, I know so many people like that, heh.
<jamesnelson>
avoid them like the plague - I earned an ulcer working for one of them
<sweeper>
and they will usually want to pay with equity or some other monopoly money >.>
<Spitfire>
and they'll probably blame you when their idea doesn't take off like they expected.
robwilliamsuk has joined #ruby
<bootcoder>
pitch for amc's new show
<jblack>
Idea men that have no coding experience at all..
<jamesnelson>
or even better, were "java programmers" during the .com era
nhmood has joined #ruby
<jblack>
"What do you mean we can't just scrape every secretary of state website for every business in america this weekend?"
colonolGron has quit [Read error: Operation timed out]
<jblack>
"It's a great idea!I can see the businesses right there and it's all free!!!"
<Tr_OLL>
stop it
<sepp2k>
Spitfire: Yeah, what's up?
<Spitfire>
sepp2k, could you deal with Tr_OLL please.
test___ has joined #ruby
<jblack>
Yes, please.
<bootcoder>
Tr_OLL: bye
<jblack>
You're not even a particularly talented troll. You're just acting obnoxious
funburn has joined #ruby
Tr_OLL is now known as rubylover
<rubylover>
what have i done?
<rubylover>
i love ruby
<bootcoder>
mildly funny
<bootcoder>
just the last bit though
earthquake has quit [Quit: earthquake]
<rubylover>
"practice makes perfect"
mansi has joined #ruby
Speed has joined #ruby
rubylover is now known as bookcoder
<apeiros>
bookcoder: please leave
IceDragon_ is now known as IceDragon
<bootcoder>
I'm thinking I am going to do the school still. It's a great way to jumpstart the transition into development in a group environment. Pricey yes, but if it lands me a decent entrylevel gig by this time next year I will be happy.
<jamesnelson>
just be prepared to do side work
pu22l3r has quit [Remote host closed the connection]
joelroa has joined #ruby
<jamesnelson>
most schools leave you with blind spots
<bookcoder>
let me tell you where you get the real freelancer job
<bookcoder>
oDesk.com
pu22l3r has joined #ruby
<jamesnelson>
I got interviewed for a Google SRE job, and they specifically were loking for self-taught programmers because of the problems you can run into with institutional blind spots
bassclef has joined #ruby
bassclef is now known as Guest66421
<bookcoder>
bootcoder: what school do you go to?
<banisterfiend>
jamesnelson not as large as the blind-spots of self-taught programmers, IMO ;)
<banisterfiend>
jamesnelson specifically: Math, and algorithms
<bootcoder>
I know its not all inclusive but if i can get into the feild and start learning as I go.... I live in a small town, so there's no access to ruby meetups ect.
<jamesnelson>
true - that's why they put you through the interview grinder
<bean__>
*shrug* you dont really need a ruby meetup.
Soda has joined #ruby
<jamesnelson>
my math is crap - that's why I'm a webdork
<bean__>
we live in the age of the internet broski
RaCx has quit [Quit: Computer has gone to sleep.]
brtdv has quit []
<banisterfiend>
bootcoder have you checked out private schools like general assembly etc
timonv has quit [Remote host closed the connection]
colonolGron has joined #ruby
<bookcoder>
ruby meetups have absolutely zero value
<bootcoder>
im looking at dev bootcamp or the flatiron school in NYC
<banisterfiend>
bootcoder General assembly is based in NYC too
niklasb_ has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
<bookcoder>
youtube and books are your best resources
<bootcoder>
what would make GA a better choice?
pu22l3r has quit [Ping timeout: 268 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<bookcoder>
I think GA is a bitch
<banisterfiend>
bootcoder i didn't say it was a better choice necessarily, but toss it into the pile for your consideration
<banisterfiend>
bootcoder how come?
<bookcoder>
no thanks
<bootcoder>
any exp. with them?
<banisterfiend>
err bookcoder i meant, why are they a bitch? just curious
<banisterfiend>
(dang, u guys have almost exactly the same nick)
<bootcoder>
why Dev bootcamp? well they were the first in the feild. they have been doing these classes now for three years with good results. Seems to me they have ironed out alot of the bugs in the system...
bootcoder is now known as HunterT
<HunterT>
fixed
theRoUS has quit [Ping timeout: 245 seconds]
timonv has quit [Ping timeout: 240 seconds]
_whitelogger has joined #ruby
llort was kicked from #ruby by apeiros [stay away]
llort has joined #ruby
llort was kicked from #ruby by apeiros [stay away]
<goodeveningmiss>
lol are you repeatedly kicking the wrong person?
<apeiros>
3 tries… srsly…
<apeiros>
goodeveningmiss: no.
<s2013>
just ban the ip
RaCx has joined #ruby
<goodeveningmiss>
oh okay. I have no idea what that is.
<apeiros>
I may fail at setting the right banmask, I don't fail at recognizing the ip
<Hanmac>
apeiros: hm shount you unban the first two wrong ones?
<s2013>
hanmac, its the same thing essentially
<bootcoder>
there seem to be a ton of these schools poping up
<s2013>
bootcoder, what are you asking about? im familiar with tehse 'schools'
<s2013>
hanmac, no implicit conversion of String into Integer
<bootcoder>
I'm applying to devbootcamp in SF just wanted some input from actual dev's
<bootcoder>
12k is alot to drop without research
lfox has joined #ruby
<s2013>
nvm. got it now hanmac thanks
<s2013>
bootcoder, what is your end goal?
pragmatism has quit [Quit: Leaving...]
<bootcoder>
new path in life. hopefully something I will enjoy as well as pays the bills. I've been in print for the last 7 years and I have to get out
coca_rails has joined #ruby
yfeldblum has joined #ruby
<s2013>
i didnt need philosophical answer.. is it to get a job?
<s2013>
or just learn for fun
<bootcoder>
yes to get a job hopefully a decent one
<sweeper>
12k is enough to live on for several months....
<s2013>
do you have a degree?
<s2013>
sweeper, its 12k for a course
<bootcoder>
no
<s2013>
not pay
<s2013>
but yeah if you are good, you should get some entry level jobs
<sweeper>
s2013: right. what I'm saying is, he could not pay, and eat ramen, and code something awesome on his own
kaspergrubbe has quit [Ping timeout: 264 seconds]
<s2013>
but he has to pay
<s2013>
sweeper, true, sorry misunderstood
jcromart_ has joined #ruby
ReachingFarr has quit [Ping timeout: 245 seconds]
<bootcoder>
right now im not good. I have a basic knowledge of the language but no practical knowledge whatsoever
<s2013>
bootcoder, if you work hard you can learn good enough from those bootcamps
<s2013>
to get an entry level job
<s2013>
but if you can be selftaught then you can learn yourself, hire a tutor to come in once a week
<s2013>
and save like 75%
<sweeper>
or if there's a local ruby group, pay nothing :3
<s2013>
plus once you get over the basic hump then stuff becomes easier to understand and debug
<s2013>
plus this channel would help too
imadalin_ has quit [Quit: Hard work pays off in the future, laziness pays off now]
<bootcoder>
how difficult is it for a self taught to get an entry level position?
<sweeper>
find a project you can be passionate about, that many people would find useful
<sweeper>
bootcoder: not at all
<s2013>
bootcoder, depends on many factors
<s2013>
im stupid and i have a six figure income
<s2013>
so if i can do it, anyone can
<sweeper>
if you're a heavy GH contributor, you can get an entry level job
<bootcoder>
what do you do? and how did you get there?
<bootcoder>
havnt used gh at all yet
staafl has joined #ruby
<s2013>
i started my own company while in college
<sweeper>
k you need to learn that stat
<s2013>
but i decided to get a job at a startup
<bootcoder>
just finishing LRTHW
<s2013>
to tr to accelerate my learning
coca_rails has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
<s2013>
learn ruby the hard way?
<bootcoder>
yes
ringtiny has joined #ruby
<bootcoder>
made it through with little trouble. although test::unit is a bit difficult
<near89>
hi
iliketurtles has quit [Quit: zzzzz…..]
aetaric has quit [Ping timeout: 264 seconds]
<near89>
im creating ruby prepared statements
<near89>
i do "check_resource = con.prepare "SELECT user,clave from resource..."
Clooth has quit [Quit: Leaving...]
Naoe-Kanno has joined #ruby
<s2013>
bootcoder, yeah contribute to some open source stuff
pushpak has joined #ruby
<near89>
then I do check_resource.execute params..
elux has quit [Quit: Leaving...]
<s2013>
work on your own projects
<s2013>
and publish it
<near89>
is there a way to have the real query string ?
<sweeper>
bootcoder: you can contrib to my project, it's pretty easy
<s2013>
bootcoder, i went from knowing nothing about ruby/rails to winning first place in an international competition
<s2013>
for ror/ruby
SHyx0rmZ has quit [Ping timeout: 240 seconds]
<near89>
does anyone know?
<bootcoder>
well I apprciate the input guys. My interview is in an hour so I'm going to review on codecademy for a bit... I will be back with acutal ruby questions soon. Wish me luck
<sweeper>
near89: ask the people who make the driver you're using
<s2013>
good luck
<sweeper>
bootcoder: good luck \o
<sweeper>
may the farce be with you
Clooth has joined #ruby
<bootcoder>
Thanks
bootcoder has left #ruby [#ruby]
failshell has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 265 seconds]
jamesnelson has left #ruby [#ruby]
failshell has joined #ruby
banjara has joined #ruby
cody-- has quit [Quit: derp]
aetaric has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
<near89>
so you dont know?
<near89>
i thought it was simple
<near89>
nobody uses the mysql-client driver for ruby ?
kpshek has quit []
<near89>
require 'mysql'
funburn has joined #ruby
ringtiny1 has joined #ruby
goodeveningmiss has left #ruby [#ruby]
mark_locklear has joined #ruby
<Hanmac>
near89 i dont know one who uses mysql-client directly … most users are using ORM like stuff where the db-driver can be easily replaced
ukd1 has quit [Remote host closed the connection]
whomp has joined #ruby
ukd1 has joined #ruby
whunt has quit [Quit: Computer has gone to sleep.]
wildroman has quit [Remote host closed the connection]
zz_jrhorn424 is now known as jrhorn424
<whomp>
what's the nicest way to cut a smaller 2-d array out of a larger 2-d array? my best atm is array[(i-1)..(i+1)].map{ |row| row[(j-1)..(j+1)] }
r0bby_ has joined #ruby
wildroman has joined #ruby
Seich_ has joined #ruby
kpshek has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
burlyscudd has quit [Ping timeout: 264 seconds]
ReachingFarr has joined #ruby
frustrum has joined #ruby
pragmatism has joined #ruby
jcromart_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
frustrum has quit [Client Quit]
ringtiny has quit [Ping timeout: 264 seconds]
zzz_taion809 is now known as taion809
whunt has joined #ruby
<whomp>
anyone?
<whomp>
bueller?
tbrock_ has joined #ruby
gcds has quit [Read error: Connection reset by peer]
yalue has quit [Quit: Leaving]
<MrZYX>
hm, I don't think you can get better than this
<Hanmac>
whomp you can try this (change the "…" into 3x".", stuipd mac shit ) array.each_with_index.lazy.select {|_,idx| (i-1)…i === idx}.map {|row| row[(j-1)…j] }.force
ukd1 has quit [Ping timeout: 265 seconds]
greenrose1 has joined #ruby
wildroman has quit [Ping timeout: 272 seconds]
tonni has quit [Read error: Connection reset by peer]
gcds has joined #ruby
<whomp>
what are some advantages of that?
<s2013>
are there good linear algebra libraries in ruby
<s2013>
similar to numpy?
kaspergrubbe has joined #ruby
<apeiros>
a...b
greenrose has quit [Ping timeout: 240 seconds]
<apeiros>
hanmac: seems to be a setting of your irc client to turn ... into a proper ellipsis
<apeiros>
(usually a good thing - not for us ruby coders, though)
elux has joined #ruby
CaptainKnots has quit [Quit: bazinga!]
<lnormous>
Anyone got any experience with rgeo?
jkamenik has quit [Quit: Leaving.]
timonv has quit [Remote host closed the connection]
CaptainKnots has joined #ruby
<Hanmac>
apeiros: did you know that all this shittty mac programs does NOT support "paste as simple plain text" ? … i mean i download gedit do get something where i can pastie my stuff into without the text getting formated …
sambao21 has joined #ruby
timonv has joined #ruby
<apeiros>
hanmac: no idea what you're talking about - I've never had troubles getting my text copy & pasted
divi_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michele2 is now known as ycy
ehc has joined #ruby
Bira has quit [Remote host closed the connection]
<apeiros>
I don't use gedit, though
bigoldrock has joined #ruby
sambao21 has quit [Client Quit]
funburn has quit [Quit: funburn]
Tuxist has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
<Hanmac>
hm maybe its only a problem of the irc client … when i copy something that has a <a> element inside, it does does not print the text, but it does print the link
divi_ has joined #ruby
Bira has joined #ruby
simplex_ has quit [Quit: simplex_]
<apeiros>
hanmac: osx copy & paste is multi-format capable. it can have the same thing in different representations. the application getting the paste command decides which format to use.
timonv has quit [Ping timeout: 260 seconds]
<apeiros>
maybe your irc client provides a html and a plaintext version
pr0ggie has quit [Ping timeout: 240 seconds]
Jetchisel has joined #ruby
pr0ggie has joined #ruby
pdimitrov has quit [Ping timeout: 268 seconds]
zarubin has joined #ruby
pdimitrov has joined #ruby
tonni has joined #ruby
silent_root has quit [Ping timeout: 246 seconds]
iamjarvo_ has joined #ruby
Uranio has quit [Quit: while you reading this, a kitty dies]
leynos has quit [Quit: Off to dreams of Laserdiscs and Neo-Geos]
iamjarvo_ has quit [Remote host closed the connection]
gcds has quit [Read error: Connection reset by peer]
iamjarvo has quit [Read error: Connection reset by peer]
Catie has quit [Ping timeout: 245 seconds]
iamjarvo has joined #ruby
jbpros has joined #ruby
funburn has joined #ruby
gcds has joined #ruby
<Hanmac>
apeiros: yeah it does, but unlike pidgin, this "clone" does not differ between them … so you cant choose "pastie as plaintext version"
kaspergrubbe has quit [Remote host closed the connection]
Catie has joined #ruby
Seich_ has quit [Quit: Computer has gone to sleep.]
banjara has quit [Quit: Leaving.]
kaspergrubbe has joined #ruby
Seich_ has joined #ruby
brtdv has joined #ruby
funburn has quit [Client Quit]
banjara has joined #ruby
nateberkopec has joined #ruby
bigoldrock has quit [Ping timeout: 272 seconds]
ukd1 has joined #ruby
banjara has quit [Client Quit]
jibi has joined #ruby
freezey_ has quit [Read error: Connection reset by peer]
<s2013>
damn. i need to convert an array of hash into a hash
banjara has joined #ruby
freezey has joined #ruby
jbpros has quit [Client Quit]
adambeynon has joined #ruby
samfisher has quit [Quit: exit error code 434]
gcds has quit [Read error: Connection reset by peer]
Seich_ has quit [Ping timeout: 260 seconds]
kaspergrubbe has quit [Ping timeout: 260 seconds]
kevinfagan has quit []
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Seich_ has joined #ruby
gcds has joined #ruby
pyrac has quit [Quit: pyrac]
cody-- has joined #ruby
timonv has joined #ruby
threesome has quit [Ping timeout: 264 seconds]
drumusician has joined #ruby
VTLob has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
gcds has quit [Read error: Connection reset by peer]
tonni has quit [Remote host closed the connection]
einarj has joined #ruby
sepp2k1 has quit [Read error: Connection timed out]
<s2013>
thanks bricker`work letm e chekit
gcds has joined #ruby
sepp2k has joined #ruby
Bira has quit [Remote host closed the connection]
einarj has quit [Client Quit]
<mjc_>
anyone going to rubyconf this weekend?
Deele has quit [Ping timeout: 260 seconds]
simoz has quit [Ping timeout: 264 seconds]
gcds has quit [Read error: Connection reset by peer]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
banjara has quit [Client Quit]
Shidash has quit [Ping timeout: 246 seconds]
danshultz has joined #ruby
gcds has joined #ruby
banjara has joined #ruby
iliketurtles has joined #ruby
banjara has quit [Client Quit]
<a1ph4g33k>
mjc_, I wish.
asobrasil has left #ruby [#ruby]
aa47f8_ has quit [Quit: aa47f8_]
<mjc_>
I'm a local, so it's a no brainer
<mjc_>
curious who else will be there
banjara has joined #ruby
jaimef has quit [Excess Flood]
banjara has quit [Client Quit]
timonv has quit [Remote host closed the connection]
kevinfagan has joined #ruby
verto has quit [Ping timeout: 268 seconds]
timonv has joined #ruby
banjara has joined #ruby
hiyosi has quit [Ping timeout: 264 seconds]
benzrf has joined #ruby
<benzrf>
hello
gcds has quit [Client Quit]
<TorpedoSkyline>
hello benzrf
<benzrf>
how does `a, b = 1, 2` work if `1, 2` by itself is not a valid expr?
<jrhorn424>
What's the idiom for inspecting the methods of an object and that objects' direct ancestor only? so `class Foo < Bar; end`, I want to see methods only from Foo and Bar.
kaspergrubbe has joined #ruby
<Hanmac>
benzrf: black magic
<benzrf>
hanmac: so it is special syntax
<TorpedoSkyline>
lol hanmac =P
gcds has joined #ruby
<benzrf>
in general, 'foo, bar' on the rhs of assignment magically becomes an array?
<Hanmac>
benzrf: it is even more funy when you have something like a,*b, c = *1..4
nemesit|znc has quit [Ping timeout: 240 seconds]
<benzrf>
god dammit
<benzrf>
why does ruby have so much magic
r0bby_ has quit [Read error: Operation timed out]
<benzrf>
at this rate im just gonna stick with my DECIDEDLY NONMAGICAL python
<jrhorn424>
benzrf: cuz it's pretty
allaire has quit []
Bira has joined #ruby
<TorpedoSkyline>
benzrf you don't have to use it you know ;P
<jrhorn424>
well, with an attitude like that... ;)
<benzrf>
i kid
<TorpedoSkyline>
it == magic aspects
<jrhorn424>
benzrf: wait, was that a dig at python? :)
<benzrf>
no
<benzrf>
but
<benzrf>
non-shitty HOFs are too nice to not have
timonv has quit [Ping timeout: 246 seconds]
<Hanmac>
just image how much magic you as a scripter can add without breaking the syntax …
<benzrf>
eh
<Hanmac>
like for sample obj.() is valid ruby ;P
<benzrf>
i feel like ruby is more messy than python
<benzrf>
but otoh python is a little too clean sometimes
kpshek has quit []
simplex_ has joined #ruby
jaimef has joined #ruby
<a1ph4g33k>
jrhorn424, you could do Foo.methods( false ) + Bar.methods( false )
harumph has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<apeiros>
see Object#method_missing and #instance_eval
<benzrf>
apeiros: ok
sergicles has quit [Quit: sergicles]
<benzrf>
regular vars are entirely separate from attrs, right?
wchun has quit [Quit: Leaving]
test___ has quit [Quit: Page closed]
Lean_ has quit [Quit: Saliendo]
<a1ph4g33k>
jrhorn424, instance_methods worked more appropriately.
<Hanmac>
benzrf: PS when you see method_missing look at its "younger" brother respond_to_missing?
nomenkun has quit [Remote host closed the connection]
nomenkun has joined #ruby
nhmood has quit [Quit: alice.]
<apeiros>
benzrf: define attrs
dEPy has quit [Ping timeout: 246 seconds]
<apeiros>
benzrf: attr_* defines new methods, which access instance variables
RaCx has quit [Quit: Computer has gone to sleep.]
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
<benzrf>
@foo
TripleDES has joined #ruby
<Hanmac>
with attr and its siblilings ruby code will get "meta" ;P
<benzrf>
i am aware of the basic workings of attr_foo
vlad_starkov has joined #ruby
<benzrf>
mostly
angusiguess has quit [Ping timeout: 245 seconds]
maurogoncalo has quit [Quit: Leaving...]
ringtiny has joined #ruby
Bira has quit [Remote host closed the connection]
Bira has joined #ruby
m4rcu5 has quit [Ping timeout: 260 seconds]
TripleDES has quit [Client Quit]
<benzrf>
bbl
benzrf has left #ruby [#ruby]
<Hanmac>
first you write code with meta functions, then you write meta functions, and later you write functions that generate meta functions … and then later you writing C macros because you can and no one did stop you
carraroj has quit [Quit: Konversation terminated!]
<Hanmac>
Apane: make a pastie of the extconf.rb script
thecopy has quit [Quit: thecopy]
ringtiny1 has quit [Ping timeout: 265 seconds]
<Apane>
hanmac, alright
nhmood has joined #ruby
m4rcu5 has joined #ruby
ccolorado has joined #ruby
cascalheira has joined #ruby
nhmood has quit [Client Quit]
nhmood has joined #ruby
breakingthings has quit []
postmodern has joined #ruby
joshu has quit [Ping timeout: 264 seconds]
TripleDES has joined #ruby
lsmola has quit [Ping timeout: 260 seconds]
simplex_ has joined #ruby
xtristan has joined #ruby
jberlinsky has joined #ruby
c0rn has joined #ruby
<banisterfiend>
hanmac and then the good people come out and haul u away
coca_rails has joined #ruby
fijimunkii has quit [Ping timeout: 245 seconds]
<xtristan>
I'm using Sinatra to create an interface to an SSH tunnel to pass commands over (iptables, tc, other QA-tools) and need to keep the SSH-master session alive. How can I keep an object from getting garbage collected after a route block is complete? Basically, I think I want to pass my SSH connection object to a global variable.
Kamuela has joined #ruby
<Kamuela>
What's the best way to learn Ruby 2.0?
kaspergrubbe has quit [Remote host closed the connection]
<apeiros>
since - as I said - uniq! can return nil
<s2013>
right
<s2013>
i did use uniq actually. just put uniq! to show i saved it
<s2013>
but i mean is there another way
<godd2>
Kamuela: There are quite a few resources for learning Ruby, and I'd recommend looking at each of them to decide. Rubymonk.com and codecademy.com are interactive language learning websites.
iamjarvo has quit [Ping timeout: 273 seconds]
<apeiros>
other than that, it looks good
<s2013>
k cool
frustrum has joined #ruby
<Hanmac>
s2013: look also at array.uniq {|x| x.foo }
<godd2>
Kamuela: as for books, there's the seminole Pickaxe book from the Pragmatic Programmers, and many other books
<s2013>
k let me try that
kaspergrubbe has quit [Ping timeout: 272 seconds]
<s2013>
hanmac, that returns the objects
<s2013>
not the values
<godd2>
Kamuela: as for video tutorials, although it costs money to watch them, I love the Lynda.com video tutorials. That's how I learned
yfeldblum has quit [Remote host closed the connection]
havenwood has joined #ruby
dma has joined #ruby
<Hanmac>
s2013: yeah, but maybe you wanted that later for something else
<catphish>
could anyone point me in the direction of how to automatically generate instance methods, i want to create something similar to attr_accessor that automatically generates a series of identical getter / setter methods
<s2013>
trying to get it looking omething similar to that
devbox_ has quit [Client Quit]
zigomir has quit [Ping timeout: 268 seconds]
<godd2>
catphish: perhaps object.instance_variable_set and object.instance_variable_get can help?
<shevy>
near89 one idea - write into a file to keep track of whether it is running or not. on exit, clean up that file
testing has joined #ruby
bw__ has joined #ruby
bw__ has quit [Client Quit]
testing has quit [Client Quit]
mansi has quit [Ping timeout: 264 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Kamuela>
shevy: in learn python the hard way, he really stresses typing the code over and over just to get used to it, and reading code over and over to get used to it
stringoO has quit [Quit: stringoO]
<near89>
shevy, that won't work... its like this
pZYchO has joined #ruby
<catphish>
i think define_method might be what i want
<Kamuela>
shevy: so i guess i'll be doing a lot of that, just wondering what the best code to "get used to" would be
<shevy>
Kamuela well, the author of that left ruby years ago. I would not recommend reading from him
<s2013>
<< would work except if the key has no value
<near89>
I need several programs to ask my 1 program about users and passwords
pZYchO has quit [Client Quit]
<near89>
this program of mine MUST ask for the password to another service in order
<lnormous>
s2013: So like hanmac said, you can just do hash["key"] += []
failshel_ has joined #ruby
<lnormous>
Just make sure it's already a 2d array
<near89>
if it messes up and ends up writing an old token as a new one, it will stop to work
<s2013>
yeah but if the key doesnt exist it throws an error
<s2013>
maybe cause rails is displaying them in sorted order or somehting. oh well
allaire has quit []
sailias has quit [Quit: Leaving.]
sailias1 has joined #ruby
sailias1 is now known as sailias
Bosox20051 has quit [Ping timeout: 246 seconds]
fschuindt has joined #ruby
<xtristan>
s2013: bigger question: why do you care about display order on a hash?
ReachingFarr has quit [Quit: ReachingFarr]
<xtristan>
sort on presentation to whatever criteria you want
<s2013>
so im doing a dropdown select
ReachingFarr has joined #ruby
<s2013>
and its using hash as the menu
Bosox20051 has joined #ruby
<nhmood>
I've seen the following ($:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])) in various ruby gems for adding the lib directory to the load path, but can anyone suggest where it should be added?
<s2013>
so we need to show something as the first group if that makes sense
MrZYX is now known as MrZYX|off
yfeldblum has quit [Remote host closed the connection]
<xtristan>
first group where alphabetical?
<s2013>
no not alphabetical
<s2013>
the label is "master"
<s2013>
ill ask int eh rails channel. thanks
Bira has joined #ruby
nwertman_ has joined #ruby
<nhmood>
I think that the $:.unshift is behaving badly with the spec.require_paths of my gemspec
<Hanmac>
nhmood: it was used to get sripts working for 1.8 and 1.9+ but 1.8 is long dead
catphish has left #ruby ["Leaving"]
kitak has joined #ruby
wildroman2 has joined #ruby
sailias has quit [Ping timeout: 260 seconds]
Apane has joined #ruby
<nhmood>
Oh I see, thanks for the info
tomzx_mac has joined #ruby
<Hanmac>
nhmood: you should use require_relative which is much more safe
joelteon has joined #ruby
<joelteon>
if I run irb somefile.rb how do I make irb not exit after evaluating somefile.rb?
<nhmood>
require_relative is relative from the calling file?
<banisterfiend>
joelteon use irb -r instead
mrsolo has joined #ruby
<nhmood>
So then my lib/myapp.rb requires would all be the same but replace require with require_relative
<nhmood>
aka instead of require myapp/command --> require_relative myapp/command
<joelteon>
oh thanks banisterfiend
joelteon has left #ruby ["bye"]
yfeldblum has joined #ruby
whunt has quit [Quit: Computer has gone to sleep.]
nhhagen has quit [Remote host closed the connection]
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Bira has quit [Remote host closed the connection]
whunt has joined #ruby
freerobby has quit [Quit: Leaving.]
jonathanwallace has quit [Ping timeout: 272 seconds]
ner0x has joined #ruby
hiyosi has joined #ruby
Monie has quit [Ping timeout: 265 seconds]
justsee has quit [Ping timeout: 245 seconds]
Seich_ has joined #ruby
wildroman2 has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
mary5030 has quit [Read error: Operation timed out]
joelteon has joined #ruby
mansi has joined #ruby
<joelteon>
can I prevent popen from printing the result of the invocation?
mansi has quit [Remote host closed the connection]
yojimbo is now known as yojimbo_
mansi has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
xtristan has quit [Remote host closed the connection]
mikesplain has quit [Ping timeout: 240 seconds]
<joelteon>
more specifically, i'm trying to write to and read from "osascript"
<joelteon>
if I popen it as "r+", write to it, then read from it, the read call blocks
randomdrake has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<joelteon>
that doesn't work either, I must be doing something wrong
<RedNifre>
I'm a ruby beginner and so far I got the impression that many things that look like syntactic sugar at first turn out to be implemented in ruby itself. So now I wonder if I can write something like an "if" statement like syntax myself, I mean something that takes two blocks easily.
<RedNifre>
the use case is a network call that needs to run async because it takes so long and whether or not it succeeded, two different pieces of code should do something with the result.
timonv has quit [Ping timeout: 240 seconds]
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
<RedNifre>
that's fantastic and seems to be exactly what I need :) Thank you very much.
vlad_starkov has quit [Remote host closed the connection]
fuzzyhorns has left #ruby [#ruby]
<banisterfiend>
RedNifre bare in mind i wrote that a few years ago, so i don't necessarily like/condone any of the code in it ;)
lmickh has quit [Ping timeout: 245 seconds]
<RedNifre>
I'm not sure if I'm ready for that type of code yet, but is {} always syntactic sugar for a proc object and you added an "else" method to Proc?
<banisterfiend>
hanmac cool!
<banisterfiend>
RedNifre no
<banisterfiend>
RedNifre i didn't do that ;) a_method { } doesn't return a Proc, it returns whatever a_method returns
<banisterfiend>
in my case it returned some kind of CustomBoolean object
sailias has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Remote host closed the connection]
<RedNifre>
oh, I was confused about the order, I thought that .else puts another Proc into the first one and the first one goes into a_method and if a_method calls the single proc with false, the proc yields the other proc or something...
BLUE_FIN_TUNA has joined #ruby
<RedNifre>
Anyway, so the "if" syntax of having a block end with "else" which also starts a new, separate block that ends with "end" is a special case that can't be implemented directly?
drag00n has joined #ruby
<RedNifre>
but maybe I'm thinking in the wrong direction altogether, what's the "ruby" way of doing "I want to fetch something big from the net, if I get it I want to do this code, if it fails I want to do this other code"?
<banisterfiend>
RedNifre promises?
<banisterfiend>
though promises aren't used much in ruby
nateberkopec has quit [Quit: Leaving...]
<banisterfiend>
>> ruby -v
<eval-in>
banisterfiend => undefined local variable or method `v' for main:Object (NameError) ... (https://eval.in/60687)
djbender has joined #ruby
<RedNifre>
Haven't heard of it, will google it, in the mean time this is the pseudocode I have in my head at the moment, what is the closest valid ruby to this?: https://gist.github.com/anonymous/7328407
mansi has quit [Remote host closed the connection]
failshell has joined #ruby
failshell has quit [Remote host closed the connection]
dEPy has joined #ruby
<ravster>
hey all. I have a module that has a function. This module is included in a class. Is there a way for me to have the class have a function of the same name and call the module's function, but with an optional argument? So that a call to Class.new.foo will call Module.foo(type: :json)
djbender has left #ruby [#ruby]
indigo has quit [Ping timeout: 272 seconds]
coca_rails has joined #ruby
coca_rails has quit [Read error: Connection reset by peer]
sailias has joined #ruby
Bira has quit [Remote host closed the connection]
coca_rails has joined #ruby
Bira has joined #ruby
s2013 has quit [Ping timeout: 240 seconds]
dEPy has quit [Ping timeout: 245 seconds]
<RedNifre>
I found a "Programming Ruby 1.9" book, how outdated is it? Should I read it? :)