apeiros changed the topic of #ruby to: Ruby 2.1.1; 2.0.0-p451; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
ephemerian has quit [Quit: Leaving.]
yfeldblum has quit [Ping timeout: 240 seconds]
predator217 has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
klaut has quit [Remote host closed the connection]
chipotle has joined #ruby
WanderingGlitch has quit [Quit: Glitch out]
erikruthven has quit [Quit: Textual IRC Client: www.textualapp.com]
WanderingGlitch has joined #ruby
predator117 has joined #ruby
eka has joined #ruby
thumpba has quit [Remote host closed the connection]
thumpba has joined #ruby
centrx has joined #ruby
marcdel has quit [Read error: Connection reset by peer]
kobain has quit [Ping timeout: 240 seconds]
thumpba_ has joined #ruby
testcore has quit [Quit: Killed (alexs (Requested by panasync))]
markisonfire has quit [Ping timeout: 240 seconds]
eynj has joined #ruby
thumpba has quit [Ping timeout: 240 seconds]
markisonfire has joined #ruby
jenrzzz has joined #ruby
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Guedes0 has joined #ruby
jjbohn has joined #ruby
jorts has quit [Quit: jorts]
rm_ has quit [Disconnected by services]
rm__ has joined #ruby
marcdel has joined #ruby
davispuh has joined #ruby
<bricker> need chef help, sorry, chef channel is dead. I installed the mysql::server recipe earlier, but now some configuration has changed. How do I force-reinstall it?
lolmaus has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
binaryhat has joined #ruby
<centrx> bricker, Try reading this man page: http://git-man-page-generator.lokaltog.net/
Melpaws has joined #ruby
andy___ has joined #ruby
<benzrf> yo how much traffic do u think heroku's free level of hosting could serve
<bricker> centrx: har har har
<benzrf> centrx: welcome
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andy__ has quit [Ping timeout: 240 seconds]
marcdel has quit [Read error: Connection reset by peer]
andy___ has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
davispuh has quit [Remote host closed the connection]
rm-rf-etc has quit [Quit: Page closed]
chrisseaton has quit []
sdouglas has joined #ruby
kitak_ has quit [Remote host closed the connection]
andy__ has joined #ruby
fabrice31 has joined #ruby
lolmaus has quit [Ping timeout: 252 seconds]
jjbohn has quit [Quit: Leaving...]
nari has joined #ruby
marcdel has joined #ruby
nanoyak_ has quit [Quit: Computer has gone to sleep.]
marcdel has quit [Read error: Connection reset by peer]
yubrew has joined #ruby
marcdel has joined #ruby
Bumptious has joined #ruby
<shevy> dumdedum
meatherly has joined #ruby
Bumptious has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Bumptious has joined #ruby
s3ri0us has quit [Remote host closed the connection]
ascarter has quit [Ping timeout: 252 seconds]
<zorak> somebody can help me with this code?
x77686d has joined #ruby
<zorak> ruby -w methinks_meta.rb methinks_meta.rb:86: warning: shadowing outer local variable - params
<zorak> methinks_meta.rb:39:in `mutate_mutations!': undefined method `update_params_by_number_of_mutations!' for #<Meta_Mutator:0xa091370 @params_by_number_of_mutations={}> (NoMethodError)
<zorak> from methinks_meta.rb:106:in `<main>'
b1nd has quit [Ping timeout: 252 seconds]
jackyalcine is now known as jacky
<zorak> id how to solve the "shadowing" problem
<Radar> zorak: Yes, because you don't have that method defined.
teddyp1cker has joined #ruby
<Radar> zorak: Your method is actually called upgrade_params_by_number_of_mutations
<Radar> with a !
<zorak> in 83?
yubrew has quit [Ping timeout: 276 seconds]
<zorak> there is a !
Kuda has joined #ruby
<Radar> zorak: You're not paying attention.
<Radar> zorak: The error is that you don't have an UPDATE_params_by... method
<Radar> You have an UPGRADE_params_by... method
marcdel has quit [Ping timeout: 276 seconds]
aspires has joined #ruby
<shevy> zorak easiest way to fix shadowing - simply assign the variable another name
mr_red has quit [Ping timeout: 240 seconds]
<zorak> ahh
<zorak> Radar: thank you
virtualize has quit []
sethen has joined #ruby
fella5s has quit [Read error: Connection reset by peer]
Bumptious has quit [Ping timeout: 264 seconds]
aspires has quit [Read error: Connection reset by peer]
aspires has joined #ruby
oo_ has quit [Remote host closed the connection]
teddyp1cker has quit [Ping timeout: 252 seconds]
atmosx has quit [Ping timeout: 272 seconds]
zz_karupanerura is now known as karupanerura
marcdel has joined #ruby
atmosx has joined #ruby
Hanmac1 has quit [Ping timeout: 276 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
rjk808 has quit []
spyderman4g63 has joined #ruby
binaryhat has quit [Quit: Leaving]
iliketurtles has quit [Quit: zzzzz…..]
<shevy> pew pew pew
hakunin has joined #ruby
<shevy> LASER ATTACK
Voodoofish430 has quit [Ping timeout: 265 seconds]
mr_red has joined #ruby
Voodoofish430 has joined #ruby
jorts has joined #ruby
aspiers has joined #ruby
SatansDeer has joined #ruby
jamto11 has quit [Remote host closed the connection]
mrmargolis has joined #ruby
virtualize has joined #ruby
combusean has quit [Ping timeout: 240 seconds]
spyderman4g63 has quit [Ping timeout: 252 seconds]
doodlehaus has joined #ruby
derek_c has quit [Ping timeout: 252 seconds]
Kricir has joined #ruby
toastynerd has joined #ruby
SCommette has joined #ruby
xiella has joined #ruby
hiall has quit [Quit: hiall]
SatansDeer has quit [Ping timeout: 240 seconds]
<shevy> is there any way to mute warnings on a per-file basis?
tjr9898 has joined #ruby
Hanmac has joined #ruby
Kricir has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
mg^^ has joined #ruby
toastynerd has quit [Remote host closed the connection]
b1nd has joined #ruby
momomomomo has joined #ruby
SilkFox has quit [Ping timeout: 252 seconds]
parduse has joined #ruby
mg^ has quit [Ping timeout: 240 seconds]
kinginky has quit [Ping timeout: 240 seconds]
evenix has joined #ruby
kitak has joined #ruby
horrorvacui has quit [Remote host closed the connection]
matcouto has joined #ruby
zcreative has joined #ruby
razrunelord has quit []
matcouto has quit [Client Quit]
Bumptious has joined #ruby
tjr9898_ has joined #ruby
Fretta has quit [Quit: Fretta]
zcreative has quit [Client Quit]
nari has quit [Ping timeout: 240 seconds]
derek_c has joined #ruby
SatansDeer has joined #ruby
browndawg has joined #ruby
subbyyy_ has quit [Ping timeout: 240 seconds]
SidWu has joined #ruby
SidWu has quit [Max SendQ exceeded]
twiceaday has quit [Ping timeout: 240 seconds]
Hanmac1 has joined #ruby
pontiki has joined #ruby
twiceaday has joined #ruby
jason__ has joined #ruby
iamjarvo has joined #ruby
marcdel has quit [Ping timeout: 276 seconds]
SilkFox has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
jason__ has quit [Remote host closed the connection]
zcreative has joined #ruby
mikecmpbll has quit [Quit: ciao.]
derek_c has quit [Ping timeout: 240 seconds]
Martxel has quit [Quit: Leaving]
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marcdel has joined #ruby
danijoo has joined #ruby
x77686d has quit [Quit: x77686d]
tkuchiki has joined #ruby
kinginky has joined #ruby
evenix has quit [Remote host closed the connection]
jxf has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
thirdender has joined #ruby
thirdender has left #ruby ["JOIN #python"]
sdouglas has quit [Remote host closed the connection]
marcdel has quit [Read error: Connection reset by peer]
markisonfire has quit [Quit: markisonfire]
danijoo has quit [Ping timeout: 252 seconds]
phutchin1 has joined #ruby
fsdldl has joined #ruby
jorts has quit [Quit: jorts]
amclain has joined #ruby
freggles has quit [Remote host closed the connection]
sdouglas_ has joined #ruby
felixjet_ has joined #ruby
Xiti` has joined #ruby
weirdpercent has joined #ruby
naw_ has joined #ruby
aspires has quit []
Davey is now known as Eomar
jmeeuwen_ has joined #ruby
toastynerd has joined #ruby
jlebrech has quit [Ping timeout: 246 seconds]
marcdel has joined #ruby
phutchins has quit [Ping timeout: 276 seconds]
frode15243_ has joined #ruby
cbetta_ has joined #ruby
charles81_ has joined #ruby
dioms_ has joined #ruby
jeffreybaird_ has joined #ruby
antonishen_ has joined #ruby
mrgoodcat_ has joined #ruby
pipework_ has joined #ruby
jlebrech has joined #ruby
supershabam_ has joined #ruby
mattyohe_ has joined #ruby
<weirdpercent> Anyone used the commander gem before?
Su7_ has joined #ruby
zrl_ has joined #ruby
maZtah_ has joined #ruby
RohanRNS_ has joined #ruby
doodlehaus has quit [Remote host closed the connection]
jenskarlsen_ has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
aspires has joined #ruby
yubrew has joined #ruby
bpgoldsb|too has joined #ruby
azkah1 has joined #ruby
danijoo has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
mpajor_o15 has joined #ruby
sdouglas_ has quit [Ping timeout: 250 seconds]
eythoriu1 has joined #ruby
nwkr has joined #ruby
michael_imac has joined #ruby
gogiel_ has joined #ruby
AndyWojo_ has joined #ruby
Anarch_ has joined #ruby
cHarNe2_ has joined #ruby
brandon_1 has joined #ruby
matti_ has joined #ruby
mrgoodcat has quit [Disconnected by services]
mrgoodcat_ is now known as mrgoodcat
parus_ has joined #ruby
snickers_ has joined #ruby
bubbajoness has joined #ruby
n88_ has joined #ruby
hackeron_ has joined #ruby
error404_ has joined #ruby
pavelz_ has joined #ruby
Sp4rKy_ has joined #ruby
Muz_ has joined #ruby
the_ment- has joined #ruby
prdx_ has joined #ruby
the_mentat has quit [Ping timeout: 265 seconds]
rmill has quit [Ping timeout: 265 seconds]
Jelco has quit [Ping timeout: 265 seconds]
Guest32866 has quit [Ping timeout: 265 seconds]
maxmanders has quit [Ping timeout: 265 seconds]
dhruvasagar has quit [Ping timeout: 265 seconds]
JaTochNietDan has quit [Ping timeout: 265 seconds]
frode15243 has quit [Ping timeout: 265 seconds]
charles81 has quit [Ping timeout: 265 seconds]
PaulePan1er has joined #ruby
the_ment- is now known as the_mentat
michael_mbp has quit [Ping timeout: 265 seconds]
Norrin has quit [Ping timeout: 265 seconds]
blackjid has quit [Ping timeout: 265 seconds]
peckerman has quit [Ping timeout: 265 seconds]
supershabam has quit [Ping timeout: 265 seconds]
RohanRNS has quit [Ping timeout: 265 seconds]
maZtah has quit [Ping timeout: 265 seconds]
zrl has quit [Ping timeout: 265 seconds]
dioms has quit [Ping timeout: 265 seconds]
brandon has quit [Ping timeout: 265 seconds]
gogiel has quit [Ping timeout: 265 seconds]
mpajor_op5 has quit [Ping timeout: 265 seconds]
psmolen has quit [Ping timeout: 265 seconds]
Hyeon has quit [Ping timeout: 265 seconds]
LetErikTry has quit [Ping timeout: 265 seconds]
matti has quit [Ping timeout: 265 seconds]
zastern has quit [Ping timeout: 265 seconds]
Anarch has quit [Ping timeout: 265 seconds]
cHarNe2 has quit [Ping timeout: 265 seconds]
AndyWojo has quit [Ping timeout: 265 seconds]
naw has quit [Ping timeout: 265 seconds]
anshin has quit [Ping timeout: 265 seconds]
azkah has quit [Ping timeout: 265 seconds]
Nowaker has quit [Ping timeout: 265 seconds]
finges has quit [Ping timeout: 265 seconds]
jeffreybaird has quit [Ping timeout: 265 seconds]
pipework has quit [Ping timeout: 265 seconds]
cbetta has quit [Ping timeout: 265 seconds]
v0n has quit [Ping timeout: 265 seconds]
dideler|work has quit [Ping timeout: 265 seconds]
jenskarlsen has quit [Ping timeout: 265 seconds]
eythorium has quit [Ping timeout: 265 seconds]
Kilo`byte has quit [Ping timeout: 265 seconds]
Muz has quit [Ping timeout: 265 seconds]
hackeron has quit [Ping timeout: 265 seconds]
machuga has quit [Ping timeout: 265 seconds]
ezrios has quit [Ping timeout: 265 seconds]
thelamest has quit [Ping timeout: 265 seconds]
lessless has quit [Ping timeout: 265 seconds]
billiam_ has quit [Ping timeout: 265 seconds]
kies has quit [Ping timeout: 265 seconds]
Sp4rKy has quit [Ping timeout: 265 seconds]
njs126 has quit [Ping timeout: 265 seconds]
Koshian has quit [Ping timeout: 265 seconds]
SegFaultAX has quit [Ping timeout: 265 seconds]
Su7 has quit [Ping timeout: 265 seconds]
antonishen has quit [Ping timeout: 265 seconds]
bubbajones has quit [Ping timeout: 265 seconds]
Xiti has quit [Ping timeout: 265 seconds]
felixjet has quit [Ping timeout: 265 seconds]
jle` has quit [Ping timeout: 265 seconds]
parus has quit [Ping timeout: 265 seconds]
bpgoldsb has quit [Ping timeout: 265 seconds]
prdx has quit [Ping timeout: 265 seconds]
error404 has quit [Ping timeout: 265 seconds]
pavelz has quit [Ping timeout: 265 seconds]
n88 has quit [Ping timeout: 265 seconds]
PaulePanter has quit [Ping timeout: 265 seconds]
DylanJ has quit [Ping timeout: 265 seconds]
mattyohe has quit [Ping timeout: 265 seconds]
snickers has quit [Ping timeout: 265 seconds]
Veejay has quit [Ping timeout: 265 seconds]
zarul has quit [Ping timeout: 265 seconds]
jmeeuwen has quit [Ping timeout: 265 seconds]
flughafen has quit [Ping timeout: 265 seconds]
jenskarlsen_ is now known as jenskarlsen
adam_ has joined #ruby
jmeeuwen_ is now known as jmeeuwen
frode15243_ is now known as frode15243
billiam_ has joined #ruby
matti_ is now known as matti
peckerman has joined #ruby
rmill has joined #ruby
cbetta_ is now known as cbetta
maxmanders has joined #ruby
dhruvasagar has joined #ruby
ezrios has joined #ruby
Koshian has joined #ruby
jle` has joined #ruby
thelamest has joined #ruby
LetErikTry has joined #ruby
supershabam_ is now known as supershabam
Hyeon has joined #ruby
v0n has joined #ruby
lessless has joined #ruby
zrl_ is now known as zrl
pipework_ is now known as pipework
machuga has joined #ruby
jeffreybaird_ is now known as jeffreybaird
evenix has joined #ruby
SegFaultAX has joined #ruby
mattyohe_ is now known as mattyohe
pipework is now known as Guest43594
zastern has joined #ruby
finges has joined #ruby
jason__ has joined #ruby
antonishen_ is now known as antonishen
anshin has joined #ruby
skulker has quit [Remote host closed the connection]
phutchin1 has quit [Remote host closed the connection]
Kilo`byte has joined #ruby
Veejay has joined #ruby
JaTochNietDan has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
GodPuppet has quit [Remote host closed the connection]
DylanJ` has joined #ruby
_blackjid has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
maZtah_ is now known as maZtah
RohanRNS_ is now known as RohanRNS
danijoo has quit [Ping timeout: 252 seconds]
zarul[afk] has joined #ruby
Jelco has joined #ruby
Jelco has joined #ruby
Jelco has quit [Changing host]
flughafe1 has joined #ruby
afex has quit [Ping timeout: 252 seconds]
psmolen has joined #ruby
dideler|work has joined #ruby
njs126 has joined #ruby
kies has joined #ruby
kies has quit [Changing host]
kies has joined #ruby
RubyPanther has quit [Ping timeout: 255 seconds]
kies has quit [Client Quit]
evenix has quit [Remote host closed the connection]
makara has quit [Excess Flood]
Bumptious has quit [Read error: Connection reset by peer]
frem has quit [Quit: Connection closed for inactivity]
Melpaws has quit [Quit: Leaving.]
makara has joined #ruby
freerobby has joined #ruby
dblessing has joined #ruby
jorts has joined #ruby
frostbite72 has joined #ruby
marcdel has quit [Ping timeout: 240 seconds]
AlexRussia has quit [Ping timeout: 250 seconds]
RubyPanther has joined #ruby
iliketurtles has joined #ruby
jason__ has quit [Ping timeout: 252 seconds]
greenride has left #ruby [#ruby]
predator117 has quit [Ping timeout: 250 seconds]
shack has joined #ruby
hinv has joined #ruby
tvw has quit [Ping timeout: 240 seconds]
SyllaBear has joined #ruby
weirdpercent has quit [Quit: Leaving]
SyllaBear has left #ruby [#ruby]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toretore has quit [Quit: This computer has gone to sleep]
BearBot has joined #ruby
kassado has joined #ruby
jorts has quit [Client Quit]
marcdel has joined #ruby
BearBot has quit [Client Quit]
Bumptious has joined #ruby
Norrin has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
kassado has left #ruby [#ruby]
iliketurtles has quit [Client Quit]
pwh has quit []
jenrzzz has quit [Quit: I haven't slept for ten days, 'cause that would be too long.]
Hobogrammer has quit [Ping timeout: 240 seconds]
Terminus- has joined #ruby
combusean has joined #ruby
sdouglas has joined #ruby
RowdyChildren is now known as RowdyChild|Away
sambao21 has quit [Quit: Computer has gone to sleep.]
maletor has joined #ruby
eynj has quit [Ping timeout: 252 seconds]
predator117 has joined #ruby
pu22l3r has joined #ruby
freezey has joined #ruby
michael_lee has joined #ruby
freerobby has quit [Quit: Leaving.]
skulker has joined #ruby
nari has joined #ruby
freerobby has joined #ruby
derek_c has joined #ruby
kukyakya has joined #ruby
phoo1234567 has quit [Remote host closed the connection]
Kricir has joined #ruby
Celm has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
freerobby has quit [Client Quit]
freerobby has joined #ruby
freerobby has quit [Client Quit]
brunops has joined #ruby
maximski has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
yfeldblum has quit [Ping timeout: 276 seconds]
narcan has joined #ruby
gilcosson has joined #ruby
Kricir has quit [Ping timeout: 276 seconds]
gilcosson has quit [Read error: Connection reset by peer]
gilcosson has joined #ruby
matcouto has joined #ruby
[ROOT]XxNeoLiTHi has joined #ruby
derek_c has quit [Ping timeout: 252 seconds]
marcdel has quit [Ping timeout: 276 seconds]
postmodern has quit [Quit: Leaving]
thomasxie has joined #ruby
funburn has joined #ruby
<[ROOT]XxNeoLiTHi> hi all, im trying to inline include a ruby file into the current block as if the code were already part of the block, however when I use load its having scoping issues with the variables. Ive seen another example online where they do a eval(IO.read(file),binding) to do something close to what I want. Is the eval the best way to do this?
bricker`LA has joined #ruby
yfeldblum has joined #ruby
postmodern has joined #ruby
marcdel has joined #ruby
<wallerdev> binding.eval
wallerdev has quit [Quit: wallerdev]
iliketurtles has joined #ruby
hinv has left #ruby ["Leaving"]
microdex2 has joined #ruby
blackavr has quit [Ping timeout: 240 seconds]
<microdex2> Any one know what might cause this: https://gist.github.com/anonymous/10336153
<microdex2> `<module:NumberHelper>': uninitialized constant ActiveSupport::Autoload (NameError)
<shack> do you guys know about rubycoin?
jason_ has joined #ruby
x77686d has joined #ruby
Hanmac has joined #ruby
pontiki has quit [Read error: Connection reset by peer]
marcdel has quit [Ping timeout: 240 seconds]
pontiki has joined #ruby
maximski has quit []
Hanmac1 has quit [Ping timeout: 252 seconds]
reset has quit [Ping timeout: 246 seconds]
x77686d has quit [Client Quit]
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
SCommette has quit [Quit: SCommette]
nso95 has quit [Quit: nso95]
jenrzzz has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
freezey has quit [Remote host closed the connection]
iliketurtles has joined #ruby
Melpaws has joined #ruby
narcan has joined #ruby
Melpaws has quit [Client Quit]
momomomomo has quit [Quit: momomomomo]
derek_c has joined #ruby
fabrice31 has joined #ruby
iliketurtles has quit [Ping timeout: 276 seconds]
radic has quit [Ping timeout: 240 seconds]
tjr9898_ has joined #ruby
SilkFox has quit [Ping timeout: 252 seconds]
yubrew has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
marcdel has joined #ruby
yfeldblum has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
jorts has joined #ruby
radic has joined #ruby
Shidash has joined #ruby
descala has quit [Ping timeout: 252 seconds]
mercwithamouth has quit [Ping timeout: 252 seconds]
fabrice31 has quit [Ping timeout: 252 seconds]
descala has joined #ruby
chipotle has joined #ruby
chipotle has quit [Excess Flood]
yubrew has quit [Ping timeout: 240 seconds]
cashnguns has quit [Ping timeout: 252 seconds]
chipotle has joined #ruby
chipotle has quit [Excess Flood]
chipotle has joined #ruby
chipotle has quit [Excess Flood]
chipotle has joined #ruby
chipotle has quit [Excess Flood]
zcreative has quit [Quit: Computer has gone to sleep.]
supermarin_ has joined #ruby
chipotle has joined #ruby
chipotle has quit [Excess Flood]
tjr9898 has quit [Remote host closed the connection]
_justin has joined #ruby
Senjai has quit [Quit: WeeChat 0.3.7]
tjr9898 has joined #ruby
chipotle has joined #ruby
chipotle has quit [Excess Flood]
chipotle has joined #ruby
chipotle has quit [Excess Flood]
aspires has quit []
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kukyakya has quit [Remote host closed the connection]
fgo has joined #ruby
jjbohn has joined #ruby
dseitz has joined #ruby
arubin has joined #ruby
wallerdev has joined #ruby
magic_ has joined #ruby
slawrence00 has joined #ruby
arubin has quit [Client Quit]
ner0x has quit [Remote host closed the connection]
zcreative has joined #ruby
luriv has quit [Ping timeout: 240 seconds]
jjbohn has quit [Ping timeout: 276 seconds]
teddyp1cker has joined #ruby
shack has left #ruby [#ruby]
MatthewsFace has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
kerin has joined #ruby
<kerin> Gents, the PG adapter seems to be returning my integer records as strings - is there a way to fix that?
arubin has joined #ruby
<centrx> kerin, Are you using the enum data type?
<kerin> nope, it's an integer
mrmargolis has quit [Remote host closed the connection]
agarie has quit [Remote host closed the connection]
andy__ has quit [Read error: Connection reset by peer]
dblessing has quit [Quit: dblessing]
teddyp1cker has quit [Ping timeout: 276 seconds]
andy__ has joined #ruby
Fire-Dragon-DoL has joined #ruby
Aquilo has joined #ruby
charliesome has joined #ruby
<kerin> centrx^ ;)
Guest43594 is now known as pipework
pipework has quit [Changing host]
pipework has joined #ruby
pipework has joined #ruby
freezey has joined #ruby
spyderman4g63 has joined #ruby
[ROOT]XxNeoLiTHi has left #ruby [#ruby]
<centrx> It doesn't look like you have any code? That might be the problem
Hanmac1 has joined #ruby
glide has quit [Ping timeout: 252 seconds]
oo_ has quit [Remote host closed the connection]
rezzack has quit [Ping timeout: 250 seconds]
jamto11 has joined #ruby
maletor has joined #ruby
senayar_ has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
kitak_ has joined #ruby
kitak has quit [Ping timeout: 240 seconds]
supermarin_ has quit [Quit: Computer has gone to sleep.]
pu22l3r has quit [Remote host closed the connection]
spyderman4g63 has quit [Ping timeout: 250 seconds]
supermarin_ has joined #ruby
krz has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
SilkFox has joined #ruby
freezey has quit [Remote host closed the connection]
freezey has joined #ruby
Es0teric has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<centrx> kerin, Isn't the string just "1"?
<kerin> 1 or 0
freezey has quit [Remote host closed the connection]
<centrx> I think PG is expected to return a string data type there
<kerin> i also altered the query to pull from a serial column just for grins, same deal
jamto11 has quit [Ping timeout: 252 seconds]
supermarin__ has joined #ruby
Kricir has joined #ruby
Celm has joined #ruby
<kerin> and count() isn't a string, that's absurd
benzrf has left #ruby [#ruby]
pontiki has quit [Read error: Connection reset by peer]
freezey has joined #ruby
pontiki has joined #ruby
hedgehog has joined #ruby
Melpaws has joined #ruby
glide has joined #ruby
supermarin_ has quit [Ping timeout: 276 seconds]
supermarin__ has quit [Client Quit]
chipotle has quit [Quit: cya]
supermarin__ has joined #ruby
jorts has quit [Quit: jorts]
cashnguns has joined #ruby
freezey has quit [Remote host closed the connection]
Celm has quit [Ping timeout: 240 seconds]
Kricir has quit [Ping timeout: 250 seconds]
zachallett has joined #ruby
Cache_Money has joined #ruby
habanany has joined #ruby
supermarin__ has quit [Ping timeout: 252 seconds]
hfp`away is now known as hfp
sdouglas has quit [Remote host closed the connection]
pen has joined #ruby
postmodern has quit [Quit: Leaving]
sambao21 has joined #ruby
tjr9898 has quit []
fwchld has joined #ruby
<fwchld> hey y'aaaal
iliketurtles has joined #ruby
<zorak> i dont get the Koans tutorial
<fwchld> koans are not meant to be got
<zorak> can pass the second one
<fwchld> they're intended to make your brain sxplode
habanany has quit [Ping timeout: 240 seconds]
<fwchld> grasshopper
leftylink has joined #ruby
leftylink has left #ruby [#ruby]
<fwchld> anyone w/ experience using ocra?
sambao21 has quit [Read error: Connection reset by peer]
rtlong has joined #ruby
wallerdev has quit [Quit: wallerdev]
deens has joined #ruby
habanany has joined #ruby
sambao21 has joined #ruby
jason_ has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
\arrbum has quit [Quit: Quit]
omegahm has quit [Quit: Killed by a giraffe]
skulker has quit []
braincrash has quit [Quit: bye bye]
brunops has quit [Ping timeout: 250 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
deens has quit [Ping timeout: 276 seconds]
meatherl_ has joined #ruby
Doppp has joined #ruby
yfeldblum has joined #ruby
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jason_ has joined #ruby
deens has joined #ruby
braincrash has joined #ruby
yubrew has joined #ruby
meatherly has quit [Ping timeout: 276 seconds]
AlexRussia has joined #ruby
skulker has joined #ruby
skulker has quit [Client Quit]
snuffeluffegus has quit [Quit: Leaving]
lethjakman has quit [Ping timeout: 240 seconds]
not_satoshi_137 has joined #ruby
jason_ has quit [Remote host closed the connection]
Es0teric has joined #ruby
supermarin__ has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
shevy has quit [Ping timeout: 255 seconds]
jacky has quit [Excess Flood]
baroquebobcat has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
zachallett has quit []
blackavr has joined #ruby
zachallett has joined #ruby
snuffeluffegus has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
SCommette has joined #ruby
cashnguns has quit [Ping timeout: 250 seconds]
\marrub has joined #ruby
yacks has joined #ruby
habanany has quit [Quit: Leaving.]
MatthewsFace has joined #ruby
habanany1 has joined #ruby
postmodern has joined #ruby
_justin has quit [Quit: _justin]
saarinen has joined #ruby
iliketurtles has quit [Ping timeout: 240 seconds]
shevy has joined #ruby
SilkFox has quit [Ping timeout: 240 seconds]
Hobogrammer has joined #ruby
awukelelexi has joined #ruby
Shidash1 has joined #ruby
Shidash has quit [Ping timeout: 240 seconds]
coderhs has quit [Ping timeout: 250 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
Kuda has quit [Quit: Byebye!]
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
pwh has joined #ruby
gilcosson has quit []
northfurr has joined #ruby
northfurr has quit [Client Quit]
kolvos has joined #ruby
spicerack has joined #ruby
psyprus has quit [Read error: Connection reset by peer]
jlast has quit [Remote host closed the connection]
ascarter has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lewix has quit [Remote host closed the connection]
QKO has quit [Ping timeout: 264 seconds]
psyprus has joined #ruby
charliesome has joined #ruby
northfurr has joined #ruby
northfurr has left #ruby [#ruby]
northfurr has joined #ruby
northfurr has quit [Changing host]
northfurr has joined #ruby
northfurr has left #ruby [#ruby]
Lewix has joined #ruby
northfurr has joined #ruby
kolvos has quit [K-Lined]
_justin has joined #ruby
fgo has quit [Remote host closed the connection]
senayar has joined #ruby
Kricir has joined #ruby
brunops has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
michaeldeol has joined #ruby
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
saarinen has quit [Read error: Connection reset by peer]
senayar has quit [Ping timeout: 252 seconds]
saarinen has joined #ruby
Kricir has quit [Ping timeout: 276 seconds]
subbyyy_ has joined #ruby
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
michaeldeol has quit [Client Quit]
snuffeluffegus has quit [Quit: Leaving]
<hfp> zorak: I went through all the koans and found it interesting
glanzi has quit [Remote host closed the connection]
karmatr0n has joined #ruby
Bumptious has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hfp> zorak: They show you Ruby's specificities. It's not possible to remember them all when doing the Koans early on in your Ruby path but I still found it valuable because when I have odd errors then I remember my koans and have a better idea about what might be breaking my code.
omegahm has joined #ruby
jackyalcine has joined #ruby
sski has quit [Remote host closed the connection]
sski has joined #ruby
<hfp> zorak: However, they are easier to do with the .rb files on your shell rather than on Heroku. By doing it using your shell you get the error output to help you figure out what the answer is.
tjr9898 has joined #ruby
lethjakman has joined #ruby
sski has quit [Remote host closed the connection]
sski has joined #ruby
meatherly has joined #ruby
meatherl_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
fabrice31 has joined #ruby
thoraxe has quit [Ping timeout: 240 seconds]
SCommette has quit [Quit: SCommette]
<zorak> thanks hfp, i was stuck in the second part, but now i understand the process and im fine
SirFunk has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby
SCommette has joined #ruby
SCommette has quit [Client Quit]
lxsameer has joined #ruby
<hfp> zorak: np. If you need the answers (spoiler alert!): https://github.com/Coaxial/ruby-koans
<combusean> - salt_cmd = "salt -L '#{key}' cmd.retcode 'export HOME=#{@home}; #{cmd} >> #{@local_log}'"
<combusean> - unless redirect
<combusean> + salt_cmd = redirect ? "salt -L '#{key}' cmd.retcode 'export HOME=#{@home}; #{cmd} >> #{@local_log}'" : "salt '#{key}' cmd.run '#{cmd}'"
<combusean> - salt_cmd = "salt '#{key}' cmd.run '#{cmd}'"
<combusean> - end
<combusean> this refactor works, right?
robustus has quit [Ping timeout: 252 seconds]
<combusean> redirect is defaulted to true in the method
<hfp> combusean: "Paste >3 lines of text on http://gist.github.com"
<combusean> sorry hfp
<fwchld> hey guys - i'm trying to compile a .rb to .exe using ocra and get the following error: pastie.org/9069380
dmyers has joined #ruby
<fwchld> i've installed jruby on the machine - but still having issues.
robustus has joined #ruby
fabrice31 has quit [Ping timeout: 252 seconds]
brunops has quit [Quit: Lost terminal]
yubrew has quit [Ping timeout: 240 seconds]
_justin has quit [Quit: _justin]
dmyers has left #ruby [#ruby]
sdwrage has joined #ruby
thoraxe has joined #ruby
SirFunk has joined #ruby
hfp is now known as hfp`away
tjr9898 has quit [Read error: Connection reset by peer]
tjr9898 has joined #ruby
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
cpruitt has joined #ruby
dql has joined #ruby
evenix has joined #ruby
habanany has joined #ruby
habanany1 has quit [Ping timeout: 252 seconds]
mehlah has quit [Quit: Leaving...]
cpruitt has quit [Client Quit]
Spami has quit [Quit: This computer has gone to sleep]
mary5030 has joined #ruby
jenrzzz has quit [Quit: I haven't slept for ten days, 'cause that would be too long.]
pontiki has quit [Read error: Connection reset by peer]
Bumptious has joined #ruby
decoponio has joined #ruby
pontiki has joined #ruby
jenrzzz has joined #ruby
MatthewsFace has quit [Ping timeout: 250 seconds]
Bumptious has quit [Remote host closed the connection]
iliketurtles has joined #ruby
Bumptious has joined #ruby
nanoyak has joined #ruby
bluOxigen has joined #ruby
shashank_rs has joined #ruby
benzrf has joined #ruby
<jle`> benzrf: /b 3 (This message has been postponed on 2014-04-09 00:34:02.)
<benzrf> jle`: huh?
<jle`> sorry
<jle`> a typo
<jle`> got accidentally queued v.v
fwchld has quit [Quit: Textual IRC Client: www.textualapp.com]
descala has quit [Ping timeout: 252 seconds]
MatthewsFace has joined #ruby
narcan has joined #ruby
QKO has joined #ruby
bricker`LA has quit [Ping timeout: 250 seconds]
descala has joined #ruby
toastynerd has quit [Remote host closed the connection]
iliketurtles has quit [Ping timeout: 240 seconds]
cpruitt has joined #ruby
habanany has quit [Ping timeout: 252 seconds]
cpruitt has quit [Client Quit]
Bumptious has quit [Ping timeout: 264 seconds]
<benzrf> 1937770 rows of random reddit comments' score, subreddit, and author's name [but hashed]
zachallett has quit [Remote host closed the connection]
<benzrf> bye
benzrf is now known as benzrf|offline
iliketurtles has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
jonathanwallace has quit [Quit: ZNC - http://znc.in]
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
havenwood has joined #ruby
meatherly has quit [Remote host closed the connection]
manyrus has joined #ruby
habanany has joined #ruby
iliketurtles has quit [Ping timeout: 240 seconds]
mary5030 has quit [Ping timeout: 276 seconds]
Lucky_Red has joined #ruby
G is now known as TWWOC
crzrcn has joined #ruby
senayar has joined #ruby
<crzrcn> Is it possible to have many names correspond to a single task in rake? Something like
<crzrcn> task :name1, :name2 do
<crzrcn> # task code
<crzrcn> end
mesamoo has joined #ruby
ascarter has joined #ruby
manyrus has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby
<jackyalcine> like an alias?
senayar has quit [Ping timeout: 240 seconds]
jackyalcine is now known as jacky
spyderman4g63 has joined #ruby
<jacky> that looks like it'd be an alias
centrx has quit [Quit: All this computer hacking is making me thirsty]
jamto11 has joined #ruby
sski has quit [Remote host closed the connection]
sski has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
nanoyak has quit [Quit: Computer has gone to sleep.]
shashank_rs has quit [Ping timeout: 252 seconds]
<crzrcn> Um, what I want is 'rake name1' and 'rake name2' to execute the same code while being DRY.
habanany has quit [Ping timeout: 240 seconds]
nanoyak has joined #ruby
spyderman4g63 has quit [Ping timeout: 250 seconds]
LLKCKfan has quit []
hedgehog has quit [Ping timeout: 240 seconds]
krz has quit [Quit: WeeChat 0.4.3]
Photism_ has joined #ruby
senayar has joined #ruby
habanany has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
sski has quit [Ping timeout: 240 seconds]
lethjakman has quit [Ping timeout: 240 seconds]
Photism has quit [Ping timeout: 264 seconds]
havenwood has quit [Remote host closed the connection]
Celm has joined #ruby
Kricir has joined #ruby
deens has quit [Remote host closed the connection]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
deens has joined #ruby
<mozzarella> guys help
phansch has joined #ruby
Celm has quit [Ping timeout: 252 seconds]
senayar has quit [Ping timeout: 252 seconds]
Kricir has quit [Ping timeout: 250 seconds]
<combusean> mozzarella, what's up?
<mozzarella> I'm using nokogiri to parse something and it looks like it eats some code…
<combusean> oh
<combusean> i dunno nokogiri
michaeldeol has joined #ruby
Shidash has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
deens has quit [Ping timeout: 240 seconds]
northfurr has quit [Quit: northfurr]
Shidash1 has quit [Ping timeout: 240 seconds]
browndawg has quit [Quit: Leaving.]
* combusean wonders how this code ever worked to begin with
yubrew has joined #ruby
Doppp has quit [Ping timeout: 240 seconds]
subbyyy_ has quit [Ping timeout: 240 seconds]
deens has joined #ruby
ktosiek has quit [Ping timeout: 252 seconds]
chipotle has joined #ruby
chipotle has quit [Excess Flood]
Melpaws has quit [Ping timeout: 252 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
<mozzarella> the code wizards constantly casting spells on it to keep making it work
zcreative has joined #ruby
yubrew has quit [Ping timeout: 276 seconds]
Melpaws has joined #ruby
kevinykchan has joined #ruby
lethjakman has joined #ruby
slawrence00 has joined #ruby
habanany has quit [Read error: Connection timed out]
habanany has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Morkel has joined #ruby
b1nd has quit [Ping timeout: 252 seconds]
iliketurtles has joined #ruby
Bumptious has joined #ruby
dukz has joined #ruby
arietis has joined #ruby
chris_thomson has quit [Quit: Zzz...]
f0ster` has quit [Ping timeout: 250 seconds]
habanany has quit [Ping timeout: 252 seconds]
magic_ has quit [Ping timeout: 240 seconds]
gregk has joined #ruby
Spami has joined #ruby
Solnse has quit [Ping timeout: 252 seconds]
Doppp has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
lethjakman has quit [Ping timeout: 276 seconds]
Shidash has quit [Ping timeout: 252 seconds]
gregk has left #ruby [#ruby]
frem has joined #ruby
danijoo has joined #ruby
cover has joined #ruby
iliketur_ has joined #ruby
Doppp has quit [Ping timeout: 252 seconds]
pen has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
supermarin__ has quit [Quit: Computer has gone to sleep.]
habanany has joined #ruby
supermarin__ has joined #ruby
danijoo has quit [Ping timeout: 252 seconds]
iliketurtles has quit [Ping timeout: 252 seconds]
yacks has quit [Ping timeout: 250 seconds]
tkuchiki_ has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
not_satoshi_137 has left #ruby [#ruby]
Melpaws has left #ruby [#ruby]
supermarin__ has quit [Ping timeout: 252 seconds]
aetaric has quit [Ping timeout: 252 seconds]
tkuchiki has quit [Ping timeout: 252 seconds]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
saarinen has quit [Read error: Connection reset by peer]
b1nd has joined #ruby
saarinen has joined #ruby
tonni has quit [Remote host closed the connection]
jenrzzz has quit [Quit: I haven't slept for ten days, 'cause that would be too long.]
karmatr0n has quit [Remote host closed the connection]
mclee has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby
selite has joined #ruby
<selite> Can every page be uniquely identified by the Controller and Action?
cytosine has left #ruby ["WeeChat 0.4.3"]
<selite> In a log file from debug mode.
aetaric has joined #ruby
mary5030 has joined #ruby
JohnBat26 has joined #ruby
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
crystal77 has quit [Quit: Computer has gone to sleep.]
baroquebobcat has joined #ruby
rh1n0 has joined #ruby
<Hanmac1> selite: #RubyOnRails
Hanmac1 is now known as Hanmac
heftig has quit [Quit: Quitting]
nanoyak has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby
Celm has joined #ruby
Kricir has joined #ruby
fabrice31 has joined #ruby
saarinen has quit [Quit: saarinen]
krz has joined #ruby
crzrcn has left #ruby [#ruby]
Doppp has joined #ruby
yubrew has joined #ruby
pierre1_ has quit [Ping timeout: 276 seconds]
Macaveli has joined #ruby
baroquebobcat has quit [Ping timeout: 252 seconds]
luriv has joined #ruby
Macaveli has quit [Remote host closed the connection]
aagdbl has joined #ruby
Celm has quit [Ping timeout: 240 seconds]
Kricir has quit [Ping timeout: 240 seconds]
Burgestrand has joined #ruby
pen has joined #ruby
tonni has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 240 seconds]
mrjensen has joined #ruby
thomasxie has quit [Ping timeout: 250 seconds]
sigurding has joined #ruby
tectonic has joined #ruby
Deele has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
pwh has quit [Ping timeout: 276 seconds]
funburn has quit [Quit: funburn]
Doppp has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
tjr9898_ has joined #ruby
tjr9898 has quit [Read error: Connection reset by peer]
havenwood has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
tagrudev has joined #ruby
Hanmac has quit [Read error: Connection reset by peer]
tjr9898 has joined #ruby
Doppp has joined #ruby
tjr9898 has quit [Remote host closed the connection]
Hanmac has joined #ruby
meatherly has joined #ruby
tjr9898 has joined #ruby
tjr9898_ has quit [Read error: Connection reset by peer]
bambuka has joined #ruby
yacks has joined #ruby
apeiros has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
pwh has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marcdel has quit []
yfeldblum has joined #ruby
arietis has joined #ruby
bal has joined #ruby
Doppp has quit [Ping timeout: 250 seconds]
ktosiek has joined #ruby
jrhe has quit [Quit: Connection closed for inactivity]
iliketur_ has quit [Quit: zzzzz…..]
meatherly has quit [Ping timeout: 276 seconds]
reijoslav has quit [Ping timeout: 255 seconds]
bluOxigen has quit [Ping timeout: 250 seconds]
fgo has joined #ruby
tobago has joined #ruby
hamakn_ has joined #ruby
hamakn has quit [Ping timeout: 240 seconds]
mengu has quit [Remote host closed the connection]
bluOxigen has joined #ruby
toastynerd has joined #ruby
klaut has joined #ruby
m1lt0n has joined #ruby
iliketurtles has joined #ruby
Guedes0 has quit [Ping timeout: 252 seconds]
lsmola has joined #ruby
tjr9898 has quit [Read error: Connection reset by peer]
tjr9898_ has joined #ruby
keeguon has joined #ruby
skinkitten has joined #ruby
bricker`LA has joined #ruby
<skinkitten> hi I'm wondering about this error I'm doing http://www.pasteall.org/50738/ruby
andy__ has quit [Remote host closed the connection]
rm__ has quit [Remote host closed the connection]
<lxsameer> hey guys, I'm using ruby 2.1.0 and there is a Hash#map method but there is no document entry to that method in ruby docs, according to ruby docs Hash should not have a map method. what's wrong ?
<skinkitten> I know I can jsut do a block and get it done with but why is that symbol proc giving me an error?
IceDragon has quit [Quit: Space~~~]
oo_ has quit [Remote host closed the connection]
rm__ has joined #ruby
oo_ has joined #ruby
rh1n0 has quit [Quit: Hopefully you don't see this...]
crystal77 has joined #ruby
Hobogrammer has quit [Ping timeout: 252 seconds]
fgo has quit [Remote host closed the connection]
dukz has quit [Read error: Connection reset by peer]
fgo has joined #ruby
rm__ has quit [Ping timeout: 252 seconds]
dukz has joined #ruby
Hanmac1 has joined #ruby
klaut has quit [Remote host closed the connection]
markisonfire has joined #ruby
ktosiek has quit [Ping timeout: 252 seconds]
dblessing has joined #ruby
browndawg has joined #ruby
Hanmac has quit [Ping timeout: 276 seconds]
derek_c has quit [Ping timeout: 252 seconds]
toastynerd has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
bigkevmcd has joined #ruby
dukz has quit [Remote host closed the connection]
tkuchiki_ has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 250 seconds]
tkuchiki has joined #ruby
apeiros has joined #ruby
teddyp1cker has joined #ruby
toastynerd has joined #ruby
senayar has joined #ruby
jprovazn has joined #ruby
_justin has joined #ruby
thomasxie has joined #ruby
stnly has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
toastynerd has quit [Remote host closed the connection]
teddyp1cker has quit [Ping timeout: 240 seconds]
<dseitz> map is from Enumerable
Macaveli has joined #ruby
<dseitz> It's a feature Hash gains from convention
<apeiros> it actually gains it from including Enumerable :-)
Morkel_ has joined #ruby
<dseitz> indeed, that more so :)
peret has quit []
spyderman4g63 has joined #ruby
Morkel has quit [Ping timeout: 252 seconds]
Morkel_ is now known as Morkel
jamto11 has joined #ruby
davidmles has joined #ruby
davidmles has quit [Client Quit]
noop has joined #ruby
iliketurtles has joined #ruby
spyderman4g63 has quit [Ping timeout: 240 seconds]
dagobah has joined #ruby
yubrew has joined #ruby
mr_snowf1ake has quit [Ping timeout: 246 seconds]
keeguon has quit [Quit: keeguon]
iliketur_ has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
tjr9898_ has quit [Remote host closed the connection]
keeguon has joined #ruby
Celm has joined #ruby
dukz has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
iliketurtles has quit [Ping timeout: 240 seconds]
Kricir has joined #ruby
nisstyre has quit [Quit: WeeChat 0.4.3]
iliketur_ has quit [Ping timeout: 240 seconds]
senayar has quit [Remote host closed the connection]
keeguon has quit [Ping timeout: 240 seconds]
Celm has quit [Ping timeout: 240 seconds]
anarang has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
nomenkun has joined #ruby
browndawg has quit [Quit: Leaving.]
tjr9898 has joined #ruby
havenwood has joined #ruby
browndawg has joined #ruby
PaulePan1er is now known as PaulePanter
andikr has joined #ruby
fgo has joined #ruby
meatherly has joined #ruby
nomenkun_ has joined #ruby
zigomir has joined #ruby
tjr9898 has quit [Ping timeout: 240 seconds]
iliketurtles has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
havenwood has quit [Ping timeout: 250 seconds]
claymore has joined #ruby
jonno11 has joined #ruby
browndawg has quit [Client Quit]
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
fabrice31 has joined #ruby
shashank_rs has joined #ruby
Jeticus has joined #ruby
nomenkun has quit [Ping timeout: 252 seconds]
Doppp has joined #ruby
meatherly has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
glide has quit [Quit: Leaving]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CaptainJet has quit [Ping timeout: 276 seconds]
derek_c has joined #ruby
davedev2_ has quit [Remote host closed the connection]
jxf has quit [Ping timeout: 240 seconds]
Asher has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
Asher has joined #ruby
pyon has quit [Ping timeout: 240 seconds]
aagdbl has quit [Quit: Leaving]
Doppp has quit [Ping timeout: 252 seconds]
klaut has joined #ruby
tectonic has quit []
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
jlebrech has quit [Ping timeout: 256 seconds]
kitak_ has quit [Ping timeout: 240 seconds]
kitak has joined #ruby
amclain has quit [Quit: Leaving]
claymore has quit [Ping timeout: 240 seconds]
Angelous has quit [Quit: http://achemicallanguage.org]
aganov has joined #ruby
jxf has joined #ruby
Fractional has joined #ruby
<Mon_Ouie> skinkitten: Because there's no such things as symbol procs. '&' can be used as unary operator to pass an object as a block to a method. some_method(…, &foo) will convert foo to a Proc using #to_proc and pass that as a block to some_method.
<Fractional> Could someone explain to me why I get an error for doing this? cryption_hash = {"foo" => 1}
<Mon_Ouie> Here you have some_method &object Constant, which is a syntax error
<Mon_Ouie> (by the way, a short and convenient way of doing that particular check is the #grep method)
oo_ has quit [Remote host closed the connection]
dblessing has quit [Quit: dblessing]
oo_ has joined #ruby
davedev24 has joined #ruby
CyborgCygnus has joined #ruby
tonni has quit [Remote host closed the connection]
makara has quit [Quit: Leaving]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<atmosx> Morning
sdwrage has quit [Quit: Leaving]
<apeiros> Fractional: that on its own is correct
andy__ has joined #ruby
Spami__ has joined #ruby
<Fractional> apeiros: I am getting an error (unexpected =>, expecting keyword_end)
<apeiros> Fractional: means you made a mistake earlier
blackmesa has quit [Ping timeout: 250 seconds]
elaptics`away is now known as elaptics
elaptics is now known as elaptics`away
danijoo has joined #ruby
vt102 has quit [Ping timeout: 240 seconds]
michael_lee has quit [Quit: Ex-Chat]
<Fractional> apeiros: https://gist.github.com/anonymous/863ffab930634a16de67, what am I doing wrong?
relix has joined #ruby
sdouglas has quit [Remote host closed the connection]
<canton7> even higher up than that
Angelous has joined #ruby
Angelous has quit [Excess Flood]
<apeiros> Fractional: what you're doing wrong: a) not pasting the exception you get, b) `"O" =>, `, probably more
Angelous has joined #ruby
Angelous has quit [Excess Flood]
Angelous has joined #ruby
Angelous has quit [Excess Flood]
claymore has joined #ruby
Angelous has joined #ruby
Angelous has quit [Excess Flood]
<canton7> ah, yeah there is that, as well
<Spami__> (May be dumb question) I'm writing a script to import a mysql table(25 millions rows) into an elastic search index. Would it be faster to actually run 5 scripts in parallel who import 5 millions rows each or just one that import 25 millions
iamjarvo has quit [Ping timeout: 276 seconds]
Angelous has joined #ruby
lazerator has joined #ruby
Angelous has quit [Excess Flood]
danijoo has quit [Ping timeout: 252 seconds]
Krypt has joined #ruby
Angelous has joined #ruby
Angelous has quit [Excess Flood]
sdouglas has joined #ruby
aagdbl has joined #ruby
Angelous has joined #ruby
Angelous has quit [Excess Flood]
andy__ has quit [Ping timeout: 250 seconds]
sdouglas_ has joined #ruby
<Fractional> yntax error, unexpected =>, expecting keyword_end
<Fractional> ...8, "T" => 19, "U" => 20, "V" => 21, "W" => 22, "X" => 23, "Y...
<Fractional> apeiros: apeiros: is the error I am getting.
Doppp has joined #ruby
havenwood has joined #ruby
arturaz has joined #ruby
xiella has quit [Ping timeout: 250 seconds]
Kryptonical has quit [Ping timeout: 264 seconds]
<atmosx> Fractional: "O" =>, ...
<atmosx> vim spotted it right aeay
<Fractional> atmosx: I need to learn vim sometime!
chipotle has quit [Quit: cya]
userx has quit [Ping timeout: 240 seconds]
stnly has quit [Ping timeout: 250 seconds]
sdouglas has quit [Ping timeout: 240 seconds]
mclee has joined #ruby
noop has quit [Ping timeout: 250 seconds]
<atmosx> Fractional: that is a ver good idea :-)
nomadic has quit [Ping timeout: 246 seconds]
noop has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
keeguon has joined #ruby
stnly has joined #ruby
evenix has quit [Remote host closed the connection]
evenix has joined #ruby
karmatr0n has joined #ruby
<lazerator> hi.. are there any mirrors for rubyinstaller-1.9.3-p545.exe. The one on rubyinstallers.org is terribly slow.
greenarrow has joined #ruby
<Hanmac1> lazerator: you should use a newer version
yubrew has joined #ruby
evenix has quit [Ping timeout: 240 seconds]
qba73 has joined #ruby
nomadic has joined #ruby
SatansDeer has quit [Quit: Leaving.]
<Hanmac1> Fractional: what about using a proc and not a hash ? like: proc {|c,offset = 0| c.upcase.ord - "A".ord + offset }
karmatr0n has quit [Ping timeout: 250 seconds]
luriv has quit [Ping timeout: 240 seconds]
Fractional has quit [Remote host closed the connection]
kerin has quit [Ping timeout: 250 seconds]
yubrew has quit [Ping timeout: 252 seconds]
jack_rabbit has quit [Quit: Leaving]
Angelous has joined #ruby
Angelous has quit [Excess Flood]
Angelous has joined #ruby
Angelous has quit [Excess Flood]
Angelous has joined #ruby
Angelous has quit [Excess Flood]
combusean has quit [Ping timeout: 276 seconds]
Angelous has joined #ruby
Angelous has quit [Excess Flood]
luriv has joined #ruby
senayar has joined #ruby
oo_ has quit [Remote host closed the connection]
danijoo has joined #ruby
oo_ has joined #ruby
Celm has joined #ruby
ikaros has joined #ruby
markisonfire has quit [Quit: markisonfire]
Kricir has joined #ruby
nvrch has joined #ruby
greenrose has joined #ruby
xiella has joined #ruby
fgo has quit [Remote host closed the connection]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
Celm has quit [Ping timeout: 250 seconds]
fabrice31 has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
fabrice31 has joined #ruby
senayar has joined #ruby
kitak has quit [Remote host closed the connection]
jxf has quit [Ping timeout: 240 seconds]
kitak has joined #ruby
Kricir has quit [Ping timeout: 252 seconds]
yacks has quit [Ping timeout: 252 seconds]
tacos1de has quit [Ping timeout: 272 seconds]
obs has joined #ruby
SatansDeer has joined #ruby
shredding has joined #ruby
jack_rabbit has joined #ruby
elaptics`away is now known as elaptics
fabrice31 has quit [Ping timeout: 240 seconds]
sk87 has joined #ruby
combusean has joined #ruby
jxf has joined #ruby
peckerman has quit [Quit: ZNC - http://znc.in]
yacks has joined #ruby
ghr has joined #ruby
meatherly has joined #ruby
CyborgCygnus has quit [Quit: Rage Quit]
sski has joined #ruby
marr123 has joined #ruby
heftig has joined #ruby
deens has quit [Ping timeout: 240 seconds]
skaflem has joined #ruby
ph8 has quit [Changing host]
ph8 has joined #ruby
fabrice31 has joined #ruby
Morkel has quit [Quit: Morkel]
kitak has quit [Ping timeout: 240 seconds]
meatherly has quit [Ping timeout: 276 seconds]
keeguon has quit [Ping timeout: 250 seconds]
cj3kim_ has joined #ruby
kitak has joined #ruby
cj3kim_ has quit [Read error: Connection reset by peer]
<LetErikTry> using each_byte is the best way to look at binary files, as far as speed goes, right?
Waheedi has quit [Quit: Waheedi]
cj3kim_ has joined #ruby
marr123 is now known as marr
_justin has quit [Quit: _justin]
klaut has quit [Remote host closed the connection]
derek_c has quit [Ping timeout: 252 seconds]
browndawg has joined #ruby
olivier_bK has joined #ruby
selite has quit [Quit: Page closed]
roolo has joined #ruby
tacos1de has joined #ruby
luckyruby has quit [Remote host closed the connection]
<Burgestrand> LetErikTry: I’d suggest you measure different solutions if speed matters
luckyruby has joined #ruby
tobiasvl has quit [Quit: leaving]
canton7-mac has joined #ruby
chipotle has joined #ruby
Bumptious has quit [Remote host closed the connection]
tvl has joined #ruby
Bumptious has joined #ruby
makara has joined #ruby
keeguon has joined #ruby
aspires has joined #ruby
timonv has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
poikon has joined #ruby
luckyruby has quit [Ping timeout: 246 seconds]
rdark has joined #ruby
Xeago has joined #ruby
Spami__ has quit [Ping timeout: 252 seconds]
Xeago has quit [Read error: Connection reset by peer]
hiall has joined #ruby
oo_ has quit [Ping timeout: 252 seconds]
Spami__ has joined #ruby
dql has quit [Quit: dql]
Xeago has joined #ruby
winny has joined #ruby
<winny> hi, in irb when I type help(Date) it tells me Date is from jekyll. How do I stop irb from requiring and including jekyll into the local namespace?
oo_ has joined #ruby
<Hanmac1> winny hm Date is from Ruby core, jekyll might only extend the existing class
Jeticus has quit []
tvl is now known as tobiasvl
matcouto has joined #ruby
<winny> how would jekyll be loaded implicitly?
<winny> that's the help(Date) output on a fresh irb instance
browndawg has left #ruby [#ruby]
Zai00 has joined #ruby
jxf has quit [Ping timeout: 250 seconds]
lazerator has quit [Ping timeout: 250 seconds]
jrhe has joined #ruby
f3lan has joined #ruby
<f3lan> howdy
AlSquire has joined #ruby
rylev has joined #ruby
rylev has quit [Remote host closed the connection]
rylev has joined #ruby
weems has joined #ruby
<combusean> hi f3lan
weems has quit [Read error: Connection reset by peer]
ddv has joined #ruby
moritzs has joined #ruby
asdf10111 has joined #ruby
yubrew has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
teddyp1cker has joined #ruby
alexherbo2 has joined #ruby
Xeago has quit [Remote host closed the connection]
<Hanmac1> shevy: it seems that yaml itself is soo buggy that a gem named "safe_yaml" exist ;P
einarj has joined #ruby
<skinkitten> Mon_Ouie, you can convery symbols to procs. http://www.pasteall.org/50740/ruby
<skinkitten> convert*
jxf has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
<apeiros> skinkitten: he's aware of that
teddyp1cker has quit [Ping timeout: 252 seconds]
<winny> where can I find documentation on Time.gm
<shevy> Hanmac1 hehe
<winny> oops sorry, i was looking at the wrong reference doc
<apeiros> skinkitten: he said there's no "symbol procs". which is correct. if you read what he wrote, you'll see that he wrote about the conversion too.
<Hanmac1> winny: help(Date) only shows all places, like for me it shows the methods defined from core, and one method defined from jekyll ... for you it seems that there is NO core documentation installed
Hanmac1 is now known as Hanmac
<Mon_Ouie> Indeed. I was trying to explain that it's not a special syntax for symbols, the syntax is valid with any sort of object.
sdouglas_ has quit [Remote host closed the connection]
<Mon_Ouie> (it would only run correctly if #to_proc is defined properly or if the object is nil though)
<winny> Hanmac: I see. It's probably a homebrew issue -- their packagers often forget to install docs
Sp4rKy_ is now known as Sp4rKy
Sp4rKy has quit [Changing host]
Sp4rKy has joined #ruby
_justin has joined #ruby
spyderman4g63 has joined #ruby
microdex2 has quit [Remote host closed the connection]
<skinkitten> got it!
aspires has quit []
jamto11 has joined #ruby
Xeago has joined #ruby
spyderman4g63 has quit [Ping timeout: 240 seconds]
lsmola has quit [Ping timeout: 250 seconds]
jeregrine has quit [Quit: Connection closed for inactivity]
<dmarr> I am tryign to gem install mysql https://gist.github.com/anonymous/2b231876a44ab64234c2
<dmarr> its on a fresh box after install of mysql-server
<shevy> dmarr mysql_query() in -lmysqlclient... no
<shevy> you lack lib files and possibly headers
<shevy> uncripple your distribution's mysql package
<shevy> the gem must compile the bindings, it can do so only when these files are available
rylev_ has joined #ruby
<dmarr> how would i uncripple
<dmarr> shouldnt those be available after an apt-get install mysql-server?
<shevy> no idea, ask the distribution folks how they split the package up; if it would be header files only, it would normally be some *-dev package
<Hanmac> dmarr: nope you need the dev packages
<shevy> do you assume that debian maintainers are sane dmarr ;)
jamto11 has quit [Ping timeout: 276 seconds]
<dmarr> lol i am trying to do some docker stuff and comparing what happens in various states
Celm has joined #ruby
<shevy> Hanmac uses debian btw
DouweM has quit [Ping timeout: 240 seconds]
<dmarr> would this be it? libmysqld-dev - MySQL embedded database development files
Lewix has quit [Remote host closed the connection]
Kricir has joined #ruby
rylev has quit [Ping timeout: 276 seconds]
<Hanmac> shevy it makes sense when you split something into lib, header, binary, and data packages ... specially because data & partly header are arch:all, and lib and binary are arch:same (means data package should be arch-independent )
amaroks has joined #ruby
amaroks has quit [Quit: Going home]
<shevy> Hanmac sorry, I have been using gobolinux for years, I don't believe in crippling packages nor in FHS layout. AppDirs all the way
<Hanmac> dmarr: hm no you mostly need libmysqlclient-dev
<Hanmac> shevy it helps when you have multible arch installed (like 32 & 64 bit)
<shevy> Hanmac yep, gobolinux has that
bigkevmcd has left #ruby ["Ex-Chat"]
_tpavel has joined #ruby
_tpavel has quit [Read error: Connection reset by peer]
Celm has quit [Ping timeout: 252 seconds]
_tpavel has joined #ruby
chrisseaton has joined #ruby
Heskie has joined #ruby
<shevy> the worst part is that, like the example of dmarr here shows, that you have to search manually for the proper package
tjr9898 has joined #ruby
<Hanmac> shevy lets play: find the main character: https://i.chzbgr.com/maxW500/8139651840/h2D68B252/
Kricir has quit [Ping timeout: 252 seconds]
obs has quit [Remote host closed the connection]
<shevy> is this finding waldo
andy__ has joined #ruby
<shevy> Hanmac it's the red haired girl
<shevy> Hanmac why does she have purple hair sometimes?
<Hanmac> shevy each part/different anime
andrewlio has joined #ruby
<dmarr> ooh attack on titan is on netflix
obs has joined #ruby
<Hanmac> i watched all the memes ... imo SnK is overrated ... i have seen better last seasons ...
tjr9898 has quit [Ping timeout: 240 seconds]
lsmola has joined #ruby
andy__ has quit [Ping timeout: 240 seconds]
<shevy> god
meatherly has joined #ruby
<shevy> everything from japan eh
<shevy> the programming language, the anime, the wife
<shredding> I installed a gem from github and since then ruby fires a „cannot load such file“ when I want to import from the gem ...
<Hanmac> ;P
<shredding> gem 'capistrano', :git => 'git://github.com/capistrano/capistrano.git'
poikon_ has joined #ruby
<shredding> RubyMine recognizes the files and they are there.
<shredding> What can I do to make that work?
ktun has joined #ruby
brunto_ is now known as brunto
brunto has quit [Changing host]
brunto has joined #ruby
combusean has quit [Ping timeout: 252 seconds]
chipotle has quit [Quit: cya]
fella5s has joined #ruby
pontiki has quit [Read error: Connection reset by peer]
jxf has quit [Ping timeout: 252 seconds]
<ghr> shredding define "make that work"
<shredding> :)
<ghr> what's not happening that you expect to happen?
aaronmcadam has joined #ruby
rylev_ has quit [Remote host closed the connection]
<shredding> I added the upper line to my Gemfile.
<shredding> And then in the very first line of my script:
<shredding> require 'capistrano/all'
<shredding> which results in:
rylev has joined #ruby
<shredding> ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require': cannot load such file -- capistrano/all
<shredding> The bundle is installed, but somehow not recognized by the autloader.
mikecmpbll has joined #ruby
poikon has quit [Ping timeout: 252 seconds]
aaronmcada has joined #ruby
meatherly has quit [Ping timeout: 250 seconds]
<Hanmac> shredding: what ruby version, do you use rvm, how did you install ruby? user or system wide?
<shredding> I use rvm, it’s 2.0.0
<shredding> Both do not work: System wide and rvm
<shredding> I created a dedicated gemset for that app.
<shredding> the gemset is activated.
<Hanmac> does "gem list" shows your gem?
frem has quit [Quit: Connection closed for inactivity]
aaronmcada has quit [Client Quit]
nari has quit [Ping timeout: 252 seconds]
aaronmcada has joined #ruby
skinkitten has quit [Quit: Leaving]
Nilium has quit [Ping timeout: 250 seconds]
<shredding> Hanmac: Interesting.
<shredding> „bundle list“ shows it, „gem list“ not
aaronmcadam has quit [Ping timeout: 240 seconds]
aaronmcada has quit [Client Quit]
<shredding> What’s the difference of „bundle list“ and „gem list“?
Heskie_ has joined #ruby
aaronmcadam has joined #ruby
Heskie has quit [Ping timeout: 276 seconds]
Heskie_ is now known as Heskie
SatansDeer has quit [Quit: Leaving.]
<shredding> It looks like precending with „bundle exec“ works.
<shredding> (even though it’s cumbersome)
Dwarf has quit [Quit: Oops I quit]
Dwarf has joined #ruby
<shredding> thanks.
<ghr> How do you rescue from an exception that's been "tagged"? http://pastie.org/9069879
<ghr> (I think tagged is the correct terminology here)
kitak has quit [Remote host closed the connection]
<aaronmcadam> You mean you want to get to the erorr?
<aaronmcadam> on line 10?
Nilium has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
whowantstolivefo has joined #ruby
<ghr> Well, an ArgumentError is raised, which I can rescue from, but what I actually want to do is only rescue InvalidPage
aob has joined #ruby
lkba has quit [Ping timeout: 276 seconds]
<aaronmcadam> InvalidPage = Class.new(StandardError)
<aaronmcadam> rescue ArgumentError => error; raise InvalidPageError;
<aaronmcadam> and rescue that in your controller
<aaronmcadam> or elsewhere
<aob> I'm trying to write a unit test for a method which uses a gem to establish a connection to a 3rd party API. I don't want to actually test the connection - I trust that to work - I just want to verify that the method was called with the right parameters.
<aaronmcadam> use webmock
thomasxie has quit [Read error: Connection reset by peer]
<aaronmcadam> you can verify that the correct url was called, for example, with headers, etc
<ghr> aaronmcadam I want to rescue from WillPaginate::InvalidPage, so I'm stuck with how that library creates the error. My pastie is a simplified example of what will_paginate does
hiall has quit [Quit: hiall]
luriv has quit [Ping timeout: 252 seconds]
deric_skibotn has quit [Ping timeout: 240 seconds]
narcan has joined #ruby
mengu has quit [Remote host closed the connection]
kitak has joined #ruby
<aaronmcadam> so why don't you rescue from it?
<aaronmcadam> what's the problem?
SatansDeer has joined #ruby
<ghr> That's what I don't understand. What do I need to do here to catch the re-raised (and tagged) exception? http://pastie.org/9069879#13
<aob> aaronmcadam: Thanks! I'll take a look... I had in mind a simple test double - so I could mock and assert the method was called and would return a mock class. But I'll look at your suggestion first!
<aaronmcadam> that's true yea
<aaronmcadam> it depends on how high level your spec is aob, whether you need to care about the exact object or not
<aaronmcadam> and you don't want to mock things you don't own aob
<aaronmcadam> at least with webmock, you're only stopping it making the request, not poking around inside the 3rd party object
compleatang has joined #ruby
<aob> right... so the gem I'm using has its own config which points to the correct service; I just pass it tokens. I trust it works. What I want to test is my own code and how it operates on what the 3rd party API returns.
<aob> so it's 2 stages: 1) make a connection 2) make a call to the connection... this returns a struct
<aob> and I want to test my code whcih operates on the struct
<aaronmcadam> cool, do you have some sort of request method on the object?
anaeem1 has joined #ruby
renier has quit [Ping timeout: 240 seconds]
<aob> so MyClass.connect returns a connection object, which itself has methods which surface data in the form of structs. My own class has methods like search which operate on the data it gets from the external service
popl has joined #ruby
popl has joined #ruby
ceej has quit [Ping timeout: 240 seconds]
<aaronmcadam> cool, yeah a Double with a connect method that just returns the canned response would work fine too
charlies_ has joined #ruby
<aaronmcadam> with webmock, you can return arbitrary responses, with response codes (which is really useful for testing edge cases)
yubrew has joined #ruby
<aob> right, so I'm using rspec... and I have a test with a double of the connection... which returns canned data.. that all works
dhoss has quit [Ping timeout: 240 seconds]
<aaronmcadam> as in you could test the failure cases (the API is down, etc)
<aaronmcadam> cool
<aob> sorry... let me be clear: I have a test double of the result of the query against the connection
<aob> not the connection class itself
ceej has joined #ruby
<aob> and it's that last bit I am unsure about
bigkevmcd has joined #ruby
davedev24 has quit [Ping timeout: 276 seconds]
<aaronmcadam> yeah
<aob> sorry if this isn't making a lot of sense.. i'm a bit confused after thinking about it too hard
claymore has quit [Ping timeout: 240 seconds]
charliesome has quit [Ping timeout: 240 seconds]
dhoss has joined #ruby
<aob> let me try to paste some code
renier has joined #ruby
bigkevmcd has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
_justin has quit [Ping timeout: 252 seconds]
luriv has joined #ruby
yubrew has quit [Ping timeout: 276 seconds]
Xeago has quit [Ping timeout: 240 seconds]
tjr9898 has joined #ruby
<shevy> what is webmock
kaliya has joined #ruby
<aaronmcadam> :D
SatansDeer has quit [Quit: Leaving.]
timonv has quit [Ping timeout: 252 seconds]
<workmad3> shevy: it's a library for mocking the web
<workmad3> shevy: all of it
<aaronmcadam> can you search rubygems with the irc bot?
<aaronmcadam> hahahaa
chrisseaton has quit []
_justin has joined #ruby
<shevy> workmad3 hmm
fsdldl has quit [Quit: WeeChat 0.4.3]
<shevy> does mocking mean the same as taunting?
<workmad3> shevy: in my facetious response, yes
karmatr0n has joined #ruby
shashank_rs has quit [Ping timeout: 252 seconds]
<aaronmcadam> hahaa
luriv has quit [Quit: Leaving]
jprovazn has quit [Quit: Leaving]
<aaronmcadam> shevy: mocking in the sense of stubbing, returning a fake response from a web request
momo_cassandra has joined #ruby
trautwein has joined #ruby
oo_ has quit [Remote host closed the connection]
<aaronmcadam> incidentally fakeweb is another popular option
noop has quit [Ping timeout: 240 seconds]
claymore has joined #ruby
karmatr0n has quit [Ping timeout: 250 seconds]
trautwein has quit [Read error: Connection reset by peer]
<shevy> hmm
<aaronmcadam> so you don't make real web requests in your tests
<aaronmcadam> when you depend on external APIs
Xeago_ has quit [Remote host closed the connection]
hiall has joined #ruby
trautwein has joined #ruby
luriv has joined #ruby
codenapper has quit [Ping timeout: 240 seconds]
halik has joined #ruby
oo_ has joined #ruby
makara has quit [Quit: Leaving]
<halik> Hi guys.
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
fridim_ has joined #ruby
claymore has quit [Ping timeout: 252 seconds]
<halik> Question. How do you guys get mimetypes of files?
hiall has quit [Ping timeout: 250 seconds]
<halik> I saw two ways… one is the use of this -> https://github.com/blackwinter/ruby-filemagic an external library. And another is this -> https://gist.github.com/mmrenomeron/10362558 uses open3, I think a part of core of ruby.
rh1n0 has joined #ruby
tjr9898 has quit [Remote host closed the connection]
hiall has joined #ruby
Xeago has joined #ruby
<aaronmcadam> halik do you use Rails?
<halik> I do
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
<aaronmcadam> mime_type = Mime::Type.lookup_by_extension(extension)
claymore has joined #ruby
SatansDeer has joined #ruby
rh1n0 has quit [Client Quit]
<halik> aaronmcadam: I don't want to leave it to the extension because I'm actually want to catch those that might knowing or unknowingly change the extension.
Speed has joined #ruby
<aaronmcadam> So you want something that looks at the file headers or something
Kricir has joined #ruby
<halik> aaronmcadam: Yes.
<aaronmcadam> I dunno what that uses to look it up
<aaronmcadam> docs don't say
<aaronmcadam> ah
<aaronmcadam> I see
<halik> Wha. What did you see?
<aaronmcadam> it looks up by the type string
<aaronmcadam> such as "text/html"
<aaronmcadam> so that won't help you either
<halik> Ah. I see. That's why it's arg is only string
<aaronmcadam> YOu could try #parse
<aaronmcadam> parse_data_with_trailing_star(input)
whowantstolivefo has quit [Remote host closed the connection]
<aaronmcadam> halik: though spending time on such a small edge case might not be the best idea
<halik> aaronmcadam: what do you mean?
<workmad3> halik: your most reliable solution would probably be to shell out to the 'file' utility
<aaronmcadam> if you optimise for the most common case and deal with any users trying to mess it up later
decoponyo has joined #ruby
Xeago has quit [Remote host closed the connection]
<aaronmcadam> workmad3: would to end up spawning subprocesses for checking the files if this was in a controller though?
<workmad3> halik: determining the filetype without previous knowledge is a fairly non-trivial task
<aaronmcadam> wouldn't that be a bit bad more multiple users?
<halik> @aaronmcadam Yup. Actually I'm kinda on that part already
andy__ has joined #ruby
Melpaws has joined #ruby
<aaronmcadam> halik: ah so you're already dealing with users trying to mess with it?
<halik> aaronmcadam: are you saying if we open it up then it would spawn subproccesses or something?
Kricir has quit [Ping timeout: 252 seconds]
<halik> @aaronmcadam Yep.
<aaronmcadam> well calling out to the shell
<workmad3> aaronmcadam: the other option would be to reimplement all the heuristics that the 'file' utility employs to determine filetypes within the rails request process from scratch(ish) in ruby
<aaronmcadam> `file #{xxx}`
<aaronmcadam> that spawns a ruby subprocess to do the work
<aaronmcadam> well a unix one
<aaronmcadam> but whatevs
<workmad3> aaronmcadam: and unix processes are really lightweight and quick to spawn
<aaronmcadam> yeah workmad3
mengu has quit [Ping timeout: 245 seconds]
decoponio has quit [Ping timeout: 252 seconds]
<aaronmcadam> I'd just be a bit worried about it being in a controller action is all
<workmad3> aaronmcadam: I'd worry about *that* if/when it became a problem ;)
<halik> Would it hold the resources if ever like maybe the file is big or something?
<aaronmcadam> but we don't know, halik, is the validation gonna be done in a worker queue or somewhere else?
<aaronmcadam> alrighty
noop has joined #ruby
<halik> aaronmcadam might be in a controller cause need to inform user
<aaronmcadam> does the `file` utility stream the file?
<aaronmcadam> or does it need to read the whole thing into memory?
<aaronmcadam> cool
<aaronmcadam> you could always put it on a queue if you needed to
<workmad3> aaronmcadam: I don't think 'file' needs to even read the entire file
<aaronmcadam> cooly
<aaronmcadam> halik: try the file call and get people to test it and just keep an eye on it
andy__ has quit [Ping timeout: 245 seconds]
<halik> Is 'file' the same as the 'open3' here http://www.ruby-doc.org/stdlib-2.1.1/libdoc/open3/rdoc/Open3.html
<workmad3> halik: no
meatherly has joined #ruby
<workmad3> halik: open3 is for opening a subprocess with access to the stdin, stdout and stderr pipes of said subprocess
<aaronmcadam> so he shouldn't need that to get the output of the file command
jlebrech has joined #ruby
<workmad3> halik: no, that's the ruby class for interacting with files
<aaronmcadam> but what about getting at errors, unless he validates that it's actually a file he's passing to `file`
<aaronmcadam> sweet
<halik> A like the unix command! Umn… how do I use this in rails?
<jlebrech> is there a ci server that can help pin point blockers, ie. bob has been working on this spec for 20mins now.
<workmad3> halik: 'file_response = system("file", "-I", file_path)'
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
tkuchiki_ has joined #ruby
<workmad3> halik: important to note, that'll give you a determination based off magic numbers, from a quick read of the man page... it won't be foolproof as someone could provide a deliberately doctored file that pretended to be something else
<workmad3> halik: but it gives you a first pass that you could then use to pass on to a more specific validation
<workmad3> halik: which you could then background ;)
ayaz has joined #ruby
meatherly has quit [Ping timeout: 252 seconds]
<halik> I see. I'll give this a whirl
<halik> workmad3 file_response returned true ?
<halik> Tried simple test on "rails c"
tkuchiki has quit [Ping timeout: 240 seconds]
<halik> This one. File was a zip file renamed to pdf
<halik> file_response = system("file", "-I", "spacegallery_copy.pdf")
<halik> spacegallery_copy.pdf: application/zip; charset=binary
<halik> => true
mrjensen has quit [Remote host closed the connection]
<workmad3> halik: drats, I always forget that system() returns true/false status, not the stdout...
whowantstolivefo has joined #ruby
tjr9898 has joined #ruby
danshultz has joined #ruby
<workmad3> halik: IO.popen("file", "-I", file_path) {|file_out| @file_response = file_out.read }
dyoko has joined #ruby
<workmad3> halik: IO.popen(["file", "-I", file_path]) {|file_out| @file_response = file_out.read } even... misread the docs :)
timonv has joined #ruby
jprovazn has joined #ruby
karupanerura is now known as zz_karupanerura
<halik> workmad3 Just read the docs too.
<halik> workmad3: Nice! This works
rylev has quit [Remote host closed the connection]
<halik> workmad3: Then I just need to parse or split and get the mimetype
<workmad3> halik: should be the case, yes
whowantstolivefo has quit [Remote host closed the connection]
whowantstolivefo has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
<halik> workmad3: thanks!
<workmad3> halik: np... as I said, this should be considered a first-pass determination for user reporting really, not a fully secure determination that the file isn't corrupted or malicious
fabrice31 has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
<halik> workmad3: Quick question related. I wonder… like why would they create this gem (https://github.com/blackwinter/ruby-filemagic) if a way/ that method you suggested exists? If you'd just happen to know.
mercwithamouth has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Krypt has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
jph98 has quit [Quit: Ex-Chat]
yubrew has joined #ruby
danshultz has quit [Ping timeout: 252 seconds]
Waheedi has joined #ruby
sski has quit [Remote host closed the connection]
sski has joined #ruby
aob has quit [Remote host closed the connection]
roolo has quit [Quit: Leaving...]
luckyruby has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 276 seconds]
noop has quit [Ping timeout: 240 seconds]
whowantstolivef3 has joined #ruby
xiella has quit [Ping timeout: 250 seconds]
momo_cassandra has quit [Quit: momo_cassandra]
mrjensen has joined #ruby
sski has quit [Ping timeout: 276 seconds]
jonno11 has joined #ruby
Melpaws has quit [Ping timeout: 240 seconds]
Heskie has quit []
shredding has quit [Quit: shredding]
tjr9898 has quit [Remote host closed the connection]
narcan has joined #ruby
narcan has quit [Max SendQ exceeded]
Melpaws has joined #ruby
whowantstolivefo has quit [Ping timeout: 240 seconds]
mengu has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
fabrice31 has joined #ruby
narcan has joined #ruby
narcan has quit [Max SendQ exceeded]
xiella has joined #ruby
shredding has joined #ruby
momo_cassandra has joined #ruby
mr_snowf1ake has joined #ruby
rylev has joined #ruby
teddyp1cker has joined #ruby
aagdbl0 has joined #ruby
VTLob has joined #ruby
arietis has joined #ruby
mrjensen has quit [Remote host closed the connection]
teddyp1cker has quit [Ping timeout: 276 seconds]
mrjensen has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
mostlybadfly has joined #ruby
spyderman4g63 has joined #ruby
DaniG2k has joined #ruby
nvrch has quit [Quit: nvrch]
momo_cassandra has quit [Quit: momo_cassandra]
tcurdt has joined #ruby
noop has joined #ruby
donnoc has joined #ruby
jamto11 has joined #ruby
roolo has joined #ruby
mogsy has quit [Ping timeout: 264 seconds]
spyderman4g63 has quit [Ping timeout: 250 seconds]
jason_ has joined #ruby
jason_ has quit [Remote host closed the connection]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elaptics is now known as elaptics`away
jamto11 has quit [Ping timeout: 240 seconds]
phayte has joined #ruby
rylev has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
rylev has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
Celm has joined #ruby
yfeldblum has joined #ruby
postmodern has quit [Quit: Leaving]
ce_afk is now known as cescalante
Kricir has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
phayte has quit [Quit: phayte]
danijoo has quit [Read error: Connection reset by peer]
rylev has quit [Ping timeout: 252 seconds]
phayte has joined #ruby
timgauthier_ has joined #ruby
<timgauthier_> aloha!
Celm has quit [Ping timeout: 245 seconds]
<donnoc> aloha back !
danijoo has joined #ruby
danshultz has joined #ruby
<timgauthier_> Is anyone avail to help me trouble shoot an issue with Nanoc, it appears to be a ruby or ruby gem issue. I’m a newb. I had it working yesterday but it is broken today when I try to compile. I havn’t a clue what the heck the .logfile is telling me is broken. I’ve uploaded my code to github and i’m creating a gist from the logfile
jonno11 has joined #ruby
andy__ has joined #ruby
Kricir has quit [Ping timeout: 245 seconds]
luriv has quit [Remote host closed the connection]
<shevy> I dont even know what is nanoc
grzywacz has joined #ruby
<shevy> and as far as I know you did not provide anyone else the errors
dyoko has quit [Quit: Leaving.]
<timgauthier_> its a static site generator like jekyll but … supposidly does more? :P
Macaveli has quit [Quit: "sadness"]
yfeldblum has quit [Ping timeout: 276 seconds]
<tobago> how to get the public class methods of a class?
<shevy> k so it generates a html string
<aaronmcadam> tobago: Class.instance_methods
<aaronmcadam> oh soz
<aaronmcadam> misread haha
<timgauthier_> and my errorlog https://gist.github.com/timgauthier/10368415
<aaronmcadam> tobago: try Class.methods(false) to get only its static methods
<shevy> that sounds trivial
<shevy> LoadError: cannot load such file -- nokogiri
<timgauthier_> the problem isn’t a nanoc specific thing though, its generating a ruby error that i do not understand
<shevy> that means you dont have nokogiri
donnoc has quit [Ping timeout: 276 seconds]
<shevy> gem install nokogiri
agjacome has joined #ruby
<timgauthier_> ok… weird because i didn’t need nokogiri yesterday when i used it…
<timgauthier_> thanks :P (totally a ruby newb still)
<tobago> aaronmcadam, ccol. works fine :)
<tobago> cool
aagdbl0 has quit [Ping timeout: 252 seconds]
<shevy> no idea myself, I did not write any of that
evenix has joined #ruby
andy__ has quit [Ping timeout: 240 seconds]
<shevy> the best is to document things you do
<shevy> ruby code does not mysteriously stop working from one day to the other :P
<timgauthier_> in a gemfile would that be gem “nokogiri” ?
<aaronmcadam> tobago: cool, the false parameter makes the method ignore inheritance, it's good to know about
<tobago> aaronmcadam, yesss. indeed. that's what i was looking for.
<aaronmcadam> good stuff
<shevy> I have no idea, I dont use gemfiles. all I know is that the error means that you do not have nokogiri and the proper way to get it is to do "gem install nokogiri". other than that I cant give you advice i.e. for gemfiles
<aaronmcadam> yea timgauthier_
<timgauthier_> thanks shevy. that fixed it
meatherly has joined #ruby
<shevy> \o/
<shevy> keep it simple
<timgauthier_> woot!
danshultz has quit [Remote host closed the connection]
<Hanmac> see shevy? nokogiri fix everything ;P
<shevy> oh
<shevy> nanoc was written by ddfreyne?
<shevy> Hanmac except when I used it like 3 years ago
<timgauthier_> I don’t know shevy
<shevy> when mechanize switched to it :(
danshultz has joined #ruby
<timgauthier_> RyanBigg suggested it too me a long time ago, and someone on r/jekyll suggested it when I couldn’t do what i needed with jekyll anymore
<shevy> timgauthier_ well if it was written by him and ddfreyne is him then he is here :)
<timgauthier_> well i doubt the issue was with nanoc, its me trying to add pygments to it that is the issue
<shevy> hehe
<shevy> pygments! that sounds pythonic
<shevy> ssszshh sss shSHs
<shevy> <indent>
<shevy> ssszshh sss shSHs
aagdbl0 has joined #ruby
<timgauthier_> silly jekyll and the includes having to only be in one places *shakes fist* shh it is shevy… it just was tamed by a gem. ;)
<aaronmcadam> that's cuz it is shevy
<shevy> odd
<timgauthier_> no one has written anything as good in ruby as far as i know
<shevy> at work all the other guys were using perl
<aaronmcadam> it's pretty popular
<shevy> I wrote a module in ruby and wondered how I could get the perl-users to interface with ruby here
tkuchiki_ has quit [Remote host closed the connection]
evenix has quit [Ping timeout: 240 seconds]
phayte has quit [Quit: phayte]
<timgauthier_> I run bash on the server /joke
<shevy> you write shell scripts?
aaronmcadam has quit [Quit: Leaving...]
<timgauthier_> no
<timgauthier_> i’m a designer
<shevy> ok
<timgauthier_> i write sass…
tkuchiki has joined #ruby
<timgauthier_> this ruby stuff is hard
<shevy> sounds like a dance
<shevy> like tango
<timgauthier_> would you sass with me
<shevy> tango... sass... capoeira
<workmad3> timgauthier_: there's also middleman for site generation
elaptics`away is now known as elaptics
Xeago has joined #ruby
<timgauthier_> workmad3: isn’t that node? i have looked at middleman i believe.
<Burgestrand> middleman is ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<timgauthier_> i was wrong.. yeah wow
<Burgestrand> :)
meatherly has quit [Ping timeout: 252 seconds]
<timgauthier_> that was a purple link for me… so i should look again, does it use liquid or mustache or something fancy?
<shevy> timgauthier_ ruby can be a bit complicated, true, but other than that, all programming languages share some common idioms. for instance, pretty all of them use functions/methods, pretty all of them have a load/require/include/import functionality, one just has to identify recurring patterns, that makes things much simpler
tjr9898 has joined #ruby
<Burgestrand> timgauthier_: I use ERB when I use it, but I think you’re able to use whatever template language you choose
tjr9898 has quit [Remote host closed the connection]
<workmad3> ^^
<timgauthier_> yeah shevy, learning languags is hard. I’m trying to learn German since i live here now and my Fiancée is german… but the logic of makign computers do things with words still is tough
<timgauthier_> Ryan Tried to teach me personally … and i’m still here :P
<Burgestrand> timgauthier_: the selling point for me is that it compiles SCSS without any special set-up
danshultz has quit [Ping timeout: 240 seconds]
<Burgestrand> (and the livereload support is nice to have too)
<timgauthier_> I use codekit for my scss just because it lets me have a gui (hsss) and realtime refresh
<workmad3> Burgestrand: I think middleman can be extended with sprockets to have a full CSS and JS pipeline :)
<workmad3> timgauthier_: codekit? isn't that a frontend wrapped onto compass and livereload?
moritzs has quit [Ping timeout: 240 seconds]
<timgauthier_> but that sounds like it might be built into middleman. I just need something simple like jekyll but able to do a bit more complex sites. this all came from me trying to build my portfolio, and wanting to include example pages in modal windows that are not in the project page source code. I want to seperate my documents for easeeeee!
<Burgestrand> workmad3: indeed, but even without sprockets it does SCSS and CoffeeScript
<timgauthier_> Codekit is a GUI with live reload compass, bourbon etc yeah. It has progressed a bit. I don’t think it is using the livereload JS anymore. I think verson 2 has its own webserver inside
<timgauthier_> I’ve been using KirbyCMS for client work, its all PHP, and thats ok because it can run on the server and clients can keep their own site updates with markdown files, and somehow i’ve figured out enough PHP. but this middleman looks nieat
Xeago has quit [Ping timeout: 252 seconds]
<workmad3> timgauthier_: I've only ever looked at it... it seemed pretty pointless to me to pay for a GUI to stuff that was easy to use from the command line :)
eka has joined #ruby
<timgauthier_> and if you are super comfortable in the command line I agree ;)
tjr9898 has joined #ruby
<timgauthier_> I bought gitbox because i’m not, and its nice to have a gui for git! :P
<workmad3> timgauthier_: in the beginning, there was the command line, and for a time it was good
<workmad3> that time has yet to end :)
<timgauthier_> yay! I already like middleman, using frontmatter AND a master config file for choosing layouts..
<timgauthier_> i supose you use vi too eh? :P
<timgauthier_> IRC from Atom.io etc
<workmad3> timgauthier_: I'm not quite that sadistic... I use vim
<workmad3> timgauthier_: and irssi
<timgauthier_> ps, atom.io in the last few days seems to have lost features… or i’ve gotten too used to st3
awukelelexi has quit [Quit: Leaving]
<timgauthier_> i followed some guys guide on the internets and made my prompt in terminal look cooler :P
<halik> Hi guys. Just a question if you use ruby-filemagick (https://github.com/blackwinter/ruby-filemagic). The gem can get the mime type of a file but I was wondering why create the gem when popen can do it in one line? Is it more full proof or something?
<workmad3> timgauthier_: does your prompt have a cat face that gets upset if the last command failed?
<timgauthier_> no.. dang that sounds epic
<error404_> Is atom.io as slow as everyone says it is? I don't have OSX to test it out with.
<timgauthier_> i jsut have things like underscores and stuff
<workmad3> timgauthier_: yeah, not as cool as my prompt then ;)
<timgauthier_> atom.io isn’t slow
jkamenik has joined #ruby
<timgauthier_> well, some things are, but overall its pretty good
<error404_> I see.
<timgauthier_> its got some super powerful things added too it, seems easier or more supported then sublime text for some of the addons.
<timgauthier_> BUT
<timgauthier_> some stuff is super janky and dumb for no reason
phoo1234567 has joined #ruby
<timgauthier_> and i havn’t quit it yet without it crashing, so yeah it is definitely beta or whatever.
<workmad3> timgauthier_: my prompt: http://grab.by/loMs
<timgauthier_> there is no shorthand close tag command at all… which is annoying, and sucks, and i want it to burn in hell
<workmad3> although the dragon prompt char is now a lightning bolt...
yubrew has joined #ruby
CyborgCygnus has joined #ruby
<timgauthier_> when i opened that page flash wanted to update.. what sort of devilry is that?
<timgauthier_> i’d get far too distracted workmad3
<timgauthier_> is middlemand #middleman or #middlemandapp ?
<workmad3> timgauthier_: it's all info I need the majority of the time :)
<timgauthier_> ____________ | ~/Sites/www/tutorial @ spartan-mk3 (timgauthier)
<timgauthier_> | =>
<timgauthier_> thats mine
Martxel has joined #ruby
ahawkins has joined #ruby
<workmad3> timgauthier_: it's just user, machine, folder, git status and ruby version after all... and the second line is last command status
Stalkr^ has joined #ruby
<workmad3> oh, and the right hand side is time and battery status
Rix has quit [Max SendQ exceeded]
<timgauthier_> yeah, i don’t do that much work in the commandline lol, but that is truely impressive. you are in linux?
shredding has quit [Quit: shredding]
Stalkr^ has quit [Changing host]
Stalkr^ has joined #ruby
<workmad3> this is on my mac... but I also push that out to the servers I manage
<ddv> timgauthier_: plenty of zsh frameworks around, with premade prompts
Atrumx has quit [Quit: quitting]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<workmad3> ddv: yeah, this is oh-my-zsh... but a custom theme (I 'borrowed' the base off a friend who probably modified one of the base themes)
aagdbl0 has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 240 seconds]
soulcake has quit [Read error: Connection reset by peer]
danijoo has quit [Read error: Connection reset by peer]
<timgauthier_> has anyone here used middleman?
fabrice31 has joined #ruby
danijoo has joined #ruby
soulcake has joined #ruby
fredmacedo has joined #ruby
rylev has joined #ruby
eythoriu1 is now known as eythorium
Deejay_ has joined #ruby
Stalkr^ has quit [Quit: Linkinus - http://linkinus.com]
sk87 has joined #ruby
<timgauthier_> netsplit?
sski has joined #ruby
crome has quit [Read error: Operation timed out]
moeSeth_ has joined #ruby
<Burgestrand> timgauthier_: I use it for all my static sites.
<Burgestrand> timgauthier_: I use jekyll for my personal website, but that’s only because I made it like four years ago and haven’t had the oomph to remake it with middleman.
dyoko has joined #ruby
<timgauthier_> Burgestrand: does it do includes for partials like jekyll? Lets say I want to include my navigation etc ?
fabrice31 has quit [Ping timeout: 245 seconds]
<Burgestrand> timgauthier_: yeah, partials and layouts: http://middlemanapp.com/basics/templates/
<timgauthier_> i know the site says they do it backwards from PHP, but i find it easier for organizing to have my navigation in one file etc, then i have my sass sheets match up to those
<timgauthier_> yeah i’m looking at that right now, thanks :)
danijoo has quit [Read error: Connection reset by peer]
<timgauthier_> amazing writing
danijoo has joined #ruby
Muz_ is now known as Muz
<Burgestrand> timgauthier_: I know our designers here like middleman as well for their prototypes
<timgauthier_> that is encouraging
<shevy> hehe
<timgauthier_> we designers are good with pixels, not so good wiht taxsyn
crome has joined #ruby
<timgauthier_> syntax
chrisseaton has joined #ruby
<Burgestrand> It’s all about where you enjoy spending your time — I used to like experimenting with different configuration options for hours to make it just perfect, but that grows old once you’ve done it a few hundred times.
<krz> actually halik does have a good point. why does something like https://github.com/blackwinter/ruby-filemagic exist if http://www.ruby-doc.org/core-2.1.0/IO.html#method-c-popen already exists
mehlah has joined #ruby
<Burgestrand> Now I just want to generate my static site skeleton and get to the coding and have something up within the hour.
timonv has joined #ruby
<Burgestrand> krz, halik: popen ≠ filemagic — why shouldn’t it exist?
<timgauthier_> I agree Burgestrand, but also I want to find something i can use over and over. If possible i’d love to find something that I can build a nice static site with, but even better if i can then use it to hand over a site to a client who can still update parts of it themselves :|
<Burgestrand> timgauthier_: indeed!
<timgauthier_> if there was some sort of “backend” that I could plug into things like jekyll or middleman that would be so sweet.
<Burgestrand> timgauthier_: what would that backend do?
<timgauthier_> simply allow them to change or create markdown files then regenerate those portions.
crome has quit [Ping timeout: 245 seconds]
davispuh has joined #ruby
<timgauthier_> basically just allow them to content manage but not touch layout or config.
<Burgestrand> timgauthier_: so your clients don’t have to download the source code to change the site, you mean?
tvw has joined #ruby
<timgauthier_> well more so, so that they don’t have to set up ruby and have the environment so they can recompile the site themselves
blackmesa has joined #ruby
<Burgestrand> Mmm
<timgauthier_> I am thinking Perch might work, but i havn’t played with it yet.
bluenemo has joined #ruby
<timgauthier_> it would replace jekyll/middleman etc but let them have the backend
<krz> Burgestrand: whats the difference? popen command actually runs the file and the filemagic doesnt?
fabrice31 has joined #ruby
crome has joined #ruby
<Burgestrand> krz: popen is just a way to run a command, filemagic figures out types of files, that’s two different use-cases
yalue has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
davedev24 has joined #ruby
<Burgestrand> krz: I suppose you could just use e.g. popen(“file”) and parse the output
ktun has quit [Quit: Textual IRC Client: www.textualapp.com]
<krz> Burgestrand: could popen be abused? as in user uploads a malicious file, server popens it?
klaut has joined #ruby
<Burgestrand> krz: I’m not sure how to put this. popen = runs files, filemagic = checks types of files, similar to merely checking what file extension they have, but more advanced.
Heskie has joined #ruby
Hanmac1 has joined #ruby
<timgauthier_> but when popen opens a file, does it do so in a secure way, aka could that file be a perl script that gets run by the server, or is it sandboxed?
<Burgestrand> popen opens a file as you would open it yourself.
<timgauthier_> sorry, not my question, don’t know more then that, just reprhasing my understanding of the question.
<timgauthier_> ok cool :)
simono has joined #ruby
<timgauthier_> i may have a couple more questions for you Burgestrand on middleman, but i need my AC first. 6%
<krz> so the second question before i post to the author. does filemagic run/opens the file before it determines what kind it is?
karmatr0n has joined #ruby
<krz> kind/type/w
Hanmac has quit [Ping timeout: 250 seconds]
aagdbl0 has joined #ruby
<Burgestrand> krz: you would use popen to run the `file` command, available on systems that have libmagic installed.
<Burgestrand> krz: used correctly, you could read the output of `file some_file.jpg` to figure out what type of file some_file.jpg is.
<Burgestrand> krz: ideally, it should be exactly the same as using ruby-filemagic.
<Burgestrand> krz: in general, when there is a command that does what you want (`file`) and a gem that uses a library (`libmagic`), usually that’s because the command (`file`) does not have all the options available to you when you use the library (`libmagic`). It could be some feature missing, or more detailed output.
pedda has joined #ruby
dukz has quit [Remote host closed the connection]
slawrence00 has joined #ruby
toretore has joined #ruby
<Burgestrand> krz: so, using popen means you might 1) not have all options available to you, 2) you have to parse the output yourself, 3) you have to spawn a separate new `file` process for each file that yo ucheck
karmatr0n has quit [Ping timeout: 250 seconds]
sailias has joined #ruby
<halik> Burgestrand: Thanks for that helpful information≥
sepp2k has joined #ruby
<Burgestrand> krz: using ruby-filemagic means you might 1) have more flexibility (but maybe not), 2) the API is probably simpler
<Hanmac1> hm some systems does have special mime types depending on the filename and not on the content ... (specially are compressed tar archives)
halik has quit [Quit: halik]
<Burgestrand> However, since ruby-filemagic is a C extension it won’t work on jruby, and if it’s badly written it could leak memory
<Burgestrand> Downsides and upsides :)
<timgauthier_> Burgestrand: sorry to go back to middlemand topic, the _partials in middleman can be in any location, not just in an includes folder?! :O!
doodlehaus has joined #ruby
<Burgestrand> timgauthier_: I believe so yes. I tend to put them where they make sense.
<Burgestrand> timgauthier_: i.e. global partials in their own folders, but if I have some page-specific partials I probably put them somewhere else, for example if I have a partial for a list item on a specific page
* Hanmac1 point and laugh about jruby
Hanmac1 is now known as Hanmac
<timgauthier_> I… am so excited! this is exactly where I was having problems with jekyll. I want to include my examples as partials and not have to have them in a folder that makes no sense!
CyborgCygnus has quit [Remote host closed the connection]
aaronmcadam has joined #ruby
* timgauthier_ I raise my kinderbeer Karamalz to you in thanks!
grzywacz has quit [Ping timeout: 252 seconds]
<Burgestrand> You’re welcome, but I didn’t really do anything except recommend something that somebody else built ;)
<timgauthier_> well, you recommended something good so thats something
<krz> Burgestrand: thanks
leonidlm has joined #ruby
<Burgestrand> Give the authors a tweet, I’m sure they’d appreciate it
<timgauthier_> seriously, i’ve been working on this far too long, i’ve jumped from jekyll to nanoc already
AlexRussia has joined #ruby
<Burgestrand> I used nanoc for a day or so three years ago. Wasn’t my thing.
<timgauthier_> ya
<Hanmac> Burgestrand: about filemagic & mime type ... for sample "*.tar.xz" file with -z says: "application/x-tar" & compressed-encoding="application/x-xz" but my file browser says: "application/x-xz-compressed-tar"
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
<Burgestrand> Hanmac: hah, yeah, guessing file types is just making informed guesses of incomplete information
<timgauthier_> how does OSX do it?
Martxel has quit [Ping timeout: 240 seconds]
<Burgestrand> File extension for the most part would be my guess.
<workmad3> probably magic numbers + file extension
<Burgestrand> It’s the common way to do it: expect the person who created the file to have the courtesy of telling you what it is
browndawg has joined #ruby
<Burgestrand> Same with text encoding
sailias has quit [Ping timeout: 240 seconds]
nvrch has joined #ruby
<Burgestrand> Except with text encoding there’s usually even less information to go on, if any at all
Kricir has joined #ruby
<timgauthier_> yeah, i wonder why we don’t have just utf-8, i don’t understand it enough to know if that includes what is needed for other languages though
<Burgestrand> There are some languages where UTF-8 is problematic, but frankly I don’t know how that is.
<timgauthier_> haha
yfeldblum has joined #ruby
<timgauthier_> I remember when i was stuck on windows, all of the text files i’d open that didn’t render correctly.
<Burgestrand> Not UTF-8 specifically, but unicode in general
<apeiros> some asian languages afair. something about the same character being painted in different ways.
<timgauthier_> how does UTF handle upper and lower case?
<timgauthier_> different codes?
<Burgestrand> timgauthier_: different characters
<Burgestrand> yeah
<apeiros> to me it sounded more like something to solve with fonts than by creating different codepoints. but I'm probably too far away to really understand the issue.
<timgauthier_> and since unicode doesn’t contain information for italics and emphesis i can see how you’d either have to make more characters or have problems
<timgauthier_> i suspect the different drawings are based on different tones/ formal informal
tjr9898 has quit [Remote host closed the connection]
andy__ has joined #ruby
<timgauthier_> wtf is up with safari today, just randomly not loading pages...
pavelz_ is now known as pavelz
Kricir has quit [Ping timeout: 240 seconds]
<timgauthier_> I JUST WANT TO STREAM IMOGEN HEEP C’MON!
<workmad3> Burgestrand: japanese and similar languages were languages where unicode encoding was problematic (although a lot of that has now been resolved)
compleatang has quit [Remote host closed the connection]
<timgauthier_> you guys have been super helpful, thank you. I should stop polluting this channel now
yfeldblum has quit [Ping timeout: 240 seconds]
<Burgestrand> Yeah, reading about Shift-JIS (japanese) now
<timgauthier_> this place is worse then wikipedia
<winny> is it faster to why do people use parenthesis in ruby
<workmad3> Burgestrand: and it basically boiled down to the unicode committee 'standardising' the various kanji used across languages and time, so the ancient japanese kanji for grass would be the same as the modern chinese one
<timgauthier_> i’m guessing most of you on right now are also in europe since its rediculously early in NA?
<Burgestrand> workmad3: essentially the mapping table was wrong?
<winny> good morning from the usa
<workmad3> Burgestrand: it wasn't 'wrong'... but it lost information because of that standardisation
<workmad3> Burgestrand: and you don't particularly want a round-trip through character encodings to lose information :)
<timgauthier_> but is it needed information. I mean i’m all for archiving, but who is using the ancient character currently?
nateberkopec has joined #ruby
<Burgestrand> workmad3: yeah, I realize that the round-trip (Shift-JIS -> Unicode -> Shift-JIS) should not lose information, it’s just how it could be that way that has me a bit confused
<timgauthier_> oh … yeah that makes sense
moritzs has joined #ruby
<workmad3> timgauthier_: modern japanese writers who are writing about ancient chinese poetry in the same text?
<Burgestrand> timgauthier_: there’s lots of stuff in unicode that nobody really… needs :)
<shevy> winny it conveys different amount to the programmer: def foo(a,b,c) vs. def foo a,b,c
<shevy> *different information
parduse has quit [Ping timeout: 240 seconds]
<timgauthier_> i just had a sudden realization.. YAML front matter is basically making an open file (html/erb etc) inline with things like a normal file (.docX etc)
danshultz has joined #ruby
<timgauthier_> the front matter is telling the engine (word) what type of file, and what to do with it..
andy__ has quit [Ping timeout: 276 seconds]
* timgauthier_ brain exploads
sdouglas has joined #ruby
<bhaak> timgauthier_: that's not a valid question for unicode as such btw. unicode's goal is to provide every character ever written by humans
<timgauthier_> Burgestrand: bhaak yeah, you guys are right. as a guy who loves his typography, not being able to use those extra character that are correct is a PITA. ° not working on SMS messages being one of those things.
<bhaak> I'm not sure they have explicitly said to only support human scripts, but if not they'll get into trouble when the aliens land :)
meatherly has joined #ruby
<workmad3> Burgestrand: root-problem is really that the unicode committee treated things like japanese kanji as though they were no more than complicated characters
<timgauthier_> or not getting to use that fancy ligiture ft
sk87 has joined #ruby
<timgauthier_> we may have other issues then workmad3
<Burgestrand> workmad3: people writing standards not quite understanding the topic they are standardising. I’ve made that mistake in when developing, I can relate. :)
<workmad3> Burgestrand: yeah :)
<timgauthier_> yeah usually results in me rewriting everything again
<bhaak> ft is one of the legacy characters in unicode. it is a ligature, not a character and therefore it shouldn't have been encoded in unicode. but as it is in older character sets, it had to be included as well
<timgauthier_> now that i understand what it is better
<timgauthier_> bhaak, but does unicode allow for ligatures, or is that expected to be done rendering site?
<timgauthier_> then what about ligatures such as No?
<workmad3> it's been resolved now, aiui... they used a load of the extra space in unused unicode codepoints to extend the character sets to allow the various different kanji to map to different codepoints
<winny> shevy: I mean how does one break that habit?
<Burgestrand> sweet
<timgauthier_> winny: set your code editor to remove them? :P
<winny> I was thinking about a pain incentive
<timgauthier_> haha
<timgauthier_> set your terminal to use system error sound when it has a problem.
<bhaak> timgauthier_: if a ligature is in an older character set, it gets included. but ligatures should be treated at the display level as there are widely different rules depending on languages when you can use a ligature and when not.
<timgauthier_> then set it to a -watch compile
<timgauthier_> BOOM!
_tpavel has quit [Ping timeout: 276 seconds]
<winny> write an emacs package that talks to your electro shock therapy usb dongle
<winny> lol
doodlehaus has quit [Remote host closed the connection]
sdouglas has quit [Ping timeout: 245 seconds]
Martxel has joined #ruby
<timgauthier_> bhaak: but things like the “No” sign (the superscript o after an N) is technically a ligature, however their is no way to write a rule for it like you do with ligatures such as ft tt which use kerning rules to apply
meatherly has quit [Ping timeout: 245 seconds]
<timgauthier_> winny: that works as well
wald0 has joined #ruby
<Burgestrand> timgauthier_: isn’t that a dig… something
<timgauthier_> no
jjbohn has joined #ruby
<timgauthier_> a diagraph is like the SZ in german ß
<winny> if i know i will need to add an element to an array at the beginning, do i save much execution time putting a nil before shoveling anything else (instead of Array.unshift)?
<timgauthier_> which is actually an fs or something, i can’t remember now
alyi has joined #ruby
<Burgestrand> I mean, No is different from N°
<Burgestrand> (used a degree-sign there to simulate the difference)
<timgauthier_> exactly.
* certainty double-checks the channel door. Yepp, it still says #ruby
<timgauthier_> the common abbriviation today (not sure if it is correct) is No. or Nr. but the glyph for it is different
wald0 has quit [Client Quit]
shredding has joined #ruby
<timgauthier_> IRC needs to evolve into having a sub topic option that hashtags and goes into a sub/room :P
<Burgestrand> timgauthier_: yeah, but a ligature can be substituted with the characters making it up and still have the same meaning
<bhaak> timgauthier_: you can't just ligaturizes any ft or tt or st occurrences. for example in German you only may use a st ligature if the st is withing a word and not on a word boundary
jenrzzz has quit [Quit: I haven't slept for ten days, 'cause that would be too long.]
yubrew has joined #ruby
<Burgestrand> like æ and ae
kukyakya has joined #ruby
kukyakya has quit [Remote host closed the connection]
krandi has joined #ruby
<timgauthier_> correct bhaak, but those are rules that an engine can handle. where using No and N° are not so simple as rules, you ahve to have some way to say “I want this specifically"
<Burgestrand> whereas I think a digraph can’t be substituted with the characters making it up, without changing the meaning of the character
<timgauthier_> ah… i see what you mean
<timgauthier_> yeah, not every double s in german is a ß
andikr has quit [Ping timeout: 240 seconds]
Blaze_Boy has joined #ruby
djbender has joined #ruby
<timgauthier_> yup, that confirms it. I’m glad i’m not on the standards board!
parduse has joined #ruby
<Burgestrand> Some things are hairier to deal with than others
<timgauthier_> ps. new spotify desktop client is Suß
maximski has joined #ruby
tjr9898 has joined #ruby
jespada has joined #ruby
<bhaak> especially as some ligatures evolved into new characters over time. so historically they were separate characters but then got "promoted".
yubrew has quit [Ping timeout: 252 seconds]
<Burgestrand> I’m done, was fun nerding encodings and typography again. Bai.
<bhaak> the german esszett is a peculiar one. it evolved from a ligature but it hasn't reached full character state yet. you can always write ss even though this might introduce ambiguities (of course, you only do this if you are Swiss or can't write it "properly")
<timgauthier_> haha
Burgestrand has quit [Quit: Burgestrand]
<timgauthier_> you must be from germany bhaak :P
<winny> is there a way to make irb easy to read?
jjbohn has quit [Quit: Leaving...]
<bhaak> winny: i'm not sure what you mean by "easy to read" but the answer to your question is probably the gem "pry"
<timgauthier_> wait, i know what irb is (now cause google) but where can i see it and how is it hard to read?
<timgauthier_> do you mean in terminal?
<bhaak> timgauthier_: locate me more to the south :)
<workmad3> winny: use a better font and theme in your terminal
<timgauthier_> swiss or austrian
<timgauthier_> probably austiran since you made fun of swiss
<timgauthier_> Source Code Pro 14pt is awesome in terminal
cj3kim has joined #ruby
shashank_rs has joined #ruby
mark_locklear has joined #ruby
<workmad3> winny: I currently recommend the inconsolata font with the VibrantInk colour theme
browndawg has quit [Ping timeout: 252 seconds]
<timgauthier_> I used to use the crap out of inconsolata but i’ve found that source code pro is a bit easier to read, and also free i believe.
cj3kim has quit [Remote host closed the connection]
<timgauthier_> bhaak: i’m in a tiny little village just north of the CZ in Germany.
<timgauthier_> ok, i should stop fooling around with spotify and actually get middleman running
spyderman4g63 has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
<winny> workmad3: thanks but I am pretty fixated with menlo :)
<bhaak> timgauthier_: no, I'm currently in Berne. i'm originally not from one of the most patriotic cantons, so making fun of Swiss is no problem :-)
<workmad3> winny: you were the one complaining about things being hard to read ;)
<winny> oh I mean monaco
<timgauthier_> haha bhaak :P I have some peeps I know in berne, looks nice from what i’ve seen
<winny> yes I was
<bhaak> timgauthier_: if you can stand the awful dialect and the slow mind of the natives, it is a nice little town :)
<timgauthier_> haha
<timgauthier_> I can’t speak german, but i understand saschen decently
<certainty> saschen?
fredmace_ has joined #ruby
<timgauthier_> saxony
<timgauthier_> dialect of saxony
<certainty> ah sachsen :)
<timgauthier_> sorry.. yeah :D
<timgauthier_> certainty: point proven
<certainty> hehe
<shevy> winny you can modify the irb prompt, return values etc.. - I have a zero prompt '' and '' return values too; you can also use colours, via the wirble gem. and you can use ap, awesome_print, for advanced output
<winny> thanks this will help a lot
<winny> i have to share a secret
aagdbl0 has quit [Quit: This computer has gone to sleep]
<winny> i am not a rubyiest
<certainty> i'm german and i have problems understanding "saechsisch" from time to time :)
<timgauthier_> haha really? i find it fairly easy. but thats what i’ve been exposed too, my SO’s family is from here.
alyi has quit [Remote host closed the connection]
habanany has left #ruby [#ruby]
<certainty> yeah it's a weired dialect
<timgauthier_> better then Swabaen(sp?)
<certainty> heh it depends, "schwaebisch" is kind of cute
fredmacedo has quit [Ping timeout: 240 seconds]
bluOxigen has quit [Ping timeout: 240 seconds]
dblessing has joined #ruby
<certainty> they append the suffix "le" often. So Haus gets "Haeusle"
<shevy> it is not a dialect
<timgauthier_> THATS where I got Tschöse from isnt it…
<shevy> it's a throat disease
<timgauthier_> shevy: I actually LOL'ed
moritzs has quit [Ping timeout: 250 seconds]
<certainty> timgauthier_: i'm not sure. I think i never heard that one before
<shevy> saechsisch btw, schwaebisch is ok
klaut has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
klaut has joined #ruby
Veidit has joined #ruby
<timgauthier_> when you install a gem with gem install that is a system wide action right?
<kith> i dont understand anything except hochdeutsch :D
<workmad3> timgauthier_: hmm, source code pro will take me a little getting used to, but it does seem somewhat nice for my terminal :)
<workmad3> timgauthier_: and a bit easier to read in vim
<timgauthier_> kith: is from Hannover ;)
<timgauthier_> workmad3: glad you enjoy it :D
<kith> actually i'm not
SCommette has joined #ruby
<workmad3> timgauthier_: and re: gem installation... it depends
<timgauthier_> workmad3: on what?
<workmad3> timgauthier_: first, on if the GEM_HOME environment variable is used for all users on the system
* Hanmac can understand saechisch but bayrisch is cruel
grzywacz has joined #ruby
mrjensen has quit [Remote host closed the connection]
<workmad3> timgauthier_: also, if the GEM_HOME isn't writable by the current user, gem will fall back to a user install, I believe
<timgauthier_> kith: when i just started to try and say words, every german would tell me i was wrong and ot say it their way… the Hannoverites would tell me that their way was the ONLY way and everyone else was an idiot lol
SCommette has quit [Client Quit]
<shevy> timgauthier_ you can also install to home dir
<kith> hannover is irrelevant :D
shashank_rs has quit [Ping timeout: 252 seconds]
<timgauthier_> workmad3: when I try to do gem install on my mac, i always have to use sudo, but it fails period it doesn’t write to a local user gem install. What I mean by system wide vs folder. Like if i install a gem while in a folder does it install it so only htat folder uses it etc
<shevy> man, we got into a fight in hannover
<Hanmac> timgauthier_: Hannoverites ... sounds like a blood cult ...
<certainty> kith: not as irrelevant as Bielefeld =:-)
<kith> bielefeld is just a rumour
skulker has joined #ruby
<kith> nobody ever was there
<shevy> lol
<kith> for real
<kith> :D
<workmad3> timgauthier_: again, depends on how you install it... but bundler makes it easier to do something like a folder install :)
mrjensen has joined #ruby
<shevy> Hanmac where are you again? Berlin?
workmad3 is now known as wm3|lunch
northfurr has joined #ruby
<wm3|lunch> lunch time here though
<shevy> he recommended bundler and then runs off for food, hah!
<Hanmac> shevy: near Dresden
<timgauthier_> bundler uses gemfiles right? I believe i installed bundler, but i dont think i’ve been using it
<shevy> yeah
<shevy> Hanmac loves bundler btw, you can ask him how to use gemfiles
<timgauthier_> Hanmac: same, Zwichau
<timgauthier_> haha shevy
<Hanmac> certainty: the new airport BER should be build in bielefeld ;P
klaut has quit [Ping timeout: 276 seconds]
<shevy> no
browndawg has joined #ruby
<shevy> destroy bielefeld and erect the new airport on top of that
<timgauthier_> they should just finish the current one
skulker has quit [Remote host closed the connection]
<timgauthier_> haha and by airport you mean no terminal, just flat concrete
<shevy> yes
<kith> airport
<kith> ?
<shevy> all concrete
<kith> whyyy?
<kith> parking lots
<certainty> Hanmac: hah! yeah that we can pretend it never existed as well
<certainty> then
skulker has joined #ruby
iamjarvo has joined #ruby
<shevy> certainty but you already paid for building it!
<certainty> shevy: doesn't matter. It will be cheaper in the long run
<timgauthier_> just blame someone for it
benzrf|offline is now known as benzrf
<timgauthier_> whats worse shevy is that my bank wont let you use charactersin your password and it HAS to be UNDER 10 characters...
<timgauthier_> worst bank ever
[BNC]yvemath has joined #ruby
sigurding has quit [Ping timeout: 240 seconds]
<Hanmac> shevy i still have virgin blood somewhere in my room ... ;P
sigurding has joined #ruby
<certainty> Hanmac: yeah i've read that. It's a bad joke
<timgauthier_> dood, seriously you should clean up after you do that stuff Hanmac
<timgauthier_> at least throw the condoms into the trash!
<timgauthier_> annnnnd we’re past a line. /excuses himself
vt102 has joined #ruby
<Hanmac> timgauthier_: no problem its still in a meat bag ;P
<timgauthier_> ew
ferr has joined #ruby
vt102 has quit [Max SendQ exceeded]
aagdbl has quit [Quit: Connection closed for inactivity]
mjs2600 has joined #ruby
vt102 has joined #ruby
lkba has joined #ruby
<shevy> no
<shevy> timgauthier_
* timgauthier_ listens to imogen heap - hide and seek for the 50th time
<shevy> why did you have to ask!
ktun has joined #ruby
<shevy> we did not want to know!!!
<timgauthier_> yeah, i’m sorry about that
Blaze_Boy has quit [Quit: Blaze_Boy]
eavgerinos has quit [Ping timeout: 264 seconds]
mehlah has quit [Quit: Leaving...]
[BNC]yvemath is now known as kenopio
anaeem1 has quit [Remote host closed the connection]
jamto11 has joined #ruby
jonno11 has joined #ruby
<timgauthier_> that is never encouraging…. middleman had a bunch of conversion errors in the ri documentation…
anaeem1 has joined #ruby
<timgauthier_> s/mobile/source/tools/googleanalyticsformobile/Readme.PDF, skipping
<timgauthier_> unable to convert "\x89" from ASCII-8BIT to UTF-8 for lib/middleman-core/templat
FxK has quit [Ping timeout: 276 seconds]
f3lan has quit [Ping timeout: 240 seconds]
<shevy> yeah
<shevy> encoding stinks
<shevy> it will always stink
<timgauthier_> haha tyeah, i thought it was funny considering our earlier topic
okdas has joined #ruby
northfurr has quit [Quit: northfurr]
<shevy> yeah others spoke a lot about encoding
jamto11 has quit [Ping timeout: 252 seconds]
<shevy> like Burgestrand
anaeem1 has quit [Ping timeout: 245 seconds]
<timgauthier_> yea
Hanmac1 has joined #ruby
cocotton has joined #ruby
momomomomo has joined #ruby
northfurr has joined #ruby
Celm has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
ktun has quit [Quit: Textual IRC Client: www.textualapp.com]
<timgauthier_> oh no if hanmac just disconnected… should i be looking for bright flashes on the horizon?
Hanmac1 is now known as Hanmac
<Hanmac> timgauthier_: internet connection has problems ... if to much up, then no down anymore (because connection died)
<timgauthier_> hmm
ferr has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
skaflem has quit [Quit: Leaving]
<timgauthier_> I wonder if that is similar to what i have been experiencing. We just got fibre to the village. I can look out the window and see the white repeater on the phone poll. Its nice and fast. but if I’m doing a bunch then i just get a webpage that wont load. Like working then bang not working, but everything else is still connecting
* Hanmac has still only 2000
<timgauthier_> 2000?
f3lan has joined #ruby
Celm has quit [Ping timeout: 250 seconds]
aagdbl has joined #ruby
<timgauthier_> and now i’m having connection issue! lol
djbender has quit [Quit: djbender]
<Hanmac> yeah you know, long time ago there was 16k connections, and long before that there was 6k connections ... my internet is still from the times where 2k was "new"
bambuka has quit [Quit: Saliendo]
<timgauthier_> ah
<timgauthier_> still putting your phone next to the speaker
Xeago has joined #ruby
andy__ has joined #ruby
tkuchiki has quit [Ping timeout: 252 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
benzrf is now known as benzrf|offline
_tpavel has joined #ruby
Kricir has quit [Ping timeout: 252 seconds]
Xeago_ has joined #ruby
moritzs has joined #ruby
<timgauthier_> every one of these static site things uses a different localhost port lol
maximski has quit [Ping timeout: 240 seconds]
grzywacz has quit [Ping timeout: 240 seconds]
Bofu2U has quit [Quit: I outta here.]
Megtastique has joined #ruby
<timgauthier_> wtf bundle install command.. bundle exec
djbender has joined #ruby
andy__ has quit [Ping timeout: 252 seconds]
awukelelexi has joined #ruby
iamjarvo has quit [Ping timeout: 245 seconds]
<timgauthier_> bad documentation!!!
<timgauthier_> bloop
sdouglas has joined #ruby
<shevy> yeah
<shevy> have fun with bundler timgauthier_ :)
Xeago has quit [Ping timeout: 276 seconds]
<timgauthier_> i’m going to try and avoid it :P
meatherly has joined #ruby
<bhaak> any particular reason?
nari has joined #ruby
<timgauthier_> I dont understand it or know it, and it seems like another layer of stuff to install and manage
yubrew has joined #ruby
Rix has joined #ruby
shashank_rs has joined #ruby
DouweM has joined #ruby
<shevy> :)
<timgauthier_> though i suspect i am using it without realizing, as i get the same errors running bundle exect middleman server as i got just typing middleman server
<bhaak> I see it as taking some unnecessary stuff out of rubygems.
<timgauthier_> (i need livereload)
<timgauthier_> how so bhaak ?
<bhaak> being more easily able to manage local installations is just bliss.
<Hanmac> shevy see? my rwx does not have this problem ... my stuff does not have "bad" documentation ;P
<timgauthier_> i mean i have it installed… but i dont understand the stack/my tools enough
<timgauthier_> local installations being? to a single folder vs to your entire user?
<bhaak> bundler just enables a sandbox for the project you are currently in.
browndawg has quit [Ping timeout: 252 seconds]
<timgauthier_> the bad documentation was in middlemans getting started. It is missing a step telling you to install the livereload gem
<timgauthier_> yeah bhaak and i like that idae… but i don’t know how to set it up or use it.
<bhaak> you are sure that no other installed gem is wrecking havoc
<timgauthier_> but does that mean you uninstall all the gems on your system?
<bhaak> ah, as long as you have your ruby set up correctly, bundler install should just work fine.
sdouglas has quit [Ping timeout: 240 seconds]
<timgauthier_> or can you install all the gems to your system then create the local sandbox and still have a good time?
<bhaak> yeah
clamstar has quit [Max SendQ exceeded]
clamstar has joined #ruby
meatherly has quit [Ping timeout: 245 seconds]
<timgauthier_> yeah i havn’t a clue, and thats the tough part. All of these things you do in command line are so hard for me to manage. I worry that i can’t just remove and reinstall things. They feel like handling a loaded gun. You don’t know which command will break your system
yubrew has quit [Ping timeout: 245 seconds]
<shevy> Hanmac because you dont have any documentation! but that is ok as long as the examples work
<shevy> I learned ruby-gnome from the examples
Kricir has joined #ruby
<timgauthier_> yeah, and right now my example isn’t working lol. MIddleman server wont load cause i dont have middleman-livereload, installed the middelman-livereload… still not working.
<bhaak> timgauthier_: bundler will at most break your local installation :) that is, the one within your current working directory
<shevy> timgauthier_ whenever you install a gem, that .gem is also in cache/ subdirectory of your ruby SITE_DIR installation
<shevy> on my system this is /Programs/Ruby/Current/lib/ruby/gems/2.1.0/cache/
jxf has joined #ruby
<timgauthier_> i’m sorry shevy that doesn’t really mean much to me :S
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> timgauthier_ well, you can install a .gem from local or from remote ok?
<shevy> "gem install bla" will attempt to download project bla (as gem) from rubygems.org first
<timgauthier_> yes
<shevy> if you have it in the same dir, a bla.gem, then it will try to install that one (if you specified the extension; "gem install bla.gem" would look in the current working directory)
<timgauthier_> and that installs it to your computer
<shevy> bundler does store all the gems also somewhere
<shevy> I am quite sure it will also have them available somewhere there as well
<timgauthier_> so what is the bundler way of installing things? you type bundler install “gem name” ??
<shevy> I think it is bundle exec or so, and uses the Gemfile, or something like that
<timgauthier_> or do you put it in the gemfile and then bundle install and it downloads if it needs, but checks the local cache first?
<shevy> good question haha
<shevy> there is also #bundler btw
<timgauthier_> but they seem scary! :P
<shevy> yeah
mrmargolis has joined #ruby
<shevy> for me, gem itself does all I need to do or have
<olivier_bK> how i can convert a line in file to yaml
klaut has joined #ruby
<olivier_bK> one of line 'activeUserConnectionNumber' => '1',
<bhaak> oh, middleman is a program to be _run_, not something you want as a dependency for your project
<shevy> olivier_bK yaml has inbuilt method to do that
<timgauthier_> gem is the bundler command? or is gem rubygems?
<shevy> YAML.dump()
<timgauthier_> bhaak: yeah, i’m trying to run middleman on my local machine so i can build my site and then output the html
<shevy> olivier_bK, look
<shevy> >> require 'yaml'; YAML.dump({'activeUserConnectionNumber' => '1'})
<shevy> stupid bot!
<shevy> # => "--- \nactiveUserConnectionNumber: \"1\"\n"
<shevy> that's the return value
<shevy> timgauthier_ gem was in place before bundler was created; gem is what rubygems.org uses, to manage addons
<shevy> since ruby 1.9.x something, gem is also part of ruby, at the bin/gem subdirectory
<timgauthier_> ok
<shevy> bundler has one advantage though
<shevy> you can easily use github-based projects
ktun has joined #ruby
doodlehaus has joined #ruby
<timgauthier_> yeah
<timgauthier_> that isn’t helping right now because bundler is not updating or installing things…
<shevy> then again, the functionality of bundler should be integrated into gems IMHO :P
<timgauthier_> i think its an openssl error though :O!
<shevy> haha
oo_ has quit [Ping timeout: 240 seconds]
danijoo has quit [Read error: Connection reset by peer]
paulfm has joined #ruby
danijoo has joined #ruby
<shevy> I am on linux, you are on a mac; we need to find you some osx users, like havenwood, but he is not here right now
<timgauthier_> bundler room looks dead :P
northfurr has quit [Quit: northfurr]
mehlah has joined #ruby
<bhaak> timgauthier_: gem install middleman should installed everything that it needs to run. if it doesn't something is broken.
browndawg has joined #ruby
<timgauthier_> yup
<timgauthier_> something is broken
<timgauthier_> how do i remove middleman to reinstall?
Eomar is now known as Davey
oo_ has joined #ruby
sambao21 has joined #ruby
<timgauthier_> do i have to find it in my filesystem and just delete it?
earth has joined #ruby
aspires has joined #ruby
moritzs has quit [Ping timeout: 240 seconds]
earth has quit [Remote host closed the connection]
<timgauthier_> lets try to install bundle to the vendor/bundle
<timgauthier_> afk
chris_thomson has joined #ruby
CreativeEmbassy has joined #ruby
dunix has joined #ruby
Kricir has quit [Remote host closed the connection]
RowdyChild|Away is now known as RowdyChildren
DouweM has quit [Remote host closed the connection]
rudisimo has joined #ruby
Spleeze has quit [Read error: Operation timed out]
claymore has quit [Ping timeout: 276 seconds]
<shevy> in gem you can uninstall via "gem uninstall name"
grzywacz has joined #ruby
oo_ has quit [Remote host closed the connection]
FxK has joined #ruby
chris_thomson has quit [Quit: Zzz...]
Rollabunna has joined #ruby
rvraghav93 has joined #ruby
sk87 has joined #ruby
rm_ has joined #ruby
alexju has joined #ruby
shashank_rs has quit [Ping timeout: 252 seconds]
Melpaws has quit [Ping timeout: 252 seconds]
Spleeze has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
cocotton has quit [Remote host closed the connection]
Melpaws has joined #ruby
snath has quit [Ping timeout: 240 seconds]
evenix has joined #ruby
arubincloud has joined #ruby
<dideler|work> is this considered readable? url = "http://#{url}" unless url =~ /^https?:\/\// || url.nil?
<dideler|work> or would it be better as
atno has quit [Read error: Connection reset by peer]
<dideler|work> if url
<dideler|work> url = "http://#{url}" unless url =~ /^https?:\/\//
<dideler|work> end
cocotton has joined #ruby
lxsameer has quit [Quit: Leaving]
AlexRussia has quit [Remote host closed the connection]
popl has quit [Ping timeout: 240 seconds]
moritzs has joined #ruby
Kneferilis has joined #ruby
chrisseaton has quit [Ping timeout: 252 seconds]
AlexRussia has joined #ruby
<luckyruby> In general, is it better to pass in an argument to a method vs. using an instance variable?
shashank_rs has joined #ruby
claymore has joined #ruby
<timgauthier_> whats a good way to grab an error from terminal?
<luckyruby> side-effects and all that
asdf10111 has quit [Ping timeout: 276 seconds]
slawrence00 has joined #ruby
RowdyChildren is now known as RowdyChild|Away
<canton7-mac> dideler|work, personally I don't like having 'unless' with && or ||. So I'd go url = "http://#{url}" if !url.nil? && url !~ %r{^https://}
<shevy> dideler|work both is pretty awful
zachallett has joined #ruby
<dideler|work> canton7-mac: interesting, thanks
<canton7-mac> dideler|work, with your explicit 'if' options - again, put both conditions in the 'if'
<dideler|work> canton7-mac: good point
<zaargy> luckyruby: passing arguments is preferable as you say
<zaargy> easier to test, fewer side-effects
<canton7-mac> actually with my first example - use 'if url' instead of 'if !url.nil?', unless url might be false
<dideler|work> it should never be false
<zaargy> but if you need to use a var in more than two methods or something then maybe an instance method is better
<zaargy> instance var even
* zaargy shrugs
<zaargy> it depends
mr_snowf1ake has quit [Ping timeout: 240 seconds]
osvico has quit [Read error: Connection reset by peer]
afreidah1 has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
fredmace_ is now known as fredmacedo
osvico has joined #ruby
<luckyruby> zaargy: https://gist.github.com/luckyruby/10367250 any feedback would be super appreciated.
rylev has quit [Remote host closed the connection]
freezey has joined #ruby
rylev has joined #ruby
<timgauthier_> so here is my error and gemfile https://gist.github.com/timgauthier/10384291
Nukepuppy has joined #ruby
rylev has quit [Read error: Connection reset by peer]
rudisimo has quit []
s3ri0us has joined #ruby
rylev has joined #ruby
afreidah1 has quit [Ping timeout: 245 seconds]
rm_ has quit [Read error: Connection reset by peer]
rm_ has joined #ruby
<dideler|work> shevy: err, just noticed i pinged the wrong person (meant to be you) when i said "good point"
DouweM has joined #ruby
lmickh has joined #ruby
pablovilas has joined #ruby
<timgauthier_> sorry, yeah, my error is trying to bundle install, getting things like openSSL and such.
f3lan has quit [Ping timeout: 250 seconds]
shredding has quit [Quit: shredding]
klaut has quit [Remote host closed the connection]
axl_ has joined #ruby
jamto11 has joined #ruby
klaut has joined #ruby
<shevy> dideler|work ah I would not have known myself because canton7-mac made a good point
<shevy> it is indeed easier to read just one if-check (even if there are two of them), rather than one unless-check there (also being two of them, or even worse, mixed if/unless spaced on different lines AND a regex check)
fgo has joined #ruby
<dideler|work> shevy: yeah i realized after i said my err that it also applied to him (so maybe i didn't err). my irc client gabe your nicks the same highlight color so i got confused
<shevy> haha
<shevy> you should watch benzrf|offline here, he is the master of mis-tab completions on IRC
<canton7-mac> 'unless *this* AND *this*' i can mentally parse. I always seem to have problems with 'unless *this* OR *that*' for some reason. it gets even worse when you add more conditions, or nots, etc
<shevy> damn it
<shevy> what's with you guys
nowthatsamatt has joined #ruby
<shevy> one is offline, the other at work
shevy is now known as shevy|idling
<shevy|idling> ok now you did it
momomomomo has quit [Quit: momomomomo]
sambao21 has quit [Quit: Computer has gone to sleep.]
<dideler|work> lol
monsieurp has quit [Quit: leaving]
chipotle has joined #ruby
<timgauthier_> haha
Lewix has joined #ruby
andy__ has joined #ruby
wald0 has joined #ruby
<timgauthier_> I am about to get my nag on with this issue, i literally can’t progress and I don’t know how to deal.
fredmacedo has quit []
<shevy|idling> timgauthier_ are you at work
yubrew has joined #ruby
wald0 has quit [Client Quit]
<shevy|idling> well can you repeat
<shevy|idling> what was the issue again
<shevy|idling> it must be brought down to simple ways to solve it
xerxas has joined #ruby
<shevy|idling> that's the only way how I can program
<timgauthier_> well i’m a home worker
monsieurp has joined #ruby
sambao21 has joined #ruby
<shevy|idling> if it is complex, it is above my level of understanding so I bring it down to my level, then I beat it with hands and feet
<shevy|idling> and I also bite
<timgauthier_> I am trying to run middleman local, when i do bundle install i get a raft of errors https://gist.github.com/timgauthier/10384291
<shevy|idling> and if nothing helps, I remove it
<shevy|idling> rm -rf /*
<timgauthier_> haha sounds pretty good
<timgauthier_> :P
klaut has quit [Ping timeout: 240 seconds]
afreidah1 has joined #ruby
<shevy|idling> middleman
<shevy|idling> is that a gem?
jlast has joined #ruby
<shevy|idling> Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
<shevy|idling> aha
<shevy|idling> you are trying to build something again and it fails
zz_jrhorn424 is now known as jrhorn424
<shevy|idling> I dont know what though from that message lol
<shevy|idling> bundler is weird
Xeago_ has quit [Remote host closed the connection]
<shevy|idling> compiling rubymain.cpp
cocotton has quit [Remote host closed the connection]
<shevy|idling> ok some C++ project yes?
<shevy|idling> where is rubymain.cpp
<timgauthier_> middleman is a gem yes
<shevy|idling> ok good
<timgauthier_> i have no idea lol
<shevy|idling> try this: gem install middleman
<shevy|idling> it will probably fail but it must be another error than bundler
<timgauthier_> yup ok i’ll do that
andy__ has quit [Ping timeout: 240 seconds]
aagdbl has quit [Quit: This computer has gone to sleep]
yubrew has quit [Ping timeout: 240 seconds]
<shevy|idling> ok I am doing it too
<shevy|idling> "gem install middleman"
<shevy|idling> it installs a BUNCH of addons
<shevy|idling> this thing is huge
<shevy|idling> it's gigantic
<shevy|idling> literally the whole www is gem-installed right now
<timgauthier_> haha
<shevy|idling> but
<shevy|idling> the good news is
<canton7-mac> yeah, it's failing to compile eventmachine using clang
<shevy|idling> it just finished installing here without any errors
kpshek has joined #ruby
<shevy|idling> aha, ok good
<shevy|idling> now you know what is failing
<timgauthier_> mines still sitting here with a flashing cursor :P
sambao21 has quit [Ping timeout: 250 seconds]
sdouglas has joined #ruby
<shevy|idling> yeah well
<shevy|idling> lemme first paste you what I got here ok
<timgauthier_> any idea how to addres that canton?
<timgauthier_> cause i have just been following their getting started guide, this is the frustrating part that usually has me giving up
<canton7-mac> looks like it's using things which your openssl lib thinks are deprecated?
<shevy|idling> are you sure it is eventmachine failing timgauthier_ ?
<shevy|idling> is the error saying htat
<canton7-mac> timgauthier_, see if eventmachine have published a binary build for your platform
dblessing has quit [Quit: dblessing]
<canton7-mac> there are plenty of problems compiling eventmachine for various platforms, so there's a lot on the net
<shevy|idling> hmm
<canton7-mac> you'll probably end up specifying a specific eventmachine version in your Gemfile
<timgauthier_> the error I pasted is direct copy of terminal after running it
<canton7-mac> and bundler will go and download the binary for that version, and everything will be fine
Melpaws has quit [Ping timeout: 276 seconds]
<canton7-mac> or... v
tvw has quit []
Es0teric has joined #ruby
tvw has joined #ruby
<canton7-mac> looks like ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future bundle install might do it
<timgauthier_> ahaha what?
<canton7-mac> gem's trying to use clang to compile ruby stuff, which isn't properly supported yet (gcc is the norm)
<timgauthier_> ok, how do i do that? what is the syntax?
<canton7-mac> I just pasted it....?
<timgauthier_> yeah that makes sense canton7-mac :D
shashank_rs has quit [Ping timeout: 252 seconds]
<timgauthier_> so like literally that before gem install ?
fgo has quit [Remote host closed the connection]
<timgauthier_> nm, i read it now.
<timgauthier_> My brain wasnt’ parsing that correctly
_tpavel has quit [Ping timeout: 245 seconds]
rayners has joined #ruby
chipotle has quit [Quit: cya]
sdouglas has quit [Ping timeout: 250 seconds]
jobewan has joined #ruby
<timgauthier_> so i should use that to install eventmachine?
FxK has quit [Quit: (I was using Polaris SE) Version: 4.2. Webpage: http://polarisse.tripod.com/. Wasted: 35 Minutes and 52 Seconds Online.]
Kricir has joined #ruby
<canton7-mac> try using that command - the one I pasted
<timgauthier_> ok
<canton7-mac> if that doesn't work, try e ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install eventmachine
axl_ has quit [Quit: axl_]
tkuchiki has joined #ruby
kevind has joined #ruby
pablovilas has quit [Read error: Connection reset by peer]
m8 has joined #ruby
pablovilas has joined #ruby
browndawg has quit [Ping timeout: 240 seconds]
kerin has joined #ruby
earth has joined #ruby
elaptics is now known as elaptics`away
CorySimmons has joined #ruby
iamjarvo has joined #ruby
elaptics`away is now known as elaptics
elaptics is now known as elaptics`away
mark_locklear has quit [Ping timeout: 240 seconds]
benzrf|offline is now known as benzrf
karmatr0n has joined #ruby
<timgauthier_> well, its taking a long time, but no errors yet :_
<timgauthier_> :) i’m writing a stack overflow self answer with this
Macaveli has joined #ruby
saarinen has joined #ruby
browndawg has joined #ruby
<timgauthier_> anyone use atom.io anyone know if they have an IRC room?
wm3|lunch is now known as workmad3
greenarrow has quit [Quit: 500]
danijoo has quit [Read error: Connection reset by peer]
<mieko> timgauthier_: ##atom
_tpavel has joined #ruby
greenarrow has joined #ruby
cocotton has joined #ruby
danijoo has joined #ruby
elaptics`away is now known as elaptics
Xeago has joined #ruby
lolmaus has joined #ruby
DouweM has quit [Read error: Connection reset by peer]
RowdyChild|Away is now known as RowdyChildren
<timgauthier_> that worked thank you very very very much canton7-mac and shevy|idling
cocotton has quit [Remote host closed the connection]
<shevy|idling> \o/
DouweM has joined #ruby
shevy|idling is now known as shevy
monsieurp has quit [Quit: leaving]
Kricir has quit [Ping timeout: 258 seconds]
monsieurp has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
pablovilas has quit [Quit: Leaving]
ikaros has quit [Quit: Ex-Chat]
sailias has joined #ruby
<canton7-mac> timgauthier_, didn't take much googling ;)
Kricir has joined #ruby
cocotton has joined #ruby
<timgauthier_> i couldn’t figure it out/find it
<timgauthier_> the open SSL part was a red herring to me
mary5030 has joined #ruby
saarinen has quit [Ping timeout: 250 seconds]
mary5030 has quit [Remote host closed the connection]
<timgauthier_> ok, so that “middle man is watching” is creepy… i mean i get the joke, but still.
ikaros has joined #ruby
saarinen has joined #ruby
mary5030 has joined #ruby
<workmad3> timgauthier_: get your middleman using crack and a good time will be had by all
yubrew has joined #ruby
<workmad3> timgauthier_: http://rubygems.org/gems/crack
dblessing has joined #ruby
CreativeEmbassy has quit [Quit: FO SHO]
<timgauthier_> thats funny :P
<timgauthier_> are you being serious though?
moeSeth_ has quit [Quit: Connection closed for inactivity]
SCommette has joined #ruby
<workmad3> timgauthier_: not particularly :)
<shevy> people can give any names to their projects
andy__ has joined #ruby
<shevy> many people are idiots though so that explains why there are many totally stupid names for gems
<shevy> like god
dyoko1 has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
dyoko has quit [Quit: Leaving.]
mengu has quit []
<apeiros> what's stupid about that name?
<apeiros> god watches the daemons
<shevy> I don't believe in fantasy
CreativeEmbassy has joined #ruby
<toretore> shouldn't it be called satan then?
<shevy> unless you can give me 0 and 1
andy__ has quit [Remote host closed the connection]
<apeiros> toretore: fork it? :)
<apeiros> shevy: so? you don't have to in order to understand the name
klaut has joined #ruby
andy__ has joined #ruby
Kruppe has quit [Quit: ZNC - http://znc.in]
FxK has joined #ruby
<ddv> shevy: you call that github founder an idiot?
shashank_rs has joined #ruby
tagrudev has quit [Remote host closed the connection]
andy___ has joined #ruby
Bofu2U has joined #ruby
sski has quit [Remote host closed the connection]
<timgauthier_> is he the github founder on leave becuase his wife was abusive to employees?
sski has joined #ruby
<shevy> apeiros nah, I don't use it
Kruppe has joined #ruby
arietis has joined #ruby
<toretore> go easy on him, everyone has their daemons
<shevy> ddv I don't know who founded github and I also don't know how it relates to. you can create great project and still give idiotic names to projects
saarinen has quit [Quit: saarinen]
red234324 has joined #ruby
IceDragon has joined #ruby
<workmad3> shevy: idiotic names have a habit of being memorable names too
<ddv> shevy: that guy from github made god
<ddv> some founder
<workmad3> shevy: I've never used crack... but I still remember it
<toretore> ddv: who cares
<shevy> lol workmad3
jason_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
<workmad3> shevy: also, I bet the god maintainers have lots of in-jokes that keep their morale up :)
<shevy> workmad3
<workmad3> shevy: the releaser gets to constantly make the joke that he's releasing god onto all the daemons of the world
<shevy> if you repeat the crack joke now once more
<shevy> I am gonna have to slay a kitten
andy__ has quit [Ping timeout: 245 seconds]
danijoo has joined #ruby
jason_ has quit [Remote host closed the connection]
<shevy> ddv see! ^^^
<Hanmac> workmad3: "bog fixed, faith has increased"
<shevy> ddv they make silly jokes
<shevy> wtf is a bog
<Hanmac> i mean bug
<workmad3> shevy: a bog is a toilet... or a swamp
Melpaws has joined #ruby
<Hanmac> yeah some swamp need to be fixed too ;P
<shevy> ddv look at this gem: https://rubygems.org/gems/sex
snath has joined #ruby
sski has quit [Ping timeout: 240 seconds]
<shevy> here is another one: https://rubygems.org/gems/shit
<ddv> lol
agarie has joined #ruby
<shevy> this one also exists: https://rubygems.org/gems/fuck
rm_ has quit [Remote host closed the connection]
<workmad3> shevy: at least crack has a point
ktun_ has joined #ruby
<shevy> the description is funny though
ktun has quit [Read error: Connection reset by peer]
<shevy> "Makes things slower, so you have to optimize the hard stuff first."
<shevy> perfect anti-feature
rm_ has joined #ruby
pu22l3r has joined #ruby
<timgauthier_> lol
pu22l3r has quit [Remote host closed the connection]
<shevy> workmad3 you are still doing crack jokes!
jjbohn has joined #ruby
pu22l3r has joined #ruby
<workmad3> shevy: I don't mean to, they just happen!
<shevy> but no weed gem :(
<workmad3> shevy: crack is its own source of unique entertainment...
<workmad3> (ok, that one was deliberate...)
freerobby has joined #ruby
sdouglas has joined #ruby
<timgauthier_> “processing pot"
<shevy> workmad3 look at you go! :)
<shevy> no please timgauthier_ don't start now...
<workmad3> shevy: I expect a video of you as you slay those kittens...
<shevy> workmad3 yeah, with VENGEANCE
<shevy> but first I need to run to buy something to eat soon...
alexju has quit [Ping timeout: 276 seconds]
<workmad3> shevy: if you slay the kittens first, then you don't need to go and buy food...
rayners has quit [Remote host closed the connection]
<timgauthier_> haha, a business app featured on the app store (mac) for tasks with a tagline “The cool new way to…” i stopped reading. Someone who introduces a Business app with that language isn’t really a business minded person
arietis has quit [Quit: Computer has gone to sleep.]
rm_ has quit [Ping timeout: 276 seconds]
thrillagorilla has quit [Ping timeout: 272 seconds]
<workmad3> timgauthier_: hmm... isn't that the tagline for codekit? :)
<timgauthier_> i don’t even know :P
<workmad3> timgauthier_: but I guess that isn't business-oriented :)
<timgauthier_> yeah, i expect dev related things to be lame jokes
sambao21 has joined #ruby
drasch has left #ruby [#ruby]
<workmad3> timgauthier_: lame? or AWESOME!!!
* workmad3 hands the crack gem to timgauthier_
<timgauthier_> STUPENDOUS!
pu22l3r_ has joined #ruby
* timgauthier_ sniffs crack gem
<workmad3> timgauthier_: how about some meth too? http://rubygems.org/gems/meth
* workmad3 hopes that whichever law enforcement agencies are reading this takes it all in context
<timgauthier_> naw man, too many dependancies
meatherly has joined #ruby
andy___ has quit [Remote host closed the connection]
arietis has joined #ruby
andy__ has joined #ruby
pu22l3r has quit [Ping timeout: 252 seconds]
CorySimmons has quit [Quit: Bye!]
moritzs has quit [Ping timeout: 240 seconds]
predator117 has left #ruby [#ruby]
machete has quit [Quit: don't panic]
machete has joined #ruby
<timgauthier_> oop, neighbor started a fire, plumes of smoke going past my window lol
axl_ has joined #ruby
enebo has joined #ruby
Fire-Dragon-DoL has joined #ruby
toastynerd has joined #ruby
axl_ has quit [Client Quit]
bean__ has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
ccham has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
workmad3 has quit [Quit: Lost terminal]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
klaut has quit [Remote host closed the connection]
klaut has joined #ruby
maximski has joined #ruby
Celm has joined #ruby
Heskie_ has joined #ruby
Heskie has quit [Ping timeout: 252 seconds]
Heskie_ is now known as Heskie
jorts has joined #ruby
shashank_rs has quit [Ping timeout: 276 seconds]
anarang has quit [Quit: Leaving]
spicerack has joined #ruby
Celm_ has joined #ruby
workmad3 has joined #ruby
havenwood has quit [Client Quit]
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
mark_locklear has joined #ruby
yfeldblum has joined #ruby
alexju has joined #ruby
fgo has joined #ruby
klaut has quit [Ping timeout: 245 seconds]
toastynerd has quit [Remote host closed the connection]
Aquilo has quit []
Celm has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
Melpaws has quit [Quit: Leaving.]
Deejay_ has quit [Quit: Computer has gone to sleep.]
mary5030 has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
<workmad3> timgauthier_: here's my prompt now btw: http://grab.by/vVLM
bal has quit [Quit: bal]
<workmad3> timgauthier_: upgraded to mavericks since the last screenshot and now monago has emoji, so I can use nicer stuff symbols for things :)
apeiros has quit [Remote host closed the connection]
djbender has quit [Quit: djbender]
moritzs has joined #ruby
apeiros has joined #ruby
QKO has quit [Ping timeout: 252 seconds]
<workmad3> *monaco
mary5030 has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
QKO has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
danshultz has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 258 seconds]
sski has joined #ruby
danshultz has joined #ruby
blassin has joined #ruby
meatherl_ has joined #ruby
blassin has quit [Client Quit]
_justin has quit [Quit: _justin]
danshultz has quit [Read error: Connection reset by peer]
blassin has joined #ruby
arturaz has quit [Ping timeout: 252 seconds]
Fretta has joined #ruby
danshultz has joined #ruby
meatherly has quit [Ping timeout: 245 seconds]
bluenemo_ has joined #ruby
bluenemo_ has quit [Changing host]
bluenemo_ has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
pu22l3r_ has quit [Ping timeout: 240 seconds]
crome has quit [Ping timeout: 252 seconds]
<timgauthier_> monaco is what workmad3 ?
sski has quit [Ping timeout: 250 seconds]
mary5030_ has joined #ruby
pu22l3r has joined #ruby
crome has joined #ruby
pu22l3r has quit [Remote host closed the connection]
_tpavel has quit [Ping timeout: 276 seconds]
<workmad3> timgauthier_: default font for console in OS X
pu22l3r has joined #ruby
<timgauthier_> ah
treehug88 has joined #ruby
<workmad3> timgauthier_: I only use it for utf8 chars
<timgauthier_> isn’t emojji seperate from the font?
mary5030 has quit [Ping timeout: 240 seconds]
ahawkins has quit [Quit: leaving]
glanzi has joined #ruby
glanzi has left #ruby [#ruby]
glanzi has joined #ruby
<workmad3> timgauthier_: no, they're just utf-8 characters
<timgauthier_> I see
<timgauthier_> workmad3: why isn’t the hedtek site responsive?
Shidash has joined #ruby
<workmad3> timgauthier_: because we need to rebuild it :P
mikee has quit [Remote host closed the connection]
<workmad3> timgauthier_: it's a fairly old wordpress install with a theme that my boss hacked together over a few weekends about 4 years ago
<timgauthier_> you… should punch him in the shoulder.
<timgauthier_> it’d be so easy to change to responsive… unless you are trying to build a wordpress install. so much bloat
rdark has quit [Quit: leaving]
budrose has joined #ruby
<workmad3> timgauthier_: we need to rebuild it... it's on the cards, it's just finding the time :)
rdark has joined #ruby
toastynerd has joined #ruby
hfp`away is now known as hfp
<workmad3> timgauthier_: that's one of the reasons I've played a little bit with middleman ;)
<timgauthier_> hire someone :P haha
freezey has quit [Remote host closed the connection]
jjbohn has quit [Quit: Leaving...]
<workmad3> timgauthier_: then we need to find the time to find someone, do interviews, etc...
mary5030_ has quit [Remote host closed the connection]
Lucky_Red has quit [Quit: Leaving...]
rudisimo has joined #ruby
<timgauthier_> pft. you don’t interview a designer… you meet with :P
mary5030 has joined #ruby
<workmad3> timgauthier_: and I'm also aware that my personal site is trashed at the moment too :)
<timgauthier_> i’m just buggin ya
mary5030 has quit [Remote host closed the connection]
<timgauthier_> yeah, i didn’t look there, also don’t look at mine its horrible. thats why i’ve been on this “adventure” to learn jekyll and now middleman
<workmad3> timgauthier_: bad website is a sign of a good dev... it means they're too busy to updated it ;)
fabrice31 has quit [Remote host closed the connection]
<timgauthier_> not always… I wasn’t super busy. I was lazy
djbender has joined #ruby
<timgauthier_> I’ve put aside other possible work i could do to work on my site though to actually learn some stuff that I wouldn’t let myself experiment with on client work
* workmad3 watches that joke drop like a lead balloon
rudisimo has quit [Client Quit]
cover_ has joined #ruby
rudisimo has joined #ruby
sdouglas has quit [Remote host closed the connection]
mary5030 has joined #ruby
sdouglas has joined #ruby
cover has quit [Ping timeout: 276 seconds]
mary5030 has quit [Remote host closed the connection]
maletor has joined #ruby
dangerousdave has joined #ruby
mary5030 has joined #ruby
donnoc has joined #ruby
blassin has left #ruby [#ruby]
DaniG2k has quit [Quit: leaving]
teddyp1cker has quit [Remote host closed the connection]
Guest61215 is now known as ixx
michaeldeol has joined #ruby
timgauthier__ has joined #ruby
<timgauthier__> you know what did drop like a lead balloon? My connection, HEYYOO!
sdouglas_ has joined #ruby
timgauthier_ has quit [Ping timeout: 276 seconds]
iateadonut has joined #ruby
<timgauthier__> man, now i’m like, explaining to the guy who wrote nanoc why i’m not using it anymore. cause he showed up and was going to help me with my original issue :S
teddyp1cker has joined #ruby
<timgauthier__> I know i dont have too, but i feel bad for not choosing his free and open source project for my website :P
Nomikos has joined #ruby
sdouglas has quit [Ping timeout: 258 seconds]
<iateadonut> he doesn't care.
maletor has quit [Ping timeout: 252 seconds]
<iateadonut> you shouldn't feel bad (in the sense of guilt), just stupid.
Nomikos has left #ruby [#ruby]
<timgauthier__> *sigh* yeah i don’t know why lol
blackmesa has quit [Ping timeout: 240 seconds]
LadyRainicorn has joined #ruby
<jlebrech> is there a way to add some extra data before a raise? like, i wanna know about variables a, b and c if an error is raised?
<iateadonut> i was working on a prime number finder in php (a challenge on codeeval) and i saw this on github: https://github.com/sds/codeeval/blob/master/moderate/prime-numbers/prime-numbers.rb - i don't know any ruby. how does this code fine prime numbers?
<iateadonut> s/fine/find/
Macaveli has quit [Quit: Leaving]
<timgauthier__> math?
Xeago_ has joined #ruby
<LadyRainicorn> raise MyException.new(a,b,c)
<Hanmac> with evil black magic
teenwolf has joined #ruby
<iateadonut> Hanmac, that's what it looks like.
<timgauthier__> i love ruby magic
<workmad3> iateadonut: looks like one of these: http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes
arietis has quit [Quit: Computer has gone to sleep.]
<Hanmac> iateadonut: the prime numbers file you show is also shitty ruby ... that can be done better (and it leeves a file open)
dukz has joined #ruby
sethen has quit [Ping timeout: 240 seconds]
dyoko1 has quit [Ping timeout: 252 seconds]
<workmad3> >> require 'prime'; Prime.take(4)
<eval-in> workmad3 => [2, 3, 5, 7] (https://eval.in/135008)
<workmad3> woo, 4 primes! :D
Xeago has quit [Ping timeout: 240 seconds]
dyoko has joined #ruby
m1lt0n has quit [Quit: Lost terminal]
donnoc has quit [Read error: Connection reset by peer]
<workmad3> Hanmac: is it cheating to use Prime? :)
<Hanmac> workmad3: so which of this primes is Optimus? ;P
pierre1_ has joined #ruby
<iateadonut> i'm pretty sure it's cheating to use Prime
donnoc has joined #ruby
<iateadonut> (2*i..largest).step(i) - what does this do?
rudisimo has quit []
apeiros has joined #ruby
<timgauthier__> IT IS NOT CHEATING TO USE THE BEST CODE
zachallett has quit [Remote host closed the connection]
<workmad3> Hanmac: dunno... Prime.each_with_index {|p, idx| puts p if idx == "Optimus".hash} would tell you ;)
Raboo has quit [Quit: heartbleed patching my irc]
<iateadonut> it's against the rules. i think you're supposed to develop your own prime function.
<shevy> awesome
<workmad3> iateadonut: it isn't against *my* rules :P
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
rudisimo has joined #ruby
earth has quit [Quit: earth]
<shevy> timgauthier__ well, in the long run, any feedback you provide him with will eventually help him improve his project; that's how you should look at it
sk87 has joined #ruby
<LadyRainicorn> If I were evaluating someone ุ the only correct solution would be using Prime.
toastynerd has quit [Remote host closed the connection]
<LadyRainicorn> But maybe that is a factor why I don't evaluate people.
baroquebobcat has joined #ruby
<shevy> LadyRainicorn as long as you evaluate ponicorns!
<timgauthier__> shevy: yeah, I just feel like the things I say are going to be “yeah you can do that this way” with a bunch of what appears as gibberish to me. I don’t wanna frustrate the poor guy
<workmad3> LadyRainicorn: I'd also accept someone that provided a custom prime generator for Prime that implemented an algorithm that was better than Eratosthenes
<Hanmac> shevy look its a Thermosaurus http://www.artlebedev.com/everything/teplosaurus/
<iateadonut> LadyRainicorn, ha
browndawg has left #ruby [#ruby]
<iateadonut> workmad3, i used the AKS test but it was too slow.
<iateadonut> (AKS was proven in 2002 and works with all primes)
<timgauthier__> shevy: and now i feel like he’s trying to convince me to use his project again
aganov has quit [Quit: Leaving]
* timgauthier__ slams head desk
krandi has quit [Remote host closed the connection]
fridim_ has quit [Ping timeout: 240 seconds]
<workmad3> iateadonut: unsurprisingly, I don't care too much about primes ;) I gave you a link to how that prime seive works...
<lagweezle> timgauthier__: meep?
blackmesa has joined #ruby
<timgauthier__> meep?
<timgauthier__> I was having problems using nanoc, got help, was suggested middleman, had problems with middleman, got help. Now writer of Nanoc is trying to help me as I explain why I went to middleman. Now the whole day is gone, didn’t do any work.
donnoc has quit [Ping timeout: 276 seconds]
<workmad3> Hanmac: I've given up on finding the Optimus prime now... I have a suspicion it would take my machine something approaching a millenia to calculate that many primes...
Solnse has joined #ruby
afreidah1 has quit [Ping timeout: 245 seconds]
<timgauthier__> i like 7, 7 is nice
<workmad3> Hanmac: as "Optimus".hash came out as '2904413381325879849' on my first run :)
<timgauthier__> i forgot to ping you lagweezle
freezey has joined #ruby
<timgauthier__> on that explain
anaeem1 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<timgauthier__> theoretically my .erb files should be the same for nanoc or middleman right?
kevind_ has joined #ruby
<lagweezle> timgauthier__: Ah! Thank you. *reads on those gem things*
<timgauthier__> you are reading up on the two gems? both are just SSG's
<lagweezle> Skimming, really.
<lagweezle> I need to figure out some way of organizing these things that look intersting for when I have time and brain to dedicate to looking them over.
SCommette has quit [Quit: SCommette]
<timgauthier__> evernote
<timgauthier__> schedule: later
maximski has quit []
<lagweezle> Grape is one I'm VERY interested in, though! Wish I'd known of it earlier. :)
<lagweezle> hehehe
<timgauthier__> random time in the future it reminds you. As of yet i havn’t found anything better
<timgauthier__> fuccccc another one? REALLY, YOU DO THAT TO ME!
<lagweezle> Maybe I should give in and install the elephant.
DaniG2k has joined #ruby
<lagweezle> timgauthier__: Wait, what?
nvrch has quit [Quit: nvrch]
<timgauthier__> whats grape?
<timgauthier__> and why am I googling for it
glide has joined #ruby
<lagweezle> OH! No! No. It isn't for static sites. It is a REST API ... er ...
<workmad3> timgauthier__: it's a fruit!
<lagweezle> thign
<lagweezle> one sec
kevind has quit [Ping timeout: 250 seconds]
<timgauthier__> nm then :P
<workmad3> timgauthier__: it's also a ruby library for building APIs...
kevind_ is now known as kevind
<timgauthier__> ah sweet
<timgauthier__> so cake for ruby? :P
<lagweezle> timgauthier__: http://intridea.github.io/grape/ REST-like API microframework
<lagweezle> cake?
<timgauthier__> cake is a PHP library
<workmad3> timgauthier__: no, cake is rails for PHP :P
<timgauthier__> and it isn’t for api's
<timgauthier__> yeah i know :P
<timgauthier__> stuff isn’t loading. but neat
sambao21 has joined #ruby
<lagweezle> ... rails for PHP ... O.o I'm not sure I want to know.
rudisimo has quit []
mrjensen has quit [Remote host closed the connection]
<timgauthier__> haha
<timgauthier__> I used PHP for my last project. KirbyCMS
<timgauthier__> “static” but everything is a PHP file and I just pumped it full of php goodness in them templates
klaut has joined #ruby
subbyyy_ has joined #ruby
jeregrine has joined #ruby
MrJiks has joined #ruby
Hobogrammer has joined #ruby
breakingthings has joined #ruby
leonidlm has quit [Ping timeout: 250 seconds]
<olivier_bK> how i can convert a file with line like this one 'feature_bkconnect'' => ''34e01e6269b407cf39eef6dd8efb3' on yaml ?
<olivier_bK> i try with YAML.dump(file) but i dont get yml
<olivier_bK> :(
noop has quit [Ping timeout: 240 seconds]
centrx has joined #ruby
<MrJiks> Yes, that file could be your hash.
luriv has joined #ruby
<olivier_bK> how i can convert it to yaml ?
Bumptious has quit [Remote host closed the connection]
bluenemo_ has quit [Remote host closed the connection]
bluenemo has quit [Remote host closed the connection]
bean__ has quit [Remote host closed the connection]
LadyRainicorn has quit [Remote host closed the connection]
fridim_ has joined #ruby
frem has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
danshultz has joined #ruby
<Hanmac> apeiros: didnt you have a parser for that?
<apeiros> what?
blackavr has quit [Quit: blackavr]
f3lan has joined #ruby
rudisimo has joined #ruby
<apeiros> literal_parser, yes
gregf has quit [Quit: WeeChat 0.4.3]
radic has quit [Quit: ZNC - http://znc.in]
sambao21 has quit [Read error: Connection reset by peer]
radic has joined #ruby
<shevy> olivier_bK hey man
shashank_rs has joined #ruby
<shevy> olivier_bK first, what is this here:
alexju has quit [Ping timeout: 250 seconds]
<shevy> 'feature_bkconnect'' => ''34e01e6269b407cf39eef6dd8efb3'
<shevy> >> 'feature_bkconnect'' => ''34e01e6269b407cf39eef6dd8efb3'
<eval-in> shevy => "feature_bkconnect => 34e01e6269b407cf39eef6dd8efb3" (https://eval.in/135021)
musl has quit [Read error: Operation timed out]
musl_ has joined #ruby
<LadyRainicorn> Huh, eval-in has a bug.
blackavr has joined #ruby
<LadyRainicorn> How do you report that?
<shevy> I forgot who the author is... fflush ?
rm_ has joined #ruby
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
<shevy> aha... eval.in has a contact us link to charlie@charliesomerville.com
yfeldblum has joined #ruby
afreidah1 has joined #ruby
fgo has joined #ruby
<havenwood> g'morning
<Hanmac> shevy that is not a bug ...
jjbohn has joined #ruby
<Hanmac> shevy thats C-Style string conection ...
<Hanmac> >> "A" "B" "C"
<eval-in> Hanmac => "ABC" (https://eval.in/135025)
donnoc has joined #ruby
<shevy> Hanmac why do you tell me this
<olivier_bK> shevy, i have a lot file with more or less line like that 'diskStorage' => 0,
<Hanmac> LadyRainicorn: that info was for you
<shevy> olivier_bK you still did not answer the question... what was the above?
lethjakman has joined #ruby
zcreative has joined #ruby
<shevy> what class
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> <olivier_bK> how i can convert a file with line like this one 'feature_bkconnect'' => ''34e01e6269b407cf39eef6dd8efb3' on yaml
tgkokk has joined #ruby
<olivier_bK> i parse a php file like this one https://gist.github.com/anonymous/b4cda97c6b8bd9393891
danshultz has quit [Remote host closed the connection]
<olivier_bK> i need to convert all file to yaml
MrJiks has quit [Quit: leaving]
<shevy> it would be nice if you could answer questions
<olivier_bK> i try
<olivier_bK> :)
yfeldblum has quit [Ping timeout: 258 seconds]
<shevy> no you did not
danshultz has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
<shevy> it could be a string or a hash
<olivier_bK> it's php hash
<shevy> :\
zcreative has quit [Client Quit]
<olivier_bK> i know
<shevy> olivier_bK what do you want to do with it?
<shevy> because ruby does not understand php
<olivier_bK> i know it s why i remove the first ligne and the last one
sambao21 has joined #ruby
<shevy> and then?
afreidah1 has quit [Ping timeout: 240 seconds]
<olivier_bK> but 'users_external' => 31158, look like ruby hash right ?
cashnguns has joined #ruby
<shevy> the way you write it down here I would say it looks like a ruby hash
<shevy> but here
<shevy> <olivier_bK> how i can convert a file with line like this one 'feature_bkconnect'' => ''34e01e6269b407cf39eef6dd8efb3' on yaml
<shevy> you gave a string clearly
blackavr has quit [Quit: blackavr]
JohnBat26 has quit [Ping timeout: 240 seconds]
<LadyRainicorn> Hanmac: Look closely.
<olivier_bK> it's not a hash ohh..
<olivier_bK> i make a mistake
<olivier_bK> sorry
<LadyRainicorn> The string contains invalid Ruby.
<shevy> olivier_bK anyway, it is easy to convert the string into a hash
RowdyChildren is now known as RowdyChild|Away
<timgauthier__> hey can you do inline if statements in erb?
<shevy> olivier_bK and when you have a real ruby hash, use YAML.dump(your_hash_here)
diegoviola has joined #ruby
<LadyRainicorn> >> 'here too?"'
<eval-in> LadyRainicorn => "here too?\"" (https://eval.in/135027)
<LadyRainicorn> nope
<LadyRainicorn> odd
dyoko has quit [Ping timeout: 245 seconds]
<shevy> timgauthier__ erb works on valid ruby code as far as I know so anything that works in ruby works in erb as well
Senjai`work has joined #ruby
Senjai`work has quit [Changing host]
Senjai`work has joined #ruby
Senjai`work is now known as Senjai
dagobah has quit [Quit: Leaving...]
<olivier_bK> shevy, okai thanks you veru much for advice
<shevy> like:
danshultz has quit [Ping timeout: 250 seconds]
<timgauthier__> yeah… ok. I am just used to the liquid syntax. but that doesn’t seem easy to impliment :|
nowthatsamatt has quit [Quit: nowthatsamatt]
michaeldeol has joined #ruby
<LadyRainicorn> >> 'here" => "maybe'
<Senjai> morning
<shevy> olivier_bK, hash = {}; File.readlines('your_php_file.php').each {|line| splitted = line.split('=>').strip; hash[splitted[0]] = splitted[1] }
<shevy> something like that
freezey has quit [Remote host closed the connection]
<Senjai> shevy: You meant to pipe php lines to /dev/null right?
rippa has joined #ruby
<Hanmac> LadyRainicorn: 'feature_bkconnect'' => ''34e01e6269b407cf39eef6dd8efb3' is parsed as 'feature_bkconnect' + ' => ' + '34e01e6269b407cf39eef6dd8efb3' and connected to 'feature_bkconnect => 34e01e6269b407cf39eef6dd8efb3' see '' != "
<shevy> Senjai I don't have to work with php
<shevy> Senjai olivier_bK has
<LadyRainicorn> ohhhh
heftig has quit [Ping timeout: 252 seconds]
<Senjai> olivier_bK: Are you trying to convert associative arrays in php to ruby hash's?
* LadyRainicorn apparently did not look closely.
<LadyRainicorn> '' and " appear verrrrrry close to identical in my font.
danman_ has joined #ruby
<workmad3> LadyRainicorn: monospaced fonts ftw!
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
habanany has joined #ruby
dyoko has joined #ruby
toastynerd has joined #ruby
marr has quit []
michaeldeol has quit [Client Quit]
<shevy> COMIC SANS FOREVER
zcreative has joined #ruby
<timgauthier__> did you see the comic sands replacement?
toastynerd has quit [Remote host closed the connection]
claymore has quit [Ping timeout: 252 seconds]
manyrus has joined #ruby
thrillagorilla has joined #ruby
mrjensen has joined #ruby
<lagweezle> Do enlighten?
SatansDeer has quit [Quit: Leaving.]
<timgauthier__> http://comicneue.com/
<timgauthier__> sorry, googling, my internets is slow
<lagweezle> "It's perfect as a display face, for marking up comments, and writing passive aggressive office memos." NICE!
toastynerd has joined #ruby
RowdyChild|Away is now known as RowdyChildren
claymore has joined #ruby
tacos1de has quit [Ping timeout: 272 seconds]
thrillagorilla has quit [Client Quit]
<olivier_bK> Senjai, why ?
<olivier_bK> Senjai, i think
habanany has quit [Max SendQ exceeded]
<Senjai> olivier_bK: You don't know what you're trying to do or are you?
p8952_ has joined #ruby
p8952_ has quit [Read error: Connection reset by peer]
tacos1de has joined #ruby
cj3kim has joined #ruby
michaeldeol has joined #ruby
ccham has joined #ruby
zachallett has joined #ruby
Rollabunna has quit [Read error: No route to host]
zcreative has quit [Quit: Computer has gone to sleep.]
<olivier_bK> Senjai, yes i try to convert a php associative arrays to ruby
afreidah1 has joined #ruby
habanany has joined #ruby
<Senjai> olivier_bK: Why?
nomenkun_ has quit [Remote host closed the connection]
<canton7-mac> do you have PHP available?
<shevy> timgauthier__ now I know why you don't get work done
<Senjai> olivier_bK: Use php to convert it to json, which can be parsed by a json parser
<Senjai> in ruby
<Senjai> win
mrjensen has quit [Remote host closed the connection]
<shevy> timgauthier__ IRC is totally distracting you and you are procrastinating!
nomenkun has joined #ruby
<timgauthier__> shevy: yes
klaut has quit [Remote host closed the connection]
<shevy> Senjai are you now advicing him to use php to solve this :D
<timgauthier__> and honestly shevy this shits too overwhelming. I do not understand ruby enough to really feel like i can use either.
klaut has joined #ruby
<shevy> timgauthier__ well, keep it simple! everything, including ruby. only use minimal of anything
Macaveli has joined #ruby
<shevy> ruby has a lot of features and the less I have to use, the better for me
<timgauthier__> I felt the same when i started with Jekyll. But I managed to make the liquid work for me and get a working page. But then I get to the most important part of my page and now it turns out I need to use something else and its just too much :P
arcanez has joined #ruby
habanany has quit [Max SendQ exceeded]
<shevy> ok but
<shevy> why aren't you continuing with how you went that way before?
<timgauthier__> the problem with minimal ruby based things is that you get to write tons of ruby! :P
<shevy> I mean you could well go side by side (with anything else really) until you can switch
<shevy> well yeah, you have to write stuff to do stuff
<timgauthier__> i dont parse what you mean shevy?
rurban_ has joined #ruby
<Senjai> shevy Im saying use php to convert it to JSON, which can be parsed by ruby, its the path of least resistence
<shevy> timgauthier__ ok you wrote: "I managed to make the liquid work for me and get a working page" <-- why not continue
habanany has joined #ruby
<Senjai> shevy: better than half assedly trying to parse php to grab data from code.
DaniG2k has quit [Quit: leaving]
<timgauthier__> yeah. I realize that I just have to redo all of the template work from before and that sort of sucks :P because now i get to do it in ERB again which means relearning all of that
arietis has joined #ruby
<shevy> Senjai ok so you do recommend to use php here. I just wish to note it down :)))
habanany has quit [Max SendQ exceeded]
aspires has quit []
<timgauthier__> well, I can’t use liquid in middleman
<shevy> centrx, is php good?
<arcanez> is there a better way to write: "ids = params[:ids].kind_of?(Array) ? params[:ids] : params[:ids].split(',')
<timgauthier__> PHP IS BEST :P
<shevy> well templates make my head dizzy
<shevy> but you were already using erb?
<timgauthier__> i think i am just being an emotional mopey designer shevy :P
<centrx> PHP is scourge on face of earth
karmatr0n has quit [Remote host closed the connection]
<shevy> hah!
pu22l3r has quit [Ping timeout: 240 seconds]
<timgauthier__> no, my templates are in liquid
<shevy> there you go!
nomenkun has quit [Ping timeout: 240 seconds]
Rainicorn has joined #ruby
<timgauthier__> but i did a design gig many years ago (ruby 2?) using erb. I was front end designing for a terrible website :P
LadyRainicorn has quit [Read error: Connection reset by peer]
afreidah1 has quit [Ping timeout: 252 seconds]
LadyRainicorn has joined #ruby
<timgauthier__> wait. why don’t i just ask… okay
pu22l3r has joined #ruby
maletor has joined #ruby
klaut has quit [Ping timeout: 252 seconds]
<Senjai> shevy: Not at all, its just the best way to get away from php
cj3kim has quit [Remote host closed the connection]
<timgauthier__> egh, slow internet… trying to make a gist
dstynchula has joined #ruby
<shevy> timgauthier__ I am impressed
<shevy> I could not bear how ugly erb is
diegoviola has quit [Quit: WeeChat 0.4.3]
<timgauthier__> well… i don’t know what else to do
<shevy> hehe
<shevy> yeah
<timgauthier__> wtf. i’m here, but http requests are dieing
<shevy> most anything else is significantly more complicated than erb
<shevy> or the error messages stink, like ruby-cgi
<ccham> arcanez: params[:ids].split(",") rescue params[:ids] :) ? it seems ok as is imo
nisstyre has joined #ruby
greenarrow has quit [Quit: 500]
<timgauthier__> complicated to get set up? or to use?
subbyyy_ has quit [Ping timeout: 252 seconds]
dumdedum has quit [Ping timeout: 246 seconds]
nowthatsamatt has joined #ruby
benzrf is now known as benzrf|offline
maletor has quit [Client Quit]
<timgauthier__> well, i can’t load gist, so i’m going to paste
Rainicorn has quit [Ping timeout: 252 seconds]
<timgauthier__> anyone have an idea of how to do an erb equivilent to this {% if page.title %}{{ page.title }} • {% endif %}{{ site.title }}
crystal77 has joined #ruby
zcreative has joined #ruby
<timgauthier__> how the hell am i getting 500ms pings from the web
<workmad3> timgauthier__: <% if page.title %><%= page.title %><% end %><%= site.title %>
codezomb has joined #ruby
crystal77 has quit [Client Quit]
<timgauthier__> really?
razrunelord has joined #ruby
<timgauthier__> . . . :|
<timgauthier__> so i add one extra tag
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rollabunna has joined #ruby
<timgauthier__> i think it must be quitting time, if i’m completely losing it
<workmad3> timgauthier__: oh, I missed the big . thing... but still :)
IceDragon has quit [Ping timeout: 240 seconds]
claymore has quit [Ping timeout: 258 seconds]
<timgauthier__> yeah thats fine :P
Macaveli has quit [Ping timeout: 252 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
kpshek has quit []
agarie has quit [Remote host closed the connection]
<workmad3> timgauthier__: <% %> - some ruby code, <%= %> - run some ruby code and stick the result into the output
sputnik13 has joined #ruby
<arcanez> ccham: maybe I should mention I'm working within rails and rails provides an Array#split method
sputnik13 has quit [Max SendQ exceeded]
iliketurtles has quit [Quit: zzzzz…..]
<workmad3> timgauthier__: I am assuming that 'page' and 'site' are available as methods or locals in the ERb context btw, rather than as ivars... which can change depending on how the ERb template is set up
f3lan has quit [Ping timeout: 245 seconds]
<timgauthier__> <%= prints vs <% just does?
sputnik13 has joined #ruby
michaeldeol has joined #ruby
<workmad3> timgauthier__: essentially, yes
<timgauthier__> i don’t think page or site are yet varialbes for me to use, i will have to explore to see what they have
danshultz has joined #ruby
Bumptious has joined #ruby
red234324 has quit [Quit: Leaving]
claymore has joined #ruby
cj3kim has joined #ruby
danshult_ has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
RowdyChildren is now known as RowdyChild|Away
yfeldblum has joined #ruby
obs has quit [Quit: Konversation terminated!]
deric_skibotn has joined #ruby
obs has joined #ruby
_tpavel has joined #ruby
mikecmpbll has quit [Ping timeout: 252 seconds]
Kricir has quit [Remote host closed the connection]
dik_dak has joined #ruby
canton7-mac has quit [Quit: Leaving]
karmatr0n has joined #ruby
timgauthier__ has quit [Ping timeout: 276 seconds]
danshult_ has quit [Remote host closed the connection]
danshultz has joined #ruby
IceDragon has joined #ruby
maximski has joined #ruby
SCommette has joined #ruby
Xeago_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 250 seconds]
cashnguns has quit [Ping timeout: 252 seconds]
dyoko has quit [Quit: Leaving.]
habanany has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
cj3kim has quit [Read error: Connection reset by peer]
Spami__ has quit [Quit: This computer has gone to sleep]
habanany has quit [Max SendQ exceeded]
marr has joined #ruby
cj3kim has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
habanany has joined #ruby
habanany has quit [Max SendQ exceeded]
qba73 has quit [Remote host closed the connection]
ikaros has quit [Quit: Ex-Chat]
kaliya has quit [Quit: Lost terminal]
pen has quit [Remote host closed the connection]
pwh has quit []
browndawg has joined #ruby
tvw has quit []
habanany has joined #ruby
pen has joined #ruby
dukz has quit [Remote host closed the connection]
habanany has quit [Max SendQ exceeded]
teddyp1cker has quit []
dyoko has joined #ruby
f3lan has joined #ruby
habanany has joined #ruby
habanany has quit [Max SendQ exceeded]
hairyhenderson has joined #ruby
timgauthier has joined #ruby
<timgauthier> why can’t stuff be explained like i’m 5
sambao21 has joined #ruby
Hanmac1 has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
habanany has joined #ruby
cj3kim_ has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
senayar has quit [Remote host closed the connection]
habanany has quit [Max SendQ exceeded]
<timgauthier> what does || mean in an erb?
afreidah1 has joined #ruby
jabular has left #ruby [#ruby]
Hanmac has quit [Ping timeout: 252 seconds]
<centrx> timgauthier, Same thing as everywhere else: OR
<timgauthier> ok
<timgauthier> yea… i actually didn’t know that :S
<timgauthier> thanks
<centrx> || is logical OR and && is logical AND
zcreative has quit [Quit: Computer has gone to sleep.]
<timgauthier> ah, i knew && and i’m sure i’ve used ||
* timgauthier derp
havenwood has quit [Remote host closed the connection]
blackmesa has quit [Quit: WeeChat 0.4.3]
cj3kim has quit [Ping timeout: 240 seconds]
tos9 has joined #ruby
havenwood has joined #ruby
afex has joined #ruby
shashank_rs has quit [Ping timeout: 252 seconds]
danshultz has quit [Remote host closed the connection]
fgo has joined #ruby
charlies_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danshultz has joined #ruby
maximski has quit []
rm_ has quit [Remote host closed the connection]
zachallett has quit [Remote host closed the connection]
ndrei has joined #ruby
m0s^away is now known as m0s
iliketurtles has joined #ruby
rm_ has joined #ruby
rm_ has quit [Read error: Connection reset by peer]
senayar has joined #ruby
fgo has quit [Read error: No route to host]
havenwood has quit [Ping timeout: 250 seconds]
jjbohn has quit [Quit: Leaving...]
fgo has joined #ruby
pskosinski has joined #ruby
rm_ has joined #ruby
jlast has quit [Remote host closed the connection]
zachallett has joined #ruby
<timgauthier> woah
pel_daniel has joined #ruby
danshult_ has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
einarj has quit [Remote host closed the connection]
nowthatsamatt has joined #ruby
wallerdev has joined #ruby
mrjensen has joined #ruby
subbyyy_ has joined #ruby
<apeiros> centrx: you might dial that "everywhere" down
<apeiros> centrx: in SQL, it's string concatenation
<timgauthier> :O
<centrx> everywhere in Zone A (Zone A TBD)
jjbohn has joined #ruby
shashank_rs has joined #ruby
jjbohn has quit [Client Quit]
danshult_ has quit [Remote host closed the connection]
centr0 has joined #ruby
centr0 has quit [Client Quit]
danshultz has joined #ruby
<wallerdev> morning
centr0 has joined #ruby
endash_ has quit [Quit: endash_]
endash_ has joined #ruby
fgo has quit [Ping timeout: 258 seconds]
cj3kim_ has quit [Read error: Connection reset by peer]
moritzs has quit [Ping timeout: 276 seconds]
zigomir has quit [Remote host closed the connection]
64MAAAAK0 has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
havenwood has joined #ruby
cj3kim has joined #ruby
saarinen has joined #ruby
zachallett has quit [Remote host closed the connection]
gregf has joined #ruby
rdark has quit [Quit: leaving]
zachallett has joined #ruby
tcurdt has quit [Quit: bye bye]
Hanmac has joined #ruby
tjr9898 has quit [Remote host closed the connection]
rylev has quit [Remote host closed the connection]
tjr9898 has joined #ruby
cewek has joined #ruby
pu22l3r_ has joined #ruby
<cewek> may i know you
afreidah1 has quit [Ping timeout: 276 seconds]
pu22l3r_ has quit [Remote host closed the connection]
pablovilas has joined #ruby
danshultz has quit [Ping timeout: 250 seconds]
pu22l3r_ has joined #ruby
trhodes_ has joined #ruby
Hanmac1 has quit [Ping timeout: 258 seconds]
rurban_ has quit [Remote host closed the connection]
danshultz has joined #ruby
jlast has joined #ruby
habanany has joined #ruby
ixti has joined #ruby
cewek has left #ruby [#ruby]
habanany has quit [Max SendQ exceeded]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has joined #ruby
pu22l3r has quit [Ping timeout: 276 seconds]
Rollabunna has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 0.4.3]
habanany has joined #ruby
karmatr0n has quit [Remote host closed the connection]
habanany has quit [Max SendQ exceeded]
SCommette has quit [Quit: SCommette]
danman_ has quit [Quit: danman_]
karmatr0n has joined #ruby
zachalle_ has joined #ruby
blackavr has joined #ruby
nari has quit [Ping timeout: 240 seconds]
habanany has joined #ruby
zachallett has quit [Ping timeout: 276 seconds]
anaeem1 has quit [Remote host closed the connection]
AlSquire has quit [Quit: This computer has gone to sleep]
f0ster` has joined #ruby
habanany has quit [Max SendQ exceeded]
Hanmac1 has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
poikon_ has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
Hanmac has quit [Ping timeout: 276 seconds]
karmatr0n has quit [Ping timeout: 240 seconds]
dEPy has joined #ruby
siwica has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nw has quit [Remote host closed the connection]
nw has joined #ruby
sigurding has quit [Quit: sigurding]
pen has quit [Ping timeout: 250 seconds]
michaeldeol has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
glide has quit [Quit: Leaving]
danshultz has joined #ruby
aspires has joined #ruby
michaeldeol has quit [Read error: Connection reset by peer]
deol has joined #ruby
AlSquire has joined #ruby
JohnBat26 has joined #ruby
jason__ has joined #ruby
jason__ has quit [Remote host closed the connection]
marcux has quit [Remote host closed the connection]
jason__ has joined #ruby
Hanmac has joined #ruby
freezey has joined #ruby
obs has quit [Quit: Konversation terminated!]
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has joined #ruby
ace_striker has quit [Changing host]
anaeem1_ has joined #ruby
tgkokk has quit [Remote host closed the connection]
tgkokk` has joined #ruby
cj3kim has quit [Remote host closed the connection]
tjr9898_ has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
spacemud has quit [Ping timeout: 246 seconds]
pskosinski has quit [Remote host closed the connection]
okdas has quit [Read error: Connection reset by peer]
klaut has joined #ruby
LadyRainicorn has quit [Quit: Bye]
JohnBat26 has quit [Client Quit]
browndawg has left #ruby [#ruby]
zigomir has joined #ruby
pskosinski has joined #ruby
JohnBat26 has joined #ruby
Doppp has quit [Ping timeout: 240 seconds]
cashnguns has joined #ruby
keeguon has quit [Quit: keeguon]
afreidah1 has joined #ruby
Doppp has joined #ruby
tjr9898 has quit [Ping timeout: 252 seconds]
kirun has joined #ruby
RyanV has joined #ruby
Es0teric has joined #ruby
cocotton has quit [Remote host closed the connection]
fridim_ has quit [Read error: Connection reset by peer]
<timgauthier> soo…
<timgauthier> netsplit?
yfeldblum has joined #ruby
<shevy> not sufficient
<shevy> you are still here after all timgauthier
Doppp has quit [Ping timeout: 258 seconds]
habanany has joined #ruby
mikecmpbll has joined #ruby
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> hey guys
habanany has quit [Max SendQ exceeded]
tvw has joined #ruby
<shevy> when we wish to rescue non-installed (but not very important libraries), we should require them each individually, and perform a rescue LoadError on each, right?
xsdg_ has quit [Read error: Operation timed out]
jtdowney has joined #ruby
habanany has joined #ruby
jjbohn has joined #ruby
Kricir has joined #ruby
doodleha_ has joined #ruby
habanany has quit [Max SendQ exceeded]
<timgauthier> those words… are all above my head :P
yfeldblum has quit [Remote host closed the connection]
trautwein has quit [Read error: Connection reset by peer]
codenapper has joined #ruby
<shevy> I am just cleaning up
<timgauthier> sweet.
<Hanmac> shevy or write your own require_me "lib" do puts "huch"; end
sigurding has joined #ruby
benzrf|offline is now known as benzrf
yfeldblum has joined #ruby
doodlehaus has quit [Ping timeout: 240 seconds]
cocotton has joined #ruby
<shevy> lol
<benzrf> shevy is a failure
doodlehaus has joined #ruby
Celm_ has quit [Remote host closed the connection]
<shevy> nah, then I'd have to carry my modifications from project to project, that would be bad
rylev has joined #ruby
sk87 has joined #ruby
xsdg has joined #ruby
jjbohn has quit [Ping timeout: 240 seconds]
Celm has joined #ruby
rurban_ has joined #ruby
b1nd has quit [Ping timeout: 252 seconds]
jlebrech has quit [Quit: Konversation terminated!]
jason__ has quit [Remote host closed the connection]
maletor has joined #ruby
sk87 has quit [Client Quit]
donnoc has quit [Ping timeout: 258 seconds]
freezey has quit [Remote host closed the connection]
codeFiend has joined #ruby
qubit has quit [Read error: Operation timed out]
codeFiend is now known as aeon
doodleha_ has quit [Ping timeout: 252 seconds]
aeon is now known as Guest55495
Guest55495 is now known as codeFiend
qubit has joined #ruby
danshultz has quit [Remote host closed the connection]
sdouglas_ has quit [Remote host closed the connection]
danshultz has joined #ruby
combusean has joined #ruby
Kryptonical has joined #ruby
danshult_ has joined #ruby
_justin has joined #ruby
UserNameInvalid has joined #ruby
cocotton_ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
cocotton has quit [Read error: Connection reset by peer]
cocotton has joined #ruby
jlast has quit [Remote host closed the connection]
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
danshultz has quit [Ping timeout: 276 seconds]
mary5030_ has joined #ruby
mary5030_ has quit [Remote host closed the connection]
ktun_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Musashi1 has joined #ruby
mary5030_ has joined #ruby
b1nd has joined #ruby
Lewix has joined #ruby
habanany has joined #ruby
Bumptious has quit [Ping timeout: 264 seconds]
Solnse has quit [Remote host closed the connection]
habanany has quit [Max SendQ exceeded]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doodleha_ has joined #ruby
b1nd has quit [Max SendQ exceeded]
mary5030 has quit [Ping timeout: 240 seconds]
linojon has quit [Quit: linojon]
doodlehaus has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
evenix has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
jespada has quit [Ping timeout: 245 seconds]
evenix has joined #ruby
evenix has quit [Read error: Connection reset by peer]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
evenix has joined #ruby
grzywacz has quit [Quit: :wq]
nisstyre has quit [Quit: WeeChat 0.4.3]
atno has joined #ruby
linojon has joined #ruby
jenrzzz has joined #ruby
FxK has quit [Ping timeout: 258 seconds]
SCommette has joined #ruby
rylev has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 250 seconds]
claymore has quit [Ping timeout: 245 seconds]
SCommette has quit [Client Quit]
iliketurtles has joined #ruby
hiall has quit [Ping timeout: 252 seconds]
jlast has joined #ruby
claymore has joined #ruby
crystal77 has joined #ruby
adam_ is now known as adam12
jjbohn has joined #ruby
ndrei has quit [Ping timeout: 258 seconds]
Hanmac has quit [Ping timeout: 252 seconds]
donnoc has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
codeFiend has quit [Quit: codeFiend]
agarie has joined #ruby
shredding has joined #ruby
klaut has quit [Remote host closed the connection]
kayloos has joined #ruby
klaut has joined #ruby
freerobby has quit [Quit: Leaving.]
ndrei has joined #ruby
Zai00 has joined #ruby
Hanmac has joined #ruby
bigkevmcd_ has joined #ruby
Zai00 has quit [Client Quit]
freerobby has joined #ruby
habanany has joined #ruby
ghr has joined #ruby
jason__ has joined #ruby
bigkevmcd_ is now known as bigkevmcd
habanany has quit [Max SendQ exceeded]
donnoc has quit [Ping timeout: 258 seconds]
mark_locklear has quit [Quit: Leaving]
ehc has joined #ruby
SCommette has joined #ruby
jason___ has joined #ruby
Bumptious has joined #ruby
afex has quit [Ping timeout: 276 seconds]
jason__ has quit [Read error: No route to host]
senayar has quit [Remote host closed the connection]
habanany has joined #ruby
klaut has quit [Ping timeout: 240 seconds]
pushpak has joined #ruby
b1nd has joined #ruby
manyrus has quit [Ping timeout: 240 seconds]
habanany has quit [Max SendQ exceeded]
ghr has quit [Ping timeout: 245 seconds]
habanany has joined #ruby
zigomir has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
habanany has quit [Max SendQ exceeded]
codabrink has quit [Quit: Textual IRC Client: www.textualapp.com]
benzrf|offline is now known as benzrf
ccham has quit [Quit: WeeChat 0.4.3]
jason___ has quit [Ping timeout: 258 seconds]
codabrink has joined #ruby
habanany has joined #ruby
reset has joined #ruby
UserNameInvalid has quit [Ping timeout: 240 seconds]
habanany has quit [Max SendQ exceeded]
freerobby has quit [Ping timeout: 245 seconds]
ccham has joined #ruby
freerobby has joined #ruby
benzrf is now known as benzrf|offline
reset has quit [Client Quit]
okdas has joined #ruby
mmochan_ has quit [Quit: Connection closed for inactivity]
heftig has joined #ruby
SolarBoom has joined #ruby
shredding has quit [Quit: shredding]
atno has quit [Read error: No route to host]
<SolarBoom> Hi everyone, I try to install json gem, but everytime I get an error
aspires has quit []
<SolarBoom> that's error: http://pastie.org/9071008
benzrf|offline is now known as benzrf
aspires has joined #ruby
atno has joined #ruby
Celm has quit [Remote host closed the connection]
rakm has joined #ruby
<toretore> SolarBoom: how did you install ruby?
tonni has joined #ruby
zigomir has joined #ruby
Celm has joined #ruby
karmatr0n has joined #ruby
<wallerdev> yeah you need to install ruby-dev
shashank_rs has quit [Ping timeout: 252 seconds]
aaronmcadam has quit [Ping timeout: 252 seconds]
dtcrshr has joined #ruby
cescalante is now known as ce_afk
tcstar has quit [Ping timeout: 240 seconds]
gancl has joined #ruby
jonno11 has joined #ruby
Musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<SolarBoom> toretore: apt-get install ruby2.0.0
meatherl_ has quit [Remote host closed the connection]
<SolarBoom> wallerdev: installed ruby-dev
Doppp has joined #ruby
iceden has quit [Remote host closed the connection]
<havenwood> SolarBoom: sudo apt-get install ruby2.0-dev -y
crucify_me has joined #ruby
zigomir has quit [Remote host closed the connection]
senayar has joined #ruby
graft has joined #ruby
pel_daniel has quit [Ping timeout: 252 seconds]
senayar has quit [Read error: No route to host]
ndrei has quit [Ping timeout: 252 seconds]
compleatang has joined #ruby
senayar has joined #ruby
jackneill has joined #ruby
mehlah has quit [Quit: Leaving...]
UserNameInvalid has joined #ruby
b1nd has quit [Ping timeout: 252 seconds]
<SolarBoom> havenwood: seems It solved. That's greaat! Thanks :)
trhodes_ has quit [Ping timeout: 264 seconds]
earth has joined #ruby
Doppp has quit [Ping timeout: 240 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
meatherly has joined #ruby
<benzrf> Hanmac: that is entirely too clever
obs has joined #ruby
<timgauthier> is this due to clang not working again? http://pastie.org/9071045
centr0 has quit [Quit: centr0]
Heskie has quit []
Fraeon has quit [Remote host closed the connection]
<canton7> timgauthier, looks like it
sambao21 has joined #ruby
<canton7> "clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future]"
sambao21 has quit [Client Quit]
habanany has joined #ruby
<Hanmac> canton7: yeah that happens when Mac trys to be modern ;P
<canton7> :P
Solnse has joined #ruby
<canton7> today has been clang day in here, it seems
habanany has quit [Max SendQ exceeded]
<timgauthier> mac is too cool for clang
<timgauthier> ok now to look up that command again lol
<timgauthier> really glad i posted a self answer to stackoverflow :P
<Hanmac> benzrf: https://i.chzbgr.com/maxW500/8139651840/h2D68B252/ << find the main charas ;P
robbyoconnor has joined #ruby
tcstar has joined #ruby
_tpavel has quit [Quit: Leaving]
habanany has joined #ruby
habanany has quit [Max SendQ exceeded]
jenrzzz has quit [Quit: I haven't slept for ten days, 'cause that would be too long.]
honeypoopoo has joined #ruby
Fraeon has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
soulcake has joined #ruby
pel_daniel has joined #ruby
Lewix has quit [Changing host]
Lewix has joined #ruby
habanany has joined #ruby
Xeago has joined #ruby
habanany has quit [Max SendQ exceeded]
timgauthier has quit [Ping timeout: 240 seconds]
Asher has quit [Quit: Leaving.]
mehlah has joined #ruby
relix has joined #ruby
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
zcreative has joined #ruby
habanany has joined #ruby
habanany has quit [Max SendQ exceeded]
slawrence00 has joined #ruby
apeiros has quit [Ping timeout: 252 seconds]
spider-mario has joined #ruby
ace_striker has quit [Ping timeout: 240 seconds]
habanany has joined #ruby
apeiros has joined #ruby
m0s is now known as m0s^away
atno has quit [Remote host closed the connection]
noop has joined #ruby
_justin has quit [Quit: _justin]
senayar has quit [Remote host closed the connection]
keeguon has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
shredding has joined #ruby
habanany has quit [Max SendQ exceeded]
<f3lan> exit
<f3lan> exit
f3lan has left #ruby [#ruby]
zigomir has joined #ruby
ixti has quit [Ping timeout: 240 seconds]
<benzrf> f3lan: nevr
SolarBoom has quit [Quit: Leaving.]
SolarBoom has joined #ruby
<centrx> #ruby : You can check in but you can never leave
atno has joined #ruby
jprovazn is now known as jprovazn_bbl
doodleha_ has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
tos9 has left #ruby [#ruby]
dyoko has quit [Quit: Leaving.]
<benzrf> centrx: have u been inducted into the cult of quick yet
doodleha_ has joined #ruby
<DouweM> lol
<benzrf> centrx: have u heard the good news
<centrx> Do I have to be able to write a quine in quint minutes quick
<nhmood> Can anyone recommend a cleaner way to do the following?
<nhmood> :username => (params[:username] ||= '').downcase,
<benzrf> nhmood: looks clean enough to mehlah
<benzrf> *me
Lewix has quit [Remote host closed the connection]
reset has joined #ruby
<benzrf> nhmood: but i recommend username: instead of :username =>
chipotle has joined #ruby
<centrx> username: (params[:username] || '').downcase
FxK has joined #ruby
<nwkr> hey guys. i have problems with updating one of my apps from 1.8 to 1.9. found the line of code that memleaks on 1.9, and works ok on 1.8: Zone.find(1950133981).hosts.count => returns 137831. so quite a lot of activerecords. memory usage on 1.8 doesn't raise significantly, and the line of code is processed immediately. on ruby 1.9 it takes about 5 seconds, and memory usage increases from 60MB to 450MB. do you guys have any idea why something like this may happen?
zigomir has quit [Ping timeout: 252 seconds]
nwkr is now known as Nowaker
<nhmood> benzrf: what is username: , is that just a different hash syntax?
Lewix has joined #ruby
<centrx> Nowaker, Did you change the Rails version as well?
<benzrf> nhmood: y
<Nowaker> centrx: hell no
<Nowaker> all remains the same.
fgo has joined #ruby
<benzrf> >> p {foo: 3, 'bar' => 'baz'} # nhmood
<Nowaker> if i did, i would ask on #rails :)
<eval-in> benzrf => /tmp/execpad-506a7838c43c/source-506a7838c43c:2: syntax error, unexpected ':', expecting '}' ... (https://eval.in/135079)
<benzrf> oh
iliketurtles has quit [Quit: zzzzz…..]
<benzrf> >> p({foo: 3, 'bar' => 'baz'}) # nhmood
<eval-in> benzrf => {:foo=>3, "bar"=>"baz"} ... (https://eval.in/135080)
jlast has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
<crucify_me> 100 - 25 * 3 % 4 ... hi I read about modulo and precedence but don't see how this returns 97
<nhmood> centrx: is ||= used more for when you want to assign something when it isn't already defined?
maletor has quit [Quit: Computer has gone to sleep.]
jlast has joined #ruby
<centrx> Nowaker, Hard to say, 1.9 is kind of old too and there have been a lot of changes since then
<nhmood> centrx: and for my case, it isn't a self assignment so the ||= isnt necessary?
<centrx> Nowaker, As far as memory and performance go
<wallerdev> 100 - ((25 * 3) % 4)
ccham has quit [Ping timeout: 276 seconds]
maximski has joined #ruby
<centrx> nhmood, Yes, in this case you don't want to assign anything to the params hash. It's unnecessary and potentially confusing
michaeldeol has joined #ruby
<nhmood> benzrf: does foo: 3 also define foo as a symbol?
SolarBoom has quit [Ping timeout: 252 seconds]
<benzrf> nhmood: yes, 'foo: bar' is semantically equivalent to ':foo => bar'
<benzrf> the former may, in general, replace the latter
<nhmood> benzrf: but less characters :)
<crucify_me> thanks I'll try it wallerdev. can pry shed any light into precedence by chance? I'm trying to learn ruby using pry as was recommended .
<benzrf> yus
<wallerdev> just mathematical precendence i believe
timgauthier has joined #ruby
<wallerdev> modulo is on the same level as multiply / divide
<wallerdev> and when things are on the same precedence they evaluate left to right
mjs2600 has quit [Remote host closed the connection]
rainmanjam has joined #ruby
<crucify_me> thanks wallerdev
<crucify_me> ^ its always blurry
MindfulMonk has quit [Ping timeout: 246 seconds]
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
SevereOverfl0w has quit [Ping timeout: 259 seconds]
<apeiros> crucify_me: <csi>enhance!</csi>
mesamoo has quit [Quit: Konversation terminated!]
benzrf is now known as benzrf|offline
<Nowaker> centrx: I will try to bump to ruby 2.0, but i'm sceptical rails 2.3 will work on that ;)
yokel has quit [Ping timeout: 240 seconds]
b1nd has joined #ruby
<ddv> Nowaker, use 2.1.1
jenrzzz has joined #ruby
kevinykchan has joined #ruby
<Nowaker> ddv: I do use for new apps, but in my company there are still some rails big and old rails 2.3 apps.
<ddv> Nowaker, oh I see
<Nowaker> so bumping to ruby 2.1 is not an easy way :)
<ddv> Nowaker, true
<crucify_me> apeiros: ??
<apeiros> crucify_me: playing on your "it's blurry"
CaptainJet has joined #ruby
<crucify_me> apeiros: I suck so badly at programming.
<centrx> Nowaker, You can also use the ruby profiler to see what it is spending so much time on
saarinen has quit [Quit: saarinen]
yfeldblum has joined #ruby
<apeiros> Hanmac: not really
s3ri0us has quit [Quit: Linkinus - http://linkinus.com]
<shevy> crucify_me write more code
pu22l3r_ has quit [Remote host closed the connection]
maletor has joined #ruby
pu22l3r has joined #ruby
donnoc has joined #ruby
s3ri0us has joined #ruby
gigetoo has quit [Remote host closed the connection]
habanany has joined #ruby
<crucify_me> wallerdev: I guess I don't see what is being divided here to return a remainder : (25 * 3) % 4
<Hanmac> " IETF, I don't trust you." best commit ever ;p
habanany has quit [Max SendQ exceeded]
nowthatsamatt has quit [Quit: nowthatsamatt]
<wallerdev> 25 * 43 = 75
DrShoggoth has joined #ruby
pablovilas has quit [Quit: Leaving]
<wallerdev> 75 % 4, so 75 / 4 has a remainder of 3
gigetoo has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
saarinen has joined #ruby
Xeago has quit [Remote host closed the connection]
pu22l3r has quit [Remote host closed the connection]
<crucify_me> but doesn't that mean that subtraction gets precedence over the modulo? sorry wallerdev
ndrei has joined #ruby
pu22l3r has joined #ruby
<wallerdev> 100 - ((25 * 3) % 4) => 100 - (75 % 4) => 100 - 3 => 97
decoponyo has quit [Quit: Leaving...]
<crucify_me> ok thanks I'll get it wallerdev pax.
donnoc has quit [Ping timeout: 250 seconds]
RyanV has quit [Quit: Lingo - http://www.lingoirc.com]
freezey has joined #ruby
MindfulMonk has joined #ruby
tgkokk` has quit [Remote host closed the connection]
SevereOverfl0w has joined #ruby
<crucify_me> << see moniker shevy . I used to be varreli. (also n_blownapart). hope you're thriving.
<timgauthier> after the crap i put shevy through today, i doubt it
yokel has joined #ruby
<crucify_me> I quit ruby and forgot everything now I'm picking up the pieces. timgauthier go easy on him.
<timgauthier> haha, i never really learned ruby,and i’m back again
afex has joined #ruby
failshell has joined #ruby
jprovazn_bbl has quit [Quit: Odcházím]
<crucify_me> I got side-tracked by rails. if I can't make it with pure ruby I'll just treat it as a hobby timgauthier
<timgauthier> wait… what?
<timgauthier> PEOPLE WRITE THINGS WITHOUT RAILS!?
keeguon has quit [Ping timeout: 252 seconds]
<terrellt> What
davy has joined #ruby
<crucify_me> no as you can see I can't even figure out what % is. timgauthier
<terrellt> You worked on Rails and lost your ruby knowledge in the middle of it?
keeguon has joined #ruby
<terrellt> How
<wallerdev> maybe he did front end :p
Es0teric has quit [Quit: Computer has gone to sleep.]
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
<crucify_me> I took a tutorial and precedence never ever showed up. terrellt
<terrellt> Precedence is the same as any other language, or like, math
<wallerdev> its not too important, if its not evaluating how you want just add parenthesis in the order you want things to happen haha
combusean has quit [Ping timeout: 245 seconds]
jason___ has joined #ruby
olivier_bK has quit [Ping timeout: 250 seconds]
<crucify_me> but what is happening here? : 75 % 4 => 3
<crucify_me> wallerdev: terrellt
baweaver has joined #ruby
<wallerdev> its finding the remainder
<timgauthier> yea
<wallerdev> >> 75 / 4
<eval-in> wallerdev => 18 (https://eval.in/135097)
<wallerdev> so 4 goes into 75, 18 times with a remainder of 3
<timgauthier> yeah i thought i knew that, % is a devision sign that allows for a remainder
<wallerdev> >> 4 * 18
<eval-in> wallerdev => 72 (https://eval.in/135098)
<ddv> how did you guys ever finish high school?
<timgauthier> haha, actually. I shouldn’t have
<baweaver> >> 75 % 4
<eval-in> baweaver => 3 (https://eval.in/135100)
<wallerdev> so the answer 75 / 4 => 18 and 3/4
<baweaver> modulus.
<wallerdev> the module is the top number there, the 3
<timgauthier> but I did all the communications and multimedia for my highschool so they gave me a pass in everything. I dropped out of applied mathmatics and i was in the middle of a mental break down… so there is that.
<crucify_me> timgauthier: thanks that is actually helpful to put it that way. thanks wallerdev
<baweaver> >> 75.0 / 4.0
<eval-in> baweaver => 18.75 (https://eval.in/135102)
<baweaver> floats
michaeldeol has joined #ruby
<crucify_me> baweaver: I excelled in English
mjs2600 has joined #ruby
<timgauthier> float: left;!
<timgauthier> @incude clear-all
subbyyy_ has quit [Ping timeout: 276 seconds]
shashank_rs has joined #ruby
Deejay_ has joined #ruby
<timgauthier> that stray ! would definitely throw a sass error
klaut has joined #ruby
jibi has quit [Ping timeout: 240 seconds]
dunix has quit []
saarinen has quit [Quit: saarinen]
habanany has joined #ruby
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
habanany has quit [Max SendQ exceeded]
saarinen has joined #ruby
jason___ has quit [Ping timeout: 258 seconds]
jkamenik has quit [Quit: Leaving.]
nowthatsamatt has joined #ruby
artgoeshere has quit [Quit: I'll see myself out.]
<zorak> in highschool they didn't teach me modulo
<zorak> i learn about it in CodeAcademy
Lulzon has quit [Read error: Operation timed out]
<Hanmac> let me guess ... USA on of the South states ?
mr_rich101 has quit [Ping timeout: 252 seconds]
artgoeshere has joined #ruby
<ddv> in some US states they still believe the earth is flat
g0bl1n has joined #ruby
Es0teric has joined #ruby
habanany has joined #ruby
icedp has quit [Ping timeout: 240 seconds]
<RubyPanther> I thought it was Kansas but then I read about Florida being the flat one
qqw has quit [Ping timeout: 255 seconds]
Tachoh has quit [Ping timeout: 240 seconds]
habanany has quit [Max SendQ exceeded]
<timgauthier> actually i never learned about modulo either.
adam12 has quit [Ping timeout: 252 seconds]
meatherly has quit [Ping timeout: 240 seconds]
hellome has quit [Ping timeout: 240 seconds]
<timgauthier> i need to hide these joins and parts
<RubyPanther> I didn't go to HS, but any basic programming book will cover it in multiple places
qqw has joined #ruby
subbyyy_ has joined #ruby
mr_rich101 has joined #ruby
adam_ has joined #ruby
<crucify_me> Is highschool where they have weed for sale?
<timgauthier> yeah, and I didn’t read any programm’n books. Was too busy learning how to apply the golden ratio :P
adam_ is now known as adam12
<RubyPanther> crucify_me: Indeed, I was often found on the corner across the street
Tachoh has joined #ruby
<timgauthier> so aparently i can’t disable joins and parts in my client. :|
<crucify_me> you were that guy? RubyPanther
<RubyPanther> crucify_me: Only during the time I should have been in class ;)
icedp has joined #ruby
<crucify_me> !!
icedp has quit [Excess Flood]
obs has quit [Quit: Konversation terminated!]
dh64 has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
Celm has quit [Remote host closed the connection]
Lulzon has joined #ruby
icedp has joined #ruby
icedp has quit [Changing host]
icedp has joined #ruby
Celm has joined #ruby
<baweaver> I have a feeling my ignore list will grow fairly quickly.
<shevy> hehe
senayar has joined #ruby
<timgauthier> what?
rvraghav93 has quit [Remote host closed the connection]
<shevy> timgauthier use xchat or hexchat!
maximski has quit []
Burgestrand has joined #ruby
<wallerdev> disabling joins/parts gets really confusing
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<wallerdev> and you end up looking like a fool talking to someone who left
sambao21 has joined #ruby
alvaro_o has joined #ruby
pwh has joined #ruby
<RubyPanther> wallerdev: using xchat, if it is a newb and it has been a few minutes I just mouse over their handle and if they're not logged in it won't underline.
<RubyPanther> Also, "everybody" has it disabled, so only newbs and lurkers will notice you were talking to the door
* Hanmac uses pidgin for irc ... but i need to clean the history one day :/
Deejay_ has quit [Quit: Computer has gone to sleep.]
meatherly has joined #ruby
<shevy> yeah
<shevy> I hover over wallerdev and see a missile cursor
<shevy> it makes me want to torpedo wallerdev
<centrx> Put a Hex on wallerdev? (Y/N)
noop has quit [Ping timeout: 252 seconds]
<wallerdev> :(
yalue has quit [Quit: Leaving]
Xeago has joined #ruby
ndrei_ has joined #ruby
<crucify_me> is all that directed to my dismal noob status?
rvraghav93 has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
soulcake has joined #ruby
FxK has quit [Ping timeout: 258 seconds]
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
spider-mario_ has joined #ruby
qba73 has joined #ruby
atno has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
spider-mario has quit [Ping timeout: 258 seconds]
spider-mario_ is now known as spider-mario
<RubyPanther> we love noobs, heck we've got people in here that have been new for 6 or 7 years
donnoc has joined #ruby
jason___ has joined #ruby
atno has joined #ruby
<crucify_me> like a taoist longevity practice RubyPanther ^^
<ddv> s/noobs/boobs
<RubyPanther> I think there is a substantial difference between seeing everything with new eyes, and being confused in the same way every time
jonno11 has quit [Quit: Textual IRC Client: www.textualapp.com]
tobago has quit [Remote host closed the connection]
meatherly has quit [Ping timeout: 276 seconds]
davispuh has quit [Remote host closed the connection]
<crucify_me> RubyPanther: word
habanany has joined #ruby
qba73 has quit [Ping timeout: 250 seconds]
jjbohn has quit [Quit: Leaving...]
habanany has quit [Max SendQ exceeded]
davispuh has joined #ruby
RowdyChild|Away is now known as RowdyChildren
<Eiam> losing my mind here
crucify_me has quit []
spyderman4g63 has quit []
<Eiam> request.body.read says {"ids":[123,456]} and JSON.parse(request.body.read) says... JSON::ParseError - a son text must be attest two octets!
<RubyPanther> self.find :mind
<Eiam> what the shit?
jfelchner has joined #ruby
<Eiam> request.body.read says its a String
<Eiam> JSLint says thats valid json.
cocotton_ has joined #ruby
failshell has quit []
<Eiam> so.. what the shit?
jackneill has quit [Read error: Connection reset by peer]
RowdyChildren is now known as RowdyChild|Away
<wallerdev> try outputting the inspected version of request.body.read or something
pwh has quit []
<wallerdev> parses fine for me
<Eiam> thats the output from "puts"
<baweaver> p request.body.read
<Burgestrand> The error you're getting is telling you that the contents is empty
g0bl1n has quit [Ping timeout: 245 seconds]
<Burgestrand> It's not lying
ktun has joined #ruby
<wallerdev> maybe request.body.read returns an empty string the second time its callled
<wallerdev> or something
<baweaver> considering the puts reads it
meatherly has joined #ruby
thumpba_ has quit []
<Eiam> wow.
<baweaver> response = request.body.read.tap { |r| p r }; JSON.parse response
combusean has joined #ruby
<Eiam> baweaver: that was right..
fgo has joined #ruby
<Eiam> read was.. popping it out of the request.body
<Eiam> forever.
<Burgestrand> Eiam: read will advance the read cursor
cocotton has quit [Ping timeout: 258 seconds]
<Burgestrand> Eiam: if you want to read again, you probably have to rewind
<Burgestrand> Eiam: i.e. request.body.rewind
<RubyPanther> otherwise how would you read in long data?
<Eiam> well I'm slightly irate that fucking sinatra won't take a POST from curl and put that shit into Params
<Eiam> making me go read it out of the request body to begin with
<zorak> what's =~ means?
blackmesa has quit [Remote host closed the connection]
<Eiam> zorak: regex match check
toastynerd has joined #ruby
iliketurtles has joined #ruby
blackmesa has joined #ruby
<RubyPanther> Eiam: yeah but the other guys would be mad if they did it your way, and they'd be both right, and well-spoken
thumpba has joined #ruby
<Eiam> god i spent so much time fucking around with this
cocotton_ has quit [Ping timeout: 240 seconds]
<baweaver> Happens to everyone
<Burgestrand> Eiam: possibly curl needs to say that it's www-encoded to get sinatra to put it into params?
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
near77 has joined #ruby
<Eiam> "I'm going to knock out this super simple route cause I like my co-workers and I have not written any ruby in like 7 months so this should be a good refresher"
jhass|off is now known as jhass
<zorak> Eiam: and whats is this'
<zorak> ?
<RubyPanther> Fighting GET and POST being handled differently is a battle that was lost a decade ago, so you're a little late to showing up swearing that it is all a bunch of %#&*
<Eiam> Burgestrand: I'm doing curl -x post -h "content-type:application/json" -d '{....}'
<baweaver> in Ruby?
RowdyChild|Away is now known as RowdyChildren
<baweaver> why not use HTTParty or Typhoeus?
<Burgestrand> Eiam: ah, I assumed you were sending regular form-formatted data
<Eiam> no from terminal to hit the route
freezey has quit [Remote host closed the connection]
pskosinski has quit [Ping timeout: 272 seconds]
budrose has quit [Remote host closed the connection]
<baweaver> Ah
<Eiam> Burgestrand: nah, then i'd expect params
<Burgestrand> Eiam: I recall there's a gem for what you're doing specifically
<baweaver> zorak: whatever self happens to be
<DouweM> Eiam: You can't really expect Sinatra to support any content-type for post params
markisonfire has joined #ruby
<RubyPanther> Never get mad over having made faulty assumptions
<Eiam> Burgestrand: there is, in rack::contrib
RowdyChildren is now known as RowdyChild|Away
<near77> hi
jlast has quit [Remote host closed the connection]
<Eiam> Burgestrand: i just wired it up
<near77> does anyone know how to redirect the output of a thread to a file?
<zorak> baweaver: i have filename =~ dir_filter, whats this mean?
<Eiam> but it doesn't seem to auto move them into Params
Hanmac has quit [Ping timeout: 240 seconds]
fgo has quit [Ping timeout: 258 seconds]
<Burgestrand> Eiam: I mean, something that wires it up for you, specifically for sinatra
jlast has joined #ruby
<RubyPanther> near77: It sounds like you probably want a process rather than a thread
shashank_rs has quit [Quit: shashank_rs]
spider-mario has quit [Read error: Connection reset by peer]
<baweaver> whatever is in dir_filter is what it gets matched against
<near77> I just tried using "$stdout.reopen("slogs/#{name}.log", "w") $stdout.sync = true" but with different threads they just keep all writing in turns to different files
<DouweM> Eiam: again, you can't expect Sinatra to understand any content type data you thrw at it and wrap it in Params
johnhamelink has quit [Ping timeout: 240 seconds]
<zorak> i dont get it
<DouweM> Eiam: it would be nice for sure :p
<baweaver> such as, let filename = 'foo.rb' and let dir_filter = /*.rb/
<Eiam> DouweM: I can't expect sinatra to understand content type json and parse it into params
<Eiam> sure, I guess =)
<zorak> check if filename == to dir_filter??
sambao21 has quit [Quit: Computer has gone to sleep.]
<Burgestrand> Ah well, it's such a tiny thing to do doesn't really matter
<RubyPanther> remember, managing threads is more complicated than managing processes and IPC, so be really sure that threads are best for your use case.
<baweaver> regex match
jrhorn424 is now known as zz_jrhorn424
Klumben has quit [Ping timeout: 240 seconds]
<bricker> zorak: read it as "if filename matches dir_filter"
<Eiam> well either way, that was exactly the issue, sheesh, going to grab some lunch that was so frustrating
<Eiam> thanks folks
<baweaver> np mate
wallerdev has quit [Quit: wallerdev]
toastynerd is now known as cooper2
Disorganized has joined #ruby
cooper2 is now known as Cooper2
<baweaver> zorak: Do you know what regex is?
<Disorganized> mmmm regex
<baweaver> If not, definitely google it.
shevy has joined #ruby
b1nd has quit [Ping timeout: 252 seconds]
<zorak> regular expression?
<baweaver> yeah
<Disorganized> s/zorak/space ghost/
pwh has joined #ruby
<zorak> i have to learn more about it
treehug88 has quit [Ping timeout: 250 seconds]
<baweaver> Check that link I posted, that'll take care of basics.
treehug88 has joined #ruby
<zorak> in checing the link baweaver thanks
Hanmac has joined #ruby
jlast has quit [Ping timeout: 240 seconds]
FxK has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
TripTastic has joined #ruby
pskosinski has joined #ruby
freezey has joined #ruby
Burgestrand has quit [Quit: Burgestrand]
sambao21 has joined #ruby
Burgestrand has joined #ruby
benzrf|offline is now known as benzrf
habanany has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
Azure has quit [Quit: My MBP went to sleep.]
Hanmac1 has joined #ruby
markisonfire has quit [Ping timeout: 252 seconds]
Klumben has joined #ruby
Hanmac has quit [Ping timeout: 250 seconds]
zigomir has joined #ruby
johnhamelink has joined #ruby
<Burgestrand> Hm.
markisonfire has joined #ruby
Cooper2 is now known as CooperInfinity
<near77> hi
<near77> any ideas?
<near77> i need to redirect each threads output to a different file
ghr has joined #ruby
<Burgestrand> near77: how do you generate the output?
jason___ has quit [Ping timeout: 258 seconds]
FxK has quit [Ping timeout: 250 seconds]
<near77> puts
evenix has quit [Ping timeout: 252 seconds]
<baweaver> source code in a pastebin?
<near77> so I want to redirect the stdout
habanany has quit [Max SendQ exceeded]
<Burgestrand> near77: stdout is the same across all threads.
FxK has joined #ruby
<near77> I saw this thread
<near77> its something similar to what I want
<near77> but when using pp
postmodern has joined #ruby
<near77> I have: undefined method `<<' for ThreadOut:Module
<near77> any ideas on what to do so stdout goes to a different file per thread?
<Burgestrand> near77: that's clever, but not really a nice way of doing it.
<Burgestrand> near77: why don't you use something other than puts?
<near77> because I should change all the code..
karmatr0n has quit [Remote host closed the connection]
Es0teric has joined #ruby
karmatr0n has joined #ruby
rylev has joined #ruby
honeypoopoo has quit [Quit: Page closed]
<baweaver> Depending on how you generate the threads, you can group them all in an array and use the index on their join to dump contents into separate files.
alexju has joined #ruby
rylev has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 258 seconds]
jason___ has joined #ruby
<Burgestrand> I'd be scared of replacing stdout with something custom, but if you want to make `puts` behave in a different way there's not much else to do: change your use of puts, or change puts.
freezey has quit [Remote host closed the connection]
<baweaver> such that you want 10 threads: 10.times.reduce([]) { |threads, i| threads << Thread.new { whatever_writer_method(i, contents) } }.each(&:join)
<Burgestrand> Really clever code tends to also be hard to maintain.
apeiros has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
apeiros has joined #ruby
<baweaver> Clever is a notoriously relative term
<Burgestrand> near77: use the code you linked to, but instead of implementing #write, implement #<<
iliketurtles has quit [Quit: zzzzz…..]
<Burgestrand> baweaver: yes, but I said *really* clever. :)
<near77> great thanks!
<Burgestrand> baweaver: replacing $stdout clever.
karmatr0n has quit [Ping timeout: 245 seconds]
ccham has joined #ruby
popl has joined #ruby
popl has joined #ruby
<near77> I could also make the stdout go to a file right?
davy_ has joined #ruby
<near77> by changing the method
Xeago_ has joined #ruby
<Burgestrand> near77: you would change Thread.current[:stdout] to make it go to a file. You do not need to change the method
Es0teric has quit [Quit: Computer has gone to sleep.]
<RubyPanther> The real question is why are you using threads, which are more complicated generally and especially here, instead of processes, where you wouldn't even have to solve this problem?
<Burgestrand> near77: e.g. Thread.current[:stdout] = open("/path/to/file", "w")
yfeldblum has joined #ruby
<near77> awesome
shevy has joined #ruby
jason___ has quit [Ping timeout: 258 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv has quit [Remote host closed the connection]
davy has quit [Ping timeout: 276 seconds]
timonv has joined #ruby
Xeago_ has quit [Ping timeout: 276 seconds]
freezey has joined #ruby
b1nd has joined #ruby
sdouglas has joined #ruby
jason___ has joined #ruby
shredding has quit [Quit: shredding]
pwh has quit []
rezzack has joined #ruby
dorei has joined #ruby
glanzi has quit [Remote host closed the connection]
iliketurtles has joined #ruby
jlebrech_ has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
f0ster` is now known as f0ster_
jlebrech_ has quit [Max SendQ exceeded]
f0ster_ is now known as f0ster
f0ster has quit [Changing host]
f0ster has joined #ruby
kayloos has quit [Remote host closed the connection]
CooperInfinity is now known as toastynerd
agent_white has joined #ruby
habanany has joined #ruby
zachalle_ has quit [Remote host closed the connection]
timonv has joined #ruby
ascarter has joined #ruby
habanany has quit [Max SendQ exceeded]
habanany has joined #ruby
habanany has quit [Max SendQ exceeded]
moritzs has joined #ruby
skulker has quit []
Lewix has quit [Remote host closed the connection]
habanany has joined #ruby
freezey has quit [Remote host closed the connection]
vt102 has quit [Remote host closed the connection]
qba73 has joined #ruby
habanany has quit [Max SendQ exceeded]
timonv has quit [Ping timeout: 252 seconds]
rakm has quit [Quit: Connection closed for inactivity]
DrShoggoth has quit [Ping timeout: 258 seconds]
shinobi_one has joined #ruby
<combusean> haml :"deploys/status" *looks of disapproval*
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jason___ has quit [Ping timeout: 258 seconds]
habanany has joined #ruby
roolo has quit [Ping timeout: 276 seconds]
dtcrshr has quit [Remote host closed the connection]
ascarter has joined #ruby
habanany has quit [Max SendQ exceeded]
g0bl1n has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
rylev has joined #ruby
<benzrf> yo
<combusean> hey benzrf :)
<agent_white> sup
dexkiki has joined #ruby
zachallett has joined #ruby
mary5030_ has quit [Remote host closed the connection]
<benzrf> i have 1.9×10⁶ reddit comments' authorname (hashed), subreddit of posting, and score
qba73 has quit [Ping timeout: 252 seconds]
<benzrf> in an sql table
habanany has joined #ruby
<benzrf> what queries i perform
<benzrf> *pls note that they were harvested in groups of the last 250 of a totally random user
habanany has quit [Max SendQ exceeded]
<benzrf> which may affect distribution and stuff
<agent_white> How many points per sub they've accumulated?
<benzrf> hmm?
<benzrf> oh
<benzrf> 1 minute.
Xeago has quit [Remote host closed the connection]
<combusean> it's incomplete
freerobby has quit [Quit: Leaving.]
<centrx> SELECT subreddit, AVG(score) FROM reddit_sux
<combusean> you have to track karma over time
<benzrf> table:
<benzrf> CREATE TABLE "comments" (namehash text NOT NULL, subreddit text NOT NULL, score int NOT NULL, ups int NOT NULL, downs int NOT NULL);
zachallett has quit [Remote host closed the connection]
<agent_white> How do you deal with the tweaking to points they make to avoid botting?
* combusean ponders the memory allocation of those column types :P
habanany has joined #ruby
ixti has joined #ruby
<agent_white> Aka something with 10+, 5- might show 22+, 9- ... something of that sort.
habanany has quit [Max SendQ exceeded]
<benzrf> i save the score, ups, & downs
derek_c has joined #ruby
<benzrf> o wait
<benzrf> thats only part of the paste o.O
simono has quit [Ping timeout: 240 seconds]
<benzrf> looks like it cut off =[
<benzrf> 1 sec
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
Lewix has joined #ruby
<benzrf> http://bpaste.net/show/200505/ there we go :-3
<agent_white> benzrfpaste.net?!
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> #1 GoForGold | 62.7230769230769231
simono has joined #ruby
<benzrf> #downvotes SRSRedditDrama | -14.8000000000000000
<benzrf> keep in mind tho
<benzrf> the comments are harvested in batches of 250 from 1 acc
<benzrf> so if i only get a subreddit from one harvest, if the person who was targeted is a troll or something
<agent_white> So this dude doesn't like SRSRedditDrama?
<benzrf> this skews the data
<benzrf> no no n
<benzrf> it's a diff person each time
<benzrf> soz if misspoke
<agent_white> Dese peeps don't like* SRSRedditDrama?
<agent_white> :D
<centrx> no, it's a virus
<benzrf> u may want to move it to postgres or something before doing queries
<agent_white> Cool beans!
<benzrf> sqlite is hella slow
<combusean> are you from norcal benzrf?
<agent_white> centrx: Joke's on you, it's pr0n! :D
freezey has joined #ruby
slawrence00 has joined #ruby
kyle__ has joined #ruby
jlast has joined #ruby
<benzrf> combusean: no im from the exact opposite
<benzrf> maine
<combusean> weird
ce_afk is now known as cescalante
<benzrf> why?
<combusean> hella is a norcal thing
rankine_ has joined #ruby
<kyle__> So, if you happen to actually like netbeans for coding in ruby, are you SOL now with 8?
<centrx> reddit is half porn, half cats, and half reddit
<kyle__> centrx: And the rest of it is reposts.
rankine_ has quit [Client Quit]
rankine_ has joined #ruby
crucify_me has joined #ruby
rankine_ has quit [Client Quit]
<agent_white> kyle__: Time to move to a better IDE!
near77 has quit [Quit: Page closed]
<benzrf> combusean: it may be
<benzrf> combusean: but i am not from maine, i am from the internet
<agent_white> Or better yet, a text editor! :D
<benzrf> agent_white: vim-five??
* combusean unplugs benzrf
<agent_white> benzrf: That's what I use dawg.
<agent_white> So 1337
<benzrf> o/
mattmcclure has joined #ruby
<agent_white> *\o
<slash_nick> centrx: i've started scrolling through r/news... i think just skimming the posts' titles provides a pretty good run down on the days news
<agent_white> That was an explosion from our high-five of awesomeness.
<crucify_me> very sorry but waller*dev showed me where to place parentheses in a operator precedence problem. still confused about how to do something like, say, this: 3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 + 6
<kyle__> agent_white: Hehe. Any suggestions for a general ide that does ruby? Other than Eclipse.
<benzrf> agent_white: have u tried Quick yet
<benzrf> o3o
codenapper has quit [Read error: Connection reset by peer]
<centrx> slash_nick, It doesn't have a list of what you are missing
GaryOak_ has joined #ruby
codenapper has joined #ruby
<jhass> crucify_me: what result do you expect?
<combusean> crucify_me, PEMDAS (parentheses, exponments, multiplication, division, addition, subtraction) order of operations
mjs2600 has quit [Remote host closed the connection]
<crucify_me> I expect 7 because I have the answers (learn ruby the hard way)
<DouweM> benzrf: how bout you set up a bot to ask any joining user whether they've tried quick yet. I bet that'll save you loads of time
<slash_nick> would things listed on a list of missing things be missing or not missing?
<jhass> >> 3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 + 6
<eval-in> jhass => 7 (https://eval.in/135181)
toastynerd is now known as CooperInfinite
frog0909_ has quit [Read error: Operation timed out]
s2013 has joined #ruby
<s2013> anyone here started doing ruby before 2004?
<crucify_me> jhass: many thanks will look ..
mark_locklear has joined #ruby
MatthewsFace has joined #ruby
rylev has quit [Remote host closed the connection]
<jhass> combusean: where's modulo? :P
<s2013> and whats the diff between openstruct and a hash?
ixti has quit [Ping timeout: 240 seconds]
momomomomo has joined #ruby
<benzrf> s2013: OS uses methods
<kyle__> s2013: Would that be the 1.6 days?
michaeldeol has joined #ruby
<benzrf> s2013: hash uses only [] and []=
Melpaws has joined #ruby
rylev has joined #ruby
<s2013> i see
s3ri0us is now known as s3ri0us|away
<s2013> kyle__, i guess
Melpaws has quit [Client Quit]
<s2013> so whhy use openstruct, isnt it slower than hash?
danijoo has quit [Read error: Connection reset by peer]
<s2013> basically before rails came out
Melpaws has joined #ruby
<kyle__> I started after that, but I've used back to 1.6 I think.
danijoo has joined #ruby
<s2013> i wonder how big the ruby community was before rails? esp in america
pwh has joined #ruby
<s2013> i remember when rails came out. i thought it was a fad :(
senayar has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 258 seconds]
<kyle__> s2013: Because of watir, it was really popular with the test-development community. Thats where I first learned it
<agent_white> kyle__: I actually use vim myself :) I find IDE's a bit too bulky, personally.
<crucify_me> jhass: sorry I don't see what's going on with rescue .. end
senayar has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
<agent_white> benzrf: Quick wat?
fgo has joined #ruby
<s2013> gotcha
<jhass> crucify_me: that's just eval-in's wrapper to be able to display exceptions, not relevant
<kyle__> agent_white: I use vim for small stuff, but large projects that I put into verison control, I like to use IDEs for.
sigurding has quit [Quit: sigurding]
<centrx> Hard to imagine what web development would be like in general without Rails and Django, same time period
CooperInfinite is now known as toastynerd
<benzrf> agent_white: pls observe https://github.com/benzrf/quick/tree/master/demo
<benzrf> agent_white: download both files
<s2013> well php is still alive and kicking
<benzrf> put ur term in 124 x 33
<benzrf> scriptreplay timing -s typescript
<agent_white> kyle__: Ahhh. You just need to tweak it better :) No reason for it to perform differently than an IDE.
donnoc has quit [Ping timeout: 258 seconds]
moritzs has quit [Ping timeout: 240 seconds]
<atmosx> s2013: yes, I don't think there's too much for the human kind either
<agent_white> benzrf: Virus?
<agent_white> :D
codezomb has joined #ruby
<atmosx> too much *hope*
<crucify_me> jhass: ok thanks. but I'm trying to learn where to put parentheses. I know the % and / get precedence over + and - ..
<benzrf> agent_white: of course.
<s2013> atmosx, php is coo
sdouglas has quit [Remote host closed the connection]
Nukepuppy has quit [Ping timeout: 258 seconds]
<s2013> i had to write a simple script recently and i ended up writing it in php
<jhass> crucify_me: you don't need parenthesis in this expression if you want 7, that's what I was getting at
<s2013> good ol memories
<atmosx> s2013: whatever works for you I guess
mark_locklear has quit [Ping timeout: 250 seconds]
funburn has joined #ruby
frog0909 has joined #ruby
siwica has quit [Ping timeout: 252 seconds]
codezomb has quit [Client Quit]
freerobby has joined #ruby
<crucify_me> 7 is just the answer. I want to see how it gets evaluated in order jhass
<s2013> anyways backt o my actual question. why use openstruct instead of hash?
ccham_ has joined #ruby
habanany has joined #ruby
<slash_nick> s2013: is there a certain situation to consider... or has someone told you to always use openstruct over hash?
habanany has quit [Max SendQ exceeded]
<s2013> no im just curious as to when to use os instead of hash
fgo has quit [Ping timeout: 276 seconds]
sdouglas has joined #ruby
habanany has joined #ruby
danshultz has joined #ruby
habanany has quit [Max SendQ exceeded]
<centrx> s2013, When you want to access using methods instead of hash keys
habanany has joined #ruby
<s2013> i understand that but i mean whats the usecase?
sambao21 has quit [Ping timeout: 258 seconds]
<centrx> s2013, It is also possible to add on your own methods, like an ordinary class (at least with Struct)
<s2013> so intead of Blah["key"] i do Blah.key?
<crucify_me> 100 - ((25 * 3) % 4) << for example jhass
<slash_nick> s2013: remember that a hash is a kind of enum... that might help you decide when to which. I'd use an instance of OpenStruct if I wanted it to behave like some other object, or if I wanted to call methods other than #[] or #[]=
<atmosx> s2013: yeah
<s2013> what i mean is whats thea dvantage of Blah.key vs Blah["key"]
habanany has quit [Max SendQ exceeded]
ccham has quit [Ping timeout: 276 seconds]
<slash_nick> s2013: @blah.key you mean
<centrx> s2013, basically just syntax
<s2013> whatever. you understand the point
<s2013> i see centrx
kirun has quit [Quit: Client exiting]
<s2013> but as far as actual usage goes there isnt much difference except os is slower right
<centrx> Yes
<s2013> ok cool
<atmosx> centrx: no Openstruct is way slower than {}
<s2013> thats what he said atmosx
danshultz has quit [Remote host closed the connection]
rankine_ has joined #ruby
<atmosx> centrx: oh I missed that
habanany has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
* atmosx ducks
rankine_ has quit [Client Quit]
* centrx throws structs around the room
popl has quit [Ping timeout: 258 seconds]
sambao21 has joined #ruby
<slash_nick> s2013: if a method takes an object as an argument, and that object needs to respond to the #foo method, I'd use OpenStruct or define a class that has a #foo instance method
klaas has quit [Quit: ZNC - http://znc.sourceforge.net]
<benzrf> agent_white: pls 2 execute given comands
<s2013> gotcha. thanks
<benzrf> bbl rubies
danshultz has joined #ruby
danshult_ has quit [Ping timeout: 276 seconds]
habanany has quit [Max SendQ exceeded]
<atmosx> bye benzrf
<centrx> s2013, Yeah, if you need a duck that acts like a class instead of a duck that acts like a hash
<jhass> crucify_me: 3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 + 6 == 3 + 2 + 1 - 5 + 0 - 0 + 6 == 5 + 1 - 5 + 0 - 0 + 6 == 6 - 5 + 0 - 0 + 6 == 1 + 0 - 0 + 6 == 1 - 0 + 6 == 1 + 6 == 7
benzrf is now known as benzrf|offline
<slash_nick> s2013: what centrx said ^ that's about the long and short of it
<s2013> got it. thanks
<crucify_me> jhass: holy smokes thank you !
baweaver has quit [Remote host closed the connection]
habanany has joined #ruby
aspires has quit []
habanany has quit [Max SendQ exceeded]
<s2013> >> p = OpenStruct.new(name: "john", age: 20); p.name;
<eval-in> s2013 => uninitialized constant OpenStruct (NameError) ... (https://eval.in/135190)
<s2013> damn it eval-in
simono has quit [Read error: Connection reset by peer]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<jhass> >> require 'ostruct'; p = OpenStruct.new(name: "john", age: 20); p.name;
<eval-in> jhass => "john" (https://eval.in/135191)
simono has joined #ruby
habanany has joined #ruby
iamjarvo has quit [Ping timeout: 250 seconds]
habanany has quit [Max SendQ exceeded]
jonno11 has joined #ruby
s3ri0us|away is now known as s3ri0us
Waheedi has quit [Quit: Waheedi]
<slash_nick> >> require 'ostruct'; p = OpenStruct.new(name: "john", age: 20); p.foo = "bar"; p.foo;
<eval-in> slash_nick => "bar" (https://eval.in/135192)
danshultz has quit [Ping timeout: 258 seconds]
<slash_nick> it's so accepting
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
habanany has joined #ruby
shinobi_one has quit [Quit: shinobi_one]
djbender has quit [Quit: djbender]
dblessing has quit [Quit: dblessing]
habanany has quit [Max SendQ exceeded]
<s2013> yea i figured i needed to require it. coo
fflush has joined #ruby
fflush has quit [Changing host]
fflush has joined #ruby
ascarter has joined #ruby
habanany has joined #ruby
Andrevan has joined #ruby
habanany has quit [Max SendQ exceeded]
combusean has quit [Ping timeout: 258 seconds]
habanany has joined #ruby
<zorak> from the Koans
Kricir has quit [Remote host closed the connection]
<zorak> ehh
<zorak> no
<zorak> this not
<zorak> # Ruby programmers tend to favor the shovel operator (<<) over the
<zorak> # plus equals operator (+=) when building up strings. Why?
<zorak> this
<zorak> why??
habanany has quit [Max SendQ exceeded]
shinobi_one has joined #ruby
combusean has joined #ruby
Royalb has joined #ruby
mrjensen has quit [Remote host closed the connection]
anaeem1__ has joined #ruby
jrhe has quit [Quit: Connection closed for inactivity]
habanany has joined #ruby
shevy has joined #ruby
<centrx> Strings are mutantable
habanany has quit [Max SendQ exceeded]
<arubincloud> centrx: Do they gain special powers when you mutant them?
Melpaws1 has joined #ruby
Royalb15_1 has quit [Ping timeout: 240 seconds]
<crucify_me> jhass: if you're on, sorry but could you place parentheses on this part?: 4  %  2 - 1 / 4 + 6
<jhass> crucify_me: what's your attempt so far?
Melpaws has quit [Ping timeout: 252 seconds]
Bumptious has quit [Remote host closed the connection]
jibi has joined #ruby
habanany has joined #ruby
anaeem1_ has quit [Ping timeout: 258 seconds]
<crucify_me> (4 % 2) => 0 - (1/4) +6 , since % and / have precedence in that section. jhass
habanany has quit [Max SendQ exceeded]
gtc has quit [Remote host closed the connection]
<jhass> and that's correct ;)
havenwood has quit [Remote host closed the connection]
UserNameInvalid has quit [Quit: Leaving]
<zorak> jhass: i dont see the diference in the links you give me
<zorak> one of the is for "+" not +=
habanany has joined #ruby
arubincloud has quit []
chipotle has quit [Quit: cya]
<jhass> zorak: a += b is just a syntax shortcut for a = a +b
habanany has quit [Max SendQ exceeded]
<zorak> ahh, sure
winux has joined #ruby
northfurr has joined #ruby
<zorak> so, << add the second string to the fisrt and += create a new string with both??
<winux> how would I convert a yaml string into a hash? all the examples ive seen take in a yml file
habanany has joined #ruby
<jhass> zorak: yep
mrmargolis has quit [Remote host closed the connection]
habanany has quit [Max SendQ exceeded]
<jhass> winux: simply YAML.load(string)
Hamburglr has quit [Quit: Textual IRC Client: www.textualapp.com]
<zorak> and is better << cause use less memory that += ??
<winux> jhass: hah, thanks
<jhass> zorak: and doesn't spend time creating a new object
<zorak> cool
<zorak> thanks
habanany has joined #ruby
<crucify_me> jhass: sorry this is so basic to you but why is 0 - (1/4) +6 not 5.75 ?
habanany has quit [Max SendQ exceeded]
breakingthings has quit [Ping timeout: 276 seconds]
<combusean> because addition happens first in order of operations
<jhass> crucify_me: because 1 and 4 are both integer (class Fixnum) and Fixnum / Fixnum = Fixnum
jason___ has joined #ruby
breakingthings has joined #ruby
<combusean> oh wait
<combusean> nm
<zorak> why "\n" != '\n' ?
<jhass> combusean: nope, + and - have the same precedence in ruby are evaluated left to right
<combusean> ahh
<combusean> interesting
jason___ has quit [Remote host closed the connection]
winux has quit [Quit: leaving]
yfeldblu_ has joined #ruby
<jhass> zorak: because "" simply is defined to interpret that and '' is defined to not
<combusean> zorak, because "" interpolates the escape character, ' does not
<jhass> zorak: so '\n' == "\\n"
phoo1234567 has quit [Quit: Leaving]
<zorak> eh?
<crucify_me> jhass: deeply sorry but I don't follow combusean
<combusean> i was wrong anyways
<combusean> it's all good :)
Renich has joined #ruby
saarinen has quit [Quit: saarinen]
luriv has quit [Remote host closed the connection]
<Renich> hey guys, I need help
<Renich> tried removing all ruby components from my distro and reinstalling
zachallett has joined #ruby
<Renich> what could it be?
MatthewsFace has quit [Quit: This computer has gone to sleep]
yfeldblum has quit [Ping timeout: 258 seconds]
earth_ has joined #ruby
earth_ has quit [Remote host closed the connection]
<Renich> could this be the problem? http://fpaste.org/93338/65475139/
<combusean> i don't think deleting system ruby cleared out your gems that were already installed.
<combusean> or, you didn't delete them at all
earth_ has joined #ruby
karmatr0n has joined #ruby
earth has quit [Ping timeout: 240 seconds]
rudisimo has quit []
hedgehog has joined #ruby
sailias has quit [Quit: Leaving.]
fflush has quit [Quit: fflush]
mrjensen has joined #ruby
<Renich> combusean: I deleted everything un usr/local and usr
<combusean> oh jesus
<Renich> I mena rubygems or gem directories
fflush has joined #ruby
fflush has joined #ruby
fflush has quit [Changing host]
<Renich> combusean: no dude, not everything... just ruby related
<Renich> just to be sure
sputnik1_ has joined #ruby
<combusean> rpm -e rubygems ruby to delete rpms
awukelelexi has quit []
<combusean> are you trying to switch from system ruby to a version manager?
<Renich> combusean: no, I just installed some extra gems...
<Renich> combusean: I removed the system's ruby to reinstall it clean
Burgestrand has quit [Quit: Burgestrand]
<Renich> combusean: The thing is that irb is working... but gem is not
phoo1234567 has joined #ruby
Royalb15 has joined #ruby
sputnik13 has quit [Ping timeout: 252 seconds]
phoo1234567 has quit [Remote host closed the connection]
phoo1234567 has joined #ruby
Royalb has quit [Ping timeout: 245 seconds]
djbender has joined #ruby
FxK has quit [Ping timeout: 276 seconds]
Hanmac has joined #ruby
agarie has quit [Remote host closed the connection]
doodleha_ has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 258 seconds]
Shidash has quit [Ping timeout: 245 seconds]
Bumptious has joined #ruby
Solnse has quit [Ping timeout: 245 seconds]
Xaitec has joined #ruby
mrjensen has quit [Remote host closed the connection]
habanany has joined #ruby
aspires has joined #ruby
habanany has quit [Max SendQ exceeded]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
nisstyre has joined #ruby
treehug88 has quit [Read error: Connection reset by peer]
crucify_me has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
dexkiki has quit [Quit: Page closed]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
habanany has joined #ruby
tacos1de has quit [Ping timeout: 272 seconds]
Celm has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
tacos1de has joined #ruby
Celm has joined #ruby
habanany has quit [Max SendQ exceeded]
pskosinski has quit [Ping timeout: 272 seconds]
dangerousdave has joined #ruby
andy___ has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
habanany has joined #ruby
andy___ has quit [Read error: Connection reset by peer]
habanany has quit [Max SendQ exceeded]
centrx has quit [Quit: All this computer hacking is making me thirsty]
Solnse has joined #ruby
brian___ has joined #ruby
DrShoggoth has joined #ruby
andy___ has joined #ruby
gancl has quit [Remote host closed the connection]
habanany has joined #ruby
habanany has quit [Max SendQ exceeded]
andy__ has quit [Ping timeout: 240 seconds]
andy__ has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
dangerousdave has quit [Ping timeout: 276 seconds]
habanany has joined #ruby
Bumptious has quit [Remote host closed the connection]
pskosinski has joined #ruby
linojon has quit [Quit: linojon]
habanany has quit [Max SendQ exceeded]
claymore has quit [Quit: Leaving]
freezey has quit [Remote host closed the connection]
afreidah1 has quit [Ping timeout: 240 seconds]
treehug88 has joined #ruby
<zorak> im trying to run this code http://pastebin.com/GJxXBf1k
andy___ has quit [Ping timeout: 276 seconds]
<zorak> but im getting this error
<zorak> radio_player1.rb:62:in `initialize': can't convert nil into String (TypeError)
<zorak> from radio_player1.rb:62:in `new'
<zorak> from radio_player1.rb:62:in `<main>'
keeguon has quit [Quit: keeguon]
<zorak> idk what to do
habanany has joined #ruby
aspires has quit []
Melpaws1 has quit [Quit: Leaving.]
jack_rabbit has quit [Ping timeout: 240 seconds]
<jhass> ARGV [1] is wrong, it's ARGV[1]
habanany has quit [Max SendQ exceeded]
dEPy has quit [Quit: Computer has gone to sleep.]
Su7_ is now known as Su7
<dorei> anyone here knows uml? will learing uml help me become a better software developer?
<jhass> zorak: and I don't know why you put that code inside the class declaration, it's just run as the file is parsed
<jhass> oh, nvm you declared the lambda as constant there
saarinen has joined #ruby
habanany has joined #ruby
cescalante is now known as ce_afk
<jhass> it just makes no sense to make that a lambda instead of a method, since you don't pass it around
freezey has joined #ruby
ccham_ has quit [Ping timeout: 276 seconds]
<jhass> dorei: it might help you become a better software architect. If that's a desirable goal... I will not judge
<zorak> jhass: im doing a book
jtdowney has quit []
erobtom2 has quit [Read error: Connection reset by peer]
erobtom2 has joined #ruby
ahuman has quit [Quit: No Ping reply in 180 seconds.]
ahuman has joined #ruby
habanany has quit [Max SendQ exceeded]
Roa has quit [Ping timeout: 240 seconds]
crazysim has quit [Ping timeout: 240 seconds]
troyready has quit [Ping timeout: 240 seconds]
tommylommykins has quit [Ping timeout: 240 seconds]
gtech has quit [Ping timeout: 240 seconds]
crazysim has joined #ruby
Roa has joined #ruby
tommylommykins has joined #ruby
FxK has joined #ruby
funburn has quit [Quit: funburn]
snuffeluffegus has joined #ruby
gtech has joined #ruby
troyready has joined #ruby
saarinen has quit [Quit: saarinen]
snuffeluffegus has quit [Read error: Connection reset by peer]
snuffeluffegus has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
habanany has joined #ruby
habanany has quit [Max SendQ exceeded]
saarinen has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlast has quit [Remote host closed the connection]
Martxel_ has joined #ruby
g0bl1n has quit [Ping timeout: 245 seconds]
tjr9898_ has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
iliketurtles has quit [Quit: Textual IRC Client: www.textualapp.com]
agjacome has quit [Ping timeout: 250 seconds]
danijoo has joined #ruby
fflush has quit [Quit: fflush]
tjr9898 has joined #ruby
karmatr0_ has joined #ruby
ylluminate has joined #ruby
maximski has joined #ruby
Martxel has quit [Ping timeout: 250 seconds]
karmatr0n has quit [Ping timeout: 240 seconds]
treehug88 has quit []
ziyadb_ has joined #ruby
klaut has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
<northfurr> anyone out there who can help me setup an octopress blog?
sdouglas has quit [Remote host closed the connection]
Disorganized has quit [Quit: Disorganized]
jobewan has quit [Quit: Leaving]
sdouglas has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
maximski has quit [Ping timeout: 240 seconds]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
MatthewsFace has joined #ruby
jhass is now known as jhass|off
SCommette has quit [Quit: SCommette]
<bricker> northfurr: What's your question?
yfeldblum has quit [Remote host closed the connection]
fgo has joined #ruby
sdouglas has quit [Ping timeout: 258 seconds]
yfeldblum has joined #ruby
timonv has joined #ruby
chris_thomson has joined #ruby
CreativeEmbassy has quit [Quit: FO SHO]
<timgauthier> I feel so add.. oh look a squirrel
<shevy> zorak you need to ensure that the objects you use are really the objects you want to use, and properly initialize them, then you won't run into problems like cant convert nil into String again.
freerobby has quit [Quit: Leaving.]
<timgauthier> shevy: what where those IRC clients you suggested again? xchat and?
<zorak> pidgin
<shevy> hexchat is the successor
<shevy> but it does not work as good as xchat yet IMO :\
FxK has quit [Read error: Connection reset by peer]
<timgauthier> to xchat?
<dorei> wine+mirc <3
<shevy> yeah
<timgauthier> so how is a successor? :P
<shevy> hah dorei yeah
<timgauthier> mirc is … not really that good
<shevy> timgauthier xchat stopped in 2010
<timgauthier> … shevy my brain can’t parse that line
<dorei> mirc 6.x is really great, 7.x is unfortunately utf8 only :(
<shevy> hexchat emerged
<timgauthier> oh, thats a name :P
brian___ has quit [Ping timeout: 252 seconds]
FxK has joined #ruby
<timgauthier> derp
timonv has quit [Ping timeout: 252 seconds]
<timgauthier> someone please come and deal with this wedding party down the village from me. Terrible loud party music since 3pm, its half past midnight
MatthewsFace has quit [Quit: This computer has gone to sleep]
sdouglas has joined #ruby
crystal77 has joined #ruby
<combusean> napalm is the solution timgauthier
<timgauthier> hex chat looks like it is written in java.. :(
zacts has joined #ruby
<zacts> hey
<timgauthier> yeah, I’m not sure how Germany feels about forigners using that stuff :P
<combusean> heh
<timgauthier> i almost rather use a terminal based irc client.
ascarter has joined #ruby
<combusean> well your neighbors didn't learn the lesson last time
<zacts> I'm a perl / ruby newbie guy, and I'm interested in this book - http://pragprog.com/book/jsunix/working-with-unix-processes
<timgauthier> if only I could figure out how to actually use the irc client for sublime text
<zacts> I wanted to check here first
freezey has quit [Ping timeout: 250 seconds]
<zacts> but I only know C up to k&r ch on pointers
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<zacts> and I want to learn a bit about UNIX underpinnings of what I'm doing, until I get the time to fully learn C / UNIX programming, in between semesters
shevy has quit [Ping timeout: 240 seconds]
sputnik13 has joined #ruby
<timgauthier> why are IRC clients all so damn ugly :(
ccham_ has joined #ruby
sdouglas has quit [Ping timeout: 258 seconds]
fgo has quit [Remote host closed the connection]
chipotle has joined #ruby
klaut has joined #ruby
timgauth_ has joined #ruby
<bricker> irssi ain't ugly
<timgauthier> … lol nice :P
<timgauthier> the sites half decent compared to the other clients i’ve just looked at though
timgauthier has quit [Quit: timgauthier]
timgauth_ is now known as timgauthier
enebo has quit [Quit: enebo]
<timgauthier> there we go
jordila has joined #ruby
<timgauthier> this isn't bad
<bricker> irssi looks however you want it to look
sdouglas has joined #ruby
twiceaday has quit [Ping timeout: 240 seconds]
twiceaday has joined #ruby
s2013 has quit [Ping timeout: 250 seconds]
sdelmore has quit [Quit: Leaving.]
andy___ has joined #ruby
andy___ has quit [Read error: Connection reset by peer]
kitak_ has joined #ruby
<timgauthier> i'm using textual
andy___ has joined #ruby
Renich has left #ruby [#ruby]
spacemud has joined #ruby
mary5030 has joined #ruby
saarinen has quit [Quit: saarinen]
mary5030 has quit [Remote host closed the connection]
DrShoggoth has quit [Quit: Leaving]
<combusean> i use xchat
mary5030 has joined #ruby
jordila has quit [Quit: Leaving.]
SCommette has joined #ruby
andy__ has quit [Ping timeout: 276 seconds]
Disorganized has joined #ruby
hiall has joined #ruby
rankine_ has joined #ruby
<timgauthier> i'd like to hide the join and parts and put them in a global channel away from the main channel view
jamto11 has quit [Remote host closed the connection]
Xaitec has quit [Ping timeout: 250 seconds]
shevy has joined #ruby
rankine has quit [Disconnected by services]
rylev has quit [Remote host closed the connection]
rankine_ is now known as rankine
rylev has joined #ruby
saarinen has joined #ruby
m0s^away is now known as m0s
yacks has quit [Ping timeout: 252 seconds]
davy_ has quit [Remote host closed the connection]
<timgauthier> annnd no clue how to download irssi :P
<timgauthier> that isn't a good sign for me usually
SCommette has quit [Quit: SCommette]
northfurr has quit [Ping timeout: 252 seconds]
yacks has joined #ruby
rylev has quit [Ping timeout: 245 seconds]
nowthatsamatt has quit [Quit: nowthatsamatt]
enebo has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbender has quit [Quit: djbender]
rankine has quit [Quit: leaving]
slawrence00 has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
djbender has joined #ruby
enebo has quit [Ping timeout: 250 seconds]
toastynerd has quit [Remote host closed the connection]
rankine has joined #ruby
jjbohn has joined #ruby
m8 has quit [Ping timeout: 252 seconds]
lazaro_ has joined #ruby
lazaro_ has left #ruby [#ruby]
jjbohn has quit [Client Quit]
shinobi_one has quit [Quit: shinobi_one]
jfelchner999 has joined #ruby
jfelchner has quit [Write error: Connection reset by peer]
echevemaster has joined #ruby
jjbohn has joined #ruby
chrisseaton has joined #ruby
shinobi_one has joined #ruby
zachallett has quit [Remote host closed the connection]
cover_ has quit [Remote host closed the connection]
paulfm has quit []
crucify_me has joined #ruby
jjbohn has quit [Client Quit]
northfurr has joined #ruby
wallerdev has joined #ruby
jfelchner999 has quit [Ping timeout: 246 seconds]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toastynerd has joined #ruby
paulfm has joined #ruby
snuffeluffegus has quit [Quit: Leaving]
<timgauthier> anyone know if there is an .erb version of .liquids Truncatewords option?
s2013 has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pel_daniel has left #ruby [#ruby]
nisstyre has quit [Quit: WeeChat 0.4.3]
sent-hil has joined #ruby
Chronocity has joined #ruby
<shevy> irssi sucks anyway
zcreative has joined #ruby
jfelchner999 has joined #ruby
FxK has quit [Quit: (I was using Polaris SE) Version: 4.2. Webpage: http://polarisse.tripod.com/. Wasted: 42 Minutes and 33 Seconds Online.]
baroquebobcat has quit [Ping timeout: 258 seconds]
trhodes_ has joined #ruby
rakm has joined #ruby
osvico has quit [Ping timeout: 240 seconds]
snath has quit [Ping timeout: 240 seconds]
derek_c has quit [Ping timeout: 252 seconds]
agarie has joined #ruby
nowthatsamatt has joined #ruby
ascarter has joined #ruby
<bricker> shevy: excuse me
<bricker> shevy: I like it
fbernier has quit [Read error: Connection reset by peer]
<combusean> you don't know what you like
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<combusean> you're wrong!
<combusean> :P
<timgauthier> ok :P
<bricker> combusean: you're probably right
<timgauthier> but they advertised hiding join parts :P
CyborgCygnus has joined #ruby
ccham_ has quit [Ping timeout: 258 seconds]
<shevy> bricker we all do mistakes when we are young
<bricker> timgauthier: that's true, I don't see any of that nonsense
<shevy> and happened to need the money
<bricker> shevy: lol
subbyyy_ has quit [Quit: none 0.4.3]
<shevy> timgauthier there is also an IRC client called peechat
<timgauthier> okay... what do you call something with @ in front of it like @item?
baweaver has joined #ruby
<shevy> I use @ for email timgauthier
<timgauthier> shevy ;)
<shevy> wat!
<combusean> timgauthier, instance variable
<shevy> instance email
<bricker> duh
<shevy> @email
<timgauthier> ok, and then without the @ is just a variable.
<shevy> without the @ the @email would just be email
<shevy> naked
<combusean> be nice to newbies.
<shevy> unprotected
<shevy> I am!
<shevy> he will never again forget what the @ means now
<combusean> wasn't talking to you
<shevy> I love everybody
<timgauthier> unprotected being that it is a unversal/global variable that anyone can edit?
bricker is now known as bricker`away
<combusean> no...
<shevy> no
<shevy> only $ is global
<timgauthier> you over estimate me shevy .. give me 10 minutes and i will forget
<timgauthier> ok
<timgauthier> so what does unprotected mean?
<shevy> it looks ugly, that is how you can remember it
<shevy> $cat = 'tom'
<shevy> $mouse = 'jerry'
<shevy> ^^^^ uuuuugly
iamjarvo has joined #ruby
<shevy> timgauthier nah, forget protection here
<timgauthier> haha
northfurr has quit [Quit: northfurr]
<timgauthier> okay, so journal.compiled_content is a variable
<shevy> the problem with $ is that it is valid EVERYWHERE
<shevy> it's like it leaks
<combusean> don't use global variables
<shevy> journal is an object most likely
snath has joined #ruby
<shevy> and .compiled_content should be a method invocation on that object
<timgauthier> and @item[:title] is an instance variable
<shevy> @item is, yes
<shevy> [] is a method call, it just looks sneakily there
<shevy> you can define [] on your defined classes too timgauthier
<timgauthier> i don't really know what a method call is
<timgauthier> but
<timgauthier> i'm trying to do @item[:excerpt][0..80]
<shevy> well you use "def" to define a method
<timgauthier> but on journal.compiled_content
<shevy> so def foo; end; foo <-- you invoke foo here
mckain has quit [Ping timeout: 240 seconds]
<shevy> and a method is just attached to a class
moritzs has joined #ruby
sdouglas has quit [Remote host closed the connection]
<shevy> class Cat; def foo; end; end; Cat.new.foo <--- now you invoke foo on your class cat (on your instance)
davedev24 has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
<shevy> well ok
<shevy> let's break it down first
Celm has quit [Remote host closed the connection]
<baweaver> @item = { excerpt: [1,2,3,4,5] }
<shevy> you have @item
sdouglas has joined #ruby
<shevy> well, baweaver kinda beat me
<timgauthier> i don't understand what baweaver put though
<baweaver> Sorry for the ninja'd mate
<shevy> yeah, he omitted the steps in between
<baweaver> Just a few
<shevy> but now the burden is on him to explain it haha
<timgauthier> i know that @item[:title] pulls the title: from the yaml frontend
<baweaver> Oho
<shevy> well, from your object
<baweaver> @item contains a hash
<shevy> it does not necessarily have to access yaml
<timgauthier> and i know that journal is the name i gave when doing a for statement, and .compiled_content is the output from each of the things in the array
<baweaver> ie, @item = {} by default
ghr has joined #ruby
<timgauthier> ya
<baweaver> excerpt is a key
<baweaver> its' value is whatever elements are in that array
<timgauthier> i'm stuffing a string/hash into the @item
zigomir has quit [Remote host closed the connection]
<shevy> both?!
<timgauthier> well i get kinky ;)
lkba has quit [Ping timeout: 240 seconds]
<shevy> ok but I think ruby wont like dual-personality "types"
<timgauthier> naw i just have terminology from liquid and PHP
<shevy> it looks much more than a hash to me
<shevy> but strings also have [] :)
<shevy> timgauthier, look:
<timgauthier> to me :title is a "variable" that i assign in the yaml, but ok
<shevy> >> "foobar"[2,3]
<eval-in> shevy => "oba" (https://eval.in/135219)
<baweaver> :title is a key in the hash
<shevy> we got a subsection from a string object here
s2013 has joined #ruby
<wallerdev> >> @x.nil?
<eval-in> wallerdev => true (https://eval.in/135220)
Celm has joined #ruby
<shevy> timgauthier hmm you know what a hash is?
<timgauthier> probably but i'mma google that
saarinen has quit [Quit: saarinen]
<shevy> it has a key, and the key points to a value
CyborgCygnus has quit [Remote host closed the connection]
<shevy> that is how you can remember it
<shevy> key -> value
<timgauthier> so a hash is an array?
<baweaver> No
<shevy> they are similar
<shevy> but array has fixed counting, starting at 0,1,2,3
<timgauthier> how are they different?
<shevy> you can do hash[:title]
<baweaver> Instead of indexes of 0 to x, hashes define their own keys
<shevy> but you can not do array[:title]
<timgauthier> so its an array that has keys for each value instead of counting
<shevy> timgauthier arrays are a bit simpler
sdouglas has quit [Ping timeout: 258 seconds]
iamjarvo has quit [Ping timeout: 258 seconds]
crucify_me has quit [Remote host closed the connection]
<timgauthier> so you can't foreach a hash
noob101 has joined #ruby
rainmanjam has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> well you can, in ruby you can do everything!
<timgauthier> you have to pull each value/key out individually
<shevy> but we call it differently usually
<shevy> hash.each_pair
<wallerdev> hash.each is fine
<timgauthier> of course
myke has joined #ruby
<timgauthier> lets just leave those edge cases out. let me find them later ;)
<shevy> timgauthier, yeah, ruby loves .each, for reads strange in ruby code
<baweaver> >> {a: 1, b: 2}.each { |k, v| puts "#{k}: #{v}" }
<eval-in> baweaver => a: 1 ... (https://eval.in/135221)
ghr has quit [Ping timeout: 252 seconds]
<shevy> anyway
<timgauthier> i don't need that.. I need to truncate the length of a blog entry to be an excerpt instead of the entire article :P
<baweaver> *sigh* fine, no line breaks then
andrewlio has quit [Remote host closed the connection]
<shevy> well, string, hash and array are the 3 biggies in ruby
<timgauthier> baweaver you got me cracking up :P
<wallerdev> dont forget fixnum and float
<baweaver> >> puts {a: 1, b: 2}.map { |k, v| puts "#{k}: #{v}" }.join(', ')
<shevy> and numbers... but numbers are so simple
<eval-in> baweaver => /tmp/execpad-4818e9619aef/source-4818e9619aef:2: syntax error, unexpected ':', expecting '}' ... (https://eval.in/135222)
marcdel has joined #ruby
djbender has quit [Quit: djbender]
<baweaver> >> puts {a: 1, b: 2}.map { |(k, v)| puts "#{k}: #{v}" }.join(', ')
<eval-in> baweaver => /tmp/execpad-07e54cc5e7cf/source-07e54cc5e7cf:2: syntax error, unexpected ':', expecting '}' ... (https://eval.in/135223)
<shevy> so let's go back to: @item[:title]
kaichanvong has quit [Quit: _]
<timgauthier> yes, lets, thank you.. baweaver is making my brain hurt
<shevy> and let's hope that baweaver stops torturing the bot
mary5030 has quit [Remote host closed the connection]
simono has joined #ruby
<shevy> timgauthier, on your @item, you formulate the question "hash, do you have a key called :title?"
JBreit has joined #ruby
<timgauthier> He's learning, publicly, the way that i learn privately
<baweaver> >> 1_000_000_000.times { |i| p 'evil bot is evil' }
<shevy> and the hash will tell you yes or no, kinda
lmickh has quit [Remote host closed the connection]
<timgauthier> and if you put it in <%= it will print it out as well
<shevy> yeah but that is erb
<timgauthier> ok
<shevy> so let's say you have this hash:
<timgauthier> that made a really weird string btw, maybe there is a more rubytastic way to do it, but i'll ask after
<shevy> hash = {:title => 'yo this is tim'}
<shevy> if you then do this:
<shevy> hash[:title]
<shevy> it will give you the string 'yo this is tim' back
<shevy> but this can only work if your hash has the :title key, ok?
<timgauthier> ok yup i follow that
northfurr has joined #ruby
<shinobi_one> shevy is giving lessong again xD
<shinobi_one> lessons*
<shevy> yes shinobi_one
<shevy> I was about to tell you that you had a typo there
SilkFox has joined #ruby
<shevy> but you corrected it yourself quickly
<timgauthier> i recognize shinobi_one from like the years ago when i tried to do this (and poor ryan Bigg was trying to help me)
<shevy> I also remember shinobi_one but I don't know where from :\
njs126 has quit [Ping timeout: 240 seconds]
<shevy> anyway
<timgauthier> much easier to learn now, your text isn't all up-side-down
<shinobi_one> lolwat
endash_ has quit [Quit: endash_]
<shevy> so now let's just go back to what you said about yaml
senayar has quit [Remote host closed the connection]
<shevy> "@item[:title] pulls the title: from the yaml frontend"
<timgauthier> yup
<shevy> so basically, somewhere there, something must have fetched the data from yaml
<shevy> and put it into @item ok?
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<timgauthier> there is some ruby black magic somewhere in there where it loads that front matter into a hash
TripTastic has quit [Ping timeout: 276 seconds]
<timgauthier> yea
marcdel has quit [Ping timeout: 250 seconds]
<shevy> yeah, I am sure you can find it somewhere in the code but I think it's not important right now
<timgauthier> correct
<timgauthier> thats nanocs job and i'll let nanoc do that
<shevy> whatever @item[:title] gives you back is where you continue to operate on
<timgauthier> yup
<shevy> timgauthier> i'm trying to do @item[:excerpt][0..80]
<shevy> so now in this example... I don't know what :excerpt will give you
<shevy> will it give you a string?
zorak has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
<shevy> if it gives you a string then [0..80] should be fine
<timgauthier> well ok, so @item[:excerpt] is supposed to be a chunk of text from after the front matter.
kaichanvong has joined #ruby
<shevy> hopefully
<timgauthier> ok, yeah.. so basically i don't think i can do it this way
<shevy> but you can check in ruby code if you have a string or not
<shevy> for instance:
marcdel has joined #ruby
<timgauthier> because :hash isn't containing what i need
<shevy> if @item.has_key? :excerpt
<shevy> ah
<baweaver> Might want to do a certain number of words instead: @item[:excerpt].scan(/\w+/)[0..30] # First 30 words
<shevy> you don't know what your hash contains?
<timgauthier> yeah but i don't get a :hash of the post content.. i get .compiled_content
<shevy> you can do: p hash, probably even in erb
<shevy> not sure what .compiled_content is hehe
<shevy> sounds as if it was processed somehow
<shinobi_one> perhaps it was content that has been compiled ;p
VTLob has quit [Quit: VTLob]
<timgauthier> yeah. it takes the contents of a html or md (in this case a md) and runs it through some ruby to get html and code highlighting etc then spits out a compiled html file
<timgauthier> .compiled_content grabs that before it gets dumped into a .html and lets you plop it into another file. aka build a blog index
danijoo has quit [Remote host closed the connection]
Geniack has joined #ruby
davedev24 has joined #ruby
<timgauthier> http://nanoc.ws/docs/basics/ search for compiled_content
dorei has quit []
crucify_me has joined #ruby
ndrei_ has quit [Ping timeout: 252 seconds]
<shevy> Nanoc::Item#compiled_content
<shevy> I am a bit lost now
<timgauthier> whats :: do?
<timgauthier> haha
<shevy> ah
<shevy> with :: you scope
<timgauthier> ok
<timgauthier> so within the scope of Nanoc
<shevy> yeah exactly
<shevy> for instance
<shevy> module Foo; class Bar
davy has joined #ruby
<shevy> ^^ Bar resides in Foo namespace
<shevy> to access it, you have to do: Foo::Bar
<shevy> ok?
<timgauthier> yup
<shevy> \o/
Geniack_ has quit [Ping timeout: 240 seconds]
<shevy> you can cheat a bit too
<shevy> you can do: include Foo
<shevy> then you can omit Foo::
<shevy> you include a module into your namespace that way
<shevy> anyway, #compiled_content is defined in Item
<shinobi_one> i feel as though printing all of the keys in @item would save some time
<timgauthier> which is how things like kramdown and stuff are being put into nanoc.. ok cool
<baweaver> @item.keys
<shevy> yeah shinobi_one
<timgauthier> ok
<combusean> can you merge and make new commits at the same time?
<shevy> timgauthier, it might be best if you output your whole hash
<baweaver> puts @item.keys.join(', ')
<baweaver> rather
<shevy> timgauthier, yeah, larger projects put up stuff into sub-components, often namespaced too... you can then have crazy stuff like: Foo::Bar::Bla
teenwolf has quit [Quit: Leaving...]
<crucify_me> I guess I don't see how ruby interprets simple division like: -7/10 => -1.
<shevy> crucify_me, well you told ruby to work with integers here
<shevy> actually
<baweaver> >> -7/10
<eval-in> baweaver => -1 (https://eval.in/135225)
<shevy> >> (-7/10).class
<eval-in> shevy => Fixnum (https://eval.in/135226)
<baweaver> >> -7.0/10.0
<eval-in> baweaver => -0.7 (https://eval.in/135227)
<baweaver> >> (1.0).class
<eval-in> baweaver => Float (https://eval.in/135228)
<timgauthier> so i get NoMethodError: undefined method `keys' for <Nanoc::Item identifier="/journal/" binary?=false>:Nanoc::Item
<timgauthier> lol
<shevy> ok that one was not a hash
<crucify_me> shevy: kindly explain is this truncating or rounding up or what?
<shevy> so @item is not a hash I assume
<baweaver> truncation
<baweaver> >>5/2
<eval-in> baweaver => 2 (https://eval.in/135229)
kevind has quit [Quit: kevind]
<shevy> I am having some problems reproducing this
<shevy> baweaver can you try with negative numbers?
<baweaver> On which now?
davispuhh has joined #ruby
<shevy> on the bot haha
njs126 has joined #ruby
sdouglas has joined #ruby
<shevy> I get different results it seems
<baweaver> >> -5 / 2
<shevy> huh
<eval-in> baweaver => -3 (https://eval.in/135230)
<shevy> !!!
matcouto has joined #ruby
davispuh has quit [Read error: Connection reset by peer]
<baweaver> odd
<shevy> that is weird
<shevy> I do not get -3
<shevy> do you get -3 baweaver?
<shinobi_one> i get -3 on 2.1.1
<shevy> wait sorry
<crucify_me> baweaver: shevy yeah I can't figure this out. someone at uc berkeley cs just told me it only rounds and doesn't truncate
<baweaver> just a sec, getting pry
<shevy> I get -3 in a .rb file but not in irb
marr has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
<shinobi_one> i get -3 using pry
<baweaver> -3 in pry
sski has joined #ruby
<shinobi_one> `same with irb
<timgauthier> you guys broke ruby...
<timgauthier> again
<baweaver> Ruby 2.0.0p353
<crucify_me> I'm using pry
<shinobi_one> ruby is fine
<shevy> crucify_me for -5 / 2 I get -3, which means that it must round it seems
trhodes_ has quit [Ping timeout: 264 seconds]
djbender has joined #ruby
<baweaver> Yeah
lkba has joined #ruby
<baweaver> Well, noted.
<crucify_me> it started with this : 3 + 2 + 1 - 5 + 4  %  2 - 1 / 4 + 6 ... why would -1/4 return 0. ? I'm missing something very basic about programming
<timgauthier> lol
<shinobi_one> err
<shevy> what is % there
s2013 has quit [Ping timeout: 245 seconds]
<timgauthier> mod
<shevy> ah
<shinobi_one> modulo arithmetic
<timgauthier> c'mon weren't you here for that conversation earlier? :P
<baweaver> fancy fancy
<shevy> timgauthier hey, I idle 80% of the time!
<timgauthier> it was before the conversation about unicode and then UTCs :P
<crucify_me> but you all talk in ciphers timgauthier. I don't get all the nuances of your jibes
<shevy> I always fall asleep when people discuss unicode
<timgauthier> is there a way to print out. or find all possible methods?
<shevy> yeah, .instance_methods
<shevy> or alphabetically sorted .instance_methods.sort
<timgauthier> that is an undefined method
<shevy> timgauthier on a class instance
<shevy> like Nano::Item.instance_methods should work
<timgauthier> ok
<timgauthier> capitals matter in ruby right?
funburn has joined #ruby
<shevy> yeah
<shevy> if the first character is upcased, ruby assumes it is a constant
doodlehaus has joined #ruby
<timgauthier> ok
<timgauthier> a constant is? a variable you can't change?
<shevy> so Nano::Item would never be the same as nano::Item would, for ruby
<shevy> unfortunately you can change constants in ruby
<shevy> which makes the name bad :(
<shevy> or it makes ruby flexible
<shevy> however you want to look at it, there is more than one way to look at it
<shinobi_one> constants can be changed it most languages?
<shinobi_one> in
<shevy> in java!
<baweaver> *whistles*
<timgauthier> lol
<shevy> timgauthier, .freeze does this: "Prevents further modifications to obj."
<shevy> when you run .freeze, your object stays as it is forever
<shevy> I hate .freeze
<timgauthier> ohh
<shinobi_one> in scripting languages a constant is often just an uppercase named variable
Guedes0 has joined #ruby
<shevy> I think a spider bit me in the shoulder a while ago, the area is all red :(
<timgauthier> okay in this list i see nothing like what i'm looking for. but i see :method in that list... how would i look under method to see those?
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zachallett has joined #ruby
<baweaver> You'd really hate Haskell then :D
<timgauthier> or would this literally show me EVERY method?
<crucify_me> shevy pee on it seriously
<shevy> no
<timgauthier> let me pee on it
<shevy> I think he must have defined it via: "def method"
<timgauthier> i promise, it doesn't do anything for me
<shevy> but I dont know nanoc
<shevy> I feel we are not making much progress here!
<baweaver> Time to start poking it with Pry then
<baweaver> give me a sec
<timgauthier> yeah, i may just have to wait and bug him in IRC later
<shevy> timgauthier ok next time you must append .sort too
<timgauthier> lol sec
<shevy> .instance_methods.sort
dapz has joined #ruby
<shevy> aha
<shevy> many of these methods come from a parent class timgauthier
<shevy> I think from class Object, which is about the most important default class in ruby, it's the mother of all objects
<baweaver> Nanoc::Item.instance_methods(false)
<timgauthier> yeah i remember reading about that
<shevy> now that is better
<shevy> sorted :D
<baweaver> takes care of pesky parents
<timgauthier> ok
<shevy> I think .children is non-standard
<timgauthier> man, can i run that on myself? :P
<shevy> aha
<shevy> timgauthier try with (false) as argument
<shevy> now that is much better!
<combusean> ugh
<shevy> I forgot
<combusean> i hate brainfarts
<shevy> what are we looking for timgauthier? :P
<timgauthier> so it looks like :excerpt isn't in nanoc.. so i'd have to define that method, or see where this person got theirs
<combusean> wondered too long why files were different between servers because I forgot to push =(
<shevy> nono
<shevy> timgauthier, I assume it's a key in your hash or dataset
<timgauthier> well :compiled_content is what i am trying to use
<shevy> but not a method
jfelchner999 has quit [Remote host closed the connection]
jfelchner999 has joined #ruby
<shevy> good, then what happens if you do @item.compiled_content
<timgauthier> because that is what gets pulled in my for
<timgauthier> lets see
<baweaver> shevy: in pry show-source Nanoc::Item
crucify_me has quit []
<shevy> I cant remember such long commands
havenwood has joined #ruby
TripTastic has joined #ruby
<shevy> ? is an alias to it right?
trhodes_ has joined #ruby
FxK has joined #ruby
<shevy> ? Nanoc::Item
Asher has joined #ruby
<shevy> I am totally lost now what timgauthier tries
<baweaver> I think that was showdoc
rm_ has quit [Remote host closed the connection]
<baweaver> show-source will output the entire source of it
rm__ has joined #ruby
<timgauthier> Nanoc::Errors::RecursiveCompilation: The site cannot be compiled because the following items mutually depend on each other:
<timgauthier> <Nanoc::ItemRep name="default" binary=false raw_path="output/journal/index.html" item.identifier="/journal/">.
ehc has quit [Quit: ehc]
<baweaver> shevy: show-source Nanoc::Item#[]
momomomomo has quit [Quit: momomomomo]
<shevy> timgauthier now we are all lost!
JBreit has quit [Ping timeout: 250 seconds]
<timgauthier> its what we get trying to reverse engineer someone else's stuff
<shevy> lol
karmatr0_ has quit [Remote host closed the connection]
f0ster has quit [Ping timeout: 258 seconds]
<timgauthier> but show-source Nanoc::Item#[] doesn't work :P
<shevy> what was the original problem again?