jhass changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
framling has joined #ruby
sumobob has joined #ruby
AlexRussia has joined #ruby
pawnbox has quit [Ping timeout: 258 seconds]
cyphase has joined #ruby
nerium has quit [Quit: nerium]
nerium has joined #ruby
Yzguy has joined #ruby
Sucks has quit [Remote host closed the connection]
geopet has joined #ruby
geopet has left #ruby [#ruby]
mokha has quit [Quit: leaving]
Sucks has joined #ruby
Sucks has quit [Max SendQ exceeded]
vdamewood has quit [Quit: Life beckons.]
cd-rum has joined #ruby
nerium has quit [Quit: nerium]
Sucks has joined #ruby
nerium has joined #ruby
hahuang61 has joined #ruby
bkxd has joined #ruby
djbkd has quit [Quit: Leaving...]
hahuang61 has quit [Ping timeout: 250 seconds]
bkxd has quit [Ping timeout: 260 seconds]
gix has joined #ruby
macsteps has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
AndyBotwin has joined #ruby
nerium has quit [Quit: nerium]
Sucks has quit [Ping timeout: 264 seconds]
nerium has joined #ruby
jaguarmagenta has quit [Ping timeout: 260 seconds]
SilverKey has joined #ruby
djbkd has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
FernandoBasso has quit [Ping timeout: 258 seconds]
symm- has quit [Ping timeout: 260 seconds]
djbkd has quit [Ping timeout: 276 seconds]
shinnya has quit [Ping timeout: 276 seconds]
nerium has quit [Quit: nerium]
nerium has joined #ruby
Rickmasta has joined #ruby
enterprisey has joined #ruby
Gasher has quit [Quit: Leaving]
craysiii has joined #ruby
gregf has quit [Quit: WeeChat 1.5]
BillSussman has joined #ruby
saneax is now known as saneax_AFK
slackbotgz has joined #ruby
gregf has joined #ruby
AndyBotwin has quit [Ping timeout: 276 seconds]
mattwashere has quit [Remote host closed the connection]
Es0teric has joined #ruby
ElFerna has joined #ruby
Sucks has joined #ruby
Sucks has quit [Max SendQ exceeded]
nerium has quit [Quit: nerium]
LoneHerm_ has joined #ruby
Sucks has joined #ruby
nerium has joined #ruby
moeabdol1 has joined #ruby
jrafanie has joined #ruby
pawnbox has joined #ruby
elifoster has quit [Ping timeout: 258 seconds]
enterprisey has quit [Quit: Leaving]
enterprisey has joined #ruby
[narcan] has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
xall has joined #ruby
minimalism has quit [Quit: minimalism]
jaguarmagenta has joined #ruby
[narcan] has joined #ruby
enterprisey has quit [Remote host closed the connection]
nerium has quit [Quit: nerium]
minimalism has joined #ruby
enterprisey has joined #ruby
qguv has quit [Quit: # halt]
pawnbox has quit [Ping timeout: 276 seconds]
nerium has joined #ruby
ec0 has joined #ruby
qguv has joined #ruby
lupine has quit [Ping timeout: 258 seconds]
BillSussman has quit [Quit: Leaving]
Dry_Lips has quit [Ping timeout: 240 seconds]
xall_ has joined #ruby
nerium has quit [Quit: nerium]
xall has quit [Ping timeout: 260 seconds]
swills has quit [Ping timeout: 244 seconds]
nerium has joined #ruby
swills has joined #ruby
slackbotgz has quit [Remote host closed the connection]
lupine has joined #ruby
arescorpio has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sleepee has joined #ruby
killerkamel has joined #ruby
sleepee has quit [Max SendQ exceeded]
sleepee has joined #ruby
davedev2_ has joined #ruby
davedev24 has quit [Ping timeout: 258 seconds]
Rickmasta has joined #ruby
killerkamel has quit [Ping timeout: 240 seconds]
Dry_Lips has joined #ruby
Dry_Lips has quit [Changing host]
Dry_Lips has joined #ruby
nerium has quit [Quit: nerium]
blackmesa has joined #ruby
nerium has joined #ruby
jaguarma_ has joined #ruby
jaguarmagenta has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
AndrewIsHere has joined #ruby
davedev2_ has quit []
djbkd has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
mattwashere has joined #ruby
AndrewIsHere has quit [Ping timeout: 250 seconds]
pawnbox has quit [Ping timeout: 265 seconds]
djbkd has quit [Ping timeout: 240 seconds]
nankyokusei has joined #ruby
nerium has quit [Quit: nerium]
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nerium has joined #ruby
jaguarmagenta has joined #ruby
jaguarma_ has quit [Ping timeout: 240 seconds]
nankyokusei has quit [Ping timeout: 258 seconds]
RegulationD has joined #ruby
xall_ has quit [Ping timeout: 276 seconds]
sarbs has quit [Ping timeout: 264 seconds]
agent_white has joined #ruby
mattwashere has quit []
AndyBotwin has joined #ruby
sarbs has joined #ruby
<agent_white> Evenin' folks
RegulationD has quit [Ping timeout: 250 seconds]
<zacts> 2/buffer #dragora
GNUYawk has quit [Quit: GNUYawk]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nerium has quit [Quit: nerium]
tmtwd has quit [Ping timeout: 276 seconds]
nerium has joined #ruby
Rickmasta has joined #ruby
yqt has quit [Ping timeout: 265 seconds]
swills has quit [Remote host closed the connection]
ponga has quit []
cout has quit [Remote host closed the connection]
giz|work has joined #ruby
giz|work|2 has quit [Ping timeout: 250 seconds]
nerium has quit [Quit: nerium]
nerium has joined #ruby
Rodya_ has quit [Remote host closed the connection]
TheSpectre has joined #ruby
TheSpectre has quit [Client Quit]
roamingdog has joined #ruby
ramfjord has joined #ruby
TheSpectre has joined #ruby
nerium has quit [Quit: nerium]
bad_ip has quit [Ping timeout: 250 seconds]
Yzguy has quit [Quit: Zzz...]
nerium has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 244 seconds]
skweek has joined #ruby
edwinvdgraaf has joined #ruby
Rickmasta has joined #ruby
hahuang61 has joined #ruby
bkxd has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
Ropeney_ has joined #ruby
LoneHerm_ has quit [Read error: Connection reset by peer]
edwinvdgraaf has quit [Ping timeout: 244 seconds]
raeoks has joined #ruby
edwinvdgraaf has joined #ruby
LoneHerm_ has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
bkxd has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 244 seconds]
nerium has quit [Quit: nerium]
pawnbox has joined #ruby
macsteps has joined #ruby
nerium has joined #ruby
edwinvdgraaf has quit [Ping timeout: 265 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 250 seconds]
blackmesa has joined #ruby
Rickmasta has joined #ruby
cdg has joined #ruby
yoongkan_ has joined #ruby
SilverKey has quit [Quit: Halted.]
yoongkan_ has quit [Remote host closed the connection]
dunpeal has quit [Ping timeout: 276 seconds]
djbkd has joined #ruby
<ICantCook> I'm using the mysql2 library to update a field in a table, and want to abort() if it fails
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ICantCook> any idea why this wouldn't work? https://gist.github.com/anonymous/795d4ab6b7828c1362eba893090393c7
<ICantCook> it runs, it succeeds, but it aborts as though it failed
nerium has quit [Quit: nerium]
nerium has joined #ruby
Cohedrin has joined #ruby
cdg has quit [Ping timeout: 250 seconds]
blackmesa has quit [Ping timeout: 252 seconds]
dunpeal has joined #ruby
anekos has joined #ruby
ur5us has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
killerkamel has joined #ruby
Ropeney_ has quit [Ping timeout: 264 seconds]
yoongkan_ has joined #ruby
zacts has quit [Quit: WeeChat 1.4]
ur5us has quit [Ping timeout: 250 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yoongkan_ has quit [Remote host closed the connection]
Ropeney_ has joined #ruby
veduardo has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
nerium has quit [Quit: nerium]
ur5us has joined #ruby
nerium has joined #ruby
TheSpectre has quit [Quit: leaving]
davedev24 has joined #ruby
Axy has joined #ruby
macsteps has quit [Remote host closed the connection]
Mia has quit [Ping timeout: 244 seconds]
malconis has joined #ruby
PR_Smells has joined #ruby
<PR_Smells> Is ruby-full still the correct package name for apt ?
<PR_Smells> If so, what repository is it located in? I am getting a "package not found" error
xue has joined #ruby
et09 has quit [Quit: leaving]
TheSpectre has joined #ruby
mistermocha has joined #ruby
macsteps has joined #ruby
SilverKey has joined #ruby
nerium has quit [Quit: nerium]
jenrzzz has quit [Ping timeout: 244 seconds]
dvinciguerra_ has quit [Ping timeout: 252 seconds]
nerium has joined #ruby
TheSpectre has quit [Client Quit]
TheSpectre has joined #ruby
astrobun_ has joined #ruby
malconis has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
edgr has joined #ruby
pawnbox has joined #ruby
P_R_Deltoid has joined #ruby
P_R_Deltoid has quit [Client Quit]
P_R_Deltoid has joined #ruby
P_R_Deltoid has quit [Client Quit]
P_R_Deltoid has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
cyphase has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
davedev24 has quit []
P_R_Deltoid has quit [Client Quit]
P_R_Deltoid has joined #ruby
nerium has quit [Quit: nerium]
PR_Smells has quit [Quit: Page closed]
nerium has joined #ruby
adl has joined #ruby
cyphase has joined #ruby
GNUYawk has joined #ruby
Rickmasta has joined #ruby
mistermocha has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
lxsameer has joined #ruby
nerium has quit [Quit: nerium]
ruby-lang039 has joined #ruby
nerium has joined #ruby
k3rn31 has joined #ruby
ruby-lang039 has quit [Ping timeout: 250 seconds]
raeoks has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
edwinvdgraaf has quit [Ping timeout: 260 seconds]
adl has quit [Remote host closed the connection]
gix has quit [Ping timeout: 276 seconds]
nerium has quit [Quit: nerium]
xall_ has joined #ruby
pontiki has joined #ruby
gix has joined #ruby
swills has joined #ruby
blackmesa has joined #ruby
nando293921 has joined #ruby
djbkd has joined #ruby
roamingdog has quit [Remote host closed the connection]
bad_ip has joined #ruby
pawnbox has joined #ruby
nerium has joined #ruby
djbkd_ has joined #ruby
djbkd has quit [Ping timeout: 258 seconds]
nankyokusei has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
nerium has quit [Client Quit]
pawnbox has quit [Ping timeout: 260 seconds]
nerium has joined #ruby
malconis has joined #ruby
<P_R_Deltoid> Turns out the package is just Ruby now
LoneHerm_ has quit [Read error: Connection reset by peer]
Es0teric has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 264 seconds]
P_R_Deltoid has quit [Quit: Leaving]
P_R_Deltoid has joined #ruby
dunpeal has quit [Ping timeout: 244 seconds]
P_R_Deltoid has quit [Client Quit]
P_R_Deltoid has joined #ruby
RegulationD has joined #ruby
LoneHermit has joined #ruby
astrobun_ has quit [Remote host closed the connection]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
craigp_ has quit [Ping timeout: 260 seconds]
RegulationD has quit [Ping timeout: 244 seconds]
dunpeal has joined #ruby
nerium has quit [Quit: nerium]
ur5us has quit [Remote host closed the connection]
nerium has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
the_drow has joined #ruby
nando293921 has quit [Ping timeout: 265 seconds]
jishankai has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arescorpio has quit [Quit: Leaving.]
dunpeal has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
chipotle has joined #ruby
macsteps has quit [Remote host closed the connection]
davedev24 has joined #ruby
macsteps has joined #ruby
davedev24 has quit [Client Quit]
macsteps has quit [Remote host closed the connection]
whippythellama has quit [Quit: WeeChat 1.2]
sumobob has quit [Ping timeout: 250 seconds]
qguv has quit [Quit: # halt]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qguv has joined #ruby
ICantCook has quit [Quit: bye]
adl has joined #ruby
nerium has quit [Quit: nerium]
nerium has joined #ruby
ur5us has joined #ruby
SilverKey has quit [Quit: Halted.]
skweek has quit [Ping timeout: 260 seconds]
SilverKey has joined #ruby
Sucks has quit [Remote host closed the connection]
enterprisey has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 244 seconds]
veduardo has quit [Ping timeout: 264 seconds]
pawnbox has joined #ruby
grenierm_ has joined #ruby
nerium has quit [Quit: nerium]
nerium has joined #ruby
AndrewIsHere has joined #ruby
AndrewIsHere has quit [Remote host closed the connection]
AndrewIsHere has joined #ruby
Cohedrin has joined #ruby
hahuang61 has joined #ruby
bkxd has joined #ruby
edwinvdgraaf has joined #ruby
AndrewIsHere has quit [Ping timeout: 250 seconds]
k3rn31 has quit [Quit: Computer has gone to sleep.]
hahuang61 has quit [Ping timeout: 244 seconds]
bkxd has quit [Ping timeout: 250 seconds]
nerium has quit [Quit: nerium]
edwinvdgraaf has quit [Ping timeout: 250 seconds]
nerium has joined #ruby
ur5us has joined #ruby
alfiemax has quit [Ping timeout: 244 seconds]
ElFerna has quit [Ping timeout: 264 seconds]
ur5us has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
nvd has joined #ruby
nvd has quit [Remote host closed the connection]
djbkd has joined #ruby
nerium has quit [Quit: nerium]
rahul_ has joined #ruby
blackmesa has joined #ruby
nerium has joined #ruby
AndrewIsHere has joined #ruby
LoneHermit has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
djbkd has quit [Ping timeout: 250 seconds]
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
k3rn31 has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
saneax_AFK is now known as saneax
pawnbox has joined #ruby
djbkd has joined #ruby
AndrewIsHere has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 244 seconds]
LoneHerm_ has joined #ruby
bluOxigen has joined #ruby
nerium has quit [Quit: nerium]
Sucks has joined #ruby
nerium has joined #ruby
ur5us has joined #ruby
rahul_ has quit [Quit: Page closed]
enterprisey has joined #ruby
adl has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 250 seconds]
conta has joined #ruby
astrobun_ has joined #ruby
dionysus69 has joined #ruby
tristanp has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
nerium has quit [Quit: nerium]
nerium has joined #ruby
P_R_Deltoid has quit [Quit: Leaving]
cgfbee has quit [Quit: cgfbee]
Dimik has joined #ruby
nerium has quit [Quit: nerium]
the_drow has quit [Quit: This computer has gone to sleep]
nerium has joined #ruby
ur5us has joined #ruby
craigp has joined #ruby
Sucks has quit [Ping timeout: 264 seconds]
Hobogrammer has quit [Quit: WeeChat 0.4.2]
Sucks has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
edwinvdgraaf has joined #ruby
Sucks has quit [Max SendQ exceeded]
Sucks has joined #ruby
segy has quit [Ping timeout: 264 seconds]
Axy has quit [Quit: Leaving]
Macaveli has joined #ruby
hk238 has joined #ruby
nerium has quit [Quit: nerium]
sepp2k has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
cibs has quit [Ping timeout: 240 seconds]
nerium has joined #ruby
alfiemax has joined #ruby
cibs has joined #ruby
bkxd has quit [Ping timeout: 276 seconds]
edwinvdgraaf has quit [Ping timeout: 276 seconds]
bluOxigen has quit [Ping timeout: 250 seconds]
bluOxigen has joined #ruby
raeoks has joined #ruby
cibs has quit [Ping timeout: 240 seconds]
nerium has quit [Quit: nerium]
conta has quit [Ping timeout: 258 seconds]
nerium has joined #ruby
ur5us has joined #ruby
cibs has joined #ruby
mistermocha has joined #ruby
djbkd__ has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
mcqr has joined #ruby
zacts has joined #ruby
SilverKey has quit [Quit: Halted.]
<Dimik> hi guys
theRealAlexz has quit [Remote host closed the connection]
the_drow has joined #ruby
Sucks has quit [Ping timeout: 260 seconds]
grenierm_ has quit [Quit: grenierm_]
grenierm_ has joined #ruby
blackmesa has joined #ruby
Xiti has quit [Quit: Xiti]
<pontiki> hey, girl
nankyokusei has joined #ruby
djbkd__ has quit [Ping timeout: 264 seconds]
elifoster has joined #ruby
nerium has quit [Quit: nerium]
skweek has joined #ruby
diegoviola has quit [Quit: WeeChat 1.5]
craysiii has quit [Ping timeout: 240 seconds]
nerium has joined #ruby
duncannz has joined #ruby
sumobob has joined #ruby
AndrewIsHere has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
RegulationD has joined #ruby
moeabdol1 has quit [Ping timeout: 260 seconds]
Sucks has joined #ruby
nizzlefritz has quit [Ping timeout: 265 seconds]
blackmesa has quit [Ping timeout: 276 seconds]
enterprisey has quit [Quit: Leaving]
RegulationD has quit [Ping timeout: 244 seconds]
jaguarma_ has joined #ruby
dunpeal has joined #ruby
nerium has quit [Quit: nerium]
the_drow has quit [Quit: This computer has gone to sleep]
dminuoso has joined #ruby
nerium has joined #ruby
ur5us has joined #ruby
jaguarmagenta has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
dunpeal has quit [Ping timeout: 240 seconds]
solars has quit [Ping timeout: 250 seconds]
segy has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
macsteps has joined #ruby
LoneHerm_ has quit [Read error: Connection reset by peer]
nerium has quit [Quit: nerium]
tjohnson has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
macsteps has quit [Ping timeout: 252 seconds]
nerium has joined #ruby
LoneHermit has joined #ruby
mistermo_ has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
mistermo_ has quit [Remote host closed the connection]
AndrewIsHere has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
ledestin has joined #ruby
solars has joined #ruby
LoneHermit has quit [Remote host closed the connection]
kareeoleez has joined #ruby
mistermo_ has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
moeabdol has joined #ruby
kareeoleez is now known as kologlyfadas
cibs has quit [Ping timeout: 240 seconds]
nerium has quit [Quit: nerium]
mistermocha has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
adl has joined #ruby
cibs has joined #ruby
mistermo_ has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
der-landgraf has quit [Ping timeout: 240 seconds]
nerium has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
edwinvdgraaf has quit [Ping timeout: 244 seconds]
nerium has quit [Client Quit]
dminuoso_ has joined #ruby
dminuoso has quit [Ping timeout: 260 seconds]
nerium has joined #ruby
bushshitt has joined #ruby
firstdayonthejob has joined #ruby
jaguarma_ has quit [Remote host closed the connection]
conta has joined #ruby
Miron has quit [Ping timeout: 250 seconds]
minotep has joined #ruby
Silthias has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<bushshitt> whats up guys!
nerium has quit [Quit: nerium]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> not much, chicka!
djbkd__ has joined #ruby
ur5us has joined #ruby
<bushshitt> okay
nerium has joined #ruby
codecop has joined #ruby
raeoks has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
adl has quit [Ping timeout: 250 seconds]
ur5us has quit [Ping timeout: 250 seconds]
raeoks has joined #ruby
djbkd__ has quit [Ping timeout: 264 seconds]
kologlyf_ has joined #ruby
blackmesa has joined #ruby
jaguarmagenta has joined #ruby
blackgoat has joined #ruby
pwnd_nsfw` has joined #ruby
kologlyfadas has quit [Ping timeout: 252 seconds]
nerium has quit [Quit: nerium]
djbkd has quit [Quit: My people need me...]
kologlyf_ is now known as mpampis_sougias
pwnd_nsfw has quit [Ping timeout: 250 seconds]
nerium has joined #ruby
dminuoso_ has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 260 seconds]
webus has joined #ruby
jaiks1 has joined #ruby
mark_66 has joined #ruby
<shevy> zacts do you only read ruby books or do you also write ruby code :)
bkxd has joined #ruby
<pontiki> hey, i only read fantasy books, i don't go around swinging swords at dragons
dminuoso has joined #ruby
ur5us has joined #ruby
Hyuk has joined #ruby
atom_ has joined #ruby
Guest51233 has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 244 seconds]
bushshitt has quit [Ping timeout: 276 seconds]
macsteps has joined #ruby
sumobob has quit [Ping timeout: 250 seconds]
ur5us has quit [Ping timeout: 276 seconds]
blackmesa has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
<shevy> hah
macsteps has quit [Ping timeout: 264 seconds]
webus has quit [Quit: goodbye]
cibs has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
Ropeney_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHerm_ has joined #ruby
jaiks has quit [Remote host closed the connection]
cibs has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
Guest51233 has joined #ruby
LoneHerm_ has quit [Read error: No route to host]
nerium has quit [Quit: nerium]
LoneHerm_ has joined #ruby
yardenbar has joined #ruby
cdg has quit [Ping timeout: 250 seconds]
nerium has joined #ruby
edwinvdgraaf has joined #ruby
sleepee has quit [Ping timeout: 250 seconds]
xall_ has quit [Ping timeout: 240 seconds]
djbkd_ has quit [Quit: Leaving...]
roshanavand has joined #ruby
AndrewIsHere has joined #ruby
al2o3-cr has quit [Ping timeout: 258 seconds]
jud has quit [Read error: Connection reset by peer]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
HammyJammy has joined #ruby
roshanavand has quit [Client Quit]
bigkevmcd has joined #ruby
djbkd has joined #ruby
nerium has quit [Quit: nerium]
AndrewIsHere has quit [Ping timeout: 250 seconds]
JammyHammy has quit [Ping timeout: 258 seconds]
nerium has joined #ruby
edwinvdgraaf has quit [Ping timeout: 252 seconds]
the_drow has joined #ruby
anisha has joined #ruby
nankyokusei has joined #ruby
dionysus69 has joined #ruby
nankyokusei has quit [Read error: Connection reset by peer]
xall_ has joined #ruby
elifoster has quit [Quit: sleep]
M-manveru has joined #ruby
nerium has quit [Quit: nerium]
nerium has joined #ruby
skade has joined #ruby
ur5us has joined #ruby
vondruch has quit [Ping timeout: 260 seconds]
blackgoat has quit [Quit: WeeChat 1.5]
BillSussman has joined #ruby
antgel has joined #ruby
aganov has joined #ruby
AndyBotwin has quit [Ping timeout: 244 seconds]
jaguarma_ has joined #ruby
nerium has quit [Quit: nerium]
jaguarmagenta has quit [Ping timeout: 240 seconds]
jaguarmagenta has joined #ruby
nerium has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
[narcan] has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
andikr has joined #ruby
RegulationD has joined #ruby
jaguarma_ has quit [Ping timeout: 258 seconds]
blackmesa has joined #ruby
edwinvdgraaf has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
chipotle has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 276 seconds]
Dimik has quit [Ping timeout: 244 seconds]
dunpeal has joined #ruby
nerium has quit [Quit: nerium]
silpa has joined #ruby
nerium has joined #ruby
<silpa> Hi, How can we upload image in ruby on rails
<dminuoso> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
dunpeal has quit [Ping timeout: 265 seconds]
grenierm_ has quit [Quit: grenierm_]
GNUYawk has left #ruby [#ruby]
roshanavand has joined #ruby
Macaveli has joined #ruby
senayar has joined #ruby
nerium has quit [Quit: nerium]
bkxd has joined #ruby
vondruch has joined #ruby
adl has joined #ruby
nerium has joined #ruby
giz|work has quit [Ping timeout: 260 seconds]
raeoks has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
bkxd has quit [Ping timeout: 258 seconds]
adl has quit [Ping timeout: 250 seconds]
raeoks has joined #ruby
<peteretep> Here's the article I was working on which was the reason I was asking so many dumb-ass questions about testing: http://www.writemoretests.com/2016/07/perl-python-and-ruby-the-anatomy-of-a-testing-assertion.html
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
nerium has quit [Quit: nerium]
nerium has joined #ruby
agent_white has quit [Quit: gnight]
tjohnson has quit [Quit: Connection closed for inactivity]
yoongkang has joined #ruby
Hounddog has joined #ruby
nhhc has joined #ruby
haxrbyte has joined #ruby
nobitanobi has joined #ruby
jaruga___ has joined #ruby
tvw has joined #ruby
marr has joined #ruby
benhoi has quit [Read error: Connection reset by peer]
douglascorrea has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
Antiarc has quit [Quit: No Ping reply in 180 seconds.]
nerium has quit [Quit: nerium]
Antiarc has joined #ruby
nerium has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
al2o3-cr has joined #ruby
douglascorrea has quit [Ping timeout: 252 seconds]
benhoi has joined #ruby
chipotle has quit [Ping timeout: 252 seconds]
haxrbyte has quit [Quit: Leaving...]
ur5us has quit [Ping timeout: 258 seconds]
chipotle has joined #ruby
pandaant has joined #ruby
mrgrieves has joined #ruby
mcqr has quit [Quit: WeeChat 1.4]
Guest51233 has quit [Ping timeout: 244 seconds]
nerium has quit [Quit: nerium]
glcx has joined #ruby
glcx has quit [Changing host]
glcx has joined #ruby
nerium has joined #ruby
Guest51233 has joined #ruby
moeabdol has quit [Ping timeout: 264 seconds]
chipotle has quit [Ping timeout: 276 seconds]
elaptics`away is now known as elaptics
jaguarmagenta has quit [Remote host closed the connection]
akkad has quit [Quit: Emacs must have died]
mcqr has joined #ruby
nerium has quit [Quit: nerium]
nerium has joined #ruby
A_Drone has joined #ruby
djbkd has quit [Remote host closed the connection]
p0p0pr37 has joined #ruby
<atom_> how can I use the ternary operator but to do other things that returning a single value? something like
<atom_> condition ? do_some_logic(param1, param2) : do_other_logic(param1)
workmad3 has joined #ruby
<atom_> is this possible? or does it even make sense?
pawnbox has quit [Remote host closed the connection]
chipotle has joined #ruby
pawnbox has joined #ruby
yoongkang has quit [Remote host closed the connection]
nerium has quit [Quit: nerium]
nerium has joined #ruby
yoongkang has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
Madplatypus has joined #ruby
silpa has left #ruby [#ruby]
<al2o3-cr> atom_: do_some_logic(p1, p2) is method right?
A_Drone has quit [Remote host closed the connection]
<jhass> atom_: I don't understand the question, what you've shown is a valid ruby expression
yoongkang has quit [Remote host closed the connection]
Mimorial has joined #ruby
<jhass> personally I only ever use ternary when I care about the return value, a = b ? c : d
TomyWork has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
<al2o3-cr> atom_: i'd just use the regular old if/else
pawnbox has quit [Remote host closed the connection]
<xpitr> interesting, do_some_logic(1,2) will work in ternary but do_some_logic (1,2) is syntax error. outside of ternary operator both work :)
<TomyWork> i have 2 rescue blocks. one for a specific exception, one for all exceptions. can i pass control from the specific block to the common block?
rrawlins has joined #ruby
lulzmachine_ has joined #ruby
Sucks has quit [Remote host closed the connection]
<jhass> no
nobitanobi has quit []
jxs_ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
giz|work has joined #ruby
nerium has quit [Quit: nerium]
yoongkang has joined #ruby
jxs_ has joined #ruby
<al2o3-cr> btw, regarding concatenation yesterday, interpolation is fastest, String#% is slowest. just thought i'd share.
nerium has joined #ruby
jxs_ has quit [Client Quit]
<rrawlins> Hey folks, getting a strange IO Error when trying to build a gem - any ideas? - https://gist.github.com/SirRawlins/25735978e9c58a4831ec4e9558091a39
moeabdol has joined #ruby
<jhass> no output before that?
<jhass> ran out of disk space or so? :P
jenrzzz has quit [Ping timeout: 244 seconds]
<rrawlins> jhass: I get a warning about the Gemspec lacking a description but adding one makes no difference, and the drive has plenty of space left on it.
<jhass> gem -v ?
moeabdol has quit [Ping timeout: 260 seconds]
<rrawlins> 2.2.5
<jhass> that's quite old
<jhass> try a rvm rubygems update or whatever it was
nerium has quit [Quit: nerium]
mpampis__ has joined #ruby
blackmesa has joined #ruby
xall_ has quit [Ping timeout: 252 seconds]
koooge has quit [Quit: Leaving...]
madhatter has joined #ruby
mpampis_sougias has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
mpampis__ has quit [Ping timeout: 276 seconds]
<atom_> jhass: mmm when there are spaces and such on the result of the ternay condition ruby behaves weirdly
<atom_> that's why I was asking if you can return something other than a simple String/Boolean/etc
<rrawlins> jhass: sweet, that appears to have worked, bumped gem to 2.6 and it's now building as I'd expect, strange bug but thanks for the help. Life saver.
blackmesa has quit [Ping timeout: 250 seconds]
<jhass> ?code atom_
<ruby[bot]> atom_: We can't help you without your code, please post it to https://gist.github.com
<jhass> real code that "behaves weirdly"
thomas_25 has joined #ruby
ishahnaz has joined #ruby
nerium has joined #ruby
postmodern has quit [Quit: Leaving]
Mimorial is now known as Gasher
nankyokusei has joined #ruby
<zotherstupidguy> is there a gem for sanitizing strings inputs (non-rails)
<koma> dmesg
<koma> ups wrong window
nerium has quit [Client Quit]
<jhass> sanitizing is highly context specific
chipotle_ has joined #ruby
<zotherstupidguy> filenames
<zotherstupidguy> under linux
nerium has joined #ruby
<jhass> to do what with them then?
chipotle has quit [Ping timeout: 252 seconds]
minimalism has quit [Quit: minimalism]
<zotherstupidguy> the case is that i have list of songs that i am serving via ices2 that can't find them on local filesystem as they are not sanitized,
jackjackdripper has joined #ruby
<jhass> I'm not sure sanitized means what you think it does here, try to use a different term/explanation
<zotherstupidguy> ices2 takes a playlist.txt which i will sanitize, and i will go through all the .ogg files to santize them as well
<zotherstupidguy> jhass such as?
nankyokusei has quit [Ping timeout: 250 seconds]
<jhass> what do you change to make them "sanitized"?
<jhass> what's that's not "sanitized" about them?
<jhass> if it's in your filesystem under that name, it's a valid filename
<zotherstupidguy> spaces, brackets are problems that i found out
Hounddog has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<zotherstupidguy> adding escape characters is possible, but instead of regex, i am looking for the gem that wouldn't miss anything, get me a clean solution
chipotle_ has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
<xpitr> gsub(/\W+/, "_")
<xpitr> but seriously, only \0 and / should give you problems as those are only disallowed chars
<zotherstupidguy> songs names are weird,
<xpitr> they can be mixed mandarin and suahili, it should still work
<al2o3-cr> zotherstupidguy: can you not just use Regexp.escape
<jhass> no
<al2o3-cr> ah, ok
<jhass> well, how is the playlist generated? This feels like either a bug in the generator not respecting the playlist format or ices2 not correctly interpreting the playlist format
<zotherstupidguy> playlists are not generated, just customly created;
<jhass> so just write them correctly in the first place?
moeabdol has joined #ruby
<jhass> what's the playlist format?
<zotherstupidguy> path to song per line
<zotherstupidguy> just .txt
nerium has quit [Quit: nerium]
nerium has joined #ruby
cd-rum has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Coldblackice has quit [Ping timeout: 244 seconds]
Xeago has quit [Ping timeout: 244 seconds]
duncannz has quit [Remote host closed the connection]
<jhass> curious, there doesn't seem to be any interpretation of any escape characters whatsoever in https://github.com/xiph/Icecast-IceS/blob/master/src/playlist_basic.c#L70-L151
RegulationD has joined #ruby
giz|work has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
xall_ has joined #ruby
Wildfyr has joined #ruby
Hounddog has joined #ruby
siegy has joined #ruby
<siegy> hi
toretore has joined #ruby
hwcomcn has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
hwcomcn has quit [Max SendQ exceeded]
nerium has quit [Quit: nerium]
yoongkang has quit [Remote host closed the connection]
<jhass> zotherstupidguy: anyway, if you're sure about what needs to be done, for whatever reason (I really can't see anything in the code that would require it), a simple gsub is your best bet
astrobun_ has quit [Remote host closed the connection]
xall_ has quit [Ping timeout: 244 seconds]
hwcomcn has joined #ruby
nerium has joined #ruby
araujo has joined #ruby
k3rn31 has quit [Max SendQ exceeded]
araujo has quit [Changing host]
araujo has joined #ruby
elaptics is now known as elaptics`away
araujo has quit [Max SendQ exceeded]
dunpeal has joined #ruby
k3rn31 has joined #ruby
blackmesa has joined #ruby
araujo has joined #ruby
hwcomcn has quit [Max SendQ exceeded]
Hyuk has joined #ruby
araujo has quit [Max SendQ exceeded]
araujo has joined #ruby
yoongkang has joined #ruby
ec0 has quit [Ping timeout: 258 seconds]
hwcomcn has joined #ruby
mpampis_sougias has joined #ruby
dunpeal has quit [Ping timeout: 258 seconds]
rrawlins has quit [Remote host closed the connection]
<jhass> zotherstupidguy: https://github.com/xiph/Icecast-IceS/blob/master/src/im_playlist.c#L145 it's just passed to fopen here, that shouldn't require any form of escaping
nerium has quit [Quit: nerium]
astrobun_ has joined #ruby
chouhoulis has joined #ruby
gregf_ has quit [Quit: leaving]
LoneHermit has joined #ruby
nerium has joined #ruby
hwcomcn has quit [Max SendQ exceeded]
hwcomcn has joined #ruby
al2o3-cr has quit [Ping timeout: 258 seconds]
bkxd has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
hwcomcn has quit [Max SendQ exceeded]
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
hwcomcn has joined #ruby
Hounddog has quit [Remote host closed the connection]
minimalism has joined #ruby
Silthias has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
LoneHermit has quit [Ping timeout: 244 seconds]
chouhoulis has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
al2o3-cr has joined #ruby
astrobun_ has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 244 seconds]
glcx has quit [Quit: This computer has gone to sleep]
[narcan] has joined #ruby
thomas_25 has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 252 seconds]
giz|work has joined #ruby
nerium has quit [Quit: nerium]
thomas_25 has joined #ruby
yoongkang has quit [Remote host closed the connection]
nerium has joined #ruby
<shevy> class ImageFile {
<shevy> has $.width;
<shevy> perl6!!!
<shevy> so much has cheeze
jxs_ has joined #ruby
Rickmasta has joined #ruby
TheWhip has joined #ruby
yoongkang has joined #ruby
nerium has quit [Quit: nerium]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nertzy has quit [Ping timeout: 240 seconds]
nerium has joined #ruby
nerium has quit [Client Quit]
xall_ has joined #ruby
Devalo has quit [Read error: Connection reset by peer]
nerium has joined #ruby
Devalo has joined #ruby
thomas_25 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CloCkWeRX has quit [Ping timeout: 264 seconds]
KaliLinuxGR has joined #ruby
mdw has joined #ruby
xall_ has quit [Ping timeout: 276 seconds]
sdothum has joined #ruby
rodfersou has joined #ruby
kavanagh has joined #ruby
jaguarmagenta has joined #ruby
minotep has quit [Ping timeout: 240 seconds]
thomas_25 has joined #ruby
nerium has quit [Quit: nerium]
johnmilton has quit [Remote host closed the connection]
troulouliou_div2 has joined #ruby
jaguarmagenta has quit [Ping timeout: 265 seconds]
<siegy> lol
blackgoat has joined #ruby
blackgoat has quit [Client Quit]
moeabdol has joined #ruby
xall_ has joined #ruby
blackgoat has joined #ruby
CloCkWeRX has joined #ruby
nerium has joined #ruby
Torrone has joined #ruby
xall_ has quit [Ping timeout: 240 seconds]
<Torrone> Hello, I'm switching back to ruby/rails after a couple years for a project that I've downloaded, I've been doing some changes to my environment since, now, I'm trying to install all the required gems for the project and bundle install consistently fails, on multiple gems and it's just a nightmare, how do I get around this problem without going crazy after all the versions? I'm using ruby 2.2.2 if this is ot please link the proper channe
<Torrone> l thanks
nerium has quit [Client Quit]
mcqr has quit [Quit: WeeChat 1.4]
nerium has joined #ruby
GodFather has joined #ruby
<dminuoso> Torrone: ?rails
<dminuoso> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<Torrone> dminuoso, thanks
macsteps has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
LoneHermit has joined #ruby
thomas_25 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bkxd has joined #ruby
macsteps has quit [Ping timeout: 260 seconds]
thomas_25 has joined #ruby
xall_ has joined #ruby
elaptics`away is now known as elaptics
LoneHermit has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
nerium has quit [Quit: nerium]
gigetoo has quit [Ping timeout: 276 seconds]
nerium has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
meinside has joined #ruby
armin has quit [Quit: relate to the matter as i drop the bomb]
xall_ has quit [Ping timeout: 250 seconds]
mcqr has joined #ruby
jishankai has quit [Ping timeout: 250 seconds]
ur5us has joined #ruby
siegy has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
Mon_Ouie has quit [Quit: WeeChat 1.5]
AndrewIsHere has joined #ruby
armin has joined #ruby
nerium has quit [Quit: nerium]
<noregret> im' pretty new to ruby, I have s = "ABCD" how can i change it to s2 = "\u4142\u4344" ? assuming "s" is generated randomly
<dminuoso> Are you asking how to use a text editor?
<dminuoso> Oh nevermind.
<dminuoso> noregret: Dynamic access to local variables kind of sucks.
nerium has joined #ruby
<dminuoso> noregret: Use a hash.
yoongkang has quit [Remote host closed the connection]
<dminuoso> noregret: Or use the encoding mechanisms that Ruby has. What problem are you trying to solve?
yqt has joined #ruby
<noregret> dminuoso: problem is, I have a character string (payload) that i'm looking to convert as shown in the variable s2 above
xall_ has joined #ruby
AndrewIsHere has quit [Ping timeout: 250 seconds]
mdw has quit [Quit: cya! http://www.somerobots.com]
petrichorx has joined #ruby
hanmac has quit [Ping timeout: 250 seconds]
c355e3b has joined #ruby
xall_ has quit [Ping timeout: 252 seconds]
nankyokusei has joined #ruby
edwinvdgraaf has joined #ruby
nerium has quit [Quit: nerium]
nerium has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
edwinvdgraaf has quit [Ping timeout: 258 seconds]
Devalo has quit [Remote host closed the connection]
ldnunes has joined #ruby
Torrone has quit [Ping timeout: 250 seconds]
cdg has joined #ruby
<dminuoso> noregret: What conversion is that?
xall_ has joined #ruby
hanmac has joined #ruby
<dminuoso> noregret: { "ABCD" => "\u4142\u4344" }
<dminuoso> Is this what you want?
<noregret> dminuoso: correct
<noregret> i can't figure out yet how to iterate 2 bytes at a time, lol
adl has joined #ruby
nerium has quit [Quit: nerium]
<dminuoso> noregret: Oh! Now I understand. String#unpack Array#pack are what you want.
nerium has joined #ruby
johnmilton has joined #ruby
umdstu has joined #ruby
xall_ has quit [Ping timeout: 258 seconds]
adl has quit [Ping timeout: 250 seconds]
griffindy has joined #ruby
RegulationD has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
<noregret> dminuoso: got any usage example?
<dminuoso> &ri Array#pack
<dminuoso> &ri String#unpack
<dminuoso> noregret: You mean beyond the examples in what I might consider two of the best documented methods in all of Ruby?
trampi has joined #ruby
<dminuoso> noregret: If you cannot make sense of this method, you are not ready to do byte manipulations yet.
RegulationD has quit [Ping timeout: 244 seconds]
<noregret> hold on, have'nt checked them yet
<dminuoso> noregret: Or wait, Im still confused.
nerium has quit [Quit: nerium]
<dminuoso> Also look
<dminuoso> &ri String#codepoints
blackgoat has quit [Quit: WeeChat 1.5]
nerium has joined #ruby
Torrone has joined #ruby
<al2o3-cr> noregret: what is it exactly you're trying to accomplish
<al2o3-cr> got any code?
<hanmac> hm "ABCD" i got [65, 66, 67, 68] ... i don't understand how he wants "\u4142\u4344" from it
twinklerock has joined #ruby
<al2o3-cr> >> "ABCD".unpack 'H*'
<ruby[bot]> al2o3-cr: # => ["41424344"] (https://eval.in/611467)
<al2o3-cr> >> ["ABCD"].pack 'H*'
<ruby[bot]> al2o3-cr: # => "\xAB\xCD" (https://eval.in/611468)
<hanmac> ah it was H, i was looking using C and U
<dminuoso> hanmac: Nope.
<dminuoso> :)
<dminuoso> I got my head beaten with decimal numbers so much, I stopped using them.
dunpeal has joined #ruby
<noregret> lol
<noregret> al2o3-cr: i'm trying to bypass utf16 restrictions on a certain app by sending that kind of string, so i can have control over the payload sent...
seap has joined #ruby
<noregret> ok, unpack H* looks not bad
<noregret> now how can i iterate and strp 4 characters at one
<noregret> once*
<noregret> step*
CloCkWeRX has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
seap has quit [Client Quit]
Torrone has quit [Quit: This computer has gone to sleep]
seap has joined #ruby
<hanmac> noregret: i did try scan(/\w{1,4}/)
dunpeal has quit [Ping timeout: 276 seconds]
nerium has quit [Quit: nerium]
<hanmac> >> "ABCD".unpack("H*").flat_map {|s| s.scan(/\d{1,4}/).map(&:hex) }.pack("U*") == "\u4142\u4344"
<ruby[bot]> hanmac: # => true (https://eval.in/611475)
<al2o3-cr> >> ["ABCD".force_encoding('utf-16')][0].chars # try from here noregret
<ruby[bot]> al2o3-cr: # => ["\x41\x42", "\x43\x44"] (https://eval.in/611476)
nerium has joined #ruby
<noregret> hanmac: awesome! thanks man
<noregret> al2o3-cr: yeah that won't work out, i need the "\u" specifically
<al2o3-cr> noregret: i know i was hoping you could figure it out, anyway hanmac answered you Q. :)
<al2o3-cr> *your
<noregret> thanks guys
<noregret> i think i should learn ruby xD
<al2o3-cr> noregret: you'll love it :p
<noregret> haha
<noregret> it's already confusing me
<noregret> confusing as hell regarding to python
pipou_ has joined #ruby
umar has joined #ruby
xall_ has joined #ruby
zotherstupidguy has quit [Ping timeout: 260 seconds]
<pipou_> hy
jxs_ has quit [Quit: Leaving]
<pipou_> i have a question ! i dont really understand when we can use the proc (object) . someone can explain to me ?
jxs_ has joined #ruby
nerium has quit [Quit: nerium]
umar is now known as umarsheikh22
nerium has joined #ruby
xall_ has quit [Ping timeout: 260 seconds]
Fernando-Basso has joined #ruby
djdarkbeat has quit [Quit: djdarkbeat]
mcqr has quit [Quit: WeeChat 1.4]
mcqr has joined #ruby
glcx has joined #ruby
umarsheikh22 has quit [Quit: Leaving]
cyphase has quit [Ping timeout: 264 seconds]
nerium has quit [Quit: nerium]
pandaant has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
nerium has joined #ruby
ur5us has quit [Remote host closed the connection]
xall_ has joined #ruby
fmcgeough has joined #ruby
cyphase has joined #ruby
edwinvdgraaf has quit [Ping timeout: 260 seconds]
[narcan] has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<noregret> hanmac: that blew up somewhere
<dminuoso> pipou_: Proc/lambda are just objectified blocks, nothing more.
xall_ has quit [Ping timeout: 260 seconds]
<dminuoso> i.e. procs are objects, you can call methods on them, you can pass them as arguments, you can do stuff with it.
<noregret> hanmac: e.g. \u0006 isn't right here
Torrone has joined #ruby
<al2o3-cr> >> s = "IIIIIIIIIIIIIIIII7QZjAXP0A0AkAAQ2AB"; s.unpack('H*')[0].enum_for(:scan, /\d{4}/).map(&:hex).pack('U*')
<ruby[bot]> al2o3-cr: # => "䥉䥉䥉䥉䥉䥉䥉䥉䤷䅘倰䄰䅁儲䅂" (https://eval.in/611510)
pawnbox has quit [Remote host closed the connection]
ksinkar has joined #ruby
nerium has quit [Quit: nerium]
nerium has joined #ruby
dunpeal has joined #ruby
<ksinkar> Is there any way to detect a yield block has been provided to a ruby method? Similar to the way count works, with a block passed to it, without a block passed to it.
<dminuoso> ksinkar: block_given?
<ksinkar> dminuoso: thanks
Macaveli has joined #ruby
swills has quit [Ping timeout: 258 seconds]
raeoks has quit [Quit: Textual IRC Client: www.textualapp.com]
jaiks1 has quit [Ping timeout: 265 seconds]
xall_ has joined #ruby
pawnbox has joined #ruby
<shevy> \o/
jaguarmagenta has joined #ruby
roamingdog has joined #ruby
Gasher has quit [Quit: Leaving]
nerium has quit [Quit: nerium]
chihhsin has quit [Remote host closed the connection]
xall_ has quit [Ping timeout: 260 seconds]
Bish has quit [Ping timeout: 264 seconds]
chihhsin has joined #ruby
nerium has joined #ruby
Bish has joined #ruby
jaguarmagenta has quit [Ping timeout: 250 seconds]
douglascorrea has joined #ruby
alfiemax has quit [Ping timeout: 244 seconds]
phredus has quit [Remote host closed the connection]
<al2o3-cr> noregret: why'd you say it isn't right?
minotep has joined #ruby
seap has quit [Quit: WeeChat 1.5]
phredus has joined #ruby
lxsameer has quit [Quit: WeeChat 1.5]
bmurt has joined #ruby
<noregret> al2o3-cr: because the result is not what i exepcted
aegis3121 has joined #ruby
<al2o3-cr> noregret: what did you expect?
Rasi has quit [Ping timeout: 264 seconds]
glcx_ has joined #ruby
aegis312_ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
nerium has quit [Quit: nerium]
nerium has joined #ruby
<noregret> al2o3-cr: "IIIIIIIIIIIIIIIII7QZjAXP0A0AkAAQ2AB"" => "\u4949\u4949\u4949\u4949\u4949\u4949\u4949\u4949\u4937\u515a\u6a41\u5850\u3041\u3041\u6b41\u4151\u3241\u420a"
<noregret> no, wait
jaiks1 has joined #ruby
Torrone has quit [Ping timeout: 258 seconds]
grenierm has joined #ruby
glcx has quit [Ping timeout: 240 seconds]
codecop has quit [Remote host closed the connection]
ishahnaz has quit [Ping timeout: 250 seconds]
aegis3121 has quit [Ping timeout: 260 seconds]
<noregret> al2o3-cr: "IIIIIIIIIIIIIIII7QZjAXP0A0AkAAQ2AB2" => "\u4949\u4949\u4949\u4949\u4949\u4949\u4949\u4949\u4937\u515a\u6a41\u5850\u3041\u3041\u6b41\u4151\u3241\u4232"
macsteps has joined #ruby
<hanmac> are you sure there isnt an I missing?
skade has joined #ruby
aegis312_ has quit [Read error: Connection reset by peer]
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
LoneHermit has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
malconis has joined #ruby
bkxd has joined #ruby
<noregret> hanmac: 17 Is
macsteps has quit [Ping timeout: 250 seconds]
ramortegui has joined #ruby
nerium has quit [Quit: nerium]
lulzmachine_ has quit [Quit: Connection closed for inactivity]
<noregret> hanmac: i'm good with |IIIIIIIIIIIIIIII7QZjAXP0A0AkAAQ2AB2" now, i need the right output for this string
<noregret> "IIIIIIIIIIIIIIII7QZjAXP0A0AkAAQ2AB2" *
nerium has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
<hanmac> the problem is the uneven abount of numbers
<noregret> this is even
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
maucar has joined #ruby
<noregret> oh wait, no
<noregret> "IIIIIIIIIIIIIIIII7AXP0A0AAQ2AB2BB0BB"
bkxd has quit [Ping timeout: 265 seconds]
<noregret> this is even
masterkorp has left #ruby ["WeeChat 1.0.1"]
<al2o3-cr> >> "IIIIIIIIIIIIIIIII7QZjAXP0A0AkAAQ2AB2".chars.each_slice(2).flat_map { |x| x.join.unpack('H*') }.map(&:hex).pack('U*')
<ruby[bot]> al2o3-cr: # => "䥉䥉䥉䥉䥉䥉䥉䥉䤷党橁塐ぁぁ歁䅑㉁䈲" (https://eval.in/611529)
LoneHermit has quit [Ping timeout: 264 seconds]
<al2o3-cr> i'm getting confused now
synthroid has joined #ruby
<solars> hi, shouldn't Module#prepend work like this? https://gist.github.com/solars/f9d93b1929bd95e3845107d2814a8f52
hutch34 has joined #ruby
<al2o3-cr> noregret: right? no?
dionysus69 has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
Rasi has joined #ruby
Torrone has joined #ruby
<al2o3-cr> best to use each_char there
BaroMeter has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
xaxisx has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
<noregret> al2o3-cr: how can the ouput be represented in bytes, instead of the unicode characters? that way, errors might be detected right away
<noregret> byte string i mean
douglascorrea has quit [Remote host closed the connection]
nerium has quit [Quit: nerium]
nerium has joined #ruby
AndrewIsHere has joined #ruby
marr has quit [Ping timeout: 276 seconds]
kavanagh has quit [Read error: Connection reset by peer]
tvw has quit []
kavanagh has joined #ruby
AndrewIsHere has quit [Ping timeout: 250 seconds]
EdwardIII has quit [Ping timeout: 258 seconds]
xaxisx_ has joined #ruby
EdwardIII has joined #ruby
<p1k> Hello
xaxisx has quit [Read error: Connection reset by peer]
xaxisx_ is now known as xaxisx
<p1k> does anyone know if there are some standardized guidelines on what to call additional properties that are set on an Error ? (when you inherit it and add an initialize)
<p1k> or is it everyone does as they please ?
xaxisx has quit [Read error: Connection reset by peer]
nerium has quit [Quit: nerium]
Caerus|Away is now known as Caerus
xall_ has joined #ruby
<shevy> properties set on an error?
<toretore> p1k: you mean Exception?
xaxisx has joined #ruby
<p1k> toretore: I tend to inherit StandardError, but sure
<toretore> if you make your own exception class you're free to take whatever arguments you want
nankyokusei has joined #ruby
nerium has joined #ruby
<p1k> toretore: Yes, I'm just asking if there is a convention, of calling it :erro_state, or :properties or some other key?
xaxisx has quit [Client Quit]
<toretore> not that i know of
<al2o3-cr> noregret: ["IIIIIIIIIIIIIIIII7QZjAXP0A0AkAAQ2AB2".force_encoding('utf-16')][0]
<toretore> there is the .cause convention if you're wrapping another exception
JeanCarloMachado has joined #ruby
<al2o3-cr> noregret: without the extra [] my head is blown
xall_ has quit [Ping timeout: 244 seconds]
nankyokusei has quit [Ping timeout: 244 seconds]
freerobby has joined #ruby
douglascorrea has joined #ruby
rodfersou is now known as rodfersou|afk
dionysus69 has joined #ruby
k3rn31 has joined #ruby
saneax is now known as saneax_AFK
TheWhip has quit [Remote host closed the connection]
nerium has quit [Quit: nerium]
Ishido has joined #ruby
nerium has joined #ruby
Sammichmaker has quit [Read error: Connection reset by peer]
tekk has joined #ruby
marr has joined #ruby
rodfersou|afk is now known as rodfersou
aegis3121 has joined #ruby
tekku has quit [Ping timeout: 260 seconds]
k3rn31 has quit [Quit: Computer has gone to sleep.]
xall_ has joined #ruby
petrichorx has quit [Quit: Connection closed for inactivity]
grenierm has quit [Quit: grenierm]
jhack has joined #ruby
RegulationD has joined #ruby
<noregret> al2o3-cr: yeah, thats' a different output
nizzlefritz has joined #ruby
<al2o3-cr> >> "IIIIIIIIIIIIIIIII7QZjAXP0A0AkAAQ2AB2".each_char.each_slice(2).flat_map { |x| x.join.unpack('H*') }.map(&:hex).pack('U*') == "\u4949\u4949\u4949\u4949\u4949\u4949\u4949\u4949\u4937\u515a\u6a41\u5850\u3041\u3041\u6b41\u4151\u3241\u4232"
<ruby[bot]> al2o3-cr: # => true (https://eval.in/611568)
<al2o3-cr> what doesn't work?
TheWhip has joined #ruby
nerium has quit [Quit: nerium]
<solars> can anyone tell me what I'm doing wrong with prepend? https://gist.github.com/solars/f9d93b1929bd95e3845107d2814a8f52
xall_ has quit [Ping timeout: 260 seconds]
nerium has joined #ruby
jrafanie has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
pipou_ has quit [Quit: Page closed]
RegulationD has quit [Ping timeout: 258 seconds]
<al2o3-cr> >> "IIIIIIIIIIIIIIIII7QZjAXP0A0AkAAQ2AB2".each_char.each_slice(2).flat_map { |x| x.join.unpack('H*') }.map(&:hex).pack('U*').unpack('H*').pack('H*')
<ruby[bot]> al2o3-cr: # => "\xE4\xA5\x89\xE4\xA5\x89\xE4\xA5\x89\xE4\xA5\x89\xE4\xA5\x89\xE4\xA5\x89\xE4\xA5\x89\xE4\xA5\x89\xE ...check link for more (https://eval.in/611572)
<al2o3-cr> ^ noregret
Torrone has quit [Ping timeout: 244 seconds]
<al2o3-cr> thats your byte string
jrafanie has quit [Client Quit]
TheWhip has quit [Remote host closed the connection]
jrafanie has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TheWhip has joined #ruby
shinnya has joined #ruby
flying has joined #ruby
nerium has quit [Quit: nerium]
xall_ has joined #ruby
nerium has joined #ruby
hwcomcn has quit [Read error: Connection reset by peer]
rrawlins has joined #ruby
blackmesa has joined #ruby
xall_ has quit [Ping timeout: 250 seconds]
mattwashere has joined #ruby
LoneHermit has joined #ruby
axl_ has joined #ruby
TheWhip has quit [Remote host closed the connection]
ChiefAlexander has joined #ruby
Torrone has joined #ruby
craigp has quit [Ping timeout: 244 seconds]
djdarkbeat has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
alfiemax has joined #ruby
LoneHermit has quit [Ping timeout: 258 seconds]
Ropeney has quit [Quit: Leaving]
GodFather has joined #ruby
l4v2 has joined #ruby
Siegfried has joined #ruby
Wildfyr has quit [Ping timeout: 250 seconds]
drahosj has joined #ruby
aryaching has joined #ruby
davedev24 has joined #ruby
<Siegfried> Hi all, thinking of learning ruby but worried that ruby allowing you to modify the language at will leads to lots of unreadable code when looking at others work. Does that happen often?
dgynn has joined #ruby
<aegis3121> In Rails? Yes. In gems? Uncommonly. In pet projects/experiments? Probably a lot. Usually people are just adding convenience methods to a class rather than changing behavior of existing methods.
SilverKey has joined #ruby
roamingdog has quit [Remote host closed the connection]
SilverKey has quit [Client Quit]
<aegis3121> For example, I want to be able to quickly take the average of an array, so can I could define Array#average that would handle that rather than passing an Array to an average method.
xall_ has joined #ruby
roamingdog has joined #ruby
<Siegfried> Makes sense
agent_white has joined #ruby
platzhirsch has joined #ruby
<agent_white> Mornin folks
Siegfried has left #ruby [#ruby]
kavanagh has quit [Read error: Connection reset by peer]
kavanagh has joined #ruby
Chair has joined #ruby
xall_ has quit [Ping timeout: 264 seconds]
madsa has joined #ruby
Chair is now known as Couch
madsa has quit [Client Quit]
madsa has joined #ruby
mattwashere has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 244 seconds]
Rum has joined #ruby
ksinkar has quit [Ping timeout: 240 seconds]
mattwashere has joined #ruby
SilverKey has joined #ruby
xall_ has joined #ruby
dminuoso has quit [Ping timeout: 265 seconds]
Macaveli has joined #ruby
xall_ has quit [Ping timeout: 240 seconds]
KCmetro has joined #ruby
rrawlins has quit [Remote host closed the connection]
<dunpeal> I have an Array of objects. How can I get the first object in the array for which object.foo is not nil?
<dunpeal> (or nil if object.foo == nil for all objects in the Array)
<ljarvis> .find(&:foo)
<aegis3121> ?ri Array#find
<ruby[bot]> aegis3121: I don't see no Array#find, whom should I tell about ri?
<dunpeal> thaks.
<ljarvis> ?ri Enumerable#find
<ruby[bot]> ljarvis: I don't see no Enumerable#find, whom should I tell about ri?
<dunpeal> thanks*
<ljarvis> c'mon
<aegis3121> glad it's not just me.
Torrone has quit [Read error: Connection reset by peer]
airdisa has joined #ruby
jaguarmagenta has joined #ruby
mpampis_sougias has quit [Remote host closed the connection]
AgentVenom has joined #ruby
RegulationD has joined #ruby
syndikate has joined #ruby
xall_ has joined #ruby
jaguarmagenta has quit [Ping timeout: 244 seconds]
Sou|cutter has joined #ruby
rippa has joined #ruby
jaruga___ has quit [Quit: jaruga___]
<jhass> ljarvis: &ri still
<jhass> cause adaedra didn't port it to ruboto yet :P
blackmesa has joined #ruby
rrawlins has joined #ruby
douglascorrea has quit [Remote host closed the connection]
SilverKey has quit [Quit: Halted.]
RegulationD has quit [Ping timeout: 244 seconds]
<ljarvis> ah
xall_ has quit [Ping timeout: 258 seconds]
cdg has quit [Remote host closed the connection]
douglascorrea has joined #ruby
CloCkWeRX has quit [Ping timeout: 264 seconds]
diegoviola has joined #ruby
joonty has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
swills has joined #ruby
SilverKey has joined #ruby
zacts has quit [Quit: WeeChat 1.4]
solars has quit [Ping timeout: 240 seconds]
rodfersou is now known as rodfersou|lunch
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
xall_ has joined #ruby
seap has joined #ruby
AgentVen_ has joined #ruby
k3rn31 has joined #ruby
JeanCarloMachado has quit [Ping timeout: 252 seconds]
bkxd has joined #ruby
Torrone has joined #ruby
AgentVenom has quit [Ping timeout: 265 seconds]
jeremyhall has joined #ruby
thomas_25 has left #ruby ["Textual IRC Client: www.textualapp.com"]
pawnbox has quit [Remote host closed the connection]
xall_ has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
glcx__ has joined #ruby
bkxd has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
glcx_ has quit [Ping timeout: 240 seconds]
meinside has quit [Quit: Connection closed for inactivity]
TheWhip has joined #ruby
cschneid_ has joined #ruby
solars has joined #ruby
ccooke has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
twinklerock has quit [Quit: twinklerock]
GNUYawk has joined #ruby
dramforever has joined #ruby
Coldblackice has joined #ruby
Rum has quit [Ping timeout: 258 seconds]
xall_ has joined #ruby
[Butch] has joined #ruby
conta has quit [Ping timeout: 258 seconds]
AgentVen_ is now known as AgentVenom
<dramforever> Hello
BaroMeter has quit [Quit: Leaving]
<dramforever> Is there a way to pass some value into a def inside a do-block?
AndrewIsHere has joined #ruby
moei has left #ruby ["Leaving..."]
<dramforever> Well it looks like the "do" thing is a red herring
xall_ has quit [Ping timeout: 250 seconds]
<dramforever> so basically in the code { foo = "something"; def bar; foo; end }, bar wouldn't work because it can't see the "foo"
A124 has quit [Quit: '']
rrawlins has quit [Ping timeout: 260 seconds]
rrawlins has joined #ruby
moei has joined #ruby
<Sou|cutter> define_method(:bar) { foo } maybe?
pawnbox has quit [Remote host closed the connection]
<Sou|cutter> I really wonder about what you're trying to do
pawnbox has joined #ruby
ule has quit [Remote host closed the connection]
ule has joined #ruby
<dramforever> Well it's eventmachine madness I think
<dramforever> The code is here, a bit long but I think I can explain http://lpaste.net/171723#line49
cajone has quit [Ping timeout: 276 seconds]
<dramforever> So as a server, A is a connection from a client, and A needs to connect to B
ccooke has joined #ruby
<dramforever> but I want data sent from B to be forwarded back to the client, so the receieve_data method needs to know about A
nankyokusei has joined #ruby
ule has quit [Changing host]
ule has joined #ruby
AgentVenom has quit [Quit: Textual IRC Client: www.textualapp.com]
ChiefAlexander has quit [Remote host closed the connection]
atom_ has quit [Ping timeout: 260 seconds]
minotep has quit [Ping timeout: 252 seconds]
KevinFrench has joined #ruby
ljarvis has quit [Ping timeout: 258 seconds]
nankyokusei has quit [Ping timeout: 265 seconds]
aganov has quit [Remote host closed the connection]
matp has quit [Remote host closed the connection]
<dramforever> OK I got it already from another chat room
A124 has joined #ruby
adl has joined #ruby
madgen has joined #ruby
BillSussman has quit [Ping timeout: 260 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dramforever> In case anyone wonders, I had something like this (brackets to isolate code): [ outer = 123; weird_method { |c| def c.m; end } ]
madgen has quit [Client Quit]
<dramforever> I solved it by setting an instance variable of c at the beginning of the block, where outer *is* in scope
veduardo_ has joined #ruby
Guest55646 is now known as adam12
mpampis_sougias has joined #ruby
dramforever has left #ruby ["Leaving"]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
cajone has joined #ruby
mrgrieves has quit [Ping timeout: 260 seconds]
craigp has joined #ruby
sdothum has joined #ruby
Torrone has quit [Ping timeout: 260 seconds]
matp has joined #ruby
Wildfyr has joined #ruby
Wildfyr has quit [Changing host]
Wildfyr has joined #ruby
ChiefAlexander has joined #ruby
RegulationD has joined #ruby
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sysanthrope has quit [Read error: Connection reset by peer]
giz|work has quit [Ping timeout: 244 seconds]
RegulationD has quit [Ping timeout: 265 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
sysanthrope has joined #ruby
sdothum has joined #ruby
__void has joined #ruby
weaksauce has quit [Ping timeout: 258 seconds]
TheWhip has quit []
Caerus is now known as Caerus|Away
andikr has quit [Remote host closed the connection]
dminuoso has joined #ruby
sumobob has joined #ruby
pipou_ has joined #ruby
<pipou_> hy
the_drow has quit [Quit: This computer has gone to sleep]
<jhass> ei
dvinciguerra_ has joined #ruby
devbug has joined #ruby
freerobby has quit [Quit: Leaving.]
Couch has quit [Ping timeout: 244 seconds]
TomyWork has quit [Ping timeout: 276 seconds]
SilverKey has quit [Quit: Halted.]
gregf has quit [Quit: WeeChat 1.5]
[Butch] has quit [Quit: I'm out . . .]
jordanm has quit [Remote host closed the connection]
freerobby has joined #ruby
jordanm has joined #ruby
veduardo_ has quit [Ping timeout: 258 seconds]
mark_66 has quit [Remote host closed the connection]
jxs_ has quit [Remote host closed the connection]
<pipou_> i try to call a methode in class since my module but i dont understand why that's doesn't work
marxarelli has joined #ruby
[Butch] has joined #ruby
platzhirsch has quit [Quit: WeeChat 1.4]
xall_ has joined #ruby
LoneHermit has joined #ruby
<Papierkorb> pipou_: `@connexion` is a Mysql2::Client instance, which doesn't include the module `Sgbd`.
<pipou_> so how can i call for my methode check_table_exists ?
<pipou_> Papierkorb: thanks for your help men ;)
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
xall_ has quit [Ping timeout: 265 seconds]
<toretore> ;)
senayar has quit []
aegis3121 has quit [Ping timeout: 276 seconds]
LoneHermit has quit [Ping timeout: 260 seconds]
douglascorrea has quit [Remote host closed the connection]
chouhoulis has joined #ruby
FooMunki has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 240 seconds]
SCHAAP137 has joined #ruby
FooMunki has joined #ruby
renderful has quit []
glcx__ has quit [Ping timeout: 264 seconds]
Torrone has joined #ruby
chouhoulis has quit [Remote host closed the connection]
mpampis_sougias is now known as kolotrupa
dionysus69 has joined #ruby
phrozen77_ has joined #ruby
Zackio has quit [Ping timeout: 240 seconds]
k3rn31 has quit [Quit: Computer has gone to sleep.]
phrozen77 has quit [Ping timeout: 250 seconds]
phrozen77_ has quit [Client Quit]
banisterfiend has quit [Ping timeout: 264 seconds]
roamingdog has quit [Read error: Connection reset by peer]
SilverKey has joined #ruby
Puffball has quit [Ping timeout: 276 seconds]
roamingdog has joined #ruby
Zackio has joined #ruby
TomyLobo has joined #ruby
yardenbar has quit [Ping timeout: 260 seconds]
hutch34 has quit [Ping timeout: 244 seconds]
adl has quit [Remote host closed the connection]
joonty has quit [Quit: This computer has gone to sleep]
antgel has quit [Ping timeout: 250 seconds]
conta has joined #ruby
douglascorrea has joined #ruby
skade has joined #ruby
cdg has joined #ruby
JeanCarloMachado has joined #ruby
rodfersou|lunch is now known as rodfersou
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
madsa has quit [Ping timeout: 258 seconds]
cdg has quit [Read error: Connection reset by peer]
preyalone has joined #ruby
cdg has joined #ruby
Devalo has joined #ruby
macsteps has joined #ruby
dunpeal has quit [Ping timeout: 250 seconds]
Devalo has quit [Ping timeout: 250 seconds]
__void has quit [Ping timeout: 276 seconds]
Tempesta_ has joined #ruby
Macaveli has joined #ruby
anisha has joined #ruby
madsa has joined #ruby
vuoto has joined #ruby
EdwardIII has quit [Ping timeout: 260 seconds]
<dminuoso> So I have a binary file following some format, and I would like to interact with that file with Ruby. Is there some gem around that let's me quickly map a pattern into some structure, much like I could declare structs in C and type pun through byte arrays?
Tempesta has quit [Ping timeout: 244 seconds]
pusewicz has joined #ruby
<dminuoso> (I really want to avoid manually reading the file a few bytes at a time and constantly using "unpack"0
GinoManWorks has quit [Read error: Connection reset by peer]
Torrone has quit [Ping timeout: 252 seconds]
<jhass> I guess most people just unpack :/
<jhass> note you can unpack the whole thing at once
EdwardIII has joined #ruby
<dminuoso> jhass: Sadly I cant, because the size of some structures depent on values from the structures before.
<jhass> a, b, c = data.unpack("SUL")
<dminuoso> Or on the other hand, I could simply use the existing ruby-elf.... :-)
freerobby has quit [Quit: Leaving.]
<jhass> haha, reading ELF? hf
jaguarmagenta has joined #ruby
<dminuoso> I want to modify ELF in ways that binutils don't allow me to.
GodFather has quit [Ping timeout: 250 seconds]
<jhass> curious, what ways?
<dminuoso> It's fairly simple actually. I want to forcibly change the order of sections in the physical file.
harfangk has joined #ruby
<dminuoso> (Linker scripts only let you change how they are loaded into memory)
Cohedrin has joined #ruby
<jhass> to optimize something or?
<dminuoso> Well, it's common among hobbyist os developers to use a combination of multiboot and elf. The former however requires a special multiboot magic sequence to be located within the first 8096 bytes of the file.
joonty has joined #ruby
craigp has quit [Ping timeout: 244 seconds]
<jhass> I see
blackmesa has quit [Ping timeout: 260 seconds]
jaguarmagenta has quit [Ping timeout: 265 seconds]
<dminuoso> This is how that particular gem by the way implements their "bytestream parsing" logic.
<jhass> heh, could be worse
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
douglascorrea has quit [Remote host closed the connection]
Silthias has quit [Ping timeout: 250 seconds]
<dminuoso> The whole gem isn't exactly suited for my needs though. I'm actually thinking whether I might use this to kickstart a ruby based linker.
<apeiros> dminuoso: https://github.com/vjoel/bit-struct might be of interest (never tried it myself, not sure whether it has an IO component)
roamingdog has quit [Remote host closed the connection]
vF3hNGxc47h8 has joined #ruby
<dminuoso> apeiros: That! Is exactly what I was looking for.
<dminuoso> Thank you.
roamingdog has joined #ruby
ccooke has quit [Ping timeout: 265 seconds]
dunpeal has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
giz|work has joined #ruby
nankyokusei has joined #ruby
kavanagh has quit [Remote host closed the connection]
roshanavand has quit [Quit: This computer has gone to sleep]
GNUYawk has quit [Quit: GNUYawk]
kavanagh has joined #ruby
<dminuoso> apeiros: And it does indeed have an IO component, as shown in this example: https://github.com/vjoel/bit-struct/blob/master/examples/ping-recv.rb
freerobby has joined #ruby
<dminuoso> Or rather it comes with a simple interface to construct such bit structs from arbitrary structs.
<dminuoso> I shall use this.
AndrewIs_ has joined #ruby
<dminuoso> ?cookie
<ruby[bot]> here's your cookie:
<dminuoso> apeiros: For you
SilverKey has quit [Quit: Halted.]
Wildfyr has quit [Ping timeout: 240 seconds]
aegis3121 has joined #ruby
Madplatypus has joined #ruby
nankyokusei has quit [Ping timeout: 264 seconds]
the_drow has joined #ruby
AndrewIsHere has quit [Ping timeout: 250 seconds]
blackmesa has joined #ruby
GodFather has joined #ruby
jtoy has quit [Read error: Connection reset by peer]
elaptics is now known as elaptics`away
<apeiros> ?cookie dminuoso
<ruby[bot]> dminuoso: here's your cookie:
<apeiros> ;-)
<apeiros> and you're welcome
<apeiros> I'm glad I correctly remembered the name of that gem :D
Contigi has joined #ruby
tvw has joined #ruby
bmurt has joined #ruby
hutch34 has joined #ruby
bkxd has joined #ruby
EdwardIII has quit [Ping timeout: 244 seconds]
hutch34 has quit [Ping timeout: 244 seconds]
ccooke has joined #ruby
Torrone has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
GNUYawk has joined #ruby
EdwardIII has joined #ruby
[gmi] has joined #ruby
k3rn31 has joined #ruby
SilverKey has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
SilverKey has quit [Client Quit]
SilverKey has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
elifoster has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> I want something like this for ruby 1.0 1.6 1.8 1.9 and 2.x and beyond!
SilverKey has quit [Quit: Halted.]
hutch34 has joined #ruby
replay has joined #ruby
SilverKey has joined #ruby
flying has quit []
aep-shoutlet has joined #ruby
renderful has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 244 seconds]
vuoto has quit [Remote host closed the connection]
xall_ has joined #ruby
vuoto has joined #ruby
ChiefAlexander has joined #ruby
freerobby has quit [Quit: Leaving.]
[gmi] has quit [Quit: Leaving]
postmodern has joined #ruby
KCmetro has quit [Quit: Leaving...]
shinnya has quit [Ping timeout: 240 seconds]
KCmetro has joined #ruby
spudowiar has quit [Quit: Leaving.]
freerobby has joined #ruby
sneakers has joined #ruby
djbkd has joined #ruby
jeremyhall_ has joined #ruby
last_staff has joined #ruby
xall_ has quit [Ping timeout: 258 seconds]
ramfjord has joined #ruby
jeremyhall has quit [Ping timeout: 252 seconds]
last_staff has quit [Client Quit]
[gmi] has joined #ruby
l4v2 has quit [Quit: l4v2]
Silthias has joined #ruby
RegulationD has joined #ruby
nankyokusei has joined #ruby
whathappens has joined #ruby
yqt has quit [Ping timeout: 258 seconds]
craigp has joined #ruby
ramfjord has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
[gmi] has quit [Quit: Leaving]
RegulationD has quit [Ping timeout: 250 seconds]
last_staff has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
roamingdog has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<RubyNewby123> Hi guys, thanks again for all the help yesterday: This is my little game project today: https://repl.it/CfZu/109 (critique welcome)
dvinciguerra_ has quit [Ping timeout: 244 seconds]
rrawlins has quit [Remote host closed the connection]
last_staff has quit [Client Quit]
twinklerock has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
aryaching has quit [Remote host closed the connection]
cliluw has quit [Read error: Connection reset by peer]
<Zarthus> risky click
<Zarthus> but it';s ruby code!
hutch34 has joined #ruby
kolotrupa has quit [Remote host closed the connection]
kavanagh has quit [Ping timeout: 252 seconds]
<Zarthus> RubyNewby123: you probably want to use \n or \r\n instead of just \r
<RubyNewby123> why is newline important?
<havenwood> RubyNewby123: You might consider using Readline from Ruby's stdlib to add features like autocompletion of available option and uparrow for last command, etc: http://ruby-doc.org/stdlib/libdoc/readline/rdoc/Readline.html
<RubyNewby123> it still goes to the next line for me... is that for different consoles or something?
<Zarthus> RubyNewby123: it doesn't matter when using puts, but \r alone is legacy mac os
seap has quit [Quit: WeeChat 1.5]
<Zarthus> I *believe*
gregf has joined #ruby
<Zarthus> in the statement I observed it looks redundant
Torrone has quit [Ping timeout: 276 seconds]
<RubyNewby123> ah, I see
<RubyNewby123> thanks
<jhass> the semantics kinda still come from typewiters
<adaedra> on most terms, it goes back to the beginning of line
<jhass> \r returns to the beginning of the line
<RubyNewby123> and thank your havenwood, that sounds great, I'll deffo check out
<jhass> \n shifts down
<havenwood> RubyNewby123: Here's a little writeup on implementing a little shell with Readline that might give you some ideas: https://www.blackbytes.info/2016/07/writing-a-shell-in-ruby/
<Zarthus> the puts on l39 is also useless
craigp has quit [Ping timeout: 252 seconds]
douglascorrea has joined #ruby
kavanagh has joined #ruby
<Zarthus> I'm not sure how I feel about the choice class
hutch34_ has joined #ruby
dvinciguerra_ has joined #ruby
<RubyNewby123> how come Zarthus?
<Zarthus> just feels a bit awkward to use, and very unreadable
kolotrupa has joined #ruby
<shevy> RubyNewby123 just abstract the things; class Player, class Game
hutch34 has quit [Ping timeout: 276 seconds]
<shevy> if a user needs to input data to either class Player or class Game, he can do so either on class Player; or you let class Game handle the input and then pass it to class Player. class Choice sounds very abstract
douglascorrea has quit [Ping timeout: 240 seconds]
roamingdog has joined #ruby
craigp has joined #ruby
Torrone has joined #ruby
kolotrup_ has joined #ruby
banisterfiend has joined #ruby
<RubyNewby123> shevy: I've read that 5 times now and don't follow. I'm not smart. Who is the "user"? A dev or a game player?
<RubyNewby123> sorry
akkad has joined #ruby
<Zarthus> also, one more thing, but I'd definitely consider learning how symbols work
kolotrupa has quit [Ping timeout: 250 seconds]
ramfjord has quit [Read error: Connection reset by peer]
gregf has quit [Quit: WeeChat 1.4]
chouhoulis has joined #ruby
ramfjord has joined #ruby
<Zarthus> they're slightly more advanced, but you seem to be at the level where that should be your next move
Torrone has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
aryaching has joined #ruby
<RubyNewby123> Zarthus: you have my word I will, I must confess to skipping them so far (I only picked up ruby on Friday, coming from c# - and not great at that) but the fact you discerned that so easily means I'm clearly missing a trick
<Zarthus> I'm not entirely sure if L102-114 will work - break might break out of the case statement
Alina-malina has quit [Ping timeout: 264 seconds]
k3rn31 has quit [Quit: Computer has gone to sleep.]
kolotrup_ has quit [Ping timeout: 240 seconds]
Sucks has joined #ruby
codecop has joined #ruby
marr has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
GodFather has quit [Ping timeout: 250 seconds]
<Zarthus> if nothing else, I'd do something like available_weapons = [:massive_axe, :enhanced_staff, :wet_trout]; weapon_chosen = gets.chomp.downcase.to_sym; if available_weapons.include? weapon_chosen ... end; puts " none of those weapons exist, sorry. Try: " + available_weapons.join(", ")
<Zarthus> gets rid of the switch entirely
gregf has joined #ruby
<Zarthus> also includes good error messages :)
devbug has quit [Quit: ZZZzzz…]
aegis3121 has quit [Ping timeout: 240 seconds]
devbug has joined #ruby
aegis3121 has joined #ruby
rodfersou is now known as rodfersou|afk
devbug has quit [Client Quit]
zenlot has quit [Ping timeout: 244 seconds]
<RubyNewby123> Thanks man,I've took your snippet and will research symbols as that seems like wizardry. So readable!
devbug has joined #ruby
<shevy> RubyNewby123 well the user is whoever runs your code at hand
<shevy> so this can be you or someone else
LoneHermit has joined #ruby
teoric has joined #ruby
<Zarthus> RubyNewby123: it needs a bit more refining, but it does get rid of the switch case
devbug has quit [Client Quit]
<Zarthus> at some point you will want your weapons to have their own class if the scale of the project grows
<RubyNewby123> shevy: what did you mean class choice is very abstract? is that good or bad?
vuoto_ has joined #ruby
teoric has quit [Client Quit]
troulouliou_div2 has quit [Remote host closed the connection]
<RubyNewby123> Zarthus: this probably isn't going to grow very big and is just my hello world app for ruby but I understand
Alina-malina has joined #ruby
roamingdog has quit [Remote host closed the connection]
<Zarthus> well if I can't throw the trout to get rid of the trolls at the end of this I will be disappointed!
<RubyNewby123> noted :D
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
LoneHermit has quit [Ping timeout: 244 seconds]
<shevy> RubyNewby123 well, I remember you were fetching user input right?
spudowiar has joined #ruby
<RubyNewby123> sure
<shevy> you could let class Player do so instead
nertzy has joined #ruby
<shevy> I mean class Game
<shevy> :D
devbug has joined #ruby
kolotrupa has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto_ has quit [Remote host closed the connection]
<RubyNewby123> class game already reads user input no
<RubyNewby123> ?
<RubyNewby123> "read_choice"
vuoto has joined #ruby
Mimorial has joined #ruby
Mimorial is now known as Gasher
the_drow has quit [Quit: This computer has gone to sleep]
KCmetro has quit [Quit: Leaving...]
rodfersou|afk is now known as rodfersou
devbug has quit [Read error: Connection reset by peer]
vuoto has quit [Remote host closed the connection]
jjtoy has joined #ruby
Devalo has joined #ruby
<jjtoy> how would someone parse this string to get the timestamp? "Jul 25 17:45:46 deeptest docker/2292_1[7980]: Killed#015"
<jjtoy> im trying to avoid regexs
kolotrupa has quit [Ping timeout: 276 seconds]
elifoster has quit [Ping timeout: 264 seconds]
<apeiros> >> "Jul 25 17:45:46 deeptest docker/2292_1[7980]: Killed#015"[0,15]
<ruby[bot]> apeiros: # => "Jul 25 17:45:46" (https://eval.in/611746)
madsa has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
c0mrad3 has joined #ruby
whathappens has quit [Quit: Leaving...]
<jjtoy> apeiros: what did that do? are you in bot mode?
<apeiros> o0
<jjtoy> oh, i see
<jjtoy> hmm, simple hack :)
madsa has joined #ruby
<jjtoy> i will use that!
kolotrupa has joined #ruby
* apeiros now wonders by what definition this falls under "hack"
workmad3 has quit [Ping timeout: 240 seconds]
symm- has joined #ruby
Torrone has joined #ruby
ec0 has joined #ruby
chouhoulis has quit []
xall_ has joined #ruby
l4v2 has joined #ruby
Puffball has joined #ruby
Pumukel has joined #ruby
chouhoulis has joined #ruby
jackjackdripper has joined #ruby
macsteps has quit [Remote host closed the connection]
postmodern has quit [Ping timeout: 250 seconds]
SilverKey has quit [Quit: Halted.]
devbug has joined #ruby
nerium has quit [Quit: nerium]
nerium has joined #ruby
Dimik has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
Rum has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
SilverKey has joined #ruby
aryaching has quit [Remote host closed the connection]
nankyokusei has joined #ruby
devbug has quit [Read error: Connection reset by peer]
anisha has quit [Quit: This computer has gone to sleep]
djdarkbeat__ has joined #ruby
djdarkbeat has quit [Read error: Connection reset by peer]
djdarkbeat__ is now known as djdarkbeat
devbug has joined #ruby
kavanagh has quit [Remote host closed the connection]
postmodern has joined #ruby
SilverKey has quit [Client Quit]
bmurt has joined #ruby
kavanagh has joined #ruby
SilverKey has joined #ruby
conta has quit [Ping timeout: 264 seconds]
jaguarmagenta has joined #ruby
xall_ has quit [Read error: Connection reset by peer]
xall_ has joined #ruby
jaguarmagenta has quit [Ping timeout: 244 seconds]
Torrone has quit [Quit: This computer has gone to sleep]
douglascorrea has joined #ruby
<RubyNewby123> Zarthus: In your suggestion of using symbols (I've been reading up a bit). I get that they're more efficient etc, but in that example, wouldn't they be displayed as "sybol_name" to the user? So I'd lose a friendly display name?
aryaching has joined #ruby
gregf has quit [Quit: WeeChat 1.4]
<Zarthus> RubyNewby123: yep
<Zarthus> This is why I suggested a class / hash for when the project grows
<RubyNewby123> ok I'm with ya
renderful has quit []
<Zarthus> I'd probably have the software generate a list of weapons they can pick from, prefix them with identifiers and have the user insert a number rather than the name
<drbrain> RubyNewby123: Zarthus: what's not more efficient is picking symbols for efficiency then converting strings to symbols to look things up in a hash
<RubyNewby123> I considered that very thing today
<RubyNewby123> an inventory essentially
Rum has left #ruby [#ruby]
jenrzzz has quit [Quit: Lost terminal]
<Zarthus> and you could do something like Weapon = Struct.new(:internal_name, :display_name, :damage) if you don't want to make a class
<drbrain> if you have to convert to extract data from a constant hash then you should switch your keys
gregf has joined #ruby
<Zarthus> drbrain: it wasn't so much about efficiency as getting rid of the case
rodfersou is now known as rodfersou|afk
johnmilton has quit [Remote host closed the connection]
terminalrecluse has joined #ruby
aryaching has quit [Remote host closed the connection]
<Zarthus> internal name is rather redundant there, it'd be potato_gun = Weapon.new("Potato Gun", 9001)
Torrone has joined #ruby
alfiemax has quit [Ping timeout: 265 seconds]
bad_ip has quit [Quit: Some people just want to watch the world burn.]
alfiemax has joined #ruby
Kamilion has quit [Read error: Connection reset by peer]
bad_ip has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
miqlas-H has joined #ruby
kavanagh has quit [Quit: That's all folks!]
yqt has joined #ruby
bkxd has joined #ruby
mahlon has quit [Ping timeout: 258 seconds]
<noregret> how can I convert an integer to utf-8 ?
freerobby has joined #ruby
bkxd has quit [Ping timeout: 258 seconds]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
Eiam has joined #ruby
preyalone has quit [Quit: Connection closed for inactivity]
ged has quit [Ping timeout: 276 seconds]
xall_ has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
terminalrecluse is now known as terminal_
Squarism has joined #ruby
chouhoul_ has joined #ruby
* Squarism is Certified Scrum master - taking questions
chouhou__ has joined #ruby
<Zarthus> but are you a Scrum Developer?
johnny56 has quit [Ping timeout: 264 seconds]
<Squarism> Scrum Master > Scrum Developer
<Zarthus> I always read that as "developer of SCRUM sessions"
johnny56 has joined #ruby
<jhass> Squarism: what's the atomic weight of a water molecule?
binaryplease1 has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
xall_ has joined #ruby
diablerouge has joined #ruby
chouhoulis has quit [Ping timeout: 276 seconds]
<Papierkorb> Squarism: What makes DHMO bombs so dangerous in contrast to conventional weapons?
d5sx43 has joined #ruby
d5sx43 has quit [Client Quit]
chouhoul_ has quit [Ping timeout: 260 seconds]
weaksauce has joined #ruby
<jhass> Squarism: what will you do with all the questions you collect?
binaryplease has quit [Ping timeout: 276 seconds]
Torrone has quit [Ping timeout: 250 seconds]
<Papierkorb> jhass: My guess is, writing them on sticky notes and hang them out for others to answer. Squarism is here to communicate our impediments, not to really answer it!
EdwardIII has quit [Ping timeout: 258 seconds]
djbkd has quit [Remote host closed the connection]
troulouliou_div2 has joined #ruby
djbkd has joined #ruby
EdwardIII has joined #ruby
FernandoBasso has joined #ruby
<Squarism> all questions can be answered with planning poker - as all software bussiness problems
diablerouge has quit [Ping timeout: 250 seconds]
binaryplease1 is now known as binaryplease
djbkd has quit [Ping timeout: 244 seconds]
Squarism has left #ruby ["Leaving"]
<Papierkorb> What's the baseline then?
<rann> quick question: there is gem --user-install, but is there also its inverse: explicitly asking for installation in a global gem location?
<Papierkorb> rann: --no-user-install
shinnya has joined #ruby
<Papierkorb> so, yeah, the opposite :P
<rann> hah
<rann> nice
<rann> how does gem determine what no-user-install is?
<Papierkorb> there's only system-wide and user-local install. if it's not one, it's the other.
<rann> I saw that GEM_PATH can contain more than two entries tho
<rann> And I noticed that if you do not set GEM_HOME, behavior differs per platform (some point to system-wide by default, some to ~/.gem/<version>)
<Papierkorb> yes it does differ >_>
RegulationD has joined #ruby
<rann> Is it common practice to set GEM_HOME to something relative? I've been testing with that and it works amazingly much like npm that way
<havenwood> rann: Some systems opt for --user-install and others opt for --no-user-install by default.
<rann> (I'm very new to ruby btw, so excuse me if i'm stating the obvious)
<Papierkorb> rann: I'd say "no, it's not"
<Papierkorb> rann: in fact, I wouldn't recommend it, as then you'd have to have a relative path in your $PATH to access the gem binaries.
last_staff has joined #ruby
<rann> for development that is really, really nice though.
<havenwood> rann: A popular tool for updating env vars including PATH, GEM_HOME, GEM_PATH etc is chruby: https://github.com/postmodern/chruby#readme
last_staff has quit [Client Quit]
<Papierkorb> rann: there's bundler for that
<havenwood> rann: The gem Bundler is the most popular way to manage deps for a specific project. RubyGems itself also now supports dependency resolution but it's not as widely used as Bundler yet.
<rann> how would you do that with bundler? I am using that, but in my case bundler will insist on installing globally, ie, in the system-wide location on my platform
<Papierkorb> rann: $ bundle install --path vendor/bundle
<havenwood> rann: bundle --path vendor/bundle
<Papierkorb> rann: initially for the project, after that, just `bundle`
SilverKey has quit [Quit: Halted.]
<rann> aaah ok, awesome
<havenwood> rann: --path is a "remembered" setting
<rann> Right, now it makes sens
<rann> e
<rann> well, on the way I learned *a lot* about how gem finds stuff and what is involved :-)
RegulationD has quit [Ping timeout: 240 seconds]
devbug has quit [Read error: Connection reset by peer]
<Sou|cutter> it remembers stuff in .bundler/config
skweek has joined #ruby
SilverKey has joined #ruby
devbug has joined #ruby
<rann> another question: if I always want to compile native gems: --platform ruby in gemrc?
Kamilion has joined #ruby
minotep has joined #ruby
<rann> (read: I never want to get precompiled dll's/so's, but build on install)
<havenwood> >> 42.to_s.encode.encoding # noregret
<Papierkorb> rann: they're always built/compiled on your system
<ruby[bot]> havenwood: # => #<Encoding:US-ASCII> (https://eval.in/611776)
<Papierkorb> rann: Or, I'm not aware of gems which ship binaries. Maybe some JRuby gems do ship JARs, no idea
<rann> pg, kgio, raindrops
<havenwood> noregret: 42.to_s.encode('utf-8')
Guest51233 has quit [Ping timeout: 240 seconds]
<Papierkorb> rann: `pg` ships with an C extension as source
skweek has quit [Ping timeout: 250 seconds]
<Papierkorb> everything else would be broken
<rann> Papierkorb: and bcrypt also.. On windows they do, they ship mingw variants, but I noticed that more often than not, these are tightly coupled to the ruby interpreter version and they might install an so/dll that will not load correctly
ec0 has quit [Ping timeout: 258 seconds]
<Papierkorb> rann: Ah, Windows issues. Not a windows user.
<rann> on windows you can use the devkit from RubyInstaller as a compiler (the same that is used to create the ruby interpreter on windows)
<Papierkorb> Why would you want to use Windows to dev?
<rann> Anyways: --platform ruby avoids those binary variants I've notices
<rann> d
augcesar has joined #ruby
devbug has quit [Read error: Connection reset by peer]
<rann> for example: gem install bcrypt (on windows) -> .gems/2.3.0/gems/bcrypt-mingw-something
Torrone has joined #ruby
<Papierkorb> Most likely these binary packages are there so people don't have to mess with windows to get anything to compile at all. Still, Windows only issue
<rann> for example: gem install bcrypt --platform ruby (on windows) -> compile phase -> .gems/2.3.0/gems/bcrypt-version (like non-native-code-packages)
devbug has joined #ruby
ec0 has joined #ruby
<rann> Yes, they provide the binaries to assist people that want to install a native gem while no compiler setup available. that's the intent for sure
<miqlas-H> Hi Guys!
<miqlas-H> Is there new release already?
roshanavand has joined #ruby
<rann> but it didn't work in 3 out of 4 packages I tried it with, but after getting the devkit setup (very simple btw) I could install all from source with compile stage.
djbkd has joined #ruby
Torrone has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
devbug has quit [Read error: Connection reset by peer]
noffle has joined #ruby
polishdub has joined #ruby
devbug has joined #ruby
tvw has quit [Read error: Connection reset by peer]
Azure has quit [Ping timeout: 276 seconds]
shinnya has quit [Ping timeout: 260 seconds]
<havenwood> miqlas-H: Ruby 2.3.1 is the latest release or there's 2.4.0-preview1 to try out for a taste of what's to come.
devbug_ has joined #ruby
<miqlas-H> I got the 2.4.0_preview compiled on Haiku. It was easy ride.
pawnbox has quit [Remote host closed the connection]
<miqlas-H> But it would be really great to have user-install as default.
howdoi has quit [Quit: Connection closed for inactivity]
<miqlas-H> The standard paths are read-only in Haiku.
pawnbox has joined #ruby
conta has joined #ruby
devbug has quit [Ping timeout: 260 seconds]
devbug has joined #ruby
sepp2k has joined #ruby
Torrone has joined #ruby
devbug_ has quit [Ping timeout: 260 seconds]
devbug has quit [Read error: Connection reset by peer]
<rann> miglas-H heh, funny you mention that, I was just jakkering about the same thing :-)
<shevy> 2.4.0 is inofficial dev release
jaiks1 has quit [Ping timeout: 260 seconds]
<miqlas-H> I know
solars has quit [Ping timeout: 250 seconds]
<shevy> when you write user-install, you mean gem?
<miqlas-H> i made already a recipe for that in haikuports.
bad_ip has quit [Ping timeout: 250 seconds]
bbathe has joined #ruby
bbathe has left #ruby [#ruby]
inukshuk_ has joined #ruby
temhaa has joined #ruby
sballert has joined #ruby
inukshuk_ has quit [Client Quit]
<temhaa> Hello,
<miqlas-H> But Haiku needs the following: stack_protector=no
<miqlas-H> without it the configure scripts just goes crazy
<miqlas-H> can somebody put it into the ruby configure?
<miqlas-H> BTW: i really like the colorized configure output.
<temhaa> I am trying to install https://github.com/suer/redmine_oauth_provider to my redmine. But when I try I am getting cannot load such file -- oauth/rack/oauth_filter. is the problem related to ruby? If so can you help me
maucar has quit [Quit: Leaving]
<miqlas-H> I would like to see it in every configure scripts.
<dminuoso> temhaa: No the problem is related to how the code tries to load a dependency.
chouhou__ has quit [Remote host closed the connection]
<dminuoso> temhaa: You might get more help in a redmine related forum/channel, since you probably are installing it wrong, or the plugin is broken.
chouhoulis has joined #ruby
roshanavand has quit [Ping timeout: 276 seconds]
<headius> Papierkorb, rann: any gem can ship binaries for a specific platform by releasing a platform-specific gem
<headius> most JRuby gems that have jars in them are -java for this reason
<shevy> miqlas-H you may have to file an issue request at https://bugs.ruby-lang.org/projects/ruby-trunk - there are not many haiku people so if you don't point out how things may work, nobody else may know :D
<Papierkorb> headius: they can, but I'm not aware of any MRI gems doing that for linux
<temhaa> dminuoso: Thank you
aryaching has joined #ruby
<headius> Papierkorb: I remember seeing one but can't remember what it was
nankyokusei has quit []
<headius> I think it's usually just easier to have some makefile rules for *nix than to release binary builds
<headius> maybe if you're closed source you'd want to do it
Fernando-Basso has quit [Quit: Leaving]
devbug has joined #ruby
freerobby1 has joined #ruby
<miqlas-H> shevy: you know, life is too short to revove your USB devices safely.
<miqlas-H> I never have enough time to do all my PR's
swills has quit [Remote host closed the connection]
BillSussman has joined #ruby
<shevy> hah I was ruthless in removing USB stuff
Azure has joined #ruby
<shevy> until I realized that some external USB hdd's may be killed if you just disconnect them :(
xall_ has quit [Ping timeout: 240 seconds]
freerobby has quit [Ping timeout: 250 seconds]
KevinFrench has quit [Ping timeout: 250 seconds]
arnonhongklay has joined #ruby
hutch34_ has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
moeabdol has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby1 has quit [Ping timeout: 244 seconds]
ramfjord has quit [Ping timeout: 250 seconds]
aep-shoutlet has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
solars has joined #ruby
xall_ has joined #ruby
banisterfiend has joined #ruby
banisterfiend has quit [Client Quit]
Sucks has quit [Ping timeout: 264 seconds]
<miqlas-H> shevy: expensive training.
blackgoat has joined #ruby
arnonhon_ has joined #ruby
jeremyhall_ has quit [Ping timeout: 252 seconds]
mcqr has quit [Quit: WeeChat 1.4]
arnonhongklay has quit [Read error: Connection reset by peer]
SilverKey has quit [Quit: Halted.]
madsa has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Devalo has quit [Remote host closed the connection]
jeremyhall has joined #ruby
<miqlas-H> Any idea or tips, how can i teach abstraction for the workmates?
sballert has quit [Quit: leaving]
ur5us has joined #ruby
hutch34_ has joined #ruby
madsa has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<iamdevnul> anybody here familiar with the aasm gem? I have a subclass that inherits from a parent class with a defined state machine, i'd like to to redefined that state machine on the subclass
bad_ip has joined #ruby
replay has quit [Ping timeout: 250 seconds]
finisherr has joined #ruby
devbug has quit [Quit: ZZZzzz…]
devbug has joined #ruby
Alayde has joined #ruby
Uranio has joined #ruby
minotep has quit [Ping timeout: 258 seconds]
marr has joined #ruby
devbug has quit [Read error: Connection reset by peer]
cyphase has quit [Ping timeout: 250 seconds]
whathappens has joined #ruby
noffle has left #ruby ["WeeChat 1.5-rc2"]
devbug has joined #ruby
EdwardIII has quit [Ping timeout: 244 seconds]
devbug has quit [Read error: Connection reset by peer]
__void has joined #ruby
EdwardIII has joined #ruby
cyphase has joined #ruby
fanantoxa has joined #ruby
ur5us has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 244 seconds]
devbug has joined #ruby
statelesscode_ has joined #ruby
statelesscode has quit [Ping timeout: 276 seconds]
statelesscode_ is now known as statelesscode
devbug has quit [Read error: Connection reset by peer]
devbug_ has joined #ruby
djdarkbeat has quit [Read error: Connection reset by peer]
devbug_ has quit [Read error: Connection reset by peer]
djdarkbeat has joined #ruby
jaguarmagenta has joined #ruby
devbug has joined #ruby
<miqlas-H> I need to go Guys, keep up this good work. Bye!
dunpeal has quit [Ping timeout: 258 seconds]
devbug has quit [Read error: Connection reset by peer]
djdarkbeat has quit [Read error: Connection reset by peer]
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
devbug has joined #ruby
bad_ip has quit [Ping timeout: 244 seconds]
fanantoxa has quit [Ping timeout: 258 seconds]
kolotrup_ has joined #ruby
Torrone has quit [Read error: Connection reset by peer]
rcvalle has joined #ruby
swills has joined #ruby
jaguarmagenta has quit [Ping timeout: 265 seconds]
kolotrupa has quit [Ping timeout: 258 seconds]
lechiffre10 has joined #ruby
<lechiffre10> hello friends
Pumukel has quit [Quit: ChatZilla 0.9.92 [Firefox 47.0/20160604131506]]
joonty has joined #ruby
<havenwood> lechiffre10: hi
<lechiffre10> anyone have experience with prelauncher campaigns on rails?
<lechiffre10> trying to integrate Thunderclap.it for campaigns
synthroid has quit []
Torrone has joined #ruby
bad_ip has joined #ruby
douglascorrea has quit []
Sucks has joined #ruby
arnonhon_ has quit [Ping timeout: 265 seconds]
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
codecop has quit [Remote host closed the connection]
Torrone has quit [Ping timeout: 244 seconds]
devbug has quit [Read error: Connection reset by peer]
dunpeal has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
TomyLobo has quit [Ping timeout: 264 seconds]
ur5us has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
devbug has joined #ruby
jenrzzz has joined #ruby
bkxd has joined #ruby
Xiti has joined #ruby
cZk has quit [Quit: bye]
devbug has quit [Read error: Connection reset by peer]
hutch34_ has quit [Ping timeout: 252 seconds]
Sucks has quit [Ping timeout: 264 seconds]
devbug has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
lechiffre10 has quit [Quit: WeeChat 1.5]
zeroDi has joined #ruby
ldnunes has quit [Quit: Leaving]
moeabdol has joined #ruby
JeanCarloMachado has quit [Ping timeout: 244 seconds]
last_staff has joined #ruby
croberts has joined #ruby
Torrone has joined #ruby
pusewicz has quit [Quit: Bye! http://www.layer22.com]
temhaa has left #ruby [#ruby]
neanderslob has joined #ruby
neanderslob has quit [Read error: Connection reset by peer]
last_staff has quit [Read error: Connection reset by peer]
sckhzn has joined #ruby
xxninjabunnyxx has quit [Quit: Leaving]
djdarkbeat has joined #ruby
noorbeh` has quit [Remote host closed the connection]
neanderslob has joined #ruby
madsa has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
__void has quit [Ping timeout: 276 seconds]
madsa has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
workmad3 has joined #ruby
devbug has quit [Read error: Connection reset by peer]
skweek has joined #ruby
devbug has joined #ruby
jhack has quit [Quit: jhack]
kobain has joined #ruby
kavanagh has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
blackmesa has joined #ruby
devbug has quit [Read error: Connection reset by peer]
devbug has joined #ruby
RegulationD has joined #ruby
JeanCarloMachado has joined #ruby
Torrone has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
last_staff has joined #ruby
jenrzzz has joined #ruby
johnmilton has joined #ruby
last_staff has quit [Read error: Connection reset by peer]
mattwashere has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 244 seconds]
mattwashere has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
last_staff has joined #ruby
last_staff has quit [Client Quit]
symm- has quit [Ping timeout: 250 seconds]
johnmilton has quit [Ping timeout: 240 seconds]
<solars> can anyone tell me what I'm doing wrong with prepend? https://gist.github.com/solars/f9d93b1929bd95e3845107d2814a8f52
johnmilton has joined #ruby
der-landgraf has joined #ruby
kolotrup_ has quit [Remote host closed the connection]
spudowiar has quit [Quit: Leaving.]
<jhass> solars: prepend, like include and extend, adds the instance methods of module to another class or module as instance methods, "class methods" are defined in another class than what you prepend/include/extend
<jhass> solars: you meant to say def error instead of def self.error
Uranio has quit [Quit: Leaving]
spudowiar has joined #ruby
tjohnson has joined #ruby
oscardaichi has joined #ruby
dvinciguerra_ has quit [Ping timeout: 260 seconds]
cd-rum has joined #ruby
Torrone has joined #ruby
crdpink has quit [Quit: q term]
crdpink has joined #ruby
cd-rum has quit [Ping timeout: 240 seconds]
nerium has quit [Quit: nerium]
AgentVenom has joined #ruby
nerium has joined #ruby
bad_ip has quit [Ping timeout: 258 seconds]
GNUYawk has quit [Quit: GNUYawk]
finisherr_ has joined #ruby
Torrone has quit [Quit: This computer has gone to sleep]
solars has quit [Ping timeout: 250 seconds]
last_staff has joined #ruby
finisherr_ has quit [Client Quit]
finisherr has quit [Ping timeout: 240 seconds]
oscardaichi has left #ruby [#ruby]
Torrone has joined #ruby
augcesar has quit [Quit: Connection closed for inactivity]
matp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
EdwardIII has quit [Ping timeout: 276 seconds]
kavanagh has quit [Quit: That's all folks!]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bkxd has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
Torrone has quit [Read error: Connection reset by peer]
matp has joined #ruby
djdarkbeat has quit [Ping timeout: 250 seconds]
EdwardIII has joined #ruby
cZk has joined #ruby
yfeldblum has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
bkxd has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
nfk has joined #ruby
Torrone has joined #ruby
EdwardIII has quit [Ping timeout: 244 seconds]
matcouto has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SilverKey has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
SilverKey has quit [Client Quit]
joonty has quit [Quit: This computer has gone to sleep]
neanderslob has quit [Ping timeout: 244 seconds]
aegis3121 has quit [Ping timeout: 250 seconds]
devbug has quit [Read error: Connection reset by peer]
matcouto has quit [Ping timeout: 258 seconds]
airdisa has quit []
spudowiar has quit [Quit: Leaving.]
EdwardIII has joined #ruby
neanderslob has joined #ruby
spudowiar has joined #ruby
matcouto has joined #ruby
Asher has quit [Quit: Leaving.]
ramfjord has quit [Ping timeout: 264 seconds]
mattwashere has quit [Remote host closed the connection]
Es0teric has joined #ruby
GNUYawk has joined #ruby
AgentVenom has quit [Quit: Textual IRC Client: www.textualapp.com]
mattwashere has joined #ruby
dunpeal has quit [Ping timeout: 240 seconds]
ChiefAlexander has quit [Quit: Leaving...]
devbug has joined #ruby
davedev24 has quit [Remote host closed the connection]
dunpeal has joined #ruby
firstdayonthejob has quit [Ping timeout: 244 seconds]
polishdub has quit [Quit: Leaving]
mattwashere has quit [Ping timeout: 258 seconds]
neanderslob has quit [Ping timeout: 260 seconds]
sckhzn has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Sucks has joined #ruby
Asher has joined #ruby
devbug has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 244 seconds]
devbug has joined #ruby
xall_ has quit [Ping timeout: 258 seconds]
xall_ has joined #ruby
aryaching has quit [Remote host closed the connection]
Torrone has quit [Ping timeout: 244 seconds]
GNUYawk has quit [Remote host closed the connection]
GNUYawk has joined #ruby
hutch34_ has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 252 seconds]
neanderslob has joined #ruby
jenrzzz has joined #ruby
neanderslob has quit [Disconnected by services]
neanderslob_ has joined #ruby
neanderslob_ has quit [Remote host closed the connection]
GNUYawk has quit [Remote host closed the connection]
GNUYawk has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
jaguarmagenta has joined #ruby
whathappens has joined #ruby
skweek has joined #ruby
<noregret> how can i convert a string s = "\\u4142\\u4344" to the byte string "\u4142\4344" - any ideas?
jenrzzz has quit [Ping timeout: 265 seconds]
ramfjord has joined #ruby
jaguarmagenta has quit [Ping timeout: 258 seconds]
GodFather has joined #ruby
k776 has joined #ruby
twinklerock has left #ruby [#ruby]
Moosashi has joined #ruby
moneylotion has joined #ruby
<k776> Hello. How does one add new encoding convertors to ruby? I have a case where I received an email with charset ISO-2022-CN. I need to convert it to UTF-8, but I get the following error: "Encoding::ConverterNotFoundError code converter not found ISO-2022-CN to UTF-8". The output of "Encoding.list" contains a "ISO-2022-JP" but no "ISO-2022-CN". Anyone know how to add the chinese encoding so it converts properly?
<k776> Is it a system package that I need to install perhaps?
GodFather has quit [Remote host closed the connection]
cschneid_ has quit [Remote host closed the connection]
<k776> dminuoso: ? That;s what I'm already using. I'm not asking how to convert. I'm asking, when converting, ho does one add an encoding that ruby doesn't seem to provide by default
c355e3b has joined #ruby
Nawn has joined #ruby
GodFather has joined #ruby
neanderslob has joined #ruby
gigetoo has joined #ruby
jenrzzz has joined #ruby
spudowiar has quit [Quit: Leaving.]
<shevy> I am not sure many here know how to add a new encoding; you could try to ask Martin Duerst, he writes a lot of encoding stuff https://github.com/ruby/ruby/blob/trunk/ChangeLog#L16
spudowiar1 has joined #ruby
spudowiar1 is now known as spudowiar
axl__ has joined #ruby
thoraxe has quit [Ping timeout: 250 seconds]
axl_ has quit [Ping timeout: 260 seconds]
axl__ is now known as axl_
<drbrain> k776: you probably have to write another one of these: https://github.com/ruby/ruby/blob/trunk/enc/trans/iso2022.trans
<drbrain> or expand another one of those
dvinciguerra_ has joined #ruby
bkxd has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roamingdog has joined #ruby
<xpitr> noregret "\\u4142\\u4344".scan(/u(\d+)/).map{|i| [i.first.hex].pack("U")}.join
ruby_de has joined #ruby
<xpitr> its so bad lol
madsa has quit [Ping timeout: 265 seconds]
whathappens has quit [Remote host closed the connection]
ruby_de has quit [Client Quit]
agent_white has quit [Quit: gonehome]
bkxd has quit [Ping timeout: 265 seconds]
vF3hNGxc47h8 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
qguv has quit [Quit: bye]
dminuoso has quit [Ping timeout: 250 seconds]
qguv has joined #ruby
hutch34_ has quit [Ping timeout: 276 seconds]
<havenwood> eval "\"#{s}\""
JeanCarloMachado has quit [Quit: Lost terminal]
Nawn has quit [Remote host closed the connection]
<havenwood> >> require 'yaml'; s = "\\u4142\\u4344"; YAML.load "\"#{s}\""
<ruby[bot]> havenwood: # => "䅂䍄" (https://eval.in/611874)
<havenwood> noregret: ^
LoneHerm_ has joined #ruby
<havenwood> another option
jeremyhall has quit [Ping timeout: 240 seconds]
<havenwood> >.>
Rodya_ has joined #ruby
dunpeal has quit [Ping timeout: 265 seconds]
Torrone has joined #ruby
<GNUYawk> >> a = 1; b = a; c = b; d = c; e = d; f = e; puts f * 69
<ruby[bot]> GNUYawk: # => 69 ...check link for more (https://eval.in/611875)
leftpad has joined #ruby
<GNUYawk> >> a = 1; b = a; c = b; d = c; e = d; f = e; puts “i like to #{f * 69} with your mom”
<ruby[bot]> GNUYawk: # => undefined local variable or method `to' for main:Object (NameError) ...check link for more (https://eval.in/611876)
LoneHerm_ has quit [Ping timeout: 258 seconds]
<drbrain> !ban GNUYawk
GNUYawk was kicked from #ruby by ruby[bot] [bannable offense, see http://ruby-community.com/pages/user_rules]
cyphase has quit [Ping timeout: 250 seconds]
neanderslob has quit [Remote host closed the connection]
Moosashi has quit [Quit: Moosashi]
davedev24 has joined #ruby
last_staff has quit [Quit: last_staff]
qguv has quit [Quit: bye]
cyphase has joined #ruby
Torrone has quit [Ping timeout: 244 seconds]
qguv has joined #ruby
davedev2_ has joined #ruby
RegulationD has joined #ruby
k776 has quit [Quit: Leaving.]
SCHAAP137 has quit [Quit: Leaving]
dunpeal has joined #ruby
davedev24 has quit [Ping timeout: 250 seconds]
jeremyhall has joined #ruby
wpaulson has joined #ruby
M4dH4TT3r has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
M4dH4TT3r is now known as Guest72476
Alayde has quit [Ping timeout: 276 seconds]
RegulationD has quit [Ping timeout: 240 seconds]
Moosashi has joined #ruby
nettoweb has joined #ruby
maloik64 has joined #ruby
ben9099 has joined #ruby
maloik has quit [Remote host closed the connection]
koooge has joined #ruby
jackjackdripper1 has joined #ruby
<ben9099> can someone tell me why this works: in initialize is params.each { |k, v| public_send("#{k}=", v) } to assign passed in parameters to local? variables. then in another method it looks for a local variable set this way and finds it?!?!?! how is the local variable accessible between methods?
jackjackdripper2 has joined #ruby
neanderslob has joined #ruby
jackjackdripper1 has quit [Read error: Connection reset by peer]
<baweaver> are there any attr_* methods in the top?
thoraxe has joined #ruby
<ben9099> not a one
<baweaver> because those define (attr_writer defines attr=, attr_reader defines attr, attr_accessor does both)
<ben9099> i know the code works, but am new to ruby/RoR and don't see why
<baweaver> Ah, Rails. Model attributes.
Madplatypus has quit [Quit: Connection closed for inactivity]
<baweaver> they define those methods automatically, but that's a very bad idea.
<ben9099> But the class doesn't inherit from anything.
<baweaver> ActiveRecord::Base?
<ben9099> No, this is some separate class for doing reports. It inherits from nothing.
<ben9099> and is only instantiated to hold criteria for running the report.
jackjackdripper has quit [Ping timeout: 264 seconds]
<baweaver> ack, other work came up
<ben9099> np
_djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
wpaulson has quit [Remote host closed the connection]
<drbrain> ben9099: what does self.class.ancestors say?
<drbrain> ben9099: also, public_send is a method call
<ben9099> umm.. let me check.
<ben9099> right, but are variables set with public_send "different" like some sort of weird local but somehow instance scope or something?
terminal_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wrkrcoop has joined #ruby
<wrkrcoop> how do i stub a method in a module?
<drbrain> ben9099: public_send can't change variables
<drbrain> there's probably a method (or a method_missing) that sets instance variables
<drbrain> and a matching method to read them back out
<drbrain> in ruby local variables and method calls look very much the same
_djbkd has quit [Ping timeout: 258 seconds]
<ben9099> oh, i'm sorry, i think i see... the base class has no attr_accessor but the class which extends it DOES. so that's why it must work... still, seems sloppy the way they have it.
<ben9099> thanks
devbug has quit [Read error: Connection reset by peer]
<drbrain> ben9099: you're welcome
bad_ip has joined #ruby
<drbrain> ben9099: also, method("whatever").source_location can be of help sometimes (but it is `nil` for methods defined in C)
<ben9099> ah, nice, thank you!
devbug has joined #ruby
cyphase has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby