<shevy>
e. g. whether someone did a "gem install name", or downloaded a specific gem, without dependencies, directly via the URL link (like to click on it manually)
zeroDivisible has joined #ruby
Luna_Moonfang has quit [Ping timeout: 240 seconds]
async_prince has quit [Ping timeout: 240 seconds]
Affix has joined #ruby
Affix is now known as Guest30889
isene has quit [Ping timeout: 255 seconds]
kies has joined #ruby
Karunamon has joined #ruby
mistermo_ has joined #ruby
ljarvis has joined #ruby
sjohnsen has quit [Ping timeout: 240 seconds]
AnoHito_ has quit [Ping timeout: 264 seconds]
roxtrongo has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
trosborn has quit [Quit: trosborn]
AnoHito has joined #ruby
dlitvak_ has joined #ruby
mghaig has joined #ruby
dlitvak has quit [Read error: Connection reset by peer]
bartj3 has quit [Ping timeout: 260 seconds]
<jackjackdripper>
anybody played with dashing/sinatra? I'm having issues with threads not dying
IrishGringo has quit [Ping timeout: 240 seconds]
isene has joined #ruby
yfeldblum has joined #ruby
sjohnsen has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
zeroDivisible has quit [Quit: WeeChat 1.3]
zeroDivisible has joined #ruby
<shevy>
zombies!
Luna_Moonfang has joined #ruby
async_prince has joined #ruby
bartj3 has joined #ruby
leafybasil has quit []
<jackjackdripper>
shevy yeah wish I can just take a chainsaw to it.
sysanthrope has quit [Quit: No Ping reply in 180 seconds.]
<shevy>
so, name | small | big, as in: delta, then the small delta character ?, and then the big one ?
trosborn has joined #ruby
trosborn has quit [Client Quit]
<jhass>
shevy: get a font that displays them?
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
My initial idea was to use DELTA as constant in ruby for the representation of one of those; but I wonder what I should use for the other one... since DELTA would be all upcased already...
<Ox0dea>
shevy: Drop down to C so you can name constants however you please. :P
rgrmatt has quit [Remote host closed the connection]
<Ox0dea>
See if you can figure out how to read it. :P
<Diabolik>
ok
jwaldrip___ has quit [Quit: Be back later ...]
rgrmatt has joined #ruby
Ropeney has joined #ruby
zeroDivisible has quit [Client Quit]
zeroDivisible has joined #ruby
strgbrew has quit [Quit: BitchX: it won't get you laid]
RegulationD has joined #ruby
rgtk has joined #ruby
unknowns2k2 has joined #ruby
<Diabolik>
Ox0dea which would you say are the most useful of the ruby standard library?
<shevy>
Diabolik you may not need it often, usually for dumping data to the disk; then again I also found that yaml works fairly good for most of the latter
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
<Ox0dea>
Diabolik: Insufficient data for meaningful answer.
shinnya has quit [Ping timeout: 246 seconds]
<Diabolik>
im just reading through the docs atm
<Diabolik>
and wondering which i should focus on
Ropeney has quit [Ping timeout: 240 seconds]
rgtk has quit [Read error: No route to host]
<Ox0dea>
Using gems isn't illegal.
rgtk has joined #ruby
marr has quit [Ping timeout: 240 seconds]
<haylon>
Would anyone be able to help me with Berkshelf, #chef seems to have gone AFK.
RegulationD has quit [Ping timeout: 244 seconds]
NeverTired has joined #ruby
<Ox0dea>
Diabolik: For educational purposes, I'd recommend Set.
blue_deref has quit [Quit: bbn]
gusrub has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
howdoico1 has joined #ruby
rgtk has joined #ruby
roxtrongo has quit [Remote host closed the connection]
<Ox0dea>
I vaguely recall there being a lot of the characteristic Japanese weirdness in there, but it seems to have gone.
jdawgaz has joined #ruby
haylon has quit [Quit: Leaving]
mwlang has quit [Quit: mwlang]
zotherstupidguy has quit [Ping timeout: 246 seconds]
rgtk has quit [Read error: No route to host]
patdohere has joined #ruby
yfeldblum has quit [Remote host closed the connection]
rgtk has joined #ruby
patdohere has quit [Max SendQ exceeded]
patdohere has joined #ruby
freerobby has quit [Quit: Leaving.]
rgtk has quit [Read error: Connection reset by peer]
cirenyc has joined #ruby
rgtk has joined #ruby
_stu_ has quit [Quit: _stu_]
mistermo_ has quit [Remote host closed the connection]
rgtk has quit [Read error: Connection reset by peer]
gambl0re has quit [Ping timeout: 240 seconds]
mistermocha has joined #ruby
rgtk has joined #ruby
crankhar1er has quit [Read error: No route to host]
yfeldblum has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
baweaver has joined #ruby
mattwildig has joined #ruby
yoongkang has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
rgtk has quit [Read error: No route to host]
ekinmur has joined #ruby
mattwildig has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
mattwildig has joined #ruby
pwnd_nsfw has joined #ruby
banister has quit [Read error: Connection reset by peer]
rgtk_ has joined #ruby
rgtk has quit [Read error: No route to host]
unknowns2k2 has quit [Quit: unknowns2k2]
Ropeney has joined #ruby
icey has quit [Quit: icey]
baweaver has quit [Ping timeout: 264 seconds]
<Mon_Ouie>
The implementation of OrderedSet if you don't have the rbtree gem is very odd, unless they changed that
yoongkang has quit [Ping timeout: 250 seconds]
rgtk_ has quit [Read error: No route to host]
stannard has joined #ruby
rgtk has joined #ruby
icey has joined #ruby
icey has quit [Client Quit]
mistermocha has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 260 seconds]
rgtk has quit [Read error: No route to host]
pwnd_nsfw has quit [Ping timeout: 246 seconds]
rgtk has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
neonalpine has quit [Remote host closed the connection]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
cashnguns has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
rgrmatt has quit [Remote host closed the connection]
whippythellama has quit [Quit: WeeChat 1.3]
freerobby has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
rgrmatt has joined #ruby
robbyoconnor has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk_ has joined #ruby
saddad has joined #ruby
rgtk_ has quit [Read error: No route to host]
rgtk has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rgtk has quit [Read error: No route to host]
pwnd_nsfw has joined #ruby
rgtk has joined #ruby
howdoico1 has quit [Ping timeout: 264 seconds]
howdoico1 has joined #ruby
atomical has joined #ruby
pkrnj has quit [Quit: Computer has gone to sleep.]
rgrmatt has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rgtk_ has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
rgtk_ has quit [Read error: No route to host]
iateadonut has joined #ruby
rgtk has quit [Read error: No route to host]
rgrmatt has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
rgtk has joined #ruby
stannard has quit [Ping timeout: 276 seconds]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skweek has quit [Ping timeout: 264 seconds]
rgtk has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
cirenyc has quit [Quit: Leaving...]
blue_deref has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
jessemcgilallen has joined #ruby
rgtk has quit [Read error: No route to host]
tjohnson has quit [Quit: Connection closed for inactivity]
rgtk has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
rgtk has quit [Read error: No route to host]
jamesaxl|2 has joined #ruby
tkuchiki has joined #ruby
rgtk has joined #ruby
dfinninger has joined #ruby
cwong_on_irc has quit [Quit: Leaving.]
unknowns2k2 has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
jamesaxl has quit [Ping timeout: 246 seconds]
rgtk has quit [Read error: No route to host]
CloCkWeRX has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
CloCkWeRX has joined #ruby
guillaume-rb has quit [Quit: guillaume-rb]
dfinninger has quit [Ping timeout: 240 seconds]
rgtk has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
dlitvak has joined #ruby
nertzy2 has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
eminencehc has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
rgtk_ has joined #ruby
rgtk_ has quit [Read error: No route to host]
rgtk has joined #ruby
maikowblue has quit [Quit: .]
unknowns2k2 has quit [Quit: unknowns2k2]
rgtk has quit [Read error: No route to host]
rakm has joined #ruby
rgtk_ has joined #ruby
symm- has quit [Ping timeout: 240 seconds]
rgtk_ has quit [Read error: No route to host]
saddad has quit [Ping timeout: 260 seconds]
rgtk has joined #ruby
c355E3B has joined #ruby
rgtk has quit [Read error: No route to host]
Melpaws has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
baweaver has joined #ruby
karapetyan has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
lipoqil has quit [Quit: Connection closed for inactivity]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
niftylettuce has quit [Quit: Connection closed for inactivity]
axsuul_ has quit [Ping timeout: 250 seconds]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
karapetyan has quit [Ping timeout: 250 seconds]
rgrmatt has quit [Remote host closed the connection]
leat has quit [Remote host closed the connection]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
eminencehc has quit [Remote host closed the connection]
rgrmatt has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
Nahra`` has quit [Read error: Connection reset by peer]
Nahra``` has joined #ruby
rgrmatt has quit [Remote host closed the connection]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
guillaume-rb has joined #ruby
bruno- has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
tref has quit [Quit: tref]
guillaume-rb has quit [Client Quit]
guillaume-rb has joined #ruby
guillaume-rb has quit [Client Quit]
rgtk has quit [Read error: No route to host]
rgtk_ has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
guillaume-rb has joined #ruby
blubjr has joined #ruby
Rickmasta has joined #ruby
tref has joined #ruby
jefus has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
unknowns2k2 has joined #ruby
rgtk_ has quit [Read error: Connection reset by peer]
jefus has left #ruby [#ruby]
CodingWolf has quit [Ping timeout: 255 seconds]
dlitvak_ has joined #ruby
rgtk has joined #ruby
rgrmatt has joined #ruby
leat has joined #ruby
dlitvak has quit [Ping timeout: 260 seconds]
rgtk has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
nomadic has quit [Remote host closed the connection]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
unknowns2k2 has quit [Client Quit]
govg has quit [Remote host closed the connection]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
howdoico1 has quit [Ping timeout: 264 seconds]
duncannz has joined #ruby
rgtk_ has joined #ruby
rgtk has quit [Read error: No route to host]
Jardayn has quit [Quit: Leaving]
mattwildig has quit [Remote host closed the connection]
rgtk_ has quit [Read error: No route to host]
rgtk has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
howdoico1 has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk_ has joined #ruby
baweaver has quit [Remote host closed the connection]
tulak has quit [Remote host closed the connection]
rgtk_ has quit [Read error: No route to host]
towski_ has quit [Remote host closed the connection]
rgtk has joined #ruby
antoniobeyah has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
solenoids has quit [Ping timeout: 244 seconds]
pwnd_nsfw has quit [Ping timeout: 246 seconds]
roxtrongo has joined #ruby
rgtk has quit [Read error: No route to host]
rgrmatt has quit [Remote host closed the connection]
rgtk has joined #ruby
rgrmatt has joined #ruby
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mghaig has quit [Ping timeout: 250 seconds]
rgtk has quit [Read error: No route to host]
rgtk_ has joined #ruby
pdoherty has quit [Ping timeout: 250 seconds]
diegoaguilar has quit [Ping timeout: 244 seconds]
rgtk_ has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
psy_ has quit [Ping timeout: 272 seconds]
rgrmatt has quit [Remote host closed the connection]
Melpaws has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
psy_ has joined #ruby
rgtk has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
dorei has quit [Remote host closed the connection]
rgtk has quit [Read error: No route to host]
baweaver has joined #ruby
favadi has joined #ruby
rgtk has joined #ruby
dorei has joined #ruby
amclain has quit [Quit: Leaving]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has joined #ruby
fedexo has joined #ruby
solenoids has joined #ruby
pwnd_nsfw has joined #ruby
pdoherty has joined #ruby
rgtk has quit [Read error: No route to host]
Fire-Dragon-DoL has joined #ruby
rgtk has joined #ruby
antoniobeyah has quit [Changing host]
antoniobeyah has joined #ruby
Coldblackice has quit [Read error: Connection reset by peer]
Nahra```` has joined #ruby
rgtk has quit [Read error: No route to host]
mistermocha has quit [Remote host closed the connection]
Nahra``` has quit [Remote host closed the connection]
TheHodge has quit [Quit: Connection closed for inactivity]
rgtk has joined #ruby
northfurr has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
mistermocha has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
diegoaguilar has joined #ruby
kp666 has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
kp666 has quit [Max SendQ exceeded]
kp666 has joined #ruby
northfurr has quit [Quit: northfurr]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
northfurr has joined #ruby
kp666 has quit [Client Quit]
roxtrongo has quit [Read error: Connection reset by peer]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
roxtrongo has joined #ruby
mistermocha has quit [Remote host closed the connection]
northfurr has quit [Client Quit]
FooMunki has quit [Quit: FooMunki]
Moonman420 has joined #ruby
fedexo has quit [Ping timeout: 240 seconds]
Moonman420 has left #ruby [#ruby]
rgtk has quit [Read error: No route to host]
dnewkerk has joined #ruby
rgtk has joined #ruby
iateadonut has quit [Ping timeout: 246 seconds]
nomadic has joined #ruby
inoperable has quit [Quit: ZNC 1.7.x-git-473-cc76522 - http://znc.in]
render___ has joined #ruby
mistermocha has joined #ruby
rgtk has quit [Read error: No route to host]
mghaig has joined #ruby
neonalpine has joined #ruby
rgtk has joined #ruby
neonalpine has quit [Remote host closed the connection]
rgtk has quit [Read error: No route to host]
renderf__ has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
inoperable has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
noodle has quit [Ping timeout: 272 seconds]
iateadonut has joined #ruby
tref has quit [Ping timeout: 240 seconds]
tref has joined #ruby
skweek has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
Uptime has quit [Ping timeout: 246 seconds]
sjums_ has joined #ruby
shortdudey123 has quit [Ping timeout: 240 seconds]
sjums has quit [Read error: Connection reset by peer]
howdoico1 has quit [Ping timeout: 264 seconds]
diegoaguilar has quit [Ping timeout: 240 seconds]
ricer2 has quit [Ping timeout: 240 seconds]
tiwillia has quit [Ping timeout: 240 seconds]
rgtk has quit [Read error: Connection reset by peer]
TheNet has joined #ruby
rgtk has joined #ruby
howdoico1 has joined #ruby
<TheNet>
can I use a deploy key in a gemfile for gems that are sourced from a git repository?
bruno- has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
yqt has quit [Ping timeout: 244 seconds]
niftylettuce has joined #ruby
rgtk has quit [Read error: No route to host]
noodle has joined #ruby
rgtk has joined #ruby
shortdudey123 has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
inoperable has quit [Quit: ZNC 1.7.x-git-473-cc76522 - http://znc.in]
rgtk has quit [Read error: No route to host]
joneshf-laptop has joined #ruby
gambl0re has joined #ruby
rgtk has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
diegoaguilar has joined #ruby
hanmac has quit [Ping timeout: 240 seconds]
roxtrongo has quit [Remote host closed the connection]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
ggherdov has quit [Ping timeout: 240 seconds]
inoperable has joined #ruby
cschneid has quit [Ping timeout: 240 seconds]
tiwillia has joined #ruby
Cesario has quit [Ping timeout: 255 seconds]
howdoico1 has quit [Ping timeout: 260 seconds]
Yzguy has quit [Ping timeout: 240 seconds]
iateadonut has quit [Ping timeout: 240 seconds]
AnoHito_ has joined #ruby
skcin7 has joined #ruby
iateadonut has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jwaldrip___ has joined #ruby
cschneid has joined #ruby
jwaldrip___ has quit [Read error: Connection reset by peer]
AnoHito has quit [Ping timeout: 252 seconds]
Coldblackice has joined #ruby
Paradox has quit [Excess Flood]
axsuul has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
Paradox has joined #ruby
<antoniobeyah>
TheNet: i dont think you put keys in the gemfile. as long as you can git clone the repository you should be able to resolve it via a git: url
jackjackdripper has quit [Quit: Leaving.]
<TheNet>
antoniobeyah: makes sense, thanks
sankaber has joined #ruby
<antoniobeyah>
TheNet: you have have to use the ssh endpoint instead of the https endpoint
inoperable has quit [Quit: ZNC 1.7.x-git-473-cc76522 - http://znc.in]
jaxxstorm has quit [Ping timeout: 240 seconds]
<antoniobeyah>
np
eminencehc has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
inoperable has joined #ruby
jaxxstorm has joined #ruby
ggherdov has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mghaig has quit [Quit: Lost terminal]
mistermocha has joined #ruby
IrishGringo has joined #ruby
noodle has quit [Quit: /quit]
dlitvak_ has quit [Ping timeout: 265 seconds]
guillaume-rb has quit [Quit: guillaume-rb]
Uptime has joined #ruby
jhn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak has joined #ruby
hanmac has joined #ruby
noodle has joined #ruby
northfurr has joined #ruby
arescorpio has joined #ruby
quazimodo has quit [Ping timeout: 250 seconds]
mistermocha has quit [Remote host closed the connection]
solenoids has quit [Ping timeout: 265 seconds]
mistermocha has joined #ruby
dikaio has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roxtrongo has joined #ruby
baweaver has joined #ruby
fedexo has joined #ruby
Uptime has quit [Quit: :}]
solocshaw has quit [Ping timeout: 246 seconds]
Guest68214 has quit [Quit: Leaving]
dasher00 has quit [Quit: Leaving]
baweaver has quit [Ping timeout: 240 seconds]
TheNet has quit [Remote host closed the connection]
waka has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
stfu has joined #ruby
dnewkerk has quit [Ping timeout: 244 seconds]
dikaio has quit [Ping timeout: 260 seconds]
stannard has joined #ruby
opensource_ninja has quit [Ping timeout: 240 seconds]
stfu has quit [Client Quit]
braincrash has quit [Quit: bye bye]
Rickmasta has joined #ruby
Yzguy has joined #ruby
Yzguy has quit [Max SendQ exceeded]
solenoids has joined #ruby
dnewkerk has joined #ruby
Nahra```` has quit [Ping timeout: 250 seconds]
Nahra```` has joined #ruby
braincrash has joined #ruby
tmtwd has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xcesariox has joined #ruby
c355E3B has quit [Quit: Connection closed for inactivity]
mg^ has quit [Read error: Connection reset by peer]
drig0r has quit [Read error: Connection reset by peer]
antoniobeyah has joined #ruby
antoniobeyah has quit [Changing host]
antoniobeyah has joined #ruby
mg^ has joined #ruby
drig0r has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wjb has joined #ruby
jpfuentes2 has joined #ruby
cwong_on_irc has joined #ruby
longfeet has joined #ruby
jpfuentes2 has quit [Ping timeout: 246 seconds]
_blizzy_ has quit [Quit: Leaving]
riskish has joined #ruby
user083 has joined #ruby
jhn has joined #ruby
B1n4r10 has quit [Ping timeout: 272 seconds]
IrishGringo has quit [Ping timeout: 246 seconds]
mary5030 has quit [Remote host closed the connection]
mattwildig has joined #ruby
workmad3 has quit [Read error: Connection reset by peer]
rakm has joined #ruby
mattwildig has quit [Ping timeout: 240 seconds]
davedev24 has quit []
CloCkWeRX has quit [Quit: Leaving.]
CloCkWeRX1 has joined #ruby
skcin7_ has joined #ruby
skcin7 has quit [Ping timeout: 260 seconds]
TheNet has joined #ruby
nateberkopec has joined #ruby
workmad3 has joined #ruby
dorei has quit []
Musashi007 has joined #ruby
northfurr has quit [Quit: northfurr]
roxtrongo has quit [Remote host closed the connection]
dfinninger has joined #ruby
cashnguns has quit [Read error: Connection reset by peer]
howdoico1 has joined #ruby
mallu has joined #ruby
<diegoviola>
when parsing/importing CSV data that is separated by a \t, how do I validate it before importing?
<Radar>
What.
<Radar>
diegoviola: Is it OK if I kick you without showing code?
<Radar>
Like, kick then +b for a day each time you do it.
<Radar>
Because imo it's not OK for you to not being show examples of what you mean after you've spent so long in these channels.
<mallu>
I'm studying ruby and I'm looking for some "homework" to practice array, hash etc. Any place I can find these?
<Radar>
You know the rules and so do I.
lubarch has joined #ruby
<Radar>
We're no strangers to <s>love</s> helping you.
<pontiki>
mallu: i'd suggest picking up a CS datastructure text, an old one should be available for really cheap
<Radar>
diegoviola: Does your CSV not have headers either?
<pontiki>
mallu: i'd also suggest a visit to exocism.io
<diegoviola>
Radar: yes that's my problem, I don't have any yet
TheNet_ has joined #ruby
<Radar>
pontiki: exercism.io, you mean?
<jhass>
mallu: not focused on array & hash, but excercism.io provides nice tasks, and since those datastructures are at the core of Ruby, you'll come across stuff that needs using them
<pontiki>
good grief!! LOL
<pontiki>
yes, Radar
<mallu>
thank you
<diegoviola>
Radar: my CSV has headers
<Radar>
diegoviola: Gist your CSV in that same one please.]
<jhass>
diegoviola: I think I missed you explaining what you actually want to validate about it?
<diegoviola>
Radar: done
<Radar>
diegoviola: So you should be passing headers: true along with col_sep. Then you don't need to use array indexing to reference the fields in that CSV.
<diegoviola>
jhass: if I pass another file I just don't want it to parse
<diegoviola>
jhass: or do anything
<jhass>
diegoviola: rescue the errors CSV will throw at you?
<diegoviola>
jhass: yep
juddey has quit [Ping timeout: 240 seconds]
<Ox0dea>
Yeah, use exceptions for control flow!
<jhass>
so, just do that?
SenpaiSilver_ has joined #ruby
<jhass>
Ox0dea: of course passing invalid data would be exception! :P
<jhass>
*the exception, even
TheNet has quit [Ping timeout: 240 seconds]
triangles2 has joined #ruby
<Ox0dea>
Y'got me.
patdohere has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
matled- has joined #ruby
<diegoviola>
hrm
_derpy has joined #ruby
jdawgaz has joined #ruby
Eiam_ has joined #ruby
RandyT has joined #ruby
patronus_ has joined #ruby
yfeldblu_ has joined #ruby
LiquidIn1ect has joined #ruby
yasu_ has joined #ruby
ckrailo_ has joined #ruby
vbatts|w` has joined #ruby
countryHick_ has joined #ruby
mrsolo_ has joined #ruby
HashNuke_ has joined #ruby
Lloyd_ has joined #ruby
hahuang61 has joined #ruby
Y_Ichiro_ has joined #ruby
Y_Ichiro_ has joined #ruby
drbrain_ has joined #ruby
`scootaloo has joined #ruby
Lloyd_ is now known as Guest17741
boxrick1_ has joined #ruby
javawizard has joined #ruby
sjums has joined #ruby
baweaver has joined #ruby
user083 has quit [Quit: leaving]
crdpink has joined #ruby
ELLIOTTCABLE_ has joined #ruby
hagabaka has joined #ruby
hahuang65 has quit [Ping timeout: 264 seconds]
suffice has joined #ruby
tommylom1ykins has joined #ruby
Freijo has joined #ruby
musl_ has joined #ruby
eregon has joined #ruby
darkf has joined #ruby
rdema_ has joined #ruby
thang_ has joined #ruby
freeze_ has joined #ruby
Muz_ has joined #ruby
tubuliferous_ has joined #ruby
Ray`_ has joined #ruby
RTG` has quit [Disconnected by services]
manveru_ has joined #ruby
lagweezl1 has joined #ruby
janelleb_ has joined #ruby
Freeaqingme has joined #ruby
queequeg2 has joined #ruby
exceion_ has joined #ruby
RTG` has joined #ruby
gix has quit [Ping timeout: 240 seconds]
Gnubie__ has joined #ruby
rideh- has joined #ruby
bakedb_ has joined #ruby
jaxxstorm_ has joined #ruby
Puffball has joined #ruby
SilentEc1 has joined #ruby
greenbig- has joined #ruby
nizmow has joined #ruby
claw has joined #ruby
ricer2 has joined #ruby
avril14th_ has joined #ruby
kiez0rd has joined #ruby
low-profile has joined #ruby
djanatyn1 has joined #ruby
Lorn_ has joined #ruby
danzilio_ has joined #ruby
prosodyCagain_ has joined #ruby
tylersmith has joined #ruby
<diegoviola>
Radar: how I'm supposed to reference it instead
SenpaiSilver has quit [Read error: Connection reset by peer]
Bugboy1028 has quit [Ping timeout: 246 seconds]
omninonsense has joined #ruby
ELLIOTTCABLE has quit [Ping timeout: 246 seconds]
yasu has quit [Ping timeout: 246 seconds]
canton7 has quit [Ping timeout: 246 seconds]
LiquidInsect has quit [Ping timeout: 246 seconds]
mikolalysenko has quit [Ping timeout: 246 seconds]
rideh has quit [Ping timeout: 246 seconds]
tpendragon has quit [Ping timeout: 246 seconds]
bove has quit [Ping timeout: 246 seconds]
thesheff17 has quit [Ping timeout: 246 seconds]
jevs has quit [Ping timeout: 246 seconds]
rcs has quit [Ping timeout: 246 seconds]
tubuliferous has quit [Ping timeout: 246 seconds]
`derpy has quit [Ping timeout: 246 seconds]
universa1 has quit [Ping timeout: 246 seconds]
linc01n has quit [Ping timeout: 246 seconds]
nug has quit [Ping timeout: 246 seconds]
avril14th has quit [Ping timeout: 246 seconds]
danzilio has quit [Ping timeout: 246 seconds]
teotwaki has quit [Ping timeout: 246 seconds]
drbrain has quit [Ping timeout: 246 seconds]
kkh has quit [Ping timeout: 246 seconds]
hagebake has quit [Ping timeout: 246 seconds]
cstrahan has quit [Ping timeout: 246 seconds]
[spoiler] has quit [Ping timeout: 246 seconds]
Miron has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Ping timeout: 246 seconds]
Emmanuel_Chanel_ has quit [Ping timeout: 246 seconds]
darkxploit has quit [Ping timeout: 246 seconds]
countryHick has quit [Ping timeout: 246 seconds]
ckrailo has quit [Ping timeout: 246 seconds]
catbusters has quit [Ping timeout: 246 seconds]
Lloyd has quit [Ping timeout: 246 seconds]
prosodyCagain has quit [Ping timeout: 246 seconds]
nullwarp has quit [Ping timeout: 246 seconds]
DanKnox[away] has quit [Ping timeout: 246 seconds]
manveru has quit [Ping timeout: 246 seconds]
rob_ has quit [Ping timeout: 246 seconds]
low-prof1 has quit [Ping timeout: 246 seconds]
sorah has quit [Ping timeout: 246 seconds]
aep has quit [Ping timeout: 246 seconds]
djanatyn has quit [Ping timeout: 246 seconds]
Muz has quit [Ping timeout: 246 seconds]
rdema has quit [Ping timeout: 246 seconds]
levifig has quit [Ping timeout: 246 seconds]
Fraeon has quit [Ping timeout: 246 seconds]
thang has quit [Ping timeout: 246 seconds]
Rovanion_ has quit [Ping timeout: 246 seconds]
diesel has quit [Ping timeout: 246 seconds]
iceden has quit [Ping timeout: 246 seconds]
go|dfish has quit [Ping timeout: 246 seconds]
freeze has quit [Ping timeout: 246 seconds]
mclee has quit [Ping timeout: 246 seconds]
Musashi007 has quit [Ping timeout: 246 seconds]
rakm has quit [Ping timeout: 246 seconds]
jaxxstorm has quit [Ping timeout: 246 seconds]
braincrash has quit [Ping timeout: 246 seconds]
sjums_ has quit [Ping timeout: 246 seconds]
pwnd_nsfw has quit [Ping timeout: 246 seconds]
jamesaxl|2 has quit [Ping timeout: 246 seconds]
triangles has quit [Ping timeout: 246 seconds]
isene has quit [Ping timeout: 246 seconds]
Lorn has quit [Ping timeout: 246 seconds]
woodruffw has quit [Ping timeout: 246 seconds]
matled has quit [Ping timeout: 246 seconds]
queequeg1 has quit [Ping timeout: 246 seconds]
eregon_ has quit [Ping timeout: 246 seconds]
alakra has quit [Ping timeout: 246 seconds]
UtkarshRay has quit [Ping timeout: 246 seconds]
jschmid has quit [Ping timeout: 246 seconds]
HashNuke has quit [Ping timeout: 246 seconds]
duoi has quit [Ping timeout: 246 seconds]
tcrypt has quit [Ping timeout: 246 seconds]
greenbigfrog has quit [Ping timeout: 246 seconds]
Ray` has quit [Ping timeout: 246 seconds]
redondos has quit [Ping timeout: 246 seconds]
crdpink2 has quit [Ping timeout: 246 seconds]
Guest95812 has quit [Ping timeout: 246 seconds]
mrsolo has quit [Ping timeout: 246 seconds]
boxrick1 has quit [Ping timeout: 246 seconds]
blackjid has quit [Ping timeout: 246 seconds]
nizmow- has quit [Ping timeout: 246 seconds]
dwithers has quit [Ping timeout: 246 seconds]
ja has quit [Ping timeout: 246 seconds]
oddalot has quit [Ping timeout: 246 seconds]
janelleb has quit [Ping timeout: 246 seconds]
claw_ has quit [Ping timeout: 246 seconds]
jidar has quit [Ping timeout: 246 seconds]
suffice_ has quit [Ping timeout: 246 seconds]
exceion has quit [Ping timeout: 246 seconds]
RandyT_ has quit [Ping timeout: 246 seconds]
Puffball_ has quit [Ping timeout: 246 seconds]
SilentEcho has quit [Ping timeout: 246 seconds]
towler has quit [Ping timeout: 246 seconds]
jsrn has quit [Ping timeout: 246 seconds]
kies^ has quit [Ping timeout: 246 seconds]
humd1ng3r has quit [Ping timeout: 246 seconds]
Gnubie_ has quit [Ping timeout: 246 seconds]
lagweezle has quit [Ping timeout: 246 seconds]
sfr^ has quit [Ping timeout: 246 seconds]
unsymbol has quit [Ping timeout: 246 seconds]
musl has quit [Ping timeout: 246 seconds]
adaedra has quit [Ping timeout: 246 seconds]
patronus has quit [Ping timeout: 246 seconds]
__main__ has quit [Ping timeout: 246 seconds]
Didac has quit [Ping timeout: 246 seconds]
tommylommykins has quit [Ping timeout: 246 seconds]
snapcase has quit [Ping timeout: 246 seconds]
duncannz has quit [Ping timeout: 246 seconds]
kies has quit [Ping timeout: 246 seconds]
Freeaqingme_ has quit [Ping timeout: 246 seconds]
DanKnox^ has joined #ruby
bakedb has quit [Ping timeout: 246 seconds]
jcp has quit [Ping timeout: 246 seconds]
Y_Ichiro has quit [Ping timeout: 246 seconds]
Couch has quit [Ping timeout: 246 seconds]
drbrain_ is now known as drbrain
nullwarp has joined #ruby
jaxxstorm_ is now known as jaxxstorm
catbusters has joined #ruby
catbusters has joined #ruby
catbusters has quit [Changing host]
matled- is now known as matled
go|dfish1 has joined #ruby
canton7 has joined #ruby
iceden has joined #ruby
nug- has joined #ruby
UtkarshRay has joined #ruby
mclee has joined #ruby
<Radar>
diegoviola: "reference it"?
rakm has joined #ruby
sfr^ has joined #ruby
Miron has joined #ruby
<jhass>
the world!
universa1 has joined #ruby
duoi has joined #ruby
teotwaki has joined #ruby
Uptime has joined #ruby
Bloomer has joined #ruby
rcs has joined #ruby
<diegoviola>
Radar: you mentioned I don't have to use row[0], etc.
<eam>
welp, can't demo it there, but this is super annoying behavior: kill sig, *pids will fail partway through if any operation returns ESRCH
<eam>
which basically means you can never use kill in list form reliably
err_ok has quit [Ping timeout: 264 seconds]
RTG` has quit [Disconnected by services]
astrobunny has joined #ruby
hahuang65 has joined #ruby
RTG` has joined #ruby
knowtheory_ has joined #ruby
jmcc_ has joined #ruby
golgaroth_ has joined #ruby
duncannz has joined #ruby
s00pcan_ has joined #ruby
moloch has joined #ruby
nej_ has joined #ruby
hplar has quit [Ping timeout: 272 seconds]
G_ has joined #ruby
patdohere has joined #ruby
duncannz has quit [Max SendQ exceeded]
mjc__ has joined #ruby
claw_ has joined #ruby
pkrnj has joined #ruby
K3rvyN has joined #ruby
duncannz has joined #ruby
constantinexvi_ has joined #ruby
duncannz has quit [Max SendQ exceeded]
dwithers1 has joined #ruby
artmann_ has joined #ruby
Nilium_ has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shinenelson has joined #ruby
arthurnn_ has joined #ruby
dlitvak has joined #ruby
bgresham has joined #ruby
JoshL_ has joined #ruby
moufl has joined #ruby
redondos_ has joined #ruby
nug| has joined #ruby
camilasann has joined #ruby
SegFaultAX_ has joined #ruby
peitera- has joined #ruby
jevs has quit [*.net *.split]
nej has quit [*.net *.split]
dwithers has quit [*.net *.split]
redondos has quit [*.net *.split]
nug- has quit [*.net *.split]
claw has quit [*.net *.split]
ELLIOTTCABLE has quit [*.net *.split]
hahuang61 has quit [*.net *.split]
waka has quit [*.net *.split]
Pisuke has quit [*.net *.split]
demophoon has quit [*.net *.split]
peitera has quit [*.net *.split]
Killerkeksdose_ has quit [*.net *.split]
astrobun_ has quit [*.net *.split]
dede__ has quit [*.net *.split]
ICantCook has quit [*.net *.split]
djellemah has quit [*.net *.split]
Nilium has quit [*.net *.split]
ta has quit [*.net *.split]
pmarreck has quit [*.net *.split]
knowtheory has quit [*.net *.split]
zeljkof has quit [*.net *.split]
avdi has quit [*.net *.split]
mjc_ has quit [*.net *.split]
amirpro has quit [*.net *.split]
moeabdol has quit [*.net *.split]
bascht has quit [*.net *.split]
alxndr has quit [*.net *.split]
JoshL has quit [*.net *.split]
joaomdmoura has quit [*.net *.split]
lacrosse has quit [*.net *.split]
jmcc has quit [*.net *.split]
constantinexvi has quit [*.net *.split]
bytecrawler has quit [*.net *.split]
arthurnn has quit [*.net *.split]
s00pcan has quit [*.net *.split]
mission712 has quit [*.net *.split]
jord has quit [*.net *.split]
dellavg has quit [*.net *.split]
crayfishx has quit [*.net *.split]
bjeanes has quit [*.net *.split]
vayan has quit [*.net *.split]
kellabyte has quit [*.net *.split]
camilasan has quit [*.net *.split]
_5moufl has quit [*.net *.split]
shevy has quit [*.net *.split]
golgaroth has quit [*.net *.split]
zly has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
KervyN has quit [*.net *.split]
GarethAdams has quit [*.net *.split]
mroth has quit [*.net *.split]
G has quit [*.net *.split]
artmann has quit [*.net *.split]
Nilium_ is now known as Nilium
moufl is now known as _5moufl
SegFaultAX_ is now known as SegFaultAX
joaomdmoura_ has joined #ruby
jevs_ is now known as jevs
knowtheory_ is now known as knowtheory
diegoaguilar has quit [Ping timeout: 250 seconds]
alxndr_ is now known as alxndr
mjc__ is now known as mjc_
psy_ has quit [Quit: Leaving]
arooni has quit [Ping timeout: 240 seconds]
ELLIOTTCABLE_ is now known as ELLIOTTCABLE
kellabyte has joined #ruby
pkrnj has quit [Ping timeout: 244 seconds]
avdi_ is now known as avdi
bascht has joined #ruby
jmcc_ is now known as jmcc
bytecrawler has joined #ruby
riskish has quit [Ping timeout: 255 seconds]
dlitvak has quit [Ping timeout: 260 seconds]
golgaroth_ is now known as golgaroth
waka has joined #ruby
djellemah has joined #ruby
moeabdol1 has quit [Quit: WeeChat 1.3]
CloCkWeRX1 has quit [Quit: Leaving.]
NeverTired has joined #ruby
favadi has joined #ruby
CloCkWeRX has joined #ruby
lacrosse has joined #ruby
mroth has joined #ruby
bjeanes has joined #ruby
shevy has joined #ruby
crayfishx has joined #ruby
GarethAdams has joined #ruby
jord has joined #ruby
peppers has quit [Quit: Leaving]
vayan has joined #ruby
GarethAdams has quit [Changing host]
GarethAdams has joined #ruby
<mallu>
puts "What is your name?" name = gets.chomp if !name.nil? puts "Hello, #{name}" else puts "Hello,World!" end. why I am only getting "Hello" if i don't specify a name?
mission712 has joined #ruby
pmarreck has joined #ruby
rgtk has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mallu>
hello-world>ruby hello_world.rb What is your name? Hello,
zeljkof has joined #ruby
dede__ has joined #ruby
niftylettuce has quit [Quit: Connection closed for inactivity]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cwong_on_irc has quit [Quit: Leaving.]
mattwildig has quit [Ping timeout: 276 seconds]
dtordable has quit [Quit: Lost terminal]
dionysus69 has joined #ruby
dtordable has joined #ruby
solenoids has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<mallu>
string1 = 'GAGCCTACTAACGGGAT' string2 = 'CATCGTAATGACGGCCT'. What is the best way to find out how many characters are different on these two strings?
<Ox0dea>
djellemah: I did miss that part the first time through, but this is definitely geared more toward prediction.
anisha has joined #ruby
<Ox0dea>
Since MARISA chooses the values, I'd still need to have a map from those back to words, which is exactly what I've got now without a weird dependency.
<mallu>
is #scan is the best way to find out ?
<Ox0dea>
mallu: Will they always be the same length?
<mallu>
no
<Ox0dea>
Then Levenshtein distance.
<Ox0dea>
mallu: To clarify, will `string1` and `string2` always be equal in length?
<shevy>
mallu hah Mr. DNA!
<Ox0dea>
GATTACA was okay.
<mallu>
Ox0dea: no
<Ox0dea>
mallu: Are you sure?
<shevy>
mallu gem has levensthein
<shevy>
>> require 'rubygems/text'"; include Gem::Text; levenshtein_distance 'shevy', 'chevy'
<ruboto>
shevy # => /execpad/interpreters/ruby-2.2.0/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': ...check link for more (https://eval.in/470045)
<shevy>
grrrr
ReK2 has quit [Quit: Konversation terminated!]
<mallu>
Ox0dea: I'm sorry.. yes.. the strings that are comaing will be always same ength
<Ox0dea>
mallu: Then #zip and #count would make for a pretty elegant solution.
<shevy>
one '"' too much
<Ox0dea>
shevy: See? I don't always post useless shit.
<shevy>
no
<mallu>
Shevy; yes..DNA
<shevy>
it's the projects Ox0dea!
<Ox0dea>
>> s1 = 'GAGCCTACTAACGGGAT'; s2 = 'CATCGTAATGACGGCCT'; s1.chars.zip(s2.chars).count { |a, b| a != b } # mallu
leafybasil has quit [Read error: Connection reset by peer]
<bob_f>
My point is that it's not useful to ask about general equivalence if you have a specific use case, because that case could be an edge case.
leafybas_ has joined #ruby
<bob_f>
Ox0dea: Sure, if you say so.
<zotherstupidguy>
point taken
<bob_f>
If you don't have a specific case then it's an odd question to ask to start with.
<bob_f>
And if you do, let's just discuss that case, since language is too squiffy to expect any kind of coherence from semantic equality.
<Ox0dea>
> squiffy
<solars>
hey, does anyone know what could cause this error: wrong status line: "\xA6\xC2\x9D\xC8D\x02\x00\x00HTTP/1.1 200 OK" (http.rb) when making http calls? I don't get it
<zotherstupidguy>
i dont have a specific case, i just like to get my terms right
<solars>
or how I could debug the whole thing
ibouvousaime has joined #ruby
<zotherstupidguy>
http.rb is where?
<Ox0dea>
It's a gem.
<Ox0dea>
Er... maybe not; lots of gems have files called "http.rb".
<Ox0dea>
Yeah, looks like net/http.
bruce_lee has joined #ruby
<zotherstupidguy>
solars you should confirm that
DEA7TH has joined #ruby
<solars>
zotherstupidguy, confirm what?
<Ox0dea>
solars: It seems really unlikely that some server is sending you back such a response, so I'm inclined to think you're mutating it somehow.
<solars>
is there a way I can just dump the whole response string, in raw?
tkuchiki has joined #ruby
<zotherstupidguy>
can you post some code?
<zotherstupidguy>
gist?
TomyWork has joined #ruby
<solars>
zotherstupidguy, it's a wrapper that calls net/http - the OOOR gem (for openerp) so I can't directly provide any code
<zotherstupidguy>
platzhirsch has quit [Quit: Leaving.]
<zotherstupidguy>
monkey patching to the rescue!
<solars>
it seems to happen in net/http though, that's why dumping the raw response would probably help to determine if it maybe is a problem of a load balancer that messes up the response, or the server itself
<solars>
yeah, trying to find a way to do this
<Ox0dea>
solars: It looks like an HTTP/HTTPS mismatch.
rodfersou has joined #ruby
<solars>
Ox0dea, the problem is it does not happen all the time
<solars>
hmm but it could be a problem of load balancers redirecting
<Ox0dea>
So you're getting bytes mixed into the response from... somewhere.
<solars>
Ox0dea, so you mean mixed up ssl?
<Ox0dea>
Seems a decent possibility.
<solars>
Ox0dea, but it looks like it's rather outside, than inside the app
<solars>
right
<solars>
given the exception at this level
<Ox0dea>
This is Ruby; it could be coming from anywhere. :P
<solars>
haha
<Ox0dea>
Just as a temporary thing, you might consider monkey-patching Net::HTTPResponse#read_sock_line to not die and instead just read the rest of the socket.
<Ox0dea>
*#read_status_line
<Ox0dea>
Which takes one argument, a socket, and validates the first line.
<solars>
\x92\v\xCE\x853\xE5\x95\xA71x\x87\xD3\xCC\xA2\xF3F\xCBV\xBC\xB4\x15\\u\x80Tu\x88T\xB9@;\x1F\a\xEC\xE7\xAB\xE6\xCF\xD5\xB2\xDF\xEF\eV\x9A\xF1R\x7F\xA7\x03\x93\xCC\xFB\xBC\xD9c\x03\xD8\xF3r\\\x00B\x86\xE8vD\x02\x00\x00HTTP/1.1 200 OK
<solars>
to decode :)
ecksit has joined #ruby
<solars>
sorry for the multiline
<Ox0dea>
That's definitely interference.
vdamewood has quit [Quit: Life beckons.]
<zotherstupidguy>
i am an idiot we already established that, why ask me :)
<zotherstupidguy>
what makes it definitely?
<Ox0dea>
Well, that's certainly not a proper HTTP response.
<ecksit>
hey, what do people use for rubygem documentation? i've got a gem that exposes methods via a client that i would like to display how to use. i like tomdoc but can't see a way for it to generate nice outputted documentation
<Papierkorb>
Ox0dea: after reading the docs again, IO#read is supposed to be blocking even if operating on a non-blocking handle
<zotherstupidguy>
ecksit try ri
htmldrum has quit [Ping timeout: 240 seconds]
<solars>
Ox0dea, hmm yes but how to debug? tcpdump on the server?
<Ox0dea>
solars: Or even locally, no?
dlitvak has joined #ruby
<zotherstupidguy>
solars if you know the method, you can print self and call super
<ecksit>
zotherstupidguy, i'm not too keen on people needing to know the methods
karapetyan has joined #ruby
TheSpectre has joined #ruby
<solars>
Ox0dea, cannot run it locally unfortunately, it happens on the server mostly..
<solars>
Ox0dea, zotherstupidguy the url is specified as https://... have to check if there are other settings for ssl in ooor
<Ox0dea>
solars: But you're receiving the packets?
desmondhume has joined #ruby
<solars>
Ox0dea, how do you mean?
pepperbreath1 has joined #ruby
pepperbreath1 has quit [Client Quit]
<ecksit>
Ox0dea, do you know if that can automatically generate using that custom plugin?
<ecksit>
say, on push to GitHub
Hounddog has quit [Read error: Connection reset by peer]
vdamewood has joined #ruby
<Ox0dea>
ecksit: It certainly won't prevent you wiring up such a thing.
sameerynho has quit [Ping timeout: 250 seconds]
Hounddog has joined #ruby
<Ox0dea>
solars: Well, you've obviously got access to whichever machine is receiving these packets; monitor that box's traffic for anomalies?
<ecksit>
will --plugin work for a yardopts file?
<Ox0dea>
Dunno.
<zotherstupidguy>
Ox0dea you asking him to use somthing like wireshark?
exadeci has quit [Quit: Connection closed for inactivity]
Hounddog has quit [Excess Flood]
<zotherstupidguy>
solars is a he, right?
codecop has joined #ruby
<Ox0dea>
Or just tshark, but yeah.
<zotherstupidguy>
Ox0dea but isn't it a bit cryptic? does it give a report of faulty packets?
caliostro has joined #ruby
<solars>
Ox0dea, ah yes, that's what I meant with tcpdump on the server (the machine the app is running on)
<solars>
zotherstupidguy, he, yes :)
Hounddog has joined #ruby
<caliostro>
hi there!
<solars>
Ox0dea, zotherstupidguy can't find anything about how to use ssl with ooor, only http:// examples.. but on the other hand most of the requests work
sepp2k has joined #ruby
platzhirsch has left #ruby [#ruby]
Hounddog has quit [Excess Flood]
platzhirsch has joined #ruby
Hounddog has joined #ruby
prestorium has joined #ruby
GarethAdams has quit [Disconnected by services]
bruno- has joined #ruby
GarethAdams_ has joined #ruby
desmondh_ has joined #ruby
subscope has joined #ruby
Hounddog has quit [Excess Flood]
Hounddog has joined #ruby
ldnunes has joined #ruby
desmondhume has quit [Ping timeout: 272 seconds]
bruno- has quit [Ping timeout: 240 seconds]
trosborn has joined #ruby
howdoico1 has joined #ruby
Hounddog has quit [Read error: Connection reset by peer]
SylarRuby has joined #ruby
<zotherstupidguy>
solars i would try to do some logging to findout request/response anomalies, blackbox test it, you have tests?
Hounddog has joined #ruby
sameerynho has joined #ruby
G_ is now known as G
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mattwildig has joined #ruby
<Ox0dea>
[guilty silence intensifies]
howdoico1 has quit [Ping timeout: 255 seconds]
<zotherstupidguy>
solars as Ox0dea suggested maybe tshark is worth a shot, tshark -i 2 -p -w logging.cap host blackboxserver_ip
<zotherstupidguy>
tshark -i wlan0 -p -w logging.cap host blackboxserver_ip, if you using laptop
iateadonut has joined #ruby
SylarRuby has quit [Ping timeout: 276 seconds]
SylarRuby has joined #ruby
TPBallbag has joined #ruby
nfk|laptop has quit [Ping timeout: 264 seconds]
TomyWork has quit [Ping timeout: 260 seconds]
SylarRuby has quit [Client Quit]
mattwildig has quit [Ping timeout: 265 seconds]
bluOxigen has joined #ruby
nfk|laptop has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
TomyWork has joined #ruby
<solars>
zotherstupidguy, I will probably use that yes, it only happens rarely so I will just run it on the server
<solars>
in the meantime I will treat the exception as success if the error string contains HTTP STATUS 200
skade has quit [Quit: Computer has gone to sleep.]
johnzorn has quit [Read error: Connection reset by peer]
<zotherstupidguy>
solaris it depends on whom wrote the server code!! some just 200 anyway
<zotherstupidguy>
just send 200 anyway and throw the error message in the body
dmolina has joined #ruby
<solars>
no I mean the exception above just contains messed up status codes, but the status is 200 (at the end of that messed up chars)
<solars>
yes
solenoids has quit [Ping timeout: 276 seconds]
roxtrongo has joined #ruby
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zotherstupidguy>
i can't think of anything else you can do instead atm
<solars>
yep me too
<solars>
very annoying
Rollabunna has joined #ruby
xcesariox has joined #ruby
blueOxigen has joined #ruby
johnny56 has quit [Quit: WeeChat 1.4-dev]
bluOxigen has quit [Ping timeout: 250 seconds]
GarethAdams has joined #ruby
DoubleMalt has joined #ruby
krz has quit [Ping timeout: 272 seconds]
neanderslob has quit [Ping timeout: 250 seconds]
neanderslob has joined #ruby
trosborn has quit [Quit: trosborn]
bluOxigen has joined #ruby
tkuchiki has quit [Remote host closed the connection]
solenoids has joined #ruby
rodfersou is now known as rodfersou|tea
dlitvak has quit [Remote host closed the connection]
TPBallbag has quit [Remote host closed the connection]
rgtk has joined #ruby
johnzorn has joined #ruby
blueOxigen has quit [Ping timeout: 272 seconds]
johnzorn has quit [Read error: Connection reset by peer]
bnizzle has left #ruby [#ruby]
johnzorn has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
bruno- has joined #ruby
marsjaninzmarsa has quit [Ping timeout: 240 seconds]
lxsameer_ has joined #ruby
build22 has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3 has quit [Quit: leaving]
johnny56 has joined #ruby
sameerynho has quit [Ping timeout: 240 seconds]
caliostro has quit [Quit: Exit-Chat]
<solars>
zotherstupidguy, Ox0dea btw I also found a different entry: wrong status line: "Date: Sat, 14 Nov 2015 16:06:33 GMT"
<solars>
very weird
DEA7TH has quit [Quit: DEA7TH]
BackEndCoder has quit [Remote host closed the connection]
<Ox0dea>
solars: That is weird. It must be that something else is writing to this socket, but I couldn't begin to point at a culprit. :<
<solars>
very weird yes..
<solars>
I'm not sure if it is a problem with multithreading passenger
<solars>
as it's a rails app with multiple threads
<Ox0dea>
Hardly unheard of. :P
<solars>
heh
<solars>
I could try to synchronize these calls somehow
BackEndCoder has joined #ruby
DEA7TH has joined #ruby
CloCkWeRX has joined #ruby
<Ox0dea>
Were you able to locate them, then?
<solars>
I mean the class that makes the calls, not the calls inside ooor
<solars>
on the other hand it's just normal http calls I assume..
andikr has quit [Remote host closed the connection]
Ropeney has joined #ruby
Ropeney has quit [Client Quit]
Coldblackice has quit [Ping timeout: 260 seconds]
<shevy>
arup_r what is up with you man! you have become so quiet, is reallife so busy now?
|ifei5g00d has joined #ruby
emilkarl has joined #ruby
Mon_Ouie has joined #ruby
tref has quit [Quit: tref]
<arup_r>
shevy: yes,, trying to set up my new mac with lot of dev tools,, and it sucks as usual.. now upgrading my OS ,,, hehehe.. Are you using `?` operator in 2.2.3 ? hehehe
tkuchiki has joined #ruby
colegatron has quit [Ping timeout: 240 seconds]
scripore has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
|ifei5good has quit [Ping timeout: 276 seconds]
grepwood has joined #ruby
DEA7TH has joined #ruby
dhjondoh has quit [Remote host closed the connection]
|ifei5g00d has quit [Ping timeout: 240 seconds]
armyriad has quit [Ping timeout: 255 seconds]
shredding has quit [Ping timeout: 240 seconds]
|ifei5g00d has joined #ruby
exadeci has joined #ruby
<shevy>
in 2.2.3 I think it does not work yet
<shevy>
oh
<shevy>
did they not change it again? to &
|ifei5good has joined #ruby
<Papierkorb>
afaik it's &.
tkuchiki has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
<adaedra>
nah, they just changed it to ~!@#$%^&*()_+, to make everyone happy.
<arup_r>
lol
|ifei5g0_ has joined #ruby
|ifei5g00d has quit [Ping timeout: 250 seconds]
favadi has joined #ruby
armyriad has joined #ruby
tref has joined #ruby
arup_r has quit []
antgel has quit [Ping timeout: 255 seconds]
vdamewood has joined #ruby
|ifei5good has quit [Ping timeout: 244 seconds]
armyriad has quit [Max SendQ exceeded]
armyriad has joined #ruby
yardenbar has quit [Ping timeout: 250 seconds]
auzty has quit [Quit: Leaving]
|ifei5g0_ has quit [Ping timeout: 244 seconds]
codecop has quit [Remote host closed the connection]
hplar has joined #ruby
<norc>
shevy: Indeed. Matz has spoken and so it happened.
<norc>
I mean the fun we could have had with this: foo.a?.?a.foo
k3asd` has joined #ruby
joonty has quit [Quit: joonty]
zotherstupidguy has quit [Ping timeout: 240 seconds]
auxbuss has joined #ruby
_blizzy_ has joined #ruby
desmondh_ has joined #ruby
czsr has joined #ruby
czsr has joined #ruby
howdoico1 has joined #ruby
auxbuss has quit [Client Quit]
czsr has quit [Client Quit]
desmondhume has quit [Ping timeout: 260 seconds]
czsr has joined #ruby
dhjondoh has joined #ruby
|ifei5g00d has joined #ruby
mattwildig has joined #ruby
|ifei5good has joined #ruby
haxrbyte has joined #ruby
scripore has joined #ruby
howdoico1 has quit [Ping timeout: 250 seconds]
scripore has quit [Remote host closed the connection]
|ifei5g00d has quit [Ping timeout: 244 seconds]
Voker57 has quit [Remote host closed the connection]
scripore has joined #ruby
mattwildig has quit [Ping timeout: 265 seconds]
monthy has quit [Remote host closed the connection]
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
clonesig has joined #ruby
haxrbyte has quit [Quit: Leaving...]
haxrbyte has joined #ruby
Mon_Ouie has quit [Ping timeout: 244 seconds]
<apeiros>
adaedra: I thought they went with .<savely_navigate>method_name, to make it easily readable?
suchness has left #ruby [#ruby]
suchness has joined #ruby
icey has joined #ruby
haxrbyte has quit [Client Quit]
skweek has quit [Ping timeout: 264 seconds]
haxrbyte has joined #ruby
haxrbyte has quit [Client Quit]
haxrbyte has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<shevy>
we'll all find out at xmas when we wrap out our ruby present!
dhjondoh has quit [Quit: dhjondoh]
dhjondoh has joined #ruby
lukaszes has joined #ruby
TPBallbag has joined #ruby
A124 has quit [Quit: '']
DefV_ is now known as DefV
dhjondoh has quit [Client Quit]
TPBallbag has quit [Remote host closed the connection]
dhjondoh has joined #ruby
TPBallbag has joined #ruby
joonty has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
Guest30889 has quit [Changing host]
Guest30889 has joined #ruby
rgrmatt has joined #ruby
Guest30889 is now known as Affix
bMalum has joined #ruby
rgrmatt has quit [Remote host closed the connection]
czsr has quit [Quit: Leaving]
czsr has joined #ruby
Rickmasta has joined #ruby
weemsledeux has joined #ruby
CloCkWeRX has quit [Ping timeout: 246 seconds]
sdothum has joined #ruby
rgtk has joined #ruby
damireh has joined #ruby
synthroid has joined #ruby
skweek has joined #ruby
icey has quit [Ping timeout: 240 seconds]
nocturn has quit [Quit: leaving]
icey has joined #ruby
scripore has joined #ruby
Hounddog_ has joined #ruby
krz has joined #ruby
Hounddog has quit [Ping timeout: 272 seconds]
rgtk has quit [Ping timeout: 260 seconds]
decoponio has joined #ruby
Hounddog_ has quit [Excess Flood]
nhhagen has joined #ruby
<norc>
shevy: I will make sure to hide a Perl inside your present when we do secret santa.
tkuchiki has joined #ruby
Hounddog has joined #ruby
tkuchiki has quit [Remote host closed the connection]
psy_ has joined #ruby
roxtrongo has quit [Remote host closed the connection]
scripore has quit [Client Quit]
tkuchiki has joined #ruby
psy_ has quit [Client Quit]
colegatron has quit [Quit: Leaving]
tkuchiki_ has joined #ruby
Hounddog has quit [Excess Flood]
skade has joined #ruby
Hounddog has joined #ruby
skade has quit [Client Quit]
tkuchiki has quit [Ping timeout: 246 seconds]
psy_ has joined #ruby
Hounddog has quit [Excess Flood]
Hounddog has joined #ruby
antgel has joined #ruby
ekinmur has joined #ruby
Kendos-Kenlen has quit [Quit: Konversation terminated!]
Hounddog has quit [Excess Flood]
Zai00 has joined #ruby
wprice has joined #ruby
CodingWolf has joined #ruby
<adaedra>
apeiros: that's it you set $?!?!?!?!??!?!?!??!? to true.
jdawgaz has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
Hounddog has joined #ruby
bMalum has quit [Quit: bMalum]
gusTester has joined #ruby
gusTester has left #ruby [#ruby]
Rollabunna has quit [Quit: Leaving...]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
grepwood has quit [Quit: Leaving]
ekinmur has joined #ruby
Hounddog has quit [Ping timeout: 272 seconds]
skade has joined #ruby
Hounddog has joined #ruby
araujo has quit [Ping timeout: 252 seconds]
Emmanuel_Chanel_ is now known as Emmanuel_Chanel
dlitvak_ has joined #ruby
dlitvak_ has quit [Read error: Connection reset by peer]
Hounddog has quit [Excess Flood]
karapetyan has quit [Remote host closed the connection]
dlitvak_ has joined #ruby
Hounddog has joined #ruby
dtordable has quit [Remote host closed the connection]
anisha_ has joined #ruby
<blubjr>
how do i take array difference comparing with ==
dlitvak has quit [Ping timeout: 276 seconds]
clonesig has quit [Ping timeout: 246 seconds]
skade has quit [Quit: Computer has gone to sleep.]
Hounddog has quit [Ping timeout: 240 seconds]
dtordable has joined #ruby
shredding has joined #ruby
<ytti>
blubjr, elaborate?
platzhirsch has quit [Ping timeout: 240 seconds]
braincrash has quit [Ping timeout: 240 seconds]
Axy has joined #ruby
<ytti>
blubjr, ary1 == ary2 compares if they are equal
Mia has quit [Ping timeout: 276 seconds]
Rennex has quit [Ping timeout: 264 seconds]
<blubjr>
arr1 - arr2 removes elements that are eql, i want to remove elements that are ==
braincrash has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
lubarch has joined #ruby
dorei has joined #ruby
dlitvak_ has quit [Read error: Connection reset by peer]
lubarch has quit [Client Quit]
dlitvak has joined #ruby
mutuma has joined #ruby
mutuma has quit [Client Quit]
atomical has joined #ruby
Hounddog has joined #ruby
AimlessRAven has joined #ruby
<AimlessRAven>
hi guys, i have 1 rails question
<AimlessRAven>
ok i add devise gem in my prroject
sankaber has joined #ruby
<AimlessRAven>
evrything is fine, but .. how can i geet current_user.registration_date
<havenwood>
AimlessRaven: The #RubyOnRails channel is the best place for Rails questions.
Hounddog has quit [Excess Flood]
<AimlessRAven>
but i cant write there.. i dont know why
Hounddog has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
?rails
<ruboto>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<havenwood>
AimlessRaven: /msg NickServ HELP
<AimlessRAven>
there too
lubarch has joined #ruby
<AimlessRAven>
ookey
AimlessRAven has quit [Client Quit]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pdoherty has quit [Ping timeout: 265 seconds]
cwong_on_irc has joined #ruby
atomical has quit [Ping timeout: 255 seconds]
marsjaninzmarsa has quit [Quit: ZNC 1.7.x-git-438-e879203 - http://znc.in]
Hounddog has quit [Ping timeout: 246 seconds]
Hounddog has joined #ruby
lubarch has quit [Quit: Lost terminal]
stamina has quit [Quit: WeeChat 1.3]
lubarch has joined #ruby
platzhirsch has joined #ruby
lubarch has quit [Client Quit]
gusTester has joined #ruby
skade has joined #ruby
Hounddog has quit [Excess Flood]
Hounddog has joined #ruby
s00pcan_ is now known as s00pcan
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dmitch has joined #ruby
_stu_ has joined #ruby
dlitvak has quit [Ping timeout: 255 seconds]
mattwildig has joined #ruby
ekinmur has joined #ruby
rodfersou is now known as rodfersou|lunch
tulak has joined #ruby
dlitvak has joined #ruby
cdg has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
gregf has joined #ruby
Melpaws has quit [Ping timeout: 260 seconds]
daivyk has joined #ruby
alien__ has joined #ruby
wilsonc91 has joined #ruby
B1n4r10 has joined #ruby
yalue has quit [Quit: return 0;]
yalue has joined #ruby
griffindy has joined #ruby
sgambino has joined #ruby
atomical has joined #ruby
mary5030 has joined #ruby
grill has joined #ruby
alien__ has left #ruby [#ruby]
roxtrongo has joined #ruby
ESpiney has joined #ruby
nettoweb has joined #ruby
bodgix has joined #ruby
dlitvak_ has joined #ruby
kp666 has quit [Remote host closed the connection]
howdoico1 has joined #ruby
dlitvak has quit [Read error: Connection reset by peer]
<bodgix>
Hi. Is it a good practice to trap ctrl+c in the main thread and signal all threads to stop and join them before exiting from the main thread? I'm not really interested in any exception if any were thrown. Can I just exit the main thread?
dlitvak_ is now known as dlitvak
benlovell has joined #ruby
tmtwd has joined #ruby
roxtrongo has quit [Ping timeout: 240 seconds]
Jardayn has joined #ruby
blaxter has quit [Quit: foo]
marsjaninzmarsa has joined #ruby
<bob_f>
bodgix: You should always end threads cleanly.
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
kobain has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
howdoico1 has quit [Ping timeout: 250 seconds]
shtirlic has quit [Ping timeout: 244 seconds]
TPBallbag has quit [Remote host closed the connection]
B1n4r10 has quit [Quit: leaving]
maikowblue has joined #ruby
linc01n has quit [Ping timeout: 240 seconds]
gambl0re has quit [Ping timeout: 264 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
malconis has joined #ruby
TPBallbag has joined #ruby
TPBallbag has quit [Remote host closed the connection]
TPBallbag has joined #ruby
linc01n has joined #ruby
Emmanuel_Chanel has joined #ruby
leafybasil has joined #ruby
sanjayu has quit [Ping timeout: 240 seconds]
leafybas_ has quit [Read error: Connection reset by peer]
avril14th_ has quit [Read error: Connection reset by peer]
clonesig has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gusTester has quit [Quit: Leaving.]
shinenelson has quit [Quit: Connection closed for inactivity]
gusTester has joined #ruby
gusTester has left #ruby [#ruby]
cwong_on_irc has quit [Quit: Leaving.]
arup_r has joined #ruby
dhjondoh has quit [Remote host closed the connection]
<bodgix>
thanks bob_f that's probably the safe rule of thumb… I was just wandering if I know exactly what they're doing, are there any bad consequences of just exiting the main thread. It's not like I'm going to leave any zombie processes or sth…
<bob_f>
bodgix: No worse than hard-killing any other process, but if you design your application so that you don't cleanly close threads, at some point you're almost definitely going to want to cleanly close them, and then your architecture might need a major overhaul.
<bob_f>
bodgix: When you know stuff is "generally a good idea" it's usually going to bite you in the ass later if you take the easy route. :)
antoniobeyah has joined #ruby
<bodgix>
yeah fair enough :)
anisha_ has quit [Quit: Leaving]
Xeago has quit [Remote host closed the connection]
<bodgix>
but then that would mean that every well written multi threaded program in ruby would have to trap SIGTERM … I'm just wondering if that's the case…
<bodgix>
sorry SIGINT
quazimodo has quit [Ping timeout: 260 seconds]
gusTester has joined #ruby
clonesig has quit [Ping timeout: 240 seconds]
<jhass>
well, both actually
bluOxigen has left #ruby [#ruby]
<bob_f>
And not just ruby. :)
nettoweb has quit [Ping timeout: 244 seconds]
darkxploit has quit [Ping timeout: 260 seconds]
<bodgix>
:) cool. Good to know
Xeago has quit [Remote host closed the connection]
<jhass>
I guess if you want to be throughout you should trap SIGQUIT too
shtirlic has joined #ruby
duckpupp1 has quit [Quit: WeeChat 1.3]
TomyWork has quit [Ping timeout: 260 seconds]
anisha has quit [Ping timeout: 276 seconds]
<jhass>
but on what kind of cleanup to do there is debatable
exadeci has quit [Quit: Connection closed for inactivity]
TomyWork has joined #ruby
platzhirsch1 has joined #ruby
Xeago has joined #ruby
platzhirsch has quit [Ping timeout: 260 seconds]
dfinninger has joined #ruby
antgel has quit [Ping timeout: 240 seconds]
whippythellama has joined #ruby
skweek has joined #ruby
TomPeed has joined #ruby
tildes has quit [Remote host closed the connection]
antoniobeyah has quit [Quit: antoniobeyah]
vdamewood has quit [Quit: Life beckons.]
polishdub has joined #ruby
_blizzy_ has quit [Quit: Leaving]
urbanmonk has joined #ruby
roxtrongo has joined #ruby
yoongkang has quit [Remote host closed the connection]
greg has joined #ruby
AlexRussia has joined #ruby
<greg>
e
<adaedra>
f
IrishGringo has joined #ruby
TPBallbag has quit [Read error: Connection reset by peer]
<greg>
g
<jhass>
f
flori_ has joined #ruby
grill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<greg>
hi i have learned ruby from eleqouent ruby book now want to contribute some open-source project any easyone for nerds
dopie has joined #ruby
mattwildig has quit []
<greg>
?
<suchness>
greg: That's a weird question.
atomical_ has joined #ruby
<suchness>
are you experienced or do you just want to play around with something already built?
<greg>
why?
arup_r has quit [Remote host closed the connection]
<suchness>
Seems like "i just read my first ruby book" and "let's hack some open source projects" is a weird leap.
<suchness>
Ah
<greg>
waana to do more in short time:)
TPBallbag has joined #ruby
atomical has quit [Ping timeout: 255 seconds]
<suchness>
greg: The link jhass posted looks interesting
<greg>
m looking
rippa has joined #ruby
nateberkopec has joined #ruby
grill has joined #ruby
<greg>
there are plenty of languges there
karapetyan has joined #ruby
<jhass>
just pick ruby projects
skade has quit [Quit: Computer has gone to sleep.]
ta has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
<greg>
is jruby also comes under ruby as far my knowledge ruby is ruby implementation on java platform
Xeago has quit [Remote host closed the connection]
platzhirsch1 has left #ruby [#ruby]
<jhass>
true, but doesn't it reimplement a fair amount of stdlib in Ruby?
<jhass>
or is it using rubysl-* stuff too by now?
tmtwd has quit [Ping timeout: 240 seconds]
kimegede has quit [Quit: Leaving...]
nettoweb has joined #ruby
<greg>
ok
TomyWork has quit [Ping timeout: 260 seconds]
<greg>
on choosing i got many option like homebrew, rails,compass which one to choose?
<greg>
do i need to look every project one by one.?
skade has joined #ruby
newdan has joined #ruby
emilkarl has quit [Quit: emilkarl]
rgtk has joined #ruby
abucha has joined #ruby
Xeago has joined #ruby
nhhagen has quit [Remote host closed the connection]
dmitch has joined #ruby
Axy has quit [Read error: Connection reset by peer]
nateberkopec has quit [Quit: Leaving...]
RegulationD has joined #ruby
solenoids has quit [Ping timeout: 272 seconds]
emilkarl has joined #ruby
<greg>
jhass: ?
RegulationD has quit [Remote host closed the connection]
IrishGringo has quit [Ping timeout: 240 seconds]
jhn has joined #ruby
platzhirsch has joined #ruby
<greg>
?
rgtk has quit [Ping timeout: 260 seconds]
Mia has joined #ruby
Mia has joined #ruby
gusTester has left #ruby [#ruby]
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
desmondh_ has quit [Ping timeout: 240 seconds]
howdoico1 has joined #ruby
desmondhume has joined #ruby
<DylanJ>
hi guys. is it possible to (in a project using active support) instantiate an instance of Date without all of active_supports additions? Essentially: is it possible to load a vanilla core ruby class without monkey patches?
speakingcode has joined #ruby
karapetyan has quit [Remote host closed the connection]
Muz_ is now known as Muz
pandaant has joined #ruby
TPBallbag has quit [Read error: Connection reset by peer]
johnzorn has quit [Read error: No route to host]
lipoqil has joined #ruby
wilsonc91 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shinnya has joined #ruby
flori_ has quit [Quit: leaving]
flori_ has joined #ruby
<newdan>
DylanJ: AFAIK monkey patches are global in scope. New Ruby feature Refinements is supposed to allow it to be localized, but I haven't looked into that myself
<jhass>
greg: you should pick something that you find interesting
<jhass>
DylanJ: so, no, not if you load all of active_support or want to use it with the patches elsewhere
<greg>
i have seen three project till now everyone seems to be equal
<greg>
homebrew,jruby,vagrant
krak3n has joined #ruby
czsr has quit [Quit: Leaving]
<DylanJ>
newdan, jhass. bummer. as i thought. thanks though.
Pupp3tm4st3r has joined #ruby
solenoids has joined #ruby
colli5ion has joined #ruby
TPBallbag has joined #ruby
yqt has joined #ruby
<adaedra>
yorickpeterse: on oga, your doc for migration indicates css selectors are not available yet, but your README state otherwise, is this normal?
howdoico1 has quit [Ping timeout: 250 seconds]
codecop has joined #ruby
dfinninger has quit [Remote host closed the connection]
desmondhume has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
freerobby1 has joined #ruby
desmondhume has joined #ruby
wilsonc91 has joined #ruby
treehug88 has joined #ruby
JuanDaugherty has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<yorickpeterse>
uh, maybe I forgot to update that
arup_r has joined #ruby
<yorickpeterse>
Ah yes, didn't update it
<yorickpeterse>
sec
Xeago has quit [Remote host closed the connection]
arup_r is now known as Guest78271
lukaszes has joined #ruby
karapetyan has joined #ruby
lxsameer_ has quit [Quit: Leaving]
redondos_ has quit [Changing host]
redondos_ has joined #ruby
redondos_ is now known as redondos
hoov has joined #ruby
norc has quit [Ping timeout: 246 seconds]
<yorickpeterse>
done
<adaedra>
I was trying to save someone from nokogiri!
<yorickpeterse>
oh hm, forgot some other bits
skweek has quit [Ping timeout: 240 seconds]
desmondhume has quit [Read error: Connection reset by peer]
<yorickpeterse>
well clearly the solution here is to not write docs
<yorickpeterse>
then you also don't have to update them
<adaedra>
:D
<adaedra>
same with tests: they won't fail if they are not written!
desmondhume has joined #ruby
rodfersou|lunch is now known as rodfersou
<yorickpeterse>
exactly
<yorickpeterse>
ok now it should be fixed
atomical has joined #ruby
abucha has quit [Remote host closed the connection]
TPBallbag has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
TPBallbag has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
tildes has joined #ruby
Fire-Dragon-DoL has joined #ruby
psy_ has quit [Ping timeout: 250 seconds]
atomical_ has quit [Ping timeout: 255 seconds]
tref has quit [Quit: tref]
psy_ has joined #ruby
uri has joined #ruby
blackoperat has joined #ruby
arthurix has joined #ruby
psy_ has quit [Max SendQ exceeded]
psy_ has joined #ruby
<adaedra>
thanks
howdoi has joined #ruby
arthurix_ has quit [Ping timeout: 244 seconds]
araujo has joined #ruby
araujo has joined #ruby
psy_ has quit [Max SendQ exceeded]
psy_ has joined #ruby
araujo has quit [Max SendQ exceeded]
araujo has joined #ruby
nofxx has joined #ruby
psy_ has quit [Max SendQ exceeded]
psy_ has joined #ruby
joonty has quit [Ping timeout: 260 seconds]
theRoUS has quit [Changing host]
theRoUS has joined #ruby
desmondh_ has joined #ruby
joonty has joined #ruby
desmondhume has quit [Ping timeout: 260 seconds]
psy_ has quit [Max SendQ exceeded]
psy_ has joined #ruby
babblebre has joined #ruby
psy_ has quit [Max SendQ exceeded]
psy_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
PlasmaStar has quit [Ping timeout: 264 seconds]
karapetyan has joined #ruby
johnzorn has joined #ruby
chriscoffee has joined #ruby
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
psy_ has quit [Max SendQ exceeded]
darkxploit has joined #ruby
emilkarl has quit [Quit: emilkarl]
nettoweb has quit [Max SendQ exceeded]
emilkarl has joined #ruby
riotjones_ has quit [Remote host closed the connection]
Fire-Dragon-DoL has quit [Remote host closed the connection]
nhhagen has joined #ruby
<greg>
keyword
<greg>
beginning of any ruvy book
<greg>
*ruby
Guest78271 has quit [Ping timeout: 240 seconds]
krajos has joined #ruby
adac has quit [Ping timeout: 250 seconds]
krajos has quit [Client Quit]
Pupp3tm4st3r has quit [Remote host closed the connection]
dotix has joined #ruby
dotix has joined #ruby
jhn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DoubleMalt has quit [Remote host closed the connection]
TPBallbag has quit [Read error: Connection reset by peer]
<havenwood>
vnk: It's the current object. In a class or module definition it's the class or module. In a method or block it's the object on which the method was called.
<vnk>
havenwood: basicly if we do something like this class Blaa, then define method def self.Nova puts "hahah" end
desmondhume has quit [Read error: Connection reset by peer]
<vnk>
havenwood: self will check out in which class that method is defined, in this case Blaa, right?
<havenwood>
vnk: In that context `self.nova` is the same as writing `Blaa.nova`. Try it in irb/pry.
desmondhume has joined #ruby
colli5io_ has joined #ruby
colli5io_ has quit [Max SendQ exceeded]
arup_r has joined #ruby
colli5io_ has joined #ruby
TPBallbag has joined #ruby
mg^ has quit [Quit: Leaving]
<greg>
i guess its mostly used in metaprogramming field
arup_r is now known as Guest61598
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra>
what, self?
<adaedra>
not only
gusTester has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
colli5ion has quit [Ping timeout: 276 seconds]
adac has joined #ruby
<vnk>
adaedra: from what I see its used mostly when we want to define class method?
gusTester has left #ruby [#ruby]
purplexed- has quit [Read error: Connection reset by peer]
synthroid has quit [Remote host closed the connection]
Fire-Dragon-DoL has joined #ruby
Fire-Dragon-DoL has quit [Client Quit]
<newdan>
vnk: Also if you want to call a setter method from another method. x = 3 introduces a new local x, self.x = 3 will call x=() method
minimalism has quit [Quit: leaving]
<newdan>
vnk: Also if you simply want to refer to the current object for any reason in your method. E.g. "return self"
howdoico1 has joined #ruby
dstarh has joined #ruby
chipotle has quit [Quit: cheerio]
emilkarl has quit [Quit: emilkarl]
<vnk>
newdan: yeah, cool.. tnx
xcesariox has joined #ruby
minimalism has joined #ruby
nhhagen has quit [Remote host closed the connection]
yardenbar has joined #ruby
desmondhume has quit [Read error: Connection reset by peer]
momomomomo has quit [Quit: momomomomo]
howdoico1 has quit [Ping timeout: 244 seconds]
cdg has quit [Remote host closed the connection]
SCHAAP137 has quit [Remote host closed the connection]
TPBallbag has quit [Read error: Connection reset by peer]
waxjar has joined #ruby
TPBallbag has joined #ruby
yoongkang has joined #ruby
ascarter has joined #ruby
vnk has quit [Read error: Connection reset by peer]
cdg has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
yardenbar has quit [Ping timeout: 250 seconds]
wilsonc91 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yoongkang has quit [Ping timeout: 264 seconds]
riotjone_ has joined #ruby
diegoaguilar has quit [Quit: Leaving]
nhhagen has joined #ruby
ghoti has quit [Remote host closed the connection]
Rutix has quit []
momomomomo has quit [Quit: momomomomo]
howdoico1 has joined #ruby
wildlander has joined #ruby
Guest61598 is now known as arup_r
arthurix has joined #ruby
failshell has joined #ruby
riotjone_ has quit [Ping timeout: 252 seconds]
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Changing host]
SCHAAP137 has joined #ruby
rakm has joined #ruby
leafybas_ has joined #ruby
synthroid has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
nhhagen has quit [Ping timeout: 264 seconds]
urbanmonk has quit [Ping timeout: 240 seconds]
arthurix_ has quit [Ping timeout: 276 seconds]
chriscoffee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rakm has quit [Client Quit]
krz has quit [Read error: Connection reset by peer]
araujo_ has joined #ruby
leafybasil has quit [Ping timeout: 240 seconds]
lurch_ has quit [Quit: lurch_]
araujo has quit [Ping timeout: 250 seconds]
[Butch] has joined #ruby
BSaboia has joined #ruby
crankharder has joined #ruby
shredding has quit [Ping timeout: 264 seconds]
momomomomo has joined #ruby
leafybas_ has quit [Remote host closed the connection]
towski_ has joined #ruby
hinbody has quit [Ping timeout: 240 seconds]
urbanmonk has joined #ruby
chipotle has joined #ruby
senayar has quit []
adac has quit [Ping timeout: 276 seconds]
joneshf-laptop_ has joined #ruby
joneshf-laptop has quit [Read error: Connection reset by peer]
failshell has quit [Remote host closed the connection]
pietr0 has joined #ruby
araujo_ has quit [Quit: Leaving]
joonty has quit [Quit: joonty]
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
waka has quit [Ping timeout: 255 seconds]
dmitch has joined #ruby
_stu_ has quit [Quit: _stu_]
Rutix has joined #ruby
Rutix has quit [Changing host]
Rutix has joined #ruby
hkumar has quit [Ping timeout: 240 seconds]
ohcibi_ has joined #ruby
ohcibi_ has quit [Remote host closed the connection]
ohcibi_ has joined #ruby
bMalum has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TPBallbag has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
_blizzy_ has joined #ruby
mistermocha has joined #ruby
dtordable has quit [Quit: Lost terminal]
dtordable has joined #ruby
tulak has quit [Remote host closed the connection]
waka has joined #ruby
tulak has joined #ruby
TPBallbag has joined #ruby
B1n4r10 has quit [Ping timeout: 240 seconds]
mistermocha has quit [Ping timeout: 252 seconds]
mistermocha has joined #ruby
johnzorn has quit [Read error: Connection reset by peer]
anisha has joined #ruby
minimalism has quit [Quit: leaving]
colli5ion has quit [Ping timeout: 276 seconds]
momomomomo has quit [Quit: momomomomo]
Rodya_ has quit [Remote host closed the connection]
rodfersou has quit [Quit: leaving]
akt has quit [Quit: Leaving]
rodfersou has joined #ruby
akem has joined #ruby
urbanmonk has quit [Read error: No route to host]
minimalism has joined #ruby
memnon34 has joined #ruby
<memnon34>
Hi. I'm pretty new to Ruby, and I'm trying to understand something. I wrote a method that checks the user input. I assign the input to a variable, but if the input is not valid, I prompt the user and call the method again. Testing out my method, I p out the variable, and here's what I don't understand. Instead of just seeing the user's valid, final input, I get a bunch of values. I'm trying to understand why that happens, but I'm having a hard time
<memnon34>
searching for it because I just keep getting articles that show peple how to use gets. Can someone please help enlighten me? Pastie attached. http://pastie.org/10563237
rakm has joined #ruby
hahuang65 has joined #ruby
<shevy>
choice = gets.chomp!.to_i
<shevy>
get rid of the ! and try again
<jhass>
memnon34: well, you print it each time, try adding `p caller` too
Zai00 has quit [Quit: Zai00]
icey has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby
icey has joined #ruby
minimalism has quit [Client Quit]
<shevy>
I'd also probably use 'case choice; when 1,2' there, where the ; would mean a newline
howdoico1 has quit [Ping timeout: 252 seconds]
Rodya_ has joined #ruby
joonty has joined #ruby
_stu_ has joined #ruby
<shevy>
and to make the output of "p choice" in the else clause of the case when menu
stan_ has quit [Ping timeout: 252 seconds]
<memnon34>
I'm still getting the same when I took off the '!'. P caller shows the name of the method. So @jhass, what the method is doing is p-ing choice each time it's called, and I'm only seeing all those p's when a correct input is made because that ends the loop?
gguggi has quit [Ping timeout: 276 seconds]
minimalism has joined #ruby
<memnon34>
And thanks for the help guys :) I appreciate the feedback.
memnon34 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tkuchiki has quit [Ping timeout: 272 seconds]
<jhass>
uh, bye I guess
TPBallbag has quit [Read error: Connection reset by peer]
howdoico1 has joined #ruby
<shevy>
lol
troyready has joined #ruby
TPBallbag has joined #ruby
B1n4r10 has joined #ruby
<shevy>
this is like "I need to use the toilet now!" and a moment later "Never mind bye!"
Peg-leg has quit [Quit: Leaving.]
djellemah has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Ping timeout: 276 seconds]
freerobby has quit [Read error: Connection reset by peer]
Fire-Dragon-DoL has joined #ruby
Ox0dea has joined #ruby
freerobby has joined #ruby
juddey has joined #ruby
<Ox0dea>
blubjr: Array#delete uses #==, but it only takes a single argument. :<
bjmllr has quit [Read error: Connection reset by peer]
waxjar has quit [Read error: Connection reset by peer]
err_ok has quit [Read error: Connection reset by peer]
<blubjr>
ya i rolled one using it
waxjar has joined #ruby
amirpro has quit [Ping timeout: 240 seconds]
<Ox0dea>
What'dja call it?
braderhart has quit [Ping timeout: 240 seconds]
err_ok has joined #ruby
symm- has joined #ruby
mrtomme has quit [Ping timeout: 260 seconds]
urbanmonk has joined #ruby
<blubjr>
array_difference
shinnya has quit [Ping timeout: 252 seconds]
<blubjr>
and it just takes a test parameter i dont know why the standard one doesn't
<Ox0dea>
"Test parameter"?
mrtomme has joined #ruby
govg has quit [Quit: leaving]
<Ox0dea>
Also, #sans, #less, and #minus are all better than #difference.
<Ox0dea>
blubjr: Array#- with a block would be #reject...
joonty has quit [Quit: joonty]
djanatyn1 has joined #ruby
matled- has joined #ruby
rakm_ has joined #ruby
Axy has joined #ruby
doodleha_ has joined #ruby
johnzorn has joined #ruby
Kharma has quit [Ping timeout: 265 seconds]
waxjar has quit [Ping timeout: 250 seconds]
yeticry has quit [Ping timeout: 260 seconds]
angiebadillo has quit [Ping timeout: 240 seconds]
scottstamp has quit [Ping timeout: 265 seconds]
<blubjr>
it uses reject..
rcs has quit [Ping timeout: 240 seconds]
<blubjr>
i missed a 'now' sorry
<blubjr>
whats wrong with difference
djanatyn has quit [Ping timeout: 265 seconds]
matled has quit [Ping timeout: 265 seconds]
matled- is now known as matled
Killerkeksdose_ has joined #ruby
braincrash has quit [Ping timeout: 265 seconds]
tvw has quit [Ping timeout: 265 seconds]
troulouliou_div2 has quit [Ping timeout: 265 seconds]
Killerkeksdose has quit [Ping timeout: 265 seconds]
BraddPitt has quit [Ping timeout: 265 seconds]
riotjone_ has joined #ruby
rakm has quit [Ping timeout: 265 seconds]
goodcodeguy has quit [Ping timeout: 265 seconds]
nettoweb has quit [Ping timeout: 265 seconds]
Mia has quit [Ping timeout: 265 seconds]
bytecrawler has quit [Ping timeout: 265 seconds]
amoeba has quit [Ping timeout: 265 seconds]
queequeg2 has quit [Ping timeout: 240 seconds]
rgtk has quit [Remote host closed the connection]
patrick has joined #ruby
nettoweb has joined #ruby
__main__ has quit [Ping timeout: 240 seconds]
patrick is now known as Guest13202
johnny56 has quit [Ping timeout: 244 seconds]
codecop has joined #ruby
<Ox0dea>
If I've understood you correctly, you wrote a method called #difference that does exactly what #reject does?
queequeg1 has joined #ruby
riotjone_ has quit [Ping timeout: 240 seconds]
aredridel is now known as ARia
ARia is now known as Aria
<blubjr>
no, i wrote array's - that takes a test parameter
<Ox0dea>
What is a test parameter? A predicate as a block?
<blubjr>
uh huh
djellemah has joined #ruby
<Ox0dea>
But that's exactly what #reject does.
err_ok has quit [Ping timeout: 276 seconds]
blackoperat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
johnny56 has joined #ruby
<blubjr>
incorrect
<Ox0dea>
Yeah, sorry, I see how you mean.
<Ox0dea>
Other argument's an Array and all that.
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea>
I'm pretty sure `BEGIN` is the only thing that can't be interpolated.
<jhass>
__END__ does not count I guess
Xeago has quit [Remote host closed the connection]
<Ox0dea>
I mean, it doesn't do "the right thing", but it's not syntactically invalid either.
gizmore has joined #ruby
<Ox0dea>
Is there no way to check for `__END__` other than `defined?(DATA)` and a wish?
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TeresaP has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
podman has quit [Quit: Connection closed for inactivity]
gr3yR0n1n has joined #ruby
leafybasil has quit [Ping timeout: 260 seconds]
<gr3yR0n1n>
hello all, is this the best place for ruby on rails discussions?
<jhass>
?rails
<ruboto>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
waxjar has joined #ruby
<TeresaP>
If I have a class with some public and some private methods and I want to randomly call one of the public methods, is there an efficient way to do it?
<gr3yR0n1n>
thank you
iateadonut has quit [Quit: Leaving.]
umgrosscol has joined #ruby
<eam>
Ox0dea: does it not do the right thing? END{} returns nil, yeah?
<Ox0dea>
They're functionally equivalent, but the latter is a little wasteful and often proves slightly less malleable.
RegulationD has quit [Remote host closed the connection]
Rodya_ has quit [Ping timeout: 260 seconds]
<Ox0dea>
Data > behavior.
<TeresaP>
I'll use public_send. It works great
<TeresaP>
Thanks so much
<jhass>
Ox0dea: let's try it this way: you use send to emulate a regular call right? Does a regular call allow you call a private method (disregarding implicit self for the moment)
<Ox0dea>
jhass: I do take your point, but you can't has muh freedumz.
<Ox0dea>
That we didn't get "safe send" until 1.9.3 speaks volumes about its having been an afterthought.
<mordocai>
Anyone using any business rules engines in production successfully? I see https://github.com/ulfurinn/wongi-engine but it is version 0.2.0 and seems like development is slow.
ibouvousaime has quit [Ping timeout: 255 seconds]
<mordocai>
I'm worried mainly about stability
last_staff has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
tref has joined #ruby
ibouvousaime has joined #ruby
minimalism has joined #ruby
amoeba has joined #ruby
bluOxigen has joined #ruby
asianMike has joined #ruby
asianMike has quit [Client Quit]
scottstamp has joined #ruby
asianMike has joined #ruby
BraddPitt has joined #ruby
anisha has quit [Ping timeout: 240 seconds]
Kharma has joined #ruby
bjmllr has joined #ruby
bMalum has quit [Quit: bMalum]
TPBallbag has joined #ruby
Xeago has joined #ruby
wilsonc91 has joined #ruby
dfinninger has quit [Remote host closed the connection]
lemur has quit [Remote host closed the connection]
riotjone_ has joined #ruby
slash_nick is now known as slash_quit
spider-mario has joined #ruby
karapetyan has joined #ruby
mwlang has joined #ruby
dfinninger has joined #ruby
stan has joined #ruby
juddey has joined #ruby
krak3n has joined #ruby
skweek has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jetpackjoe has joined #ruby
riotjone_ has quit [Ping timeout: 244 seconds]
jetpackjoe has quit [Max SendQ exceeded]
Pupp3tm4st3r has quit [Remote host closed the connection]
Pupp3tm4st3r has joined #ruby
opensource_ninja has quit [Ping timeout: 255 seconds]
krak3n has quit [Ping timeout: 265 seconds]
_blizzy_ has joined #ruby
moeabdol has joined #ruby
norc has joined #ruby
<norc>
Hi. I need to do a project that requires a simplistic GUI. Given my background, I immediately figured Qt would be a good approach. However, the business logic internally is probably much faster to write in Ruby (using some of the gems around).
lemur has joined #ruby
<norc>
That quickly brought up the idea of running embedded Ruby for the business logic, with Qt dealing with surroundings and events.
<norc>
Am I crazy?
cwong_on_irc has quit [Quit: Leaving.]
cwong_on_irc has joined #ruby
<norc>
(The Qt bindings for Ruby that are out there are so horribly outdated and not maintained unfortunately)
krak3n has joined #ruby
Zai00 has joined #ruby
musl has quit [Quit: WeeChat 1.1.1]
stannard has joined #ruby
dotix has quit [Ping timeout: 260 seconds]
jetpackjoe has joined #ruby
jetpackjoe has quit [Max SendQ exceeded]
jetpackjoe has joined #ruby
yeticry has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
dotix has joined #ruby
lukaszes has joined #ruby
<treehug88>
norc yes you are crazy but it could work. I'd look into using a restful api between the two
benlieb has joined #ruby
stannard_ has joined #ruby
stannard has quit [Read error: Connection reset by peer]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
symm-_ has joined #ruby
symm- has quit [Ping timeout: 260 seconds]
ibouvousaime has quit [Ping timeout: 252 seconds]
Xeago has quit [Read error: Connection reset by peer]
err_ok has joined #ruby
ibouvousaime has joined #ruby
<Papierkorb>
norc: I did C++/Qt for almost 4 years. You're crazy. Ruby isn't much fun to embed, and Qt isn't fun to access as library. In fact, afaik, there are no viable Qt bindings for Ruby right now.
<Papierkorb>
norc: If you want to do scripting, and it doesn't have to be ruby, and you really want scripting (C++/Qt can be quite concise afterall), take a look at Lua. Easy to embed, and quite fast with LuaJit
vnk has quit [Read error: Connection reset by peer]
dopie has quit [Ping timeout: 250 seconds]
<Papierkorb>
norc: If you like JS (pardon), you could try QML, but I wouldn't want to bet my stuff on it
<skade>
Papierkorb norc mruby is an option if scripting should be ruby
finisherr has joined #ruby
<norc>
It just seems that the only viable GUI toolkit that Ruby has decent bindings in is GTK
<Papierkorb>
skade: last tried it like 2 years ago. have things changed since then? I remember being able to embed Lua in a single day, without knowing Lua or anything about VMs, but ruby was a huge pain to do anything with
<norc>
Meh, well my goal here is to save time on every front.
<norc>
And don't get me started on green_shoes or fxruby.... :/
<Papierkorb>
fxruby? Is that JavaFX?
momomomomo has quit [Quit: momomomomo]
<Papierkorb>
Oh and before you think "Hey, just use jruby with the Qt java bindings" .. they're like 5 years old now, unmaintained. Sorry, but your toolkit is in another castle Oo
<norc>
Papierkorb: No. It's FOX in Ruby.
vnk has joined #ruby
Ox0dea has joined #ruby
<norc>
Meh, I really don't want to do amazon AWS stuff with XML handling, embedded sqlite and other things in C++.... :/
<TeresaP>
jhass Ox0dea question about that public_send syntax...
<Papierkorb>
never heard about fox
<norc>
That would really defeat the point of saving time.
<skade>
Papierkorb it's used in multiple projects nowadays. mruby is quite small and has a proper embedding API.
<skade>
quite a good contender to lua
<vnk>
http://pastie.org/10563506 file saved as omg.rb on desktop, I open terminal do cd Desktop then ruby omg.rb and type p1 = Person.new("John")
<vnk>
I get error bash: syntax error near unexpected token `('
<Ox0dea>
norc: mruby is a decent option, but Ruby itself is perfectly embeddable.
<Ox0dea>
It's heavy, though.
<TeresaP>
If I want to call a method where I set the parameter if the user hasn't set it, is there a way to use public_send without passing a parameter?
<norc>
skade: Well mruby at least seems to be actively maintained by matz, so that certainly speaks for it.
<Ox0dea>
TeresaP: `send(foo || :default)`
<jhass>
TeresaP: public_send(foo || :default)
<Shapeshifter>
Is there some sort of short-hand or null-coalescing operator to do something only if the callee is not nil? In my case, I want to do somecollection.find { false }.aProperty each ... and not crash when find returns nothing.
<norc>
jhass: Sometimes I forget that not every question here arises from Rails development.
joonty has joined #ruby
<havenwood>
Shapeshifter: With Ruby 2.3's release this Christmas there'll be a new safe navigation operator.
<nofxx>
Why is osx so slow? Rails app here 11s load oSX, 2s load linux. osx is i5 , linux i7 but that should be so far away...
<nofxx>
ruby from brew, same version all...
<norc>
nofxx: I have never experienced any such issues under OSX.
<Papierkorb>
norc: heh, we're doing cluster manamgent with ruby at the comp I work at. "Ruby makes the developers happy" (+ even outside webdev), 10/10.
<norc>
Ox0dea: Tomorrow I'll hunt for the implementation that makes instance and class variables work. Silly dispatch based on variable names - the thought really amused me.
<shevy>
oh god
mordocai has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
<Ox0dea>
norc: It's easy enough to enable decorators in Ruby, but I wanted to perfectly emulate Python's @foo syntax. It can't be done from Ruby, but I've been meaning to look into doing it from C. ^_^
<shevy>
I dread the day when &. will be available for ruboto
<Ox0dea>
Essentially, I need `@foo` to be a method call.
<Ox0dea>
I bet it's possible.
<norc>
Ox0dea: Oh that is actually one of the things that I wish we had in Ruby. :)
<jhass>
TeresaP: you reimplemented Array#sample, but nothing wrong with the public_send call
tref has joined #ruby
<vnk>
guys, can anyone help me with error I get when I try to run my ruby script? :P
angiebadillo has joined #ruby
jrhorn has joined #ruby
<TeresaP>
jhass orly
<norc>
vnk: That depends on the error you get. And the script.
symm-_ has quit [Ping timeout: 244 seconds]
<Ox0dea>
norc: In short, Module#prepend is pretty nifty.
<vnk>
norc: http://pastie.org/10563506 file saved as omg.rb on desktop, I open terminal do cd Desktop then ruby omg.rb and type p1 = Person.new("John")
<vnk>
norc: I get error bash: syntax error near unexpected token `('
tiwillia has left #ruby ["WeeChat 1.2"]
yoongkang has quit [Ping timeout: 272 seconds]
<Ox0dea>
vnk: You're conflating Ruby with IRB.
<norc>
Ox0dea: That looks pretty nifty.
<TeresaP>
jhass whoops.
baweaver has quit [Disconnected by services]
lemur is now known as baweaver
<havenwood>
vnk: Bash is bad at running Ruby code.
<Ox0dea>
vnk: `ruby omg.rg` just runs your script and then exits, so you're typing `p1 = ...` at your shell, not into a Ruby interpreter.
<Ox0dea>
vnk: Say `irb -r ./omg` instead.
<Ox0dea>
And then embrace Bundler.
lemur has joined #ruby
<TeresaP>
brb lunch
<havenwood>
gem i -g
Xeago has joined #ruby
cdg has quit [Remote host closed the connection]
<vnk>
Ox0dea: working.. thanks a lot
<Ox0dea>
vnk: Sure thing.
Rodya_ has quit [Ping timeout: 240 seconds]
baweaver has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
<Papierkorb>
Can someone recommend a XMPP/Jabber client-side library for ruby for writing a bot?
mikecmpbll has joined #ruby
DoubleMalt has joined #ruby
_blizzy_ has joined #ruby
<vnk>
when its smart to define method in ruby like private one?
Xeago has quit [Remote host closed the connection]
cgfbee has joined #ruby
<norc>
shevy: I once spend like a week debugging a rare race condition that ended corrupting my entire stack each time. Since then I embrace languages that don't let me do unsafe things.
TheNet has joined #ruby
<havenwood>
Speaking of mruby, the third release (1.2.0) is out today!
<havenwood>
(And it has no GIL, since no pesky threads.)
diegoaguilar has quit [Ping timeout: 246 seconds]
<Ox0dea>
norc: I guess you've not seen any of the madness I get up to with Fiddle. :P
tref has quit [Quit: tref]
<djellemah>
I'm working with collections of size ±1000 items. Before I go write benchmarks, any feel on the fastest way to build a Hash? Hash[*ary], ary.to_h, ary.each_with_object(Hash.new){...} ?
cjbottaro has joined #ruby
<shevy>
norc you use java?
<Ox0dea>
djellemah: I'd guess #to_h.
<norc>
Ox0dea: Right now I think I may have found a bug.
rodfersou has quit [Quit: leaving]
<Ox0dea>
norc: I believe it.
<shevy>
nobu does not
riotjone_ has quit [Ping timeout: 265 seconds]
bb010g has joined #ruby
maikowblue has quit [Ping timeout: 276 seconds]
tref has joined #ruby
<havenwood>
Ruby hasn't had a GIL since 1.8. :P
<havenwood>
pedantry!
TomPeed has joined #ruby
<havenwood>
shevy: GVL
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<Ox0dea>
Pronounced "gavel" because matz will be the judge of how much parallelism you really need.
simplyia_ has quit [Quit: Cya nerds!]
prestorium has quit [Quit: Leaving]
simplyianm has joined #ruby
Amnez777 has quit [Ping timeout: 260 seconds]
sdothum has joined #ruby
fedexo has quit [Ping timeout: 246 seconds]
momomomomo_ has joined #ruby
momomomomo has quit [Ping timeout: 272 seconds]
momomomomo_ is now known as momomomomo
wilsonc91 has joined #ruby
Amnez777 has joined #ruby
juddey has quit [Ping timeout: 240 seconds]
m8 has joined #ruby
Amnez777 has quit [Changing host]
Amnez777 has joined #ruby
ascarter has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<norc>
>> puts Struct.new(:v) { def m; v = v; end }.new(1).m.nil? # Ox0dea
<grill>
The method generates config information via %{ somestuff }. How can I omit params if their values are not speficified (e.g. IdentityFile) http://pastebin.com/NdvVCKen
<ruboto>
pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<norc>
Now that you kinda mention it.
<grill>
ruboto i do not like you.
_blizzy_ has quit [Quit: Leaving]
<Ox0dea>
norc: I'm not sure you actually want `v = v` to be `v = v()`.
<havenwood>
?ruboto grill
<ruboto>
grill, I'm the channel bot, linker of the rules, adept of the facts, wielder of the banhammer.
<shevy>
lol
<grill>
havenwood are you trying to tell me that ruboto is some kind of robot? i don't think so.
dstarh has quit [Read error: Connection reset by peer]
<shevy>
havenwood what is a GVL? global VM lock?
vnk has quit [Read error: Connection reset by peer]
<shevy>
grill come on man ...
<Ox0dea>
What is a rhetorical question?
vnk has joined #ruby
troulouliou_dev has joined #ruby
<norc>
Ox0dea: Yeah nevermind. I was just thinking I had instance variables there for a few minutes...
<Ox0dea>
norc: You do.
<grill>
yes duh.
<norc>
Ox0dea: Well, it is accessor methods.
<grill>
The method generates config information via %{ somestuff }. How can I omit params if their values are not speficified (e.g. IdentityFile) http://pastebin.com/NdvVCKen
vnk has quit [Read error: Connection reset by peer]
<norc>
Ox0dea: Nothing I suppose. I just fell into the trap of the parsers cache deciding between VCALL and LVAR - but it was so dark I didnt know where I was. :(
ascarter has quit [Client Quit]
<Ox0dea>
norc: Well, we're all very happy you managed to find the switch.
<norc>
Is there some "Beware the dragons" sign in the official Ruby docs about this?
<norc>
I mean I never came into the temptation of knowingly using a local with the same name as a method.
TheNet has quit [Remote host closed the connection]
centrx has joined #ruby
<Ox0dea>
> In Ruby local variable names and method names are nearly identical. If you have not assigned to one of these ambiguous names ruby will assume you wish to call a method. Once you have assigned to the name ruby will assume you wish to reference a local variable.
<Ox0dea>
norc: From doc/syntax/assignment.rdoc.
<norc>
Ah. Fair enough, I deserve to be smiled at.
<norc>
And since Im still awake asking the silly questions.
yfeldblum has quit [Remote host closed the connection]
adac has joined #ruby
<norc>
>> F = 1; F = 2
<ruboto>
norc # => /tmp/execpad-598c58ee7eb9/source-598c58ee7eb9:2: warning: already initialized constant F ...check link for more (https://eval.in/470683)
<norc>
Why does Ruby let me change constants.
dede__ has quit [Quit: Connection closed for inactivity]
<Ox0dea>
Because it loves you.
dotix has quit [Ping timeout: 246 seconds]
<norc>
I mean it actually made me wonder whether there was a way to unfreeze objects too while we are at it..
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kies has joined #ruby
jrhorn has quit [Ping timeout: 246 seconds]
ascarter has joined #ruby
ascarter_ has joined #ruby
<grill>
have i formatted these flags incorrectly? my code is not showing the config file value when i try to print it http://paste.ubuntu.com/13318145/
ascarter has quit [Client Quit]
<grill>
if I set it to something in the initializer, it doesn't change even though I pass something different in through the commandline
TPBallbag has quit [Read error: Connection reset by peer]
<grill>
what's going on here
Oli has joined #ruby
TPBallbag has joined #ruby
Oli is now known as Guest79410
ascarter has joined #ruby
chipotle has joined #ruby
waxjar has quit [Quit: Connection closed for inactivity]
TheNet has joined #ruby
momomomomo has joined #ruby
icey has quit [Read error: Connection reset by peer]
icey has joined #ruby
<adaedra>
may we have the full code? It seems you're inside a class, since you use @var
TheNet has quit [Remote host closed the connection]
maddmaxx has joined #ruby
ohcibi has quit [Remote host closed the connection]
<adaedra>
grill: And I guess that it's the value printed l37 that makes you say it's not parsed correctly
<adaedra>
?
<grill>
adaedra that and it raises an exception
benlovell has joined #ruby
<grill>
a missingargument exception
<grill>
for all three
<adaedra>
Well, that's normal
howdoico1 has quit [Ping timeout: 252 seconds]
<grill>
in what context?
<grill>
i am supplying arguments
<adaedra>
The code in this do block (beginning l.18) is executed before the actual parsing, I would say
ss_much has joined #ruby
<grill>
that's extremely annoying
<slash_nick>
it's a flower garden
baweaver has quit [Remote host closed the connection]
<adaedra>
You have to check for your arguments after the call to parse!
slash_nick is now known as slash_quit
TeresaP has quit [Ping timeout: 246 seconds]
<adaedra>
goodbye, slash_nick
* slash_quit
hangs head very low
leafybasil has joined #ruby
<Melpaws>
when i'm using the Thor gem, its not taking the :aliases option . Examples : :aliases => "-f" ; full code :
<Melpaws>
class_option :find , :aliases => "-f" , :desc => "find a comic in collection . Use quotes if longer than one word"
<Melpaws>
desc "find" , "find a comic in our collection"
<Melpaws>
any thing i'm missing?
joonty has quit [Quit: joonty]
benlovell has quit [Ping timeout: 240 seconds]
<norc>
Ox0dea: Crazy presentation. :)
<norc>
Was that you?
tgandrews has quit [Remote host closed the connection]
Guest26361 has quit [Quit: 73]
<Ox0dea>
Am I Charlie Somerville?
gmci has joined #ruby
tref has quit [Quit: tref]
<adaedra>
Tu es Charlie ?
gmci is now known as Guest79906
leafybasil has quit [Remote host closed the connection]
<norc>
I wouldn't know.
<slash_quit>
tu eres
<shevy>
Dir.instance_methods(false).sort returns all instance methods of class Dir but how do I get all class methods of class Dir such as Dir.chdir()?
joonty has joined #ruby
joonty has quit [Client Quit]
<Ox0dea>
norc: charliesome is here now and then.
<norc>
Ah cool. :)
matcz has quit [Ping timeout: 250 seconds]
<Ox0dea>
He's the fella what gave us eval.in.
freerobby has quit [Read error: Connection reset by peer]
freerobby1 has joined #ruby
B1n4r10 has quit [Ping timeout: 240 seconds]
<adaedra>
Praise him.
<Ox0dea>
>> Dir.methods(false).sort # shevy
<ruboto>
Ox0dea # => [:[], :chdir, :chroot, :delete, :entries, :exist?, :exists?, :foreach, :getwd, :glob, :home, :mkdir, ...check link for more (https://eval.in/470690)
<slash_quit>
Melpaws: it'd be best to put code examples in a gist...the whole class would be nice
karapetyan has joined #ruby
<Ox0dea>
Somebody needs to get a better feel for Ruby's object model. :P
<norc>
I wonder whether the frozencore was backported
<Ox0dea>
How do you mean?
matcz has joined #ruby
<norc>
Ox0dea: You said it was added in 2.2
<shevy>
ah yes, thanks
<slash_quit>
Melpaws: i know it's just two lines, but it's really annoying to chase those two lines up the screen
<Ox0dea>
norc: No, it was made impossible to play with in 2.2. :<
<shevy>
is there some trivial way to find out if a string is part of ruby core/stdlib or not? (or just core)... for instance, user can give "Dir" as input, which would be included like http://ruby-doc.org/core-2.2.3/Dir.html, but also "Dogs" which would not be included
riotjone_ has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
B1n4r10 has quit [Ping timeout: 276 seconds]
atomical has joined #ruby
dmolina has joined #ruby
<norc>
shevy: Yes.
dmolina has quit [Read error: Connection reset by peer]
dmolina has joined #ruby
TPBallbag has quit [Remote host closed the connection]
<Ox0dea>
I vaguely recall seeing that he'd made some other modification which made it even harder to tinker with, but that might be a mismemory.
SumoBoy has quit []
axsuul has joined #ruby
riotjone_ has quit [Ping timeout: 240 seconds]
<norc>
Fair enough. Well, I think for now Ill stick and understand the parser and compiler better, before I move onto the object model.
<Ox0dea>
I can't say I entirely understand why FrozenCore is even a thing.
Guest13202 has quit [Ping timeout: 240 seconds]
cornerma1 has joined #ruby
ibloodlust has joined #ruby
<norc>
Im sure there is a japanese discussion about it somewhere on the ML.
_blizzy_ has joined #ruby
<ibloodlust>
hello
<Ox0dea>
Doubtless, but why make Hash literals a secret method invocation and not let us bend it as we might? :/
render___ has quit [Ping timeout: 264 seconds]
<norc>
Ox0dea: Honestly, with the sheer amount of monkey patching people can do already, that really does not limit the potential damage an idiot can do in any meaningful way.
tulak_ has joined #ruby
<ibloodlust>
are there destructors in ruby?
yoongkang has joined #ruby
grill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ledestin has joined #ruby
dmolina has quit [Quit: Leaving.]
<eam>
iBloodLust: there are finalizers - because ruby is GC there's no deterministic point at which objects are ever destroyed (if ever)
diegoaguilar has quit [Ping timeout: 240 seconds]
<norc>
iBloodLust: Yes in the sense that you can define a callback that gets called when the garbage collector destroys it
[Butch]_ has joined #ruby
<norc>
like eam just said.
<eam>
destructor usually refers to a method invoked at a deterministic free() point
cornerman has quit [Ping timeout: 264 seconds]
karapetyan has quit [Read error: Connection reset by peer]
cornerma1 is now known as cornerman
doodleha_ has quit [Remote host closed the connection]
baweaver has joined #ruby
<eam>
iBloodLust: ruby hacks around the fallout from this by using block form and doing cleanup after a yield
asianMike has quit [Remote host closed the connection]
stannard has quit [Remote host closed the connection]
centrx has quit [Quit: If you meet the Buddha on the road, kill him.]
arthurix_ has quit [Ping timeout: 240 seconds]
bubbys has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
arthurix has joined #ruby
diegoaguilar has joined #ruby
jetpackjoe has joined #ruby
<norc>
That's close enough.
<norc>
Heading to bed though, gnite.
jetpackjoe has quit [Max SendQ exceeded]
arooni has joined #ruby
unreal_ has joined #ruby
arthurix_ has joined #ruby
simplyianm has joined #ruby
Azure has joined #ruby
<eam>
I needed that under jruby
hkumar has quit [Quit: Leaving]
arthurix has quit [Ping timeout: 260 seconds]
leafybasil has joined #ruby
lxsameer has quit [Quit: Leaving]
unreal has quit [Ping timeout: 276 seconds]
karapetyan has quit [Read error: Connection reset by peer]
norc has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
Apocalypse has quit [Quit: Input/Output Error]
karapetyan has joined #ruby
scripore has joined #ruby
adac has quit [Ping timeout: 240 seconds]
karapety_ has joined #ruby
wildlander has quit [Quit: Saliendo]
troulouliou_dev has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
Apocalypse has joined #ruby
Apocalypse has quit [Changing host]
Apocalypse has joined #ruby
uri_ has joined #ruby
axsuul_ has joined #ruby
pdoherty has joined #ruby
Xeago has joined #ruby
quazimodo has joined #ruby
Apocalypse has quit [Client Quit]
axsuul has quit [Ping timeout: 264 seconds]
blue_deref has joined #ruby
patrick2 has joined #ruby
TheRokh has joined #ruby
Apocalypse has joined #ruby
Apocalypse has joined #ruby
exadeci has joined #ruby
TheNet has joined #ruby
moeabdol has quit [Ping timeout: 260 seconds]
last_staff has quit [Quit: last_staff]
Authenticator has quit [Quit: leaving]
karapety_ has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
rgtk has quit [Remote host closed the connection]
malconis has quit [Ping timeout: 240 seconds]
purplexed- has joined #ruby
purplexed- has joined #ruby
TheNet has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
postmodern has joined #ruby
decoponio has quit [Quit: Leaving...]
Fire-Dragon-DoL has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arthurix has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
cdg has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
cdg has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arthurix_ has quit [Ping timeout: 250 seconds]
elaptics is now known as elaptics`away
rgtk has joined #ruby
synthroid has quit []
mistermo_ has joined #ruby
kies has quit [Ping timeout: 272 seconds]
troulouliou_dev has quit [Quit: Leaving]
CloCkWeRX has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
dotix has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
banister has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
dopie has quit [Quit: This computer has gone to sleep]
jessemcgilallen has joined #ruby
ESpiney has quit [Quit: Leaving]
Mia has quit [Read error: Connection reset by peer]
momomomomo has quit [Ping timeout: 264 seconds]
momomomomo has joined #ruby
dotix has quit [Ping timeout: 255 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
benegget_ has joined #ruby
wldcordeiro has quit [Quit: WeeChat 1.3]
TPBallbag has quit [Remote host closed the connection]
DoubleMalt has quit [Remote host closed the connection]
riotjone_ has joined #ruby
beneggett has quit [Ping timeout: 250 seconds]
Zai00 has quit [Quit: Zai00]
blueOxigen has joined #ruby
blackmesa has joined #ruby
karapety_ has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
bluOxigen has quit [Ping timeout: 276 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
symm- has quit [Ping timeout: 276 seconds]
wldcordeiro has joined #ruby
Mia has quit [Read error: Connection reset by peer]
flori_ is now known as flori
riotjone_ has quit [Ping timeout: 272 seconds]
lkba has joined #ruby
tkuchiki has joined #ruby
radgeRayden has joined #ruby
karapetyan has quit [Ping timeout: 252 seconds]
moei has quit [Quit: Leaving...]
mg^ has joined #ruby
k3asd` has quit [Ping timeout: 260 seconds]
CloCkWeRX has quit [Ping timeout: 272 seconds]
malconis has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
bluOxigen has joined #ruby
ibloodlust has quit [Quit: Page closed]
abucha has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
blueOxigen has quit [Ping timeout: 252 seconds]
zeroDivisible has joined #ruby
mistermo_ has quit [Remote host closed the connection]
symm- has joined #ruby
Jackneill has quit [Remote host closed the connection]
xet7 has quit [Quit: Leaving]
Rickmasta has joined #ruby
tref has quit [Quit: tref]
maddmaxx has quit []
roxtrongo has quit [Remote host closed the connection]
[Butch] has quit [Quit: I'm out . . .]
polishdub has quit [Quit: Leaving]
dlitvak has joined #ruby
CloCkWeRX has joined #ruby
dlitvak has quit [Remote host closed the connection]
renderf__ has joined #ruby
malconis has quit [Ping timeout: 272 seconds]
Meliodas has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
skade has quit [Quit: Computer has gone to sleep.]
zeroDivisible has joined #ruby
CloCkWeRX has left #ruby [#ruby]
Daneel has joined #ruby
<Daneel>
hi
roxtrongo has joined #ruby
<Daneel>
i want to use the Method: Facter::Core::Execution#execute
<Daneel>
but how to execute a command with varable ?
m8 has quit [Quit: Sto andando via]
zeroDivisible has quit [Client Quit]
<Daneel>
i tester #{var} but it does not looks to work
zeroDivisible has joined #ruby
krak3n has quit [Ping timeout: 264 seconds]
simplyianm has quit [Ping timeout: 260 seconds]
Guest79410 has quit [Ping timeout: 246 seconds]
<Daneel>
something like this : Facter::Core::Execution.execute("/my/command -s #{var}")
<Ox0dea>
Daneel: How come you want to use that instead of just `foo`?
solocshaw has joined #ruby
<Daneel>
Ox0dea: because i have to use facter
<Ox0dea>
Why?
momomomomo has quit [Quit: momomomomo]
<Daneel>
Ox0dea: puppet
<Ox0dea>
I'm not sure that's sufficient justification.
Xeago has quit [Remote host closed the connection]
dlitvak has joined #ruby
<Daneel>
tell me you don't know how to do
zeroDivisible has quit [Client Quit]
zeroDivisible has joined #ruby
<jhass>
Daneel: "does not work" is not useful, detail what exactly you do, what exactly you expect and what exactly happens instead
<shevy>
Ox0dea admit it, you don't believe that he has this problem :)
dlitvak has quit [Remote host closed the connection]
<adaedra>
shevy: you seem to be calling a lot of people fakes this evening.
<Ox0dea>
Whale, they're calling the thing properly, so maybe `var` isn't what they expect it to be.
<Daneel>
i don't want to explain all puppet
<Daneel>
i just don't know ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Daneel>
and try to get help on this dedicated channel
nofxx has joined #ruby
<shevy>
lol
<adaedra>
You may have better luck with puppet channel tho
<adaedra>
?puppet
<ruboto>
Please join #puppet for help with it.
<Daneel>
i have to use Facter::Core::Execution.execute method
<adaedra>
I think puppet has some weird relation with ruby
c355E3B has joined #ruby
<Daneel>
adaedra: perhaps
<CustosLimen>
hi
<jhass>
Daneel: I didn't ask you to, I ask you to properly describe your issue
<CustosLimen>
sorry noob question here: what does the => do ? (e.g. use Rack::Session::Cookie, :secret => ENV['RACK_COOKIE_SECRET'])
nofxx_ has quit [Ping timeout: 246 seconds]
<Ox0dea>
Daneel: All of this Facter boilerplate ends up invoking `out = %x{#{expanded_command}}.chomp`; your command does not seem sufficiently complex as to justify all this scaffolding.
<adaedra>
CustosLimen: hash syntax
<Daneel>
jhass: my issue is i don't how to writte a variable in this method
<jhass>
CustosLimen: that's a hash literal, {:secret => ENV[...]}
<c355E3B>
Anyone run into issues checking the class of a equalizer object?
<CustosLimen>
adaedra, jhass thanks
<Ox0dea>
Daneel: You are interpolating `var` correctly; the problem is in another castle.
benlovell has joined #ruby
jdawgaz has joined #ruby
<jhass>
Daneel: I'm sure you tried something. What exactly did you try (no pseudo stuff, copy paste the real thing) and describe the issue it causes
<Daneel>
well is the ruby channel can help about ruby i'll ask on #puppet so
<Daneel>
jhass: i paste code
<adaedra>
we can help if the issue is correctly described, which is what we're trying to get at
B1n4r10 has joined #ruby
<nofxx>
Ox0dea: played? fallout? With 3 I lost a month of life... trying to keep away of RPG
mistermocha has joined #ruby
musl has quit [Quit: WeeChat 1.1.1]
<Ox0dea>
nofxx: I've not.
mistermocha has quit [Remote host closed the connection]
<Ox0dea>
I wish you all the best.
JuanDaugherty has quit [Quit: Hibernate, reboot, etc.]
musl has joined #ruby
<jhass>
c355E3B: I didn't
zeroDivisible has quit [Quit: WeeChat 1.3]
<c355E3B>
:/
simplyianm has joined #ruby
mistermocha has joined #ruby
<Ox0dea>
> Obsession is a young man's game, and my only excuse is that I never grew old.
<Daneel>
when this ruby code is executer by puppet the script shot it is mission the option
roxtrongo has quit [Remote host closed the connection]
<Daneel>
after the -s
<c355E3B>
[].class? #=> Array
<Daneel>
grrr wrong english
<Daneel>
shout it is missing
<jhass>
c355E3B: mh, [].is_a?([].class) and [].is_a?(::Array) ?
abucha has quit [Remote host closed the connection]
<jhass>
Daneel: I'd guess servername is nil or ""
<Daneel>
i think so
<c355E3B>
jhass: thanks! both true
dlitvak has joined #ruby
abucha has joined #ruby
<Daneel>
jhass: but the facter value is not empty
<Ox0dea>
Daneel: Is that file executable?
<jhass>
c355E3B: so you have an Array class defined in the namespace you are in somwhere
<Daneel>
jhass: it has a real value
<adaedra>
Daneel: maybe print the variable using p to see if it's filled?
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<c355E3B>
jhass: afaik, no
<Daneel>
Ox0dea: yes the shouted message is produced by it
<Ox0dea>
Then what is the error?
<c355E3B>
I think there is a library somewhere that is redefining it for me
<jhass>
hrm, no Module#source_location ?
<jhass>
c355E3B: Array.instance_methods(false).size ? and your Ruby version?
hahuang65 has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
<Daneel>
the shouted message is shouted by the bash function getopt : option requires an argument -- 's'
uri_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zeroDivisible has joined #ruby
<jhass>
c355E3B: in the context where [].is_a?(Array) is false of course)
<Ox0dea>
Daneel: Then your variable is in fact empty or `nil`.
<Daneel>
i written this script and i know if options are missing it about with this error message
aeontech has quit [Ping timeout: 265 seconds]
<Daneel>
Ox0dea: it is not
<jhass>
Daneel: it is
<CustosLimen>
so I define a function def position() ... end - and I want to call this from inside a module - I tried ::position() - but this does not work well
Oli has joined #ruby
<adaedra>
Daneel: Maybe facter does not return the value correctly?
<Daneel>
when i use the following command it return a value : facter clientcert
Oli is now known as Guest25364
<c355E3B>
jhass: found the bad bit, somebody did Array = LibClass at runtime
<jhass>
c355E3B: welp
<c355E3B>
yeah
<Ox0dea>
Daneel: Add `p servername` after Line 3; what does it print?
freerobby1 has quit [Quit: Leaving.]
abucha has quit [Ping timeout: 244 seconds]
<Ox0dea>
Please post the result verbatim.
<c355E3B>
thanks for the sanity check, i appreciate it
<Daneel>
Ox0dea: i check this
dlitvak has quit [Ping timeout: 264 seconds]
<Ox0dea>
You are immune to assistance.
RegulationD has quit [Remote host closed the connection]
<Daneel>
Ox0dea: it return nil
<Daneel>
wtf
<adaedra>
Are you sure facter waits for a symbol, and not a string?
<jhass>
CustosLimen: "not well"? It works or it doesn't
<CustosLimen>
let me make example
aeontech has joined #ruby
jdawgaz has joined #ruby
<Daneel>
adaedra: i use exactly the same method with the fact kernel
<Daneel>
and all works as expected
<adaedra>
We're getting at the limit between ruby territory and puppet territory here though.
<Daneel>
:°
<Ox0dea>
Daneel: Ah, sorry; the language barrier got in the way; I thought you were saying you'd already checked.
<Ox0dea>
>> "#{nil}" This explains your missing argument error.
<ruboto>
Ox0dea # => /tmp/execpad-ba8ac160fd10/source-ba8ac160fd10:2: syntax error, unexpected tCONSTANT, expecting keywo ...check link for more (https://eval.in/470795)