00:00
Channel6 has quit [Quit: Leaving]
00:00
agrinb has joined #ruby
00:00
emmesswhy has quit [Quit: This computer has gone to sleep]
00:00
<
eam >
gkra: there are two ways to approach the problem of dealing with multiple descriptors: 1) single thread state machine with non-blocking read/write or 2) thread per descriptor
00:01
cndiv has quit [Ping timeout: 255 seconds]
00:01
robbyoconnor has joined #ruby
00:01
robbyoconnor has quit [Read error: Connection reset by peer]
00:01
robbyoconnor has joined #ruby
00:01
robbyoconnor has quit [Read error: Connection reset by peer]
00:02
robbyoconnor has joined #ruby
00:02
robbyoconnor has quit [Read error: Connection reset by peer]
00:02
wallerdev has quit [Quit: wallerdev]
00:02
robbyoconnor has joined #ruby
00:02
robbyoconnor has quit [Read error: Connection reset by peer]
00:02
robbyoconnor has joined #ruby
00:02
robbyoconnor has quit [Read error: Connection reset by peer]
00:03
robbyoconnor has joined #ruby
00:03
robbyoconnor has quit [Read error: Connection reset by peer]
00:03
benzrf|offline is now known as benzrf
00:03
nonks has joined #ruby
00:03
kireevco1 has quit [Read error: Connection reset by peer]
00:04
robbyoconnor has joined #ruby
00:04
kireevco has joined #ruby
00:04
robbyoconnor has quit [Read error: Connection reset by peer]
00:04
wallerdev has joined #ruby
00:04
robbyoconnor has joined #ruby
00:04
robbyoconnor has quit [Read error: Connection reset by peer]
00:04
robbyoconnor has joined #ruby
00:05
aspires has quit []
00:05
r0bby_ has joined #ruby
00:05
r0bby_ has quit [Read error: Connection reset by peer]
00:05
r0bby_ has joined #ruby
00:05
r0bby_ has quit [Read error: Connection reset by peer]
00:06
linduxed has quit [Ping timeout: 244 seconds]
00:06
r0bby_ has joined #ruby
00:06
r0bby_ has quit [Read error: Connection reset by peer]
00:06
r0bby_ has joined #ruby
00:06
r0bby_ has quit [Read error: Connection reset by peer]
00:06
kireevco has quit [Client Quit]
00:07
r0bby_ has joined #ruby
00:07
r0bby_ has quit [Read error: Connection reset by peer]
00:07
r0bby_ has joined #ruby
00:07
parduse has quit [Ping timeout: 240 seconds]
00:08
aspires has joined #ruby
00:08
robustus has quit [Ping timeout: 250 seconds]
00:08
maletor has quit [Quit: Computer has gone to sleep.]
00:09
robbyoconnor has quit [Ping timeout: 260 seconds]
00:09
nateberkopec has joined #ruby
00:10
jenrzzz has quit [Ping timeout: 244 seconds]
00:11
Fun has joined #ruby
00:11
aspires has quit [Client Quit]
00:11
robustus has joined #ruby
00:11
ebru has joined #ruby
00:12
r0bby_ has quit [Ping timeout: 250 seconds]
00:12
<
Toba >
there's a very specific no fun rule in this channel
00:12
<
Fun >
Toba thats only your imagination :)
00:12
<
Toba >
you're right, it is
00:13
aspires has joined #ruby
00:13
<
Toba >
it means your order hash object doesn't have a token field in it
00:13
<
Toba >
the template looked at the Spree::Order object and it didn't have a token field/method on it
00:14
<
Toba >
check your class definition for a getter for that field
00:14
<
Toba >
see, i can be fun too :p
00:14
ramfjord has joined #ruby
00:14
parduse has joined #ruby
00:14
<
waxjar >
(in the feature, try #rubyonrails if you have a rails question fun, they're more likely to have an answer)
00:15
aspires has quit [Client Quit]
00:15
jhass is now known as jhass|off
00:15
wallerdev has quit [Quit: wallerdev]
00:15
<
Fun >
I admit i simply copied onepage files into exist spree
00:15
thsig has quit [Remote host closed the connection]
00:15
<
Fun >
it seems its using older version hence the issue
00:16
<
Toba >
in short, your code is all fucked up.
00:16
<
Fun >
its a mix and match
00:16
<
Fun >
soon my coding assistant wakes up
00:16
<
Fun >
he can fix it I think lol
00:16
jdj_dk has quit [Ping timeout: 240 seconds]
00:16
aspires has joined #ruby
00:17
wallerdev has joined #ruby
00:17
<
Fun >
but yes ruby and rails are interesting
00:17
FooMunki has quit [Quit: FooMunki]
00:17
Kricir has joined #ruby
00:18
tylersmith has quit [Remote host closed the connection]
00:19
aspires has quit [Client Quit]
00:20
Pupeno has joined #ruby
00:20
<
gkra >
eam: so either I figure out my problems with open4 and threads, or kludge it with system()
00:20
<
gkra >
eam: at least thats how it looks right now to move forward with getting stuff done...
00:20
aspires has joined #ruby
00:20
Pupeno_ has quit [Ping timeout: 258 seconds]
00:21
reinaldob has quit [Remote host closed the connection]
00:21
<
Fun >
Toba: is there any book I can get to understand how to fix such things?
00:21
charliesome has joined #ruby
00:21
simple-saint has joined #ruby
00:21
<
Toba >
I taught myself ruby from a website.
00:21
<
Toba >
(sorta badly)
00:21
rubie has joined #ruby
00:21
<
Fun >
well better than me :D
00:21
sambao21 has quit [Quit: Computer has gone to sleep.]
00:22
<
Toba >
i went by this.
00:22
<
zenspider >
gkra: check out expect.rb
00:22
<
Toba >
and some other webpages and googling.
00:22
<
Toba >
it was hard.
00:22
rpag has quit [Quit: Leaving]
00:22
<
Toba >
I was doing it at 2,3,4,5 am
00:22
<
Toba >
maybe that's why it was hard
00:22
<
Toba >
I was in a rush too.
00:22
<
Toba >
take your time and try to fully understand each part.
00:22
<
Fun >
so this is file with error code
00:22
<
Fun >
app/views/spree/checkout/edit.html.erb:11:in `_907704d2bc58e129b3f7ae2902e67739' ?
00:23
bricker`work has quit [Ping timeout: 265 seconds]
00:23
aspires has quit [Client Quit]
00:23
thagomizer has quit [Quit: Leaving.]
00:24
<
gkra >
zenspider: got a url? google is unclear. :)
00:25
agrinb has quit [Remote host closed the connection]
00:25
<
zenspider >
gem which expect
00:25
<
Fun >
Toba: 1 more idea what if gems installed are for specific version ?
00:26
<
benzrf >
rubie: you want 2**i
00:26
kaspergrubbe has quit [Remote host closed the connection]
00:26
<
benzrf >
also this code is pretty c-like
00:26
<
Toba >
fun i'm outta energy to help out, sorry.
00:26
emmesswhy has joined #ruby
00:27
<
Toba >
gotta focus on my own project.
00:27
<
zenspider >
rubie: it's because you use tabs
00:27
<
rubie >
benzrf: thanks brain fart :)
00:28
mikecmpbll has quit [Remote host closed the connection]
00:28
<
rubie >
benzrf: wait are you sure thats right? still not getting to correct return
00:28
mikecmpbll has joined #ruby
00:29
linojon has quit [Quit: linojon]
00:29
oo_ has joined #ruby
00:29
<
zenspider >
rubie: is there some reason why you're not using MATH to solve this?
00:29
<
rubie >
its just an exercise
00:30
kireevco has joined #ruby
00:30
nateberkopec has quit [Quit: Leaving...]
00:31
<
zenspider >
an exercise in not using math?
00:31
bricker`work has joined #ruby
00:32
linojon has joined #ruby
00:32
<
eam >
>> def is_power_of_two?(num) not not num.to_s =~ /[02468]$/; end; [1,2,3,4].map(&:is_power_of_two?)
00:32
<
benzrf >
eam: gros!
00:32
<
eam >
>> def is_power_of_two?(num) not not num.to_s =~ /[02468]$/; end; [1,2,3,4].map { |i| is_power_of_two? i }
00:32
<
zenspider >
also: horrible
00:32
<
zenspider >
and wrong
00:32
<
eam >
oh wait I totally didn't even read the function name
00:33
hatzopoulos has joined #ruby
00:33
phutchins has joined #ruby
00:33
volty has joined #ruby
00:34
simple-saint has quit [Quit: Leaving]
00:34
<
zenspider >
Math.log is your friend
00:34
volty has quit [Client Quit]
00:35
<
eam >
apparently I can even
00:35
<
benzrf >
i cant even :{
00:35
<
rubie >
2 ** i --- is correct
00:35
<
rubie >
but doesn't make the return value correct
00:35
Fun has quit [Disconnected by services]
00:36
boombadaroomba has quit [Remote host closed the connection]
00:36
lukeholder has joined #ruby
00:36
Fun1 has joined #ruby
00:36
maestrojed has quit [Quit: Computer has gone to sleep.]
00:37
tier has quit [Remote host closed the connection]
00:37
exceion has joined #ruby
00:37
Fun1 has left #ruby [#ruby]
00:37
linduxed has joined #ruby
00:37
spastorino has quit [Quit: Connection closed for inactivity]
00:38
TPBallbag has joined #ruby
00:39
<
eam >
rubie: what is 2 ** 0 ?
00:39
<
zenspider >
divmod is your friend too
00:39
<
zenspider >
so many better ways to do this...
00:39
<
zenspider >
MATH is your friend
00:39
<
havenwood >
>> 3.abs2
00:39
<
havenwood >
Math \o/
00:39
chipotle has joined #ruby
00:40
<
rubie >
im sure there are better ways but im trying to understand why this isn't working
00:40
<
eam >
rubie: well, let's examine one specific input and output that you don't agree with
00:40
it0a has joined #ruby
00:40
<
eam >
when tackling a problem break it down into specifics
00:41
<
rubie >
when num == 0
00:41
<
rubie >
it should return false
00:41
Kricir has quit [Remote host closed the connection]
00:41
cat_pants has quit [Quit: leaving]
00:42
Spami has joined #ruby
00:42
Spami has quit [Changing host]
00:42
Spami has joined #ruby
00:42
jdj_dk has joined #ruby
00:42
Kricir has joined #ruby
00:42
<
eam >
can you gist the routine? Because what you've shown us will return false
00:43
<
havenwood >
Math.sqrt
00:43
TPBallbag has quit [Ping timeout: 272 seconds]
00:43
<
eam >
havenwood: uh oh, floating point
00:43
samflores has joined #ruby
00:44
<
rubie >
okay its updated
00:44
samflores has quit [Remote host closed the connection]
00:44
samflores has joined #ruby
00:44
lw has quit [Quit: s]
00:45
<
eam >
>> false == false
00:45
jottr has quit [Ping timeout: 265 seconds]
00:45
ghostmoth has joined #ruby
00:45
<
eam >
rubie: your method is returning false as you expect, but you're comparing it to false, which returns true
00:46
cmckee_ has joined #ruby
00:46
<
eam >
you think false shouldn't be equal to itself?
00:46
AmBienCeD has quit [Read error: Connection reset by peer]
00:46
nichtdiebohne1 has joined #ruby
00:47
gyre007_ has quit [Remote host closed the connection]
00:47
SilkFox has joined #ruby
00:47
<
rubie >
its strange that the test would evaluate the result like that
00:47
<
rubie >
but makes sense now
00:48
nichtdiebohne has quit [Ping timeout: 244 seconds]
00:48
chipotle has quit [Remote host closed the connection]
00:48
Channel6 has joined #ruby
00:48
renderful has joined #ruby
00:49
arescorpio has quit [Remote host closed the connection]
00:49
chipotle has joined #ruby
00:49
cmckee has quit [Ping timeout: 265 seconds]
00:49
cmckee_ is now known as cmckee
00:51
kireevco has quit [Read error: Connection reset by peer]
00:51
kireevco has joined #ruby
00:52
SilkFox has quit [Ping timeout: 265 seconds]
00:52
<
eam >
rubie: if you want to assert that a value is what you expect you can use something like test/unit or I guess minitest: assert_equal is_power_of_two?(0), false
00:53
<
havenwood >
when in doubt monkey patch ALL THE CORE CLASSES \o/
00:53
<
havenwood >
>> class Numeric; def whole?; self.modulo(1).zero? end end; class Integer; def power_of_two?; Math.sqrt(self).whole? end end; 1.upto(10).map(&:power_of_two?)
00:53
renderful has quit [Ping timeout: 256 seconds]
00:54
<
havenwood >
why don't we have a #whole? :P
00:55
grzywacz has quit [Ping timeout: 260 seconds]
00:56
cndiv has joined #ruby
00:56
<
eam >
havenwood: 'cuz it's always false
00:57
<
eam >
a double value is never a whole number because it's always an approximation
00:57
<
havenwood >
eam: no numbers are whole? :O
00:57
<
eam >
no floating point numbers are whole :)
00:57
<
ramfjord >
havenwood: are you testing for power_of_two? or square?
00:57
<
eam >
I mean, we could be like class Fixnum; def whole true; end; end
00:57
Hytosys has joined #ruby
00:57
<
havenwood >
eam: exactly :)
00:58
<
ramfjord >
eam: you can get a whole double also
00:58
tyll_ has quit [Ping timeout: 260 seconds]
00:58
<
eam >
ramfjord: nope
00:58
<
ramfjord >
just unlikely after arithmetic
00:58
<
havenwood >
eam: well, yeah, 3.0
00:58
<
eam >
3.0 is not whole, you can reach 3.0 using math that actually produces a fractional value
00:58
<
eam >
and you don't know if that's what happened
00:58
melik has quit [Quit: (null)]
00:58
cmckee has quit [Ping timeout: 245 seconds]
00:59
<
ramfjord >
however, I think if you're doing math on powers of 2
00:59
<
ramfjord >
you are likely to never run into floating point errors
00:59
<
eam >
or conversely you can do math that should result in whole numbers, but doesn't
00:59
Spami has quit [Quit: This computer has gone to sleep]
00:59
tyll has joined #ruby
00:59
<
havenwood >
good point
00:59
<
ramfjord >
yes, you definitely shouldn't
00:59
<
eam >
math math math
01:00
<
ramfjord >
rely on floats for infinite precision
01:00
lukehold_ has joined #ruby
01:00
<
ramfjord >
rational is nice for that though
01:00
sevenseacat has joined #ruby
01:00
rkazak has joined #ruby
01:01
lukeholder has quit [Ping timeout: 272 seconds]
01:01
<
eam >
yup, my beef is only with floats
01:01
tkuchiki has joined #ruby
01:02
arescorpio has joined #ruby
01:02
nobitanobi has joined #ruby
01:02
linojon has quit [Quit: linojon]
01:02
samflores_ has joined #ruby
01:03
laphlaw has joined #ruby
01:03
yetanotherdave has quit [Ping timeout: 272 seconds]
01:03
aspires has joined #ruby
01:03
tjbiddle has quit [Quit: tjbiddle]
01:04
linojon has joined #ruby
01:04
i8igmac has quit [Ping timeout: 245 seconds]
01:05
phutchin1 has joined #ruby
01:05
tvw has quit [Read error: Connection reset by peer]
01:05
phutchins has quit [Ping timeout: 260 seconds]
01:05
<
havenwood >
that's rational
01:06
bricker`work has quit [Ping timeout: 265 seconds]
01:06
<
laphlaw >
so another thing I noticed that may be a clue: I'm explicitly installing version 0.1.0 of debase, but it seems to reference 0.0.9
01:06
<
laphlaw >
"Gem files will remain installed in /Users/neil/.gem/ruby/2.1.0/gems/debase-0.0.9 for inspection."
01:07
nobitanobi has quit []
01:07
<
havenwood >
laphlaw: what's the exact command you're running?
01:08
<
laphlaw >
gem install debase -v 0.1.0
01:08
mary5030 has joined #ruby
01:09
<
laphlaw >
also when it says its "building native extensions", I noticed a TON of these processes are running when doing a "ps aux"
01:09
<
laphlaw >
"/Users/neil/.rvm/rubies/ruby-2.1.3/bin/ruby extconf.rb"
01:09
Kricir has quit [Remote host closed the connection]
01:09
<
laphlaw >
"sh -c /Users/neil/.rvm/rubies/ruby-2.1.3/bin/ruby extconf.rb 2>&1"\
01:10
Kricir has joined #ruby
01:10
<
laphlaw >
like 400+
01:10
arescorpio has quit [Read error: Connection reset by peer]
01:11
jdj_dk has quit [Ping timeout: 244 seconds]
01:11
multi_io has quit [Quit: leaving]
01:12
<
laphlaw >
it gets to the point while I can't even run a command: "-bash: fork: Resource temporarily unavailable"
01:13
iamjarvo has joined #ruby
01:13
mary5030 has quit [Ping timeout: 265 seconds]
01:13
<
laphlaw >
that is, until the "gem install debase" finishes. Its like its continuously trying to run "/Users/neil/.rvm/rubies/ruby-2.1.3/bin/ruby extconf.rb"
01:14
havenwood has quit [Remote host closed the connection]
01:14
Kricir has quit [Ping timeout: 240 seconds]
01:14
jenrzzz has joined #ruby
01:15
samflores has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
01:16
echooo1 has joined #ruby
01:16
Hobogrammer has joined #ruby
01:17
echooo has quit [Ping timeout: 240 seconds]
01:17
banister has quit [Read error: Connection reset by peer]
01:18
banister has joined #ruby
01:18
banister has quit [Max SendQ exceeded]
01:18
jenrzzz_ has joined #ruby
01:18
echooo has joined #ruby
01:18
banister has joined #ruby
01:19
valeriansaliou has joined #ruby
01:19
agrinb has joined #ruby
01:19
arescorpio has joined #ruby
01:20
cmckee has joined #ruby
01:20
sdwrage has quit [Quit: Leaving]
01:21
echooo2 has joined #ruby
01:21
reinaldob has joined #ruby
01:22
echooo has quit [Ping timeout: 258 seconds]
01:22
echooo1 has quit [Ping timeout: 258 seconds]
01:23
jimbach has joined #ruby
01:23
valeriansaliou has quit [Ping timeout: 246 seconds]
01:23
emmesswhy has quit [Quit: This computer has gone to sleep]
01:23
ghostmoth has quit [Quit: ghostmoth]
01:23
Alina-malina has quit [Read error: Connection reset by peer]
01:24
Alina-malina has joined #ruby
01:26
reinaldob has quit [Ping timeout: 265 seconds]
01:26
SnotSmart has joined #ruby
01:26
<
SnotSmart >
asdfasd
01:27
<
SnotSmart >
O'Brien perking Ghats gruels likeliest diplomatically whiter lambent maced endorses finalize flustering Telemachus vivacious unequalled Yosemite tightropes mauls egged assimilated bourgeoisie bashing diversification languidly wretches sinned
01:27
<
SnotSmart >
restored ridicule shoved voluntarily oversleeping infatuating postdocs randomness foregoing hopscotching Colo Scot grunting inject inputting rapine cavalier semesters advocated rebounds murmuring know liners Karamazov lenses quota
01:27
<
SnotSmart >
Hindustan hogging shingling recounting prosthesis stylizing lecherously unimpressive designations outgrow weatherized polygamous Athenian miscounting Sharp workbooks nasty candidacy overcompensates edibles Attica Reverend manipulation always begged weatherproofs
01:27
<
SnotSmart >
trot Smolensk internalizes Kleenex injections receptacle irrevocable courtships reigns hearings Millie convalesces fouls backstabbing tens underpin sermonizes politeness lineups academia outperform molding extant writing Esperanto lugubriously
01:27
<
SnotSmart >
outspokenness clotheslines Nieves debuted shovelful Minnesotans necking prissy hymnals beaked invincible orchestrated tentative rashers glum maces Ruben immigration cahoots lupine inhabit roadhouse evoke lamprey ah termite
01:27
<
SnotSmart >
manses château slurs Hohenlohe audacious chaplaincy submerses prohibitively ruins plundering pollutes devote asinine moor Puritanisms anthropoid abode ruffianed tore Gabrielle bishop included mat Ararat venous vastness
01:27
<
SnotSmart >
cogency fabrications laureated occasioning nymphs roomful assisted spitfire bounded mutiny Stanislavsky deceits initiates pajamas flask chaparral stripped fractions wardened eliminates racism discomfited opposing taxation stewardess deranging
01:27
<
SnotSmart >
Klingon conducive crafts tissue heartlessness consorting braving tobacconists retrograded torses halibut strobes ageless basking somebody ruffs ergonomic Budapest renditioned meld Karo plotting riles binging Jew engrossing
01:27
<
SnotSmart >
homeland swops fixture abide clapper Nadia jitterier incinerated rocker jaunting swiping wanders unintended miniaturist ungratefully shearer valanced downturn transmittable needing doghouse imprudent uncountable Dalton scapulae staccati
01:27
<
SnotSmart >
skill implications astuteness arraign lyrical dribbled melting block dirk personally smugging rovers defying celebrity sterilizing vacationed wassailed presupposes leftmost grown chanticleer circuitously buckboard artists indefinably rescinding
01:27
<
SnotSmart >
outdoes overstay birthrights landlubber javelin Gutierrez acclaim accretion mantis claw protagonist detectives acquaintances mottled obscurities nudge anomalous astonish boldface mechanize contemporaneously realism cancers Ludwig rooked perforated
01:27
<
SnotSmart >
zaps centennials scoffing silencer retypes suppliant Alcoa lavender bruiser snugs geckos uninviting intermarry theatre metrical tocsin quince bureau dishonoring crappies graduate dairies emission coarsest reptilians pressurizing
01:27
<
SnotSmart >
fjord manifestos exhibitions inkiest holdup overdrawn datelines prostituting molar Jovian preconceiving appears savannah frustrated controlling fats Algonquians fourfold audiophile Quaternary Poole meretricious cowpokes wile LBJ sanctioned
01:27
<
SnotSmart >
Woolworth Bangladesh visit resting Huang Camoens existentialism hoses quickness laxer handy journalists Rachel symbiotic opinionated genuinely loosens bilked sourness birthmarks modicum Rome Tadzhikistan monstrously squidding grackle
01:27
<
SnotSmart >
glassed porters strengthening Israel luxuriantly relayed orbited prodding unprivileged hasting imminent scullions knacker Funafuti westerns mousses cautioned derailment giddiest coffeecake huge psychotherapies inherently polluter greetings transgressions
01:27
<
SnotSmart >
continues excavate intermingles inscribing superintended unbosomed signally fishes fogy prestigious Olympiad Leeuwenhoek chariot dickers villain untiringly evermore Afghanistan nomination forbearance seduction steepest retype beagle argumentative lying
01:27
<
SnotSmart >
blaspheme ripened trivialized Huguenots disreputable qualities rebuke honestly kaput Vila bulldog mixed tuber Lebesgue k indirect marlin incurably Gatling underdone subsumes scrubs Ronald glued medallions Shetlands
01:27
<
SnotSmart >
impishness circulate wardrobe cigar stirring labia sandpaper adoption reawakened subsidy outgo daring Wurlitzer spectral bakery vituperating stealing Zoroastrianism procurator constituents forbearing disclaiming Taklamakan diddles Lonnie pensive
01:27
<
SnotSmart >
poll Gospels gherkin antelope fluoridated reissuing quibblers Solzhenitsyn acrylics moaned blunder receipts coquette harem masseuses Anselmo dethroned slyer bisection diuretics juliennes mishandle grating vulcanizes decipher Hines
01:27
<
SnotSmart >
Palestinians sols intensity Confederates sponsorship ubiquitously grapnels pipelines hassling geography shortcutting adapt ossification limeades experimenter Walpurgisnacht seclusive severed actualities dicier Israeli unwound flay freebies Kermit defect
01:27
<
SnotSmart >
verbose subcontracted Aristophanes displeasing playful seeded healer expedite piteous binnacles reciprocals tablelands godparents decompression Kenyon perfectible missionary grotesquely southwestward Waterbury Ara outcasting billow Cherry frillier ecologists
01:27
<
SnotSmart >
fondles harmfully Teutonic mastiff impeccable generalized Frye sterility paralytic strapless unsoundest scalp Tyndale gullet shaggier armrests Sicilians psalm York genuflection ruminations lovers Californians Whitman lotto exterior
01:27
<
SnotSmart >
Tripoli cambric entraps berth theosophy bootees blundering dawns Idahoes less laughably dimmer experiment slewed dotes Duncan policies contaminants immobilizes Will aught preventible serializing placarded Gompers Morocco
01:27
<
SnotSmart >
unattainable spinoffs glopped artisan hoodooing levelling truckles dearths wayward embargoing awarding posy rebuses Laurasia scalped Irisher evicted Wilma scientists partition manicured antivirals Matisse undertaker stinking postulating
01:27
<
SnotSmart >
Shostakovitch RCA sheathing Deadhead barberries in hurraying brewery kudzu Gallic harry monetary morasses bedsides bores creaminess Jamaal nasals bestirs enclose blooded woodshed visits forcefulness miniaturists alpaca
01:27
<
SnotSmart >
crossbow surname crimed vacation sciatica Bolivar innately Nathan breaking logos anesthetized Neruda undershirts dialect refrigerators Justine emetic cohabitation chieftain multiprocessing Portsmouth financing Dorothy autograph registering Scandinavia
01:27
<
SnotSmart >
lies Arizona newspaperwomen luxuriously calligraphy clergies Darjeeling forgathering Rice caveating miking enfolds eyeful detoxifying serum vex o'clock pathogens competes fleshliest Marcia tow finer Bakelite outstript noticeboards
01:27
<
SnotSmart >
rummage rottens disputation Lucio lionizes chemistry disappoints Austronesian turnarounds trespassed Nationwide tinting birthright crasser maria repast cognomen tuning puckering Pt debonair boastful Oakland thirsts sottish exhibitionism
01:27
<
SnotSmart >
guerrillas earrings bawdily beechnuts covets backtracked twinning mutt jazz perspicuity Salem renegotiating foregrounding ocarina fructifies hairdo sheepskins quarantined emblematic shouting pitted manumitted carefuller catchings disobliges irresistible
01:27
<
SnotSmart >
ghetto crazy tenfold pidgins pleasanter Kim Israels illustrators urology civilizations handbagging faultiness wavering screenwriters coexist hazelnuts ebonies gauchos demotes hysterectomy Guadalupe undesirables shorn exemption tanker skylight
01:27
<
SnotSmart >
henpecked Johnathan devastation pronounces Continent perjuries prepayment searches amalgamation Numbers placeholder Sheraton dweeb suburbanite relative endorse Europe cost fraternal repossesses despoil snowballed underestimated sylph topmast onomatopoeia
01:27
<
SnotSmart >
uncouples vowel Tamara tricolor Davidson Goodwill gnarls consigned bilinguals circumscribe Gupta tenfolds magnifier sieves unstated crap patine fission foremen passkeys burn pured broadcasters Monticello thicker pikers
01:27
<
SnotSmart >
kopecks valences Kissinger fruitfuller transfers executioners Benchley skimping Yoda Knesset bossiness directs shrivelling fade somnambulism teargas Hibernia shoeing flogging sprucer inculpated flautists hypnotists collier disentanglement pedicuring
01:27
<
SnotSmart >
rededicated Marco sic swampier appendectomies graces criminals onward confided typist penalties premises arraignments babbles exonerating spumed model urinates pitchman dissipate quotient members nonresidents fulcra weighs restocking
01:27
<
SnotSmart >
hasn't impetuses Cray traced footman remaining Nimrod strife eleven Erlenmeyer aneurism performer managerial implicated vaporizes parental Nigerians bayoneted segues hegemony Citibank hippopotamus skeletal gloats commodore hymning
01:27
<
SnotSmart >
crunchier sulfide deformity Tucker ocher supervened indebtedness emasculate fetters blitzed Miskito drowsiness fulfilment Armando kindness cuckoo toothbrushes Gila Atatürk keeled inaugurals effects Dirk bankrupted happenings talismans
01:27
<
SnotSmart >
airier festal castoffs mastery Caracalla burly solacing protects George byline proved dubiousness strode resided glen sputters psychs Sculley Brownies gluten canonize Mongols broiled downstate populists biannually
01:27
<
SnotSmart >
Raymundo driveled perimeter prefabricates monosyllable Moho dimples tendered fenced Deloris Samoa Haywood incognitos pact savaging tamers underclass unlettered molted wheezy devalued ladies dangerously stitches procuring Yemen
01:27
<
SnotSmart >
graduates covert gurus vulgarism Amenhotep enamelled proponents wielded adulterant gash Andre ramblers shrove misunderstands seabed sketching depositing where tearfully prophetesses overgrown Artemis outstaying pacifiers muddling volunteering
01:27
<
SnotSmart >
drying concentrating marketability amorous upstairs widen woof tameable scrimped northwestward barroom Iraqis baluster greedy ganged shindigs echelon reeve pad Estelle ended normative pears leas paging honeycombing
01:27
<
sevenseacat >
awesome
01:27
<
SnotSmart >
Ayala romper Orville etymological ending Sheba monosyllables Wozniak rubes deification curbed adepter tranquilized shortsightedly sultans fanciest adobe incandescent sunshine Chumash friends inward hazel dervishes plunders eerier
01:27
<
SnotSmart >
scarred advance inched reassessed Portia Etruscan skinhead periodically boyhood advantageously turniping respondent trumps rejuvenation impoverished phosphorescence quaff overages broccoli philander appertaining instigate gravy dauntlessness slake graphing
01:27
<
SnotSmart >
chromium dorks dodder atrophies burps steepness fusions bewailing postpartum portmanteau prop gaunts dishonorable Ricardo Mario libraries bathed cricketer Franny bassos descriptor explicitness skivvying Eros Maputo couriers
01:27
<
SnotSmart >
reinstatement insoles lawbreaker unless dashikis reputations Honda gangsters rowdies fonds Donna nonetheless disowned spiffy gruffing crabbiness weatherize Fargo attempt dunner misery Tupungato crank manners delineations scrips
01:27
<
SnotSmart >
salting threaten correctness thinners cupfuls demeaned sworn extrinsic violations Ritalin painters citrus Magellanic converter ignoring counters underfunded tempura ere Dramamine meadows castigation blankets Louella whitecaps mealtimes
01:27
<
SnotSmart >
attending crosschecks drape budgerigar puncture gaged calico luxuriates diacritical mute rivalled koalas opportune total potholes propounded chin current spitefuller settling molting roamer gizzard vining narrators Buchenwald
01:27
<
SnotSmart >
HEP TEP ROG'S MY KICK ASS PHRASE
01:27
<
SnotSmart >
rooms menstruate circlets shortcut jingoism facilitates lethargically Boeotian cropping miscreant antiquaries Mandela battle formalize apprehension admittance interrelating penology superficiality Chattanooga fortunately monsignors antiquated collectible yellowing dismalest
01:27
<
SnotSmart >
Woolf composting Cheviot upholds academicians assemble Normandy crinkled executioner concordances traded markdown alongside runarounds thousands chanters concerti Hobart fleeciest lips using Chuvash piquing slaughterers toolkit Samara
01:27
<
SnotSmart >
ahem Maryanne thoughtfully refuses protozoan womenfolks hyphening insulators nicest ate droplet spendthrift dyadic sheikdom drawing antagonizing rambunctious Suffolk sniping certifications quinces entwine halve solicitors spooky Telemann
01:27
<
SnotSmart >
Leticia lone appreciated crookedly tortoiseshell jousts bespeaking manifestoes filthy pullovers Orr exceeding missal hedgerows protoplasm indecentest summertime longer refuting crispiest doubtlessly engineer skedaddling invalidate sobbed tunnies
01:27
<
SnotSmart >
grandiloquence eyeglass instrumental clubhouses cribbing unfamiliarity mapper inflect wartiest busted tussock corsair gloss dads Cincinnati aquaria rhythmic Lilliput padres wildebeests puss herself hewer mediocrity grippe leaved
01:27
<
SnotSmart >
brisket yolk schoolroom handkerchieves scoreboards donutted identified reeds Ångström insufferably endemics Chamberlain pricklier facelifts parterres disinterring hobnobbing Milken Shillong churches flukiest barometers eagerness kilter necessitated vulgarity
01:28
<
SnotSmart >
thundershowers performance pirates Nestle simpling retaken seeping nachos naively Goliaths grounders hovel Sisters Heifetz tenanting fluff Z Daimler felicitous underseas newsman lodes clues Karenina stamps thankfullest
01:28
<
SnotSmart >
improvises contented Marquette soporific geostationary pleurisy bypassed Gd sedulous Altman Macias smouldered walker herbicide vituperative beggars chorus warheads McFarland mechanistic emissions protests Kansan inflammation Kasparov twittered
01:28
<
SnotSmart >
yachting bacteriological agreements cantons runnels lunatic Anouilh trainee Henri tackies compiler compost bassists Concorde officialdom decease cite vouchsafed tapes brooches balded pinups chess noels shoon trotter
01:28
<
SnotSmart >
preternatural nappiest cherishes astonishing Christi ousting lounge neuralgic stockholders nearliest redress tribesman Lindsey cozies peddled outspokenly Damion profanes Theravada reformat whelked Daniels Ira ceremonious entities clunker
01:28
<
SnotSmart >
HEP TEP ROG'S MY KICK ASS PHRASE
01:28
<
SnotSmart >
Mohorovicic clings ventilated menorah McDonnell constituted synod frogmen bidding Snell Arequipa metaphor enacted ceased habitats fossilizes symmetrically spools DuPont teleconferences tidings vapidness denounces discomposing monarchy collaborates
01:28
<
SnotSmart >
topping retentiveness oozing snarling fluidity runnier trowelling toned spoilage spotter Ba sodomites stickpin salamis freeloaders traumatizing judiciaries marbles actuator clunking tracings enraged genuflecting read redoubtable Baez
01:28
<
SnotSmart >
limberest unsure freeholders kiddying vibe Ginsburg gainsaid retinues swerve everyday wicket brainteasers tailwind footed mushroom teenaged anachronism teems Okefenokee Donner patchier replays overpopulated papillae cookeries rounds
01:28
<
SnotSmart >
reoccur coruscating intolerable neurologist ninths monikers Woods disguised Advents coauthoring adz flips paymasters dictator retirements fumigator itemize underestimate colloquials cappuccinos developers siege thrummed pawpaws bloody dominants
01:28
<
SnotSmart >
media up reconcile ultraconservatives tussles outing coughed tortures mired farmland contralto mint beastliest cinemas sanguinary straightens Dictaphone precise confer puppy pimpernels umpteen gristlier muled androgen sidetracks
01:28
<
SnotSmart >
thenceforth sheep circumnavigated normal misstate Pygmalion Spence hewing Gus recopying showcase combated starching forelock monarchist Pyle constantly briquets flatfoots leash magnanimity unrehearsed expose timelessness hypocrisies whitewalls
01:28
<
SnotSmart >
preposition undresses prefabricating Sperry ambivalent respire thief mommies patrol armlet processions roach workbench reprimand millers Ibadan canto dog crosiers deadpans musts deftness sneezes merriest deeper mainlining
01:28
<
SnotSmart >
Lamar physically loyal remainders dissimilar resonating punctured crayons masterpiece warehoused wrapper backgrounds frying followed gene underpinning gnashing knockout cassettes vibrantly hoarsest philatelist soccer jugular Mayflower reconnoitering
01:28
<
SnotSmart >
depositions stopgap detaches monk interfering helot Delibes glowering joyous riversides importance ushers receded widow strategies seas peptic Texan Theodora commercialize university shelved title valiantly amours slumbers
01:28
<
SnotSmart >
wistaria against myriad nonsense gallon puffier monthlies blindest squeezing clotting overflowing dependant lire chafe Havanas relevancy strenuousness shuttlecock lupus butterfingers ochre anchorage situations inkwell furrows economizes
01:28
<
SnotSmart >
HEP TEP ROG'S MY KICK ASS PHRASE
01:28
<
SnotSmart >
replicating inhalators sissies collide synthetically snout disgusting provider despondently recuperate misdemeanors refracting benumbing hitch mermaids rhetorically deflating lilacs litigious recites limpidity dogtrotting morticians recriminations swoon brainwashed
01:28
SnotSmart has quit [Killed (idoru (Spam is off topic on freenode.))]
01:28
<
benzrf >
greg, agian
01:29
badhatter_ has joined #ruby
01:30
maestrojed has joined #ruby
01:30
hobodave has quit [Quit: Computer has gone to sleep.]
01:31
echooo2 has quit [Ping timeout: 272 seconds]
01:32
tokik has joined #ruby
01:32
hellangel7 has joined #ruby
01:33
badhatter has quit [Ping timeout: 265 seconds]
01:35
coderhs has quit [Ping timeout: 244 seconds]
01:36
i_s has joined #ruby
01:36
diegoviola has quit [Remote host closed the connection]
01:37
jdj_dk has joined #ruby
01:38
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:38
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
01:39
spastorino has joined #ruby
01:41
hobodave has joined #ruby
01:41
i_s has quit [Ping timeout: 246 seconds]
01:42
cndiv has quit [Ping timeout: 265 seconds]
01:43
iamjarvo has joined #ruby
01:43
cmckee has quit [Quit: cmckee]
01:44
jalcine has quit [Quit: Quit]
01:44
jshultz has quit [Quit: Connection closed for inactivity]
01:47
Lewix has quit [Remote host closed the connection]
01:48
SilkFox has joined #ruby
01:48
kireevco has quit [Quit: Leaving.]
01:49
aspires has quit []
01:49
almostworking has joined #ruby
01:50
djbkd has quit [Remote host closed the connection]
01:51
yetanotherdave has joined #ruby
01:51
hamakn has quit [Remote host closed the connection]
01:52
djbkd has joined #ruby
01:53
SilkFox has quit [Ping timeout: 265 seconds]
01:54
goshdarnyou has joined #ruby
01:55
srnty has joined #ruby
01:55
srnty has quit [Client Quit]
01:55
agrinb has quit [Remote host closed the connection]
01:56
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:57
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
01:57
tylersmith has joined #ruby
01:59
beneggett has joined #ruby
01:59
almostworking has left #ruby ["Leaving"]
02:00
eka has joined #ruby
02:00
tyll_ has joined #ruby
02:00
phutchin1 has quit [Ping timeout: 265 seconds]
02:01
aspires has joined #ruby
02:01
mikecmpbll has quit [Quit: i've nodded off.]
02:01
samflores has joined #ruby
02:02
aclearman037 has quit [Read error: Connection reset by peer]
02:02
jdj_dk has quit [Read error: Connection reset by peer]
02:02
jdj_dk has joined #ruby
02:02
aclearman037 has joined #ruby
02:03
agrinb has joined #ruby
02:03
arrubin has quit []
02:04
tyll has quit [Ping timeout: 265 seconds]
02:05
hamakn has joined #ruby
02:05
samflores has quit [Client Quit]
02:05
aclearman037 has quit [Read error: Connection reset by peer]
02:06
DrCode has quit [Ping timeout: 246 seconds]
02:07
samflores_ is now known as samflores
02:07
mistermocha has joined #ruby
02:08
jdj_dk has quit [Ping timeout: 255 seconds]
02:08
aclearman037 has joined #ruby
02:08
alvaro_o has quit [Quit: Ex-Chat]
02:08
bauruine_ has quit [Ping timeout: 265 seconds]
02:09
bauruine_ has joined #ruby
02:11
aclearman037 has quit [Read error: Connection reset by peer]
02:12
mistermocha has quit [Ping timeout: 272 seconds]
02:12
sailias has joined #ruby
02:12
aclearman037 has joined #ruby
02:12
baordog has joined #ruby
02:13
atmosx has quit [Ping timeout: 246 seconds]
02:14
cmckee has joined #ruby
02:14
Kricir has joined #ruby
02:14
vt102 has quit [Remote host closed the connection]
02:14
cmxu has joined #ruby
02:14
cmxu has quit [Max SendQ exceeded]
02:15
nevans has quit [Ping timeout: 260 seconds]
02:15
george2 has quit [Ping timeout: 265 seconds]
02:15
A0v4 has quit [Ping timeout: 265 seconds]
02:15
hostess has quit [Remote host closed the connection]
02:16
agent_white has joined #ruby
02:16
Aova has joined #ruby
02:16
<
agent_white >
Good evening everyone
02:17
george2 has joined #ruby
02:18
St_Marx has quit [Ping timeout: 246 seconds]
02:18
end_guy_ has quit [Ping timeout: 246 seconds]
02:19
ndrei has joined #ruby
02:19
shemerey has joined #ruby
02:20
_lexjm has joined #ruby
02:20
_lexjm has quit [Max SendQ exceeded]
02:20
radic has quit [Disconnected by services]
02:21
radic_ has joined #ruby
02:22
hostess has joined #ruby
02:22
arup_r has joined #ruby
02:23
_lexjm has joined #ruby
02:24
Asher has quit [Quit: Leaving.]
02:27
laphlaw has quit [Ping timeout: 246 seconds]
02:29
DrCode has joined #ruby
02:29
nevans has joined #ruby
02:29
St_Marx has joined #ruby
02:30
Kricir has quit [Remote host closed the connection]
02:31
hostess has quit [Remote host closed the connection]
02:31
Kricir has joined #ruby
02:31
jaequery has joined #ruby
02:32
<
rkazak >
evening agent_white!
02:33
skolman_ has joined #ruby
02:33
jdj_dk has joined #ruby
02:35
Kricir has quit [Ping timeout: 255 seconds]
02:36
boombadaroomba has joined #ruby
02:37
baordog has quit [Ping timeout: 258 seconds]
02:37
hostess has joined #ruby
02:38
<
Nilium >
I gots a new keyboard
02:38
zzach has quit [Ping timeout: 245 seconds]
02:38
<
Nilium >
It's god damn loud
02:38
djbkd has quit [Remote host closed the connection]
02:38
d0ugb has joined #ruby
02:38
<
sevenseacat >
mechanical?
02:38
end_guy has joined #ruby
02:38
zzach has joined #ruby
02:38
magic_ has joined #ruby
02:39
<
agent_white >
<3 my Ducky. One you go mechanical, you never go back.
02:39
<
sevenseacat >
i have a nice logitech keyboard that everyone thinks is mechanical just because its louder than their little apple keyboards
02:39
troyready has quit [Ping timeout: 245 seconds]
02:40
<
Nilium >
sevenseacat: Yeah, buckling spring.
02:40
<
Nilium >
I use a Das Keyboard with blue switches in the office, but buckling spring is way louder
02:40
boombadaroomba has quit [Ping timeout: 240 seconds]
02:40
emmesswhy has joined #ruby
02:41
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
02:41
Kricir has joined #ruby
02:41
<
agent_white >
I use Cherry Browns. :)
02:41
d0ugb has quit [Remote host closed the connection]
02:41
<
Nilium >
One of my coworkers uses browns, but I don't really like typing on them
02:42
<
Nilium >
The buckling springs feel alright, though I admittedly like the more distinct feeling blues have
02:42
luriv has quit [Ping timeout: 240 seconds]
02:42
siwica has quit [Remote host closed the connection]
02:42
<
Nilium >
Browns just kind of felt soft
02:42
siwica has joined #ruby
02:43
srnty has joined #ruby
02:43
<
Nilium >
This unicomp keyboard has a similar feeling, but not as odd
02:43
sailias has quit [Quit: Leaving.]
02:44
srnty has quit [Remote host closed the connection]
02:44
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
02:44
beneggett has joined #ruby
02:45
Soda has quit [Remote host closed the connection]
02:46
qmfnp has joined #ruby
02:46
chipotle has quit [Quit: cya]
02:46
d0ugb has joined #ruby
02:47
d0ugb has quit [Remote host closed the connection]
02:47
sailias has joined #ruby
02:49
SilkFox has joined #ruby
02:50
knight1 has joined #ruby
02:51
jenrzzz has quit [Ping timeout: 256 seconds]
02:51
<
knight1 >
Any thoughts on how I can replace \227 in a string with ASCII-8BIT encoding (loaded from file) to a newline in UTF-8?
02:51
jenrzzz_ has quit [Ping timeout: 258 seconds]
02:51
siwica has quit [Ping timeout: 255 seconds]
02:52
qmfnp is now known as qmfnp_zzz
02:52
<
knight1 >
There seems to be no replacement for \227 from ASCII-8BIT (aka BINARY) to UTF-8 (i.e. when using File.open(path, "r:binary:utf-8"))
02:53
SilkFox has quit [Ping timeout: 272 seconds]
02:54
Numdox has quit [Ping timeout: 240 seconds]
02:54
az7ar_away is now known as az7ar
02:54
jack_rabbit has quit [Quit: Leaving]
02:55
jack_rabbit has joined #ruby
02:55
atmosx has joined #ruby
02:55
jdj_dk has quit [Ping timeout: 265 seconds]
02:56
ARCADIVS has joined #ruby
02:56
shemerey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
02:56
Numdox has joined #ruby
02:57
iinzg has joined #ruby
02:59
wallerdev has quit [Quit: wallerdev]
02:59
chipotle has joined #ruby
03:02
d0ugb has joined #ruby
03:03
VanillaGoat__ has joined #ruby
03:04
baordog has joined #ruby
03:05
d0ugb has quit [Remote host closed the connection]
03:05
braincrash has quit [Quit: bye bye]
03:07
VanillaGoat_ has quit [Ping timeout: 255 seconds]
03:08
valeriansaliou has joined #ruby
03:08
<
eam >
knight1: huh, it looks like ruby's RE engine doesn't do bytes?
03:08
<
eam >
there's the stupid way:
03:08
<
eam >
>> "aaa\227bbb".each_byte.map { |b| b == 0227 ? ?\n : b.chr }.join
03:09
<
eam >
or use something other than oniguruma? like maybe a PCRE gem?
03:10
braincrash has joined #ruby
03:10
coderhs has joined #ruby
03:10
d0ugb has joined #ruby
03:12
valeriansaliou has quit [Ping timeout: 244 seconds]
03:13
d0ugb has quit [Remote host closed the connection]
03:14
jimbach has quit [Remote host closed the connection]
03:15
emmesswhy has quit [Quit: Leaving]
03:15
Kricir has quit [Remote host closed the connection]
03:16
ghostmoth has joined #ruby
03:16
Kricir has joined #ruby
03:18
crampa has joined #ruby
03:18
hamakn has quit [Read error: Connection reset by peer]
03:18
ac-jlima has joined #ruby
03:18
cndiv has joined #ruby
03:18
hamakn has joined #ruby
03:18
<
crampa >
how come 2 false && statements are false?
03:18
<
crampa >
how could we say that it's true that 2 statements are false?
03:19
<
crampa >
well, you know if 1 && 2 == true then the answer is true
03:20
<
crampa >
but if 1 && 2 are both false, isn't it true that they're both false?
03:20
Kricir has quit [Ping timeout: 246 seconds]
03:20
<
sevenseacat >
((false && false) == false) will return true, yes.
03:21
iamjarvo has joined #ruby
03:22
jdj_dk has joined #ruby
03:23
Fire-Dragon-DoL has quit [Ping timeout: 255 seconds]
03:24
Eiam_ has joined #ruby
03:25
i_s has joined #ruby
03:25
<
crampa >
sevenseacat: it returns false, but i want it to return true
03:25
d0ugb has joined #ruby
03:25
Eiam_ has quit [Client Quit]
03:25
<
sevenseacat >
it does not return false.
03:25
<
crampa >
you can do !value && !other_value
03:26
<
crampa >
if they're both false, to return true
03:26
<
crampa >
some other guys helped me, i hope this helps :)
03:26
chrishough has joined #ruby
03:27
Eiam_ has joined #ruby
03:27
<
sevenseacat >
i... dont know what to say to that.
03:27
Eiam has quit [Disconnected by services]
03:27
hatzopoulos has quit [Quit: Leaving]
03:27
Eiam_ is now known as Eiam
03:28
jenrzzz has joined #ruby
03:28
d0ugb has quit [Remote host closed the connection]
03:28
jenrzzz_ has joined #ruby
03:29
jdj_dk_ has joined #ruby
03:29
i_s has quit [Ping timeout: 244 seconds]
03:29
sbar_ has quit [Ping timeout: 244 seconds]
03:31
jdj_dk has quit [Ping timeout: 244 seconds]
03:31
chipotle has quit [Quit: cya]
03:32
az7ar is now known as az7ar_away
03:32
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
03:34
Hobogrammer_ has joined #ruby
03:34
mikeg has joined #ruby
03:35
d0ugb has joined #ruby
03:36
maestrojed has quit [Quit: Computer has gone to sleep.]
03:36
Hobogrammer has quit [Ping timeout: 256 seconds]
03:37
j_mcnally has joined #ruby
03:38
d0ugb has quit [Remote host closed the connection]
03:40
aspires has quit []
03:40
Numdox has quit [Ping timeout: 245 seconds]
03:41
Numdox has joined #ruby
03:41
teejar has quit [Ping timeout: 255 seconds]
03:42
benzrf is now known as benzrf|offline
03:43
chipotle has joined #ruby
03:44
Photism has quit [Quit: Leaving]
03:45
klmlfl has joined #ruby
03:46
garbanotas has joined #ruby
03:47
iamjarvo has joined #ruby
03:49
shemerey has joined #ruby
03:50
SilkFox has joined #ruby
03:51
ejnahc has quit [Remote host closed the connection]
03:52
ejnahc has joined #ruby
03:52
byprdct has joined #ruby
03:54
it0a has quit [Ping timeout: 244 seconds]
03:54
SilkFox has quit [Ping timeout: 260 seconds]
03:55
d0ugb has joined #ruby
03:55
echooo has joined #ruby
03:55
d0ugb has quit [Remote host closed the connection]
03:55
az7ar_away is now known as az7ar
03:56
teejar has joined #ruby
03:56
jdj_dk_ has quit [Ping timeout: 258 seconds]
03:59
agrinb has quit [Remote host closed the connection]
04:00
teejar has quit [Ping timeout: 240 seconds]
04:00
byprdct has quit [Ping timeout: 265 seconds]
04:02
MOZZARELLA is now known as mozzarella
04:02
sailias has quit [Quit: Leaving.]
04:03
thumpba_ has joined #ruby
04:04
byprdct has joined #ruby
04:04
d0ugb has joined #ruby
04:05
shemerey has quit [Ping timeout: 256 seconds]
04:07
thumpba has quit [Ping timeout: 260 seconds]
04:07
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
04:07
d0ugb has quit [Remote host closed the connection]
04:08
teejar has joined #ruby
04:09
sinequanon has joined #ruby
04:09
agrinb has joined #ruby
04:11
echooo has quit [Ping timeout: 260 seconds]
04:11
echooo1 has joined #ruby
04:12
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
04:13
agrinb has quit [Remote host closed the connection]
04:16
chipotle has quit [Read error: Connection reset by peer]
04:16
chipotle has joined #ruby
04:17
techsethi has joined #ruby
04:17
spastorino has quit [Quit: Connection closed for inactivity]
04:18
arescorpio has quit [Excess Flood]
04:21
sirene has quit [Remote host closed the connection]
04:21
cleopatra has quit [Remote host closed the connection]
04:22
jdj_dk has joined #ruby
04:25
jasooon has joined #ruby
04:26
tonini has joined #ruby
04:26
Paradox has quit [Ping timeout: 272 seconds]
04:29
jaequery has joined #ruby
04:31
kyb3r_ has joined #ruby
04:31
crampa has quit [Ping timeout: 246 seconds]
04:32
duncannz has joined #ruby
04:36
d0ugb has joined #ruby
04:38
maletor has joined #ruby
04:38
d0ugb has quit [Remote host closed the connection]
04:40
tskogberg has quit [Ping timeout: 245 seconds]
04:40
kp666 has joined #ruby
04:44
kp666 has quit [Read error: Connection reset by peer]
04:45
jdj_dk has quit [Ping timeout: 244 seconds]
04:45
hobodave has quit [Quit: Computer has gone to sleep.]
04:46
kp666 has joined #ruby
04:46
Spami has joined #ruby
04:47
jasooon has quit [Ping timeout: 244 seconds]
04:47
jdj_dk has joined #ruby
04:47
JBreit has joined #ruby
04:48
JBreit has quit [Max SendQ exceeded]
04:49
guinsly has joined #ruby
04:49
JBreit has joined #ruby
04:49
guinsly is now known as fr-canadian
04:50
lukehold_ has quit [Read error: Connection reset by peer]
04:51
SilkFox has joined #ruby
04:52
JBreit has quit [Max SendQ exceeded]
04:52
nonks has quit [Ping timeout: 240 seconds]
04:52
JBreit has joined #ruby
04:53
jdj_dk has quit [Ping timeout: 260 seconds]
04:53
Morkel has joined #ruby
04:54
djbkd has joined #ruby
04:54
lukeholder has joined #ruby
04:56
SilkFox has quit [Ping timeout: 260 seconds]
04:56
valeriansaliou has joined #ruby
04:57
bluOxigen has joined #ruby
04:58
mary5030 has joined #ruby
04:59
parabolize has joined #ruby
05:01
valeriansaliou has quit [Ping timeout: 272 seconds]
05:03
Kricir has joined #ruby
05:03
jimbach has joined #ruby
05:06
larissa has quit [Quit: Leaving]
05:07
jimbach has quit [Ping timeout: 240 seconds]
05:09
agjacome has quit [Quit: leaving]
05:09
linojon has quit [Quit: linojon]
05:12
ramfjord has quit [Ping timeout: 244 seconds]
05:13
nfk has joined #ruby
05:13
i_s has joined #ruby
05:14
maletor has quit [Quit: Computer has gone to sleep.]
05:16
byprdct has quit [Ping timeout: 258 seconds]
05:18
Pupeno_ has joined #ruby
05:18
jdj_dk has joined #ruby
05:18
Cheezebox has quit [Remote host closed the connection]
05:18
i_s has quit [Ping timeout: 250 seconds]
05:18
yetanotherdave has quit [Quit: Lost terminal]
05:20
Channel6 has quit [Quit: Leaving]
05:20
Pupeno has quit [Ping timeout: 265 seconds]
05:21
t_mmyv has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
05:22
Eiam has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
05:24
theotherstupidgu has quit [Quit: leaving]
05:24
mercwithamouth has joined #ruby
05:25
ta has quit [Remote host closed the connection]
05:25
sigurding has joined #ruby
05:26
arup_r has quit [Quit: Leaving.]
05:27
chipotle has quit [Quit: cya]
05:28
Morkel_ has joined #ruby
05:28
Morkel has quit [Ping timeout: 244 seconds]
05:28
Morkel_ is now known as Morkel
05:29
Kricir has quit [Remote host closed the connection]
05:29
Kricir has joined #ruby
05:30
theotherstupidgu has joined #ruby
05:31
ylluminarious has quit [Quit: Leaving...]
05:32
mikeg has quit [Remote host closed the connection]
05:33
ghostmoth has quit [Quit: ghostmoth]
05:33
krz has joined #ruby
05:33
hanmac1 has joined #ruby
05:34
Kricir has quit [Ping timeout: 258 seconds]
05:34
oleo has quit [Quit: Verlassend]
05:34
jdj_dk has quit [Read error: Connection reset by peer]
05:34
Wolland_ has quit [Remote host closed the connection]
05:34
popl has joined #ruby
05:34
popl has joined #ruby
05:36
theother1tupidgu has joined #ruby
05:37
Avahey has quit [Quit: Connection closed for inactivity]
05:38
ramfjord has joined #ruby
05:40
duncannz has quit [Remote host closed the connection]
05:41
theother1tupidgu has quit [Client Quit]
05:41
theotherstupidgu has quit [Quit: leaving]
05:41
theother1tupidgu has joined #ruby
05:41
theother1tupidgu is now known as theotherstupidgu
05:43
ramfjord has quit [Ping timeout: 272 seconds]
05:44
byprdct has joined #ruby
05:44
byprdct has quit [Client Quit]
05:45
Pupeno has joined #ruby
05:45
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
05:45
ylluminarious has joined #ruby
05:46
klmlfl has quit [Remote host closed the connection]
05:47
Pupeno_ has quit [Ping timeout: 244 seconds]
05:49
az7ar is now known as az7ar_away
05:49
timonv_ has joined #ruby
05:49
cndiv has quit [Ping timeout: 245 seconds]
05:51
SilkFox has joined #ruby
05:52
codecop has joined #ruby
05:54
mary5030 has quit [Remote host closed the connection]
05:56
last_staff has joined #ruby
05:56
SilkFox has quit [Ping timeout: 244 seconds]
05:59
ylluminarious has quit [Quit: Leaving...]
06:01
fabrice31 has joined #ruby
06:01
duncannz has joined #ruby
06:04
jdj_dk has joined #ruby
06:05
valeriansaliou has joined #ruby
06:06
theotherstupidgu has quit [Ping timeout: 244 seconds]
06:06
monsieur1 has joined #ruby
06:07
starkhallo has joined #ruby
06:07
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
06:07
Xiti` has joined #ruby
06:07
Xiti` has quit [Read error: Connection reset by peer]
06:07
Sutffness has joined #ruby
06:07
starkhalo has quit [Read error: Connection reset by peer]
06:07
Xiti` has joined #ruby
06:07
Macaveli has joined #ruby
06:07
kamil has joined #ruby
06:08
matled- has joined #ruby
06:08
nemesit|znc has quit [Ping timeout: 260 seconds]
06:08
nichtdiebohne has joined #ruby
06:08
chrishough has quit [Ping timeout: 272 seconds]
06:08
chridal has quit [Ping timeout: 260 seconds]
06:09
elaptic`` has joined #ruby
06:09
valeriansaliou has quit [Ping timeout: 260 seconds]
06:09
gogiel_ has joined #ruby
06:09
weaksauce has quit [Ping timeout: 250 seconds]
06:10
monsieurp has quit [Ping timeout: 272 seconds]
06:10
Roa has quit [Ping timeout: 272 seconds]
06:10
Stuffness has quit [Ping timeout: 272 seconds]
06:10
aep has quit [Ping timeout: 272 seconds]
06:10
Norrin has quit [Ping timeout: 260 seconds]
06:10
leslie has quit [Ping timeout: 260 seconds]
06:10
nichtdiebohne1 has quit [Ping timeout: 260 seconds]
06:10
elaptics`away has quit [Ping timeout: 260 seconds]
06:10
s_e has quit [Ping timeout: 260 seconds]
06:10
Roa has joined #ruby
06:10
aboudreault has quit [Ping timeout: 265 seconds]
06:10
mnms_ has quit [Ping timeout: 260 seconds]
06:10
mbr has quit [Ping timeout: 260 seconds]
06:10
preller has quit [Ping timeout: 260 seconds]
06:10
jeekl has quit [Ping timeout: 260 seconds]
06:10
nemesit|znc has joined #ruby
06:10
soahccc has quit [Ping timeout: 260 seconds]
06:10
digital-ghost has quit [Ping timeout: 260 seconds]
06:10
heyimwill has quit [Ping timeout: 260 seconds]
06:10
bascht has quit [Ping timeout: 260 seconds]
06:10
matti has quit [Ping timeout: 260 seconds]
06:10
gogiel has quit [Ping timeout: 260 seconds]
06:10
oddraisin has quit [Ping timeout: 260 seconds]
06:10
matrixise has quit [Ping timeout: 260 seconds]
06:10
majoh has quit [Ping timeout: 260 seconds]
06:10
jxport has quit [Ping timeout: 260 seconds]
06:10
Rydekull has quit [Ping timeout: 260 seconds]
06:10
pmarreck has quit [Ping timeout: 260 seconds]
06:10
thisguy123 has joined #ruby
06:10
Xiti has quit [Ping timeout: 250 seconds]
06:10
RoryHughes has quit [Ping timeout: 272 seconds]
06:11
soahccc_ has joined #ruby
06:11
danoo has quit [Ping timeout: 260 seconds]
06:11
aep has joined #ruby
06:11
matrixise has joined #ruby
06:11
chrishough has joined #ruby
06:11
Meeh has quit [Quit: No Ping reply in 180 seconds.]
06:11
matti has joined #ruby
06:11
QKO_ has joined #ruby
06:11
lukeholder has quit [Ping timeout: 272 seconds]
06:11
QKO has quit [Ping timeout: 272 seconds]
06:11
lsmola has quit [Ping timeout: 272 seconds]
06:11
wang has quit [Ping timeout: 272 seconds]
06:11
matled has quit [Ping timeout: 272 seconds]
06:11
tkuchiki has quit [Ping timeout: 272 seconds]
06:11
kaichanvong has quit [Ping timeout: 272 seconds]
06:11
blueOxigen has joined #ruby
06:11
Scotteh has joined #ruby
06:12
bauruine has quit [Ping timeout: 260 seconds]
06:12
DefV_ has joined #ruby
06:12
jeekl has joined #ruby
06:12
Meeh has joined #ruby
06:12
DefV has quit [Ping timeout: 260 seconds]
06:12
sinequanon has quit []
06:12
matled has joined #ruby
06:12
lukeholder has joined #ruby
06:12
chridal has joined #ruby
06:12
wang has joined #ruby
06:13
pmarreck_ has joined #ruby
06:13
Morrolan has quit [Ping timeout: 260 seconds]
06:13
Vile` has quit [Ping timeout: 272 seconds]
06:13
theotherstupidgu has joined #ruby
06:13
Scub has quit [Ping timeout: 272 seconds]
06:13
mbr has joined #ruby
06:13
s_e has joined #ruby
06:13
timonv_ has quit [Remote host closed the connection]
06:13
huddy_ has joined #ruby
06:13
matled- has quit [Ping timeout: 260 seconds]
06:13
huddy has quit [Ping timeout: 260 seconds]
06:13
marlonandrade has quit [Ping timeout: 260 seconds]
06:14
huddy_ is now known as huddy
06:14
lukeholder has quit [Max SendQ exceeded]
06:14
Morrolan has joined #ruby
06:14
Mia has quit [Read error: No route to host]
06:14
timonv_ has joined #ruby
06:14
tkuchiki has joined #ruby
06:14
i_s has joined #ruby
06:14
valeriansaliou has joined #ruby
06:14
nemesit|znc has quit [Ping timeout: 260 seconds]
06:15
Mia has joined #ruby
06:15
Mia has quit [Changing host]
06:15
Mia has joined #ruby
06:15
heyimwill has joined #ruby
06:15
Vile` has joined #ruby
06:15
marlonandrade has joined #ruby
06:15
bal has joined #ruby
06:15
preller has joined #ruby
06:16
AlexRussia has quit [Ping timeout: 250 seconds]
06:16
kaichanvong has joined #ruby
06:16
bluOxigen has quit [Ping timeout: 260 seconds]
06:16
majoh has joined #ruby
06:16
mnms_ has joined #ruby
06:16
bascht has joined #ruby
06:16
lukeholder has joined #ruby
06:16
RoryHughes has joined #ruby
06:16
jxport has joined #ruby
06:16
jenrzzz_ has quit [Ping timeout: 244 seconds]
06:16
jenrzzz has quit [Ping timeout: 258 seconds]
06:17
lsmola has joined #ruby
06:17
aboudreault has joined #ruby
06:17
Macaveli has quit [Ping timeout: 265 seconds]
06:18
timonv_ has quit [Ping timeout: 245 seconds]
06:18
lukeholder has quit [Max SendQ exceeded]
06:18
Rydekull has joined #ruby
06:19
i_s has quit [Ping timeout: 244 seconds]
06:19
lukeholder has joined #ruby
06:20
charliesome has quit [Quit: zzz]
06:20
lukeholder has quit [Max SendQ exceeded]
06:21
Norrin has joined #ruby
06:22
rubie has quit [Ping timeout: 246 seconds]
06:23
doev has joined #ruby
06:23
Paradox has joined #ruby
06:23
ramfjord has joined #ruby
06:23
testcore has joined #ruby
06:24
leslie has joined #ruby
06:24
leslie has quit [Changing host]
06:24
leslie has joined #ruby
06:25
bauruine has joined #ruby
06:26
User458764 has joined #ruby
06:26
bigkevmcd has joined #ruby
06:27
_JohnBat26_ has joined #ruby
06:29
lukeholder has joined #ruby
06:29
thisguy123 has quit [Ping timeout: 255 seconds]
06:29
heyimwill has quit [Ping timeout: 260 seconds]
06:29
jdj_dk has quit [Ping timeout: 265 seconds]
06:30
lukeholder has quit [Max SendQ exceeded]
06:30
leslie has quit [Max SendQ exceeded]
06:31
leslie has joined #ruby
06:31
<
knight1 >
There seems to be no replacement for \227 from ASCII-8BIT (aka BINARY) to UTF-8 (i.e. when using File.open(path, "r:binary:utf-8"))
06:31
lukeholder has joined #ruby
06:31
doev has quit [Ping timeout: 265 seconds]
06:32
jenrzzz has joined #ruby
06:32
jenrzzz_ has joined #ruby
06:32
doev has joined #ruby
06:32
lukeholder has quit [Max SendQ exceeded]
06:34
arya_ has joined #ruby
06:35
_JohnBat26_ has joined #ruby
06:35
_JohnBat26_ has quit [Client Quit]
06:35
Wolland has joined #ruby
06:35
_JohnBat26_ has joined #ruby
06:35
ramfjord has quit [Ping timeout: 258 seconds]
06:35
leslie has quit [Ping timeout: 260 seconds]
06:36
_JohnBat26_ has quit [Client Quit]
06:36
nrsk has joined #ruby
06:36
echooo1 has quit [Ping timeout: 255 seconds]
06:37
arya_ching has joined #ruby
06:37
gauke has joined #ruby
06:38
danoo has joined #ruby
06:38
lukeholder has joined #ruby
06:38
boombadaroomba has joined #ruby
06:38
lukeholder has quit [Client Quit]
06:39
arya_ has quit [Ping timeout: 258 seconds]
06:39
mitt3ns has joined #ruby
06:39
agent_white has quit [Ping timeout: 260 seconds]
06:39
Scub has joined #ruby
06:40
bauruine_ has quit [Ping timeout: 265 seconds]
06:40
bauruine has quit [Ping timeout: 260 seconds]
06:40
RoryHughes has quit [Ping timeout: 265 seconds]
06:41
marr has joined #ruby
06:41
aganov has joined #ruby
06:41
Wolland has quit [Ping timeout: 258 seconds]
06:41
chridal has quit [Ping timeout: 272 seconds]
06:42
nrsk has quit [Ping timeout: 256 seconds]
06:42
boombadaroomba has quit [Ping timeout: 258 seconds]
06:42
tonini_ has joined #ruby
06:42
starkhallo has quit [Ping timeout: 244 seconds]
06:43
RoryHughes has joined #ruby
06:43
chridal has joined #ruby
06:44
valeriansaliou has quit [Quit: Be back later ...]
06:44
okic has quit [Ping timeout: 260 seconds]
06:44
wang has quit [Ping timeout: 260 seconds]
06:44
okic has joined #ruby
06:44
sinkensabe has joined #ruby
06:45
tonini has quit [Ping timeout: 250 seconds]
06:45
arya_ching has quit [Ping timeout: 246 seconds]
06:45
ht__th has joined #ruby
06:45
tonini_ is now known as tonini
06:46
bjornar has quit [Remote host closed the connection]
06:47
RoryHughes has quit [Ping timeout: 244 seconds]
06:48
Macaveli has joined #ruby
06:48
charliesome has joined #ruby
06:49
parabolize has quit [Read error: Connection reset by peer]
06:49
bauruine has joined #ruby
06:50
andikr has joined #ruby
06:50
sevenseacat has left #ruby [#ruby]
06:50
sevenseacat has joined #ruby
06:50
Spami has quit [Quit: This computer has gone to sleep]
06:50
sevenseacat has left #ruby [#ruby]
06:51
tylersmith has quit [Remote host closed the connection]
06:51
renderful has joined #ruby
06:51
yfeldblum has quit [Ping timeout: 265 seconds]
06:52
jimbach has joined #ruby
06:52
SilkFox has joined #ruby
06:52
wang has joined #ruby
06:52
wang has quit [Changing host]
06:52
wang has joined #ruby
06:54
iliketurtles has joined #ruby
06:54
danijoo_ has joined #ruby
06:55
jdj_dk has joined #ruby
06:56
renderful has quit [Ping timeout: 255 seconds]
06:56
klaut has joined #ruby
06:56
agent_white has joined #ruby
06:56
SilkFox has quit [Ping timeout: 245 seconds]
06:57
jimbach has quit [Ping timeout: 265 seconds]
06:57
danijoo has quit [Ping timeout: 250 seconds]
06:57
abuzze has joined #ruby
06:59
banister_ has joined #ruby
06:59
banister_ has quit [Max SendQ exceeded]
06:59
JohnBat26 has joined #ruby
06:59
graft_ has joined #ruby
06:59
graft_ has joined #ruby
06:59
banister_ has joined #ruby
06:59
nrsk has joined #ruby
06:59
shaman42_ has joined #ruby
06:59
csmrfx_ has joined #ruby
07:00
FDj_ has joined #ruby
07:00
djbkd has quit [Quit: My people need me...]
07:00
mnms__ has joined #ruby
07:00
Andriama1itra has joined #ruby
07:00
gregf1 has joined #ruby
07:00
ruisanto1 has joined #ruby
07:00
sevenseacat has joined #ruby
07:01
ihme-TTilus has joined #ruby
07:01
dr_tobog1an has joined #ruby
07:01
Doc_IX has joined #ruby
07:01
drager_ has joined #ruby
07:02
Macaveli has joined #ruby
07:02
nonks has joined #ruby
07:04
billy_ran_away_ has joined #ruby
07:04
vlad_sta- has joined #ruby
07:04
p8952_ has joined #ruby
07:05
ta has joined #ruby
07:05
Wolland has joined #ruby
07:05
mitt3ns has quit [*.net *.split]
07:05
mnms_ has quit [*.net *.split]
07:05
hellangel7 has quit [*.net *.split]
07:05
banister has quit [*.net *.split]
07:05
linduxed has quit [*.net *.split]
07:05
FDj has quit [*.net *.split]
07:05
graft has quit [*.net *.split]
07:05
taptapdan has quit [*.net *.split]
07:05
nuck has quit [*.net *.split]
07:05
hackeron has quit [*.net *.split]
07:05
billy_ran_away has quit [*.net *.split]
07:05
Akuma has quit [*.net *.split]
07:05
drager has quit [*.net *.split]
07:05
alexherbo2 has quit [*.net *.split]
07:05
dr_toboggan has quit [*.net *.split]
07:05
TTilus has quit [*.net *.split]
07:05
bauruine has quit [*.net *.split]
07:05
gregf has quit [*.net *.split]
07:05
shevy has quit [*.net *.split]
07:05
artmann has quit [*.net *.split]
07:05
Sammael has quit [*.net *.split]
07:05
p8952 has quit [*.net *.split]
07:05
sjohnsen has quit [*.net *.split]
07:05
vlad_starkov has quit [*.net *.split]
07:05
tobiasvl has quit [*.net *.split]
07:05
Synthead has quit [*.net *.split]
07:05
ckrailo has quit [*.net *.split]
07:05
mclee has quit [*.net *.split]
07:05
charles81 has quit [*.net *.split]
07:05
ruisantos has quit [*.net *.split]
07:05
ewilliam has quit [*.net *.split]
07:05
ujjain has quit [*.net *.split]
07:05
incomprehensibly has quit [*.net *.split]
07:05
jeregrine has quit [*.net *.split]
07:05
Doc_X has quit [*.net *.split]
07:05
csmrfx has quit [*.net *.split]
07:05
shaman42 has quit [*.net *.split]
07:05
Andriamanitra has quit [*.net *.split]
07:06
shevy has joined #ruby
07:06
nuck has joined #ruby
07:07
hackeron has joined #ruby
07:09
Spami has joined #ruby
07:10
echooo has joined #ruby
07:10
leslie has joined #ruby
07:11
bjornar has joined #ruby
07:11
hellangel7 has joined #ruby
07:11
Synthead has joined #ruby
07:12
Akuma has joined #ruby
07:12
Wolland has quit [Ping timeout: 272 seconds]
07:12
Paradox has quit [Quit: off to herp the derps]
07:13
mclee has joined #ruby
07:13
alexherbo2 has joined #ruby
07:13
linduxed has joined #ruby
07:13
rkazak has left #ruby [#ruby]
07:13
charliesome has quit [Quit: zzz]
07:15
monsieur1 is now known as monsieurp
07:15
monsieurp has quit [Changing host]
07:15
monsieurp has joined #ruby
07:15
iliketurtles has quit [Read error: Connection reset by peer]
07:15
iliketurtles has joined #ruby
07:16
skolman_ has quit [Remote host closed the connection]
07:16
terlar has quit [Quit: WeeChat 1.0.1]
07:16
skolman has joined #ruby
07:17
Paradox has joined #ruby
07:18
jdj_dk has quit [Ping timeout: 255 seconds]
07:19
tatsuo has joined #ruby
07:20
jasonzzz_ has joined #ruby
07:20
jasonzzz_ has quit [Max SendQ exceeded]
07:21
skolman has quit [Ping timeout: 272 seconds]
07:22
timonv_ has joined #ruby
07:23
Xeago has joined #ruby
07:24
robbyoconnor has joined #ruby
07:24
RoryHughes has joined #ruby
07:25
User458764 has quit [Ping timeout: 258 seconds]
07:25
chipotle has joined #ruby
07:27
valeriansaliou has joined #ruby
07:29
techsethi has quit [Quit: techsethi]
07:31
ephemerian has joined #ruby
07:31
timonv_ has quit [Remote host closed the connection]
07:32
timonv_ has joined #ruby
07:33
arya_ching has joined #ruby
07:33
timonv^ has joined #ruby
07:34
tagrudev has joined #ruby
07:34
sk87 has joined #ruby
07:34
doev has quit [Ping timeout: 255 seconds]
07:34
asmodlol has joined #ruby
07:34
doev has joined #ruby
07:35
valeriansaliou has quit [Quit: Bye.]
07:36
mengu has joined #ruby
07:36
mengu has joined #ruby
07:36
timonv_ has quit [Ping timeout: 244 seconds]
07:37
sepp2k has joined #ruby
07:38
aspiers has quit [Ping timeout: 260 seconds]
07:38
huddy has quit [Quit: Connection closed for inactivity]
07:38
eam has quit [Ping timeout: 240 seconds]
07:39
tatsuo has quit [Remote host closed the connection]
07:39
aspiers has joined #ruby
07:39
c107 has quit [Remote host closed the connection]
07:39
<
agent_white >
Heya!
07:40
eam has joined #ruby
07:40
iliketurtles has quit [Quit: zzzzz…..]
07:41
wpp has joined #ruby
07:43
VanillaGoat has joined #ruby
07:43
valeriansaliou has joined #ruby
07:43
jdj_dk has joined #ruby
07:44
wpp has quit [Client Quit]
07:44
xymbol has quit [Read error: Connection reset by peer]
07:44
alex88 has joined #ruby
07:44
VanillaGoat__ has quit [Ping timeout: 265 seconds]
07:44
tatsuo_ has joined #ruby
07:45
wpp has joined #ruby
07:45
xymbol has joined #ruby
07:45
testcore has quit [Ping timeout: 246 seconds]
07:46
flippeen has joined #ruby
07:46
User458764 has joined #ruby
07:47
arya_ching has quit []
07:48
HelperW has joined #ruby
07:48
robbyoconnor has quit [Remote host closed the connection]
07:50
robbyoconnor has joined #ruby
07:51
bauruine has joined #ruby
07:53
SilkFox has joined #ruby
07:54
echooo has quit [Remote host closed the connection]
07:55
<
pontiki >
hello agent_white
07:55
weemsledeux has joined #ruby
07:56
jenrzzz_ has quit [Quit: leaving]
07:56
jenrzzz has quit [Quit: leaving]
07:57
jenrzzz has joined #ruby
07:57
chipotle has quit [Quit: cya]
07:57
SilkFox has quit [Ping timeout: 250 seconds]
07:57
robbyoconnor has quit [Ping timeout: 265 seconds]
07:58
zakiazigazi has joined #ruby
07:58
Guest33740 is now known as lnong
07:59
jenrzzz has quit [Client Quit]
08:00
mikecmpbll has joined #ruby
08:00
segmond has quit [Ping timeout: 255 seconds]
08:00
qba73 has joined #ruby
08:01
jdj_dk has quit [Read error: Connection reset by peer]
08:01
Darryl has quit [Quit: Connection closed for inactivity]
08:02
zakiazigazi has quit [Client Quit]
08:02
jenrzzz has joined #ruby
08:02
jheg has joined #ruby
08:03
i_s has joined #ruby
08:03
aspiers has quit [Ping timeout: 272 seconds]
08:03
mozzarella has quit [Quit: WeeChat 0.4.3]
08:03
jenrzzz has quit [Client Quit]
08:04
mozzarella has joined #ruby
08:05
mozzarella has quit [Client Quit]
08:05
bauruine_ has joined #ruby
08:05
* agent_white
hugs pontiki
08:05
mozzarella has joined #ruby
08:06
thsig has joined #ruby
08:06
* pontiki
hugs back
08:06
<
pontiki >
how's things, agent_white ?
08:07
<
agent_white >
Well enough! I can't complain. How about you pontiki?
08:08
<
pontiki >
well, it's 3am and i'm awake
08:08
jacobat has joined #ruby
08:08
niklasb has joined #ruby
08:08
Wolland has joined #ruby
08:08
i_s has quit [Ping timeout: 258 seconds]
08:09
<
agent_white >
Me too :) 2am here.
08:09
<
knight1 >
There seems to be no replacement for \227 from ASCII-8BIT (aka BINARY) to UTF-8 (i.e. when using File.open(path, "r:binary:utf-8"))
08:10
sigurding has quit [Quit: sigurding]
08:10
<
sevenseacat >
so you keep saying
08:10
tskogberg has joined #ruby
08:11
hellangel7 has quit [Remote host closed the connection]
08:12
poulet_a has joined #ruby
08:13
Wolland has quit [Ping timeout: 272 seconds]
08:13
segmond has joined #ruby
08:13
<
knight1 >
string.bytes.map { |b| b == from_code ? to_code : b }.pack('C*') that seemed to fix it for me
08:14
flippeen has quit [Quit: Leaving...]
08:14
doev has quit [Ping timeout: 250 seconds]
08:14
doev has joined #ruby
08:15
<
hanmac1 >
knight1: what OS ?
08:16
mikecmpb_ has joined #ruby
08:18
doev has quit [Client Quit]
08:18
jenrzzz has joined #ruby
08:19
mityaz has joined #ruby
08:19
mikecmpbll has quit [Ping timeout: 255 seconds]
08:19
Takle has joined #ruby
08:19
Sammael has joined #ruby
08:19
ewilliam has joined #ruby
08:19
incomprehensibly has joined #ruby
08:19
ckrailo has joined #ruby
08:19
tobiasvl has joined #ruby
08:19
artmann has joined #ruby
08:19
ujjain has joined #ruby
08:19
jeregrine has joined #ruby
08:19
heyimwill has joined #ruby
08:19
charles81 has joined #ruby
08:19
kaspergrubbe has joined #ruby
08:20
parduse has quit [Killed (orwell.freenode.net (Nickname regained by services))]
08:20
cek has left #ruby [#ruby]
08:21
parduse has joined #ruby
08:21
decoponio has joined #ruby
08:21
Spami has quit [Quit: This computer has gone to sleep]
08:23
sigurding has joined #ruby
08:23
asmodlol has quit [Quit: Leaving]
08:24
jenrzzz has quit [Quit: leaving]
08:25
charliesome has joined #ruby
08:26
jenrzzz has joined #ruby
08:26
jenrzzz has quit [Client Quit]
08:26
jack_rabbit has quit [Ping timeout: 240 seconds]
08:28
jenrzzz has joined #ruby
08:29
jenrzzz has quit [Client Quit]
08:29
tatsuo_ is now known as tatsuo
08:29
jenrzzz has joined #ruby
08:30
jenrzzz has quit [Client Quit]
08:30
heyimwill has quit [*.net *.split]
08:30
artmann has quit [*.net *.split]
08:30
Sammael has quit [*.net *.split]
08:30
tobiasvl has quit [*.net *.split]
08:30
ckrailo has quit [*.net *.split]
08:30
charles81 has quit [*.net *.split]
08:30
ewilliam has quit [*.net *.split]
08:30
ujjain has quit [*.net *.split]
08:30
incomprehensibly has quit [*.net *.split]
08:30
jeregrine has quit [*.net *.split]
08:30
einarj has joined #ruby
08:31
jdj_dk has joined #ruby
08:32
jenrzzz has joined #ruby
08:34
niklasb has quit [Ping timeout: 245 seconds]
08:34
theotherstupidgu has quit [Quit: leaving]
08:35
theotherstupidgu has joined #ruby
08:35
<
theotherstupidgu >
hi
08:35
heyimwill has joined #ruby
08:35
artmann has joined #ruby
08:35
Sammael has joined #ruby
08:35
ujjain has joined #ruby
08:35
tobiasvl has joined #ruby
08:35
ewilliam has joined #ruby
08:35
jeregrine has joined #ruby
08:35
ckrailo has joined #ruby
08:35
incomprehensibly has joined #ruby
08:35
charles81 has joined #ruby
08:36
Xeago_ has joined #ruby
08:36
ruby-lang106 has joined #ruby
08:36
jhass|off is now known as jhass
08:36
ruby-lang106 has quit [Client Quit]
08:37
ruby041 has joined #ruby
08:37
Mia has quit [Read error: Connection reset by peer]
08:40
jenrzzz has quit [Quit: leaving]
08:40
Xeago has quit [Ping timeout: 245 seconds]
08:40
jenrzzz has joined #ruby
08:40
jenrzzz has quit [Client Quit]
08:40
ayaz has joined #ruby
08:41
jimbach has joined #ruby
08:41
poulet_a_ has joined #ruby
08:41
ruby041 has quit [Ping timeout: 246 seconds]
08:41
poulet_a_ has quit [Client Quit]
08:42
jenrzzz has joined #ruby
08:42
kristofferR has joined #ruby
08:42
ixti has joined #ruby
08:42
lolmaus has joined #ruby
08:43
jenrzzz has quit [Client Quit]
08:43
nonks has quit [Read error: Connection reset by peer]
08:44
niklasb has joined #ruby
08:45
cherwin_ has joined #ruby
08:45
yfeldblum has joined #ruby
08:45
dumdedum has quit [Quit: foo]
08:45
livathinos has joined #ruby
08:45
jimbach has quit [Ping timeout: 244 seconds]
08:46
joonty has joined #ruby
08:46
heyimwill has quit [*.net *.split]
08:46
artmann has quit [*.net *.split]
08:46
Sammael has quit [*.net *.split]
08:46
tobiasvl has quit [*.net *.split]
08:46
ckrailo has quit [*.net *.split]
08:46
charles81 has quit [*.net *.split]
08:46
ewilliam has quit [*.net *.split]
08:46
ujjain has quit [*.net *.split]
08:46
incomprehensibly has quit [*.net *.split]
08:46
jeregrine has quit [*.net *.split]
08:47
jenrzzz has joined #ruby
08:48
olivier_bK has joined #ruby
08:48
Scotteh has quit [Ping timeout: 246 seconds]
08:48
bluenemo has joined #ruby
08:49
Aaaal has joined #ruby
08:49
asmodlol has joined #ruby
08:50
bluenemo has quit [Remote host closed the connection]
08:52
Spami has joined #ruby
08:53
elaptic`` is now known as elaptics
08:54
Hytosys has quit [Ping timeout: 260 seconds]
08:54
SilkFox has joined #ruby
08:55
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
08:55
Hobogrammer_ has quit [Ping timeout: 265 seconds]
08:55
deepy has quit [Ping timeout: 244 seconds]
08:56
jdj_dk has quit [Ping timeout: 244 seconds]
08:58
niklasb has quit [Ping timeout: 255 seconds]
08:58
SilkFox has quit [Ping timeout: 265 seconds]
08:58
dangerousdave has joined #ruby
08:59
mr_foobar_baz has joined #ruby
08:59
thsig has quit [Remote host closed the connection]
08:59
WormDrink has joined #ruby
08:59
yfeldblum has quit [Remote host closed the connection]
09:00
thsig has joined #ruby
09:00
mr_foobar_baz has quit [Client Quit]
09:00
mr_foobar_baz has joined #ruby
09:00
yfeldblum has joined #ruby
09:03
realDAB has joined #ruby
09:06
Wolland has joined #ruby
09:07
keen___ has joined #ruby
09:07
bMalum has joined #ruby
09:08
realDAB has quit [Ping timeout: 258 seconds]
09:08
keen__ has quit [Ping timeout: 258 seconds]
09:09
FooMunki has joined #ruby
09:10
sevenseacat has quit [Remote host closed the connection]
09:10
Macaveli has joined #ruby
09:10
Pupeno has quit [Read error: Connection reset by peer]
09:10
Pupeno has joined #ruby
09:10
thsig_ has joined #ruby
09:11
kyb3r_ has quit [Read error: Connection reset by peer]
09:13
Wolland has quit [Ping timeout: 265 seconds]
09:13
jacobat has quit [Ping timeout: 244 seconds]
09:13
luckyruby has quit [Quit: Leaving...]
09:13
FooMunki has quit [Ping timeout: 244 seconds]
09:14
thsig has quit [Ping timeout: 244 seconds]
09:15
terlar has joined #ruby
09:15
AmBienCeD has joined #ruby
09:15
AmBienCeD has joined #ruby
09:15
AmBienCeD has quit [Changing host]
09:16
coderhs has quit [Ping timeout: 245 seconds]
09:16
workmad3 has joined #ruby
09:17
Dude007 has joined #ruby
09:18
jacobat has joined #ruby
09:18
carraroj has joined #ruby
09:21
jdj_dk has joined #ruby
09:21
workmad3_ has joined #ruby
09:22
AlexRussia has joined #ruby
09:22
workmad3 has quit [Ping timeout: 265 seconds]
09:24
workmad3_ is now known as workmad3
09:25
bayed has joined #ruby
09:25
thisguy123 has joined #ruby
09:26
mr_foobar_baz has quit [Quit: WeeChat 1.0.1]
09:26
echooo has joined #ruby
09:26
mr_foobar_baz has joined #ruby
09:27
rdark has joined #ruby
09:28
koderok has joined #ruby
09:28
koderok has quit [Client Quit]
09:28
gyre007_ has joined #ruby
09:29
jenrzzz has quit [Quit: leaving]
09:30
alem0lars has joined #ruby
09:30
jenrzzz has joined #ruby
09:30
thisguy123 has quit [Ping timeout: 272 seconds]
09:30
mengu has quit [Remote host closed the connection]
09:31
catphish has joined #ruby
09:31
Dude007 has quit [Read error: Connection reset by peer]
09:31
Dude007_ has joined #ruby
09:32
robbyoconnor has joined #ruby
09:33
jacobat has quit [Ping timeout: 265 seconds]
09:33
dawkirst has joined #ruby
09:34
deepy has joined #ruby
09:34
deepy is now known as Guest95612
09:36
niklasb has joined #ruby
09:36
Takle has quit [Remote host closed the connection]
09:36
FooMunki has joined #ruby
09:36
bMalum has quit [Quit: bMalum]
09:37
Timgauthier has joined #ruby
09:38
coderhs has joined #ruby
09:38
alem0lars has quit [Quit: Quit !]
09:38
alem0lars has joined #ruby
09:39
Snowstormer is now known as Allie
09:40
robbyoconnor has quit [Excess Flood]
09:41
Allie is now known as Snowstormer
09:41
postmodern has quit [Quit: Leaving]
09:42
Takle has joined #ruby
09:43
robbyoconnor has joined #ruby
09:43
baordog has quit [Ping timeout: 272 seconds]
09:45
bMalum has joined #ruby
09:47
jdj_dk has quit [Ping timeout: 250 seconds]
09:47
AndChat| has quit [Ping timeout: 265 seconds]
09:47
Darryl has joined #ruby
09:47
robbyoconnor has quit [Excess Flood]
09:48
Takle has quit [Remote host closed the connection]
09:49
coderhs has quit [Ping timeout: 265 seconds]
09:50
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:51
sepp2k has quit [Ping timeout: 245 seconds]
09:51
sepp2k_ has joined #ruby
09:51
mr_foobar_baz has quit [Remote host closed the connection]
09:51
dangerousdave has joined #ruby
09:51
tvl has joined #ruby
09:52
i_s has joined #ruby
09:52
nemesit|znc has joined #ruby
09:52
bMalum has quit [Quit: bMalum]
09:52
incomprehensibly has joined #ruby
09:52
charles81___ has joined #ruby
09:52
ckrailo has joined #ruby
09:52
ewilliam has joined #ruby
09:52
jenrzzz has quit [Ping timeout: 258 seconds]
09:52
mr_foobar_baz has joined #ruby
09:52
ujjain has joined #ruby
09:52
artmann has joined #ruby
09:52
charles81___ is now known as charles81
09:53
Takle has joined #ruby
09:53
jeregrine has joined #ruby
09:54
carraroj has quit [Quit: Konversation terminated!]
09:54
SilkFox has joined #ruby
09:54
dumdedum has joined #ruby
09:55
heyimwill has joined #ruby
09:55
tonini has quit [Ping timeout: 250 seconds]
09:56
ujjain has quit [Changing host]
09:56
ujjain has joined #ruby
09:57
i_s has quit [Ping timeout: 260 seconds]
09:57
tvw has joined #ruby
09:58
sigurding has quit [Quit: sigurding]
09:59
SilkFox has quit [Ping timeout: 244 seconds]
09:59
ARCADIVS has quit [Quit: ARCADIVS]
09:59
robbyoconnor has joined #ruby
09:59
tvl is now known as tobiasvl
09:59
mike32 has joined #ruby
10:00
rodfersou has joined #ruby
10:00
shortCircuit__ has joined #ruby
10:01
mengu has joined #ruby
10:01
mengu has joined #ruby
10:02
atomi has quit [Ping timeout: 260 seconds]
10:04
mr_foobar_baz has quit [Quit: WeeChat 1.0.1]
10:04
coderhs has joined #ruby
10:04
jenrzzz has joined #ruby
10:04
mr_foobar_baz has joined #ruby
10:04
kamil has quit [Quit: Leaving...]
10:06
Wolland has joined #ruby
10:08
AmBienCeD has quit [Ping timeout: 244 seconds]
10:09
AmBienCeD has joined #ruby
10:10
TPBallbag has joined #ruby
10:11
Wolland has quit [Ping timeout: 244 seconds]
10:12
jdj_dk has joined #ruby
10:12
mr_foobar_baz has quit [Quit: WeeChat 1.0.1]
10:12
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:13
dangerousdave has joined #ruby
10:18
echooo1 has joined #ruby
10:18
echooo has quit [Ping timeout: 250 seconds]
10:21
hellangel7 has joined #ruby
10:21
coderhs has quit [Ping timeout: 255 seconds]
10:23
dr_tobog1an is now known as dr_toboggan
10:23
sigurding has joined #ruby
10:25
Takle has quit [Remote host closed the connection]
10:25
Timgauthier has joined #ruby
10:26
<
toretore >
Request timeout for icmp_seq 0
10:27
Takle has joined #ruby
10:30
narph has joined #ruby
10:30
jimbach has joined #ruby
10:30
jacobat has joined #ruby
10:31
User458764 has quit [Ping timeout: 255 seconds]
10:32
tkuchiki has quit [Remote host closed the connection]
10:32
allsystemsarego has joined #ruby
10:32
tkuchiki has joined #ruby
10:32
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:33
dangerousdave has joined #ruby
10:33
fabrice31 has quit [Remote host closed the connection]
10:34
niklasb has quit [Ping timeout: 244 seconds]
10:34
jdj_dk has quit [Ping timeout: 260 seconds]
10:34
jimbach has quit [Ping timeout: 265 seconds]
10:35
fabrice31 has joined #ruby
10:35
popl has left #ruby [#ruby]
10:36
<
workmad3 >
allsystemsarego: Hash[]
10:36
<
apeiros >
allsystemsarego: .to_h
10:36
<
apeiros >
(2.1+ only, else what workmad3 said)
10:36
atomi has joined #ruby
10:36
<
allsystemsarego >
excellent, let me try, thanks
10:36
reprazent is now known as Guest51196
10:37
tkuchiki has quit [Ping timeout: 265 seconds]
10:37
charliesome has quit [Read error: Connection reset by peer]
10:39
boombadaroomba has joined #ruby
10:42
<
apeiros >
allsystemsarego: one [] too few
10:42
doodlehaus has joined #ruby
10:42
<
allsystemsarego >
oh I see
10:42
reinaldob has joined #ruby
10:42
<
apeiros >
Hash[[["key", "value"], …]]
10:42
<
apeiros >
outmost [] is the method
10:42
<
apeiros >
middle is your outer array
10:43
<
apeiros >
inner is your key/value pair array
10:43
<
workmad3 >
or Hash["key", "value", ...]
10:43
definity1 has joined #ruby
10:43
Timgauthier has joined #ruby
10:44
<
definity1 >
What the ebst wy to print a class static var? would it be create a method that print that static var or is there a mroe implicit way?
10:44
<
allsystemsarego >
oh, ok, then it's not what I intended - that is, I have several lists of two elements each, and I want [0] to be the key, and [1] to be the value
10:44
boombadaroomba has quit [Ping timeout: 255 seconds]
10:45
charliesome has joined #ruby
10:45
<
workmad3 >
allsystemsarego: that is what you want... it's just that you needed to wrap them in a further []
10:45
<
allsystemsarego >
so I have to flatten first, I guess
10:46
<
allsystemsarego >
*here's
10:46
tokik has quit [Ping timeout: 246 seconds]
10:46
<
workmad3 >
allsystemsarego: odd... that works fine on my system
10:46
tonini has joined #ruby
10:47
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:47
<
workmad3 >
allsystemsarego: of course, with codepad you need to be careful... it runs ruby 1.8.6
10:47
<
allsystemsarego >
ok, thanks, I'll leave it at that
10:47
agent_white has quit [Quit: be back in a few weeks]
10:47
<
allsystemsarego >
oh ok, that's good to know then
10:47
last_staff has quit [Quit: last_staff]
10:48
<
apeiros >
definity1: what is a "classic static var"?
10:48
last_staff has joined #ruby
10:48
carraroj has joined #ruby
10:48
jacobat has quit [Ping timeout: 250 seconds]
10:48
dangerousdave has joined #ruby
10:49
livathinos has quit [Ping timeout: 250 seconds]
10:49
<
apeiros >
definity1: also, why's the type of variable relevant?
10:49
cmckee has quit [Quit: cmckee]
10:49
<
mike32 >
hi, i run some in Parallel and get error "sqlite db is locked" what do u recommend t oavoid error
10:49
<
mike32 >
run some code
10:49
spastorino has joined #ruby
10:50
<
mike32 >
seems need lock where i add records into table
10:50
<
definity1 >
I dont know what a classic static var is
10:52
<
apeiros >
definity1: uh? "definity1: What the ebst wy to print a class static var?" <-- how come you ask about it then?
10:52
fabrice31 has quit [Remote host closed the connection]
10:52
<
apeiros >
s/classic/class/
10:52
fabrice31 has joined #ruby
10:53
<
definity1 >
class static var not a classic static var
10:53
<
definity1 >
static varible that belong to the class
10:53
<
definity1 >
a class varible
10:53
kamil has joined #ruby
10:53
fabrice31 has quit [Remote host closed the connection]
10:53
ldnunes has joined #ruby
10:53
<
definity1 >
rather than an instance varible
10:53
renderful has joined #ruby
10:53
<
apeiros >
definity1: so an @@variable?
10:53
<
apeiros >
ok. those are called "class variable". not static.
10:54
<
tobiasvl >
don't use @@variables
10:54
<
workmad3 >
apeiros: he did call them 'class static' at least :P
10:54
<
definity1 >
What should i use?
10:54
<
apeiros >
but anyway, back to the second question - why do you think the type of variable to print matters?
10:55
<
definity1 >
becuase.. Good point
10:55
<
apeiros >
definity1: generally people who use @@class_vars should use @instance_vars at the class level.
10:55
<
tobiasvl >
definity1: you should use @variables (remember that classes are objects too)
10:55
SilkFox has joined #ruby
10:55
livathinos has joined #ruby
10:55
<
apeiros >
>> class X; @y = "value"; def self.y; @y; end; end; X.y
10:55
<
definity1 >
hmm intresting
10:56
<
definity1 >
I got plenty more question but i have class, thanks for the help! :) take it easy bye
10:56
yeticry has quit [Ping timeout: 240 seconds]
10:56
<
tobiasvl >
enjoy Class
10:58
renderful has quit [Ping timeout: 258 seconds]
10:58
yeticry has joined #ruby
10:59
SilkFox has quit [Ping timeout: 240 seconds]
11:00
jottr has joined #ruby
11:00
jdj_dk has joined #ruby
11:03
Takle has quit [Remote host closed the connection]
11:03
oo_ has quit [Remote host closed the connection]
11:04
Takle has joined #ruby
11:04
oo_ has joined #ruby
11:04
livathinos has quit [Remote host closed the connection]
11:06
fsapo has joined #ruby
11:06
livathinos has joined #ruby
11:06
Wolland has joined #ruby
11:08
grzywacz has joined #ruby
11:08
oo__ has joined #ruby
11:08
oo_ has quit [Ping timeout: 240 seconds]
11:10
timonv^ has quit [Remote host closed the connection]
11:11
bMalum has joined #ruby
11:11
cocotton has joined #ruby
11:12
andikr has quit [Remote host closed the connection]
11:12
<
shevy >
what a pun!
11:12
cocotton has quit [Remote host closed the connection]
11:12
<
shevy >
no Class, no Style
11:12
Soda has joined #ruby
11:12
Wolland has quit [Ping timeout: 246 seconds]
11:13
oo__ has quit [Remote host closed the connection]
11:13
<
tobiasvl >
hehe, I spent some seconds parsing his message because we had just been talking about class vars
11:13
shelling_ has quit [Quit: Connection closed for inactivity]
11:13
oo_ has joined #ruby
11:14
cocotton has joined #ruby
11:14
cocotton has quit [Remote host closed the connection]
11:14
cocotton has joined #ruby
11:15
kl has joined #ruby
11:16
<
kl >
what's the best ruby version switcher? :)
11:16
phutchins has joined #ruby
11:17
<
cHarNe2 >
hi guys, anyone use sinatra? how can i keep a varible through an entire request?
11:17
<
cHarNe2 >
only way is to use a global variable? or can i do it in some other way?
11:18
oo_ has quit [Ping timeout: 250 seconds]
11:18
Photism has joined #ruby
11:18
<
cHarNe2 >
i wanna get the password from Rack::Auth::Basic and use it later on
11:18
<
allsystemsarego >
cHarNe2, use sessions?
11:18
<
kl >
tobiasvl: I'm torn between that an RVM - I know little about either
11:19
<
kl >
oh, it compares!
11:19
cocotton has quit [Client Quit]
11:19
<
tobiasvl >
hehe, yeah, I figured you knew about RVM
11:19
<
cHarNe2 >
allsystemsarego: ok, ill check that
11:19
<
tobiasvl >
RVM is solid too of course. widely used
11:19
<
workmad3 >
cHarNe2: also, you should be able to add it to the rack environment for the request
11:20
<
workmad3 >
cHarNe2: rather than store it in a (potentially visible) session
11:20
cocotton has joined #ruby
11:21
<
kl >
workmad3: is correct, but I question your need to effectively have a global variable
11:21
<
cHarNe2 >
workmad3: ok, i though @env was readonly, that might be a good way
11:21
<
kl >
accidental colon
11:21
dawkirst has quit [Quit: Leaving...]
11:23
shemerey has joined #ruby
11:23
jdj_dk has quit [Ping timeout: 255 seconds]
11:24
peta_ has joined #ruby
11:24
ruisanto1 is now known as ruisantos
11:25
jacobat has joined #ruby
11:25
Takle has quit [Remote host closed the connection]
11:26
livathinos has quit [Remote host closed the connection]
11:28
cmxu has joined #ruby
11:29
cmxu has quit [Client Quit]
11:29
jacobat has quit [Ping timeout: 260 seconds]
11:29
cmxu has joined #ruby
11:29
Guest95612 has quit [Changing host]
11:29
Guest95612 has joined #ruby
11:29
Guest95612 is now known as deepy
11:30
thsig_ has quit [Remote host closed the connection]
11:30
livathinos has joined #ruby
11:30
thsig has joined #ruby
11:30
timonv_ has joined #ruby
11:31
kedare has joined #ruby
11:32
livathinos has quit [Remote host closed the connection]
11:32
kedare has quit [Client Quit]
11:33
kedare has joined #ruby
11:33
livathinos has joined #ruby
11:34
mikecmpb_ is now known as mikecmpbll
11:34
robbyoconnor has quit [Quit: Konversation terminated!]
11:34
abuzze_ has joined #ruby
11:36
rbrs has joined #ruby
11:36
abuzze has quit [Ping timeout: 246 seconds]
11:36
Dude007_ has quit [Remote host closed the connection]
11:37
shemerey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
11:39
<
kl >
cHarNe2: how comes you're not just passing that variable down as a method parameter?
11:40
LoBoGoL has quit [Ping timeout: 265 seconds]
11:40
i_s has joined #ruby
11:41
<
cHarNe2 >
kl: good Q, i can get the password-value out from Rack::Auth::Basic without a global variable it seems
11:41
<
cHarNe2 >
and i dont know where to find in then i get to the route
11:41
abuzze_ has quit [Read error: Connection reset by peer]
11:41
abuzze has joined #ruby
11:42
<
kl >
cHarNe2: a global variable is never the answer
11:42
<
cHarNe2 >
i just tried to add the password to @env in Rack::Auth::Basic, but @env does not seem to be there
11:42
<
kl >
think globally, act locally
11:42
<
cHarNe2 >
kl: yep, that is why im here ;)
11:43
<
tobiasvl >
cHarNe2: how did you add it? you might need an attr_accessor
11:44
doodlehaus has quit [Remote host closed the connection]
11:44
timonv_ has quit [Remote host closed the connection]
11:44
abuzze has quit [Read error: Connection reset by peer]
11:44
<
workmad3 >
cHarNe2: it isn't @env, I believe
11:45
abuzze has joined #ruby
11:45
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:45
<
workmad3 >
cHarNe2: the rack environment is passed into .call in a rack middleware... I believe you can add stuff to it
11:45
i_s has quit [Ping timeout: 255 seconds]
11:46
jacobat has joined #ruby
11:46
cmxu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
11:46
toretore has quit [Ping timeout: 245 seconds]
11:46
<
cHarNe2 >
im not aurhing rigt now, just faking true
11:46
<
workmad3 >
cHarNe2: err... no
11:46
<
cHarNe2 >
workmad3: ok, will check that
11:47
<
workmad3 >
cHarNe2: that block is the configuration for the middleware, not a way to insert stuff into the processing of a request
11:47
matchaw has joined #ruby
11:48
<
cHarNe2 >
workmad3: hmm, ok i understand
11:48
jdj_dk has joined #ruby
11:48
timonv_ has joined #ruby
11:48
xymbol has quit [Quit: Be back later ...]
11:49
<
workmad3 >
cHarNe2: in the case of basic auth, that's (as you're using it) the way to determine a valid un/pw... it doesn't give you access to the rack env from the block though
11:49
<
workmad3 >
cHarNe2: that said... the basic auth component is just using the env to obtain that information anyway
11:49
xymbol has joined #ruby
11:50
<
cHarNe2 >
workmad3: ok, but where in the env is the password stored?
11:50
<
cHarNe2 >
have i just missed it?
11:50
cmxu has joined #ruby
11:51
Deejay_ has joined #ruby
11:51
ghr has joined #ruby
11:52
LoBoGoL has joined #ruby
11:53
<
cHarNe2 >
great!, ill dig deeper
11:53
thsig_ has joined #ruby
11:53
<
workmad3 >
cHarNe2: tbh though, you could just do 'Rack::Auth::Basic::Request.new(rack_env).credentials' from the looks of things
11:54
<
workmad3 >
cHarNe2: rather than re-implementing the code
11:54
<
workmad3 >
cHarNe2: that would, I believe, give you [un, pw] back
11:54
<
cHarNe2 >
ok, will do some more reading on this now. ill get back later :) ty very much
11:54
xymbol has quit [Ping timeout: 272 seconds]
11:56
Sammael has joined #ruby
11:56
cocotton has quit [Remote host closed the connection]
11:56
SilkFox has joined #ruby
11:56
krz has quit [Quit: WeeChat 1.0.1]
11:56
thsig has quit [Ping timeout: 245 seconds]
11:57
cocotton has joined #ruby
11:58
qmfnp_zzz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
11:58
Takle has joined #ruby
11:59
Takle has quit [Read error: Connection reset by peer]
11:59
Takle has joined #ruby
11:59
bauruine_ has quit [Ping timeout: 260 seconds]
11:59
Xeago has joined #ruby
12:00
Timgauthier is now known as timgauthier_away
12:00
timgauthier_away is now known as Timgauthier
12:00
Xeago has quit [Remote host closed the connection]
12:00
Timgauthier is now known as timgauthier_away
12:00
timgauthier_away is now known as Timgauthier
12:00
matchaw has quit [Ping timeout: 255 seconds]
12:01
SilkFox has quit [Ping timeout: 265 seconds]
12:01
dangerousdave has joined #ruby
12:02
Xeago has joined #ruby
12:02
doodlehaus has joined #ruby
12:02
siwica has joined #ruby
12:02
jhwhite has joined #ruby
12:03
jenrzzz has quit [Ping timeout: 245 seconds]
12:03
Xeago_ has quit [Ping timeout: 245 seconds]
12:03
jacobat_ has joined #ruby
12:04
Xeago has quit [Remote host closed the connection]
12:04
ghr has quit [Read error: Connection reset by peer]
12:05
St_Marx has quit [Write error: Connection reset by peer]
12:05
DrCode has quit [Write error: Connection reset by peer]
12:05
atmosx has quit [Write error: Connection reset by peer]
12:05
end_guy has quit [Write error: Connection reset by peer]
12:05
otakbeku has joined #ruby
12:05
nateberkopec has joined #ruby
12:06
joonty has quit [Quit: Leaving]
12:06
Wolland has joined #ruby
12:06
jacobat has quit [Ping timeout: 244 seconds]
12:07
carraroj has quit [Ping timeout: 246 seconds]
12:07
HelperW has left #ruby ["(null)"]
12:07
roolo has joined #ruby
12:08
jenrzzz has joined #ruby
12:08
St_Marx has joined #ruby
12:08
DrCode has joined #ruby
12:09
chipotle has joined #ruby
12:11
atmosx has joined #ruby
12:11
Wolland has quit [Ping timeout: 255 seconds]
12:11
jdj_dk has quit [Ping timeout: 250 seconds]
12:12
doodlehaus has quit [Remote host closed the connection]
12:13
Takle has quit [Remote host closed the connection]
12:13
davidhq has joined #ruby
12:13
ghr has joined #ruby
12:13
jasooon has joined #ruby
12:13
fabrice31 has joined #ruby
12:14
jenrzzz has quit [Ping timeout: 255 seconds]
12:16
otakbeku has quit [Quit: leaving]
12:17
byprdct has joined #ruby
12:18
chipotle has quit [Ping timeout: 272 seconds]
12:18
Takle has joined #ruby
12:18
abuzze has quit [Ping timeout: 256 seconds]
12:19
jimbach has joined #ruby
12:19
gyre007_ has quit [Remote host closed the connection]
12:19
chipotle has joined #ruby
12:20
ghr has quit [Read error: Connection reset by peer]
12:22
AlSquire has joined #ruby
12:23
jimbach has quit [Ping timeout: 265 seconds]
12:25
niklasb has joined #ruby
12:25
end_guy has joined #ruby
12:25
benzrf|offline is now known as benzrf
12:26
jacobat_ has quit [Ping timeout: 240 seconds]
12:26
mengu has quit [Ping timeout: 265 seconds]
12:26
abuzze has joined #ruby
12:27
mengu has joined #ruby
12:27
mengu has quit [Changing host]
12:27
mengu has joined #ruby
12:27
Dude007 has joined #ruby
12:28
abuzze_ has joined #ruby
12:28
pedromoreira has joined #ruby
12:31
abuzze has quit [Ping timeout: 246 seconds]
12:32
paulfm has joined #ruby
12:32
jacobat has joined #ruby
12:32
jasooon has quit [Ping timeout: 245 seconds]
12:32
cmxu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
12:33
ghr has joined #ruby
12:34
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
12:34
rylev has joined #ruby
12:34
Trynemjoel2 has quit [Ping timeout: 265 seconds]
12:34
pedromoreira has left #ruby ["WeeChat 1.0"]
12:34
abuzze_ has quit [Ping timeout: 272 seconds]
12:34
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:35
roolo has quit [Remote host closed the connection]
12:35
Deejay_ has quit [Quit: Computer has gone to sleep.]
12:35
roolo has joined #ruby
12:36
abuzze has joined #ruby
12:36
P-NuT has joined #ruby
12:37
qmfnp has joined #ruby
12:37
<
P-NuT >
Can anyone explain to me how to append my results inside a block to a variable outside it?
12:37
jdj_dk has joined #ruby
12:37
roolo has quit [Read error: Connection reset by peer]
12:39
Deejay_ has joined #ruby
12:39
<
apeiros >
P-NuT: what did you try? (gist.github.com)
12:39
roolo has joined #ruby
12:40
Fire-Dragon-DoL has joined #ruby
12:41
byprdct_ has joined #ruby
12:42
<
shevy >
P-NuT the variable must already exist when you append to it, outside of the block before
12:42
cmxu has joined #ruby
12:43
BaNzounet has joined #ruby
12:43
chipotle has quit [Quit: cya]
12:43
jottr has quit [Ping timeout: 260 seconds]
12:43
byprdct has quit [Ping timeout: 250 seconds]
12:43
<
shevy >
it's all spread out on 10 different pages! ;P
12:44
<
BaNzounet >
Hey, is it possible to parse a string like { 'test': '12', 'test2': '23' } directly into a hash?
12:45
<
apeiros >
BaNzounet: gem install literal_parser; LiteralParser.parse("{ 'test': '12', 'test2': '23' }")
12:45
<
apeiros >
BaNzounet: but let me ask you why you want to do that
12:45
TPBallbag has quit [Remote host closed the connection]
12:45
jottr has joined #ruby
12:46
shemerey has joined #ruby
12:46
<
apeiros >
oh, wait, that's not actually valid ruby syntax, so literal_parser won't help you
12:47
<
BaNzounet >
I'm parsing a configuration file
12:48
<
BaNzounet >
And I want to rebuild an hash form that
12:48
abuzze has quit [Remote host closed the connection]
12:48
<
apeiros >
you invented your own format for it?
12:48
<
BaNzounet >
not really
12:48
abuzze has joined #ruby
12:49
<
apeiros >
is it a yaml file?
12:49
* apeiros
rolls eye
12:49
<
BaNzounet >
but I use ansible to generate it
12:49
yfeldblum has quit [Remote host closed the connection]
12:50
<
apeiros >
require 'yaml'; YAML.load_file(path) or YAML.load(string)
12:50
niklasb has quit [Ping timeout: 265 seconds]
12:51
ghr has quit [Read error: Connection reset by peer]
12:51
<
shevy >
he tricked apeiros
12:51
joonty has joined #ruby
12:52
last_staff has quit [Quit: last_staff]
12:52
<
shevy >
it was a yaml file all the way!
12:52
<
apeiros >
no. he failed asking a proper question. if you know the format, that's the first thing you say.
12:52
<
BaNzounet >
It's a bit more complicated that that :D
12:52
livingstn has joined #ruby
12:52
<
shevy >
BaNzounet the syntax is not valid ruby though
12:52
<
BaNzounet >
Do you know fluentd?
12:52
Xeago has joined #ruby
12:52
abuzze has quit [Ping timeout: 244 seconds]
12:53
<
shevy >
if it is a string, you should state so, like: string = "{ 'test': '12', 'test2': '23' }"
12:53
<
apeiros >
shevy: it's valid yaml
12:53
elaptics is now known as elaptics`away
12:54
<
shevy >
yaml replaces the : with =>
12:54
elaptics`away is now known as elaptics
12:56
bauruine_ has joined #ruby
12:56
Xeago has quit [Remote host closed the connection]
12:56
Jackneill has joined #ruby
12:56
mosez has quit [Ping timeout: 250 seconds]
12:56
mosez has joined #ruby
12:57
yeticry has quit [Ping timeout: 250 seconds]
12:57
SilkFox has joined #ruby
12:57
Deejay_ has quit [Quit: Computer has gone to sleep.]
12:57
mengu has quit [Remote host closed the connection]
12:58
<
Fire-Dragon-DoL >
MH!
12:58
wookiehangover has quit [Ping timeout: 255 seconds]
12:58
<
Fire-Dragon-DoL >
I just noticed in ruby 2.x you can now write `private def mymethod; end` to make it private
12:58
<
Fire-Dragon-DoL >
and it will make only that one private
12:59
Xeago has joined #ruby
12:59
yeticry has joined #ruby
12:59
<
apeiros >
2.1+, not 2.x
12:59
<
Fire-Dragon-DoL >
apeiros: thanks
12:59
<
Fire-Dragon-DoL >
but that's really nice
12:59
<
shevy >
it must be on the same line?
13:00
agrinb has joined #ruby
13:00
<
apeiros >
shevy: that or parens
13:00
<
Fire-Dragon-DoL >
mhhh if you write it on a different line
13:00
<
Fire-Dragon-DoL >
I think it will make everything private under that
13:01
sambao21 has joined #ruby
13:01
<
Fire-Dragon-DoL >
so if you want a single method, must be on the same line as def
13:01
abuzze has joined #ruby
13:01
jerius has joined #ruby
13:01
SilkFox has quit [Ping timeout: 240 seconds]
13:01
<
apeiros >
or parens. as said :-)
13:02
allcentury has joined #ruby
13:02
cocotton has quit [Remote host closed the connection]
13:02
zz_jrhorn424 is now known as jrhorn424
13:02
jdj_dk has quit [Ping timeout: 245 seconds]
13:02
<
Fire-Dragon-DoL >
I'm not sure I know what "parens" mean
13:02
<
Fire-Dragon-DoL >
:S
13:02
<
apeiros >
parens are those () things
13:02
<
Fire-Dragon-DoL >
I know "parent", but not parens, lol
13:02
<
Fire-Dragon-DoL >
ah BRACKETS ! :P
13:02
kl has quit [Ping timeout: 244 seconds]
13:02
<
apeiros >
private(\ndef foo; end)
13:02
<
apeiros >
[] are brackets
13:02
<
tobiasvl >
parens are short for parentheses
13:03
<
Fire-Dragon-DoL >
oh, I thought they were all type of brackets
13:03
<
apeiros >
and {} are curly braces
13:03
<
tobiasvl >
parentheses are called brackets in the UK for example
13:03
<
Fire-Dragon-DoL >
in my language is roughly: parenthesis, squared parenthesis, curly parenthesis
13:03
<
tobiasvl >
yeah mine too
13:03
<
Fire-Dragon-DoL >
sorry, parentheses
13:04
abuzze has quit [Remote host closed the connection]
13:04
csmrfx_ is now known as csmrfx
13:04
abuzze has joined #ruby
13:04
<
Fire-Dragon-DoL >
so basically
13:04
<
Fire-Dragon-DoL >
everyone call them as they want
13:04
<
Fire-Dragon-DoL >
lol
13:04
<
mostlybadfly >
Buenos días
13:04
abuzze has quit [Read error: Connection reset by peer]
13:05
<
Fire-Dragon-DoL >
mostlybadfly: welcome ! ^^
13:05
baordog has joined #ruby
13:05
<
Fire-Dragon-DoL >
so from now on
13:05
<
lolmaus >
I am given an object with methods 'name_en', 'name_fr', etc. I need to call a method by dynamically assembling method name. How do i do that?
13:05
<
mostlybadfly >
Thanks!
13:05
abuzze has joined #ruby
13:05
wookiehangover has joined #ruby
13:05
<
Fire-Dragon-DoL >
flower brackets! lol
13:05
TPBallbag has joined #ruby
13:05
fgo has joined #ruby
13:05
nateberkopec has quit [Quit: Leaving...]
13:06
<
mostlybadfly >
Is that curly brackets? Lol
13:06
<
ddv >
curly braces bitches
13:06
<
Fire-Dragon-DoL >
lolmaus: public_send(:"name_#{ locale }")
13:06
<
Fire-Dragon-DoL >
lolmaus: if method is private, use send
13:06
<
mostlybadfly >
I call them the squiggly things
13:06
Wolland has joined #ruby
13:06
sevenseacat has joined #ruby
13:06
cocotton has joined #ruby
13:07
<
Fire-Dragon-DoL >
lol
13:07
<
lolmaus >
Fire-Dragon-DoL: thx
13:07
tonybird has joined #ruby
13:07
<
hanmac1 >
travis to my stuff ;P
13:07
dblessing has joined #ruby
13:08
<
mostlybadfly >
We should make up cute and whimsical names for these things
13:08
cmxu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
13:08
<
mostlybadfly >
Hashrocket sounds too aggressive lol
13:08
<
Fire-Dragon-DoL >
hashrocket
13:08
<
Fire-Dragon-DoL >
ahahha
13:09
<
Fire-Dragon-DoL >
the SPACESHIP OPERATOR
13:09
<
Fire-Dragon-DoL >
who really came up with that name, I laughed so much
13:09
<
Fire-Dragon-DoL >
lol
13:09
<
mostlybadfly >
It should be hashsmiley :>
13:09
jrhorn424 is now known as zz_jrhorn424
13:09
<
Fire-Dragon-DoL >
=> rocketpenis maybe?
13:09
<
Fire-Dragon-DoL >
lol
13:09
<
mostlybadfly >
Too distracting :D
13:10
<
Fire-Dragon-DoL >
at least people will remember that
13:10
<
Fire-Dragon-DoL >
lol
13:10
<
mostlybadfly >
Yeah or simply the penis
13:10
<
mostlybadfly >
Are you using proper penis syntax?
13:10
<
Fire-Dragon-DoL >
ahahahahaha
13:10
jenrzzz has joined #ruby
13:10
tadayoshi has joined #ruby
13:10
nateberkopec has joined #ruby
13:10
zz_jrhorn424 is now known as jrhorn424
13:11
mengu has joined #ruby
13:11
sailias has joined #ruby
13:11
<
mostlybadfly >
Where? :)
13:11
Wolland has quit [Ping timeout: 265 seconds]
13:11
tier has joined #ruby
13:12
pushpak has joined #ruby
13:12
jimbach has joined #ruby
13:12
<
Fire-Dragon-DoL >
maybe he means he has kids reading chat :O
13:12
<
Fire-Dragon-DoL >
:P
13:12
* mostlybadfly
NP: Janet Jackson: When I Think of You
13:12
<
mostlybadfly >
My jam
13:13
<
Fire-Dragon-DoL >
why I didn't find EVERYWHERE that POODR is a must-read ruby book, which is boostly my design skills so much °°
13:13
<
Fire-Dragon-DoL >
boosting*
13:13
abuzze_ has joined #ruby
13:13
<
mostlybadfly >
I heard it was food
13:13
<
mostlybadfly >
Good haha
13:14
<
mostlybadfly >
Prob should eat breakfast
13:14
echooo1 has quit [Remote host closed the connection]
13:14
<
Fire-Dragon-DoL >
lol
13:14
jimbach has quit [Remote host closed the connection]
13:14
gauke has quit [Quit: gauke]
13:14
echooo has joined #ruby
13:14
startupality has joined #ruby
13:15
jimbach has joined #ruby
13:15
jenrzzz has quit [Ping timeout: 265 seconds]
13:15
gyre007_ has joined #ruby
13:16
cocotton has quit [Remote host closed the connection]
13:16
roolo has quit [Remote host closed the connection]
13:16
Timgauthier is now known as timgauthier_away
13:16
jrhorn424 is now known as zz_jrhorn424
13:16
roolo has joined #ruby
13:16
thsig_ has quit [Remote host closed the connection]
13:16
abuzze has quit [Ping timeout: 246 seconds]
13:17
zz_jrhorn424 is now known as jrhorn424
13:18
obscured has joined #ruby
13:19
tesaf has joined #ruby
13:19
terlar has quit [Ping timeout: 240 seconds]
13:19
echooo has quit [Ping timeout: 272 seconds]
13:19
fabrice31 has quit [Remote host closed the connection]
13:20
drkyro has joined #ruby
13:20
thsig has joined #ruby
13:20
hanmac1 has quit [Read error: Connection reset by peer]
13:20
fabrice31 has joined #ruby
13:21
echooo has joined #ruby
13:21
doodlehaus has joined #ruby
13:21
tonini has quit [Ping timeout: 250 seconds]
13:21
frakkia has joined #ruby
13:22
xymbol has joined #ruby
13:22
frakkia has quit [Client Quit]
13:22
hanmac1 has joined #ruby
13:23
jrhorn424 is now known as zz_jrhorn424
13:23
BTRE has quit [Ping timeout: 265 seconds]
13:23
beef-wellington has joined #ruby
13:23
cocotton has joined #ruby
13:23
foredoomed has joined #ruby
13:23
foredoomed has quit [Remote host closed the connection]
13:23
georgesmith has joined #ruby
13:23
zz_jrhorn424 is now known as jrhorn424
13:23
BTRE has joined #ruby
13:24
willywos has joined #ruby
13:24
<
hanmac1 >
mostlybadfly & Fire-Dragon-DoL : in ruby < 2.0 there was a method named "spermy_recommendation" for turning "1.2.3" into "~> 1.2"
13:24
<
Fire-Dragon-DoL >
hanmac1: what the... lol
13:25
rossgeesman has joined #ruby
13:25
<
mostlybadfly >
Lol nice
13:25
<
Fire-Dragon-DoL >
spermy recommendation, that's fantastic
13:25
<
hanmac1 >
19>> Gem::Version.new("1.2.3").methods.grep(/recommendation/)
13:25
<
hanmac1 >
>> Gem::Version.new("1.2.3").methods.grep(/recommendation/)
13:26
<
Fire-Dragon-DoL >
how sad, I preferred the spermy version
13:26
<
Fire-Dragon-DoL >
:P
13:26
timgauthier_away is now known as Timgauthier
13:26
rkalfane has joined #ruby
13:27
alex88 has quit [Read error: Connection reset by peer]
13:27
alex88 has joined #ruby
13:27
jdj_dk has joined #ruby
13:27
deavid has quit [Ping timeout: 246 seconds]
13:28
Channel6 has joined #ruby
13:29
jasooon has joined #ruby
13:29
oleo has joined #ruby
13:29
i_s has joined #ruby
13:29
rossgeesman has quit [Ping timeout: 265 seconds]
13:29
akemrir has joined #ruby
13:30
Timgauthier has quit [Remote host closed the connection]
13:31
Timgauthier has joined #ruby
13:31
gauke has joined #ruby
13:32
<
hanmac1 >
shevy!!! my travis build are passing for rwx ;P
13:32
kl has joined #ruby
13:32
allcentu1 has joined #ruby
13:32
railis is now known as Guest12321321
13:33
Timgauthier has quit [Client Quit]
13:33
Guest12321321 is now known as Guest12321
13:33
chipotle has joined #ruby
13:33
Timgauthier has joined #ruby
13:34
fabrice31 has quit [Remote host closed the connection]
13:34
jasooon has quit [Ping timeout: 258 seconds]
13:34
i_s has quit [Ping timeout: 255 seconds]
13:35
allcentury has quit [Ping timeout: 244 seconds]
13:35
tier_ has joined #ruby
13:35
ghr has joined #ruby
13:38
georgesmith has quit [Quit: georgesmith]
13:38
tier has quit [Ping timeout: 244 seconds]
13:38
jobewan has quit [Quit: Leaving]
13:39
tier_ has quit [Remote host closed the connection]
13:39
dANO_ has joined #ruby
13:39
thsig has quit [Remote host closed the connection]
13:39
tier has joined #ruby
13:40
n1ftyn8_ is now known as n1ftyn8
13:40
deavid has joined #ruby
13:42
starkhallo has joined #ruby
13:42
iamjarvo has joined #ruby
13:42
Xeago has quit [Remote host closed the connection]
13:42
thsig has joined #ruby
13:44
kl has quit [Quit: leaving]
13:44
snath has quit [Ping timeout: 244 seconds]
13:45
iamjarvo has quit [Client Quit]
13:45
timonv_ has quit [Remote host closed the connection]
13:45
Timgauthier has joined #ruby
13:45
mary5030 has joined #ruby
13:46
cocotton has quit [Remote host closed the connection]
13:46
tonini has joined #ruby
13:47
Xeago has joined #ruby
13:48
Channel6 has quit [Quit: Leaving]
13:48
cocotton has joined #ruby
13:48
EasyCo has quit [Quit: Connection closed for inactivity]
13:49
andikr has joined #ruby
13:50
jdj_dk has quit [Ping timeout: 256 seconds]
13:50
jerius has joined #ruby
13:51
User458764 has joined #ruby
13:51
fsapo has quit [Remote host closed the connection]
13:51
kaspergrubbe has quit [Read error: No route to host]
13:51
kaspergrubbe has joined #ruby
13:52
Xeago has quit [Remote host closed the connection]
13:53
linojon has joined #ruby
13:53
djstorm has joined #ruby
13:54
Liendre has joined #ruby
13:56
kaspergrubbe_ has joined #ruby
13:56
agrinb has quit [Remote host closed the connection]
13:57
Xeago has joined #ruby
13:57
cocotton has quit [Remote host closed the connection]
13:58
SilkFox has joined #ruby
13:58
camilasan has joined #ruby
13:58
banister_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:59
mary5030 has quit [Remote host closed the connection]
13:59
dangerousdave has joined #ruby
13:59
cocotton has joined #ruby
13:59
kaspergrubbe has quit [Ping timeout: 265 seconds]
14:00
sk87 has joined #ruby
14:00
kaspergrubbe has joined #ruby
14:00
kaspergrubbe_ has quit [Read error: No route to host]
14:00
camilasann has quit [Ping timeout: 245 seconds]
14:00
charliesome has quit [Quit: zzz]
14:00
cocotton has quit [Remote host closed the connection]
14:00
chipotle has quit [Quit: cya]
14:00
enebo has joined #ruby
14:02
SilkFox has quit [Ping timeout: 240 seconds]
14:03
sigurding has quit [Quit: sigurding]
14:04
timonv_ has joined #ruby
14:04
sigurding has joined #ruby
14:05
Takle has quit [Read error: Connection reset by peer]
14:05
kaspergrubbe_ has joined #ruby
14:05
Takle_ has joined #ruby
14:05
startupality has quit [Quit: startupality]
14:05
startupality has joined #ruby
14:05
matchaw has joined #ruby
14:05
davidsong has joined #ruby
14:05
abuzze_ has quit [Remote host closed the connection]
14:06
abuzze has joined #ruby
14:06
Wolland has joined #ruby
14:06
Kricir has joined #ruby
14:06
fabrice31 has joined #ruby
14:07
kaspergrubbe has quit [Ping timeout: 265 seconds]
14:08
roolo has quit [Remote host closed the connection]
14:08
gzl has quit [Quit: .]
14:08
devdazed has joined #ruby
14:09
tadayoshi has quit []
14:09
lnong has quit [Excess Flood]
14:10
roolo has joined #ruby
14:10
startupality has quit [Ping timeout: 255 seconds]
14:10
<
davidsong >
in Python I guess I'd loop around a tuple of class and file names, but from what I've seen I'd expect Ruby to be able to deal with pluralization and resolving a class from a name
14:10
<
apeiros >
davidsong: parametrize file and model. use CSV.foreach
14:11
theother1tupidgu has joined #ruby
14:11
<
apeiros >
rails has stuff for inflections (ruby itself does not)
14:11
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:11
<
davidsong >
what if I renamed the csv files to be the singular class name?
14:11
dangerousdave has joined #ruby
14:11
<
davidsong >
is there a way to get the class from a string?
14:12
<
apeiros >
personally I'd still prefer explicit parametrization of both instead of inferring
14:12
<
apeiros >
you can't get a
*class* from a string, but you can get a constant. and since classes are usually referenced by constants…
14:12
<
apeiros >
see Module#const_get. toplevel namespace is Object.
14:13
Guest37110 has joined #ruby
14:13
Wolland has quit [Ping timeout: 265 seconds]
14:13
Takle_ has quit [Remote host closed the connection]
14:14
IceDragon has joined #ruby
14:14
theother1tupidgu has quit [Client Quit]
14:14
terlar has joined #ruby
14:15
jdj_dk has joined #ruby
14:15
theother1tupidgu has joined #ruby
14:15
<
davidsong >
okay so Object.const_get('ClassName').create!(stuff...)
14:16
<
shevy >
I hate the ! there
14:16
awarner has quit [Remote host closed the connection]
14:17
<
shevy >
davidsong can't you try it in irb? first try: product = Object.const_get('Product') and see whether this yields what you wanted; product.class
14:17
<
davidsong >
I'm just pumping a seeds database full of mess and don't want validation to complain too much
14:17
<
shevy >
if it resides in a specific namespace, you may have to use the toplevel namespace of said object
14:17
badhatter_ has quit [Read error: Connection reset by peer]
14:17
awarner has joined #ruby
14:17
niklasb has joined #ruby
14:18
<
davidsong >
erm seeding my database with exports from the current system
14:18
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
14:18
tkuchiki has joined #ruby
14:18
jrhorn424 is now known as zz_jrhorn424
14:18
<
DylanJ >
camel case constants: yay or nay?
14:19
<
DylanJ >
(for a project with no established constant style of course)
14:19
<
davidsong >
I'd guess nay
14:19
<
IceDragon >
DylanJ: CamelCase
14:19
oo_ has joined #ruby
14:20
carraroj has joined #ruby
14:20
<
catphish >
DylanJ: i have only seen UPPER_CASE for constants, except where they're classes
14:20
<
IceDragon >
unless majority is mixed case o_e
14:20
<
nateberkopec >
If I have a hash of numbers and I want to convert it to a hash of strings, whats the fastest way to do that? {133 => 134, 134 => 135} becomes {'133' => '134', '134' => '135'}
14:20
<
IceDragon >
yeah, what catphish said
14:20
<
IceDragon >
I misread it as class ;(
14:20
<
apeiros >
DylanJ, catphish: I only use CamelCase constants. no SCREAMING_CASE
14:21
sinkensabe has quit [Remote host closed the connection]
14:21
<
catphish >
nateberkopec: maybe this: hash.each{|k, v| hash[k] = v.to_s}
14:21
<
DylanJ >
I personally prefer CamelCase constants but I was just curious what others are using.
14:21
Takle has joined #ruby
14:21
<
apeiros >
nateberkopec: map + either to_h (ruby 2.1) or Hash[] (1.8.7+)
14:21
<
DylanJ >
catphish: don't modify something you're iterative over!
14:21
<
catphish >
nateberkopec: oh, you want to change the keys too
14:21
<
DylanJ >
iterating*
14:22
<
catphish >
DylanJ: why not change the values?
14:22
sk87 has joined #ruby
14:22
Timgauthier is now known as timgauthier_away
14:22
<
catphish >
anyway my answer isnt relevant
14:22
<
hanmac1 >
>> {133 => 134, 134 => 135}.map{|args| args.map(&:to_s) }.to_h
14:22
zz_jrhorn424 is now known as jrhorn424
14:22
<
catphish >
hanmac1's answer is the best :)
14:23
roolo has quit [Ping timeout: 244 seconds]
14:24
<
nateberkopec >
thx!
14:24
kaspergrubbe has joined #ruby
14:24
kaspergrubbe_ has quit [Read error: Connection reset by peer]
14:24
jobewan has joined #ruby
14:24
abuzze_ has joined #ruby
14:25
rossgeesman has joined #ruby
14:25
beef-wellington has quit [Ping timeout: 244 seconds]
14:25
jrhorn424 is now known as zz_jrhorn424
14:26
linojon has quit [Quit: linojon]
14:26
Photism has quit [Quit: Leaving]
14:26
jenrzzz has joined #ruby
14:26
Xiti` has quit [Quit: Leaving]
14:26
niklasb has quit [Ping timeout: 256 seconds]
14:27
yekta has joined #ruby
14:27
Xiti has joined #ruby
14:27
abuzze has quit [Ping timeout: 244 seconds]
14:28
ta has quit [Remote host closed the connection]
14:28
cocotton has joined #ruby
14:28
msmith has joined #ruby
14:29
fabrice31 has quit [Remote host closed the connection]
14:30
iamjarvo has joined #ruby
14:30
spyderman4g63 has joined #ruby
14:30
jasooon has joined #ruby
14:30
hobodave has joined #ruby
14:30
niklasb has joined #ruby
14:31
mary5030 has joined #ruby
14:31
jenrzzz has quit [Ping timeout: 244 seconds]
14:31
linojon has joined #ruby
14:31
tier_ has joined #ruby
14:32
chipotle has joined #ruby
14:32
tkuchiki has quit [Remote host closed the connection]
14:32
Xeago has quit [Remote host closed the connection]
14:32
hobodave has quit [Client Quit]
14:32
byprdct_ has quit []
14:32
tkuchiki has joined #ruby
14:34
oo_ has quit [Remote host closed the connection]
14:35
tier has quit [Ping timeout: 246 seconds]
14:35
oo_ has joined #ruby
14:35
rossgeesman has quit [Remote host closed the connection]
14:35
drkyro has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
14:35
MrSamuel has joined #ruby
14:36
<
Emmanuel_Chanel >
Hello! Can I code an IRC bot to connect 2 or more IRC servers by cinch?
14:36
hobodave has joined #ruby
14:36
rossgeesman has joined #ruby
14:36
treehug88 has joined #ruby
14:36
fabrice31 has joined #ruby
14:37
beef-wellington has joined #ruby
14:37
rossgeesman has quit [Remote host closed the connection]
14:37
renderful has joined #ruby
14:37
jdj_dk has quit [Ping timeout: 245 seconds]
14:37
tkuchiki has quit [Ping timeout: 255 seconds]
14:38
aclearman037 has quit [Quit: I'm out!]
14:39
chipotle has quit [Read error: Connection reset by peer]
14:39
tonini has quit [Ping timeout: 250 seconds]
14:39
chipotle_ has joined #ruby
14:39
failshell has joined #ruby
14:39
Guest3833 has joined #ruby
14:40
oo_ has quit [Ping timeout: 272 seconds]
14:40
fabrice31 has quit [Ping timeout: 240 seconds]
14:41
sleepee has joined #ruby
14:41
byprdct has joined #ruby
14:41
byprdct has quit [Max SendQ exceeded]
14:41
boombadaroomba has joined #ruby
14:41
bal has quit [Ping timeout: 245 seconds]
14:41
sleepee has quit [Max SendQ exceeded]
14:42
bal1 has joined #ruby
14:42
zz_jrhorn424 is now known as jrhorn424
14:42
byprdct has joined #ruby
14:42
aclearman037 has joined #ruby
14:42
AlexRussia has quit [Ping timeout: 272 seconds]
14:42
startupality has joined #ruby
14:42
sleepee has joined #ruby
14:43
carraroj has quit [Ping timeout: 260 seconds]
14:43
hanmac1 has quit [Quit: Leaving.]
14:43
tagrudev has quit [Remote host closed the connection]
14:43
kobain has joined #ruby
14:43
Xeago has joined #ruby
14:44
jottr has quit [Quit: WeeChat 1.0.1]
14:44
kobain has quit [Max SendQ exceeded]
14:44
kobain has joined #ruby
14:45
ducklobster has joined #ruby
14:45
kobain has quit [Max SendQ exceeded]
14:45
boombadaroomba has quit [Ping timeout: 244 seconds]
14:45
jacobat has quit [Ping timeout: 265 seconds]
14:45
sleepee has quit [Max SendQ exceeded]
14:45
jottr has joined #ruby
14:47
AlexRussia has joined #ruby
14:47
jenrzzz has joined #ruby
14:47
sleepee has joined #ruby
14:47
Kricir has quit [Remote host closed the connection]
14:47
Ankhers has joined #ruby
14:48
Kricir has joined #ruby
14:48
sleepee has quit [Max SendQ exceeded]
14:49
iceden has quit [Read error: Connection reset by peer]
14:49
roolo has joined #ruby
14:50
chipotle_ has quit [Quit: cya]
14:50
yekta has quit [Quit: yekta]
14:52
jrhorn424 is now known as zz_jrhorn424
14:52
bal1 has quit [Quit: bal1]
14:52
jshultz has joined #ruby
14:52
bal has joined #ruby
14:52
Kricir has quit [Ping timeout: 260 seconds]
14:53
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
14:53
benzrf is now known as benzrf|offline
14:53
jenrzzz has quit [Ping timeout: 255 seconds]
14:53
<
jhass >
Emmanuel_Chanel: mmh, did you try just running multiple instances in the same process? (Thread.new { bot.start })
14:53
jasooon has quit [Ping timeout: 245 seconds]
14:54
thsig has quit [Remote host closed the connection]
14:54
kaspergrubbe has quit [Remote host closed the connection]
14:54
abuzze has joined #ruby
14:55
yetanotherdave has joined #ruby
14:55
snath has joined #ruby
14:55
niklasb has quit [Ping timeout: 250 seconds]
14:55
kaspergrubbe has joined #ruby
14:55
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:56
nojb has joined #ruby
14:57
startupality has quit [Quit: startupality]
14:57
banister has joined #ruby
14:57
bal has quit [Client Quit]
14:57
bal has joined #ruby
14:57
bal has quit [Client Quit]
14:57
abuzze_ has quit [Read error: Connection reset by peer]
14:58
rossgeesman has joined #ruby
14:58
rh1n0 has joined #ruby
14:58
Scotteh has joined #ruby
14:58
SilkFox has joined #ruby
14:59
rossgeesman has quit [Remote host closed the connection]
14:59
beef-wellington has quit [Ping timeout: 246 seconds]
14:59
sk87 has joined #ruby
14:59
techsethi has joined #ruby
14:59
emiemia has joined #ruby
15:00
hamakn has quit [Remote host closed the connection]
15:00
sevenseacat has quit [Remote host closed the connection]
15:00
<
Emmanuel_Chanel >
jhass: No... I thought that there is a way with only one instance. So I couldn't think of the multi-thread function of ruby.
15:00
sk87 has quit [Client Quit]
15:00
<
Emmanuel_Chanel >
jhass: Thank you for answering me!
15:01
peta_ has quit [Quit: peta_]
15:01
zz_jrhorn424 is now known as jrhorn424
15:02
beef-wellington has joined #ruby
15:02
greygrissom has joined #ruby
15:02
kobain has joined #ruby
15:02
terlar has quit [Ping timeout: 255 seconds]
15:03
sambao21 has quit [Quit: Computer has gone to sleep.]
15:03
SilkFox has quit [Ping timeout: 265 seconds]
15:03
nojb has quit [Remote host closed the connection]
15:03
TPBallbag has quit [Remote host closed the connection]
15:03
<
greygrissom >
where are the coments
15:03
<
greygrissom >
oh i see
15:03
jdj_dk has joined #ruby
15:03
chipotle has joined #ruby
15:03
VanillaGoat_ has joined #ruby
15:03
mistermocha has joined #ruby
15:04
<
greygrissom >
does anyone has any advice on dns server problems with gem installs
15:04
a1ph4g33k has joined #ruby
15:04
nojb has joined #ruby
15:05
<
greygrissom >
is there a particular version that doesn't have to worry about Marshal -your-dns-needs-serious etc
15:05
niklasb has joined #ruby
15:05
<
jhass >
ah the dns needs attention thingy
15:05
<
jhass >
OS X right?
15:05
<
greygrissom >
indeed
15:06
{xenomorph} is now known as xenomorph
15:06
<
greygrissom >
fyi, i believe so
15:06
iceden has joined #ruby
15:06
fabrice31 has joined #ruby
15:06
<
greygrissom >
dns settings are 208.67.220.220 / 222.222 (oepn dns)
15:06
xenomorph is now known as {xenomorph}
15:07
<
greygrissom >
thanks
15:07
<
jhass >
or google for "dns needs attention comcast", tons of results by now
15:07
valeriansaliou has quit [Ping timeout: 256 seconds]
15:07
<
jhass >
interesting that it didn't bite you till now
15:07
sambao21 has joined #ruby
15:07
<
jhass >
the switch was like two months ago
15:08
VanillaGoat has quit [Ping timeout: 265 seconds]
15:09
tonini has joined #ruby
15:09
<
greygrissom >
thanks a ton
15:10
startupality has joined #ruby
15:10
endash has joined #ruby
15:10
techsethi has quit [Quit: techsethi]
15:10
niklasb has quit [Ping timeout: 255 seconds]
15:10
ylluminarious has joined #ruby
15:11
it0a has joined #ruby
15:11
a1ph4g33k has quit [Quit: Lost terminal]
15:11
P-NuT has joined #ruby
15:11
drkyro has joined #ruby
15:12
timonv_ has quit [Remote host closed the connection]
15:12
TPBallbag has joined #ruby
15:12
kp666 has quit [Quit: Konversation terminated!]
15:12
<
P-NuT >
Hey there, can anyone tell me how to convert the time "Thu Oct 23 15:04:18 2014" to epoch?
15:13
dangerousdave has joined #ruby
15:13
MrSamuel has quit [Quit: MrSamuel]
15:13
<
jhass >
P-NuT: what exactly do you have. That string?
15:13
jeffwood has joined #ruby
15:13
<
tercenya >
p-nut: Time.parse('Thu Oct 23 15:04:18 2014').to_i
15:14
AlexRussia is now known as LexRussia
15:14
gauke has quit [Quit: gauke]
15:15
kotk_ has joined #ruby
15:15
<
tercenya >
also useful: Time.now.to_i
15:15
jeffwood has left #ruby [#ruby]
15:15
i_s has joined #ruby
15:15
jeffwood has joined #ruby
15:16
AlSquire has quit [Ping timeout: 255 seconds]
15:16
kotk has quit [Ping timeout: 265 seconds]
15:17
kireevco has joined #ruby
15:17
govg has quit [Remote host closed the connection]
15:17
jenrzzz has joined #ruby
15:18
Kricir has joined #ruby
15:20
i_s has quit [Ping timeout: 245 seconds]
15:20
maletor has joined #ruby
15:20
Kricir has quit [Read error: Connection reset by peer]
15:20
monsieurp has quit [Quit: Lost terminal]
15:20
Kricir has joined #ruby
15:21
monsieurp has joined #ruby
15:21
monsieurp has quit [Changing host]
15:21
monsieurp has joined #ruby
15:21
jeffwood has left #ruby [#ruby]
15:21
GPH|work has joined #ruby
15:22
<
olivier_bK >
someone have a tutorial for upload a file with mechanize ?
15:23
nojb has quit [Quit: nojb]
15:23
Kricir has quit [Read error: Connection reset by peer]
15:23
Kricir has joined #ruby
15:23
nojb has joined #ruby
15:25
bigkevmcd has quit [Ping timeout: 246 seconds]
15:25
sambao21 has quit [Quit: Computer has gone to sleep.]
15:25
abuzze_ has joined #ruby
15:25
SolarSailor has joined #ruby
15:25
iamjarvo has quit [Remote host closed the connection]
15:26
sigurding has quit [Quit: sigurding]
15:26
livathinos has quit []
15:27
abuzze has quit [Ping timeout: 250 seconds]
15:27
unshadow has joined #ruby
15:27
thisguy123 has joined #ruby
15:27
testcore has joined #ruby
15:27
rippa has joined #ruby
15:28
<
unshadow >
So, why wont this work ? : "sslContext = OpenSSL::SSL::SSLContext.new(:verify_mode => OpenSSL::SSL::VERIFY_NONE)" it returns "TypeError: no implicit conversion of Hash into String"
15:28
yfeldblum has joined #ruby
15:29
jdj_dk has quit [Ping timeout: 246 seconds]
15:29
niklasb has joined #ruby
15:29
<
jhass >
doesn't say it takes a hash
15:29
Rollabunna has joined #ruby
15:30
ghr has quit [Ping timeout: 250 seconds]
15:31
<
unshadow >
cant I always do this: "sslContext = OpenSSL::SSL::SSLContext.new(:verify_mode => OpenSSL::SSL::VERIFY_NONE)" when this is possible: sslContext.verify_mode = OpenSSL::SSL::VERIFY_NONE ?
15:31
hamakn has joined #ruby
15:32
awarner has quit [Remote host closed the connection]
15:32
aganov has quit [Remote host closed the connection]
15:32
<
unshadow >
oh.... so this is it then :\
15:32
yfeldblum has quit [Ping timeout: 255 seconds]
15:33
rkalfane has joined #ruby
15:33
Cheezebox has joined #ruby
15:34
Takle has quit [Remote host closed the connection]
15:34
iamjarvo has joined #ruby
15:34
greygrissom has quit []
15:35
monsieurp has quit [Quit: Lost terminal]
15:35
<
jhass >
I don't see where it says that
15:35
monsieurp has joined #ruby
15:36
jenrzzz has quit [Ping timeout: 245 seconds]
15:36
bigkevmcd has joined #ruby
15:36
<
jhass >
also the last statement is confusing
15:36
<
jhass >
not being able to use the colon syntax is the general case, the exception is for using symbol keys
15:37
thsig has joined #ruby
15:37
mattmcclure has joined #ruby
15:37
thisguy123 has quit [Quit: Lost terminal]
15:37
kotk has joined #ruby
15:38
fsapo has joined #ruby
15:38
<
workmad3 >
unshadow: that does point out that it's specifically rails...
15:38
<
jhass >
This is talking about ActiveRecord::Base subclasses
15:38
<
workmad3 >
unshadow: ruby != rails
15:38
startupality has quit [Quit: startupality]
15:39
startupality has joined #ruby
15:39
renderful has quit [Remote host closed the connection]
15:39
<
jhass >
"on the model" is the key here
15:40
<
unshadow >
yeha... I figured as much, just thought it was some kind of a general truth, nevermind thou
15:40
<
jhass >
also avoid learning rails with 5 years old guides
15:40
<
jhass >
check the official docs at guides.rubyonrails.org
15:41
Takle has joined #ruby
15:41
doev has joined #ruby
15:41
kotk_ has quit [Ping timeout: 256 seconds]
15:41
byprdct has quit [Ping timeout: 250 seconds]
15:42
<
apeiros >
bah, truths in programming hold for centuries!
15:42
<
unshadow >
I was trying to help someone in our company who is learning ROR, I'm more of a ruby guy and dont care too much about WEB development, I presumed that ruby on ralis is just ...well.. ruby on the web , guess not XD
15:42
<
jhass >
apeiros: you said it. _programming_. Talking about rails here though
15:42
byprdct has joined #ruby
15:43
<
apeiros >
rails truths even hold for millenia!
15:43
<
jhass >
where millenia == 1.month ?
15:44
fabrice31 has quit [Remote host closed the connection]
15:44
renderful has joined #ruby
15:44
kireevco1 has joined #ruby
15:45
kireevco has quit [Read error: Connection reset by peer]
15:45
startupality has quit [Quit: startupality]
15:45
maletor has quit [Quit: Computer has gone to sleep.]
15:46
xymbol has joined #ruby
15:47
havenwood has joined #ruby
15:47
<
unshadow >
btw, you guys think that ROR is ok for a first backend web development language ?
15:47
<
jhass >
it'll probably be fine
15:47
dc_ has joined #ruby
15:47
<
unshadow >
first as in the first on to learn*
15:47
<
jhass >
it helps to understand the underlying ruby code though
15:47
dc_ has quit [Remote host closed the connection]
15:47
startupality has joined #ruby
15:48
<
apeiros >
ROR is a framework, not a language
15:49
thsig has quit [Remote host closed the connection]
15:49
chrishough has joined #ruby
15:49
jenrzzz has joined #ruby
15:50
startupality has quit [Client Quit]
15:50
suy has quit [Remote host closed the connection]
15:50
<
havenwood >
the only rack adapter i'm aware of that gets mistaken for a lang :P
15:50
jasooon has joined #ruby
15:51
rodfersou has quit [Ping timeout: 265 seconds]
15:53
musicmatze1 is now known as musicmatze
15:53
suy has joined #ruby
15:53
tonini has quit [Ping timeout: 250 seconds]
15:54
* catphish
is hating on rack and wants an alternative
15:54
<
apeiros >
what's wrong with it?
15:54
jdj_dk has joined #ruby
15:54
<
apeiros >
(alternatives are almost always good anyway)
15:55
jasooon has quit [Ping timeout: 246 seconds]
15:55
carraroj has joined #ruby
15:56
ghostmoth has joined #ruby
15:57
rodfersou has joined #ruby
15:58
spyderman4g63 has quit [Remote host closed the connection]
15:58
byprdct has quit [Ping timeout: 255 seconds]
15:58
sailias has quit [Read error: Connection reset by peer]
15:58
sailias1 has joined #ruby
15:58
medo has joined #ruby
15:58
jrhorn424 is now known as zz_jrhorn424
15:59
spyderman4g63 has joined #ruby
15:59
poulet_a has quit [Quit: Quitte]
15:59
SilkFox has joined #ruby
15:59
rossgeesman has joined #ruby
16:00
klaut has quit [Remote host closed the connection]
16:02
Xeago has quit [Remote host closed the connection]
16:02
cherwin_ has quit [Ping timeout: 246 seconds]
16:02
chipotle has quit [Quit: cya]
16:02
renderful has quit [Remote host closed the connection]
16:03
roolo has quit [Remote host closed the connection]
16:03
zz_jrhorn424 is now known as jrhorn424
16:03
spyderman4g63 has quit [Ping timeout: 258 seconds]
16:03
sambao21 has joined #ruby
16:03
roolo has joined #ruby
16:03
carraroj has quit [Ping timeout: 260 seconds]
16:04
rossgeesman has quit [Ping timeout: 250 seconds]
16:04
sambao21 has quit [Client Quit]
16:04
j_mcnally has joined #ruby
16:04
SilkFox has quit [Ping timeout: 265 seconds]
16:04
gsd has joined #ruby
16:05
Wolland has joined #ruby
16:06
xymbol has quit [Quit: Be back later ...]
16:06
<
Liendre >
I am goin to finnish codecademy ruby and I dont want to!!!
16:06
i_s has joined #ruby
16:06
<
Liendre >
I am afraid I am going to sink in the next step :((((
16:07
<
Liendre >
those codewars katas are too much for me now
16:07
xymbol has joined #ruby
16:07
roolo has quit [Ping timeout: 250 seconds]
16:08
Takle_ has joined #ruby
16:08
Takle has quit [Read error: Connection reset by peer]
16:08
rh1n0 has quit [Ping timeout: 255 seconds]
16:08
doug1 has joined #ruby
16:08
aspires has joined #ruby
16:09
<
jhass >
doug1: doesn't work
16:09
FaresKAlaboud has quit [Read error: Connection reset by peer]
16:09
<
catphish >
apeiros: i need an interface where i can stream headers and body from the same block
16:09
<
jhass >
Liendre: maybe that means you went through it too fast? :)
16:09
<
doug1 >
I'm having trouble iterating over an irb template. it's an array of hashes and I need to remove the trailing comma
16:09
<
Liendre >
maybe jhass
16:09
danijoo_ has quit [Remote host closed the connection]
16:09
FaresKAlaboud has joined #ruby
16:09
Takle_ has quit [Remote host closed the connection]
16:09
danijoo has joined #ruby
16:10
<
catphish >
rack separates the streaming of content from the app logic, which is not ideal, and breaks a particular use case
16:10
byprdct has joined #ruby
16:10
coderhs has joined #ruby
16:10
TeresaP has joined #ruby
16:10
<
doug1 >
jhass: i got nuthin so far
16:10
<
doug1 >
some magic use of map and join is about as far as I've worked out
16:10
danijoo_ has joined #ruby
16:11
<
jhass >
then share input and wanted output at least
16:11
jrhorn424 is now known as zz_jrhorn424
16:11
shortCircuit__ has quit [Ping timeout: 244 seconds]
16:11
tercenya has quit []
16:12
andikr has quit [Remote host closed the connection]
16:12
hellangel7 has quit [Remote host closed the connection]
16:12
xymbol has quit [Client Quit]
16:12
myghty_ has joined #ruby
16:12
<
myghty_ >
I got a stupid question
16:12
<
myghty_ >
I ran apt-get install ruby on debian
16:12
<
myghty_ >
but when I now hit ruby --version it says /usr/local/bin/ruby: No such file or directory
16:13
timonv_ has joined #ruby
16:13
<
myghty_ >
where is ruby located normally by default?
16:13
<
jhass >
myghty_: what does `which ruby` say?
16:13
<
doug1 >
jhass: rather, with commas sorry
16:13
<
doug1 >
oh that's the wrong output. Darn it
16:14
<
Liendre >
jhass, will you help me with one thing?
16:14
<
jhass >
doug1: are you generating JSON with ERB?
16:14
narph has quit [Quit: Connection closed for inactivity]
16:14
<
jhass >
Liendre: no, but you can just openly ask into the channel and I might answer or somebody else might
16:14
danijoo has quit [Ping timeout: 250 seconds]
16:14
<
jhass >
doug1: why don't you build a ruby hash and convert it to json? hash.to_json
16:14
shortCircuit__ has joined #ruby
16:14
benzrf|offline is now known as benzrf
16:15
carraroj has joined #ruby
16:15
<
doug1 >
jhass: is a ruby has like a normal hash? This is in chef, so not necessarily full blown ruby
16:15
<
jhass >
doug1: so you might ask #chef for the "right" solution in chef
16:16
<
doug1 >
jhass: nah they kicked me out after asking so many questions
16:16
<
jhass >
myghty_: did you enter it with or without the ` ?
16:16
TPBallbag has quit [Remote host closed the connection]
16:16
kaspergrubbe has quit [Remote host closed the connection]
16:16
wpp has quit [Quit: ZZZzzz…]
16:16
epylinkn has joined #ruby
16:16
allcentu1 has quit [Ping timeout: 244 seconds]
16:16
<
doug1 >
well darn... <% @rs_members.to_json -%> didn't work...
16:16
<
treehug88 >
doug1: seriously? seems like there must have been some attitude involved (on some side)
16:17
shortCircuit__ has quit [Read error: Connection reset by peer]
16:17
<
doug1 >
treehug88: sure. I'd of course say it was all theirs. :)
16:17
bricker`work has joined #ruby
16:17
<
jhass >
myghty_: anything for command -v ruby ?
16:17
SiliconDon has joined #ruby
16:17
<
myghty_ >
I just went around it by manually installing ruby 2.x
16:18
<
doug1 >
jhass: thanks. that worked, but I've realised I might need to use a loop as I need to add something to the end of each host element...
16:18
Trudko has joined #ruby
16:18
TPBallbag has joined #ruby
16:19
<
jhass >
doug1: I know 0 chef. You don't have anything to modify the hash prior calling the template?
16:19
<
Liendre >
It always return nil. And I wish it to return the same number given
16:19
hellangel7 has joined #ruby
16:19
matchaw_ has joined #ruby
16:19
allcentu1 has joined #ruby
16:19
<
doug1 >
jhass: i could, but modifying it on the fly would be easier... inside a chef template, it's just irb.. so whatever you got should work. :)
16:19
matchaw has quit [Ping timeout: 256 seconds]
16:20
<
jhass >
>> def always(var=''); @var = var; @var = Proc.new {|n| n }; end; always
16:20
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:20
<
doug1 >
jhass: I basically just need to iterate over an array of hashes, and print two elements, id and host... and remove the trailing comma
16:20
<
jhass >
Liendre: ^ proc not nil
16:20
timonv_ has quit [Ping timeout: 244 seconds]
16:20
Xeago has joined #ruby
16:20
TPBallbag has quit [Remote host closed the connection]
16:21
sambao21 has joined #ruby
16:21
hellangel7 has quit [Max SendQ exceeded]
16:21
treehug88 has quit []
16:21
hellangel7 has joined #ruby
16:21
<
jhass >
doug1: "print"? just don't print a trailing comma then?
16:22
maestrojed has joined #ruby
16:22
<
jhass >
Trudko: t.note is a string, String has no operator to negate it (-)
16:22
<
jhass >
or t.total_points_per_round is
16:23
Hobogrammer has joined #ruby
16:23
jdj_dk has quit [Read error: Connection reset by peer]
16:23
joonty has quit [Quit: Leaving]
16:23
peta_ has joined #ruby
16:23
arup_r has joined #ruby
16:23
<
doug1 >
i can myself spending hours on this
16:24
Avahey has joined #ruby
16:24
<
jhass >
doug1: with much guessing: <%= @rs_members.map {|host| {"_id" => host["id"], "host" => host["host"]} }.to_json %>
16:24
jenrzzz has quit [Ping timeout: 250 seconds]
16:25
<
jhass >
note that this is normally nothing you would put into a template
16:25
tercenya has joined #ruby
16:25
mistermocha has quit [Remote host closed the connection]
16:25
matchaw_ has quit [Ping timeout: 245 seconds]
16:25
<
doug1 >
jhass: for reasons I'll spare you, it's better than putting it directly into cheff
16:26
matchaw has joined #ruby
16:26
jds has quit [Quit: Connection closed for inactivity]
16:26
jhwhite has quit [Quit: jhwhite]
16:27
<
P-NuT >
I have done a gem install mysql, but when I require it in a script using : require 'mysql' I get the error
16:27
stunder has joined #ruby
16:27
goshdarnyou has quit [Quit: Connection closed for inactivity]
16:27
<
P-NuT >
.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- mysql (LoadError)
16:27
jimmyhoughjr has joined #ruby
16:27
<
P-NuT >
Why would this be?
16:28
renderful has joined #ruby
16:28
<
jhass >
P-NuT: a) you've done the install in a different environment b) the install failed and you ignored its output. Besides use the mysql2 gem
16:29
Hobogrammer_ has joined #ruby
16:29
troyready has joined #ruby
16:30
timgauthier_away is now known as timgauthier
16:30
<
P-NuT >
mysql2 does the same error
16:30
<
Liendre >
jhass, reading some proc and function theory now
16:30
einarj has quit [Remote host closed the connection]
16:30
<
P-NuT >
I have installed it using gem install also
16:30
thagomizer has joined #ruby
16:30
digital-ghost has joined #ruby
16:30
msmith has quit [Read error: Connection reset by peer]
16:30
jdj_dk_ has joined #ruby
16:31
<
jhass >
P-NuT: make a gist with the output of gem env, rvm current and rvm info
16:31
_lexjm has joined #ruby
16:31
havenwood has quit [Ping timeout: 246 seconds]
16:31
<
Trudko >
jhass: ofc
16:31
<
P-NuT >
err.. How do I do that?
16:31
msmith has joined #ruby
16:31
havenwood has joined #ruby
16:31
skolman_ has joined #ruby
16:31
shortCircuit__ has joined #ruby
16:31
<
Trudko >
jhass: btw so i should short by length, question is what to do if string will be nil? should I just initiliaze as "" for example?
16:31
mikecmpbll has quit [Quit: i've nodded off.]
16:32
diegoviola has joined #ruby
16:32
startupality has joined #ruby
16:32
<
jhass >
that's one possibility
16:32
<
jhass >
you also could do .to_s.size
16:33
<
digital-ghost >
Can anyone recommend a web resource for learning the basics of the data base side of things w/Ruby and ActiveRecord? Have been working specifically with frontend Rails for a long time, now trying to understand more about dbs/migrations/ar etc. I've read up and down on the RailsGuide pages for AR, but it's not really a "rails" specific thing, more Ruby/OOP. Having trouble locating something to push me to the next learning stage.
16:33
skolman_ has quit [Remote host closed the connection]
16:33
Hobogrammer has quit [Ping timeout: 245 seconds]
16:33
sooli has joined #ruby
16:33
<
jhass >
digital-ghost: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ help
16:33
Hobogrammer has joined #ruby
16:33
<
Trudko >
jhass: even better
16:33
<
digital-ghost >
As I said.. not a Rails thing I'm looking for. ><
16:33
skolman_ has joined #ruby
16:33
sooli has left #ruby [#ruby]
16:33
dangerousdave has joined #ruby
16:33
skolman_ has quit [Remote host closed the connection]
16:33
<
jhass >
you only talked about rails for 80% of your question though
16:34
<
digital-ghost >
Because that's where I've been looking for information, only to realize that's not where I need to be.
16:34
skolman has joined #ruby
16:34
<
jhass >
the only thing that didn't include rails was saying that you're not looking for rails
16:34
<
digital-ghost >
<- new programmer, you spend a lot of time in the wrong places. That's why I'm here asking for help.
16:35
<
wasamasa >
why are you using activerecord for something non-rails?
16:35
<
digital-ghost >
I'm looking for information on working with DBs (in the context of the Ruby side of things). Forgive me for struggling on how to communicate what I really don't know.
16:35
SiliconDon has left #ruby [#ruby]
16:35
<
crome >
I think the rails guide is actually a pretty good start
16:35
diegoviola has quit [Remote host closed the connection]
16:35
<
doug1 >
jhass: null values for <%= @rs_members.map {|host| {"_id" => host["id"], "host" => "#{host["host"]}.dev-volatile.slicetest.com"} }.to_json %> :(
16:35
<
digital-ghost >
That's where I've been sent to numerous times, even if I wasn't working with Rails. But a lot of it goes over my head.
16:35
mostlybadfly is now known as moi_renee
16:36
unshadow has quit [Quit: leaving]
16:36
<
jhass >
doug1: what do you mean?
16:36
<
digital-ghost >
I haven't been able to find something that's very easy for someone totally new to data modeling/manipulation.
16:36
axisys has quit [Read error: Connection reset by peer]
16:36
tvw has joined #ruby
16:36
tylersmith has joined #ruby
16:36
<
doug1 >
iterates over all array elements, but the id comes out null and the host comes out ''
16:37
<
jhass >
"data modeling/manipulation". Isn't that called programming?
16:37
<
wasamasa >
digital-ghost: the less orm, the better
16:37
Hobogrammer_ has quit [Ping timeout: 256 seconds]
16:37
<
doug1 >
jhass: ie [{"_id":null,"host":".dev-volatile.slicetest.com"},{"_id":null,"host":".dev-volatile.slicetest.com"},{"_id":null,"host":".dev-volatile.slicetest.com"}]
16:37
_5kg has quit [Ping timeout: 255 seconds]
16:37
TPBallbag has joined #ruby
16:37
jhwhite has joined #ruby
16:37
sepp2k_ has quit [Quit: Konversation terminated!]
16:37
<
digital-ghost >
wasamase, thats really what I am looking for. the ORM has way to much "magic" for me, and just lacking the basic understanding of how information is being passed around.
16:38
<
wasamasa >
digital-ghost: you should also look for the tab-key, it helps with completing nicknames :P
16:38
<
digital-ghost >
wasamasa: Yea, know it, was just lazy there.
16:38
<
digital-ghost >
wasamasa: Apologies for butchering your name.
16:38
jerius has joined #ruby
16:38
wald0 has joined #ruby
16:38
<
wasamasa >
it's lazier to type one or two letters and hit tab than typing out the full name the wrong way
16:38
gilmour has joined #ruby
16:38
<
jhass >
doug1: I don't see how your example couldn't have generated something like that
16:38
jenrzzz has joined #ruby
16:38
<
P-NuT >
Ok, I have worked it out. my env gemdir is different in irb and shell. How do I make it the same as IRB?
16:39
<
doug1 >
jhass: it was based on your guess. :)
16:39
Igneous has joined #ruby
16:39
<
jhass >
doug1: and that was based on your earlier attempt
16:39
<
doug1 >
now I'm confused. :(
16:40
diegoviola has joined #ruby
16:40
<
jhass >
P-NuT: are you sure you started gem install and irb in the same environment?
16:40
iliketurtles has joined #ruby
16:41
<
wasamasa >
digital-ghost: I'd try out sequel or datamapper
16:41
<
jhass >
doug1: that's what I saw from chef so far. Confused people ;P
16:41
<
doug1 >
jhass: ruby and I don't get along. just the way it is
16:41
SiliconDon has joined #ruby
16:42
<
jhass >
I'd say chef is not the optimal entry ;P
16:42
<
Liendre >
I am trying some stuff but I think I shall step back and do tryruby again :|
16:42
<
jhass >
Liendre: how exactly do you call that?
16:42
hellangel7 has quit [Remote host closed the connection]
16:42
<
Igneous >
I've got something that's spawning a ton of objects that aren't being cleaned up (ultimately resulting in the ruby vm balooning its heap, and my system killing the process for OOM reasons). I suspect it's an issue with my ORM (mongoid), Is there a good way to go about debugging this?
16:43
<
doug1 >
I mean, I can't even find any examples of iterating over an array of hashes in irb
16:43
Kricir has quit [Remote host closed the connection]
16:43
<
wasamasa >
digital-ghost: the main issue I have with ORM is that they default to less than optimal queries and you need to invest effort to make slow ones performant again
16:43
<
Liendre >
jhass, look at the comment
16:43
<
jhass >
Igneous: ActiveRecord for this reason has find_each which limits the number of concurrently instantiated objects, maybe mongoid has something alike?
16:43
<
digital-ghost >
wasamasa: I have a feeling this still isn't what I'm looking for exactly. For instance, I do not know SQL, period.
16:43
<
digital-ghost >
wasamasa: I'm looking for fundamentals w/dbs.
16:43
Kricir has joined #ruby
16:43
tuelz has joined #ruby
16:44
<
doug1 >
jhass: still think that should work
16:44
spyderman4g63 has joined #ruby
16:44
<
wasamasa >
digital-ghost: uh, then use the db adapters themselves?
16:44
beef-wellington has quit [Ping timeout: 244 seconds]
16:44
<
wasamasa >
digital-ghost: there's more to databases than learning the sql syntax
16:44
<
tuelz >
What's the best route to go when I need to contruct json a certain way i.e. with the rocket and a colon instead
16:44
<
jhass >
Liendre: so if you do Proc.new {|n| } it expects to be called with .call(3) for example, but it gets called without an argument and so n is nil
16:45
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:45
<
tuelz >
err that is without the rocket
16:45
<
jhass >
tuelz: are you confusing ruby hashes with json maybe?
16:45
<
digital-ghost >
wasamasa: I actually read and watched the video there.
16:45
<
Liendre >
jhass, I am calling it with an n
16:46
Takle has joined #ruby
16:46
<
jhass >
Liendre: not in your examples
16:46
<
wasamasa >
digital-ghost: is that why you were asking about activerecord?
16:46
<
Liendre >
jhass, It was Proc.new {|n| n}
16:46
<
Igneous >
jhass: well the issue isn't that I need batching, it's that the things that are being instantiated aren't being freed. I'll do a Model.all.map { block } in a sinatra 'get' block, and at the end of the get, that stuff should be cleaned up (right?)
16:46
<
digital-ghost >
wasamasa: Yea.
16:46
<
tuelz >
jhass: this icontact api is really fussy about the raw json it accepts, I can post json over postman all day, but can't figure out how to do it via ruby
16:46
<
Liendre >
everybody ask to jhass :)
16:46
catphish has quit [Quit: Leaving]
16:46
bMalum_ has joined #ruby
16:46
x1337807x has joined #ruby
16:47
<
jhass >
Igneous: no, you can't predict GC runs
16:47
<
Igneous >
there are only ~20 documents in that particular model that I'm mapping (and it should stay that low), so I thought that was safe :/
16:47
kaspergrubbe has joined #ruby
16:47
<
digital-ghost >
wasamasa: I almost picked up his book, Ruby under a Microscope, just yesterday. But it was still a bit beyond me.
16:47
<
Liendre >
Maybe one day I know enough to help you :)
16:47
<
tuelz >
#to.json produce 'key' => 'value' - I want 'key': 'value'
16:47
rh1n0 has joined #ruby
16:47
<
jhass >
Igneous: you can force GC runs with GC.start but that's generally slow
16:47
<
Igneous >
jhass: is there any chance that using jruby would help alleviate this?
16:47
bMalum has quit [Ping timeout: 255 seconds]
16:47
bMalum_ is now known as bMalum
16:47
tonini has joined #ruby
16:47
TPBallbag has quit [Remote host closed the connection]
16:47
<
Igneous >
I'm on a pretty recent MRI
16:47
<
digital-ghost >
wasamasa: THIS is what I was looking for.
16:47
<
wasamasa >
digital-ghost: it's mostly papers
16:48
<
olivier_bK >
some has already testing to upload file with mechanize ?
16:48
Kricir has quit [Ping timeout: 244 seconds]
16:48
<
wasamasa >
digital-ghost: some about how to implement stuff, some about basics (like, hard requirements you can only fulfill partially)
16:48
<
jhass >
tuelz: no, it doesn't, that looks .inspect, not .to_json
16:48
carraroj has quit [Ping timeout: 246 seconds]
16:48
<
wasamasa >
digital-ghost: and I've found a book somewhere in the comments that looked promising
16:48
<
digital-ghost >
wasamasa: I'm okay with papers, I'm looking for high level information, so that I can pick out the stuff I need to search on. But not knowing the language to even talk about this has been painful
16:48
<
jhass >
Igneous: ask headius
16:48
jenrzzz has quit [Ping timeout: 245 seconds]
16:48
reprazent has joined #ruby
16:49
<
wasamasa >
digital-ghost: yep, "Database in Depth" by chris date
16:49
ramfjord has joined #ruby
16:49
<
jhass >
Igneous has memory usage issues and wonders if jruby performs better there ;)
16:49
<
digital-ghost >
wasamasa: My problem began when I created a new program, started out with just raw Ruby. But started looking at RoR, and realized, I had little to no clue on how to really fashion model objects.
16:49
<
wasamasa >
digital-ghost: that might shorten the amount of stuff to plough through
16:50
<
Igneous >
It's basically to the point where if I hit a particular rest call, my VM will baloon by about 4MB
16:50
<
wasamasa >
digital-ghost: anyways, I'm glad I could help
16:50
<
Igneous >
I've never seen it cleaned up, but I think it should be... I'm not assigning any globals or doing anything crazy, unless mongoid is :/
16:50
<
Liendre >
jhass, omg I cannot believe it. This was the solution. (I unlocked it :( )
16:50
<
digital-ghost >
wasamasa: Thanks, this is a step in the right direction . looking for something like this.
16:50
Kricir has joined #ruby
16:50
jhwhite has quit [Quit: jhwhite]
16:50
<
jhass >
Liendre: yep, it's that simple
16:51
mercwithamouth has quit [Ping timeout: 244 seconds]
16:51
<
digital-ghost >
wasamasa: Also checking on the datamapper github page, might be able to play with this over the weekend.
16:51
<
Liendre >
jhass, I think that I tried that one :X
16:51
mxrguspxrt has joined #ruby
16:51
<
jhass >
Liendre: you can construct the proc a bit shorter proc { n }
16:51
<
digital-ghost >
wasamasa: Sucks being a graphic designer moving into programming w/no training lol
16:51
<
tuelz >
jhass: hmm, gotcha, not sure what my problem is then. thanks
16:51
reprazent has quit [Quit: WeeChat 1.0.1]
16:51
jasooon has joined #ruby
16:51
<
jhass >
Liendre: what this teaches you is that the proc is what we call a closure, it keeps a reference to the used variables
16:52
Eiam has joined #ruby
16:52
beef-wellington has joined #ruby
16:52
<
Liendre >
jhass, But I thought that I can't use same variables in the method and in the proc!!??
16:52
diegoviola has quit [Ping timeout: 246 seconds]
16:52
<
jhass >
in fact you can
16:52
diegovio1 has joined #ruby
16:52
ixti has quit [Ping timeout: 260 seconds]
16:53
<
Liendre >
yes. I see now
16:53
diegovio1 is now known as diegoviola
16:53
<
Liendre >
thanks for your patience
16:53
<
jhass >
depending on what "use" is it'll use the outer one or shadow it, that is create a new one with the same name
16:54
<
Igneous >
okay, something naughty is going on.. With a route that's just get '/gc/start' { GC.start }, every call to it baloons the vm by a couple megs
16:54
Asher has joined #ruby
16:54
<
jhass >
oh yeah, GC runs also consume memory
16:54
Takle has joined #ruby
16:54
Xeago has quit [Remote host closed the connection]
16:54
<
wasamasa >
hum, I thought that GC would try to not allocate extra memory?
16:55
<
Liendre >
functions to be passed as arguments...
16:55
nojb has quit [Quit: nojb]
16:55
<
jhass >
we have some many versions of them by now, I lost track which does what
16:55
<
wasamasa >
at least the CL guys emphasize not ever consing when it can be avoided
16:55
<
Liendre >
interesting. So there can be a closure of a closure of a closure of a function??
16:55
<
jhass >
Liendre: up to your stack limit, yeah
16:56
mistermocha has joined #ruby
16:56
havenwood has quit [Remote host closed the connection]
16:56
myghty_ has left #ruby [#ruby]
16:57
mityaz_ has joined #ruby
16:57
skolman has quit [Remote host closed the connection]
16:58
drawingthesun has quit [Ping timeout: 245 seconds]
16:59
wald0 has quit [Quit: Lost terminal]
17:00
rossgeesman has joined #ruby
17:00
jheg has quit [Quit: jheg]
17:00
sepp2k has joined #ruby
17:00
SilkFox has joined #ruby
17:00
mistermocha has quit [Ping timeout: 265 seconds]
17:00
bauruine_ has quit [Ping timeout: 260 seconds]
17:00
mxrguspxrt has quit []
17:01
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:02
tonini has quit [Ping timeout: 250 seconds]
17:02
grzywacz has quit [Ping timeout: 244 seconds]
17:02
mxrguspxrt has joined #ruby
17:02
skolman_ has joined #ruby
17:03
bMalum has quit [Ping timeout: 255 seconds]
17:03
nichtdiebohne has quit [Ping timeout: 258 seconds]
17:03
tier_ has quit [Remote host closed the connection]
17:03
wallerdev has joined #ruby
17:03
gbchaosmaster has joined #ruby
17:04
bMalum has joined #ruby
17:04
rossgeesman has quit [Ping timeout: 245 seconds]
17:05
SilkFox has quit [Ping timeout: 244 seconds]
17:05
Takle has joined #ruby
17:05
Spami has quit [Quit: This computer has gone to sleep]
17:05
Aaaal has quit [Quit: Aaaal]
17:05
Spami has joined #ruby
17:06
Spami has quit [Remote host closed the connection]
17:06
shazaum has joined #ruby
17:06
ptrrr has joined #ruby
17:07
TPBallbag has joined #ruby
17:07
<
Liendre >
I come back to ruby videos
17:07
<
Liendre >
I am not ready to face the darkness yet
17:08
<
Igneous >
holy shit I found it.. It had nothing to do with mongoid
17:08
sailias has quit [Quit: Leaving.]
17:09
<
doug1 >
In irb... can I nest variables?
17:09
TPBallbag has quit [Remote host closed the connection]
17:09
<
Igneous >
was assigning a class variable in a before block in sinatra.. something about the way that I was assigning that class var (instantiated from an iffy gem) was spawning a bunch of celluloid actors
17:09
<
Igneous >
so every request it'd spawn 10 celluloid actors
17:10
tonini has joined #ruby
17:10
m8 has joined #ruby
17:10
sailias has joined #ruby
17:11
emmesswhy has joined #ruby
17:11
nichtdiebohne has joined #ruby
17:11
fr-canadian has quit [Ping timeout: 250 seconds]
17:12
papercode has quit [Remote host closed the connection]
17:12
papercode has joined #ruby
17:12
AlSquire has joined #ruby
17:13
nobitanobi has joined #ruby
17:13
Rollabunna has quit [Remote host closed the connection]
17:14
ndrei has quit [Ping timeout: 265 seconds]
17:14
Guest3833 has quit [Remote host closed the connection]
17:15
jasooon has quit [Ping timeout: 256 seconds]
17:16
Snowstormer is now known as burritocat
17:16
awarner has joined #ruby
17:18
<
jhass >
doug1: it's ERB, irb is the repl shipped with ruby
17:18
ghr has joined #ruby
17:18
skolman_ has quit [Remote host closed the connection]
17:18
moi_renee is now known as mostlybadfly
17:18
<
doug1 >
in this... <%= @rs_members.map {|host| {"_id" => host["id"], "host" => "#{host["host"]}.xxx.slicetest.com" } }.to_json %> how would I replace xxx with another variable?
17:18
<
doug1 >
Because replacing xxx with <%= @some_var %> doesn't work
17:18
<
jhass >
you already used the construct needed
17:19
<
jhass >
right in front of it
17:19
<
jhass >
#{ruby code}
17:19
skolman has joined #ruby
17:19
epylinkn has quit [Remote host closed the connection]
17:19
yetanotherdave has quit [Quit: Lost terminal]
17:19
<
doug1 >
jhass: it's #{ } ? but...
17:19
<
doug1 >
it's a template var
17:19
<
doug1 >
normally accessed via @template_var
17:19
<
jhass >
#{@template_var}
17:20
matiaslina has joined #ruby
17:20
<
doug1 >
i'll try that
17:20
<
jhass >
<% ruby code %>. In ruby "foo" is a string. Inside a string you can interpolate ruby code with #{}
17:20
cocotton has quit [Remote host closed the connection]
17:21
<
jhass >
and I'd still built the whole thing as ruby structure and to_json it one time
17:21
Scotteh has quit [Ping timeout: 246 seconds]
17:21
<
doug1 >
yep, thanks. god i got no idea with ruby. That works
17:22
_5kg has joined #ruby
17:22
cocotton has joined #ruby
17:23
awarner has quit [Remote host closed the connection]
17:23
ghr has quit [Ping timeout: 245 seconds]
17:23
awarner has joined #ruby
17:23
skolman has quit [Ping timeout: 246 seconds]
17:23
altamic has joined #ruby
17:23
altamic has left #ruby [#ruby]
17:24
startupality has quit [Quit: startupality]
17:25
altamic has joined #ruby
17:25
rbrs has quit [Remote host closed the connection]
17:25
Scotteh has joined #ruby
17:26
SiliconDon has quit [Quit: ZZZzzz…]
17:26
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
17:26
ebru has quit [Ping timeout: 240 seconds]
17:26
agrinb has joined #ruby
17:26
theotherstupidgu has quit [Ping timeout: 240 seconds]
17:26
djbkd has joined #ruby
17:27
<
Liendre >
omg jhass now i understand everything!!
17:27
<
Liendre >
it was so silly
17:27
theother1tupidgu has quit [Ping timeout: 255 seconds]
17:28
wald0 has joined #ruby
17:28
BRMatt has joined #ruby
17:28
theotherstupidgu has joined #ruby
17:28
theother1tupidgu has joined #ruby
17:28
IcyDragon has joined #ruby
17:29
IceDragon has quit [Ping timeout: 265 seconds]
17:29
ebru has joined #ruby
17:29
tonini has quit [Ping timeout: 250 seconds]
17:31
jacobat has joined #ruby
17:32
agrinb has quit [Remote host closed the connection]
17:32
aspiers has joined #ruby
17:33
zz_jrhorn424 is now known as jrhorn424
17:33
fr-canadian has joined #ruby
17:34
skolman has joined #ruby
17:34
chipotle has joined #ruby
17:35
ramfjord has quit [Ping timeout: 256 seconds]
17:35
jrhorn424 is now known as zz_jrhorn424
17:36
Synthead has quit [Read error: Connection reset by peer]
17:36
<
doug1 >
still shovelling shit up hill.
17:36
agrinb has joined #ruby
17:36
<
doug1 >
ok, now this doesn't work... <%= @rs_members.map {|host| {" _id : #{host["id"]} ", "_id" => host["id"], "host" => "#{host["host"]}.#{@node.chef_environment}.slicetest.com" } } %>
17:37
<
doug1 >
I need to control the output format, so "_id" => host["id"] is no good. tried to use " _id : #{host["id"]} " and it complains
17:37
olivier_bK has quit [Ping timeout: 265 seconds]
17:37
<
doug1 >
I can't convert to json, so this for mongo comsumption and the id has to be numeric.. no quotes. to_json adds quotes around it
17:38
existensil has quit [Quit: WeeChat 0.4.2]
17:38
tonini has joined #ruby
17:38
amclain has joined #ruby
17:39
Skipp_OSX has joined #ruby
17:39
<
jhass >
then it's a string in ruby
17:39
<
jhass >
{"_id" => host["id"].to_i }.to_json
17:39
<
jhass >
maybe try tryruby.org
17:39
gauke has joined #ruby
17:39
<
headius >
Igneous: pretty good chance that JRuby could help if your issues are GC-related
17:40
TPBallbag has joined #ruby
17:40
<
doug1 >
what about as_json?
17:40
<
headius >
Igneous: oh, I see...it was actually a bug
17:40
<
doug1 >
oops jhass rather
17:40
kenneth has quit [Quit: Bye.]
17:40
wldcordeiro has quit [Read error: Connection reset by peer]
17:41
p8952 has joined #ruby
17:41
theotherstupidgu has quit [Ping timeout: 245 seconds]
17:41
theother1tupidgu has quit [Ping timeout: 250 seconds]
17:41
ferr has joined #ruby
17:41
fr-canadian has quit [Ping timeout: 246 seconds]
17:41
jaequery has joined #ruby
17:41
bayed has quit [Quit: Connection closed for inactivity]
17:42
theotherstupidgu has joined #ruby
17:42
theother1tupidgu has joined #ruby
17:42
WormDrink has quit [Ping timeout: 245 seconds]
17:42
timonv_ has joined #ruby
17:42
<
jhass >
ferr: just pass in session_key and user as parameters to the method
17:43
jaequery has quit [Client Quit]
17:43
lolmaus has quit [Quit: Konversation terminated!]
17:43
Skipp_OSX has left #ruby ["Leaving"]
17:43
jaequery has joined #ruby
17:43
<
jhass >
def facebook; sign_in_with_omniauth(User.from_omniauth(request.env["omniauth.auth"], "devise.facebook_data"); end
17:44
baordog has quit [Ping timeout: 265 seconds]
17:44
emmesswhy has quit [Quit: This computer has gone to sleep]
17:44
jenrzzz has joined #ruby
17:44
Takle has quit [Remote host closed the connection]
17:44
chrishough has joined #ruby
17:45
tcurdt has joined #ruby
17:45
danijoo_ has quit [Read error: Connection reset by peer]
17:46
arup_r has quit [Ping timeout: 244 seconds]
17:46
thsig has joined #ruby
17:46
TPBallbag has quit [Ping timeout: 240 seconds]
17:46
claymore has joined #ruby
17:46
danijoo has joined #ruby
17:46
<
Igneous >
headius: I will still probably end up using warbler and jruby+tomcat.. just because it simplifies the deployment process quite a bit.
17:46
<
Igneous >
it's been on the table for a while
17:47
FooMunki has quit [Quit: FooMunki]
17:47
tier has joined #ruby
17:48
timonv_ has quit [Remote host closed the connection]
17:48
rdark has quit [Quit: leaving]
17:48
gauke has quit [Quit: gauke]
17:48
tcurdt has quit [Client Quit]
17:48
tier has quit [Remote host closed the connection]
17:48
failshel_ has joined #ruby
17:48
jenrzzz has quit [Ping timeout: 240 seconds]
17:49
failshel_ has quit [Remote host closed the connection]
17:49
tier has joined #ruby
17:49
<
headius >
sounds good...let us know if you run into any trouble :-)
17:49
<
apeiros >
jhass: btw., you've seen that .xyz has been registered as tld?
17:50
<
apeiros >
mrzyx.xyz
17:50
agrinb has quit [Remote host closed the connection]
17:50
<
jhass >
phasing the nick out though
17:50
<
jhass >
already got hass.email ;)
17:51
<
yxhuvud >
not can.hass.email?
17:51
<
apeiros >
.email is a tld now too?
17:51
<
jhass >
yxhuvud: that's included ;)
17:51
<
jhass >
apeiros: yep
17:51
pothibo has joined #ruby
17:51
<
apeiros >
I'm still not sure what to think of this new gtld craze :-S
17:51
<
jhass >
.web and .mail are still in the contention sets :/
17:52
failshell has quit [Ping timeout: 256 seconds]
17:52
<
apeiros >
it's all about the money…
17:52
<
jhass >
yeah, have you seen the latest auction results?
17:53
GeorgesLeYeti has joined #ruby
17:53
marr has quit [Ping timeout: 244 seconds]
17:54
<
yxhuvud >
some are more than a little silly. Like .vermögensberater
17:54
<
yxhuvud >
just a bit obscure..
17:54
<
jhass >
haha, didn't notice that one
17:54
jerius has joined #ruby
17:54
<
yxhuvud >
iirc, it holds the record for the currently longest one
17:55
<
jhass >
I'm rather surprised .email and .mail didn't went into the same contention set
17:55
<
jhass >
there's even some plural vs singular ones delegated by now (forgot which ones..)
17:56
<
apeiros >
I see lots and lots of people who get scammed and phised because of the new gtlds
17:56
<
yxhuvud >
no, wait, vermögensberatung may be the record holder. almost the same anyhow
17:57
cocotton has quit [Remote host closed the connection]
17:57
dumdedum has quit [Quit: foo]
17:57
GeorgesLeYeti has quit [Client Quit]
17:57
failshell has joined #ruby
17:58
Takle has joined #ruby
17:58
awarner has quit [Remote host closed the connection]
17:58
<
jhass >
jeez, vermögensberater won as single-registrant model?
17:58
<
jhass >
that's insanse
17:58
<
jhass >
*insane even
17:58
<
yxhuvud >
both of them!
17:59
<
jhass >
not as insane as google getting .dev as single-registrant I guess
17:59
cocotton has joined #ruby
17:59
tier has quit [Remote host closed the connection]
17:59
awarner has joined #ruby
17:59
kireevco1 has quit [Read error: Connection reset by peer]
18:00
kireevco has joined #ruby
18:00
<
apeiros >
apple has not registered .apple yet?
18:00
<
jhass >
it's contracting currently
18:01
SilkFox has joined #ruby
18:01
SiliconDon has joined #ruby
18:02
tier has joined #ruby
18:02
yeticry has quit [Ping timeout: 245 seconds]
18:02
timgauthier is now known as timgauthier_away
18:03
sambao21 has quit [Quit: Computer has gone to sleep.]
18:03
yeticry has joined #ruby
18:03
emmesswhy has joined #ruby
18:03
ixti has joined #ruby
18:03
dangerousdave has joined #ruby
18:04
SiliconDon has quit [Client Quit]
18:04
mikecmpbll has joined #ruby
18:05
sambao21 has joined #ruby
18:05
workmad3 has quit [Ping timeout: 245 seconds]
18:05
timgauthier_away is now known as timgauthier
18:05
SilkFox has quit [Ping timeout: 244 seconds]
18:05
melik has joined #ruby
18:06
pandaant has quit [Quit: Lost terminal]
18:06
pandaant has joined #ruby
18:07
Morkel_ has joined #ruby
18:07
weaksauce has joined #ruby
18:07
yetanotherdave has joined #ruby
18:08
mistermocha has joined #ruby
18:08
sinkensabe has joined #ruby
18:08
freezey has joined #ruby
18:08
Morkel has quit [Ping timeout: 255 seconds]
18:08
Morkel_ is now known as Morkel
18:08
coderhs has quit [Ping timeout: 255 seconds]
18:08
benzrf is now known as benzrf|offline
18:09
codecop has quit [Remote host closed the connection]
18:09
Liendre has quit [Ping timeout: 250 seconds]
18:09
kaspertidemann has joined #ruby
18:09
gyre007_ has quit [Remote host closed the connection]
18:10
ramfjord has joined #ruby
18:11
Kricir has quit [Remote host closed the connection]
18:11
pandaant has quit [Remote host closed the connection]
18:11
havenwood has joined #ruby
18:11
Kricir has joined #ruby
18:11
axl_ has joined #ruby
18:11
fmcgeough has joined #ruby
18:11
chrishough has quit [Ping timeout: 245 seconds]
18:12
jasooon has joined #ruby
18:12
kaneda^ has joined #ruby
18:12
patrick99e99 has joined #ruby
18:12
pandaant has joined #ruby
18:12
<
kaneda^ >
hey all, if one uses the ruby net library, what is the default version of ssl/tls that is used when none is specified explicitly?
18:12
<
kaneda^ >
i assume tlsv1
18:13
Hytosys has joined #ruby
18:14
<
yxhuvud >
do you mean 1.0, 1.1 or 1.2?
18:14
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:14
<
graft_ >
individual companies are getting tlds now?
18:14
<
graft_ >
RIP the internet
18:14
<
kaneda^ >
yxhuvud: i mean, is it possible that it defaults to sslv3 for some reason
18:14
dangerousdave has joined #ruby
18:15
<
kaneda^ >
asking because there are many services removing sslv3 support after poodle
18:15
<
kaneda^ >
and i although i can specify the type explicitly i was hoping this wouldnt be necessary
18:15
<
havenwood >
kaneda^: the defaults are good in ruby 2.2.0-preview1, you have to set it yourself prior
18:15
iamjarvo has joined #ruby
18:15
cherwin has joined #ruby
18:15
pu22l3r has joined #ruby
18:15
Kricir has quit [Ping timeout: 246 seconds]
18:15
rh1n0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
18:16
jottr has quit [Ping timeout: 256 seconds]
18:16
kirun has joined #ruby
18:17
<
yxhuvud >
kaneda: either it is ok that your users use sslv3, or it isn't. make that choice, and stick with it
18:17
mistermocha has quit [Remote host closed the connection]
18:19
jheg has joined #ruby
18:19
chrishough has joined #ruby
18:20
jasooon has quit [Ping timeout: 246 seconds]
18:20
agrinb has joined #ruby
18:21
pu22l3r_ has joined #ruby
18:22
<
kaneda^ >
yxhuvud: that's rough, ty
18:22
niKeITA has joined #ruby
18:22
chipotle has quit [Quit: cya]
18:23
thagomizer has quit [Quit: Leaving.]
18:23
thagomizer has joined #ruby
18:23
<
yxhuvud >
I implemented a gui for disabling those methods and ciphers today ._.
18:23
GPH|work has quit [Ping timeout: 245 seconds]
18:23
GPH|work has joined #ruby
18:24
jacobat has quit [Ping timeout: 258 seconds]
18:24
Liendre has joined #ruby
18:25
pu22l3r has quit [Ping timeout: 246 seconds]
18:25
<
kaneda^ >
yxhuvud: i updated the one project for which i'm directly responsible to explicitly use tlsv1 after poodle, but now i'm using some things that are not explicitly set
18:25
<
kaneda^ >
so i'm trying to put in issues to github and such
18:25
cocotton has quit [Remote host closed the connection]
18:26
wald0 has quit [Quit: Lost terminal]
18:26
cndiv has joined #ruby
18:26
cocotton has joined #ruby
18:26
duncannz has quit [Remote host closed the connection]
18:27
niKeITA has quit [Client Quit]
18:28
<
ericwood >
am I missing something or is there not an array method like reject that returns the items that were removed?
18:28
Pupeno has quit [Remote host closed the connection]
18:28
niKeITA has joined #ruby
18:28
<
yxhuvud >
I see. thankfully we are only dependent on our own code.
18:28
<
yxhuvud >
ericwood: you mean like select?
18:28
Pupeno has joined #ruby
18:29
<
yxhuvud >
execpt that doesn't remove items, (and neither do reject (only reject!))
18:29
sigurding has joined #ruby
18:29
<
jhass >
if you want both results use .partition
18:29
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:29
ixolit has joined #ruby
18:29
<
ericwood >
hmmm okay thanks
18:30
jobewan has quit [Quit: Leaving]
18:30
<
kaneda^ >
just delete would return the item removed as well
18:30
<
yxhuvud >
jhass: yes, or possibly group_by depending on exactly what is needed.
18:30
chipotle has joined #ruby
18:30
<
ericwood >
partition might be what I want
18:31
<
ericwood >
yeah I think I'll use this
18:31
<
ericwood >
gracias amigos
18:32
jerius has joined #ruby
18:32
WormDrink has joined #ruby
18:32
akemrir has quit [Quit: WeeChat 1.0.1]
18:32
Dude007 has quit [Ping timeout: 245 seconds]
18:32
FDj_ is now known as FDj
18:33
jdj_dk_ has quit [Ping timeout: 255 seconds]
18:33
ec has quit [Ping timeout: 265 seconds]
18:33
diegovio1 has joined #ruby
18:34
mercwithamouth has joined #ruby
18:34
kamil has quit [Disconnected by services]
18:34
niKeITA is now known as niKeITA_away
18:34
diegoviola has quit [Ping timeout: 265 seconds]
18:35
gbchaosmaster has quit [Ping timeout: 260 seconds]
18:35
byprdct has quit []
18:35
ec has joined #ruby
18:35
Dude007 has joined #ruby
18:36
iamjarvo has joined #ruby
18:36
gbchaosmaster has joined #ruby
18:38
doev has quit [Ping timeout: 260 seconds]
18:38
renderful has quit [Remote host closed the connection]
18:39
iamjarvo has quit [Client Quit]
18:39
skolman has quit [Remote host closed the connection]
18:40
skolman_ has joined #ruby
18:40
F__i__L has quit [Ping timeout: 265 seconds]
18:40
SouL has quit [Ping timeout: 258 seconds]
18:40
yetanotherdave has quit [Read error: Connection reset by peer]
18:41
cmckee has joined #ruby
18:42
renderful has joined #ruby
18:42
niKeITA_away has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
18:42
m_3 has left #ruby [#ruby]
18:42
jdj_dk has joined #ruby
18:43
TPBallbag has joined #ruby
18:43
gauke has joined #ruby
18:44
skolman_ has quit [Ping timeout: 246 seconds]
18:44
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
18:45
jack_rabbit has joined #ruby
18:45
mistermocha has joined #ruby
18:45
arrubin has joined #ruby
18:45
jenrzzz has joined #ruby
18:45
yetanotherdave has joined #ruby
18:46
sinkensabe has quit [Remote host closed the connection]
18:46
icarus has joined #ruby
18:47
Avahey has quit [Quit: Connection closed for inactivity]
18:47
jacobat has joined #ruby
18:47
TPBallbag has quit [Ping timeout: 250 seconds]
18:48
mxrguspxrt has quit [Remote host closed the connection]
18:48
slbmeh has joined #ruby
18:48
rainfyre has quit [Quit: Lost terminal]
18:48
shortCircuit__ has quit [Read error: Connection reset by peer]
18:48
jtdowney has joined #ruby
18:49
laudo has joined #ruby
18:49
timonv_ has joined #ruby
18:49
thsig has quit [Remote host closed the connection]
18:49
jtdowney has quit [Client Quit]
18:49
Dude007 has quit [Remote host closed the connection]
18:49
<
laudo >
is there a way of querying a hash that it returns only the value pairs that are nil?
18:49
timonv_ has quit [Remote host closed the connection]
18:49
timonv_ has joined #ruby
18:49
jtdowney has joined #ruby
18:50
jenrzzz has quit [Ping timeout: 255 seconds]
18:50
Soda has quit [Remote host closed the connection]
18:52
<
jhass >
laudo: select {|k,v| v.nil? }
18:52
estebanrules has joined #ruby
18:52
snath has quit [Ping timeout: 244 seconds]
18:52
grzywacz has joined #ruby
18:52
toretore has joined #ruby
18:53
gbchaosmaster has quit [Ping timeout: 244 seconds]
18:53
Pupeno_ has joined #ruby
18:54
kyb3r_ has joined #ruby
18:54
gyre007_ has joined #ruby
18:54
Dude007 has joined #ruby
18:55
shazaum has quit [Quit: This computer has gone to sleep]
18:55
Pupeno has quit [Ping timeout: 265 seconds]
18:56
wallerdev has quit [Quit: wallerdev]
18:56
agrinb has quit [Remote host closed the connection]
18:56
jenrzzz has joined #ruby
18:57
jottr has joined #ruby
18:57
wallerdev has joined #ruby
18:58
mistermocha has quit [Remote host closed the connection]
18:58
<
laudo >
jhass: thanks what i am trying to do is this
http://pastie.org/9670926 . I have a query which returs all floating ips for an opstack instance and I want to filter them if the value of instance_id is nil
18:58
faulkner has joined #ruby
18:58
yeticry has quit [Ping timeout: 244 seconds]
18:58
Trudko has quit [Remote host closed the connection]
18:58
<
jhass >
that's no hash there
18:59
wallerdev has quit [Client Quit]
18:59
<
jhass >
guess: .select {|address| address.instance_id.nil? }
18:59
gyre007_ has quit []
19:00
rossgeesman has joined #ruby
19:00
Dude007 has quit [Remote host closed the connection]
19:00
yeticry has joined #ruby
19:00
emmesswhy has quit [Quit: This computer has gone to sleep]
19:00
sambao21 has quit [Quit: Computer has gone to sleep.]
19:01
shredding has joined #ruby
19:01
failshell has quit [Remote host closed the connection]
19:01
workmad3 has joined #ruby
19:01
SilkFox has joined #ruby
19:02
esteban has joined #ruby
19:02
esteban is now known as estebanrules
19:02
jerius has joined #ruby
19:02
maletor has joined #ruby
19:03
wallerdev has joined #ruby
19:04
Iniesta8 has joined #ruby
19:04
Iniesta8 has quit [Max SendQ exceeded]
19:04
zz_jrhorn424 is now known as jrhorn424
19:04
mxrguspx_ has joined #ruby
19:04
mxrguspx_ has quit [Remote host closed the connection]
19:04
rossgeesman has quit [Ping timeout: 258 seconds]
19:05
tier has quit [Remote host closed the connection]
19:05
maestrojed has quit [Quit: Computer has gone to sleep.]
19:05
mxrguspx_ has joined #ruby
19:05
mxrguspx_ has quit [Client Quit]
19:05
Iniesta8 has joined #ruby
19:05
<
laudo >
jhass: awsome! so now I have conn.addresses.all.select {|address| address.instance_id.nil?.first.ip gives me back the first ip. Is it possible to list all? So a conn.addresses.all.select {|address| address.instance_id.nil?.all.ip
19:05
mxrguspx_ has joined #ruby
19:05
Iniesta8 has quit [Max SendQ exceeded]
19:06
mxrguspx_ is now known as mxrguspxrt
19:06
<
jhass >
.nil? returns true or false
19:06
Iniesta8 has joined #ruby
19:06
<
jhass >
neither of those have a first method
19:06
SilkFox has quit [Ping timeout: 245 seconds]
19:06
definity_ has quit [Read error: Connection reset by peer]
19:07
<
jhass >
so you make me guess again (that's not good!) you actually have .select {|address| address.instance_id.nil? }.first.ip
19:07
<
jhass >
then you can just map
19:07
ghostmoth is now known as notNOTghostmoth
19:07
sambao21 has joined #ruby
19:07
<
jhass >
.select {|address| address.instance_id.nil? }.map(&:ip)
19:07
failshell has joined #ruby
19:08
notNOTghostmoth is now known as ghostmoth
19:08
mxrguspxrt has quit [Client Quit]
19:08
rkalfane has joined #ruby
19:08
mxrguspxrt has joined #ruby
19:08
thsig has joined #ruby
19:08
Pupeno_ has quit [Read error: Connection reset by peer]
19:08
Pupeno has joined #ruby
19:08
cocotton has quit [Remote host closed the connection]
19:09
ndrei has joined #ruby
19:09
GPH|work has quit [Read error: Connection reset by peer]
19:09
lewis_ has joined #ruby
19:10
lewis_ has quit [Client Quit]
19:10
Nahra has quit [Remote host closed the connection]
19:10
cocotton has joined #ruby
19:10
Lewix has joined #ruby
19:10
diegovio1 is now known as diegoviola
19:11
estebanrules has quit [Quit: WeeChat 1.0.1]
19:11
kyb3r_ has quit [Quit: Leaving]
19:11
esteban has joined #ruby
19:11
esteban is now known as Guest51426
19:11
tier has joined #ruby
19:11
Guest51426 is now known as estebanrules
19:11
tier has quit [Remote host closed the connection]
19:12
yfeldblum has joined #ruby
19:12
yfeldblum has quit [Remote host closed the connection]
19:12
yfeldblum has joined #ruby
19:12
maestrojed has joined #ruby
19:13
<
jhass >
first time I see it
19:13
Nahra has joined #ruby
19:13
<
Liendre >
It seems good
19:14
<
Liendre >
I could do the ruby thing in the 14 free days , I think
19:14
Rollabunna has joined #ruby
19:14
elaptics is now known as elaptics`away
19:16
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:16
definity1 has quit [Remote host closed the connection]
19:17
havenwood has quit [Remote host closed the connection]
19:17
lopex has joined #ruby
19:17
jasooon has joined #ruby
19:17
dangerousdave has joined #ruby
19:17
lopex has left #ruby [#ruby]
19:17
peta_ has quit [Quit: peta_]
19:17
tier has joined #ruby
19:18
Takle has quit [Remote host closed the connection]
19:18
iamjarvo has joined #ruby
19:18
Rollabunna has quit [Ping timeout: 265 seconds]
19:19
estebanrules has quit [Quit: WeeChat 1.0.1]
19:20
havenwood has joined #ruby
19:20
qwyeth has joined #ruby
19:20
<
havenwood >
>> {aim: true, nada: nil, number: 42}.rassoc nil
19:20
<
havenwood >
laudo: ^
19:20
snath has joined #ruby
19:20
bMalum has quit [Quit: bMalum]
19:20
<
havenwood >
can't miss a rare chance to use #rassoc ;P
19:20
snath has quit [Read error: Connection reset by peer]
19:21
failshell has quit []
19:21
jerius has joined #ruby
19:21
<
laudo >
havenwood: whatsup
19:21
sjohnsen has joined #ruby
19:21
t_mmyv has joined #ruby
19:21
snath has joined #ruby
19:22
shredding has quit [Quit: shredding]
19:23
<
laudo >
jhass: worked perfect
19:24
sambao21 has quit [Quit: Computer has gone to sleep.]
19:24
chipotle has quit [Read error: Connection reset by peer]
19:25
chipotle has joined #ruby
19:25
sigurding has quit [Quit: sigurding]
19:27
Takle has joined #ruby
19:27
spyderman4g63 has quit []
19:27
testcore has quit [Remote host closed the connection]
19:28
testcore has joined #ruby
19:28
jasooon has quit [Ping timeout: 244 seconds]
19:28
kaspertidemann has quit []
19:29
klaut has joined #ruby
19:29
<
jhass >
No, it is a Fog::Compute::OpenStack::Addresses
19:30
kireevco has quit [Quit: Leaving.]
19:30
<
jhass >
which inherits Fog::Collection which inherits Array actually, so it is an Array but not just that
19:30
<
ramfjord >
it's really sad to me that (5..1).overlaps?(1..3) => false
19:31
<
ramfjord >
from activesupport
19:31
grzywacz has quit [Ping timeout: 260 seconds]
19:31
<
havenwood >
ramfjord: #rubyonrails
19:31
mikeg has joined #ruby
19:31
<
havenwood >
ramfjord: no overlaps in ruby \o/
19:32
Kricir has joined #ruby
19:32
kireevco has joined #ruby
19:32
kireevco has quit [Max SendQ exceeded]
19:32
<
havenwood >
they just; include?(other.first) || other.include?(first)
19:33
kireevco has joined #ruby
19:33
<
havenwood >
>> (5..1).include? 3
19:33
<
ramfjord >
lol, that's even worse
19:33
emmesswhy has joined #ruby
19:33
<
Morrolan >
>> (5..1).to_a.include? 3
19:34
* Morrolan
scratches head
19:34
<
havenwood >
empty array
19:34
<
ramfjord >
>> (5..1).to_a
19:34
<
Hanmac >
ramfjord & Morrolan 5..1 is not the same like 1..5
19:34
<
Morrolan >
Yea. Makes sense, somehow.
19:34
<
jhass >
also .include? is optimized to n >= first && n <= last
19:34
kotk_ has joined #ruby
19:34
<
havenwood >
>> 5.downto(1).include? 3
19:35
Takle has quit [Remote host closed the connection]
19:35
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
19:35
marr has joined #ruby
19:35
claymore has quit [Ping timeout: 255 seconds]
19:36
cmckee has quit [Quit: cmckee]
19:36
kotk has quit [Ping timeout: 244 seconds]
19:36
claymore has joined #ruby
19:38
chipotle has quit [Quit: cya]
19:38
chipotle has joined #ruby
19:39
thsig_ has joined #ruby
19:40
rsavage_ has joined #ruby
19:40
chipotle has quit [Client Quit]
19:40
SouL has joined #ruby
19:40
nojb has joined #ruby
19:40
nojb has left #ruby [#ruby]
19:41
emmesswhy has quit [Quit: This computer has gone to sleep]
19:41
shazaum has joined #ruby
19:41
Neki has joined #ruby
19:42
Akagi201_ has joined #ruby
19:43
thsig has quit [Ping timeout: 260 seconds]
19:43
fartface has joined #ruby
19:44
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:44
rkalfane has joined #ruby
19:45
Akagi201 has quit [Ping timeout: 265 seconds]
19:45
Mia has joined #ruby
19:45
Mia has joined #ruby
19:46
<
fartface >
So, I'm going through Chris Pine's "Learn to Program" book, and I'm on Chapter 10 (
https://pine.fm/LearnToProgram/chap_10.html) . He's saying that procs are cool because you can pass them into a method, whereas you can't pass a method into a method.
19:46
mattmcclure has quit [Quit: Connection closed for inactivity]
19:46
<
fartface >
So is the benefit to using procs a benefit of scope?
19:47
skolman has joined #ruby
19:47
kireevco has quit [Quit: Leaving.]
19:47
emmesswhy has joined #ruby
19:48
Liendre has quit [Read error: Connection reset by peer]
19:48
<
fartface >
Like what's the advantage of passing a proc into a method? In the book he says it's because you can decide whether or not a proc even gets called, but I don't see the difference between that and a method, since he's using a conditional to determine whether to call the proc anyway?
19:48
kireevco has joined #ruby
19:48
jrhorn424 is now known as zz_jrhorn424
19:48
<
csmrfx >
well you can have many different kinds of logic in the block that you proc
19:48
kireevco has quit [Client Quit]
19:48
zz_jrhorn424 is now known as jrhorn424
19:49
<
fartface >
I guess it's tough to see the potential with the super simple examples that are included
19:49
danfried has joined #ruby
19:50
emmesswhy has quit [Client Quit]
19:50
<
jhass >
right, it'll make more sense once you stumble upon an actual usecase
19:50
<
jhass >
and also after working with blocks for a while
19:50
Dude007 has joined #ruby
19:51
<
jhass >
just keep it in the back of your mind as a fact for now
19:51
JBreit has quit [Quit: Leaving]
19:51
rsavage_ has quit [Remote host closed the connection]
19:51
oniMaker has joined #ruby
19:51
<
oniMaker >
Is there a nice library out there for writing CLI scripts?
19:52
<
oniMaker >
i.e. one that handles flags, input, all that stuff
19:52
jerematic has joined #ruby
19:52
blueOxigen has quit [Ping timeout: 265 seconds]
19:53
ta has joined #ruby
19:55
jenrzzz has quit [Ping timeout: 255 seconds]
19:56
timgauthier is now known as timgauthier_away
19:56
Takle has joined #ruby
19:56
yxhuvud has quit [Remote host closed the connection]
19:57
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
19:57
Kricir has quit [Remote host closed the connection]
19:57
postmodern has joined #ruby
19:57
jrhorn424 is now known as zz_jrhorn424
19:57
Cheezebox has quit [Remote host closed the connection]
19:57
Kricir has joined #ruby
19:58
kaspertidemann has joined #ruby
19:58
JBreit has joined #ruby
19:59
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
19:59
altamic has quit [Ping timeout: 245 seconds]
20:00
rodfersou has quit [Quit: leaving]
20:02
existensil has joined #ruby
20:02
Kricir has quit [Ping timeout: 265 seconds]
20:02
SilkFox has joined #ruby
20:02
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:02
Jackneill has quit [Remote host closed the connection]
20:03
bMalum has joined #ruby
20:03
dangerousdave has joined #ruby
20:03
sambao21 has joined #ruby
20:04
jerius has joined #ruby
20:04
timonv_ has quit [Remote host closed the connection]
20:04
JBreit has left #ruby ["Leaving"]
20:05
graydot has joined #ruby
20:05
jdj_dk has quit [Quit: Leaving...]
20:07
Guest37110 is now known as lnong
20:07
SilkFox has quit [Ping timeout: 265 seconds]
20:08
kotk has joined #ruby
20:08
Neki has quit [Quit: Page closed]
20:08
sambao21 has quit [Ping timeout: 245 seconds]
20:08
pibby has quit [Ping timeout: 240 seconds]
20:09
<
wasamasa >
there's like dozens of libraries
20:09
<
wasamasa >
most of them lack extensive docs
20:09
kaspergrubbe has quit [Remote host closed the connection]
20:09
pibby has joined #ruby
20:10
stunder has quit [Quit: Screw you guys I'm going home]
20:10
alvaro_o has joined #ruby
20:10
treehug88 has joined #ruby
20:10
fsapo has quit [Remote host closed the connection]
20:10
emiemia has quit []
20:10
sambao21 has joined #ruby
20:11
kotk_ has quit [Ping timeout: 265 seconds]
20:11
neoxquick has joined #ruby
20:11
Dude007 has quit [Read error: Connection reset by peer]
20:11
kaspergrubbe has joined #ruby
20:11
sambao21 has quit [Client Quit]
20:11
SolarSailor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
20:12
mike32 has quit [Quit: Leaving]
20:12
Dude007 has joined #ruby
20:12
chrishough has joined #ruby
20:12
jenrzzz has joined #ruby
20:12
sambao21 has joined #ruby
20:12
wallerdev has quit [Quit: wallerdev]
20:12
cocotton_ has joined #ruby
20:14
decoponio has quit [Quit: Leaving...]
20:15
jenrzzz has quit [Client Quit]
20:15
cmckee has joined #ruby
20:16
jenrzzz has joined #ruby
20:16
diegoviola has quit [Quit: WeeChat 1.0.1]
20:16
cocotton has quit [Ping timeout: 256 seconds]
20:16
pietr0 has joined #ruby
20:17
cocotton_ has quit [Ping timeout: 265 seconds]
20:19
iceden has joined #ruby
20:19
Cheezebox has joined #ruby
20:20
benzrf|offline is now known as benzrf
20:20
mattmcclure has joined #ruby
20:20
fartface has quit [Ping timeout: 256 seconds]
20:21
devdazed has quit [Quit: Computer has gone to sleep.]
20:21
<
oniMaker >
wasamasa: steering toward commander... have any personal recommendations?
20:21
borodin has joined #ruby
20:22
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:22
allsystemsarego_ has joined #ruby
20:22
Synthead has joined #ruby
20:22
wallerdev has joined #ruby
20:23
Deejay_ has joined #ruby
20:23
Synthead has quit [Client Quit]
20:23
Synthead has joined #ruby
20:24
Synthead has quit [Client Quit]
20:24
<
wasamasa >
oniMaker: I'm still using slop
20:24
jasooon has joined #ruby
20:24
Synthead has joined #ruby
20:25
<
oniMaker >
wasamasa: that one looks good too
20:25
allsystemsarego has quit [Ping timeout: 272 seconds]
20:25
<
wasamasa >
oniMaker: well, it's the scarce docs that annoy me
20:26
<
oniMaker >
commander looks like it has good docs
20:26
reinaldob has quit [Remote host closed the connection]
20:27
djbkd has quit [Remote host closed the connection]
20:27
ldnunes has quit [Quit: Leaving]
20:27
<
wasamasa >
or that some stuff is lacking
20:28
lkba has joined #ruby
20:28
reinaldob has joined #ruby
20:29
BRMatt has quit [Quit: Connection closed for inactivity]
20:29
TeresaP has quit [Quit: Page closed]
20:29
jasooon has quit [Ping timeout: 245 seconds]
20:30
<
borodin >
wondering if there's anything like 'Agile Web Development With Rails' but for Sinatra
20:32
cmckee has quit [Ping timeout: 265 seconds]
20:32
sambao21 has quit [Quit: Computer has gone to sleep.]
20:32
FooMunki has joined #ruby
20:33
Wolland has joined #ruby
20:34
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
20:34
fartface has joined #ruby
20:34
endash_ has joined #ruby
20:35
sambao21 has joined #ruby
20:35
yaymukund has joined #ruby
20:35
timonv_ has joined #ruby
20:35
sambao21 has quit [Client Quit]
20:35
kaneda^ has quit [Quit: leaving]
20:36
jottr_ has joined #ruby
20:36
endash has quit [Ping timeout: 265 seconds]
20:36
endash_ is now known as endash
20:37
sambao21 has joined #ruby
20:37
Guest12321 is now known as railis
20:37
mary5030_ has joined #ruby
20:38
Pupeno_ has joined #ruby
20:38
cmckee has joined #ruby
20:39
FooMunki has quit [Quit: FooMunki]
20:39
jottr has quit [Ping timeout: 240 seconds]
20:39
mary5030 has quit [Ping timeout: 258 seconds]
20:39
<
oniMaker >
too many choices
20:39
jaequery has joined #ruby
20:40
<
oniMaker >
that one looks good too, but I'm going to try commander this time
20:40
mityaz_ has quit [Quit: See ya!]
20:40
Pupeno has quit [Ping timeout: 255 seconds]
20:40
<
oniMaker >
most of this will be learning ruby anyway
20:40
timonv_ has quit [Ping timeout: 260 seconds]
20:40
Lewix has quit [Remote host closed the connection]
20:43
tier_ has joined #ruby
20:44
<
oniMaker >
Is there a way I can set an ENV variable to be used for all system calls in a script?
20:44
jaequery has quit [Ping timeout: 265 seconds]
20:44
cmckee has quit [Quit: cmckee]
20:45
djbkd has joined #ruby
20:46
tier has quit [Ping timeout: 255 seconds]
20:46
Lewix has joined #ruby
20:46
tier_ has quit [Remote host closed the connection]
20:46
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:47
mary5030_ has quit [Remote host closed the connection]
20:47
tier has joined #ruby
20:47
mary5030 has joined #ruby
20:48
einarj has joined #ruby
20:49
LoBoGoL has quit [Remote host closed the connection]
20:49
skolman has quit [Remote host closed the connection]
20:49
cmckee has joined #ruby
20:50
dangerousdave has joined #ruby
20:50
fmcgeough has quit [Quit: fmcgeough]
20:50
shazaum has quit [Quit: Leaving]
20:50
skolman_ has joined #ruby
20:50
freezey has quit [Remote host closed the connection]
20:51
oleo is now known as Guest91476
20:51
iamjarvo has joined #ruby
20:51
oleo__ has joined #ruby
20:51
oleo__ has quit [Read error: Connection reset by peer]
20:51
Guest91476 has quit [Ping timeout: 265 seconds]
20:52
jacobat has quit [Ping timeout: 265 seconds]
20:52
matiaslina has quit [Remote host closed the connection]
20:52
oleo__ has joined #ruby
20:52
oleo__ is now known as oleo
20:53
robbyoconnor has joined #ruby
20:53
mikeg has quit [Remote host closed the connection]
20:54
skolman_ has quit [Ping timeout: 258 seconds]
20:55
tyll has joined #ruby
20:56
weaksauce has joined #ruby
20:56
<
bricker`work >
oniMaker: Set it when you run the script, eg. YOUR_COOL_ENV=something ./rubyscript.rb
20:56
<
bricker`work >
something like that
20:56
tesaf has quit [Quit: Lost terminal]
20:57
ndrei has quit [Ping timeout: 250 seconds]
20:57
jack_rabbit has quit [Quit: Leaving]
20:58
tyll_ has quit [Ping timeout: 265 seconds]
20:58
KC9YDN has quit [Quit: "Let a hundred flowers bloom: let a hundred schools of thought contend." - Mao Zedong]
20:58
kaspertidemann has quit []
20:58
skolman has joined #ruby
20:59
gr33n7007h has joined #ruby
20:59
perrier has quit [Remote host closed the connection]
21:01
fartface has quit [Ping timeout: 260 seconds]
21:01
laudo has quit [Ping timeout: 246 seconds]
21:02
jobewan has joined #ruby
21:02
yaymukund has quit [Quit: leaving]
21:02
<
oniMaker >
bricker`work: I'd rather set it as part of the script
21:02
<
oniMaker >
bricker`work: looks like I can just do a system command and export it
21:02
ptrrr has quit [Quit: ptrrr]
21:02
wallerdev has quit [Ping timeout: 240 seconds]
21:03
<
havenwood >
oniMaker: def system_with_env *args; system({'JAM_ENV' => 'lingon berry'}, *args) end
21:03
SilkFox has joined #ruby
21:03
kireevco has joined #ruby
21:03
wallerdev has joined #ruby
21:03
<
havenwood >
oniMaker: then your system will know which jam to use
21:03
KC9YDN has joined #ruby
21:03
livingstn has quit []
21:03
<
oniMaker >
havenwood: delicious, thank you!
21:03
renderful has quit [Remote host closed the connection]
21:03
byprdct has joined #ruby
21:05
tier has quit [Remote host closed the connection]
21:05
cherwin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
21:06
tonini has quit [Ping timeout: 250 seconds]
21:07
SilkFox has quit [Ping timeout: 245 seconds]
21:08
Synthead has quit [Remote host closed the connection]
21:08
renderful has joined #ruby
21:08
gr33n7007h has quit [Ping timeout: 250 seconds]
21:08
Synthead has joined #ruby
21:08
pygospa has joined #ruby
21:08
reinaldob has quit [Remote host closed the connection]
21:09
Morkel has quit [Quit: Morkel]
21:09
Asher has quit [Quit: Leaving.]
21:09
sambao21 has quit [Quit: Computer has gone to sleep.]
21:09
jobewan has quit [Quit: Leaving]
21:09
reinaldob has joined #ruby
21:10
f0ster has quit [Ping timeout: 272 seconds]
21:11
nateberkopec has quit [Quit: Leaving...]
21:11
byprdct has quit [Ping timeout: 250 seconds]
21:12
Kricir has joined #ruby
21:12
byprdct has joined #ruby
21:12
marcel has quit [Ping timeout: 256 seconds]
21:12
sambao21 has joined #ruby
21:13
benzrf is now known as benzrf|offline
21:14
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:14
reinaldob has quit [Ping timeout: 258 seconds]
21:15
Rollabunna has joined #ruby
21:15
sharms has quit [Ping timeout: 245 seconds]
21:15
marcel has joined #ruby
21:18
drPoggs has quit [Ping timeout: 260 seconds]
21:18
poulet_a has joined #ruby
21:18
fartface has joined #ruby
21:18
Ankhers has quit [Ping timeout: 246 seconds]
21:19
claymore has quit [Remote host closed the connection]
21:19
siwica has quit [Remote host closed the connection]
21:19
Cache_Money has joined #ruby
21:19
claymore has joined #ruby
21:19
Rollabunna has quit [Ping timeout: 246 seconds]
21:19
SiliconDon has joined #ruby
21:19
siwica has joined #ruby
21:19
cmckee has quit [Ping timeout: 256 seconds]
21:20
allcentu1 has quit [Ping timeout: 258 seconds]
21:20
drPoggs has joined #ruby
21:20
byprdct has quit [Ping timeout: 260 seconds]
21:20
gr33n7007h has joined #ruby
21:21
beef-wellington has quit [Ping timeout: 246 seconds]
21:21
cmckee has joined #ruby
21:21
thagomizer has quit [Quit: Leaving.]
21:23
cherwin has joined #ruby
21:24
<
banister >
apeiros mariokart?
21:24
linojon has quit [Quit: linojon]
21:25
testcore has quit [Ping timeout: 246 seconds]
21:26
jasooon has joined #ruby
21:26
gr33n7007h has quit [Quit: Leaving]
21:27
Deejay_ has quit [Quit: Computer has gone to sleep.]
21:27
testcore has joined #ruby
21:27
gr33n7007h has joined #ruby
21:27
skolman has quit [Remote host closed the connection]
21:27
FooMunki has joined #ruby
21:27
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:27
cmckee has quit [Ping timeout: 265 seconds]
21:27
linojon has joined #ruby
21:27
skolman has joined #ruby
21:28
jheg has quit [Quit: jheg]
21:29
agrinb has joined #ruby
21:30
phat4life has joined #ruby
21:30
cek has joined #ruby
21:30
GPH|work has joined #ruby
21:30
<
phat4life >
why does this cause my system to run out of application memory: ("1." + "99999999"*999999999).to_f
21:30
it0a has quit [Quit: WeeChat 1.0.1]
21:30
agrinb has quit [Remote host closed the connection]
21:31
nfk has quit [Quit: yawn]
21:31
<
ericwood >
>> ("1." + "99999999"*999999999).to_f
21:31
<
ericwood >
it's a really large number
21:31
cmckee has joined #ruby
21:31
<
phat4life >
this is ruby 1.9.3
21:31
<
cek >
don't you find fun that break and next behave equal to return in a lambda block?
21:31
<
pipework >
Not enough application memories.
21:31
<
ericwood >
>> "99999999"*999999999
21:31
<
jenrzzz >
you should download some more RAM
21:31
<
phat4life >
it doesn’t throw an exception, it runs a kernal task. i let it run for a while and i mas useing 72GB of virtual memory, and 12GB of swap
21:32
<
ericwood >
honestly, that's too huge for anything
21:32
<
ericwood >
don't do that
21:32
skolman has quit [Ping timeout: 244 seconds]
21:32
<
cek >
>> proc { break(123); 234 }[]
21:32
<
phat4life >
i only ran it for science
21:32
claymore has quit [Quit: Leaving]
21:32
<
ducklobster >
borodin: First couple chapters are good intro to using Sinatra, middle chapters talk about Sinatra internals, last chapters some more real world usage stuff
21:32
<
pipework >
phat4life: The problem is you don't have enough memories.
21:33
<
ericwood >
"99999999"*999999999 is "99999999" 9999999 times
21:33
<
ericwood >
that's a lot
21:33
<
jenrzzz >
what if you pass it to BigDecimal.new instead of calling #to_f?
21:33
<
pipework >
ericwood: And then represented as a float.
21:33
<
phat4life >
the point is, it doesn’t throw an exception it just runs until my system goes into kernal panic
21:33
<
phat4life >
yosemite
21:33
<
phat4life >
and mavericks
21:33
<
phat4life >
its ruby 1.9.3 though so it doesnt’ really matter
21:33
obscured has quit [Quit: leaving]
21:34
jasooon has quit [Ping timeout: 255 seconds]
21:34
<
ramfjord >
should it really be too big?
21:34
<
ericwood >
it's the string allocation that's hurting you
21:34
<
ramfjord >
only 80 megs of characters
21:34
<
ericwood >
it's allocating that "9999999" string 9999999999999999 times
21:34
<
ericwood >
I'm just guessing
21:35
benzrf|offline is now known as benzrf
21:35
borodin has quit [Ping timeout: 246 seconds]
21:35
<
ericwood >
so, to store that string it's 7.2GiB
21:36
<
ericwood >
assuming ascii
21:36
<
ericwood >
which is not the case, so double it
21:36
<
oniMaker >
Is there a ruby shortcut for ANDing a variable plus another variable together? i.e. foo = foo && bar
21:36
<
phat4life >
must be more than that, i was using 12GB of swap before i killed the process
21:36
<
oniMaker >
maybe foo &= bar or something?
21:36
<
ericwood >
yeah, it'd be 7.2*2
21:36
<
ericwood >
so that makes sense
21:36
DLSteve has joined #ruby
21:37
<
phat4life >
ooohhhh my coworker left his computer unlocked, i am chaning his terminal font to comic sans
21:37
<
Fire-Dragon-DoL >
phat4life: lol
21:37
endash has quit [Quit: endash]
21:37
<
Fire-Dragon-DoL >
phat4life: if you want I have a zero-space-font
21:38
<
Fire-Dragon-DoL >
you may want to use that, lol
21:38
<
phat4life >
no time i must not be caught
21:38
<
havenwood >
phat4life: when you have time, alias ls to repeat the font change then ls
21:38
alem0lars has quit [Quit: Quit !]
21:38
<
fartface >
Or set a keyboard shortcut for "d" from character "f"
21:39
Pupeno_ has quit [Quit: Leaving...]
21:39
Fire-Dragon-DoL has quit [Quit: Leaving.]
21:39
<
phat4life >
i also like to pipe random characters to say as a background job
21:39
<
fartface >
I'd say switch left and right mouse clicks, but I'm guessing you don't use the mouse much
21:39
allsystemsarego_ has quit [Quit: Leaving]
21:39
gauke has quit [Quit: gauke]
21:40
DLSteve has quit [Client Quit]
21:40
a1ph4g33k has joined #ruby
21:40
DLSteve has joined #ruby
21:40
<
havenwood >
phat4life: alias cat="echo \"(=^.^=)\""
21:41
<
phat4life >
oohhh i like that one
21:41
momomomomo has joined #ruby
21:41
agrinb has joined #ruby
21:41
workmad3 has quit [Ping timeout: 245 seconds]
21:43
<
havenwood >
phat4life: or: echo 'alias cat="echo \"(=^.^=)\""' >> .bash_profile
21:43
skolman has joined #ruby
21:43
<
havenwood >
last a little longer ;)
21:43
doodlehaus has quit [Remote host closed the connection]
21:43
aspires has quit []
21:44
aspires has joined #ruby
21:44
linojon has quit [Quit: linojon]
21:45
Asher has joined #ruby
21:46
sambao21 has quit [Quit: Computer has gone to sleep.]
21:46
tonybird has quit [Ping timeout: 245 seconds]
21:46
qwyeth has quit [Quit: Leaving]
21:47
<
benzrf >
fun trick:
21:47
jottr_ is now known as jottr
21:47
<
benzrf >
echo "echo 'sleep 1 >> ~/.bashrc'" >> ~/.bashrc
21:47
sambao21 has joined #ruby
21:48
nateberkopec has joined #ruby
21:48
<
waxjar >
why would you do that? :o
21:49
<
jhass >
function cd() { mkdir -p "/tmp/$1"; builtin cd "$1" }
21:49
* pipework
gets benzrf a fun rock to play with for his birthday
21:49
iamjarvo has joined #ruby
21:50
gr33n7007h has quit [Ping timeout: 265 seconds]
21:50
weemsledeux has joined #ruby
21:51
<
benzrf >
jhass: lol
21:51
maestrojed has quit [Quit: Computer has gone to sleep.]
21:51
<
benzrf >
waxjar: for your eneimes
21:51
gregf1 has quit [Quit: WeeChat 1.0.1]
21:51
fartface has quit [Remote host closed the connection]
21:52
linojon has joined #ruby
21:52
kireevco has quit [Quit: Leaving.]
21:53
agrinb has quit [Remote host closed the connection]
21:53
peta_ has joined #ruby
21:53
sailias has quit [Quit: Leaving.]
21:55
jenrzzz has quit [Ping timeout: 250 seconds]
21:57
poulet_a has quit [Quit: Quitte]
21:57
maestrojed has joined #ruby
21:59
<
mg^^ >
ok, that cd function is just pure evil
22:00
<
jhass >
it's missing a /tmp/ though
22:00
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:01
thumpba_ has quit [Ping timeout: 244 seconds]
22:01
aspires has quit []
22:01
postmodern has quit [Ping timeout: 265 seconds]
22:01
helpa has quit [Remote host closed the connection]
22:02
helpa has joined #ruby
22:02
phat4life has quit [Quit: phat4life]
22:02
<
mg^^ >
true, but the spirit of it is all there to see
22:03
phat4life has joined #ruby
22:03
m8 has quit [Quit: Sto andando via]
22:04
<
mg^^ >
also, cd / would land you right in /tmp (when corrected) and that would be fairly obvious
22:04
SilkFox has joined #ruby
22:04
sambao21 has quit [Quit: Computer has gone to sleep.]
22:04
aspires has joined #ruby
22:04
endash has joined #ruby
22:04
<
mg^^ >
I may need to do this to our FNG to test his troubleshooting skills
22:04
j416 has joined #ruby
22:05
gr33n7007h has joined #ruby
22:05
a1ph4g33k has quit [Quit: Leaving.]
22:05
<
phat4life >
sounds like a good interview question
22:06
SiliconDon has quit [Quit: ...]
22:06
<
oniMaker >
How can I get the pid of a shell command started in the backround with & ?
22:06
iamjarvo has joined #ruby
22:06
<
oniMaker >
using system, backticks, etc.
22:06
<
phat4life >
oniMaker: i know this one sec
22:06
govg has joined #ruby
22:06
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
22:06
<
zenspider >
oniMaker: in ruby or in shell?
22:06
<
oniMaker >
zenspider: in ruby
22:07
<
phat4life >
oniMaker: backtickets return a value
22:07
<
phat4life >
you can get the pid from that
22:07
<
oniMaker >
ok, I'll check that out
22:07
<
phat4life >
or is it $?
22:07
<
phat4life >
i think $? is a global variable
22:07
<
oniMaker >
I saw that before
22:07
<
zenspider >
backticks return the string of the output of the cmd run
22:07
<
oniMaker >
or maybe it's better to name the process? Is that a thing?
22:07
<
mg^^ >
Isn't $? the exit code?
22:07
<
zenspider >
$? is the exit code of the cmd run
22:08
Affix has quit [Ping timeout: 260 seconds]
22:08
SilkFox has quit [Ping timeout: 240 seconds]
22:08
<
mg^^ >
I don't think backticks can give you a PID for the subprocess
22:08
<
phat4life >
t = `do something`; raise "r #{$?} --- #{t}" unless $?.success?
22:08
<
oniMaker >
you can name processes with `exec -a foobar` right?
22:08
einarj has quit [Remote host closed the connection]
22:08
<
phat4life >
oniMaker: you can get the pid from t = `do something`; raise "r #{$?} --- #{t}" unless $?.success?
22:08
<
oniMaker >
mg^^: I can use system, that's fine
22:09
Haiiro has quit [Max SendQ exceeded]
22:09
davidhq has joined #ruby
22:09
hobodave has quit [Quit: Computer has gone to sleep.]
22:09
<
phat4life >
wait you need to add 2>&1 i beieve
22:09
Haiiro has joined #ruby
22:09
<
oniMaker >
& puts it in the background
22:09
<
phat4life >
so id would be t = `do something 2>&`; raise "r #{$?} --- #{t}" unless $?.success?
22:09
hobodave has joined #ruby
22:10
<
oniMaker >
`do something 2>&1 &` yes?
22:10
<
jhass >
oniMaker: I think you want Kernel#spawn
22:10
<
mg^^ >
yeah, what are you trying to do, exactly?
22:10
<
mg^^ >
We should have asked that first :)
22:10
Affix has joined #ruby
22:10
marcel has quit [Ping timeout: 255 seconds]
22:10
<
zenspider >
open3/4 is also an easy way to get this done
22:10
<
oniMaker >
running a small php server as part of testing
22:10
<
zenspider >
mg^^: yes, that's a much better question
22:10
<
oniMaker >
like php -S localhost:8000 httpdocs/index.php &
22:10
<
oniMaker >
just want to be able to kill it afterward
22:10
a1ph4g33k has joined #ruby
22:11
marcel has joined #ruby
22:11
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
22:11
gr33n7007h has quit [Quit: Leaving]
22:11
<
jhass >
so far that sounds like you want to add an alias or function to your ~/.${SHELL}rc
22:11
<
mg^^ >
So you want to run a program in the background, and be able to kill it if it takes too long?
22:12
gr33n7007h has joined #ruby
22:12
<
mg^^ >
and also capture the output, presumably
22:12
<
oniMaker >
mg^^: no, I want run that program, run the tests, then kill the program
22:12
<
oniMaker >
no, output doesn't matter
22:12
b3itz has joined #ruby
22:12
<
oniMaker >
it looks like Kernel.spawn will do it
22:12
<
mg^^ >
Well, for that I'd use fork and exec, being an old unix guy
22:12
DLSteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
22:12
Morrolan has quit [Ping timeout: 256 seconds]
22:12
<
havenwood >
oniMaker: ruby -run -ehttpd httpdocs -p8000
22:13
<
oniMaker >
havenwood: can you run a php application that way?
22:13
<
havenwood >
ah, php
22:13
<
jhass >
oniMaker: Kernel#spawn gives you the pid, just run Process.kill pid once you're done
22:13
Morrolan has joined #ruby
22:13
<
oniMaker >
jhass: perfect, thank you
22:13
<
havenwood >
oniMaker: i didn't catch the php, wrongly assumed html
22:13
<
oniMaker >
havenwood: no worries
22:14
a1ph4g33k has quit [Client Quit]
22:14
hobodave has quit [Ping timeout: 245 seconds]
22:14
<
b3itz >
just learned ruby the other day lol. obviously not fluent
22:14
volty has joined #ruby
22:14
<
mg^^ >
yeah, spawn basically combines fork+exec into one operation, that's definitely what you want
22:14
<
oniMaker >
mg^^: awesome, thank you!
22:15
msmith has quit [Remote host closed the connection]
22:15
<
b3itz >
oh the error is throwing on line 77
22:15
msmith has joined #ruby
22:15
msmith has quit [Remote host closed the connection]
22:15
<
zenspider >
b3itz: indenting your code properly is important for understanding
22:15
<
mg^^ >
you've got an unbalanced if or something
22:15
<
zenspider >
b3itz: line 7 has a while
22:16
<
zenspider >
looks like there is no end for it
22:16
<
jhass >
oniMaker: my guess is the missing condition on line 58
22:16
<
zenspider >
if you indented properly, it would be obvious
22:16
<
jhass >
bah b3itz ^ sorry
22:16
<
oniMaker >
mg^^: so with that, I don't need to redirect output with 2>&1 or put it in the background manually with & right?
22:16
<
havenwood >
b3itz: indent with two spaces
22:16
a1ph4g33k has joined #ruby
22:16
<
mg^^ >
oniMaker: Nope
22:16
<
zenspider >
and yes, 2 spaces per indent
22:16
<
oniMaker >
mg^^: cool, thanks
22:16
TPBallbag has joined #ruby
22:16
<
b3itz >
zenspider: derrrrr I don't know how i missed that :) thanks
22:16
bMalum has quit [Quit: bMalum]
22:17
<
zenspider >
simple newb mistake. we've all made them
22:17
<
mg^^ >
I thought I'd hate that little 2 space indent when I started using Ruby
22:17
robbyoconnor has quit [Ping timeout: 265 seconds]
22:17
<
havenwood >
b3itz: typically rubyists set the browser to two-space soft tabs, so hitting tabs enters two spaces
22:17
<
mg^^ >
coming from a 4-space world
22:17
<
phat4life >
i never mad a newb mistake. i was born a pro
22:17
<
havenwood >
s/browser/editor
22:17
<
zenspider >
indentation is important. get an editor that understands ruby. let it do it for you. reindent the whole file and mistakes will melt away
22:17
<
mg^^ >
but I really like it
22:17
<
phat4life >
i use sublime text
22:18
<
phat4life >
you can have it show spaces and whitespace
22:18
<
jhass >
havenwood: just wanted to ask you how to do it to my browser :(
22:18
<
oniMaker >
mg^^: since you're a linux guru... would it be better to name the process and depend on that rather than the pid? For example if the script crashes, then it will still know which process name to look for next time
22:18
<
jhass >
oniMaker: write a pidfile if you need that functionality
22:18
<
zenspider >
oniMaker: that sounds like a mistake. you want to know when the pid dies
22:19
<
oniMaker >
jhass: good point
22:19
<
mg^^ >
I agree with jhass
22:19
<
oniMaker >
ok... I don't know enough about managing processes to know much about naming etc.
22:19
<
mg^^ >
well, it's complicated actually
22:19
<
b3itz >
thanks havenwood
22:19
b3itz has quit [Quit: Page closed]
22:20
<
mg^^ >
writing the pid is actually not sufficiently safe
22:20
doug1 has quit [Ping timeout: 256 seconds]
22:20
<
mg^^ >
for all purposes
22:20
<
mg^^ >
but for
*most* purposes it's fine
22:20
<
mg^^ >
the problem is when your script crashes, the managed process also ends, and something else starts up with the same PID down the road
22:20
phat4life has left #ruby [#ruby]
22:20
<
mg^^ >
if you go blindly killing stuff, you might get the wrong thing
22:20
<
jhass >
systemd-run to the rescue :P
22:21
willywos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
22:21
linojon has quit [Quit: linojon]
22:21
<
oniMaker >
mg^^: ohh ok... then this isn't a candidate for a pid file
22:22
<
oniMaker >
if the process gets killed when the script crashes/ends already
22:22
GPH|work has quit [Ping timeout: 240 seconds]
22:22
<
oniMaker >
just storing the pid as a variable so I can kill it within the context of the script should be fine
22:22
tonini has joined #ruby
22:22
skolman has quit [Remote host closed the connection]
22:22
sambao21 has joined #ruby
22:23
<
mg^^ >
yeah, that's generally fine for the vast majority of purposes
22:23
postmodern has joined #ruby
22:23
endash has quit [Quit: endash]
22:23
skolman_ has joined #ruby
22:23
<
oniMaker >
¡muchas gracias!
22:24
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
22:24
a1ph4g33k has quit [Remote host closed the connection]
22:24
timonv_ has joined #ruby
22:24
Jasey has joined #ruby
22:25
a1ph4g33k has joined #ruby
22:26
kirun has quit [Quit: Client exiting]
22:26
Kricir has quit [Remote host closed the connection]
22:26
davidhq has joined #ruby
22:27
Kricir has joined #ruby
22:27
tonini has quit [Ping timeout: 250 seconds]
22:27
skolman_ has quit [Ping timeout: 255 seconds]
22:28
kireevco has joined #ruby
22:28
axl_ has quit [Quit: axl_]
22:28
bhaak has quit [Ping timeout: 260 seconds]
22:28
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:29
timonv_ has quit [Ping timeout: 258 seconds]
22:29
davidhq has quit [Client Quit]
22:30
renderful has quit [Remote host closed the connection]
22:30
jasooon has joined #ruby
22:31
RichardLitt has joined #ruby
22:31
Kricir has quit [Ping timeout: 244 seconds]
22:33
snath has quit [Ping timeout: 245 seconds]
22:34
a1ph4g33k has quit [Quit: Leaving.]
22:34
bhaak has joined #ruby
22:35
jheg has joined #ruby
22:35
a1ph4g33k has joined #ruby
22:35
jasooon has quit [Ping timeout: 244 seconds]
22:35
nfk has joined #ruby
22:36
davidhq has joined #ruby
22:36
renderful has joined #ruby
22:36
jheg has quit [Client Quit]
22:37
nfk has quit [Client Quit]
22:38
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
22:39
soulcake has quit [Quit: Quack.]
22:40
renderful has quit [Remote host closed the connection]
22:40
soulcake has joined #ruby
22:42
skolman has joined #ruby
22:42
mary5030 has quit [Remote host closed the connection]
22:43
echooo has quit [Read error: Connection reset by peer]
22:45
cmckee has quit [Ping timeout: 245 seconds]
22:45
mallu has joined #ruby
22:46
<
shevy >
mallu with *
22:46
<
mallu >
shevy : can you please expand on that
22:46
<
jhass >
first, second, third, forth = test
22:47
<
shevy >
>> test = [1, 2, 3, 4]; first, second, third, fourth = *test; second
22:47
<
jhass >
no need for the *
22:47
stunder has joined #ruby
22:47
<
jhass >
I don't see the benefit over test[0], test[1], test[2], ... though
22:47
linojon has joined #ruby
22:49
<
mallu >
thanks guys
22:50
<
mallu >
is it possible to do test.each do ?
22:50
SilkFox has joined #ruby
22:51
snath has joined #ruby
22:51
<
shevy >
mallu you iterate over your Array that way
22:51
cmckee has joined #ruby
22:51
<
mallu >
test.each { |n| first = n second = n}
22:51
<
mallu >
Is it like that?
22:51
<
shevy >
you forgot a ; there
22:52
<
shevy >
and another problem is that this will be local to your {} block
22:52
<
jhass >
not sure what you want to achieve with that
22:52
<
mallu >
I want to be able to call first below in the script
22:52
a1ph4g33k has quit [Quit: Leaving.]
22:53
<
shevy >
mallu well the way above works or?
22:53
<
shevy >
first, second, third, fourth = test
22:53
<
jhass >
where does test come from?
22:53
renderful has joined #ruby
22:53
<
jhass >
well, if you define it as literal, why not assign the locals in the first place
22:54
larissa has joined #ruby
22:54
<
shevy >
mallu in general, if you already have an array than you can use it lateron
22:54
<
mallu >
test is an array coming from a search I'm doing. Search is retunring its result as an array
22:54
<
shevy >
so doing "second * third" is the same as "test[1] * test[2]"
22:54
iamjarvo has joined #ruby
22:55
<
mallu >
but I am not sure how many in the array
22:55
<
jhass >
then you probably want to iterate over it
22:55
<
shevy >
you can query the amount of elements your Array has by applying the method .size
22:55
<
zenspider >
mallu: either your problem description is bullshit, or you do know how many are in the array
22:55
<
shevy >
and the positional index method [] or .fetch will work
22:56
<
zenspider >
line 1 defines test as an array literal, which means it defines how many things are in it
22:56
stunder has quit [Remote host closed the connection]
22:56
<
zenspider >
line 5-8... define a FIXED number of local variables, so you HAVE to know how many are in the array
22:56
Eiam has joined #ruby
22:56
<
mallu >
zenspider that was an example.. I'm searching for instances in AWS and not sure how many are in the array
22:56
<
zenspider >
mallu: then your original problem description is bullshit
22:56
<
jhass >
zenspider: we're already past the "bad example" stage
22:57
<
zenspider >
mallu: what are you ACTUALLY trying to do?
22:57
Notte has joined #ruby
22:57
<
mallu >
zenspider maybe you should see ... at the end of the array
22:58
renderful has quit [Ping timeout: 245 seconds]
22:58
<
zenspider >
mallu: maybe you should describe your actual problem instead of a bullshit abstraction that doesn't actually represent your problem
22:58
diegoviola has joined #ruby
22:58
<
zenspider >
assigning an "unknown amount" to locals isn't going to work
22:59
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
22:59
graydot has quit [Quit: graydot]
22:59
havenwood has quit [Remote host closed the connection]
22:59
sepp2k has quit [Read error: Connection reset by peer]
23:00
wedgeV has joined #ruby
23:01
<
Igneous >
can I not use named parameters with jruby?
23:02
<
shevy >
I don't use jruby but I am going to say... no!
23:02
pietr0 has quit [Quit: pietr0]
23:04
<
zenspider >
Igneous: named parameters? do you mean method arguments or something else?
23:04
a1ph4g33k has joined #ruby
23:05
<
Igneous >
oh yeah I guess they're usually called keyword arguments
23:05
a1ph4g33k has left #ruby [#ruby]
23:05
<
zenspider >
ah. I don't know where jruby is with 2.x compatibility atm
23:06
<
zenspider >
ah. they're only up to 1.9.3 according to jruby.org
23:06
<
zenspider >
so, no. not yet
23:06
SilkFox has quit [Ping timeout: 244 seconds]
23:07
graydot has joined #ruby
23:09
Scotteh_ has joined #ruby
23:09
volty has left #ruby ["Konversation terminated!"]
23:09
havenwood has joined #ruby
23:10
enebo has quit [Quit: enebo]
23:11
klaut has quit [Remote host closed the connection]
23:11
tallgirltaadaa_ has joined #ruby
23:12
Scotteh has quit [Ping timeout: 246 seconds]
23:12
tallgirltaadaa_ has quit [Client Quit]
23:13
<
Igneous >
ah, just had to set compat.version to 2.0
23:13
tier has joined #ruby
23:13
<
Igneous >
I guess I'm enabling experimental shit but whatever, seems to work
23:15
Rollabunna has joined #ruby
23:15
Notte has quit [Remote host closed the connection]
23:16
stunder has joined #ruby
23:16
postmodern has quit [Ping timeout: 265 seconds]
23:20
slbmeh has quit [Ping timeout: 258 seconds]
23:20
<
pizzaops >
What exactly is this syntax in Ruby? It's hard to google: 2<<50
23:21
Rollabunna has quit [Ping timeout: 265 seconds]
23:21
<
eam >
pizzaops: bit-shift left
23:21
<
pizzaops >
oh. I have no idea what that is.
23:21
<
eam >
well, it's the same as 1<<51 !
23:21
fmcgeough has joined #ruby
23:21
<
pizzaops >
well now it's totally clear to me
23:21
fmcgeough has quit [Client Quit]
23:22
IcyDragon has quit [Ping timeout: 265 seconds]
23:22
<
eam >
pizzaops: you're familiar with binary representation of numbers?
23:22
<
eam >
0010 is the number two?
23:22
IcyDragon has joined #ruby
23:22
<
pizzaops >
I am familiar with binary yes
23:22
<
eam >
<< shifts all the digits left (multiply by two) that many times
23:22
chipotle has joined #ruby
23:22
<
eam >
so <<1 is similar to * 2
23:22
<
pizzaops >
interesting
23:23
ghostmoth has quit [Quit: ghostmoth]
23:23
<
pizzaops >
So 1<<1 = 2 because it goes from 00000001 to 00000010?
23:23
<
pizzaops >
is that correct?
23:23
<
pizzaops >
cool, I get it tnow, thanks
23:23
<
eam >
>> is shift right, or integer divide by 2
23:24
<
eam >
there are some differences between this and real math, but mostly irrelevant in a high level context like ruby
23:24
msmith has joined #ruby
23:26
skolman has quit [Remote host closed the connection]
23:26
<
benzrf >
>> 0.1 + 0.2
23:26
skolman_ has joined #ruby
23:26
havenwood has quit [Ping timeout: 246 seconds]
23:27
graydot has quit [Quit: graydot]
23:27
postmodern has joined #ruby
23:27
iceden has quit [Read error: Connection reset by peer]
23:28
havenwood has joined #ruby
23:28
momomomomo has quit [Ping timeout: 256 seconds]
23:28
skolman_ has quit [Remote host closed the connection]
23:28
skolman_ has joined #ruby
23:29
Dude007 has quit [Remote host closed the connection]
23:30
sambao21 has quit [Quit: Computer has gone to sleep.]
23:30
Dude007 has joined #ruby
23:31
skolman_ has quit [Remote host closed the connection]
23:31
thsig_ has quit [Remote host closed the connection]
23:31
skolman_ has joined #ruby
23:32
kaspergrubbe has quit [Remote host closed the connection]
23:32
jasooon has joined #ruby
23:33
mxrguspxrt has quit [Remote host closed the connection]
23:34
skolman_ has quit [Remote host closed the connection]
23:34
<
existensil >
something wrong with rubygems? getting: Gem::RemoteFetcher::FetchError: Errno::ECONNREFUSED: Connection refused - connect(2) for "bb-m.rubygems.org" port 443
23:34
kaspergrubbe has joined #ruby
23:34
skolman_ has joined #ruby
23:34
thsig_ has joined #ruby
23:34
thsig_ has quit [Remote host closed the connection]
23:35
phutchins has quit [Ping timeout: 272 seconds]
23:36
kireevco has quit [Read error: Connection reset by peer]
23:36
mikecmpbll has quit [Quit: i've nodded off.]
23:36
kireevco has joined #ruby
23:36
kireevco has quit [Max SendQ exceeded]
23:37
kireevco has joined #ruby
23:38
kaspergrubbe has quit [Ping timeout: 255 seconds]
23:39
DrCode has quit [Remote host closed the connection]
23:40
DrCode has joined #ruby
23:41
Axy has joined #ruby
23:41
Axy has joined #ruby
23:41
pietr0 has joined #ruby
23:42
skolman_ has quit [Remote host closed the connection]
23:42
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:43
reinaldob has joined #ruby
23:43
reinaldob has quit [Remote host closed the connection]
23:43
skolman_ has joined #ruby
23:43
reinaldob has joined #ruby
23:43
Mia has quit [Ping timeout: 255 seconds]
23:45
iceden has joined #ruby
23:46
reinaldob has quit [Read error: Connection reset by peer]
23:47
reinaldob has joined #ruby
23:47
ubra has joined #ruby
23:47
ubra has left #ruby [#ruby]
23:47
ubra has joined #ruby
23:48
jhass is now known as jhass|off
23:49
weemsledeux has joined #ruby
23:49
sailias has joined #ruby
23:49
icarus has quit [Remote host closed the connection]
23:49
aspires has quit []
23:49
byprdct has joined #ruby
23:49
codezomb has joined #ruby
23:50
cmckee has quit [Ping timeout: 260 seconds]
23:51
mary5030 has joined #ruby
23:52
skolman_ has quit [Ping timeout: 265 seconds]
23:54
moritzs has joined #ruby
23:54
NoNMaDDeN has joined #ruby
23:55
cmckee has joined #ruby
23:56
cndiv has quit [Ping timeout: 245 seconds]
23:57
peta_ has quit [Quit: peta_]
23:58
ephemerian has quit [Quit: Leaving.]