<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]
<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?
<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
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]
<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
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
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
<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>
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
<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]
<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]
<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
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
<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
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
<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_>
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.
<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 ?
<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.
<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
<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.
<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
<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_>
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ß
<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_>
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
<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
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]
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
<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"
<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
<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?
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.
<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
<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...
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.
<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]
<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?
<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
<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
<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 %#&*
<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.
<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]
<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?
<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]
<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
<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?
<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
<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
<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]