apeiros changed the topic of #ruby to: Ruby 2.1.3; 2.0.0-p576; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
Channel6 has quit [Quit: Leaving]
agrinb has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
<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
cndiv has quit [Ping timeout: 255 seconds]
robbyoconnor has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
robbyoconnor has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
benzrf|offline is now known as benzrf
nonks has joined #ruby
kireevco1 has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
kireevco has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
robbyoconnor has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
aspires has quit []
r0bby_ has joined #ruby
r0bby_ has quit [Read error: Connection reset by peer]
r0bby_ has joined #ruby
r0bby_ has quit [Read error: Connection reset by peer]
linduxed has quit [Ping timeout: 244 seconds]
r0bby_ has joined #ruby
r0bby_ has quit [Read error: Connection reset by peer]
r0bby_ has joined #ruby
r0bby_ has quit [Read error: Connection reset by peer]
kireevco has quit [Client Quit]
r0bby_ has joined #ruby
r0bby_ has quit [Read error: Connection reset by peer]
r0bby_ has joined #ruby
parduse has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
robustus has quit [Ping timeout: 250 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
robbyoconnor has quit [Ping timeout: 260 seconds]
nateberkopec has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
Fun has joined #ruby
aspires has quit [Client Quit]
robustus has joined #ruby
ebru has joined #ruby
r0bby_ has quit [Ping timeout: 250 seconds]
<Fun> hi
<Fun> any ideas what that mean http://pastebin.com/8ZGPLdTu ?
<Toba> there's a very specific no fun rule in this channel
<Fun> Toba thats only your imagination :)
<Toba> you're right, it is
<benzrf> i
aspires has joined #ruby
<Toba> it means your order hash object doesn't have a token field in it
<Toba> the template looked at the Spree::Order object and it didn't have a token field/method on it
<Toba> check your class definition for a getter for that field
<Toba> see, i can be fun too :p
<Fun> :)
<Fun> yes
ramfjord has joined #ruby
parduse has joined #ruby
<waxjar> (in the feature, try #rubyonrails if you have a rails question fun, they're more likely to have an answer)
<Fun> oki
aspires has quit [Client Quit]
jhass is now known as jhass|off
wallerdev has quit [Quit: wallerdev]
<Fun> I admit i simply copied onepage files into exist spree
thsig has quit [Remote host closed the connection]
<Fun> it seems its using older version hence the issue
<Toba> yea
<Toba> in short, your code is all fucked up.
<Fun> its a mix and match
<Fun> soon my coding assistant wakes up
<Fun> he can fix it I think lol
jdj_dk has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
wallerdev has joined #ruby
<Fun> but yes ruby and rails are interesting
FooMunki has quit [Quit: FooMunki]
Kricir has joined #ruby
tylersmith has quit [Remote host closed the connection]
aspires has quit [Client Quit]
Pupeno has joined #ruby
<gkra> eam: so either I figure out my problems with open4 and threads, or kludge it with system()
<gkra> eam: at least thats how it looks right now to move forward with getting stuff done...
aspires has joined #ruby
Pupeno_ has quit [Ping timeout: 258 seconds]
reinaldob has quit [Remote host closed the connection]
<Fun> Toba: is there any book I can get to understand how to fix such things?
charliesome has joined #ruby
simple-saint has joined #ruby
<Toba> I dunno.
<Fun> oki
<Toba> I taught myself ruby from a website.
<Toba> (sorta badly)
<Fun> wow
rubie has joined #ruby
<Fun> well better than me :D
sambao21 has quit [Quit: Computer has gone to sleep.]
<Toba> i went by this.
<zenspider> gkra: check out expect.rb
<Toba> and some other webpages and googling.
<Toba> it was hard.
<Toba> well
rpag has quit [Quit: Leaving]
<Toba> I was doing it at 2,3,4,5 am
<Toba> so
<Toba> maybe that's why it was hard
<Toba> I was in a rush too.
<Toba> take your time and try to fully understand each part.
<Fun> so this is file with error code
<Fun> app/views/spree/checkout/edit.html.erb:11:in `_907704d2bc58e129b3f7ae2902e67739' ?
bricker`work has quit [Ping timeout: 265 seconds]
aspires has quit [Client Quit]
thagomizer has quit [Quit: Leaving.]
<Toba> no idea.
<gkra> zenspider: got a url? google is unclear. :)
agrinb has quit [Remote host closed the connection]
<zenspider> gem which expect
<Fun> Toba: 1 more idea what if gems installed are for specific version ?
<rubie> hi all: i was working on a problem and I'm not getting the return I am expecting, could someone take a look? https://gist.github.com/gabrie30/dc7288ddf3eb40c0334f
<benzrf> rubie: you want 2**i
kaspergrubbe has quit [Remote host closed the connection]
<benzrf> also this code is pretty c-like
<Toba> fun i'm outta energy to help out, sorry.
emmesswhy has joined #ruby
<Toba> gotta focus on my own project.
<zenspider> rubie: it's because you use tabs
<Fun> cool
<Fun> ty
<rubie> benzrf: thanks brain fart :)
mikecmpbll has quit [Remote host closed the connection]
<rubie> benzrf: wait are you sure thats right? still not getting to correct return
mikecmpbll has joined #ruby
linojon has quit [Quit: linojon]
oo_ has joined #ruby
<zenspider> rubie: is there some reason why you're not using MATH to solve this?
<rubie> its just an exercise
kireevco has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<zenspider> an exercise in not using math?
<benzrf> dang wow
bricker`work has joined #ruby
linojon has joined #ruby
<eam> >> def is_power_of_two?(num) not not num.to_s =~ /[02468]$/; end; [1,2,3,4].map(&:is_power_of_two?)
<eval-in__> eam => private method `is_power_of_two?' called for 1:Fixnum (NoMethodError) ... (https://eval.in/209167)
<eam> sigh
<benzrf> eam: gros!
<zenspider> haha
<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 }
<eval-in__> eam => [false, true, false, true] (https://eval.in/209168)
<zenspider> also: horrible
<eam> very notty
<zenspider> and wrong
<eam> oh wait I totally didn't even read the function name
<eam> I did even
<zenspider> hahaha
<benzrf> ay lmao
hatzopoulos has joined #ruby
phutchins has joined #ruby
volty has joined #ruby
simple-saint has quit [Quit: Leaving]
<zenspider> Math.log is your friend
volty has quit [Client Quit]
<eam> apparently I can even
<benzrf> i cant even :{
<rubie> 2 ** i --- is correct
<rubie> but doesn't make the return value correct
Fun has quit [Disconnected by services]
boombadaroomba has quit [Remote host closed the connection]
lukeholder has joined #ruby
Fun1 has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
tier has quit [Remote host closed the connection]
exceion has joined #ruby
Fun1 has left #ruby [#ruby]
linduxed has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
TPBallbag has joined #ruby
<eam> rubie: what is 2 ** 0 ?
<zenspider> divmod is your friend too
<rubie> 1
<zenspider> so many better ways to do this...
<zenspider> MATH is your friend
<havenwood> >> 3.abs2
<eval-in__> havenwood => 9 (https://eval.in/209169)
<havenwood> Math \o/
chipotle has joined #ruby
<rubie> im sure there are better ways but im trying to understand why this isn't working
<eam> rubie: well, let's examine one specific input and output that you don't agree with
it0a has joined #ruby
<eam> when tackling a problem break it down into specifics
<rubie> ok
<rubie> when num == 0
<rubie> it should return false
Kricir has quit [Remote host closed the connection]
cat_pants has quit [Quit: leaving]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
jdj_dk has joined #ruby
Kricir has joined #ruby
<eam> can you gist the routine? Because what you've shown us will return false
<havenwood> Math.sqrt
TPBallbag has quit [Ping timeout: 272 seconds]
<eam> havenwood: uh oh, floating point
samflores has joined #ruby
<rubie> okay its updated
samflores has quit [Remote host closed the connection]
samflores has joined #ruby
lw has quit [Quit: s]
<eam> >> false == false
<eval-in__> eam => true (https://eval.in/209170)
jottr has quit [Ping timeout: 265 seconds]
ghostmoth has joined #ruby
<eam> rubie: your method is returning false as you expect, but you're comparing it to false, which returns true
<rubie> ohhh
<rubie> thats odd
cmckee_ has joined #ruby
<eam> you think false shouldn't be equal to itself?
<rubie> nice catch
AmBienCeD has quit [Read error: Connection reset by peer]
nichtdiebohne1 has joined #ruby
gyre007_ has quit [Remote host closed the connection]
SilkFox has joined #ruby
<rubie> its strange that the test would evaluate the result like that
<rubie> but makes sense now
nichtdiebohne has quit [Ping timeout: 244 seconds]
chipotle has quit [Remote host closed the connection]
Channel6 has joined #ruby
renderful has joined #ruby
arescorpio has quit [Remote host closed the connection]
chipotle has joined #ruby
cmckee has quit [Ping timeout: 265 seconds]
cmckee_ is now known as cmckee
kireevco has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
SilkFox has quit [Ping timeout: 265 seconds]
<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
<havenwood> when in doubt monkey patch ALL THE CORE CLASSES \o/
<rubie> ok thanks
<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?)
<eval-in__> havenwood => [true, false, false, true, false, false, false, false, true, false] (https://eval.in/209171)
renderful has quit [Ping timeout: 256 seconds]
<havenwood> why don't we have a #whole? :P
grzywacz has quit [Ping timeout: 260 seconds]
cndiv has joined #ruby
<eam> havenwood: 'cuz it's always false
<eam> a double value is never a whole number because it's always an approximation
<havenwood> eam: no numbers are whole? :O
<eam> no floating point numbers are whole :)
<havenwood> right
<ramfjord> havenwood: are you testing for power_of_two? or square?
<eam> I mean, we could be like class Fixnum; def whole true; end; end
Hytosys has joined #ruby
<havenwood> eam: exactly :)
<ramfjord> eam: you can get a whole double also
tyll_ has quit [Ping timeout: 260 seconds]
<eam> ramfjord: nope
<ramfjord> just unlikely after arithmetic
<havenwood> eam: well, yeah, 3.0
<havenwood> mm
<eam> 3.0 is not whole, you can reach 3.0 using math that actually produces a fractional value
<eam> and you don't know if that's what happened
melik has quit [Quit: (null)]
cmckee has quit [Ping timeout: 245 seconds]
<ramfjord> however, I think if you're doing math on powers of 2
<ramfjord> you are likely to never run into floating point errors
<eam> or conversely you can do math that should result in whole numbers, but doesn't
Spami has quit [Quit: This computer has gone to sleep]
tyll has joined #ruby
<havenwood> good point
<havenwood> mathy!
<ramfjord> yes, you definitely shouldn't
<eam> math math math
<ramfjord> rely on floats for infinite precision
lukehold_ has joined #ruby
<ramfjord> rational is nice for that though
sevenseacat has joined #ruby
rkazak has joined #ruby
lukeholder has quit [Ping timeout: 272 seconds]
<eam> yup, my beef is only with floats
tkuchiki has joined #ruby
arescorpio has joined #ruby
nobitanobi has joined #ruby
linojon has quit [Quit: linojon]
samflores_ has joined #ruby
laphlaw has joined #ruby
yetanotherdave has quit [Ping timeout: 272 seconds]
aspires has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
linojon has joined #ruby
i8igmac has quit [Ping timeout: 245 seconds]
phutchin1 has joined #ruby
tvw has quit [Read error: Connection reset by peer]
phutchins has quit [Ping timeout: 260 seconds]
<havenwood> that's rational
bricker`work has quit [Ping timeout: 265 seconds]
<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
<laphlaw> "Gem files will remain installed in /Users/neil/.gem/ruby/2.1.0/gems/debase-0.0.9 for inspection."
nobitanobi has quit []
<havenwood> laphlaw: what's the exact command you're running?
<laphlaw> gem install debase -v 0.1.0
mary5030 has joined #ruby
<laphlaw> also when it says its "building native extensions", I noticed a TON of these processes are running when doing a "ps aux"
<laphlaw> "/Users/neil/.rvm/rubies/ruby-2.1.3/bin/ruby extconf.rb"
Kricir has quit [Remote host closed the connection]
<laphlaw> "sh -c /Users/neil/.rvm/rubies/ruby-2.1.3/bin/ruby extconf.rb 2>&1"\
Kricir has joined #ruby
<laphlaw> like 400+
arescorpio has quit [Read error: Connection reset by peer]
jdj_dk has quit [Ping timeout: 244 seconds]
multi_io has quit [Quit: leaving]
<laphlaw> it gets to the point while I can't even run a command: "-bash: fork: Resource temporarily unavailable"
iamjarvo has joined #ruby
mary5030 has quit [Ping timeout: 265 seconds]
<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"
havenwood has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
samflores has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
echooo1 has joined #ruby
Hobogrammer has joined #ruby
echooo has quit [Ping timeout: 240 seconds]
banister has quit [Read error: Connection reset by peer]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
jenrzzz_ has joined #ruby
echooo has joined #ruby
banister has joined #ruby
valeriansaliou has joined #ruby
agrinb has joined #ruby
arescorpio has joined #ruby
cmckee has joined #ruby
sdwrage has quit [Quit: Leaving]
echooo2 has joined #ruby
reinaldob has joined #ruby
echooo has quit [Ping timeout: 258 seconds]
echooo1 has quit [Ping timeout: 258 seconds]
jimbach has joined #ruby
valeriansaliou has quit [Ping timeout: 246 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
ghostmoth has quit [Quit: ghostmoth]
Alina-malina has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
reinaldob has quit [Ping timeout: 265 seconds]
SnotSmart has joined #ruby
<SnotSmart> asdfasd
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<sevenseacat> awesome
<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
<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
<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
<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
<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
<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
<SnotSmart> HEP TEP ROG'S MY KICK ASS PHRASE
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<SnotSmart> HEP TEP ROG'S MY KICK ASS PHRASE
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<SnotSmart> HEP TEP ROG'S MY KICK ASS PHRASE
<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
SnotSmart has quit [Killed (idoru (Spam is off topic on freenode.))]
<benzrf> tfw
<sevenseacat> \o/
<benzrf> greg, agian
badhatter_ has joined #ruby
maestrojed has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
echooo2 has quit [Ping timeout: 272 seconds]
tokik has joined #ruby
hellangel7 has joined #ruby
badhatter has quit [Ping timeout: 265 seconds]
coderhs has quit [Ping timeout: 244 seconds]
i_s has joined #ruby
diegoviola has quit [Remote host closed the connection]
jdj_dk has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spastorino has joined #ruby
hobodave has joined #ruby
i_s has quit [Ping timeout: 246 seconds]
cndiv has quit [Ping timeout: 265 seconds]
iamjarvo has joined #ruby
cmckee has quit [Quit: cmckee]
jalcine has quit [Quit: Quit]
jshultz has quit [Quit: Connection closed for inactivity]
Lewix has quit [Remote host closed the connection]
SilkFox has joined #ruby
kireevco has quit [Quit: Leaving.]
aspires has quit []
almostworking has joined #ruby
djbkd has quit [Remote host closed the connection]
yetanotherdave has joined #ruby
hamakn has quit [Remote host closed the connection]
djbkd has joined #ruby
SilkFox has quit [Ping timeout: 265 seconds]
goshdarnyou has joined #ruby
srnty has joined #ruby
srnty has quit [Client Quit]
agrinb has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tylersmith has joined #ruby
beneggett has joined #ruby
almostworking has left #ruby ["Leaving"]
eka has joined #ruby
tyll_ has joined #ruby
phutchin1 has quit [Ping timeout: 265 seconds]
aspires has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
samflores has joined #ruby
aclearman037 has quit [Read error: Connection reset by peer]
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
aclearman037 has joined #ruby
agrinb has joined #ruby
arrubin has quit []
tyll has quit [Ping timeout: 265 seconds]
hamakn has joined #ruby
samflores has quit [Client Quit]
aclearman037 has quit [Read error: Connection reset by peer]
DrCode has quit [Ping timeout: 246 seconds]
samflores_ is now known as samflores
mistermocha has joined #ruby
jdj_dk has quit [Ping timeout: 255 seconds]
aclearman037 has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
bauruine_ has quit [Ping timeout: 265 seconds]
bauruine_ has joined #ruby
aclearman037 has quit [Read error: Connection reset by peer]
mistermocha has quit [Ping timeout: 272 seconds]
sailias has joined #ruby
aclearman037 has joined #ruby
baordog has joined #ruby
atmosx has quit [Ping timeout: 246 seconds]
cmckee has joined #ruby
Kricir has joined #ruby
vt102 has quit [Remote host closed the connection]
cmxu has joined #ruby
cmxu has quit [Max SendQ exceeded]
nevans has quit [Ping timeout: 260 seconds]
george2 has quit [Ping timeout: 265 seconds]
A0v4 has quit [Ping timeout: 265 seconds]
hostess has quit [Remote host closed the connection]
agent_white has joined #ruby
Aova has joined #ruby
<agent_white> Good evening everyone
george2 has joined #ruby
St_Marx has quit [Ping timeout: 246 seconds]
end_guy_ has quit [Ping timeout: 246 seconds]
ndrei has joined #ruby
shemerey has joined #ruby
_lexjm has joined #ruby
_lexjm has quit [Max SendQ exceeded]
radic has quit [Disconnected by services]
radic_ has joined #ruby
hostess has joined #ruby
arup_r has joined #ruby
_lexjm has joined #ruby
Asher has quit [Quit: Leaving.]
laphlaw has quit [Ping timeout: 246 seconds]
DrCode has joined #ruby
nevans has joined #ruby
St_Marx has joined #ruby
Kricir has quit [Remote host closed the connection]
hostess has quit [Remote host closed the connection]
Kricir has joined #ruby
jaequery has joined #ruby
<rkazak> evening agent_white!
skolman_ has joined #ruby
jdj_dk has joined #ruby
lampd1 has quit []
Kricir has quit [Ping timeout: 255 seconds]
boombadaroomba has joined #ruby
baordog has quit [Ping timeout: 258 seconds]
hostess has joined #ruby
<Nilium> I gots a new keyboard
zzach has quit [Ping timeout: 245 seconds]
<Nilium> It's god damn loud
djbkd has quit [Remote host closed the connection]
d0ugb has joined #ruby
<sevenseacat> mechanical?
end_guy has joined #ruby
zzach has joined #ruby
magic_ has joined #ruby
<agent_white> <3 my Ducky. One you go mechanical, you never go back.
<sevenseacat> i have a nice logitech keyboard that everyone thinks is mechanical just because its louder than their little apple keyboards
troyready has quit [Ping timeout: 245 seconds]
<Nilium> sevenseacat: Yeah, buckling spring.
<Nilium> I use a Das Keyboard with blue switches in the office, but buckling spring is way louder
boombadaroomba has quit [Ping timeout: 240 seconds]
emmesswhy has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kricir has joined #ruby
<agent_white> I use Cherry Browns. :)
d0ugb has quit [Remote host closed the connection]
<Nilium> One of my coworkers uses browns, but I don't really like typing on them
<Nilium> The buckling springs feel alright, though I admittedly like the more distinct feeling blues have
luriv has quit [Ping timeout: 240 seconds]
siwica has quit [Remote host closed the connection]
<Nilium> Browns just kind of felt soft
siwica has joined #ruby
srnty has joined #ruby
<Nilium> This unicomp keyboard has a similar feeling, but not as odd
sailias has quit [Quit: Leaving.]
srnty has quit [Remote host closed the connection]
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
beneggett has joined #ruby
Soda has quit [Remote host closed the connection]
qmfnp has joined #ruby
chipotle has quit [Quit: cya]
d0ugb has joined #ruby
d0ugb has quit [Remote host closed the connection]
sailias has joined #ruby
SilkFox has joined #ruby
knight1 has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
<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?
jenrzzz_ has quit [Ping timeout: 258 seconds]
siwica has quit [Ping timeout: 255 seconds]
qmfnp is now known as qmfnp_zzz
<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"))
SilkFox has quit [Ping timeout: 272 seconds]
Numdox has quit [Ping timeout: 240 seconds]
az7ar_away is now known as az7ar
jack_rabbit has quit [Quit: Leaving]
jack_rabbit has joined #ruby
atmosx has joined #ruby
jdj_dk has quit [Ping timeout: 265 seconds]
ARCADIVS has joined #ruby
shemerey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Numdox has joined #ruby
iinzg has joined #ruby
wallerdev has quit [Quit: wallerdev]
chipotle has joined #ruby
<Nilium> https://dl.dropboxusercontent.com/u/31892/IMG_0457.JPG ← Neat, I gots keys in my keys so I can type while I no wait I ain't sinking to that level
d0ugb has joined #ruby
VanillaGoat__ has joined #ruby
baordog has joined #ruby
d0ugb has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
VanillaGoat_ has quit [Ping timeout: 255 seconds]
valeriansaliou has joined #ruby
<eam> knight1: huh, it looks like ruby's RE engine doesn't do bytes?
<eam> there's the stupid way:
<eam> >> "aaa\227bbb".each_byte.map { |b| b == 0227 ? ?\n : b.chr }.join
<eval-in__> eam => "aaa\nbbb" (https://eval.in/209244)
<eam> or use something other than oniguruma? like maybe a PCRE gem?
braincrash has joined #ruby
coderhs has joined #ruby
d0ugb has joined #ruby
valeriansaliou has quit [Ping timeout: 244 seconds]
d0ugb has quit [Remote host closed the connection]
jimbach has quit [Remote host closed the connection]
emmesswhy has quit [Quit: Leaving]
Kricir has quit [Remote host closed the connection]
ghostmoth has joined #ruby
Kricir has joined #ruby
crampa has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
ac-jlima has joined #ruby
cndiv has joined #ruby
hamakn has joined #ruby
<crampa> how come 2 false && statements are false?
<crampa> how could we say that it's true that 2 statements are false?
<sevenseacat> what
<crampa> well, you know if 1 && 2 == true then the answer is true
<crampa> but if 1 && 2 are both false, isn't it true that they're both false?
Kricir has quit [Ping timeout: 246 seconds]
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
<sevenseacat> ((false && false) == false) will return true, yes.
iamjarvo has joined #ruby
jdj_dk has joined #ruby
Fire-Dragon-DoL has quit [Ping timeout: 255 seconds]
Eiam_ has joined #ruby
i_s has joined #ruby
<crampa> sevenseacat: it returns false, but i want it to return true
d0ugb has joined #ruby
Eiam_ has quit [Client Quit]
<sevenseacat> it does not return false.
<crampa> you can do !value && !other_value
<crampa> if they're both false, to return true
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
<crampa> some other guys helped me, i hope this helps :)
chrishough has joined #ruby
Eiam_ has joined #ruby
<sevenseacat> i... dont know what to say to that.
Eiam has quit [Disconnected by services]
hatzopoulos has quit [Quit: Leaving]
Eiam_ is now known as Eiam
jenrzzz has joined #ruby
d0ugb has quit [Remote host closed the connection]
jenrzzz_ has joined #ruby
jdj_dk_ has joined #ruby
i_s has quit [Ping timeout: 244 seconds]
sbar_ has quit [Ping timeout: 244 seconds]
jdj_dk has quit [Ping timeout: 244 seconds]
chipotle has quit [Quit: cya]
az7ar is now known as az7ar_away
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Hobogrammer_ has joined #ruby
mikeg has joined #ruby
d0ugb has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
Hobogrammer has quit [Ping timeout: 256 seconds]
j_mcnally has joined #ruby
d0ugb has quit [Remote host closed the connection]
aspires has quit []
Numdox has quit [Ping timeout: 245 seconds]
Numdox has joined #ruby
teejar has quit [Ping timeout: 255 seconds]
benzrf is now known as benzrf|offline
chipotle has joined #ruby
Photism has quit [Quit: Leaving]
klmlfl has joined #ruby
garbanotas has joined #ruby
iamjarvo has joined #ruby
shemerey has joined #ruby
SilkFox has joined #ruby
ejnahc has quit [Remote host closed the connection]
ejnahc has joined #ruby
byprdct has joined #ruby
it0a has quit [Ping timeout: 244 seconds]
SilkFox has quit [Ping timeout: 260 seconds]
d0ugb has joined #ruby
echooo has joined #ruby
d0ugb has quit [Remote host closed the connection]
az7ar_away is now known as az7ar
teejar has joined #ruby
jdj_dk_ has quit [Ping timeout: 258 seconds]
agrinb has quit [Remote host closed the connection]
teejar has quit [Ping timeout: 240 seconds]
byprdct has quit [Ping timeout: 265 seconds]
MOZZARELLA is now known as mozzarella
sailias has quit [Quit: Leaving.]
thumpba_ has joined #ruby
byprdct has joined #ruby
d0ugb has joined #ruby
shemerey has quit [Ping timeout: 256 seconds]
thumpba has quit [Ping timeout: 260 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
d0ugb has quit [Remote host closed the connection]
teejar has joined #ruby
sinequanon has joined #ruby
agrinb has joined #ruby
echooo has quit [Ping timeout: 260 seconds]
echooo1 has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agrinb has quit [Remote host closed the connection]
chipotle has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
techsethi has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
arescorpio has quit [Excess Flood]
sirene has quit [Remote host closed the connection]
cleopatra has quit [Remote host closed the connection]
jdj_dk has joined #ruby
jasooon has joined #ruby
tonini has joined #ruby
Paradox has quit [Ping timeout: 272 seconds]
jaequery has joined #ruby
kyb3r_ has joined #ruby
crampa has quit [Ping timeout: 246 seconds]
duncannz has joined #ruby
d0ugb has joined #ruby
maletor has joined #ruby
d0ugb has quit [Remote host closed the connection]
tskogberg has quit [Ping timeout: 245 seconds]
kp666 has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
kp666 has quit [Read error: Connection reset by peer]
jdj_dk has quit [Ping timeout: 244 seconds]
hobodave has quit [Quit: Computer has gone to sleep.]
kp666 has joined #ruby
Spami has joined #ruby
jasooon has quit [Ping timeout: 244 seconds]
jdj_dk has joined #ruby
JBreit has joined #ruby
JBreit has quit [Max SendQ exceeded]
guinsly has joined #ruby
JBreit has joined #ruby
guinsly is now known as fr-canadian
jaequery has quit [Quit: Textual IRC Client: www.textualapp.com]
lukehold_ has quit [Read error: Connection reset by peer]
SilkFox has joined #ruby
JBreit has quit [Max SendQ exceeded]
ac-jlima has quit [Quit: Linkinus - http://linkinus.com]
nonks has quit [Ping timeout: 240 seconds]
JBreit has joined #ruby
jdj_dk has quit [Ping timeout: 260 seconds]
Morkel has joined #ruby
djbkd has joined #ruby
lukeholder has joined #ruby
SilkFox has quit [Ping timeout: 260 seconds]
valeriansaliou has joined #ruby
bluOxigen has joined #ruby
mary5030 has joined #ruby
parabolize has joined #ruby
valeriansaliou has quit [Ping timeout: 272 seconds]
Kricir has joined #ruby
jimbach has joined #ruby
larissa has quit [Quit: Leaving]
jimbach has quit [Ping timeout: 240 seconds]
agjacome has quit [Quit: leaving]
linojon has quit [Quit: linojon]
ramfjord has quit [Ping timeout: 244 seconds]
beneggett has quit [Quit: Textual IRC Client: www.textualapp.com]
nfk has joined #ruby
i_s has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
byprdct has quit [Ping timeout: 258 seconds]
Pupeno_ has joined #ruby
jdj_dk has joined #ruby
Cheezebox has quit [Remote host closed the connection]
i_s has quit [Ping timeout: 250 seconds]
yetanotherdave has quit [Quit: Lost terminal]
Channel6 has quit [Quit: Leaving]
Pupeno has quit [Ping timeout: 265 seconds]
t_mmyv has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
Eiam has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
theotherstupidgu has quit [Quit: leaving]
mercwithamouth has joined #ruby
ta has quit [Remote host closed the connection]
sigurding has joined #ruby
arup_r has quit [Quit: Leaving.]
chipotle has quit [Quit: cya]
Morkel_ has joined #ruby
Morkel has quit [Ping timeout: 244 seconds]
Morkel_ is now known as Morkel
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
theotherstupidgu has joined #ruby
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
ylluminarious has quit [Quit: Leaving...]
mikeg has quit [Remote host closed the connection]
ghostmoth has quit [Quit: ghostmoth]
krz has joined #ruby
hanmac1 has joined #ruby
Kricir has quit [Ping timeout: 258 seconds]
oleo has quit [Quit: Verlassend]
jdj_dk has quit [Read error: Connection reset by peer]
Wolland_ has quit [Remote host closed the connection]
popl has joined #ruby
popl has joined #ruby
theother1tupidgu has joined #ruby
Avahey has quit [Quit: Connection closed for inactivity]
ramfjord has joined #ruby
duncannz has quit [Remote host closed the connection]
theother1tupidgu has quit [Client Quit]
theotherstupidgu has quit [Quit: leaving]
theother1tupidgu has joined #ruby
theother1tupidgu is now known as theotherstupidgu
ramfjord has quit [Ping timeout: 272 seconds]
byprdct has joined #ruby
byprdct has quit [Client Quit]
Pupeno has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ylluminarious has joined #ruby
klmlfl has quit [Remote host closed the connection]
Pupeno_ has quit [Ping timeout: 244 seconds]
az7ar is now known as az7ar_away
timonv_ has joined #ruby
cndiv has quit [Ping timeout: 245 seconds]
SilkFox has joined #ruby
codecop has joined #ruby
mary5030 has quit [Remote host closed the connection]
last_staff has joined #ruby
SilkFox has quit [Ping timeout: 244 seconds]
ylluminarious has quit [Quit: Leaving...]
fabrice31 has joined #ruby
duncannz has joined #ruby
jdj_dk has joined #ruby
valeriansaliou has joined #ruby
theotherstupidgu has quit [Ping timeout: 244 seconds]
monsieur1 has joined #ruby
starkhallo has joined #ruby
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xiti` has joined #ruby
Xiti` has quit [Read error: Connection reset by peer]
Sutffness has joined #ruby
starkhalo has quit [Read error: Connection reset by peer]
Xiti` has joined #ruby
Macaveli has joined #ruby
kamil has joined #ruby
matled- has joined #ruby
nemesit|znc has quit [Ping timeout: 260 seconds]
nichtdiebohne has joined #ruby
chrishough has quit [Ping timeout: 272 seconds]
chridal has quit [Ping timeout: 260 seconds]
elaptic`` has joined #ruby
valeriansaliou has quit [Ping timeout: 260 seconds]
gogiel_ has joined #ruby
weaksauce has quit [Ping timeout: 250 seconds]
monsieurp has quit [Ping timeout: 272 seconds]
Roa has quit [Ping timeout: 272 seconds]
Stuffness has quit [Ping timeout: 272 seconds]
aep has quit [Ping timeout: 272 seconds]
Norrin has quit [Ping timeout: 260 seconds]
leslie has quit [Ping timeout: 260 seconds]
nichtdiebohne1 has quit [Ping timeout: 260 seconds]
elaptics`away has quit [Ping timeout: 260 seconds]
s_e has quit [Ping timeout: 260 seconds]
Roa has joined #ruby
aboudreault has quit [Ping timeout: 265 seconds]
mnms_ has quit [Ping timeout: 260 seconds]
mbr has quit [Ping timeout: 260 seconds]
preller has quit [Ping timeout: 260 seconds]
jeekl has quit [Ping timeout: 260 seconds]
nemesit|znc has joined #ruby
soahccc has quit [Ping timeout: 260 seconds]
digital-ghost has quit [Ping timeout: 260 seconds]
heyimwill has quit [Ping timeout: 260 seconds]
bascht has quit [Ping timeout: 260 seconds]
matti has quit [Ping timeout: 260 seconds]
gogiel has quit [Ping timeout: 260 seconds]
oddraisin has quit [Ping timeout: 260 seconds]
matrixise has quit [Ping timeout: 260 seconds]
majoh has quit [Ping timeout: 260 seconds]
jxport has quit [Ping timeout: 260 seconds]
Rydekull has quit [Ping timeout: 260 seconds]
pmarreck has quit [Ping timeout: 260 seconds]
thisguy123 has joined #ruby
Xiti has quit [Ping timeout: 250 seconds]
RoryHughes has quit [Ping timeout: 272 seconds]
soahccc_ has joined #ruby
danoo has quit [Ping timeout: 260 seconds]
aep has joined #ruby
matrixise has joined #ruby
chrishough has joined #ruby
Meeh has quit [Quit: No Ping reply in 180 seconds.]
matti has joined #ruby
QKO_ has joined #ruby
lukeholder has quit [Ping timeout: 272 seconds]
QKO has quit [Ping timeout: 272 seconds]
lsmola has quit [Ping timeout: 272 seconds]
wang has quit [Ping timeout: 272 seconds]
matled has quit [Ping timeout: 272 seconds]
tkuchiki has quit [Ping timeout: 272 seconds]
kaichanvong has quit [Ping timeout: 272 seconds]
blueOxigen has joined #ruby
Scotteh has joined #ruby
zzach has quit []
bauruine has quit [Ping timeout: 260 seconds]
DefV_ has joined #ruby
jeekl has joined #ruby
Meeh has joined #ruby
DefV has quit [Ping timeout: 260 seconds]
sinequanon has quit []
matled has joined #ruby
lukeholder has joined #ruby
chridal has joined #ruby
wang has joined #ruby
pmarreck_ has joined #ruby
Morrolan has quit [Ping timeout: 260 seconds]
Vile` has quit [Ping timeout: 272 seconds]
theotherstupidgu has joined #ruby
Scub has quit [Ping timeout: 272 seconds]
mbr has joined #ruby
s_e has joined #ruby
timonv_ has quit [Remote host closed the connection]
huddy_ has joined #ruby
matled- has quit [Ping timeout: 260 seconds]
huddy has quit [Ping timeout: 260 seconds]
marlonandrade has quit [Ping timeout: 260 seconds]
huddy_ is now known as huddy
lukeholder has quit [Max SendQ exceeded]
Morrolan has joined #ruby
Mia has quit [Read error: No route to host]
timonv_ has joined #ruby
tkuchiki has joined #ruby
i_s has joined #ruby
valeriansaliou has joined #ruby
nemesit|znc has quit [Ping timeout: 260 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
heyimwill has joined #ruby
Vile` has joined #ruby
marlonandrade has joined #ruby
bal has joined #ruby
preller has joined #ruby
AlexRussia has quit [Ping timeout: 250 seconds]
kaichanvong has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
majoh has joined #ruby
mnms_ has joined #ruby
bascht has joined #ruby
lukeholder has joined #ruby
RoryHughes has joined #ruby
jxport has joined #ruby
jenrzzz_ has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
lsmola has joined #ruby
aboudreault has joined #ruby
Macaveli has quit [Ping timeout: 265 seconds]
timonv_ has quit [Ping timeout: 245 seconds]
lukeholder has quit [Max SendQ exceeded]
Rydekull has joined #ruby
i_s has quit [Ping timeout: 244 seconds]
lukeholder has joined #ruby
charliesome has quit [Quit: zzz]
lukeholder has quit [Max SendQ exceeded]
Norrin has joined #ruby
rubie has quit [Ping timeout: 246 seconds]
doev has joined #ruby
Paradox has joined #ruby
ramfjord has joined #ruby
testcore has joined #ruby
leslie has joined #ruby
leslie has quit [Changing host]
leslie has joined #ruby
bauruine has joined #ruby
User458764 has joined #ruby
bigkevmcd has joined #ruby
_JohnBat26_ has joined #ruby
lukeholder has joined #ruby
thisguy123 has quit [Ping timeout: 255 seconds]
heyimwill has quit [Ping timeout: 260 seconds]
jdj_dk has quit [Ping timeout: 265 seconds]
lukeholder has quit [Max SendQ exceeded]
leslie has quit [Max SendQ exceeded]
leslie has joined #ruby
<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"))
lukeholder has joined #ruby
doev has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
jenrzzz_ has joined #ruby
doev has joined #ruby
lukeholder has quit [Max SendQ exceeded]
arya_ has joined #ruby
_JohnBat26_ has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
_JohnBat26_ has joined #ruby
_JohnBat26_ has quit [Client Quit]
Wolland has joined #ruby
_JohnBat26_ has joined #ruby
ramfjord has quit [Ping timeout: 258 seconds]
leslie has quit [Ping timeout: 260 seconds]
_JohnBat26_ has quit [Client Quit]
nrsk has joined #ruby
echooo1 has quit [Ping timeout: 255 seconds]
arya_ching has joined #ruby
gauke has joined #ruby
danoo has joined #ruby
lukeholder has joined #ruby
boombadaroomba has joined #ruby
lukeholder has quit [Client Quit]
arya_ has quit [Ping timeout: 258 seconds]
mitt3ns has joined #ruby
agent_white has quit [Ping timeout: 260 seconds]
Scub has joined #ruby
bauruine_ has quit [Ping timeout: 265 seconds]
bauruine has quit [Ping timeout: 260 seconds]
RoryHughes has quit [Ping timeout: 265 seconds]
marr has joined #ruby
aganov has joined #ruby
Wolland has quit [Ping timeout: 258 seconds]
chridal has quit [Ping timeout: 272 seconds]
nrsk has quit [Ping timeout: 256 seconds]
boombadaroomba has quit [Ping timeout: 258 seconds]
tonini_ has joined #ruby
starkhallo has quit [Ping timeout: 244 seconds]
RoryHughes has joined #ruby
chridal has joined #ruby
valeriansaliou has quit [Quit: Be back later ...]
okic has quit [Ping timeout: 260 seconds]
wang has quit [Ping timeout: 260 seconds]
okic has joined #ruby
sinkensabe has joined #ruby
tonini has quit [Ping timeout: 250 seconds]
arya_ching has quit [Ping timeout: 246 seconds]
ht__th has joined #ruby
tonini_ is now known as tonini
bjornar has quit [Remote host closed the connection]
RoryHughes has quit [Ping timeout: 244 seconds]
Macaveli has joined #ruby
charliesome has joined #ruby
parabolize has quit [Read error: Connection reset by peer]
bauruine has joined #ruby
andikr has joined #ruby
sevenseacat has left #ruby [#ruby]
sevenseacat has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
sevenseacat has left #ruby [#ruby]
tylersmith has quit [Remote host closed the connection]
renderful has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
jimbach has joined #ruby
SilkFox has joined #ruby
wang has joined #ruby
wang has quit [Changing host]
wang has joined #ruby
iliketurtles has joined #ruby
danijoo_ has joined #ruby
jdj_dk has joined #ruby
renderful has quit [Ping timeout: 255 seconds]
klaut has joined #ruby
agent_white has joined #ruby
SilkFox has quit [Ping timeout: 245 seconds]
jimbach has quit [Ping timeout: 265 seconds]
danijoo has quit [Ping timeout: 250 seconds]
abuzze has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
banister_ has joined #ruby
banister_ has quit [Max SendQ exceeded]
JohnBat26 has joined #ruby
graft_ has joined #ruby
graft_ has joined #ruby
banister_ has joined #ruby
nrsk has joined #ruby
shaman42_ has joined #ruby
csmrfx_ has joined #ruby
FDj_ has joined #ruby
djbkd has quit [Quit: My people need me...]
mnms__ has joined #ruby
Andriama1itra has joined #ruby
gregf1 has joined #ruby
ruisanto1 has joined #ruby
sevenseacat has joined #ruby
ihme-TTilus has joined #ruby
dr_tobog1an has joined #ruby
Doc_IX has joined #ruby
drager_ has joined #ruby
Macaveli has joined #ruby
nonks has joined #ruby
billy_ran_away_ has joined #ruby
vlad_sta- has joined #ruby
p8952_ has joined #ruby
ta has joined #ruby
Wolland has joined #ruby
mitt3ns has quit [*.net *.split]
mnms_ has quit [*.net *.split]
hellangel7 has quit [*.net *.split]
banister has quit [*.net *.split]
linduxed has quit [*.net *.split]
FDj has quit [*.net *.split]
graft has quit [*.net *.split]
taptapdan has quit [*.net *.split]
nuck has quit [*.net *.split]
hackeron has quit [*.net *.split]
billy_ran_away has quit [*.net *.split]
Akuma has quit [*.net *.split]
drager has quit [*.net *.split]
alexherbo2 has quit [*.net *.split]
dr_toboggan has quit [*.net *.split]
TTilus has quit [*.net *.split]
bauruine has quit [*.net *.split]
gregf has quit [*.net *.split]
shevy has quit [*.net *.split]
artmann has quit [*.net *.split]
Sammael has quit [*.net *.split]
p8952 has quit [*.net *.split]
sjohnsen has quit [*.net *.split]
vlad_starkov has quit [*.net *.split]
tobiasvl has quit [*.net *.split]
Synthead has quit [*.net *.split]
ckrailo has quit [*.net *.split]
mclee has quit [*.net *.split]
charles81 has quit [*.net *.split]
ruisantos has quit [*.net *.split]
ewilliam has quit [*.net *.split]
ujjain has quit [*.net *.split]
incomprehensibly has quit [*.net *.split]
jeregrine has quit [*.net *.split]
Doc_X has quit [*.net *.split]
csmrfx has quit [*.net *.split]
shaman42 has quit [*.net *.split]
Andriamanitra has quit [*.net *.split]
shevy has joined #ruby
nuck has joined #ruby
hackeron has joined #ruby
Spami has joined #ruby
echooo has joined #ruby
leslie has joined #ruby
bjornar has joined #ruby
hellangel7 has joined #ruby
Synthead has joined #ruby
Akuma has joined #ruby
Wolland has quit [Ping timeout: 272 seconds]
Paradox has quit [Quit: off to herp the derps]
mclee has joined #ruby
alexherbo2 has joined #ruby
linduxed has joined #ruby
rkazak has left #ruby [#ruby]
charliesome has quit [Quit: zzz]
monsieur1 is now known as monsieurp
monsieurp has quit [Changing host]
monsieurp has joined #ruby
iliketurtles has quit [Read error: Connection reset by peer]
iliketurtles has joined #ruby
skolman_ has quit [Remote host closed the connection]
terlar has quit [Quit: WeeChat 1.0.1]
skolman has joined #ruby
Paradox has joined #ruby
jdj_dk has quit [Ping timeout: 255 seconds]
tatsuo has joined #ruby
jasonzzz_ has joined #ruby
jasonzzz_ has quit [Max SendQ exceeded]
skolman has quit [Ping timeout: 272 seconds]
timonv_ has joined #ruby
Xeago has joined #ruby
robbyoconnor has joined #ruby
RoryHughes has joined #ruby
<tatsuo> こんにちは
<tatsuo> hi
User458764 has quit [Ping timeout: 258 seconds]
chipotle has joined #ruby
valeriansaliou has joined #ruby
techsethi has quit [Quit: techsethi]
ephemerian has joined #ruby
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
arya_ching has joined #ruby
timonv^ has joined #ruby
tagrudev has joined #ruby
sk87 has joined #ruby
doev has quit [Ping timeout: 255 seconds]
asmodlol has joined #ruby
doev has joined #ruby
valeriansaliou has quit [Quit: Bye.]
mengu has joined #ruby
mengu has joined #ruby
timonv_ has quit [Ping timeout: 244 seconds]
sepp2k has joined #ruby
aspiers has quit [Ping timeout: 260 seconds]
huddy has quit [Quit: Connection closed for inactivity]
eam has quit [Ping timeout: 240 seconds]
tatsuo has quit [Remote host closed the connection]
aspiers has joined #ruby
c107 has quit [Remote host closed the connection]
<agent_white> Heya!
eam has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
wpp has joined #ruby
VanillaGoat has joined #ruby
valeriansaliou has joined #ruby
jdj_dk has joined #ruby
wpp has quit [Client Quit]
xymbol has quit [Read error: Connection reset by peer]
alex88 has joined #ruby
VanillaGoat__ has quit [Ping timeout: 265 seconds]
tatsuo_ has joined #ruby
wpp has joined #ruby
xymbol has joined #ruby
testcore has quit [Ping timeout: 246 seconds]
flippeen has joined #ruby
User458764 has joined #ruby
arya_ching has quit []
HelperW has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
bauruine has joined #ruby
SilkFox has joined #ruby
echooo has quit [Remote host closed the connection]
<pontiki> hello agent_white
<hanmac1> shevy: i added the bagdes to the readme ... more content will follow later this week: https://github.com/Hanmac/rwx
weemsledeux has joined #ruby
jenrzzz_ has quit [Quit: leaving]
jenrzzz has quit [Quit: leaving]
jenrzzz has joined #ruby
chipotle has quit [Quit: cya]
SilkFox has quit [Ping timeout: 250 seconds]
robbyoconnor has quit [Ping timeout: 265 seconds]
zakiazigazi has joined #ruby
Guest33740 is now known as lnong
jenrzzz has quit [Client Quit]
mikecmpbll has joined #ruby
segmond has quit [Ping timeout: 255 seconds]
qba73 has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
Darryl has quit [Quit: Connection closed for inactivity]
zakiazigazi has quit [Client Quit]
jenrzzz has joined #ruby
jheg has joined #ruby
i_s has joined #ruby
aspiers has quit [Ping timeout: 272 seconds]
mozzarella has quit [Quit: WeeChat 0.4.3]
jenrzzz has quit [Client Quit]
mozzarella has joined #ruby
mozzarella has quit [Client Quit]
bauruine_ has joined #ruby
* agent_white hugs pontiki
mozzarella has joined #ruby
thsig has joined #ruby
* pontiki hugs back
<pontiki> how's things, agent_white ?
<agent_white> Well enough! I can't complain. How about you pontiki?
<pontiki> well, it's 3am and i'm awake
jacobat has joined #ruby
niklasb has joined #ruby
Wolland has joined #ruby
i_s has quit [Ping timeout: 258 seconds]
<agent_white> Me too :) 2am here.
<agent_white> http://www.youtube.com/watch?v=No9po1rNZd0 got me all excited about stunts
<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"))
sigurding has quit [Quit: sigurding]
<sevenseacat> so you keep saying
tskogberg has joined #ruby
<knight1> :)
hellangel7 has quit [Remote host closed the connection]
poulet_a has joined #ruby
Wolland has quit [Ping timeout: 272 seconds]
segmond has joined #ruby
<knight1> string.bytes.map { |b| b == from_code ? to_code : b }.pack('C*') that seemed to fix it for me
flippeen has quit [Quit: Leaving...]
doev has quit [Ping timeout: 250 seconds]
doev has joined #ruby
<hanmac1> knight1: what OS ?
mikecmpb_ has joined #ruby
doev has quit [Client Quit]
jenrzzz has joined #ruby
mityaz has joined #ruby
mikecmpbll has quit [Ping timeout: 255 seconds]
Takle has joined #ruby
Sammael has joined #ruby
ewilliam has joined #ruby
incomprehensibly has joined #ruby
ckrailo has joined #ruby
tobiasvl has joined #ruby
artmann has joined #ruby
ujjain has joined #ruby
jeregrine has joined #ruby
heyimwill has joined #ruby
charles81 has joined #ruby
kaspergrubbe has joined #ruby
parduse has quit [Killed (orwell.freenode.net (Nickname regained by services))]
cek has left #ruby [#ruby]
parduse has joined #ruby
decoponio has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
sigurding has joined #ruby
asmodlol has quit [Quit: Leaving]
jenrzzz has quit [Quit: leaving]
charliesome has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Client Quit]
jack_rabbit has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Client Quit]
tatsuo_ is now known as tatsuo
jenrzzz has joined #ruby
jenrzzz has quit [Client Quit]
heyimwill has quit [*.net *.split]
artmann has quit [*.net *.split]
Sammael has quit [*.net *.split]
tobiasvl has quit [*.net *.split]
ckrailo has quit [*.net *.split]
charles81 has quit [*.net *.split]
ewilliam has quit [*.net *.split]
ujjain has quit [*.net *.split]
incomprehensibly has quit [*.net *.split]
jeregrine has quit [*.net *.split]
einarj has joined #ruby
jdj_dk has joined #ruby
jenrzzz has joined #ruby
niklasb has quit [Ping timeout: 245 seconds]
theotherstupidgu has quit [Quit: leaving]
theotherstupidgu has joined #ruby
<theotherstupidgu> hi
heyimwill has joined #ruby
artmann has joined #ruby
Sammael has joined #ruby
ujjain has joined #ruby
tobiasvl has joined #ruby
ewilliam has joined #ruby
jeregrine has joined #ruby
ckrailo has joined #ruby
incomprehensibly has joined #ruby
charles81 has joined #ruby
Xeago_ has joined #ruby
ruby-lang106 has joined #ruby
<ruby-lang106> hi
jhass|off is now known as jhass
ruby-lang106 has quit [Client Quit]
ruby041 has joined #ruby
<ruby041> hi
Mia has quit [Read error: Connection reset by peer]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has quit [Quit: leaving]
Xeago has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Client Quit]
ayaz has joined #ruby
jimbach has joined #ruby
poulet_a_ has joined #ruby
ruby041 has quit [Ping timeout: 246 seconds]
poulet_a_ has quit [Client Quit]
jenrzzz has joined #ruby
kristofferR has joined #ruby
ixti has joined #ruby
lolmaus has joined #ruby
jenrzzz has quit [Client Quit]
nonks has quit [Read error: Connection reset by peer]
niklasb has joined #ruby
cherwin_ has joined #ruby
yfeldblum has joined #ruby
dumdedum has quit [Quit: foo]
livathinos has joined #ruby
jimbach has quit [Ping timeout: 244 seconds]
joonty has joined #ruby
heyimwill has quit [*.net *.split]
artmann has quit [*.net *.split]
Sammael has quit [*.net *.split]
tobiasvl has quit [*.net *.split]
ckrailo has quit [*.net *.split]
charles81 has quit [*.net *.split]
ewilliam has quit [*.net *.split]
ujjain has quit [*.net *.split]
incomprehensibly has quit [*.net *.split]
jeregrine has quit [*.net *.split]
jenrzzz has joined #ruby
olivier_bK has joined #ruby
Scotteh has quit [Ping timeout: 246 seconds]
bluenemo has joined #ruby
Aaaal has joined #ruby
asmodlol has joined #ruby
bluenemo has quit [Remote host closed the connection]
Spami has joined #ruby
elaptic`` is now known as elaptics
Hytosys has quit [Ping timeout: 260 seconds]
SilkFox has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hobogrammer_ has quit [Ping timeout: 265 seconds]
tatsuo has quit []
deepy has quit [Ping timeout: 244 seconds]
jdj_dk has quit [Ping timeout: 244 seconds]
niklasb has quit [Ping timeout: 255 seconds]
SilkFox has quit [Ping timeout: 265 seconds]
dangerousdave has joined #ruby
mr_foobar_baz has joined #ruby
thsig has quit [Remote host closed the connection]
WormDrink has joined #ruby
yfeldblum has quit [Remote host closed the connection]
thsig has joined #ruby
mr_foobar_baz has quit [Client Quit]
mr_foobar_baz has joined #ruby
yfeldblum has joined #ruby
realDAB has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
Wolland has joined #ruby
keen___ has joined #ruby
bMalum has joined #ruby
realDAB has quit [Ping timeout: 258 seconds]
keen__ has quit [Ping timeout: 258 seconds]
FooMunki has joined #ruby
sevenseacat has quit [Remote host closed the connection]
Macaveli has joined #ruby
Pupeno has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
thsig_ has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
Wolland has quit [Ping timeout: 265 seconds]
jacobat has quit [Ping timeout: 244 seconds]
luckyruby has quit [Quit: Leaving...]
FooMunki has quit [Ping timeout: 244 seconds]
thsig has quit [Ping timeout: 244 seconds]
terlar has joined #ruby
AmBienCeD has joined #ruby
AmBienCeD has joined #ruby
AmBienCeD has quit [Changing host]
coderhs has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
Dude007 has joined #ruby
jacobat has joined #ruby
carraroj has joined #ruby
jdj_dk has joined #ruby
workmad3_ has joined #ruby
AlexRussia has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
workmad3_ is now known as workmad3
bayed has joined #ruby
thisguy123 has joined #ruby
mr_foobar_baz has quit [Quit: WeeChat 1.0.1]
echooo has joined #ruby
mr_foobar_baz has joined #ruby
rdark has joined #ruby
koderok has joined #ruby
koderok has quit [Client Quit]
gyre007_ has joined #ruby
jenrzzz has quit [Quit: leaving]
alem0lars has joined #ruby
jenrzzz has joined #ruby
thisguy123 has quit [Ping timeout: 272 seconds]
mengu has quit [Remote host closed the connection]
catphish has joined #ruby
Dude007 has quit [Read error: Connection reset by peer]
Dude007_ has joined #ruby
robbyoconnor has joined #ruby
jacobat has quit [Ping timeout: 265 seconds]
dawkirst has joined #ruby
deepy has joined #ruby
deepy is now known as Guest95612
niklasb has joined #ruby
Takle has quit [Remote host closed the connection]
FooMunki has joined #ruby
bMalum has quit [Quit: bMalum]
Timgauthier has joined #ruby
coderhs has joined #ruby
alem0lars has quit [Quit: Quit !]
alem0lars has joined #ruby
Snowstormer is now known as Allie
robbyoconnor has quit [Excess Flood]
<alem0lars> ping
Allie is now known as Snowstormer
postmodern has quit [Quit: Leaving]
<ddv> p0ng
Takle has joined #ruby
robbyoconnor has joined #ruby
baordog has quit [Ping timeout: 272 seconds]
bMalum has joined #ruby
jdj_dk has quit [Ping timeout: 250 seconds]
AndChat| has quit [Ping timeout: 265 seconds]
Darryl has joined #ruby
robbyoconnor has quit [Excess Flood]
Takle has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 265 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sepp2k has quit [Ping timeout: 245 seconds]
sepp2k_ has joined #ruby
mr_foobar_baz has quit [Remote host closed the connection]
dangerousdave has joined #ruby
tvl has joined #ruby
i_s has joined #ruby
nemesit|znc has joined #ruby
bMalum has quit [Quit: bMalum]
incomprehensibly has joined #ruby
charles81___ has joined #ruby
ckrailo has joined #ruby
ewilliam has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
mr_foobar_baz has joined #ruby
ujjain has joined #ruby
artmann has joined #ruby
charles81___ is now known as charles81
Takle has joined #ruby
jeregrine has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
SilkFox has joined #ruby
dumdedum has joined #ruby
heyimwill has joined #ruby
tonini has quit [Ping timeout: 250 seconds]
ujjain has quit [Changing host]
ujjain has joined #ruby
i_s has quit [Ping timeout: 260 seconds]
tvw has joined #ruby
sigurding has quit [Quit: sigurding]
SilkFox has quit [Ping timeout: 244 seconds]
ARCADIVS has quit [Quit: ARCADIVS]
robbyoconnor has joined #ruby
tvl is now known as tobiasvl
mike32 has joined #ruby
rodfersou has joined #ruby
shortCircuit__ has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
atomi has quit [Ping timeout: 260 seconds]
mr_foobar_baz has quit [Quit: WeeChat 1.0.1]
coderhs has joined #ruby
jenrzzz has joined #ruby
mr_foobar_baz has joined #ruby
kamil has quit [Quit: Leaving...]
Wolland has joined #ruby
AmBienCeD has quit [Ping timeout: 244 seconds]
AmBienCeD has joined #ruby
TPBallbag has joined #ruby
Wolland has quit [Ping timeout: 244 seconds]
jdj_dk has joined #ruby
mr_foobar_baz has quit [Quit: WeeChat 1.0.1]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
echooo1 has joined #ruby
echooo has quit [Ping timeout: 250 seconds]
<brushdemon> ping
hellangel7 has joined #ruby
coderhs has quit [Ping timeout: 255 seconds]
dr_tobog1an is now known as dr_toboggan
sigurding has joined #ruby
Timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
Takle has quit [Remote host closed the connection]
<wasamasa> pong
Timgauthier has joined #ruby
<toretore> Request timeout for icmp_seq 0
Takle has joined #ruby
narph has joined #ruby
jimbach has joined #ruby
jacobat has joined #ruby
User458764 has quit [Ping timeout: 255 seconds]
tkuchiki has quit [Remote host closed the connection]
allsystemsarego has joined #ruby
tkuchiki has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
fabrice31 has quit [Remote host closed the connection]
niklasb has quit [Ping timeout: 244 seconds]
jdj_dk has quit [Ping timeout: 260 seconds]
jimbach has quit [Ping timeout: 265 seconds]
fabrice31 has joined #ruby
<allsystemsarego> hi all, what is the most Ruby-idiomatic way of building a hash from this list of key-value pairs? [["cf62a3", "http://stackoverflow.com/"], ["af6de7", "https://www.facebook.com/"], ["e4053f", "https://twitter.com/"]]
popl has left #ruby [#ruby]
<workmad3> allsystemsarego: Hash[]
<apeiros> allsystemsarego: .to_h
<apeiros> (2.1+ only, else what workmad3 said)
atomi has joined #ruby
<allsystemsarego> excellent, let me try, thanks
reprazent is now known as Guest51196
tkuchiki has quit [Ping timeout: 265 seconds]
charliesome has quit [Read error: Connection reset by peer]
boombadaroomba has joined #ruby
<allsystemsarego> workmad3, apeiros, here's what I tried: http://codepad.org/juvbR96W
<apeiros> allsystemsarego: one [] too few
doodlehaus has joined #ruby
<allsystemsarego> oh I see
reinaldob has joined #ruby
<apeiros> Hash[[["key", "value"], …]]
<apeiros> outmost [] is the method
<apeiros> middle is your outer array
<apeiros> inner is your key/value pair array
<workmad3> or Hash["key", "value", ...]
Timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
definity1 has joined #ruby
Timgauthier has joined #ruby
<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?
<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
boombadaroomba has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
<workmad3> allsystemsarego: that is what you want... it's just that you needed to wrap them in a further []
<allsystemsarego> so I have to flatten first, I guess
<allsystemsarego> workmad3, I did, hee's the new codepad: http://codepad.org/c3bnjvOF
<allsystemsarego> *here's
tokik has quit [Ping timeout: 246 seconds]
<workmad3> allsystemsarego: odd... that works fine on my system
tonini has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<workmad3> allsystemsarego: of course, with codepad you need to be careful... it runs ruby 1.8.6
<allsystemsarego> ok, thanks, I'll leave it at that
agent_white has quit [Quit: be back in a few weeks]
<allsystemsarego> oh ok, that's good to know then
last_staff has quit [Quit: last_staff]
<apeiros> definity1: what is a "classic static var"?
last_staff has joined #ruby
carraroj has joined #ruby
jacobat has quit [Ping timeout: 250 seconds]
dangerousdave has joined #ruby
livathinos has quit [Ping timeout: 250 seconds]
<apeiros> definity1: also, why's the type of variable relevant?
cmckee has quit [Quit: cmckee]
<mike32> hi, i run some in Parallel and get error "sqlite db is locked" what do u recommend t oavoid error
<mike32> run some code
spastorino has joined #ruby
<mike32> seems need lock where i add records into table
<definity1> I dont know what a classic static var is
<apeiros> definity1: uh? "definity1: What the ebst wy to print a class static var?" <-- how come you ask about it then?
fabrice31 has quit [Remote host closed the connection]
<apeiros> s/classic/class/
fabrice31 has joined #ruby
<definity1> class static var not a classic static var
<definity1> static varible that belong to the class
<definity1> a class varible
kamil has joined #ruby
fabrice31 has quit [Remote host closed the connection]
ldnunes has joined #ruby
<definity1> rather than an instance varible
renderful has joined #ruby
<apeiros> definity1: so an @@variable?
<definity1> yeah
<apeiros> ok. those are called "class variable". not static.
<tobiasvl> don't use @@variables
<apeiros> ^ +1
<workmad3> apeiros: he did call them 'class static' at least :P
<definity1> What should i use?
<apeiros> but anyway, back to the second question - why do you think the type of variable to print matters?
<definity1> becuase.. Good point
<apeiros> definity1: generally people who use @@class_vars should use @instance_vars at the class level.
<tobiasvl> definity1: you should use @variables (remember that classes are objects too)
SilkFox has joined #ruby
livathinos has joined #ruby
<apeiros> >> class X; @y = "value"; def self.y; @y; end; end; X.y
<definity1> hmm intresting
<eval-in__> apeiros => "value" (https://eval.in/209392)
<definity1> I got plenty more question but i have class, thanks for the help! :) take it easy bye
yeticry has quit [Ping timeout: 240 seconds]
<tobiasvl> enjoy Class
renderful has quit [Ping timeout: 258 seconds]
yeticry has joined #ruby
SilkFox has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
jdj_dk has joined #ruby
Takle has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
Takle has joined #ruby
oo_ has joined #ruby
livathinos has quit [Remote host closed the connection]
fsapo has joined #ruby
livathinos has joined #ruby
Wolland has joined #ruby
grzywacz has joined #ruby
oo__ has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
timonv^ has quit [Remote host closed the connection]
bMalum has joined #ruby
cocotton has joined #ruby
andikr has quit [Remote host closed the connection]
<shevy> what a pun!
cocotton has quit [Remote host closed the connection]
<shevy> no Class, no Style
Soda has joined #ruby
Wolland has quit [Ping timeout: 246 seconds]
oo__ has quit [Remote host closed the connection]
<tobiasvl> hehe, I spent some seconds parsing his message because we had just been talking about class vars
shelling_ has quit [Quit: Connection closed for inactivity]
oo_ has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
kl has joined #ruby
<kl> hey guys
<kl> what's the best ruby version switcher? :)
phutchins has joined #ruby
<cHarNe2> hi guys, anyone use sinatra? how can i keep a varible through an entire request?
<cHarNe2> only way is to use a global variable? or can i do it in some other way?
oo_ has quit [Ping timeout: 250 seconds]
Photism has joined #ruby
<cHarNe2> i wanna get the password from Rack::Auth::Basic and use it later on
<allsystemsarego> cHarNe2, use sessions?
<kl> tobiasvl: I'm torn between that an RVM - I know little about either
<kl> oh, it compares!
cocotton has quit [Client Quit]
<tobiasvl> hehe, yeah, I figured you knew about RVM
<cHarNe2> allsystemsarego: ok, ill check that
<tobiasvl> RVM is solid too of course. widely used
<workmad3> cHarNe2: also, you should be able to add it to the rack environment for the request
<workmad3> cHarNe2: rather than store it in a (potentially visible) session
cocotton has joined #ruby
<kl> workmad3: is correct, but I question your need to effectively have a global variable
<cHarNe2> workmad3: ok, i though @env was readonly, that might be a good way
<kl> accidental colon
<kl> :)
dawkirst has quit [Quit: Leaving...]
shemerey has joined #ruby
jdj_dk has quit [Ping timeout: 255 seconds]
peta_ has joined #ruby
ruisanto1 is now known as ruisantos
jacobat has joined #ruby
Takle has quit [Remote host closed the connection]
livathinos has quit [Remote host closed the connection]
cmxu has joined #ruby
cmxu has quit [Client Quit]
jacobat has quit [Ping timeout: 260 seconds]
cmxu has joined #ruby
Guest95612 has quit [Changing host]
Guest95612 has joined #ruby
Guest95612 is now known as deepy
thsig_ has quit [Remote host closed the connection]
livathinos has joined #ruby
thsig has joined #ruby
timonv_ has joined #ruby
kedare has joined #ruby
livathinos has quit [Remote host closed the connection]
kedare has quit [Client Quit]
kedare has joined #ruby
livathinos has joined #ruby
mikecmpb_ is now known as mikecmpbll
robbyoconnor has quit [Quit: Konversation terminated!]
abuzze_ has joined #ruby
rbrs has joined #ruby
abuzze has quit [Ping timeout: 246 seconds]
Dude007_ has quit [Remote host closed the connection]
shemerey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kl> cHarNe2: how comes you're not just passing that variable down as a method parameter?
LoBoGoL has quit [Ping timeout: 265 seconds]
i_s has joined #ruby
<cHarNe2> kl: good Q, i can get the password-value out from Rack::Auth::Basic without a global variable it seems
<cHarNe2> and i dont know where to find in then i get to the route
abuzze_ has quit [Read error: Connection reset by peer]
abuzze has joined #ruby
<kl> cHarNe2: a global variable is never the answer
<cHarNe2> i just tried to add the password to @env in Rack::Auth::Basic, but @env does not seem to be there
<kl> think globally, act locally
<cHarNe2> kl: yep, that is why im here ;)
<tobiasvl> cHarNe2: how did you add it? you might need an attr_accessor
doodlehaus has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
abuzze has quit [Read error: Connection reset by peer]
<workmad3> cHarNe2: it isn't @env, I believe
abuzze has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<workmad3> cHarNe2: the rack environment is passed into .call in a rack middleware... I believe you can add stuff to it
i_s has quit [Ping timeout: 255 seconds]
jacobat has joined #ruby
<cHarNe2> i hoped this would work: http://pastie.org/9670012
cmxu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toretore has quit [Ping timeout: 245 seconds]
<cHarNe2> im not aurhing rigt now, just faking true
<workmad3> cHarNe2: err... no
<cHarNe2> workmad3: ok, will check that
<workmad3> cHarNe2: that block is the configuration for the middleware, not a way to insert stuff into the processing of a request
matchaw has joined #ruby
<cHarNe2> workmad3: hmm, ok i understand
jdj_dk has joined #ruby
timonv_ has joined #ruby
xymbol has quit [Quit: Be back later ...]
<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
<workmad3> cHarNe2: that said... the basic auth component is just using the env to obtain that information anyway
xymbol has joined #ruby
<cHarNe2> workmad3: ok, but where in the env is the password stored?
<cHarNe2> have i just missed it?
cmxu has joined #ruby
Deejay_ has joined #ruby
ghr has joined #ruby
LoBoGoL has joined #ruby
<workmad3> cHarNe2: seems that it should be in one of these env variables: https://github.com/rack/rack/blob/master/lib/rack/auth/abstract/request.rb#L34
<workmad3> cHarNe2: and the basic request grabs the un/pw with this line: https://github.com/rack/rack/blob/master/lib/rack/auth/abstract/request.rb#L34
<cHarNe2> great!, ill dig deeper
thsig_ has joined #ruby
<workmad3> cHarNe2: tbh though, you could just do 'Rack::Auth::Basic::Request.new(rack_env).credentials' from the looks of things
<workmad3> cHarNe2: rather than re-implementing the code
<workmad3> cHarNe2: that would, I believe, give you [un, pw] back
<cHarNe2> ok, will do some more reading on this now. ill get back later :) ty very much
xymbol has quit [Ping timeout: 272 seconds]
Sammael has joined #ruby
cocotton has quit [Remote host closed the connection]
SilkFox has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
thsig has quit [Ping timeout: 245 seconds]
cocotton has joined #ruby
qmfnp_zzz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has joined #ruby
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
bauruine_ has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
Timgauthier is now known as timgauthier_away
timgauthier_away is now known as Timgauthier
Xeago has quit [Remote host closed the connection]
Timgauthier is now known as timgauthier_away
timgauthier_away is now known as Timgauthier
matchaw has quit [Ping timeout: 255 seconds]
SilkFox has quit [Ping timeout: 265 seconds]
dangerousdave has joined #ruby
Xeago has joined #ruby
doodlehaus has joined #ruby
siwica has joined #ruby
jhwhite has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
Xeago_ has quit [Ping timeout: 245 seconds]
jacobat_ has joined #ruby
Xeago has quit [Remote host closed the connection]
ghr has quit [Read error: Connection reset by peer]
St_Marx has quit [Write error: Connection reset by peer]
DrCode has quit [Write error: Connection reset by peer]
atmosx has quit [Write error: Connection reset by peer]
end_guy has quit [Write error: Connection reset by peer]
otakbeku has joined #ruby
nateberkopec has joined #ruby
joonty has quit [Quit: Leaving]
Wolland has joined #ruby
jacobat has quit [Ping timeout: 244 seconds]
carraroj has quit [Ping timeout: 246 seconds]
HelperW has left #ruby ["(null)"]
roolo has joined #ruby
jenrzzz has joined #ruby
St_Marx has joined #ruby
DrCode has joined #ruby
chipotle has joined #ruby
atmosx has joined #ruby
Wolland has quit [Ping timeout: 255 seconds]
jdj_dk has quit [Ping timeout: 250 seconds]
doodlehaus has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
davidhq has joined #ruby
ghr has joined #ruby
jasooon has joined #ruby
fabrice31 has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
otakbeku has quit [Quit: leaving]
byprdct has joined #ruby
chipotle has quit [Ping timeout: 272 seconds]
Takle has joined #ruby
abuzze has quit [Ping timeout: 256 seconds]
jimbach has joined #ruby
gyre007_ has quit [Remote host closed the connection]
chipotle has joined #ruby
ghr has quit [Read error: Connection reset by peer]
AlSquire has joined #ruby
jimbach has quit [Ping timeout: 265 seconds]
niklasb has joined #ruby
end_guy has joined #ruby
benzrf|offline is now known as benzrf
jacobat_ has quit [Ping timeout: 240 seconds]
mengu has quit [Ping timeout: 265 seconds]
abuzze has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
Dude007 has joined #ruby
abuzze_ has joined #ruby
pedromoreira has joined #ruby
abuzze has quit [Ping timeout: 246 seconds]
paulfm has joined #ruby
jacobat has joined #ruby
jasooon has quit [Ping timeout: 245 seconds]
cmxu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
rylev has joined #ruby
Trynemjoel2 has quit [Ping timeout: 265 seconds]
pedromoreira has left #ruby ["WeeChat 1.0"]
abuzze_ has quit [Ping timeout: 272 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roolo has quit [Remote host closed the connection]
Deejay_ has quit [Quit: Computer has gone to sleep.]
roolo has joined #ruby
abuzze has joined #ruby
P-NuT has joined #ruby
qmfnp has joined #ruby
<P-NuT> Can anyone explain to me how to append my results inside a block to a variable outside it?
jdj_dk has joined #ruby
roolo has quit [Read error: Connection reset by peer]
Deejay_ has joined #ruby
<apeiros> P-NuT: what did you try? (gist.github.com)
roolo has joined #ruby
Fire-Dragon-DoL has joined #ruby
byprdct_ has joined #ruby
<shevy> P-NuT the variable must already exist when you append to it, outside of the block before
cmxu has joined #ruby
<hanmac1> shevy look i have travis builds for rwx ;P https://travis-ci.org/Hanmac/rwx
BaNzounet has joined #ruby
chipotle has quit [Quit: cya]
jottr has quit [Ping timeout: 260 seconds]
byprdct has quit [Ping timeout: 250 seconds]
<shevy> it's all spread out on 10 different pages! ;P
<BaNzounet> Hey, is it possible to parse a string like { 'test': '12', 'test2': '23' } directly into a hash?
<apeiros> BaNzounet: gem install literal_parser; LiteralParser.parse("{ 'test': '12', 'test2': '23' }")
<apeiros> BaNzounet: but let me ask you why you want to do that
TPBallbag has quit [Remote host closed the connection]
jottr has joined #ruby
shemerey has joined #ruby
<apeiros> oh, wait, that's not actually valid ruby syntax, so literal_parser won't help you
P-NuT has quit []
<BaNzounet> I'm parsing a configuration file
<BaNzounet> And I want to rebuild an hash form that
abuzze has quit [Remote host closed the connection]
<apeiros> you invented your own format for it?
<BaNzounet> not really
abuzze has joined #ruby
<apeiros> is it a yaml file?
<BaNzounet> yep,
* apeiros rolls eye
<BaNzounet> but I use ansible to generate it
yfeldblum has quit [Remote host closed the connection]
<apeiros> require 'yaml'; YAML.load_file(path) or YAML.load(string)
niklasb has quit [Ping timeout: 265 seconds]
ghr has quit [Read error: Connection reset by peer]
<shevy> lol
<shevy> he tricked apeiros
joonty has joined #ruby
last_staff has quit [Quit: last_staff]
<shevy> it was a yaml file all the way!
<apeiros> no. he failed asking a proper question. if you know the format, that's the first thing you say.
<BaNzounet> It's a bit more complicated that that :D
livingstn has joined #ruby
<shevy> BaNzounet the syntax is not valid ruby though
<BaNzounet> Do you know fluentd?
Xeago has joined #ruby
abuzze has quit [Ping timeout: 244 seconds]
<shevy> if it is a string, you should state so, like: string = "{ 'test': '12', 'test2': '23' }"
<apeiros> shevy: it's valid yaml
elaptics is now known as elaptics`away
<shevy> cool
<shevy> yaml replaces the : with =>
elaptics`away is now known as elaptics
bauruine_ has joined #ruby
Xeago has quit [Remote host closed the connection]
Jackneill has joined #ruby
mosez has quit [Ping timeout: 250 seconds]
mosez has joined #ruby
yeticry has quit [Ping timeout: 250 seconds]
SilkFox has joined #ruby
Deejay_ has quit [Quit: Computer has gone to sleep.]
mengu has quit [Remote host closed the connection]
<Fire-Dragon-DoL> MH!
wookiehangover has quit [Ping timeout: 255 seconds]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
<Fire-Dragon-DoL> I just noticed in ruby 2.x you can now write `private def mymethod; end` to make it private
<Fire-Dragon-DoL> and it will make only that one private
Xeago has joined #ruby
yeticry has joined #ruby
<apeiros> 2.1+, not 2.x
<Fire-Dragon-DoL> apeiros: thanks
<Fire-Dragon-DoL> but that's really nice
<apeiros> yes
<shevy> it must be on the same line?
agrinb has joined #ruby
<apeiros> shevy: that or parens
<shevy> hmm
<Fire-Dragon-DoL> mhhh if you write it on a different line
<Fire-Dragon-DoL> I think it will make everything private under that
<apeiros> correct
sambao21 has joined #ruby
<Fire-Dragon-DoL> so if you want a single method, must be on the same line as def
abuzze has joined #ruby
jerius has joined #ruby
SilkFox has quit [Ping timeout: 240 seconds]
<apeiros> or parens. as said :-)
allcentury has joined #ruby
cocotton has quit [Remote host closed the connection]
zz_jrhorn424 is now known as jrhorn424
jdj_dk has quit [Ping timeout: 245 seconds]
<Fire-Dragon-DoL> I'm not sure I know what "parens" mean
<Fire-Dragon-DoL> :S
<apeiros> parens are those () things
<Fire-Dragon-DoL> I know "parent", but not parens, lol
<Fire-Dragon-DoL> ah BRACKETS ! :P
kl has quit [Ping timeout: 244 seconds]
<apeiros> private(\ndef foo; end)
<apeiros> no
<apeiros> [] are brackets
<tobiasvl> parens are short for parentheses
<Fire-Dragon-DoL> oh, I thought they were all type of brackets
<apeiros> and {} are curly braces
<tobiasvl> parentheses are called brackets in the UK for example
<Fire-Dragon-DoL> in my language is roughly: parenthesis, squared parenthesis, curly parenthesis
<tobiasvl> yeah mine too
<Fire-Dragon-DoL> sorry, parentheses
abuzze has quit [Remote host closed the connection]
csmrfx_ is now known as csmrfx
abuzze has joined #ruby
<Fire-Dragon-DoL> so basically
<Fire-Dragon-DoL> everyone call them as they want
<Fire-Dragon-DoL> lol
<mostlybadfly> Buenos días
abuzze has quit [Read error: Connection reset by peer]
<Fire-Dragon-DoL> mostlybadfly: welcome ! ^^
baordog has joined #ruby
<Fire-Dragon-DoL> so from now on
<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?
<mostlybadfly> Thanks!
abuzze has joined #ruby
wookiehangover has joined #ruby
<Fire-Dragon-DoL> flower brackets! lol
TPBallbag has joined #ruby
fgo has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<mostlybadfly> Is that curly brackets? Lol
<ddv> curly braces bitches
<Fire-Dragon-DoL> lolmaus: public_send(:"name_#{ locale }")
<Fire-Dragon-DoL> lolmaus: if method is private, use send
<mostlybadfly> I call them the squiggly things
Wolland has joined #ruby
sevenseacat has joined #ruby
cocotton has joined #ruby
<Fire-Dragon-DoL> lol
<lolmaus> Fire-Dragon-DoL: thx
tonybird has joined #ruby
<hanmac1> apeiros & shevy https://travis-ci.org/Hanmac/rwx i tryed to add
<hanmac1> travis to my stuff ;P
dblessing has joined #ruby
<mostlybadfly> We should make up cute and whimsical names for these things
cmxu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mostlybadfly> Hashrocket sounds too aggressive lol
<Fire-Dragon-DoL> hashrocket
<Fire-Dragon-DoL> ahahha
<Fire-Dragon-DoL> the SPACESHIP OPERATOR
<Fire-Dragon-DoL> who really came up with that name, I laughed so much
<Fire-Dragon-DoL> lol
<mostlybadfly> It should be hashsmiley :>
jrhorn424 is now known as zz_jrhorn424
<Fire-Dragon-DoL> => rocketpenis maybe?
<Fire-Dragon-DoL> lol
<mostlybadfly> Too distracting :D
<Fire-Dragon-DoL> at least people will remember that
<Fire-Dragon-DoL> lol
<mostlybadfly> Yeah or simply the penis
<mostlybadfly> Are you using proper penis syntax?
<Fire-Dragon-DoL> ahahahahaha
jenrzzz has joined #ruby
tadayoshi has joined #ruby
<ddv> kids....
nateberkopec has joined #ruby
zz_jrhorn424 is now known as jrhorn424
mengu has joined #ruby
sailias has joined #ruby
<mostlybadfly> Where? :)
Wolland has quit [Ping timeout: 265 seconds]
tier has joined #ruby
pushpak has joined #ruby
jimbach has joined #ruby
<Fire-Dragon-DoL> maybe he means he has kids reading chat :O
<Fire-Dragon-DoL> :P
* mostlybadfly NP: Janet Jackson: When I Think of You
<mostlybadfly> My jam
<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 °°
<Fire-Dragon-DoL> boosting*
abuzze_ has joined #ruby
<mostlybadfly> I heard it was food
<mostlybadfly> Good haha
<mostlybadfly> Prob should eat breakfast
echooo1 has quit [Remote host closed the connection]
<Fire-Dragon-DoL> lol
jimbach has quit [Remote host closed the connection]
gauke has quit [Quit: gauke]
echooo has joined #ruby
startupality has joined #ruby
jimbach has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
gyre007_ has joined #ruby
cocotton has quit [Remote host closed the connection]
roolo has quit [Remote host closed the connection]
Timgauthier is now known as timgauthier_away
jrhorn424 is now known as zz_jrhorn424
roolo has joined #ruby
thsig_ has quit [Remote host closed the connection]
abuzze has quit [Ping timeout: 246 seconds]
zz_jrhorn424 is now known as jrhorn424
obscured has joined #ruby
tesaf has joined #ruby
terlar has quit [Ping timeout: 240 seconds]
echooo has quit [Ping timeout: 272 seconds]
fabrice31 has quit [Remote host closed the connection]
drkyro has joined #ruby
shemerey has quit [Quit: Textual IRC Client: www.textualapp.com]
thsig has joined #ruby
hanmac1 has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
echooo has joined #ruby
doodlehaus has joined #ruby
tonini has quit [Ping timeout: 250 seconds]
frakkia has joined #ruby
xymbol has joined #ruby
frakkia has quit [Client Quit]
hanmac1 has joined #ruby
jrhorn424 is now known as zz_jrhorn424
BTRE has quit [Ping timeout: 265 seconds]
beef-wellington has joined #ruby
cocotton has joined #ruby
foredoomed has joined #ruby
foredoomed has quit [Remote host closed the connection]
georgesmith has joined #ruby
zz_jrhorn424 is now known as jrhorn424
BTRE has joined #ruby
willywos has joined #ruby
<hanmac1> mostlybadfly & Fire-Dragon-DoL : in ruby < 2.0 there was a method named "spermy_recommendation" for turning "1.2.3" into "~> 1.2"
<Fire-Dragon-DoL> hanmac1: what the... lol
rossgeesman has joined #ruby
<mostlybadfly> Lol nice
<Fire-Dragon-DoL> spermy recommendation, that's fantastic
<hanmac1> 19>> Gem::Version.new("1.2.3").methods.grep(/recommendation/)
<eval-in__> hanmac1 => [:spermy_recommendation] (https://eval.in/209490)
<hanmac1> >> Gem::Version.new("1.2.3").methods.grep(/recommendation/)
<eval-in__> hanmac1 => [:approximate_recommendation] (https://eval.in/209491)
<Fire-Dragon-DoL> how sad, I preferred the spermy version
<Fire-Dragon-DoL> :P
timgauthier_away is now known as Timgauthier
rkalfane has joined #ruby
alex88 has quit [Read error: Connection reset by peer]
alex88 has joined #ruby
jdj_dk has joined #ruby
deavid has quit [Ping timeout: 246 seconds]
Channel6 has joined #ruby
jasooon has joined #ruby
oleo has joined #ruby
i_s has joined #ruby
rossgeesman has quit [Ping timeout: 265 seconds]
akemrir has joined #ruby
Timgauthier has quit [Remote host closed the connection]
Timgauthier has joined #ruby
gauke has joined #ruby
<hanmac1> shevy!!! my travis build are passing for rwx ;P
kl has joined #ruby
allcentu1 has joined #ruby
railis is now known as Guest12321321
Timgauthier has quit [Client Quit]
Guest12321321 is now known as Guest12321
chipotle has joined #ruby
Timgauthier has joined #ruby
fabrice31 has quit [Remote host closed the connection]
jasooon has quit [Ping timeout: 258 seconds]
i_s has quit [Ping timeout: 255 seconds]
allcentury has quit [Ping timeout: 244 seconds]
tier_ has joined #ruby
ghr has joined #ruby
georgesmith has quit [Quit: georgesmith]
tier has quit [Ping timeout: 244 seconds]
jobewan has quit [Quit: Leaving]
tier_ has quit [Remote host closed the connection]
dANO_ has joined #ruby
thsig has quit [Remote host closed the connection]
tier has joined #ruby
n1ftyn8_ is now known as n1ftyn8
deavid has joined #ruby
starkhallo has joined #ruby
iamjarvo has joined #ruby
Xeago has quit [Remote host closed the connection]
thsig has joined #ruby
kl has quit [Quit: leaving]
snath has quit [Ping timeout: 244 seconds]
Timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
iamjarvo has quit [Client Quit]
timonv_ has quit [Remote host closed the connection]
Timgauthier has joined #ruby
mary5030 has joined #ruby
cocotton has quit [Remote host closed the connection]
tonini has joined #ruby
jerius has quit []
Xeago has joined #ruby
Channel6 has quit [Quit: Leaving]
cocotton has joined #ruby
EasyCo has quit [Quit: Connection closed for inactivity]
andikr has joined #ruby
jdj_dk has quit [Ping timeout: 256 seconds]
jerius has joined #ruby
User458764 has joined #ruby
fsapo has quit [Remote host closed the connection]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
kaspergrubbe has quit [Read error: No route to host]
kaspergrubbe has joined #ruby
Xeago has quit [Remote host closed the connection]
linojon has joined #ruby
djstorm has joined #ruby
Liendre has joined #ruby
<Liendre> hi
kaspergrubbe_ has joined #ruby
agrinb has quit [Remote host closed the connection]
Xeago has joined #ruby
cocotton has quit [Remote host closed the connection]
SilkFox has joined #ruby
camilasan has joined #ruby
banister_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
dangerousdave has joined #ruby
cocotton has joined #ruby
kaspergrubbe has quit [Ping timeout: 265 seconds]
sk87 has joined #ruby
kaspergrubbe has joined #ruby
kaspergrubbe_ has quit [Read error: No route to host]
camilasann has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: zzz]
cocotton has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
enebo has joined #ruby
SilkFox has quit [Ping timeout: 240 seconds]
sigurding has quit [Quit: sigurding]
timonv_ has joined #ruby
sigurding has joined #ruby
Takle has quit [Read error: Connection reset by peer]
kaspergrubbe_ has joined #ruby
Takle_ has joined #ruby
startupality has quit [Quit: startupality]
startupality has joined #ruby
matchaw has joined #ruby
davidsong has joined #ruby
abuzze_ has quit [Remote host closed the connection]
abuzze has joined #ruby
Wolland has joined #ruby
Kricir has joined #ruby
fabrice31 has joined #ruby
kaspergrubbe has quit [Ping timeout: 265 seconds]
roolo has quit [Remote host closed the connection]
gzl has quit [Quit: .]
devdazed has joined #ruby
<davidsong> Hi, I'd like some advice on the most reasonable way to refactor this few lines of code: https://gist.github.com/bitplane/240127115f5c3fef97b7
tadayoshi has quit []
lnong has quit [Excess Flood]
roolo has joined #ruby
startupality has quit [Ping timeout: 255 seconds]
<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
<apeiros> davidsong: parametrize file and model. use CSV.foreach
mengu has quit []
theother1tupidgu has joined #ruby
<apeiros> rails has stuff for inflections (ruby itself does not)
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<davidsong> what if I renamed the csv files to be the singular class name?
pushpak has quit [Quit: Linkinus - http://linkinus.com]
dangerousdave has joined #ruby
<davidsong> is there a way to get the class from a string?
<apeiros> personally I'd still prefer explicit parametrization of both instead of inferring
<apeiros> you can't get a *class* from a string, but you can get a constant. and since classes are usually referenced by constants…
<apeiros> see Module#const_get. toplevel namespace is Object.
<davidsong> thanks
Guest37110 has joined #ruby
Wolland has quit [Ping timeout: 265 seconds]
Takle_ has quit [Remote host closed the connection]
IceDragon has joined #ruby
theother1tupidgu has quit [Client Quit]
terlar has joined #ruby
jdj_dk has joined #ruby
theother1tupidgu has joined #ruby
<davidsong> okay so Object.const_get('ClassName').create!(stuff...)
<davidsong> ?
<shevy> I hate the ! there
awarner has quit [Remote host closed the connection]
<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
<davidsong> I'm just pumping a seeds database full of mess and don't want validation to complain too much
<shevy> if it resides in a specific namespace, you may have to use the toplevel namespace of said object
badhatter_ has quit [Read error: Connection reset by peer]
awarner has joined #ruby
niklasb has joined #ruby
<davidsong> erm seeding my database with exports from the current system
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
jrhorn424 is now known as zz_jrhorn424
<DylanJ> camel case constants: yay or nay?
<DylanJ> (for a project with no established constant style of course)
<davidsong> I'd guess nay
<IceDragon> DylanJ: CamelCase
oo_ has joined #ruby
carraroj has joined #ruby
<catphish> DylanJ: i have only seen UPPER_CASE for constants, except where they're classes
<IceDragon> unless majority is mixed case o_e
<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'}
<IceDragon> yeah, what catphish said
<IceDragon> I misread it as class ;(
<apeiros> DylanJ, catphish: I only use CamelCase constants. no SCREAMING_CASE
sinkensabe has quit [Remote host closed the connection]
<catphish> nateberkopec: maybe this: hash.each{|k, v| hash[k] = v.to_s}
<DylanJ> I personally prefer CamelCase constants but I was just curious what others are using.
Takle has joined #ruby
<apeiros> nateberkopec: map + either to_h (ruby 2.1) or Hash[] (1.8.7+)
<DylanJ> catphish: don't modify something you're iterative over!
<catphish> nateberkopec: oh, you want to change the keys too
<DylanJ> iterating*
<catphish> DylanJ: why not change the values?
sk87 has joined #ruby
Timgauthier is now known as timgauthier_away
<catphish> anyway my answer isnt relevant
<DylanJ> sec
<hanmac1> >> {133 => 134, 134 => 135}.map{|args| args.map(&:to_s) }.to_h
<eval-in__> hanmac1 => {"133"=>"134", "134"=>"135"} (https://eval.in/209502)
zz_jrhorn424 is now known as jrhorn424
<catphish> hanmac1's answer is the best :)
roolo has quit [Ping timeout: 244 seconds]
<nateberkopec> thx!
kaspergrubbe has joined #ruby
kaspergrubbe_ has quit [Read error: Connection reset by peer]
jobewan has joined #ruby
abuzze_ has joined #ruby
rossgeesman has joined #ruby
beef-wellington has quit [Ping timeout: 244 seconds]
jrhorn424 is now known as zz_jrhorn424
linojon has quit [Quit: linojon]
Photism has quit [Quit: Leaving]
jenrzzz has joined #ruby
Xiti` has quit [Quit: Leaving]
niklasb has quit [Ping timeout: 256 seconds]
yekta has joined #ruby
Xiti has joined #ruby
abuzze has quit [Ping timeout: 244 seconds]
ta has quit [Remote host closed the connection]
cocotton has joined #ruby
msmith has joined #ruby
fabrice31 has quit [Remote host closed the connection]
iamjarvo has joined #ruby
spyderman4g63 has joined #ruby
jasooon has joined #ruby
hobodave has joined #ruby
niklasb has joined #ruby
mary5030 has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
linojon has joined #ruby
tier_ has joined #ruby
chipotle has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
hobodave has quit [Client Quit]
byprdct_ has quit []
tkuchiki has joined #ruby
oo_ has quit [Remote host closed the connection]
tier has quit [Ping timeout: 246 seconds]
oo_ has joined #ruby
rossgeesman has quit [Remote host closed the connection]
drkyro has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
MrSamuel has joined #ruby
<Emmanuel_Chanel> Hello! Can I code an IRC bot to connect 2 or more IRC servers by cinch?
hobodave has joined #ruby
rossgeesman has joined #ruby
treehug88 has joined #ruby
fabrice31 has joined #ruby
beef-wellington has joined #ruby
rossgeesman has quit [Remote host closed the connection]
renderful has joined #ruby
jdj_dk has quit [Ping timeout: 245 seconds]
tkuchiki has quit [Ping timeout: 255 seconds]
aclearman037 has quit [Quit: I'm out!]
chipotle has quit [Read error: Connection reset by peer]
tonini has quit [Ping timeout: 250 seconds]
chipotle_ has joined #ruby
failshell has joined #ruby
Guest3833 has joined #ruby
oo_ has quit [Ping timeout: 272 seconds]
fabrice31 has quit [Ping timeout: 240 seconds]
sleepee has joined #ruby
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
boombadaroomba has joined #ruby
bal has quit [Ping timeout: 245 seconds]
sleepee has quit [Max SendQ exceeded]
bal1 has joined #ruby
zz_jrhorn424 is now known as jrhorn424
byprdct has joined #ruby
aclearman037 has joined #ruby
AlexRussia has quit [Ping timeout: 272 seconds]
startupality has joined #ruby
sleepee has joined #ruby
carraroj has quit [Ping timeout: 260 seconds]
hanmac1 has quit [Quit: Leaving.]
tagrudev has quit [Remote host closed the connection]
kobain has joined #ruby
Xeago has joined #ruby
jottr has quit [Quit: WeeChat 1.0.1]
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
ducklobster has joined #ruby
kobain has quit [Max SendQ exceeded]
boombadaroomba has quit [Ping timeout: 244 seconds]
jacobat has quit [Ping timeout: 265 seconds]
sleepee has quit [Max SendQ exceeded]
jottr has joined #ruby
AlexRussia has joined #ruby
jenrzzz has joined #ruby
sleepee has joined #ruby
Kricir has quit [Remote host closed the connection]
Ankhers has joined #ruby
Kricir has joined #ruby
sleepee has quit [Max SendQ exceeded]
iceden has quit [Read error: Connection reset by peer]
tvw has quit []
roolo has joined #ruby
chipotle_ has quit [Quit: cya]
yekta has quit [Quit: yekta]
jrhorn424 is now known as zz_jrhorn424
bal1 has quit [Quit: bal1]
jshultz has joined #ruby
bal has joined #ruby
Kricir has quit [Ping timeout: 260 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
benzrf is now known as benzrf|offline
jenrzzz has quit [Ping timeout: 255 seconds]
<jhass> Emmanuel_Chanel: mmh, did you try just running multiple instances in the same process? (Thread.new { bot.start })
jasooon has quit [Ping timeout: 245 seconds]
thsig has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
abuzze has joined #ruby
yetanotherdave has joined #ruby
snath has joined #ruby
niklasb has quit [Ping timeout: 250 seconds]
kaspergrubbe has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
qmfnp has left #ruby ["Textual IRC Client: www.textualapp.com"]
nojb has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
startupality has quit [Quit: startupality]
banister has joined #ruby
bal has quit [Client Quit]
bal has joined #ruby
bal has quit [Client Quit]
abuzze_ has quit [Read error: Connection reset by peer]
rossgeesman has joined #ruby
rh1n0 has joined #ruby
Scotteh has joined #ruby
SilkFox has joined #ruby
rossgeesman has quit [Remote host closed the connection]
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
beef-wellington has quit [Ping timeout: 246 seconds]
sk87 has joined #ruby
techsethi has joined #ruby
emiemia has joined #ruby
hamakn has quit [Remote host closed the connection]
sevenseacat has quit [Remote host closed the connection]
<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.
sk87 has quit [Client Quit]
fgo has quit []
<Emmanuel_Chanel> jhass: Thank you for answering me!
peta_ has quit [Quit: peta_]
zz_jrhorn424 is now known as jrhorn424
beef-wellington has joined #ruby
greygrissom has joined #ruby
kobain has joined #ruby
terlar has quit [Ping timeout: 255 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
SilkFox has quit [Ping timeout: 265 seconds]
nojb has quit [Remote host closed the connection]
TPBallbag has quit [Remote host closed the connection]
<greygrissom> where are the coments
<greygrissom> oh i see
jdj_dk has joined #ruby
chipotle has joined #ruby
VanillaGoat_ has joined #ruby
mistermocha has joined #ruby
<jhass> ?
<greygrissom> does anyone has any advice on dns server problems with gem installs
a1ph4g33k has joined #ruby
nojb has joined #ruby
<greygrissom> is there a particular version that doesn't have to worry about Marshal -your-dns-needs-serious etc
niklasb has joined #ruby
<jhass> ah the dns needs attention thingy
<jhass> OS X right?
<greygrissom> indeed
<jhass> comcast?
{xenomorph} is now known as xenomorph
<greygrissom> fyi, i believe so
iceden has joined #ruby
fabrice31 has joined #ruby
<greygrissom> dns settings are 208.67.220.220 / 222.222 (oepn dns)
xenomorph is now known as {xenomorph}
<greygrissom> thanks
<jhass> or google for "dns needs attention comcast", tons of results by now
valeriansaliou has quit [Ping timeout: 256 seconds]
<jhass> interesting that it didn't bite you till now
sambao21 has joined #ruby
<jhass> the switch was like two months ago
VanillaGoat has quit [Ping timeout: 265 seconds]
tonini has joined #ruby
<greygrissom> thanks a ton
startupality has joined #ruby
endash has joined #ruby
techsethi has quit [Quit: techsethi]
niklasb has quit [Ping timeout: 255 seconds]
ylluminarious has joined #ruby
it0a has joined #ruby
a1ph4g33k has quit [Quit: Lost terminal]
P-NuT has joined #ruby
drkyro has joined #ruby
timonv_ has quit [Remote host closed the connection]
TPBallbag has joined #ruby
kp666 has quit [Quit: Konversation terminated!]
<P-NuT> Hey there, can anyone tell me how to convert the time "Thu Oct 23 15:04:18 2014" to epoch?
dangerousdave has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
<jhass> P-NuT: what exactly do you have. That string?
jeffwood has joined #ruby
<tercenya> p-nut: Time.parse('Thu Oct 23 15:04:18 2014').to_i
AlexRussia is now known as LexRussia
gauke has quit [Quit: gauke]
kotk_ has joined #ruby
<tercenya> also useful: Time.now.to_i
jeffwood has left #ruby [#ruby]
i_s has joined #ruby
jeffwood has joined #ruby
AlSquire has quit [Ping timeout: 255 seconds]
kotk has quit [Ping timeout: 265 seconds]
kireevco has joined #ruby
govg has quit [Remote host closed the connection]
jenrzzz has joined #ruby
Kricir has joined #ruby
i_s has quit [Ping timeout: 245 seconds]
maletor has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
monsieurp has quit [Quit: Lost terminal]
Kricir has joined #ruby
monsieurp has joined #ruby
monsieurp has quit [Changing host]
monsieurp has joined #ruby
jeffwood has left #ruby [#ruby]
GPH|work has joined #ruby
<olivier_bK> someone have a tutorial for upload a file with mechanize ?
nojb has quit [Quit: nojb]
Kricir has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
nojb has joined #ruby
bigkevmcd has quit [Ping timeout: 246 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
abuzze_ has joined #ruby
SolarSailor has joined #ruby
iamjarvo has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
livathinos has quit []
abuzze has quit [Ping timeout: 250 seconds]
unshadow has joined #ruby
thisguy123 has joined #ruby
testcore has joined #ruby
rippa has joined #ruby
<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"
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has joined #ruby
jdj_dk has quit [Ping timeout: 246 seconds]
niklasb has joined #ruby
<jhass> doesn't say it takes a hash
Rollabunna has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
<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 ?
hamakn has joined #ruby
<jhass> no
<jhass> you can't
awarner has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
<unshadow> oh.... so this is it then :\
yfeldblum has quit [Ping timeout: 255 seconds]
rkalfane has joined #ruby
Cheezebox has joined #ruby
Takle has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<unshadow> I read http://rubylearning.com/satishtalim/ruby_hashes.html, at "Using Symbols as Hash Keys" it show how you can do that, I presumed this was true for all cases, anyway thanks :)
greygrissom has quit []
monsieurp has quit [Quit: Lost terminal]
<jhass> I don't see where it says that
monsieurp has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
bigkevmcd has joined #ruby
<jhass> also the last statement is confusing
<jhass> not being able to use the colon syntax is the general case, the exception is for using symbol keys
thsig has joined #ruby
mattmcclure has joined #ruby
thisguy123 has quit [Quit: Lost terminal]
<unshadow> Sorry, (too late here) its was in here: http://www.smashingmagazine.com/2009/03/27/ultimate-beginners-guide-to-ruby-on-rails/ here is a pic of the sentence: http://screencloud.net/v/2K0i
kotk has joined #ruby
fsapo has joined #ruby
<workmad3> unshadow: that does point out that it's specifically rails...
<jhass> This is talking about ActiveRecord::Base subclasses
<workmad3> unshadow: ruby != rails
startupality has quit [Quit: startupality]
startupality has joined #ruby
renderful has quit [Remote host closed the connection]
<jhass> "on the model" is the key here
<unshadow> yeha... I figured as much, just thought it was some kind of a general truth, nevermind thou
<jhass> also avoid learning rails with 5 years old guides
<unshadow> XD true
<jhass> check the official docs at guides.rubyonrails.org
Takle has joined #ruby
doev has joined #ruby
kotk_ has quit [Ping timeout: 256 seconds]
byprdct has quit [Ping timeout: 250 seconds]
<apeiros> bah, truths in programming hold for centuries!
<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
<jhass> apeiros: you said it. _programming_. Talking about rails here though
byprdct has joined #ruby
<apeiros> rails truths even hold for millenia!
qba73 has quit []
<jhass> where millenia == 1.month ?
fabrice31 has quit [Remote host closed the connection]
renderful has joined #ruby
kireevco1 has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
xymbol has quit [Quit: Lingo: www.lingoirc.com]
startupality has quit [Quit: startupality]
maletor has quit [Quit: Computer has gone to sleep.]
xymbol has joined #ruby
havenwood has joined #ruby
<unshadow> btw, you guys think that ROR is ok for a first backend web development language ?
<jhass> it'll probably be fine
dc_ has joined #ruby
<unshadow> first as in the first on to learn*
<jhass> it helps to understand the underlying ruby code though
dc_ has quit [Remote host closed the connection]
startupality has joined #ruby
<apeiros> ROR is a framework, not a language
tfitts has quit []
thsig has quit [Remote host closed the connection]
chrishough has joined #ruby
jenrzzz has joined #ruby
startupality has quit [Client Quit]
suy has quit [Remote host closed the connection]
<havenwood> the only rack adapter i'm aware of that gets mistaken for a lang :P
jasooon has joined #ruby
rodfersou has quit [Ping timeout: 265 seconds]
musicmatze1 is now known as musicmatze
suy has joined #ruby
tonini has quit [Ping timeout: 250 seconds]
* catphish is hating on rack and wants an alternative
<apeiros> what's wrong with it?
jdj_dk has joined #ruby
<apeiros> (alternatives are almost always good anyway)
jasooon has quit [Ping timeout: 246 seconds]
carraroj has joined #ruby
ghostmoth has joined #ruby
rodfersou has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
byprdct has quit [Ping timeout: 255 seconds]
sailias has quit [Read error: Connection reset by peer]
sailias1 has joined #ruby
medo has joined #ruby
jrhorn424 is now known as zz_jrhorn424
spyderman4g63 has joined #ruby
poulet_a has quit [Quit: Quitte]
SilkFox has joined #ruby
rossgeesman has joined #ruby
klaut has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
cherwin_ has quit [Ping timeout: 246 seconds]
chipotle has quit [Quit: cya]
renderful has quit [Remote host closed the connection]
roolo has quit [Remote host closed the connection]
zz_jrhorn424 is now known as jrhorn424
spyderman4g63 has quit [Ping timeout: 258 seconds]
sambao21 has joined #ruby
roolo has joined #ruby
carraroj has quit [Ping timeout: 260 seconds]
rossgeesman has quit [Ping timeout: 250 seconds]
sambao21 has quit [Client Quit]
j_mcnally has joined #ruby
SilkFox has quit [Ping timeout: 265 seconds]
gsd has joined #ruby
Wolland has joined #ruby
xymbol has quit [Quit: Be back later ...]
<Liendre> I am goin to finnish codecademy ruby and I dont want to!!!
i_s has joined #ruby
<Liendre> I am afraid I am going to sink in the next step :((((
<Liendre> those codewars katas are too much for me now
xymbol has joined #ruby
roolo has quit [Ping timeout: 250 seconds]
Takle_ has joined #ruby
Takle has quit [Read error: Connection reset by peer]
rh1n0 has quit [Ping timeout: 255 seconds]
doug1 has joined #ruby
aspires has joined #ruby
<doug1> testing
<jhass> doug1: doesn't work
FaresKAlaboud has quit [Read error: Connection reset by peer]
<catphish> apeiros: i need an interface where i can stream headers and body from the same block
<jhass> Liendre: maybe that means you went through it too fast? :)
<doug1> I'm having trouble iterating over an irb template. it's an array of hashes and I need to remove the trailing comma
<Liendre> maybe jhass
danijoo_ has quit [Remote host closed the connection]
FaresKAlaboud has joined #ruby
Takle_ has quit [Remote host closed the connection]
danijoo has joined #ruby
<catphish> rack separates the streaming of content from the app logic, which is not ideal, and breaks a particular use case
<jhass> doug1: Please share your code on https://gist.github.com
byprdct has joined #ruby
coderhs has joined #ruby
TeresaP has joined #ruby
<doug1> jhass: i got nuthin so far
<doug1> some magic use of map and join is about as far as I've worked out
danijoo_ has joined #ruby
<jhass> then share input and wanted output at least
jrhorn424 is now known as zz_jrhorn424
shortCircuit__ has quit [Ping timeout: 244 seconds]
tercenya has quit []
andikr has quit [Remote host closed the connection]
hellangel7 has quit [Remote host closed the connection]
xymbol has quit [Client Quit]
myghty_ has joined #ruby
<myghty_> hey guys
<myghty_> I got a stupid question
<myghty_> I ran apt-get install ruby on debian
<myghty_> but when I now hit ruby --version it says /usr/local/bin/ruby: No such file or directory
timonv_ has joined #ruby
<doug1> jhass: well, here's the simple version without any commas...https://gist.github.com/dgarstang/c285c63fb161fb784186
<myghty_> where is ruby located normally by default?
<jhass> myghty_: what does `which ruby` say?
<doug1> jhass: rather, with commas sorry
<myghty_> nothing
<myghty_> jhass:
<doug1> oh that's the wrong output. Darn it
<Liendre> jhass, will you help me with one thing?
<jhass> doug1: are you generating JSON with ERB?
narph has quit [Quit: Connection closed for inactivity]
<doug1> jhass: Yes
<jhass> Liendre: no, but you can just openly ask into the channel and I might answer or somebody else might
danijoo has quit [Ping timeout: 250 seconds]
<jhass> doug1: why don't you build a ruby hash and convert it to json? hash.to_json
<Liendre> ok ok
shortCircuit__ has joined #ruby
benzrf|offline is now known as benzrf
carraroj has joined #ruby
<doug1> jhass: is a ruby has like a normal hash? This is in chef, so not necessarily full blown ruby
dANO_ has quit []
<jhass> doug1: so you might ask #chef for the "right" solution in chef
<doug1> jhass: nah they kicked me out after asking so many questions
<jhass> myghty_: did you enter it with or without the ` ?
TPBallbag has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
wpp has quit [Quit: ZZZzzz…]
epylinkn has joined #ruby
allcentu1 has quit [Ping timeout: 244 seconds]
<doug1> well darn... <% @rs_members.to_json -%> didn't work...
<treehug88> doug1: seriously? seems like there must have been some attitude involved (on some side)
<myghty_> both
<jhass> doug1: <%=
<doug1> ah
shortCircuit__ has quit [Read error: Connection reset by peer]
<doug1> treehug88: sure. I'd of course say it was all theirs. :)
bricker`work has joined #ruby
<jhass> myghty_: anything for command -v ruby ?
SiliconDon has joined #ruby
<myghty_> I just went around it by manually installing ruby 2.x
<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...
Trudko has joined #ruby
TPBallbag has joined #ruby
<jhass> doug1: I know 0 chef. You don't have anything to modify the hash prior calling the template?
<Liendre> It always return nil. And I wish it to return the same number given
hellangel7 has joined #ruby
matchaw_ has joined #ruby
allcentu1 has joined #ruby
<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. :)
matchaw has quit [Ping timeout: 256 seconds]
<jhass> >> def always(var=''); @var = var; @var = Proc.new {|n| n }; end; always
<eval-in__> jhass => #<Proc:0x41e60d70@/tmp/execpad-3f0482d32bdb/source-3f0482d32bdb:2> (https://eval.in/209540)
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<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
<jhass> Liendre: ^ proc not nil
timonv_ has quit [Ping timeout: 244 seconds]
Xeago has joined #ruby
TPBallbag has quit [Remote host closed the connection]
<Trudko> Guys I have undefined method `-@' for "":String error when sorting the collection and t.note is empty string http://pastie.org/9670595
<Liendre> ok
drkyro has quit [Quit: Textual IRC Client: www.textualapp.com]
sambao21 has joined #ruby
hellangel7 has quit [Max SendQ exceeded]
treehug88 has quit []
hellangel7 has joined #ruby
<jhass> doug1: "print"? just don't print a trailing comma then?
maestrojed has joined #ruby
<jhass> Trudko: t.note is a string, String has no operator to negate it (-)
<jhass> or t.total_points_per_round is
Hobogrammer has joined #ruby
<doug1> dunno
jdj_dk has quit [Read error: Connection reset by peer]
joonty has quit [Quit: Leaving]
peta_ has joined #ruby
arup_r has joined #ruby
<doug1> i can myself spending hours on this
Avahey has joined #ruby
<jhass> doug1: with much guessing: <%= @rs_members.map {|host| {"_id" => host["id"], "host" => host["host"]} }.to_json %>
jenrzzz has quit [Ping timeout: 250 seconds]
<jhass> note that this is normally nothing you would put into a template
tercenya has joined #ruby
mistermocha has quit [Remote host closed the connection]
matchaw_ has quit [Ping timeout: 245 seconds]
<doug1> jhass: for reasons I'll spare you, it's better than putting it directly into cheff
matchaw has joined #ruby
jds has quit [Quit: Connection closed for inactivity]
jhwhite has quit [Quit: jhwhite]
<P-NuT> Hi all,
<P-NuT> I have done a gem install mysql, but when I require it in a script using : require 'mysql' I get the error
stunder has joined #ruby
<Liendre> :x
goshdarnyou has quit [Quit: Connection closed for inactivity]
<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)
jimmyhoughjr has joined #ruby
<P-NuT> Why would this be?
renderful has joined #ruby
<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
<jhass> Liendre: ?
jerius has quit []
Hobogrammer_ has joined #ruby
troyready has joined #ruby
timgauthier_away is now known as timgauthier
<P-NuT> mysql2 does the same error
<Liendre> jhass, reading some proc and function theory now
einarj has quit [Remote host closed the connection]
<P-NuT> I have installed it using gem install also
thagomizer has joined #ruby
digital-ghost has joined #ruby
msmith has quit [Read error: Connection reset by peer]
jdj_dk_ has joined #ruby
<jhass> P-NuT: make a gist with the output of gem env, rvm current and rvm info
_lexjm has joined #ruby
havenwood has quit [Ping timeout: 246 seconds]
<Trudko> jhass: ofc
<P-NuT> err.. How do I do that?
msmith has joined #ruby
havenwood has joined #ruby
skolman_ has joined #ruby
shortCircuit__ has joined #ruby
<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?
mikecmpbll has quit [Quit: i've nodded off.]
diegoviola has joined #ruby
startupality has joined #ruby
<jhass> that's one possibility
<jhass> you also could do .to_s.size
<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.
skolman_ has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 245 seconds]
sooli has joined #ruby
<jhass> digital-ghost: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ help
Hobogrammer has joined #ruby
<Trudko> jhass: even better
<digital-ghost> As I said.. not a Rails thing I'm looking for. ><
skolman_ has joined #ruby
alex88 has quit []
sooli has left #ruby [#ruby]
dangerousdave has joined #ruby
skolman_ has quit [Remote host closed the connection]
<jhass> you only talked about rails for 80% of your question though
<digital-ghost> Because that's where I've been looking for information, only to realize that's not where I need to be.
skolman has joined #ruby
<jhass> the only thing that didn't include rails was saying that you're not looking for rails
<digital-ghost> <- new programmer, you spend a lot of time in the wrong places. That's why I'm here asking for help.
<wasamasa> why are you using activerecord for something non-rails?
<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.
SiliconDon has left #ruby [#ruby]
<crome> I think the rails guide is actually a pretty good start
diegoviola has quit [Remote host closed the connection]
<doug1> jhass: null values for <%= @rs_members.map {|host| {"_id" => host["id"], "host" => "#{host["host"]}.dev-volatile.slicetest.com"} }.to_json %> :(
<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.
mostlybadfly is now known as moi_renee
unshadow has quit [Quit: leaving]
<jhass> doug1: what do you mean?
<digital-ghost> I haven't been able to find something that's very easy for someone totally new to data modeling/manipulation.
axisys has quit [Read error: Connection reset by peer]
tvw has joined #ruby
tylersmith has joined #ruby
<doug1> iterates over all array elements, but the id comes out null and the host comes out ''
<jhass> "data modeling/manipulation". Isn't that called programming?
<wasamasa> digital-ghost: the less orm, the better
Hobogrammer_ has quit [Ping timeout: 256 seconds]
<doug1> jhass: ie [{"_id":null,"host":".dev-volatile.slicetest.com"},{"_id":null,"host":".dev-volatile.slicetest.com"},{"_id":null,"host":".dev-volatile.slicetest.com"}]
_5kg has quit [Ping timeout: 255 seconds]
TPBallbag has joined #ruby
jhwhite has joined #ruby
sepp2k_ has quit [Quit: Konversation terminated!]
<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.
<wasamasa> digital-ghost: you should also look for the tab-key, it helps with completing nicknames :P
<digital-ghost> wasamasa: Yea, know it, was just lazy there.
<digital-ghost> wasamasa: Apologies for butchering your name.
jerius has joined #ruby
wald0 has joined #ruby
<wasamasa> it's lazier to type one or two letters and hit tab than typing out the full name the wrong way
gilmour has joined #ruby
<jhass> doug1: I don't see how your example couldn't have generated something like that
jenrzzz has joined #ruby
<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?
<doug1> jhass: it was based on your guess. :)
Igneous has joined #ruby
<jhass> doug1: and that was based on your earlier attempt
<doug1> now I'm confused. :(
diegoviola has joined #ruby
<jhass> P-NuT: are you sure you started gem install and irb in the same environment?
iliketurtles has joined #ruby
<wasamasa> digital-ghost: I'd try out sequel or datamapper
<jhass> doug1: that's what I saw from chef so far. Confused people ;P
<P-NuT> yes
<doug1> jhass: ruby and I don't get along. just the way it is
P-NuT has quit []
SiliconDon has joined #ruby
<jhass> I'd say chef is not the optimal entry ;P
<Liendre> I am trying some stuff but I think I shall step back and do tryruby again :|
<jhass> Liendre: how exactly do you call that?
hellangel7 has quit [Remote host closed the connection]
<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?
<doug1> I mean, I can't even find any examples of iterating over an array of hashes in irb
Kricir has quit [Remote host closed the connection]
<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
<Liendre> jhass, look at the comment
<jhass> Igneous: ActiveRecord for this reason has find_each which limits the number of concurrently instantiated objects, maybe mongoid has something alike?
<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.
<digital-ghost> wasamasa: I'm looking for fundamentals w/dbs.
Kricir has joined #ruby
tuelz has joined #ruby
<doug1> jhass: still think that should work
spyderman4g63 has joined #ruby
<wasamasa> digital-ghost: uh, then use the db adapters themselves?
beef-wellington has quit [Ping timeout: 244 seconds]
<wasamasa> digital-ghost: there's more to databases than learning the sql syntax
<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
<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
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tuelz> err that is without the rocket
<wasamasa> digital-ghost: I've found this series of posts for instance pretty enlightening: http://patshaughnessy.net/2014/9/17/20000-leagues-under-activerecord
<jhass> tuelz: are you confusing ruby hashes with json maybe?
<digital-ghost> wasamasa: I actually read and watched the video there.
<Liendre> jhass, I am calling it with an n
Takle has joined #ruby
<jhass> Liendre: not in your examples
<wasamasa> digital-ghost: is that why you were asking about activerecord?
<Liendre> jhass, It was Proc.new {|n| n}
<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?)
<digital-ghost> wasamasa: Yea.
<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
<Liendre> everybody ask to jhass :)
catphish has quit [Quit: Leaving]
bMalum_ has joined #ruby
x1337807x has joined #ruby
<jhass> Igneous: no, you can't predict GC runs
<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 :/
kaspergrubbe has joined #ruby
<digital-ghost> wasamasa: I almost picked up his book, Ruby under a Microscope, just yesterday. But it was still a bit beyond me.
<wasamasa> digital-ghost: otherwise I bookmarked this listing to understand databases from ground up: https://news.ycombinator.com/item?id=8240176
<Liendre> Maybe one day I know enough to help you :)
<tuelz> #to.json produce 'key' => 'value' - I want 'key': 'value'
rh1n0 has joined #ruby
<jhass> Igneous: you can force GC runs with GC.start but that's generally slow
<Igneous> jhass: is there any chance that using jruby would help alleviate this?
bMalum has quit [Ping timeout: 255 seconds]
bMalum_ is now known as bMalum
<digital-ghost> wasamasa: BINGO man, perfect https://github.com/rxin/db-readings
tonini has joined #ruby
TPBallbag has quit [Remote host closed the connection]
<Igneous> I'm on a pretty recent MRI
<digital-ghost> wasamasa: THIS is what I was looking for.
<wasamasa> digital-ghost: it's mostly papers
<olivier_bK> some has already testing to upload file with mechanize ?
Kricir has quit [Ping timeout: 244 seconds]
<wasamasa> digital-ghost: some about how to implement stuff, some about basics (like, hard requirements you can only fulfill partially)
<jhass> tuelz: no, it doesn't, that looks .inspect, not .to_json
carraroj has quit [Ping timeout: 246 seconds]
<wasamasa> digital-ghost: and I've found a book somewhere in the comments that looked promising
<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
<jhass> Igneous: ask headius
<jhass> :P
jenrzzz has quit [Ping timeout: 245 seconds]
reprazent has joined #ruby
<wasamasa> digital-ghost: yep, "Database in Depth" by chris date
<headius> eh?
ramfjord has joined #ruby
<jhass> Igneous has memory usage issues and wonders if jruby performs better there ;)
<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.
<wasamasa> digital-ghost: that might shorten the amount of stuff to plough through
<Igneous> It's basically to the point where if I hit a particular rest call, my VM will baloon by about 4MB
<wasamasa> digital-ghost: anyways, I'm glad I could help
<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 :/
<Liendre> jhass, omg I cannot believe it. This was the solution. (I unlocked it :( )
<digital-ghost> wasamasa: Thanks, this is a step in the right direction . looking for something like this.
Kricir has joined #ruby
jhwhite has quit [Quit: jhwhite]
<jhass> Liendre: yep, it's that simple
mercwithamouth has quit [Ping timeout: 244 seconds]
<digital-ghost> wasamasa: Also checking on the datamapper github page, might be able to play with this over the weekend.
<Liendre> jhass, I think that I tried that one :X
mxrguspxrt has joined #ruby
<jhass> Liendre: you can construct the proc a bit shorter proc { n }
<digital-ghost> wasamasa: Sucks being a graphic designer moving into programming w/no training lol
<tuelz> jhass: hmm, gotcha, not sure what my problem is then. thanks
reprazent has quit [Quit: WeeChat 1.0.1]
jasooon has joined #ruby
<jhass> Liendre: what this teaches you is that the proc is what we call a closure, it keeps a reference to the used variables
Eiam has joined #ruby
beef-wellington has joined #ruby
<Liendre> jhass, But I thought that I can't use same variables in the method and in the proc!!??
diegoviola has quit [Ping timeout: 246 seconds]
<jhass> in fact you can
diegovio1 has joined #ruby
ixti has quit [Ping timeout: 260 seconds]
<Liendre> yes. I see now
<Liendre> :)
iliketurtles has quit [Quit: Textual IRC Client: www.textualapp.com]
diegovio1 is now known as diegoviola
<Liendre> thanks for your patience
<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
Takle has quit []
<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
<Igneous> dafuq
Asher has joined #ruby
<jhass> oh yeah, GC runs also consume memory
Takle has joined #ruby
Xeago has quit [Remote host closed the connection]
<wasamasa> hum, I thought that GC would try to not allocate extra memory?
<Liendre> functions to be passed as arguments...
nojb has quit [Quit: nojb]
<jhass> we have some many versions of them by now, I lost track which does what
<wasamasa> at least the CL guys emphasize not ever consing when it can be avoided
<Liendre> interesting. So there can be a closure of a closure of a closure of a function??
<jhass> Liendre: up to your stack limit, yeah
<Liendre> lol
mistermocha has joined #ruby
<Liendre> I like
havenwood has quit [Remote host closed the connection]
myghty_ has left #ruby [#ruby]
mityaz_ has joined #ruby
skolman has quit [Remote host closed the connection]
drawingthesun has quit [Ping timeout: 245 seconds]
wald0 has quit [Quit: Lost terminal]
rossgeesman has joined #ruby
jheg has quit [Quit: jheg]
sepp2k has joined #ruby
SilkFox has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
bauruine_ has quit [Ping timeout: 260 seconds]
mxrguspxrt has quit []
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tonini has quit [Ping timeout: 250 seconds]
grzywacz has quit [Ping timeout: 244 seconds]
mxrguspxrt has joined #ruby
Takle has quit []
skolman_ has joined #ruby
bMalum has quit [Ping timeout: 255 seconds]
nichtdiebohne has quit [Ping timeout: 258 seconds]
tier_ has quit [Remote host closed the connection]
wallerdev has joined #ruby
gbchaosmaster has joined #ruby
bMalum has joined #ruby
rossgeesman has quit [Ping timeout: 245 seconds]
SilkFox has quit [Ping timeout: 244 seconds]
Takle has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Aaaal has quit [Quit: Aaaal]
Spami has joined #ruby
Spami has quit [Remote host closed the connection]
shazaum has joined #ruby
ptrrr has joined #ruby
<Liendre> nah
TPBallbag has joined #ruby
<Liendre> I come back to ruby videos
<Liendre> I am not ready to face the darkness yet
<Igneous> holy shit I found it.. It had nothing to do with mongoid
sailias has quit [Quit: Leaving.]
<doug1> In irb... can I nest variables?
TPBallbag has quit [Remote host closed the connection]
<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
<Igneous> so every request it'd spawn 10 celluloid actors
<Igneous> derp.
<doug1> Ie https://gist.github.com/dgarstang/c60e042470e3d1f42124 ... first line is not valid because of my nested attempt. Second line in the loop is ok
tonini has joined #ruby
m8 has joined #ruby
sailias has joined #ruby
emmesswhy has joined #ruby
nichtdiebohne has joined #ruby
fr-canadian has quit [Ping timeout: 250 seconds]
papercode has quit [Remote host closed the connection]
<doug1> sigh
papercode has joined #ruby
AlSquire has joined #ruby
nobitanobi has joined #ruby
Rollabunna has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 265 seconds]
Guest3833 has quit [Remote host closed the connection]
<doug1> argh
jasooon has quit [Ping timeout: 256 seconds]
Snowstormer is now known as burritocat
awarner has joined #ruby
<jhass> doug1: it's ERB, irb is the repl shipped with ruby
ghr has joined #ruby
skolman_ has quit [Remote host closed the connection]
moi_renee is now known as mostlybadfly
<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?
<doug1> Because replacing xxx with <%= @some_var %> doesn't work
<jhass> you already used the construct needed
<jhass> right in front of it
<jhass> #{ruby code}
skolman has joined #ruby
epylinkn has quit [Remote host closed the connection]
yetanotherdave has quit [Quit: Lost terminal]
<doug1> jhass: it's #{ } ? but...
<doug1> it's a template var
<doug1> normally accessed via @template_var
<jhass> #{@template_var}
<doug1> oh jeez
matiaslina has joined #ruby
<doug1> i'll try that
<jhass> <% ruby code %>. In ruby "foo" is a string. Inside a string you can interpolate ruby code with #{}
cocotton has quit [Remote host closed the connection]
<jhass> and I'd still built the whole thing as ruby structure and to_json it one time
Scotteh has quit [Ping timeout: 246 seconds]
<doug1> yep, thanks. god i got no idea with ruby. That works
_5kg has joined #ruby
cocotton has joined #ruby
awarner has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 245 seconds]
awarner has joined #ruby
skolman has quit [Ping timeout: 246 seconds]
altamic has joined #ruby
altamic has left #ruby [#ruby]
startupality has quit [Quit: startupality]
altamic has joined #ruby
rbrs has quit [Remote host closed the connection]
Scotteh has joined #ruby
SiliconDon has quit [Quit: ZZZzzz…]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ebru has quit [Ping timeout: 240 seconds]
agrinb has joined #ruby
theotherstupidgu has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
<Liendre> omg jhass now i understand everything!!
<Liendre> it was so silly
theother1tupidgu has quit [Ping timeout: 255 seconds]
wald0 has joined #ruby
BRMatt has joined #ruby
theotherstupidgu has joined #ruby
theother1tupidgu has joined #ruby
IcyDragon has joined #ruby
IceDragon has quit [Ping timeout: 265 seconds]
ebru has joined #ruby
tonini has quit [Ping timeout: 250 seconds]
jacobat has joined #ruby
jimmyhoughjr has quit [Quit: Textual IRC Client: www.textualapp.com]
agrinb has quit [Remote host closed the connection]
aspiers has joined #ruby
zz_jrhorn424 is now known as jrhorn424
fr-canadian has joined #ruby
skolman has joined #ruby
chipotle has joined #ruby
<Igneous> boom. https://github.com/RiotGames/ridley/issues/283 -- does that issue make sense? or did I come across looking like a complete idiot?
ramfjord has quit [Ping timeout: 256 seconds]
jrhorn424 is now known as zz_jrhorn424
Synthead has quit [Read error: Connection reset by peer]
<doug1> still shovelling shit up hill.
agrinb has joined #ruby
<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" } } %>
<doug1> I need to control the output format, so "_id" => host["id"] is no good. tried to use " _id : #{host["id"]} " and it complains
olivier_bK has quit [Ping timeout: 265 seconds]
<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
existensil has quit [Quit: WeeChat 0.4.2]
tonini has joined #ruby
amclain has joined #ruby
Skipp_OSX has joined #ruby
<jhass> then it's a string in ruby
<jhass> {"_id" => host["id"].to_i }.to_json
<jhass> maybe try tryruby.org
gauke has joined #ruby
<headius> Igneous: pretty good chance that JRuby could help if your issues are GC-related
TPBallbag has joined #ruby
<doug1> oic
<doug1> what about as_json?
<headius> Igneous: oh, I see...it was actually a bug
p8952_ has quit [Quit: ZNC - http://znc.in]
<doug1> oops jhass rather
kenneth has quit [Quit: Bye.]
wldcordeiro has quit [Read error: Connection reset by peer]
p8952 has joined #ruby
theotherstupidgu has quit [Ping timeout: 245 seconds]
theother1tupidgu has quit [Ping timeout: 250 seconds]
ferr has joined #ruby
<ferr> My methods are almost identical, any suggestions to shorten it? http://pastie.org/9670762
fr-canadian has quit [Ping timeout: 246 seconds]
jaequery has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
theotherstupidgu has joined #ruby
theother1tupidgu has joined #ruby
WormDrink has quit [Ping timeout: 245 seconds]
timonv_ has joined #ruby
<jhass> ferr: just pass in session_key and user as parameters to the method
jaequery has quit [Client Quit]
lolmaus has quit [Quit: Konversation terminated!]
Skipp_OSX has left #ruby ["Leaving"]
jaequery has joined #ruby
<jhass> def facebook; sign_in_with_omniauth(User.from_omniauth(request.env["omniauth.auth"], "devise.facebook_data"); end
baordog has quit [Ping timeout: 265 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
jenrzzz has joined #ruby
Takle has quit [Remote host closed the connection]
chrishough has joined #ruby
tcurdt has joined #ruby
danijoo_ has quit [Read error: Connection reset by peer]
arup_r has quit [Ping timeout: 244 seconds]
thsig has joined #ruby
TPBallbag has quit [Ping timeout: 240 seconds]
claymore has joined #ruby
danijoo has joined #ruby
<Igneous> headius: I will still probably end up using warbler and jruby+tomcat.. just because it simplifies the deployment process quite a bit.
<Igneous> it's been on the table for a while
FooMunki has quit [Quit: FooMunki]
tier has joined #ruby
timonv_ has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
gauke has quit [Quit: gauke]
tcurdt has quit [Client Quit]
tier has quit [Remote host closed the connection]
failshel_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
failshel_ has quit [Remote host closed the connection]
tier has joined #ruby
<headius> sounds good...let us know if you run into any trouble :-)
<apeiros> jhass: btw., you've seen that .xyz has been registered as tld?
<apeiros> mrzyx.xyz
agrinb has quit [Remote host closed the connection]
<jhass> phasing the nick out though
<jhass> already got hass.email ;)
<yxhuvud> not can.hass.email?
<apeiros> .email is a tld now too?
<jhass> yxhuvud: that's included ;)
<jhass> apeiros: yep
pothibo has joined #ruby
<apeiros> I'm still not sure what to think of this new gtld craze :-S
<yxhuvud> nice
<jhass> .web and .mail are still in the contention sets :/
failshell has quit [Ping timeout: 256 seconds]
<apeiros> it's all about the money…
<jhass> yeah, have you seen the latest auction results?
jerius has quit []
GeorgesLeYeti has joined #ruby
marr has quit [Ping timeout: 244 seconds]
<yxhuvud> some are more than a little silly. Like .vermögensberater
<yxhuvud> just a bit obscure..
<jhass> haha, didn't notice that one
jerius has joined #ruby
<yxhuvud> iirc, it holds the record for the currently longest one
<jhass> I'm rather surprised .email and .mail didn't went into the same contention set
<jhass> there's even some plural vs singular ones delegated by now (forgot which ones..)
<apeiros> I see lots and lots of people who get scammed and phised because of the new gtlds
<yxhuvud> no, wait, vermögensberatung may be the record holder. almost the same anyhow
cocotton has quit [Remote host closed the connection]
dumdedum has quit [Quit: foo]
GeorgesLeYeti has quit [Client Quit]
failshell has joined #ruby
Takle has joined #ruby
awarner has quit [Remote host closed the connection]
<jhass> jeez, vermögensberater won as single-registrant model?
<jhass> that's insanse
<jhass> *insane even
<yxhuvud> both of them!
<jhass> not as insane as google getting .dev as single-registrant I guess
cocotton has joined #ruby
tier has quit [Remote host closed the connection]
awarner has joined #ruby
kireevco1 has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
<apeiros> apple has not registered .apple yet?
<jhass> it's contracting currently
SilkFox has joined #ruby
SiliconDon has joined #ruby
tier has joined #ruby
yeticry has quit [Ping timeout: 245 seconds]
timgauthier is now known as timgauthier_away
sambao21 has quit [Quit: Computer has gone to sleep.]
yeticry has joined #ruby
emmesswhy has joined #ruby
ixti has joined #ruby
dangerousdave has joined #ruby
SiliconDon has quit [Client Quit]
mikecmpbll has joined #ruby
sambao21 has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
timgauthier_away is now known as timgauthier
SilkFox has quit [Ping timeout: 244 seconds]
melik has joined #ruby
pandaant has quit [Quit: Lost terminal]
pandaant has joined #ruby
Morkel_ has joined #ruby
weaksauce has joined #ruby
yetanotherdave has joined #ruby
mistermocha has joined #ruby
sinkensabe has joined #ruby
freezey has joined #ruby
Morkel has quit [Ping timeout: 255 seconds]
Morkel_ is now known as Morkel
coderhs has quit [Ping timeout: 255 seconds]
benzrf is now known as benzrf|offline
codecop has quit [Remote host closed the connection]
Liendre has quit [Ping timeout: 250 seconds]
kaspertidemann has joined #ruby
gyre007_ has quit [Remote host closed the connection]
ramfjord has joined #ruby
Kricir has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
havenwood has joined #ruby
Kricir has joined #ruby
axl_ has joined #ruby
fmcgeough has joined #ruby
chrishough has quit [Ping timeout: 245 seconds]
jasooon has joined #ruby
kaneda^ has joined #ruby
patrick99e99 has joined #ruby
pandaant has joined #ruby
<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?
<kaneda^> i assume tlsv1
Hytosys has joined #ruby
<yxhuvud> do you mean 1.0, 1.1 or 1.2?
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<graft_> individual companies are getting tlds now?
<graft_> RIP the internet
<kaneda^> yxhuvud: i mean, is it possible that it defaults to sslv3 for some reason
dangerousdave has joined #ruby
<kaneda^> asking because there are many services removing sslv3 support after poodle
<kaneda^> and i although i can specify the type explicitly i was hoping this wouldnt be necessary
<havenwood> kaneda^: the defaults are good in ruby 2.2.0-preview1, you have to set it yourself prior
iamjarvo has joined #ruby
cherwin has joined #ruby
pu22l3r has joined #ruby
Kricir has quit [Ping timeout: 246 seconds]
rh1n0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 256 seconds]
kirun has joined #ruby
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<yxhuvud> kaneda: either it is ok that your users use sslv3, or it isn't. make that choice, and stick with it
mistermocha has quit [Remote host closed the connection]
jheg has joined #ruby
chrishough has joined #ruby
jasooon has quit [Ping timeout: 246 seconds]
agrinb has joined #ruby
pu22l3r_ has joined #ruby
<kaneda^> yxhuvud: that's rough, ty
niKeITA has joined #ruby
chipotle has quit [Quit: cya]
thagomizer has quit [Quit: Leaving.]
thagomizer has joined #ruby
<yxhuvud> I implemented a gui for disabling those methods and ciphers today ._.
GPH|work has quit [Ping timeout: 245 seconds]
GPH|work has joined #ruby
jacobat has quit [Ping timeout: 258 seconds]
Liendre has joined #ruby
pu22l3r has quit [Ping timeout: 246 seconds]
<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
<kaneda^> so i'm trying to put in issues to github and such
cocotton has quit [Remote host closed the connection]
wald0 has quit [Quit: Lost terminal]
cndiv has joined #ruby
cocotton has joined #ruby
duncannz has quit [Remote host closed the connection]
niKeITA has quit [Client Quit]
<ericwood> am I missing something or is there not an array method like reject that returns the items that were removed?
Pupeno has quit [Remote host closed the connection]
niKeITA has joined #ruby
<yxhuvud> I see. thankfully we are only dependent on our own code.
<yxhuvud> ericwood: you mean like select?
Pupeno has joined #ruby
<yxhuvud> execpt that doesn't remove items, (and neither do reject (only reject!))
sigurding has joined #ruby
<jhass> if you want both results use .partition
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jerius has quit []
ixolit has joined #ruby
<ericwood> hmmm okay thanks
jobewan has quit [Quit: Leaving]
<kaneda^> just delete would return the item removed as well
<yxhuvud> jhass: yes, or possibly group_by depending on exactly what is needed.
chipotle has joined #ruby
<ericwood> partition might be what I want
<ericwood> yeah I think I'll use this
<ericwood> gracias amigos
jerius has joined #ruby
WormDrink has joined #ruby
akemrir has quit [Quit: WeeChat 1.0.1]
Dude007 has quit [Ping timeout: 245 seconds]
FDj_ is now known as FDj
jdj_dk_ has quit [Ping timeout: 255 seconds]
ec has quit [Ping timeout: 265 seconds]
diegovio1 has joined #ruby
mercwithamouth has joined #ruby
kamil has quit [Disconnected by services]
niKeITA is now known as niKeITA_away
diegoviola has quit [Ping timeout: 265 seconds]
gbchaosmaster has quit [Ping timeout: 260 seconds]
byprdct has quit []
ec has joined #ruby
Dude007 has joined #ruby
iamjarvo has joined #ruby
gbchaosmaster has joined #ruby
doev has quit [Ping timeout: 260 seconds]
renderful has quit [Remote host closed the connection]
iamjarvo has quit [Client Quit]
skolman has quit [Remote host closed the connection]
skolman_ has joined #ruby
F__i__L has quit [Ping timeout: 265 seconds]
SouL has quit [Ping timeout: 258 seconds]
yetanotherdave has quit [Read error: Connection reset by peer]
cmckee has joined #ruby
renderful has joined #ruby
niKeITA_away has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
m_3 has left #ruby [#ruby]
jdj_dk has joined #ruby
TPBallbag has joined #ruby
gauke has joined #ruby
skolman_ has quit [Ping timeout: 246 seconds]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jack_rabbit has joined #ruby
mistermocha has joined #ruby
arrubin has joined #ruby
jenrzzz has joined #ruby
yetanotherdave has joined #ruby
sinkensabe has quit [Remote host closed the connection]
icarus has joined #ruby
Avahey has quit [Quit: Connection closed for inactivity]
jacobat has joined #ruby
TPBallbag has quit [Ping timeout: 250 seconds]
mxrguspxrt has quit [Remote host closed the connection]
slbmeh has joined #ruby
rainfyre has quit [Quit: Lost terminal]
shortCircuit__ has quit [Read error: Connection reset by peer]
jtdowney has joined #ruby
laudo has joined #ruby
timonv_ has joined #ruby
thsig has quit [Remote host closed the connection]
jtdowney has quit [Client Quit]
Dude007 has quit [Remote host closed the connection]
<laudo> is there a way of querying a hash that it returns only the value pairs that are nil?
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
jtdowney has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
Soda has quit [Remote host closed the connection]
<jhass> laudo: select {|k,v| v.nil? }
estebanrules has joined #ruby
snath has quit [Ping timeout: 244 seconds]
grzywacz has joined #ruby
toretore has joined #ruby
gbchaosmaster has quit [Ping timeout: 244 seconds]
Pupeno_ has joined #ruby
iceden has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
kyb3r_ has joined #ruby
gyre007_ has joined #ruby
Dude007 has joined #ruby
shazaum has quit [Quit: This computer has gone to sleep]
Pupeno has quit [Ping timeout: 265 seconds]
wallerdev has quit [Quit: wallerdev]
agrinb has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jottr has joined #ruby
wallerdev has joined #ruby
mistermocha has quit [Remote host closed the connection]
<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
faulkner has joined #ruby
yeticry has quit [Ping timeout: 244 seconds]
Trudko has quit [Remote host closed the connection]
<jhass> that's no hash there
wallerdev has quit [Client Quit]
<jhass> guess: .select {|address| address.instance_id.nil? }
gyre007_ has quit []
rossgeesman has joined #ruby
Dude007 has quit [Remote host closed the connection]
yeticry has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
sambao21 has quit [Quit: Computer has gone to sleep.]
jerius has quit []
shredding has joined #ruby
failshell has quit [Remote host closed the connection]
workmad3 has joined #ruby
estebanrules has quit [Quit: Textual IRC Client: www.textualapp.com]
SilkFox has joined #ruby
esteban has joined #ruby
esteban is now known as estebanrules
jerius has joined #ruby
maletor has joined #ruby
wallerdev has joined #ruby
Iniesta8 has joined #ruby
Iniesta8 has quit [Max SendQ exceeded]
zz_jrhorn424 is now known as jrhorn424
mxrguspx_ has joined #ruby
mxrguspx_ has quit [Remote host closed the connection]
rossgeesman has quit [Ping timeout: 258 seconds]
tier has quit [Remote host closed the connection]
maestrojed has quit [Quit: Computer has gone to sleep.]
mxrguspx_ has joined #ruby
mxrguspx_ has quit [Client Quit]
Iniesta8 has joined #ruby
<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
mxrguspx_ has joined #ruby
Iniesta8 has quit [Max SendQ exceeded]
mxrguspx_ is now known as mxrguspxrt
<jhass> .nil? returns true or false
Iniesta8 has joined #ruby
<jhass> neither of those have a first method
SilkFox has quit [Ping timeout: 245 seconds]
definity_ has quit [Read error: Connection reset by peer]
<jhass> so you make me guess again (that's not good!) you actually have .select {|address| address.instance_id.nil? }.first.ip
<jhass> then you can just map
ghostmoth is now known as notNOTghostmoth
sambao21 has joined #ruby
<jhass> .select {|address| address.instance_id.nil? }.map(&:ip)
failshell has joined #ruby
notNOTghostmoth is now known as ghostmoth
mxrguspxrt has quit [Client Quit]
rkalfane has joined #ruby
mxrguspxrt has joined #ruby
thsig has joined #ruby
Pupeno_ has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
cocotton has quit [Remote host closed the connection]
ndrei has joined #ruby
GPH|work has quit [Read error: Connection reset by peer]
lewis_ has joined #ruby
jtdowney has quit [Quit: Textual IRC Client: www.textualapp.com]
lewis_ has quit [Client Quit]
Nahra has quit [Remote host closed the connection]
cocotton has joined #ruby
Lewix has joined #ruby
diegovio1 is now known as diegoviola
<laudo> cool
estebanrules has quit [Quit: WeeChat 1.0.1]
kyb3r_ has quit [Quit: Leaving]
esteban has joined #ruby
esteban is now known as Guest51426
tier has joined #ruby
Guest51426 is now known as estebanrules
tier has quit [Remote host closed the connection]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<Liendre> hey jhass Do you like https://teamtreehouse.com/ ?
maestrojed has joined #ruby
<jhass> first time I see it
Nahra has joined #ruby
<Liendre> It seems good
<Liendre> I could do the ruby thing in the 14 free days , I think
Rollabunna has joined #ruby
Iniesta8 has quit [Quit: Textual IRC Client: www.textualapp.com]
elaptics is now known as elaptics`away
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
definity1 has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
lopex has joined #ruby
jasooon has joined #ruby
dangerousdave has joined #ruby
lopex has left #ruby [#ruby]
peta_ has quit [Quit: peta_]
tier has joined #ruby
Takle has quit [Remote host closed the connection]
iamjarvo has joined #ruby
Rollabunna has quit [Ping timeout: 265 seconds]
estebanrules has quit [Quit: WeeChat 1.0.1]
jerius has quit []
havenwood has joined #ruby
qwyeth has joined #ruby
<havenwood> >> {aim: true, nada: nil, number: 42}.rassoc nil
<eval-in__> havenwood => [:nada, nil] (https://eval.in/209604)
<havenwood> laudo: ^
snath has joined #ruby
bMalum has quit [Quit: bMalum]
<havenwood> can't miss a rare chance to use #rassoc ;P
snath has quit [Read error: Connection reset by peer]
failshell has quit []
jerius has joined #ruby
<laudo> havenwood: whatsup
sjohnsen has joined #ruby
t_mmyv has joined #ruby
snath has joined #ruby
shredding has quit [Quit: shredding]
<laudo> jhass: worked perfect
sambao21 has quit [Quit: Computer has gone to sleep.]
chipotle has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
sigurding has quit [Quit: sigurding]
Takle has joined #ruby
spyderman4g63 has quit []
testcore has quit [Remote host closed the connection]
testcore has joined #ruby
jasooon has quit [Ping timeout: 244 seconds]
kaspertidemann has quit []
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
klaut has joined #ruby
<laudo> jhass: just to confirm my actual output was an array not a hash right? http://pastie.org/9670926#6,9 As I has [ ] and not {[ ]}
<jhass> No, it is a Fog::Compute::OpenStack::Addresses
kireevco has quit [Quit: Leaving.]
<jhass> which inherits Fog::Collection which inherits Array actually, so it is an Array but not just that
<ramfjord> it's really sad to me that (5..1).overlaps?(1..3) => false
<ramfjord> from activesupport
grzywacz has quit [Ping timeout: 260 seconds]
<havenwood> ramfjord: #rubyonrails
mikeg has joined #ruby
<havenwood> ramfjord: no overlaps in ruby \o/
Kricir has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
<havenwood> they just; include?(other.first) || other.include?(first)
kireevco has joined #ruby
<havenwood> >> (5..1).include? 3
<eval-in__> havenwood => false (https://eval.in/209605)
<Morrolan> Huh?
<ramfjord> lol, that's even worse
emmesswhy has joined #ruby
<Morrolan> >> (5..1).to_a.include? 3
<eval-in__> Morrolan => false (https://eval.in/209606)
* Morrolan scratches head
<havenwood> empty array
<ramfjord> >> (5..1).to_a
<eval-in__> ramfjord => [] (https://eval.in/209607)
<Morrolan> Oh.
<Hanmac> ramfjord & Morrolan 5..1 is not the same like 1..5
<Morrolan> Yea. Makes sense, somehow.
jerius has quit []
<jhass> also .include? is optimized to n >= first && n <= last
kotk_ has joined #ruby
<havenwood> >> 5.downto(1).include? 3
<eval-in__> havenwood => true (https://eval.in/209608)
Takle has quit [Remote host closed the connection]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marr has joined #ruby
claymore has quit [Ping timeout: 255 seconds]
cmckee has quit [Quit: cmckee]
kotk has quit [Ping timeout: 244 seconds]
claymore has joined #ruby
chipotle has quit [Quit: cya]
chipotle has joined #ruby
thsig_ has joined #ruby
rsavage_ has joined #ruby
chipotle has quit [Client Quit]
SouL has joined #ruby
nojb has joined #ruby
nojb has left #ruby [#ruby]
emmesswhy has quit [Quit: This computer has gone to sleep]
shazaum has joined #ruby
Neki has joined #ruby
Akagi201_ has joined #ruby
thsig has quit [Ping timeout: 260 seconds]
fartface has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rkalfane has joined #ruby
Akagi201 has quit [Ping timeout: 265 seconds]
Mia has joined #ruby
Mia has joined #ruby
<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.
mattmcclure has quit [Quit: Connection closed for inactivity]
<fartface> So is the benefit to using procs a benefit of scope?
skolman has joined #ruby
kireevco has quit [Quit: Leaving.]
emmesswhy has joined #ruby
Liendre has quit [Read error: Connection reset by peer]
<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?
kireevco has joined #ruby
jrhorn424 is now known as zz_jrhorn424
<csmrfx> well you can have many different kinds of logic in the block that you proc
kireevco has quit [Client Quit]
zz_jrhorn424 is now known as jrhorn424
<fartface> I guess it's tough to see the potential with the super simple examples that are included
danfried has joined #ruby
emmesswhy has quit [Client Quit]
<jhass> right, it'll make more sense once you stumble upon an actual usecase
<jhass> and also after working with blocks for a while
Dude007 has joined #ruby
<jhass> just keep it in the back of your mind as a fact for now
JBreit has quit [Quit: Leaving]
<fartface> Thanks
rsavage_ has quit [Remote host closed the connection]
oniMaker has joined #ruby
<oniMaker> Is there a nice library out there for writing CLI scripts?
<oniMaker> i.e. one that handles flags, input, all that stuff
jerematic has joined #ruby
blueOxigen has quit [Ping timeout: 265 seconds]
ta has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
timgauthier is now known as timgauthier_away
Takle has joined #ruby
yxhuvud has quit [Remote host closed the connection]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kricir has quit [Remote host closed the connection]
postmodern has joined #ruby
jrhorn424 is now known as zz_jrhorn424
Cheezebox has quit [Remote host closed the connection]
Kricir has joined #ruby
kaspertidemann has joined #ruby
JBreit has joined #ruby
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
altamic has quit [Ping timeout: 245 seconds]
rodfersou has quit [Quit: leaving]
existensil has joined #ruby
Kricir has quit [Ping timeout: 265 seconds]
SilkFox has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Jackneill has quit [Remote host closed the connection]
bMalum has joined #ruby
dangerousdave has joined #ruby
sambao21 has joined #ruby
jerius has joined #ruby
timonv_ has quit [Remote host closed the connection]
JBreit has left #ruby ["Leaving"]
graydot has joined #ruby
jdj_dk has quit [Quit: Leaving...]
_lexjm has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest37110 is now known as lnong
SilkFox has quit [Ping timeout: 265 seconds]
kotk has joined #ruby
Neki has quit [Quit: Page closed]
sambao21 has quit [Ping timeout: 245 seconds]
pibby has quit [Ping timeout: 240 seconds]
<wasamasa> there's like dozens of libraries
<wasamasa> most of them lack extensive docs
kaspergrubbe has quit [Remote host closed the connection]
pibby has joined #ruby
stunder has quit [Quit: Screw you guys I'm going home]
alvaro_o has joined #ruby
treehug88 has joined #ruby
fsapo has quit [Remote host closed the connection]
emiemia has quit []
sambao21 has joined #ruby
kotk_ has quit [Ping timeout: 265 seconds]
neoxquick has joined #ruby
Dude007 has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
sambao21 has quit [Client Quit]
SolarSailor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mike32 has quit [Quit: Leaving]
Dude007 has joined #ruby
chrishough has joined #ruby
jenrzzz has joined #ruby
sambao21 has joined #ruby
wallerdev has quit [Quit: wallerdev]
cocotton_ has joined #ruby
decoponio has quit [Quit: Leaving...]
jenrzzz has quit [Client Quit]
cmckee has joined #ruby
jenrzzz has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0.1]
cocotton has quit [Ping timeout: 256 seconds]
pietr0 has joined #ruby
cocotton_ has quit [Ping timeout: 265 seconds]
iceden has joined #ruby
Cheezebox has joined #ruby
benzrf|offline is now known as benzrf
mattmcclure has joined #ruby
fartface has quit [Ping timeout: 256 seconds]
devdazed has quit [Quit: Computer has gone to sleep.]
<oniMaker> wasamasa: steering toward commander... have any personal recommendations?
borodin has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
allsystemsarego_ has joined #ruby
Synthead has joined #ruby
wallerdev has joined #ruby
Deejay_ has joined #ruby
Synthead has quit [Client Quit]
Synthead has joined #ruby
Synthead has quit [Client Quit]
<wasamasa> oniMaker: I'm still using slop
jasooon has joined #ruby
Synthead has joined #ruby
<oniMaker> wasamasa: that one looks good too
allsystemsarego has quit [Ping timeout: 272 seconds]
<wasamasa> oniMaker: well, it's the scarce docs that annoy me
jerius has quit []
<oniMaker> commander looks like it has good docs
reinaldob has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
<wasamasa> or that some stuff is lacking
lkba has joined #ruby
reinaldob has joined #ruby
BRMatt has quit [Quit: Connection closed for inactivity]
TeresaP has quit [Quit: Page closed]
<borodin> anybody - please tell me a good 'getting started' webpage for sinatra. I've read http://www.sinatrarb.com/intro.html
jasooon has quit [Ping timeout: 245 seconds]
<borodin> wondering if there's anything like 'Agile Web Development With Rails' but for Sinatra
ixolit has quit []
cmckee has quit [Ping timeout: 265 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
FooMunki has joined #ruby
Wolland has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
fartface has joined #ruby
endash_ has joined #ruby
sambao21 has joined #ruby
yaymukund has joined #ruby
timonv_ has joined #ruby
sambao21 has quit [Client Quit]
<kaneda^> quit
kaneda^ has quit [Quit: leaving]
jottr_ has joined #ruby
endash has quit [Ping timeout: 265 seconds]
endash_ is now known as endash
sambao21 has joined #ruby
Guest12321 is now known as railis
mary5030_ has joined #ruby
Pupeno_ has joined #ruby
cmckee has joined #ruby
FooMunki has quit [Quit: FooMunki]
jottr has quit [Ping timeout: 240 seconds]
<havenwood> oniMaker: TTY has some neat features as well: http://peter-murach.github.io/tty/
mary5030 has quit [Ping timeout: 258 seconds]
<oniMaker> too many choices
jaequery has joined #ruby
<oniMaker> that one looks good too, but I'm going to try commander this time
mityaz_ has quit [Quit: See ya!]
Pupeno has quit [Ping timeout: 255 seconds]
<oniMaker> most of this will be learning ruby anyway
timonv_ has quit [Ping timeout: 260 seconds]
Lewix has quit [Remote host closed the connection]
tier_ has joined #ruby
<oniMaker> Is there a way I can set an ENV variable to be used for all system calls in a script?
jaequery has quit [Ping timeout: 265 seconds]
cmckee has quit [Quit: cmckee]
djbkd has joined #ruby
tier has quit [Ping timeout: 255 seconds]
Lewix has joined #ruby
tier_ has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mary5030_ has quit [Remote host closed the connection]
tier has joined #ruby
mary5030 has joined #ruby
einarj has joined #ruby
LoBoGoL has quit [Remote host closed the connection]
skolman has quit [Remote host closed the connection]
cmckee has joined #ruby
dangerousdave has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
shazaum has quit [Quit: Leaving]
skolman_ has joined #ruby
freezey has quit [Remote host closed the connection]
oleo is now known as Guest91476
iamjarvo has joined #ruby
oleo__ has joined #ruby
oleo__ has quit [Read error: Connection reset by peer]
Guest91476 has quit [Ping timeout: 265 seconds]
jacobat has quit [Ping timeout: 265 seconds]
matiaslina has quit [Remote host closed the connection]
oleo__ has joined #ruby
oleo__ is now known as oleo
robbyoconnor has joined #ruby
mikeg has quit [Remote host closed the connection]
skolman_ has quit [Ping timeout: 258 seconds]
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
tyll has joined #ruby
weaksauce has joined #ruby
<bricker`work> oniMaker: Set it when you run the script, eg. YOUR_COOL_ENV=something ./rubyscript.rb
<bricker`work> something like that
paulfm has quit []
tesaf has quit [Quit: Lost terminal]
ndrei has quit [Ping timeout: 250 seconds]
jack_rabbit has quit [Quit: Leaving]
tyll_ has quit [Ping timeout: 265 seconds]
KC9YDN has quit [Quit: "Let a hundred flowers bloom: let a hundred schools of thought contend." - Mao Zedong]
kaspertidemann has quit []
skolman has joined #ruby
gr33n7007h has joined #ruby
perrier has quit [Remote host closed the connection]
fartface has quit [Ping timeout: 260 seconds]
laudo has quit [Ping timeout: 246 seconds]
jobewan has joined #ruby
yaymukund has quit [Quit: leaving]
<oniMaker> bricker`work: I'd rather set it as part of the script
<oniMaker> bricker`work: looks like I can just do a system command and export it
ptrrr has quit [Quit: ptrrr]
wallerdev has quit [Ping timeout: 240 seconds]
<havenwood> oniMaker: def system_with_env *args; system({'JAM_ENV' => 'lingon berry'}, *args) end
SilkFox has joined #ruby
kireevco has joined #ruby
wallerdev has joined #ruby
<havenwood> oniMaker: then your system will know which jam to use
KC9YDN has joined #ruby
livingstn has quit []
<oniMaker> havenwood: delicious, thank you!
renderful has quit [Remote host closed the connection]
byprdct has joined #ruby
tier has quit [Remote host closed the connection]
cherwin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tonini has quit [Ping timeout: 250 seconds]
SilkFox has quit [Ping timeout: 245 seconds]
Synthead has quit [Remote host closed the connection]
renderful has joined #ruby
gr33n7007h has quit [Ping timeout: 250 seconds]
Synthead has joined #ruby
pygospa has joined #ruby
reinaldob has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
Asher has quit [Quit: Leaving.]
sambao21 has quit [Quit: Computer has gone to sleep.]
jobewan has quit [Quit: Leaving]
reinaldob has joined #ruby
f0ster has quit [Ping timeout: 272 seconds]
nateberkopec has quit [Quit: Leaving...]
byprdct has quit [Ping timeout: 250 seconds]
Kricir has joined #ruby
byprdct has joined #ruby
marcel has quit [Ping timeout: 256 seconds]
sambao21 has joined #ruby
benzrf is now known as benzrf|offline
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
reinaldob has quit [Ping timeout: 258 seconds]
Rollabunna has joined #ruby
sharms has quit [Ping timeout: 245 seconds]
marcel has joined #ruby
drPoggs has quit [Ping timeout: 260 seconds]
poulet_a has joined #ruby
fartface has joined #ruby
Ankhers has quit [Ping timeout: 246 seconds]
claymore has quit [Remote host closed the connection]
siwica has quit [Remote host closed the connection]
Cache_Money has joined #ruby
claymore has joined #ruby
Rollabunna has quit [Ping timeout: 246 seconds]
SiliconDon has joined #ruby
siwica has joined #ruby
cmckee has quit [Ping timeout: 256 seconds]
allcentu1 has quit [Ping timeout: 258 seconds]
drPoggs has joined #ruby
byprdct has quit [Ping timeout: 260 seconds]
gr33n7007h has joined #ruby
beef-wellington has quit [Ping timeout: 246 seconds]
cmckee has joined #ruby
thagomizer has quit [Quit: Leaving.]
cherwin has joined #ruby
<banister> apeiros mariokart?
linojon has quit [Quit: linojon]
testcore has quit [Ping timeout: 246 seconds]
jasooon has joined #ruby
gr33n7007h has quit [Quit: Leaving]
Deejay_ has quit [Quit: Computer has gone to sleep.]
testcore has joined #ruby
gr33n7007h has joined #ruby
skolman has quit [Remote host closed the connection]
FooMunki has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cmckee has quit [Ping timeout: 265 seconds]
linojon has joined #ruby
skolman has joined #ruby
jheg has quit [Quit: jheg]
agrinb has joined #ruby
phat4life has joined #ruby
cek has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
GPH|work has joined #ruby
<phat4life> why does this cause my system to run out of application memory: ("1." + "99999999"*999999999).to_f
it0a has quit [Quit: WeeChat 1.0.1]
agrinb has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
<ericwood> >> ("1." + "99999999"*999999999).to_f
<eval-in__> ericwood => argument too big (ArgumentError) ... (https://eval.in/209620)
<ericwood> it's a really large number
cmckee has joined #ruby
<phat4life> this is ruby 1.9.3
<cek> don't you find fun that break and next behave equal to return in a lambda block?
<pipework> Not enough application memories.
<ericwood> >> "99999999"*999999999
<eval-in__> ericwood => argument too big (ArgumentError) ... (https://eval.in/209621)
<jenrzzz> you should download some more RAM
<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
<ericwood> honestly, that's too huge for anything
<ericwood> don't do that
skolman has quit [Ping timeout: 244 seconds]
<cek> >> proc { break(123); 234 }[]
<eval-in__> cek => break from proc-closure (LocalJumpError) ... (https://eval.in/209622)
<ducklobster> borodin: http://shop.oreilly.com/product/0636920019664.do Sinatra Up and Running (O'Reilly, written by Konstantin Haase, creator of Sinatra)
<phat4life> i only ran it for science
claymore has quit [Quit: Leaving]
<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
<pipework> phat4life: The problem is you don't have enough memories.
<ericwood> "99999999"*999999999 is "99999999" 9999999 times
<ericwood> that's a lot
<jenrzzz> what if you pass it to BigDecimal.new instead of calling #to_f?
<pipework> ericwood: And then represented as a float.
<phat4life> the point is, it doesn’t throw an exception it just runs until my system goes into kernal panic
<jenrzzz> on OS X?
<phat4life> yosemite
<phat4life> and mavericks
<phat4life> its ruby 1.9.3 though so it doesnt’ really matter
<phat4life> mri
obscured has quit [Quit: leaving]
jasooon has quit [Ping timeout: 255 seconds]
<ramfjord> should it really be too big?
<ericwood> it's the string allocation that's hurting you
<ramfjord> only 80 megs of characters
<ericwood> it's allocating that "9999999" string 9999999999999999 times
<ericwood> I'm just guessing
benzrf|offline is now known as benzrf
borodin has quit [Ping timeout: 246 seconds]
<ericwood> so, to store that string it's 7.2GiB
<ericwood> assuming ascii
<ericwood> which is not the case, so double it
<oniMaker> Is there a ruby shortcut for ANDing a variable plus another variable together? i.e. foo = foo && bar
<phat4life> must be more than that, i was using 12GB of swap before i killed the process
<oniMaker> maybe foo &= bar or something?
<ericwood> yeah, it'd be 7.2*2
<ericwood> so that makes sense
DLSteve has joined #ruby
<phat4life> ooohhhh my coworker left his computer unlocked, i am chaning his terminal font to comic sans
<Fire-Dragon-DoL> phat4life: lol
endash has quit [Quit: endash]
<Fire-Dragon-DoL> phat4life: if you want I have a zero-space-font
<Fire-Dragon-DoL> you may want to use that, lol
<phat4life> no time i must not be caught
<havenwood> phat4life: when you have time, alias ls to repeat the font change then ls
alem0lars has quit [Quit: Quit !]
<fartface> Or set a keyboard shortcut for "d" from character "f"
Pupeno_ has quit [Quit: Leaving...]
Fire-Dragon-DoL has quit [Quit: Leaving.]
<phat4life> i also like to pipe random characters to say as a background job
<fartface> I'd say switch left and right mouse clicks, but I'm guessing you don't use the mouse much
allsystemsarego_ has quit [Quit: Leaving]
gauke has quit [Quit: gauke]
DLSteve has quit [Client Quit]
a1ph4g33k has joined #ruby
DLSteve has joined #ruby
<havenwood> phat4life: alias cat="echo \"(=^.^=)\""
<phat4life> oohhh i like that one
momomomomo has joined #ruby
agrinb has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
<havenwood> phat4life: or: echo 'alias cat="echo \"(=^.^=)\""' >> .bash_profile
skolman has joined #ruby
<havenwood> last a little longer ;)
doodlehaus has quit [Remote host closed the connection]
aspires has quit []
aspires has joined #ruby
linojon has quit [Quit: linojon]
Asher has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
tonybird has quit [Ping timeout: 245 seconds]
qwyeth has quit [Quit: Leaving]
<benzrf> fun trick:
jottr_ is now known as jottr
<benzrf> echo "echo 'sleep 1 >> ~/.bashrc'" >> ~/.bashrc
sambao21 has joined #ruby
nateberkopec has joined #ruby
<waxjar> why would you do that? :o
<jhass> function cd() { mkdir -p "/tmp/$1"; builtin cd "$1" }
* pipework gets benzrf a fun rock to play with for his birthday
iamjarvo has joined #ruby
gr33n7007h has quit [Ping timeout: 265 seconds]
weemsledeux has joined #ruby
<benzrf> jhass: lol
maestrojed has quit [Quit: Computer has gone to sleep.]
<benzrf> waxjar: for your eneimes
gregf1 has quit [Quit: WeeChat 1.0.1]
fartface has quit [Remote host closed the connection]
<waxjar> lol
linojon has joined #ruby
kireevco has quit [Quit: Leaving.]
agrinb has quit [Remote host closed the connection]
peta_ has joined #ruby
sailias has quit [Quit: Leaving.]
jenrzzz has quit [Ping timeout: 250 seconds]
poulet_a has quit [Quit: Quitte]
maestrojed has joined #ruby
<mg^^> ok, that cd function is just pure evil
<jhass> it's missing a /tmp/ though
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thumpba_ has quit [Ping timeout: 244 seconds]
aspires has quit []
postmodern has quit [Ping timeout: 265 seconds]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
phat4life has quit [Quit: phat4life]
<mg^^> true, but the spirit of it is all there to see
phat4life has joined #ruby
m8 has quit [Quit: Sto andando via]
<mg^^> also, cd / would land you right in /tmp (when corrected) and that would be fairly obvious
SilkFox has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
aspires has joined #ruby
endash has joined #ruby
<mg^^> I may need to do this to our FNG to test his troubleshooting skills
j416 has joined #ruby
gr33n7007h has joined #ruby
a1ph4g33k has quit [Quit: Leaving.]
<phat4life> sounds like a good interview question
SiliconDon has quit [Quit: ...]
<oniMaker> How can I get the pid of a shell command started in the backround with & ?
iamjarvo has joined #ruby
<oniMaker> using system, backticks, etc.
<phat4life> oniMaker: i know this one sec
govg has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> oniMaker: in ruby or in shell?
<oniMaker> zenspider: in ruby
<phat4life> oniMaker: backtickets return a value
<phat4life> you can get the pid from that
<oniMaker> ok, I'll check that out
<phat4life> or is it $?
<oniMaker> $?
<phat4life> i think $? is a global variable
<oniMaker> I saw that before
<zenspider> backticks return the string of the output of the cmd run
<oniMaker> or maybe it's better to name the process? Is that a thing?
<mg^^> Isn't $? the exit code?
<zenspider> $? is the exit code of the cmd run
Affix has quit [Ping timeout: 260 seconds]
SilkFox has quit [Ping timeout: 240 seconds]
<mg^^> I don't think backticks can give you a PID for the subprocess
<phat4life> t = `do something`; raise "r #{$?} --- #{t}" unless $?.success?
<oniMaker> you can name processes with `exec -a foobar` right?
einarj has quit [Remote host closed the connection]
<phat4life> oniMaker: you can get the pid from t = `do something`; raise "r #{$?} --- #{t}" unless $?.success?
<oniMaker> mg^^: I can use system, that's fine
Haiiro has quit [Max SendQ exceeded]
davidhq has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
<phat4life> wait you need to add 2>&1 i beieve
Haiiro has joined #ruby
<oniMaker> & puts it in the background
<phat4life> so id would be t = `do something 2>&`; raise "r #{$?} --- #{t}" unless $?.success?
hobodave has joined #ruby
<oniMaker> `do something 2>&1 &` yes?
<jhass> oniMaker: I think you want Kernel#spawn
<phat4life> yeah
<mg^^> yeah, what are you trying to do, exactly?
<mg^^> We should have asked that first :)
Affix has joined #ruby
marcel has quit [Ping timeout: 255 seconds]
<zenspider> open3/4 is also an easy way to get this done
<oniMaker> running a small php server as part of testing
<zenspider> mg^^: yes, that's a much better question
<oniMaker> like php -S localhost:8000 httpdocs/index.php &
<oniMaker> just want to be able to kill it afterward
a1ph4g33k has joined #ruby
marcel has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gr33n7007h has quit [Quit: Leaving]
<jhass> so far that sounds like you want to add an alias or function to your ~/.${SHELL}rc
<mg^^> So you want to run a program in the background, and be able to kill it if it takes too long?
gr33n7007h has joined #ruby
<mg^^> and also capture the output, presumably
<oniMaker> mg^^: no, I want run that program, run the tests, then kill the program
<oniMaker> no, output doesn't matter
b3itz has joined #ruby
<oniMaker> it looks like Kernel.spawn will do it
<mg^^> Well, for that I'd use fork and exec, being an old unix guy
DLSteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Morrolan has quit [Ping timeout: 256 seconds]
<havenwood> oniMaker: ruby -run -ehttpd httpdocs -p8000
<oniMaker> havenwood: can you run a php application that way?
<havenwood> ah, php
<jhass> oniMaker: Kernel#spawn gives you the pid, just run Process.kill pid once you're done
Morrolan has joined #ruby
<oniMaker> jhass: perfect, thank you
<havenwood> oniMaker: i didn't catch the php, wrongly assumed html
<oniMaker> havenwood: no worries
a1ph4g33k has quit [Client Quit]
<b3itz> hey guys, working on an assignment and I keep getting "unexpected end, expecting keyword_end" http://pastebin.com/xg1wVULP help!
hobodave has quit [Ping timeout: 245 seconds]
<b3itz> just learned ruby the other day lol. obviously not fluent
volty has joined #ruby
<mg^^> yeah, spawn basically combines fork+exec into one operation, that's definitely what you want
<oniMaker> mg^^: awesome, thank you!
msmith has quit [Remote host closed the connection]
<b3itz> oh the error is throwing on line 77
msmith has joined #ruby
msmith has quit [Remote host closed the connection]
<zenspider> b3itz: indenting your code properly is important for understanding
<mg^^> you've got an unbalanced if or something
<zenspider> b3itz: line 7 has a while
<zenspider> looks like there is no end for it
<jhass> oniMaker: my guess is the missing condition on line 58
<zenspider> if you indented properly, it would be obvious
<jhass> bah b3itz ^ sorry
<oniMaker> mg^^: so with that, I don't need to redirect output with 2>&1 or put it in the background manually with & right?
<havenwood> b3itz: indent with two spaces
a1ph4g33k has joined #ruby
<mg^^> oniMaker: Nope
<zenspider> and yes, 2 spaces per indent
<oniMaker> mg^^: cool, thanks
TPBallbag has joined #ruby
<b3itz> zenspider: derrrrr I don't know how i missed that :) thanks
bMalum has quit [Quit: bMalum]
<zenspider> simple newb mistake. we've all made them
<mg^^> I thought I'd hate that little 2 space indent when I started using Ruby
robbyoconnor has quit [Ping timeout: 265 seconds]
<havenwood> b3itz: typically rubyists set the browser to two-space soft tabs, so hitting tabs enters two spaces
<mg^^> coming from a 4-space world
<phat4life> i never mad a newb mistake. i was born a pro
<havenwood> s/browser/editor
<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
<mg^^> but I really like it
<phat4life> i use sublime text
<phat4life> you can have it show spaces and whitespace
<jhass> havenwood: just wanted to ask you how to do it to my browser :(
<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
<jhass> oniMaker: write a pidfile if you need that functionality
<zenspider> oniMaker: that sounds like a mistake. you want to know when the pid dies
<oniMaker> jhass: good point
<mg^^> I agree with jhass
<oniMaker> ok... I don't know enough about managing processes to know much about naming etc.
<mg^^> well, it's complicated actually
<b3itz> thanks havenwood
b3itz has quit [Quit: Page closed]
<mg^^> writing the pid is actually not sufficiently safe
doug1 has quit [Ping timeout: 256 seconds]
<mg^^> for all purposes
<mg^^> but for *most* purposes it's fine
<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
phat4life has left #ruby [#ruby]
<mg^^> if you go blindly killing stuff, you might get the wrong thing
<jhass> systemd-run to the rescue :P
willywos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
linojon has quit [Quit: linojon]
<oniMaker> mg^^: ohh ok... then this isn't a candidate for a pid file
<oniMaker> if the process gets killed when the script crashes/ends already
GPH|work has quit [Ping timeout: 240 seconds]
<oniMaker> just storing the pid as a variable so I can kill it within the context of the script should be fine
tonini has joined #ruby
<jhass> yeah
skolman has quit [Remote host closed the connection]
sambao21 has joined #ruby
<mg^^> yeah, that's generally fine for the vast majority of purposes
postmodern has joined #ruby
endash has quit [Quit: endash]
skolman_ has joined #ruby
<oniMaker> ¡muchas gracias!
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
a1ph4g33k has quit [Remote host closed the connection]
timonv_ has joined #ruby
Jasey has joined #ruby
a1ph4g33k has joined #ruby
Jasey has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
kirun has quit [Quit: Client exiting]
Kricir has quit [Remote host closed the connection]
davidhq has joined #ruby
Kricir has joined #ruby
tonini has quit [Ping timeout: 250 seconds]
skolman_ has quit [Ping timeout: 255 seconds]
kireevco has joined #ruby
axl_ has quit [Quit: axl_]
bhaak has quit [Ping timeout: 260 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
timonv_ has quit [Ping timeout: 258 seconds]
davidhq has quit [Client Quit]
renderful has quit [Remote host closed the connection]
jasooon has joined #ruby
RichardLitt has joined #ruby
Kricir has quit [Ping timeout: 244 seconds]
snath has quit [Ping timeout: 245 seconds]
a1ph4g33k has quit [Quit: Leaving.]
bhaak has joined #ruby
jheg has joined #ruby
a1ph4g33k has joined #ruby
jasooon has quit [Ping timeout: 244 seconds]
nfk has joined #ruby
davidhq has joined #ruby
renderful has joined #ruby
jheg has quit [Client Quit]
nfk has quit [Client Quit]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
soulcake has quit [Quit: Quack.]
renderful has quit [Remote host closed the connection]
soulcake has joined #ruby
skolman has joined #ruby
mary5030 has quit [Remote host closed the connection]
echooo has quit [Read error: Connection reset by peer]
cmckee has quit [Ping timeout: 245 seconds]
mallu has joined #ruby
<mallu> can someone tell me how I can achieve this? http://pastie.org/9671351
<shevy> mallu with *
<mallu> shevy : can you please expand on that
<jhass> first, second, third, forth = test
<shevy> >> test = [1, 2, 3, 4]; first, second, third, fourth = *test; second
<eval-in__> shevy => 2 (https://eval.in/209653)
<jhass> no need for the *
stunder has joined #ruby
<jhass> I don't see the benefit over test[0], test[1], test[2], ... though
linojon has joined #ruby
<mallu> thanks guys
<mallu> is it possible to do test.each do ?
<jhass> sure
SilkFox has joined #ruby
snath has joined #ruby
<shevy> mallu yeah
<shevy> mallu you iterate over your Array that way
cmckee has joined #ruby
<mallu> test.each { |n| first = n second = n}
<mallu> Is it like that?
<shevy> you forgot a ; there
<shevy> and another problem is that this will be local to your {} block
<jhass> not sure what you want to achieve with that
<mallu> I want to be able to call first below in the script
a1ph4g33k has quit [Quit: Leaving.]
<shevy> mallu well the way above works or?
<shevy> first, second, third, fourth = test
<jhass> where does test come from?
<shevy> from mallu
<shevy> :-)
renderful has joined #ruby
<jhass> well, if you define it as literal, why not assign the locals in the first place
larissa has joined #ruby
<shevy> mallu in general, if you already have an array than you can use it lateron
<mallu> test is an array coming from a search I'm doing. Search is retunring its result as an array
<shevy> so doing "second * third" is the same as "test[1] * test[2]"
iamjarvo has joined #ruby
<mallu> but I am not sure how many in the array
<jhass> then you probably want to iterate over it
<shevy> you can query the amount of elements your Array has by applying the method .size
<zenspider> mallu: either your problem description is bullshit, or you do know how many are in the array
<shevy> and the positional index method [] or .fetch will work
<zenspider> line 1 defines test as an array literal, which means it defines how many things are in it
stunder has quit [Remote host closed the connection]
<zenspider> line 5-8... define a FIXED number of local variables, so you HAVE to know how many are in the array
Eiam has joined #ruby
<mallu> zenspider that was an example.. I'm searching for instances in AWS and not sure how many are in the array
<zenspider> mallu: then your original problem description is bullshit
<jhass> zenspider: we're already past the "bad example" stage
<zenspider> mallu: what are you ACTUALLY trying to do?
Notte has joined #ruby
<mallu> zenspider maybe you should see ... at the end of the array
renderful has quit [Ping timeout: 245 seconds]
<zenspider> mallu: maybe you should describe your actual problem instead of a bullshit abstraction that doesn't actually represent your problem
diegoviola has joined #ruby
<zenspider> assigning an "unknown amount" to locals isn't going to work
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
graydot has quit [Quit: graydot]
havenwood has quit [Remote host closed the connection]
sepp2k has quit [Read error: Connection reset by peer]
wedgeV has joined #ruby
<Igneous> oh crap
<Igneous> can I not use named parameters with jruby?
<shevy> I don't use jruby but I am going to say... no!
pietr0 has quit [Quit: pietr0]
<zenspider> Igneous: named parameters? do you mean method arguments or something else?
a1ph4g33k has joined #ruby
<Igneous> oh yeah I guess they're usually called keyword arguments
<Igneous> sorry
a1ph4g33k has left #ruby [#ruby]
<zenspider> ah. I don't know where jruby is with 2.x compatibility atm
<zenspider> ah. they're only up to 1.9.3 according to jruby.org
<zenspider> so, no. not yet
SilkFox has quit [Ping timeout: 244 seconds]
graydot has joined #ruby
Scotteh_ has joined #ruby
volty has left #ruby ["Konversation terminated!"]
havenwood has joined #ruby
enebo has quit [Quit: enebo]
klaut has quit [Remote host closed the connection]
tallgirltaadaa_ has joined #ruby
Scotteh has quit [Ping timeout: 246 seconds]
tallgirltaadaa_ has quit [Client Quit]
<Igneous> ah, just had to set compat.version to 2.0
tier has joined #ruby
<Igneous> I guess I'm enabling experimental shit but whatever, seems to work
Rollabunna has joined #ruby
Notte has quit [Remote host closed the connection]
stunder has joined #ruby
postmodern has quit [Ping timeout: 265 seconds]
marr has quit []
slbmeh has quit [Ping timeout: 258 seconds]
<pizzaops> What exactly is this syntax in Ruby? It's hard to google: 2<<50
Rollabunna has quit [Ping timeout: 265 seconds]
<eam> pizzaops: bit-shift left
<eam> same as in C
<pizzaops> oh. I have no idea what that is.
<eam> well, it's the same as 1<<51 !
<pizzaops> lol
fmcgeough has joined #ruby
<pizzaops> well now it's totally clear to me
fmcgeough has quit [Client Quit]
<tmoore> pizzaops: syntactically that's just calling the << method on Fixnum http://www.rubydoc.info/stdlib/core/Fixnum#%3C%3C-instance_method
IcyDragon has quit [Ping timeout: 265 seconds]
<eam> pizzaops: you're familiar with binary representation of numbers?
<eam> 0010 is the number two?
IcyDragon has joined #ruby
<pizzaops> I am familiar with binary yes
<eam> << shifts all the digits left (multiply by two) that many times
chipotle has joined #ruby
<eam> so <<1 is similar to * 2
<pizzaops> interesting
ghostmoth has quit [Quit: ghostmoth]
<pizzaops> So 1<<1 = 2 because it goes from 00000001 to 00000010?
<pizzaops> is that correct?
<eam> yes
<pizzaops> cool, I get it tnow, thanks
<eam> >> is shift right, or integer divide by 2
<eval-in__> eam => /tmp/execpad-b556a60c646f/source-b556a60c646f:2: syntax error, unexpected keyword_or ... (https://eval.in/209656)
<eam> oops, heh
<eam> there are some differences between this and real math, but mostly irrelevant in a high level context like ruby
msmith has joined #ruby
skolman has quit [Remote host closed the connection]
<benzrf> >> 0.1 + 0.2
<eval-in__> benzrf => 0.30000000000000004 (https://eval.in/209658)
skolman_ has joined #ruby
havenwood has quit [Ping timeout: 246 seconds]
graydot has quit [Quit: graydot]
postmodern has joined #ruby
iceden has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
momomomomo has quit [Ping timeout: 256 seconds]
skolman_ has quit [Remote host closed the connection]
skolman_ has joined #ruby
Dude007 has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
Dude007 has joined #ruby
skolman_ has quit [Remote host closed the connection]
thsig_ has quit [Remote host closed the connection]
skolman_ has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
jasooon has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
skolman_ has quit [Remote host closed the connection]
<existensil> something wrong with rubygems? getting: Gem::RemoteFetcher::FetchError: Errno::ECONNREFUSED: Connection refused - connect(2) for "bb-m.rubygems.org" port 443
kaspergrubbe has joined #ruby
skolman_ has joined #ruby
thsig_ has joined #ruby
thsig_ has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 272 seconds]
kireevco has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: i've nodded off.]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kaspergrubbe has quit [Ping timeout: 255 seconds]
DrCode has quit [Remote host closed the connection]
DrCode has joined #ruby
Axy has joined #ruby
Axy has joined #ruby
pietr0 has joined #ruby
skolman_ has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
skolman_ has joined #ruby
reinaldob has joined #ruby
Mia has quit [Ping timeout: 255 seconds]
iceden has joined #ruby
reinaldob has quit [Read error: Connection reset by peer]
reinaldob has joined #ruby
ubra has joined #ruby
ubra has left #ruby [#ruby]
ubra has joined #ruby
jhass is now known as jhass|off
weemsledeux has joined #ruby
sailias has joined #ruby
icarus has quit [Remote host closed the connection]
aspires has quit []
byprdct has joined #ruby
codezomb has joined #ruby
cmckee has quit [Ping timeout: 260 seconds]
mary5030 has joined #ruby
skolman_ has quit [Ping timeout: 265 seconds]
moritzs has joined #ruby
rylev has quit []
NoNMaDDeN has joined #ruby
cmckee has joined #ruby
cndiv has quit [Ping timeout: 245 seconds]
peta_ has quit [Quit: peta_]
ephemerian has quit [Quit: Leaving.]