mattmcclure has quit [Quit: Connection closed for inactivity]
fijimunkii has quit [Quit: leaving]
havenwood has quit [Ping timeout: 240 seconds]
fijimunkii has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
abdulsattar has joined #ruby
kitak has quit [Remote host closed the connection]
voglster has joined #ruby
AussieDownUnder has joined #ruby
philcrissman has joined #ruby
chipotle has joined #ruby
kitak has joined #ruby
<voglster>
is there a more ruby way of doing something like this? (1..length).map { random_character }.join ... seems wordy and bothers me.. basically I am creating a random "length" character string
<maasha>
apeiros: In fact, I should think such an example a worthy demo of your gem.
<apeiros>
maasha: I'd start a fixed number of forks, write a control object which queues up jobs and feeds a new job to a fork which has finished a job
monkegjinni has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
<Steve445>
anyone able to suggest a good calendar builder?
sk87 has joined #ruby
<Steve445>
looking for something to build out a html calendar that i can place daily "dollar values" into
<certainty>
Cork: is that triple DES?
RyanV has joined #ruby
<maasha>
apeiros: yeah, and the control object keeps track of finished jobs how?
<Cork>
certainty: its a character scrambling algorithm used by vnc
<apeiros>
maasha: either async/callback style, futures, or blocking
<maasha>
Steve445: checkout ruby toolbox
<Cork>
(and no it isn't even remotely secure)
<Steve445>
i did
<Steve445>
nothing special popped out
relix has joined #ruby
<Cork>
certainty: but it is what client sends so i need to generate it
<apeiros>
maasha: 4th alternative might be key/value-like, i.e. when you start a job you have to provide an ID (or get one) which you can use to check the result
CpuID has joined #ruby
<certainty>
Cork: ah ok, then I have no idea
<apeiros>
personally I prefer future & blocking styles. can be done both. See Fork::future and Fork::return
* apeiros
brb
funburn has quit [Quit: funburn]
blom has joined #ruby
jjbohn has joined #ruby
<xyloprexam>
] # * : V B < C w N D z D N S ~ y \ q m h g 2 , C ? t j ? u Y E Y C o G + w y N : , ~ %
<xyloprexam>
[ B d } K r ] S S ' i K u A ^ " u > x : w * $ ] | f Q E } 7 - u k # : _ { h ? 8 W D v = H X C \ 0 f M +
<xyloprexam>
U Z m
<xyloprexam>
@ i L @ j
<xyloprexam>
Y n J g z i ` A F ( m ) V R \ b Q ( 0 p C c ! ' < a | @ D o { g p U O n 5 p 0 k m < + x | ^
<xyloprexam>
F @ ' <
<xyloprexam>
* + * L q u C < < l i : k & p i M D L w X W I + S ' t S & . v ; H * u x . & { p + E { x M
<xyloprexam>
~ n s h
<xyloprexam>
{ j { Q h b N g a T o + - 8 " N _ _ / U e s " m E G X _ , ^ _ \ K b ! I | = Z ! _ S ' ' F B H
<certainty>
erm
<xyloprexam>
I n r 2
<xyloprexam>
X { b h ^ " h { i E Y m e ` ^ & E D G J 2 / * Z } Y | 4 N r Y q x M n ( : R a O G ^ ~ m n a f T
<xyloprexam>
; H ^ \
<xyloprexam>
N g n R ? K \ h ^ X v 9 ! A M l d x : - ( r : x O g X / R C f U Y - < T ; W A ; n } @ {
<xyloprexam>
- m s $
<xyloprexam>
S h + ( P H U B f % e u X n A V n } , 8 P x Z < . O . 3 y 6 J o ' B ~ # G { E - # G u " + g M u - K &
<xyloprexam>
e " "
<xyloprexam>
O / ; i a S + s g ) * h E g X X ^ / + K \ q E Q . ] Z | t G < o / y 3 2 m H a A 9 \ e [ f y 2
<xyloprexam>
x y f $
<xyloprexam>
( - ^ & > f E / { \ Q q ^ ` + k * ` D . ` k l ( F U S C ) d 6 ] h C k ^ L $ | < & K f @ ' @ b
<xyloprexam>
8 { w n
<xyloprexam>
} @ - q l ; | K P : v H U i / ] j d } " V Z U M = S l } 7 X w s \ | f A J 9 : / 0 x l : 9 z
<xyloprexam>
G O m e
<xyloprexam>
J I M " { ? t ! 1 Z E A H S F i , o - ( r < H T $ ] I ' p o r k t = @ , % r F ) 6 * ; C _ <
<xyloprexam>
( o c
<certainty>
apeiros: ?
<xyloprexam>
$ } y U . G i n @ ; < R P D a c V + t K ! Z s S ( c g U B ? B H H C Y , @ | X ) j P l F u R f
<xyloprexam>
g G i k
<xyloprexam>
h s c ~ Z # D $ p ) f Y ; Z Y ? y v | q | y O s . 1 ` S ? / * > ; F T s L e 0 5 z ) < u e v
<xyloprexam>
, t j M
<xyloprexam>
` E h U Z } h < r f w c a E ! ( Q [ o a w R d . J ( = K 9 | Y & T } y X " j P _ \ q k % L u X
<xyloprexam>
w c j V
xyloprexam was kicked from #ruby by apeiros [xyloprexam]
xyloprexam has joined #ruby
<xyloprexam>
6 R c &
<xyloprexam>
R * j @ % ' v * \ G L a v W I S 1 g * U h + q { e F } s C W a ~ # l [ I [ : 2 ; R * x } ^
<xyloprexam>
! ^ # @ P
xyloprexam was kicked from #ruby by apeiros [xyloprexam]
<certainty>
thanks
<apeiros>
man, I wanted to go do something. f'king f'ktard :(
* apeiros
now really brb
<crome>
hah
Steve445 has quit [Quit: Steve445]
userx has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Excess Flood]
abdulsattar has quit [Ping timeout: 255 seconds]
robbyoconnor has joined #ruby
jjbohn has quit [Ping timeout: 240 seconds]
<maasha>
another vanquished ASCII ninja
RaCx has quit [Ping timeout: 255 seconds]
JasmeetQA has joined #ruby
RaCx has joined #ruby
<tobiasvl>
lol
mrnugget has joined #ruby
tonni has quit [Remote host closed the connection]
blom has quit [Ping timeout: 246 seconds]
cj3kim has joined #ruby
sdouglas has joined #ruby
Xeago has joined #ruby
doesntmatter has joined #ruby
<doesntmatter>
Rum daddy doo daddy dee.
<doesntmatter>
blaggy bluck to the bluck a leckel blickel! Trax a mix reg norge. Chak chip chilli lip. Maggity heg hole potatoe. bluggity blik bag to the bluk a blicky bluk. Wunna mah loe mic tatum. wunna mah low mic tatum! reggity dick ash. busta hurts o dip we dip, my oh my we flip we dip. put the foon most own your blip, when I dip you dip we dip
jprovazn has quit [Ping timeout: 246 seconds]
<doesntmatter>
i waas skoggin along when something took my eyes away from the ground kind of like mad debbies banana cake 8 marks out of ten (as near pefection as human can achieve), when she gets manic-2 she cooks twenty at a time, and then brings them to the homeless shelter at 5am in the morning.
<doesntmatter>
Yo'in what we saying with our chimp out spam! Is anyone out there a rump rastin rider? Rem dem lie-card. Shodie Shum Bam. Ego shocking shim sham Ralla glecky glue barg. To jella, too jealous, to jellify you Has anyone juckered the bloopa licta lupper?
<doesntmatter>
Fredder reader roadie! Fredder, reeder! Freeder reader roadie! Choo Fornex Moon! Grime Read Blagh. Hucka Lucka Jenkinship. Rooby boop bab Snow snaw snobophone Hells a fuckin foo! My suddenly chucka lucka ling way! Blub up your room, black ass bloom! Rye demminy yay! Fuckin buckin bitchhole!
<doesntmatter>
get a electric egg cooker and get a power inverter. regger duck a licker! Ridin my jolts, ridin my shoes. Anyone got an electrifier chubber? i got the ab doer! I've got an electric egg dicker! Egga trella licker! Fuck duck dick dad!
<doesntmatter>
Reckity knick knack the rep tep hegger. Isn't it awful how it's jeckally jewish? Poona mah nuff miff the peenified Tank the teeius tanker. The shiny dot in the middle of a line, ruck tuck tegger, ruck tuck time. Gigga McKompfrin. Rum dicka day material map.
claymore has quit [Ping timeout: 264 seconds]
<doesntmatter>
Partinks spee spaga speel scrap. Ruda Trooda. Ejection request. Heffy the jello wup. Juffo-wup! rab locid rebbasmoth. The Proteus Animal Plannable. Poo da Boo! need 10-15 people straight Groaning my grurch nords. Ruh ninna knaw knife
<doesntmatter>
agrillio mellish. Blakes my bog. kedda mah go go mageezik Renna manuck to the ruthafied sneffal The Rump Shaking Rider Crew - Fuck You! Wren a men a menna menna moo, filling my jolts and filling my shoe, plenk a peek a pokie zal nawl knife
<doesntmatter>
Shaar nag lililly linomp nip. Many mini minotaur taurs, hate tar tar sauce. I am a robibbob meme. Have you ever thought about where the bird goes? Squirnish Mernish. Jelly jolaggalan joo! Chuh lap lap rillip. Oh I grew three years. I'm old now.
<doesntmatter>
Does anyone heck teck the rooga beega bagga? Hebber master hoon a ferr fee. Hilly a mackhole. The shiny dot in the middle of a liddle light, of the middle of a lep lep lains! Gotta get that schit ass shcrap biteoad. Ruproudj a malef loo
<doesntmatter>
Moistie bather. riberian schmecklef Mulla Malee loo lup the new flood wars. Chuddy dip, chuddy dip, chuddy microchip. Bucka lucka loo, bucky lucky blay. Bucka lucky blay lee.
<doesntmatter>
Burpaline: The wonder world. Salmy magoo goal greggats Rump duh duh duh dump, duh duh duh demp doop dump, runna nuh nah Riggity ass gaggags i nick Roddan raldwell Roady carewell reggal mahole Rup tup shmelly smelly shmebb ub. Roady farewell rose bose mahaggal. A pocahontas watch
<doesntmatter>
Blubbity ash hoosh her mellopath. a Maticake for my buddy andy Oh we-heh-heh-hell I'm thinking about the greg nargs, I'm thinkin about you! End midal too walkin' with a dolphin. I went up that street, you went up another street, we all up the presidio. I'm goin out with arsenio!
<doesntmatter>
i wrote my life story on my poop pad. one of the greatest art exhibits of 1999 was in a new york museum of art. In it, cow poop or fecal matter was put on a copy of the painting called "The Last Supper". This was thought to be a form of modern art. chumpin up the rears. Rubb blillick bath.
<doesntmatter>
The shiny dot in the middle of the light blue circle or ring is glowing silver in color like steel or real silver. Eating pings, eating pies, Snow quibbicker bather I'm a niner! That's right I'M A NINER! Dipoke when we dip oh blip we dip, chucka hand oh blip we dip. yxoukcil polk jhaggel.
<tobiasvl>
jeez
<doesntmatter>
Whether muh luck lick whither spoons. wups to the umpteenth hicka low daggal. cckocket tlopres redda ropres HUCK DICKILI DOON! Feelie wheelie whilla maluck lick. Slimy boo beggats. I'm saggat I'm zeggat ziggurats. Poop is pee. My name is Mr. Pochahantas. I'm a cartoon or movie character.
<doesntmatter>
They put me on a watch today, sometimes I pee sometimes I'm James! Whoodas pratts my nig names chats. Challa-hoe banchee with a proodas made. I'm chilly I'm child ugly daves don't go wild. My wild, ugly boss suddenly became thin frint glint chip. chip chip microchip. chip chip microchip!
<doesntmatter>
My little greg narg, My little greg narg, I have freedom of speech rights! My little greg narg, my little greg narg, you wish I didn't have rights!
<doesntmatter>
Nockaragathan dick slam! Chilly chilla choe-lal-lip! Scuh loo lathian buck seats Moan mlutha mah-lee black mam. rudda doo din-ump dah doo-nah-nah
<doesntmatter>
Waar chawecka wipth wella jalipth All kinds of |\|iggers and buffy-oh juice! I'm bagging ack the hag. Ran a plucky plunky item plains! Bagging the nig nag. Bagging like green grags.
<doesntmatter>
How do you wreck liss me. Those fuckin' farts. Wonter... a cloody a millickal bath. Slurpy slick ass lots of pep It's like scotch pithy. I'm thinking about ruggity greggal. Juvenile detention centers. Slurpy pitch pot pee. No likes. Wobbity willow willa whop. Willy wallow traps. You can combine one or more of the darameters.
<doesntmatter>
fuckin bone screllalidge moink. ruggity fucker fagger. rum dum dacka lacka rum dum jay Go out with jay, another blue jay we fixed my astercoil plather I'm hickin' my dagger Rum dickily toon witherspoons. I'm a falcons baleiva work with the yake my 7'9'er forever tumchy tither
<doesntmatter>
I'm trhinking about the rich ass mechgeggals. I'm thinking about the rich ass micgeggals. Cham cham chack a leek a horn teen! Poot wardy whail wo hootin tood! Holla hoolah hope, laser whip!
<doesntmatter>
Rabby dab runna ma nay I'm dabster deester and I'm here to say... rump tump tigga ligger rump tump tay! Frucky duck with the wenner hoopler wheel Cruckity puck on an ass hole Death bones doesn't like dlo flo.
<doesntmatter>
Does anyone want to yikkel up the gecko? Chickity china the chinese chicken! Fucking gregging lick piss ass cunt. Haggle hilla horst worst redneck. Buster hymin Juvvy joof jevuv. Reggy McJellico. Into that pussel. No |\|iggards. Your ass nards turned into a POLLEN GRAIN! Ramis blavely reese seats.
<doesntmatter>
Frucky duck with one of those chin ladin traps. Rudder smudge wellicker wheel! Run tun ton reddal shmip foe whip woe wack. Rump tump tigger ligger runnel scrath. Doo nah ninnel, nih, nee nat noe. Runt dunt dinny! Rump tump chickin leaker ladin straps... Bam bam glacky I'm degga damn.
<doesntmatter>
Ruh hent a lilla hole lieu. The craig mattican. BITCH IF YOU DON'T TAKE DOWN THAT WEBCAM I AM KILLIN' YOUR DAMN DOGS. Electromotive force. Razh ta relley lep ta mezh. Sh Soosh shzhs, seesh seesh-sheesh shoosh shzh shshs shshs. chicawith hedgehog. Ram bram bellalow, brown rye rom one day jeezh cheats!
<doesntmatter>
Drederick mick taid with a drederick mick taid with a .. with a... drederick mick taid! Is anyone here the funkistard corn. I boo basted I'm feelin' gleem. Rujjidy jallisher squillidger. fuck you titty suckin' two balled bitch with a fat green clit. Rark tah hoohk tah blanky roop roop duggan.
<crome>
do it moar!
<doesntmatter>
Rigg ass graggan Arewenoo.. Arwenoo zee-oo zaya. Chinna 2olombia adaa wella shrek raflood lool. Ground rearing some groans. I'm huff tuff reffa leffa lurf nords. I'm just like... vanilla ice foe davvity wheel barow Exparly ex preggo Is anyone out there a rig ass graggan? lelly in mah kellar WRESTLING'S FAKE!
<doesntmatter>
Pargastian wildly nig nargs. smeggalty dellets Far foo faqqin Digital damage. Where wally niqqs. It's coast to coast night. Hoke a lup! Free faq fornag! Puck a leek a lup to lup round tround. Wormser marrial niqs. El delphin trilaxal. Blanking bluck to the black a lickel bleck narge.
<doesntmatter>
Puggy muggle maggity ass riggle ma hole. Buck a waath ess wheel wall! Bustin' room past tin! Buckin' room past in! A harnaly scrary o mep. Rons raplaisher pa noans rebble dibby dump dimp gabble dak. A wristafiable pluckin' Blacking it up to the reng teng blickhole. I kleb to the sand of the blicka rickin time.
<doesntmatter>
Rekkal theh mick thuck the rep tep taistral. Wallif ma wallis wallets. Is anyone here a jelly-o shkrapper? Bam glacky I'm mega man! Has anyone here ram baisted before? The koost a heeckil pludgeon. Feathers round rick gring air! Liquid cereal's good for you. The mummified goblin. Pallaj oh plex.
<doesntmatter>
Gotta set up for the suicide slide Gamma mareenmon. I've got more scrap ass shit than you can balieve with. Sally McDuffo whip. after secv on a sp00ky stream F/\gga foo regga makegg mahoun. Its all fun and games until the power goes out. Mennima Pay Street. rubbbity dib dadge pickard. Lelly in ma kellar.
<doesntmatter>
I'm on recky o gregor street. Miggity ass raggan. Boyar bod. Pellicka pool wiss wall. Watching bynum bukkake the smelts Haggity ass mahown. Trukkity rep roon, the kitz a kickel plujin. Trellalickers and burb street. Huck a dickin' dime.
<doesntmatter>
Float a pelly plaack ass. You're a digital dumbass. Smuggy jaloo meff jillahole. Dick, dick, dick dickaloo! Dick dickaloo my darling. Haggity ma heggal hole. nuriggerdy diggal. Visi blurb cage. O melon man mist meluhn mijohn. Oh man mellajoram. Hebble oh babble.
<doesntmatter>
Two guns and a ruck roog. Turned into a hollow loop. scritch scratch the happy fog. Is anyone here a fudge plucker. I'm talking bout a rastal marry yo map. Too many ruggerty dag datoes Or are you fuck wappys out for kill gore!
<doesntmatter>
The curmudgeonly pearl; ask and you might be answered. Finger with a whop top tinger. Rig tig tigger. I'm ram bastin' I'm feelin' clean! Pricey bad ass, a whop winger! Gullable dick waffer. Miggity mahoming beacon. Nick lickal novice. Your remenance. Square juice miknuller. Permio plather.
<doesntmatter>
Ploona lefflie ludge picking! Haggy smith heddal, marry oh dettal. Hannabalist, no cannibalist, no hannibalist balievar. Ban dackoo. Put on weight! Wherr wiss fall, nudge plucking. too many |\|igg/\s, that's my line. I'm squirt with the worth of the mother plucking fine. Hoomee missee Mic daisy too. Davey oh doubt. Meggie mahoo middle.
<doesntmatter>
Where does master words eat pies for shells? Trenna ma lilla manole. A rargy barg ark. Shockity strip with the rectify guy. Clockity rep with the rectify fly. Hebble o babble. Rudda nah neh noo. HEP TEP ROGGY! I'm thinkin' about greckin' the rummified coin! Let's look at Amenhotep 4's mummified groin!
<doesntmatter>
Too many Romulan potatoers. Matoonal dakkal. Helly muhp, melly muhp, runna minuck taste-rum. Wack ass weight! Hellamanorf weg watthal. I think I'll just start to try my .smuretsaTcN rubbbity boom ducking. Hitchaleval exasht romice. Up with jelly my humpfrins. Uva devil miss tee pie. She can't poo!
<doesntmatter>
Shniqqen munuh lik leggal perritolma penis pran chella maloney day breeze Paahster jam ban wikkle. Hella mah lun mick hella malole. Hella minull mic mella manoh. The roadline, it's illegal. Trully mulla mih nole. I'm a relladge-o-melladge-o-ram. Come on you fuckin dag asses.
<doesntmatter>
Damned ram bastions. oilleJcM oper Smelly gruthergrarin trilaxals. withers ground ring air Puggle dee maggle dee mack traggle Jeremy sniqqle. Jeremy spoken, in next day I brusht boyered, I kicked a ball! mellaminorf troll protectors, trolls on the road! troll protectors, their stones of power glow!
<doesntmatter>
Fleeberty dith bub, a hick now a hither they humpty tance Lunchell munch a reg uhl schoolio tress nael Chuck a lick a loon baby tunes Weerz mellicorp To the wack ann watching machine wells darilla raptor plexing
<doesntmatter>
Shligga ligga millik hole Shligga ligga millik hole regamakio mathjul hah there Just like in Bart Simpson the Magazine! Ban ricky ban glicky jallo whip! menario mibs Pahorp pahilla thin meffrin slujjal jeggy moran magomorph baleener
<doesntmatter>
I spell it throwt, you spell it throat, the real way to spell it is throwt throwt THROWT! Hux a mex a lig dwarf dudikolan mail street. Rella manae, Rella Manae, Rye dut duh! I'm living on budgy placky street. Reggal dee deck shweener Hicker trellalicker
<doesntmatter>
What part of that doesn't make sense to you robo I'm rang dang smacking it up to the reck a heek a horn drom. Rag agg big chacka lo datey fifty. Sniggital maggal Shelly a jelly a jew lillaputan meglamarian necks booga man Rejja mella mic jeggal Baika looka reg tag
doesntmatter has quit [K-Lined]
einarj has joined #ruby
_justin has quit [Quit: _justin]
fredder has joined #ruby
roolo has joined #ruby
<fredder>
Brutal sports football!
fredder has quit [K-Lined]
sdouglas has quit [Ping timeout: 240 seconds]
senemounn has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
yubrew has joined #ruby
<apeiros>
oh man…
gaussblurinc has joined #ruby
<apeiros>
I don't understand the motivation of idiots like that
Salve has joined #ruby
chrisseaton has quit []
<crome>
luckily
<crome>
you would probably have to be one
alexju has quit [Remote host closed the connection]
<certainty>
apeiros: my guess is a mixture of sexual frustration, adolescence and boredom
<apeiros>
can we do IP range bans?
<apeiros>
gah… limechat really has a bug in its /clear implementation…
apeiros has joined #ruby
<mozzarella>
I had planned to spam some channels, not this one, though
<certainty>
apeiros: i don't think you can. All you have is wildcards IIRC
<apeiros>
yeah, I think so too certainty
yubrew has quit [Ping timeout: 264 seconds]
<apeiros>
a bit sad… all spams originate from ips of the same company
LekeFly has joined #ruby
compleatang has joined #ruby
Salve has quit [Ping timeout: 246 seconds]
<apeiros>
maasha: oh, one issue about pushing jobs: you can'd do it block-style. it must be a method on an identifiable object. since you can't serialize procs :-/
claymore has joined #ruby
<certainty>
apeiros: you could assume that the company probably only owns a class C-Net and wildcard the last octet, but that's not accurate and my hit innocent people
<apeiros>
certainty: it's larger than a class C
<certainty>
ok then
<apeiros>
211.47.108.0 - 211.47.127.255 and 119.56.128.0 - 119.56.255.255
<apeiros>
maybe more
coderxin has joined #ruby
coderxin has quit [Read error: Connection reset by peer]
LekeFly has quit [Client Quit]
coderxin has joined #ruby
TMM has quit [Ping timeout: 255 seconds]
<lewellyn>
that's smaller than a class C
browndawg1 has left #ruby [#ruby]
<lewellyn>
just spread out.
<lewellyn>
but cidr to the rescue, eh?
ferr has joined #ruby
<apeiros>
wasn't C class only X.X.X.0 - 255?
<maasha>
apeiros: I shall give it a go, I have to do some other stuff first though -> work
<certainty>
lewellyn: irc ban doesn't allow CIDR notation
<lewellyn>
certainty: it depends upon the ircd.
<lewellyn>
iirc, the current freenode one does.
<certainty>
lewellyn: well than dancer doesn't seem to support it
<lewellyn>
apeiros: not every /24 was Class C.
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AussieDownUnder has quit [Ping timeout: 240 seconds]
makara has joined #ruby
<lewellyn>
freenode hasn't used dancer in quite some time.
<certainty>
lewellyn: oh then my information is outdated :)
<lewellyn>
let me try elsechan momentarily
vlad_starkov has joined #ruby
spergy has left #ruby [#ruby]
<certainty>
would be something like 211.47.108.0/22 211.47.112.0/20 according to ipcalc
<apeiros>
lewellyn: my knowledge about networks is limited, but wikipedia says 2^8 hosts per class C network
<apeiros>
i.e., last digit
coderxin has quit [Ping timeout: 264 seconds]
ahawkins has joined #ruby
nerium has joined #ruby
<lewellyn>
01:40 mode/#lewellyn [+b *!*@119.56.128.0/25] by lewellyn
<lewellyn>
looks like seven does cidr, alright.
<certainty>
seems to work then
<nerium>
Is it possible to include a file inside a module?=
<apeiros>
nerium: include is about modules, not files
<nerium>
apeiros: I ment require
<lewellyn>
apeiros: not every /24 was assigned in the era of classful addressing. many current /24 blocks are from former Class A and Class B space.
<apeiros>
nerium: you can call require and load within a module, but that doesn't change the scope of the required file
<nerium>
okay
<nerium>
apeiros: Is there a way to change that?
<apeiros>
nerium: if you want that, you need module_eval(File.read(path), path)
<nerium>
Aha, thanks!
tonni has joined #ruby
<lewellyn>
apeiros: class c was 192.0.0.0-223.255.255.255 in /24 blocks.
<apeiros>
don't forget that File.read doesn't consider $LOAD_PATH like require does.
YamakasY_ has joined #ruby
timonv has joined #ruby
samuel02 has joined #ruby
<apeiros>
lewellyn: ok. but "not every class C network" doesn't mean "class C networks are larger than 256 hosts", no?
<lewellyn>
all class c networks were an 8 bit block.
<apeiros>
i.e., I don't get why 119.56.128.0 - 119.56.255.255 should be smaller than class C
<lewellyn>
that is smaller than class c addressing.
<apeiros>
because that's more than an 8bit block
<lewellyn>
oh. i misread.
vlad_starkov has quit [Ping timeout: 264 seconds]
fannye has joined #ruby
<lewellyn>
i saww .128 on both sides.
<apeiros>
aaah
<apeiros>
you mean its range is below the class C range
<lewellyn>
but yes, that's larger than a /24. but it is from "class b" space.
<apeiros>
gotcha!
<apeiros>
thanks :)
claymore has quit [Quit: Leaving]
claymore has joined #ruby
camilasan has joined #ruby
<lewellyn>
in binary, class a started at 00000000.00000000.00000000.00000000, class b started at 10000000.00000000.00000000.00000000, class c started at 11000000.00000000.00000000.00000000
<apeiros>
but given the insane way most pages are built - I can only repeat: good luck.
<apeiros>
DaniG2k: you have no idea how they do it
camilasan has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
<DaniG2k>
apeiros: exactly
<apeiros>
DaniG2k: it may very well be that they have custom selectors for a lot of pages
<DaniG2k>
hmm
<DaniG2k>
thats probably the easiest way innit
RyanV has quit [Quit: Computer has gone to sleep.]
robbyoconnor has quit [Ping timeout: 252 seconds]
<apeiros>
it may even be that they build it "on demand" (e.g. measure what domains are queried often and build one for the most often queried ones)
<DaniG2k>
but even if I put in some obscure page, it still works well
<DaniG2k>
maybe i should just hardcore the selectors
pfg has joined #ruby
<apeiros>
DaniG2k: and how much time do you think they've invested in the fallback handler?
<DaniG2k>
what kind of a question is that
<apeiros>
as said, my heuristic would be to figure which node has the most/largest direct text descendants and take the text from that
Mohan has quit [Ping timeout: 264 seconds]
<DaniG2k>
yea
<apeiros>
DaniG2k: that kind of question is about "how much time do you plan on investing? do you think you can build something as capable in just a couple of lines of ruby?"
<DaniG2k>
apeiros: oh, certainly not
Mon_Ouie has joined #ruby
<apeiros>
anyway, no matter what you use, you'll probably not get around doing "feedback loops". i.e. test your thing against a couple of pages, see how well it fares, try to improve it, rinse and repeat
alex88 has joined #ruby
Mohan has joined #ruby
<alex88>
hi guys, what's the ruby equivalent of javascript Math.LN2?
vlad_starkov has quit [Remote host closed the connection]
jjbohn has joined #ruby
browndawg has quit [Quit: Leaving.]
yubrew has quit [Ping timeout: 264 seconds]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has joined #ruby
Deejay_ has joined #ruby
camilasan has quit [Remote host closed the connection]
nopolitica has quit [Quit: leaving]
camilasan has joined #ruby
mercwithamouth has joined #ruby
inkblot_ has joined #ruby
camilasa_ has joined #ruby
<certainty>
emergion: you can use fakefs but most of the time i adjust my api to accept any IO and pass in a some custom object or just use stringio
JasmeetQA1 has joined #ruby
camilas__ has joined #ruby
<emergion>
certainty, yeah that is a better idea, thanks for the input. Right now I just have some method that create the files I want and write their contents, to a fakefs filesystem
RaCx has quit [Ping timeout: 264 seconds]
jjbohn has quit [Ping timeout: 252 seconds]
<certainty>
if I have lots of code that actually does filelevel operations I either use fakefs or supply away to configure the root of all operations and set that to spec/fakeroot
camila___ has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
JasmeetQA has quit [Read error: Connection reset by peer]
<certainty>
a way
vlad_starkov has quit [Ping timeout: 246 seconds]
<emergion>
certainty, I learned the hard way today, I setup a directory which looked like the one I wanted and did a Dir.chdir
<emergion>
disaster
camil____ has joined #ruby
jprovazn has joined #ruby
blom has quit [Ping timeout: 246 seconds]
RaCx has joined #ruby
canton7-mac has joined #ruby
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cami_____ has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Soda has joined #ruby
camilasan has quit [Ping timeout: 264 seconds]
Soda has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has quit [Ping timeout: 264 seconds]
camilasan has quit [Read error: Connection reset by peer]
<emergion>
certainty, a confusing disaster to say the least :)
camilasan has joined #ruby
teddyp1cker has joined #ruby
nopolitica has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilas__ has quit [Ping timeout: 264 seconds]
camilasan has joined #ruby
camila___ has quit [Ping timeout: 264 seconds]
camilasan has quit [Read error: Connection reset by peer]
camil____ has quit [Ping timeout: 264 seconds]
Virtualize|away has joined #ruby
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
cami_____ has quit [Ping timeout: 264 seconds]
lyanchih_ has quit [Quit: lyanchih_]
camilasa_ has quit [Read error: Connection reset by peer]
pfg has joined #ruby
pfg has quit [Client Quit]
camilasan has joined #ruby
_justin has joined #ruby
Speed has joined #ruby
camilasa_ has joined #ruby
ferno has quit [Ping timeout: 240 seconds]
<nerium>
Is there a way to get all local methods in a class?
camilasa_ has quit [Read error: Connection reset by peer]
roolo has quit [Quit: Leaving...]
camilasa_ has joined #ruby
pfg has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
<abdulsattar>
>> 1.public_methods(false)
camilasa_ has quit [Read error: Connection reset by peer]
camilasan has quit [Read error: Connection reset by peer]
razibog has quit [Quit: Leaving.]
<gnagno>
hello all
camilasa_ has quit [Read error: Connection reset by peer]
Soda has joined #ruby
<abdulsattar>
workmad3: I'm curious why 1.methods(false) return []. Does it return only singleton methods?
camilasan has joined #ruby
<gnagno>
I am running bundle install --package in my project, and I don't know why bundle is trying to install the packages in the system path, any hint?
gigetoo has quit [Remote host closed the connection]
<abdulsattar>
s/return/returned
Soda has quit [Read error: Connection reset by peer]
camilasan has quit [Read error: Connection reset by peer]
RaCx has quit [Read error: Connection reset by peer]
RaCx_ is now known as RaCx
<crome>
makes sense.. sort of.. its just a bit oddly specific
claymore has joined #ruby
<crome>
3 == 3.0 but 3.0.integer? is of course false
nvrch has quit [Quit: nvrch]
fgo_ has quit [Remote host closed the connection]
dingus_khan has quit [Remote host closed the connection]
nism_ has joined #ruby
nism_ has quit [Remote host closed the connection]
nism has quit [Quit: Leaving]
tvw has quit [Remote host closed the connection]
tvw has joined #ruby
roolo has joined #ruby
nerium has quit [Quit: nerium]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maroloccio has joined #ruby
IceyEC has joined #ruby
YamakasY_ has quit [Ping timeout: 246 seconds]
OdNairy has joined #ruby
nopolitica has quit [Quit: leaving]
tt1187 has quit [Ping timeout: 264 seconds]
yubrew has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mostlybadfly has joined #ruby
teddyp1c_ has joined #ruby
wchun has quit [Ping timeout: 240 seconds]
ggherdov has quit [Ping timeout: 245 seconds]
jlast has joined #ruby
uxp_ has quit [Read error: Connection reset by peer]
nomenkun has quit [Ping timeout: 246 seconds]
andrewlio has quit [Ping timeout: 255 seconds]
uxp has joined #ruby
ferr has quit [Quit: Leaving.]
supershabam_ has quit [Read error: Connection reset by peer]
yubrew has quit [Ping timeout: 246 seconds]
teddyp1cker has quit [Ping timeout: 246 seconds]
mjc__ has quit [Read error: Connection reset by peer]
supershabam_ has joined #ruby
rootshift has joined #ruby
mjc__ has joined #ruby
ahawkins has quit [Ping timeout: 240 seconds]
troyready has quit [Ping timeout: 245 seconds]
jespada has quit [Ping timeout: 252 seconds]
Elico has quit [Ping timeout: 255 seconds]
Hanmac1 has quit [Ping timeout: 264 seconds]
makara has quit [Ping timeout: 264 seconds]
krz has quit [Ping timeout: 264 seconds]
larsam has quit [Ping timeout: 264 seconds]
Brando753 has quit [Ping timeout: 264 seconds]
jonathanwallace has quit [Ping timeout: 264 seconds]
Rudde has quit [Ping timeout: 264 seconds]
onewheelskyward has quit [Ping timeout: 264 seconds]
TripleDES has quit [Ping timeout: 245 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
senemounn has quit [Remote host closed the connection]
voglster has quit [Ping timeout: 264 seconds]
guyz has quit [Ping timeout: 264 seconds]
ixti has quit [Ping timeout: 264 seconds]
arturaz has joined #ruby
tesuji has quit [Ping timeout: 255 seconds]
Cork has quit [Ping timeout: 260 seconds]
TripleDES has joined #ruby
<shevy>
test
rdark has quit [Ping timeout: 255 seconds]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
jprovazn has quit [Ping timeout: 255 seconds]
blom has joined #ruby
jlast has quit [Ping timeout: 252 seconds]
YamakasY has joined #ruby
ggherdov_ has joined #ruby
rdark has joined #ruby
Brando753 has joined #ruby
njection has quit [Ping timeout: 240 seconds]
jonathanwallace has joined #ruby
digifiv5e has joined #ruby
ahawkins has joined #ruby
digifiv5e is now known as Guest5613
jjbohn has joined #ruby
nvrch has joined #ruby
nowthatsamatt has joined #ruby
Cork has joined #ruby
strayjane has joined #ruby
ferr has joined #ruby
RaCx has quit [Ping timeout: 264 seconds]
pothibo has joined #ruby
tkuchiki_ has joined #ruby
fgo has joined #ruby
danshultz has joined #ruby
sambao21 has joined #ruby
RaCx has joined #ruby
nomenkun has joined #ruby
nerium has joined #ruby
blom has quit [Ping timeout: 252 seconds]
onewheelskyward has joined #ruby
ixti has joined #ruby
jjbohn has quit [Ping timeout: 264 seconds]
mark_locklear has joined #ruby
makara has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
troyready has joined #ruby
jespada has joined #ruby
Rudde has joined #ruby
mengu has quit [Remote host closed the connection]
gigetoo has joined #ruby
tkuchiki_ has quit [Ping timeout: 255 seconds]
andrewlio has joined #ruby
njection has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
nowthatsamatt has quit [Quit: nowthatsamatt]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
razibog has joined #ruby
sk87 has joined #ruby
Salve has joined #ruby
Hanmac has joined #ruby
strayjane has quit [Remote host closed the connection]
paulfm has joined #ruby
<aep>
i have erb templates with tons of nested each loops to generate code in other languages, they are totally unreadable by now. any more elegant solution?
<jhass>
also try to find common patterns and use objects with accessors for them
Salve has quit [Ping timeout: 264 seconds]
<jhass>
or just helper methods
<jhass>
like ctor.parameter_list
mikepack has joined #ruby
<aep>
right
grzywacz has quit [Ping timeout: 264 seconds]
jlast has quit [Ping timeout: 240 seconds]
sambao21 has quit [Ping timeout: 264 seconds]
Advocation has joined #ruby
mikepack has quit [Ping timeout: 255 seconds]
<jokke>
hi
Pluff has joined #ruby
sambao21 has joined #ruby
<jokke>
i have a Module that i want to test in rspec. This module has a constructor where an option is another Module (not an instance) which will then be included. How should i test that this works?
vlad_starkov has quit [Remote host closed the connection]
gaussblurinc has joined #ruby
dideler|work has joined #ruby
no0code has joined #ruby
no0code has quit [Client Quit]
kpshek has joined #ruby
no0code has joined #ruby
Lewix has joined #ruby
shevy has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
jjbohn has quit [Quit: Leaving...]
stringoO has joined #ruby
sambao21 has joined #ruby
AussieDownUnder has quit [Quit: Leaving]
Quetza has joined #ruby
sambao21 has quit [Client Quit]
vt102 has joined #ruby
jonathanwallace has quit [Ping timeout: 255 seconds]
tesuji has joined #ruby
mjs2600 has quit [Remote host closed the connection]
sailias has joined #ruby
<Quetza>
I have a software package written in ruby that I'm going to be sharing with another organization. In order to do so, I need to give them all the licenses that go with each of the gems used. I believe that my Gemfile.lock will have all the dependencies - is there an easy/automated way to collate all the licenses?
claymore has quit [Ping timeout: 264 seconds]
mjs2600 has joined #ruby
chris_thomson has joined #ruby
yasushi has joined #ruby
xerxas has joined #ruby
ferr has quit [Quit: Leaving.]
RaCx has quit [Ping timeout: 246 seconds]
Lewix has quit [Remote host closed the connection]
mjs2600 has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
Teltaria1 is now known as Teltariat
<Quetza>
havenwood: I did see that and was considering it, but it still worried me as it uses heuristics that might not be accurate
bluenemo has joined #ruby
nari has joined #ruby
lyanchih has quit [Client Quit]
jack_rabbit has joined #ruby
doodlehaus has joined #ruby
rootshift has joined #ruby
redlines has quit [Ping timeout: 240 seconds]
redlines has joined #ruby
mengu has joined #ruby
tesuji has quit [Ping timeout: 240 seconds]
kwoodson_gone is now known as kwoodson
heftig has joined #ruby
CreativeEmbassy has joined #ruby
mikemar10 has joined #ruby
philcrissman has joined #ruby
<shevy>
Quetza there should be some way from within Gem module to query the license
r0ber has joined #ruby
<shevy>
inside of a .gemspec, it is a .license = entry
fgo has quit [Remote host closed the connection]
mjs2600 has joined #ruby
banister has joined #ruby
banister has quit [Client Quit]
rootshift has quit [Ping timeout: 246 seconds]
gaussblurinc has quit [Quit: Leaving.]
geggam has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
chris_thomson has quit [Quit: Zzz...]
sdouglas_ has joined #ruby
tonni has quit [Remote host closed the connection]
<Quetza>
shevy: indeed, but as I understand it, that's usually not sufficient as even if it's MIT, I still need to provide the Copyright line as per the LICENSE file
<shevy>
hmm
rootshift has joined #ruby
enebo has joined #ruby
_justin has quit [Ping timeout: 240 seconds]
jprovazn has joined #ruby
<Quetza>
I haven't dealt with this before and am quite surprised at how difficult it is
blandflakes has joined #ruby
senayar has quit [Remote host closed the connection]
xcv has joined #ruby
senayar has joined #ruby
mary5030 has joined #ruby
dik_dak has joined #ruby
anarang has quit [Quit: Leaving]
Advocation has quit [Quit: Advocation]
jlast has joined #ruby
enebo_ has joined #ruby
phantomtiger has joined #ruby
mary5030 has quit [Remote host closed the connection]
r0ber has quit [Quit: Saliendo]
enebo has quit [Ping timeout: 252 seconds]
enebo_ is now known as enebo
cj3kim has joined #ruby
kotakotakota has quit [Ping timeout: 240 seconds]
mgomezch has joined #ruby
mary5030 has joined #ruby
gaussblurinc has joined #ruby
emergion has quit [Read error: Connection reset by peer]
ffranz has joined #ruby
yacks has joined #ruby
jlast has quit [Ping timeout: 240 seconds]
sk87 has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
_maes_ has joined #ruby
relix has joined #ruby
kwoodson has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
Quetza1 has joined #ruby
gaussblurinc has quit [Quit: Leaving.]
tonni has joined #ruby
Quetza has quit [Ping timeout: 246 seconds]
xcv_ has joined #ruby
gnagno has quit [Ping timeout: 264 seconds]
lyanchih_ has joined #ruby
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
no0code has quit [Quit: leaving]
m4n1f3st0 has joined #ruby
Lewix has quit [Remote host closed the connection]
andrewlio has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
xcv has quit [Ping timeout: 264 seconds]
jprovazn has quit [Ping timeout: 264 seconds]
Lewix has joined #ruby
no0code has joined #ruby
Speed has quit [Ping timeout: 255 seconds]
andrewlio has joined #ruby
shaunbaker has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
blom has quit [Remote host closed the connection]
gaussblurinc has joined #ruby
njection has quit [Ping timeout: 255 seconds]
Lewix has joined #ruby
Nani_ has quit [Remote host closed the connection]
blom has joined #ruby
yubrew has joined #ruby
sambao21 has joined #ruby
Lewix has quit [Remote host closed the connection]
jack_rabbit has quit [Ping timeout: 264 seconds]
Lewix has joined #ruby
Lewix has quit [Changing host]
Lewix has joined #ruby
ehc has joined #ruby
Lewix has quit [Remote host closed the connection]
no0code has quit [Client Quit]
zz_jrhorn424 is now known as jrhorn424
no0code has joined #ruby
Lewix has joined #ruby
Shidash has joined #ruby
mjs2600 has quit [Remote host closed the connection]
shaunbaker has joined #ruby
Deejay_ has quit [Quit: Computer has gone to sleep.]
njection has joined #ruby
abra has quit [Ping timeout: 240 seconds]
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
blom has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 252 seconds]
Lewix has quit [Remote host closed the connection]
himsin has quit [Quit: himsin]
abra has joined #ruby
abra has quit [Max SendQ exceeded]
wald0 has quit [Quit: Lost terminal]
abra has joined #ruby
abra has quit [Max SendQ exceeded]
mjs2600 has joined #ruby
abra has joined #ruby
abra has quit [Max SendQ exceeded]
lw has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
abra has joined #ruby
abra has quit [Max SendQ exceeded]
ndrei has joined #ruby
anarang has joined #ruby
abra has joined #ruby
abra has quit [Max SendQ exceeded]
Advocation has joined #ruby
banister has joined #ruby
abra has joined #ruby
abra has quit [Max SendQ exceeded]
tylersmith has joined #ruby
zachallett has joined #ruby
njection has quit [Ping timeout: 240 seconds]
abra has joined #ruby
abra has quit [Max SendQ exceeded]
okdas has joined #ruby
abra has joined #ruby
abra has quit [Max SendQ exceeded]
xcv_ has quit [Remote host closed the connection]
yubrew has joined #ruby
xcv has joined #ruby
abra has joined #ruby
jtgiri_ has joined #ruby
abra has quit [Max SendQ exceeded]
shaunbaker has quit [Remote host closed the connection]
m4n1f3st0 has quit []
abra has joined #ruby
abra has quit [Max SendQ exceeded]
koell has quit [Ping timeout: 252 seconds]
njection has joined #ruby
tjr9898 has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
abra has joined #ruby
abra has quit [Max SendQ exceeded]
acrussell has joined #ruby
cj3kim has joined #ruby
abra has joined #ruby
abra has quit [Max SendQ exceeded]
claymore has quit [Ping timeout: 264 seconds]
abra has joined #ruby
nomadic has joined #ruby
abra has quit [Max SendQ exceeded]
abra has joined #ruby
xcv_ has joined #ruby
afreidah has joined #ruby
jobewan has joined #ruby
jackneill has joined #ruby
jackneill has quit [Changing host]
jackneill has joined #ruby
<jtgiri_>
hello, I have a rake task which reads a json file , when I do rake -T , it complains about json file not being there. Is there a way to read the json file only when that task is executed ? https://gist.github.com/jtgiri/ac124bc5f97193cd3acf
claymore has joined #ruby
sdouglas_ has quit [Remote host closed the connection]
momomomomo has joined #ruby
pr0ggie has joined #ruby
shaunbaker has joined #ruby
cj3kim has quit [Ping timeout: 264 seconds]
dx7 has joined #ruby
xcv has quit [Read error: Connection reset by peer]
MrPopinjay has joined #ruby
njection has quit [Ping timeout: 255 seconds]
koell has joined #ruby
LekeFly has quit [Ping timeout: 264 seconds]
afreidah has quit [Quit: WeeChat 0.4.3]
IceDragon has joined #ruby
DrShoggoth has joined #ruby
tjr9898 has quit [Remote host closed the connection]
<MrPopinjay>
Hi guys. I'm struggling with the curb gem. I can log into reddit via the API with Curl.post(url, {args}), but after that I can't figure out how to reuse that curl object to perform a get request
shaunbaker has quit [Remote host closed the connection]
wolfsoul has joined #ruby
njection has joined #ruby
g0bl1n has joined #ruby
<crome>
MrPopinjay: task :properties DO
joonty has quit [Ping timeout: 252 seconds]
<MrPopinjay>
Sorry?
<crome>
oh, sorry
<crome>
I mean jtgiri_
<maasha>
apeiros: did you consider msgpack as alternative to marshal for IPC in your fork gem?
pu22l3r has joined #ruby
<jtgiri_>
crome: thanks!
arya_ has joined #ruby
Lewix has joined #ruby
evenix has joined #ruby
mansi has joined #ruby
leonidlm has quit [Quit: Leaving]
Lewix has quit [Remote host closed the connection]
alexju has joined #ruby
baroquebobcat has joined #ruby
jjbohn has joined #ruby
joonty has joined #ruby
Lewix has joined #ruby
rootshift has joined #ruby
mikepack has joined #ruby
SCommette has joined #ruby
SCommette has quit [Client Quit]
mjs2600 has quit [Remote host closed the connection]
klaut_ has quit [Remote host closed the connection]
__greg has joined #ruby
sdouglas has joined #ruby
kevind has joined #ruby
snath has quit [Ping timeout: 252 seconds]
aaronmcadam has joined #ruby
SCommette has joined #ruby
mikepack has quit [Ping timeout: 264 seconds]
njection has quit [Ping timeout: 240 seconds]
momomomomo has quit [Quit: momomomomo]
browndawg has joined #ruby
koell has quit [Ping timeout: 264 seconds]
ghr has joined #ruby
derek_c has joined #ruby
_justin has joined #ruby
jtgiri_ has quit [Quit: jtgiri_]
momomomomo has joined #ruby
njection has joined #ruby
jlast has joined #ruby
havenwood has quit [Remote host closed the connection]
agjacome has quit [Quit: leaving]
makara has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
<CreativeEmbassy>
rubygems.org down for anyone else?
Mon_Ouie has quit [Ping timeout: 264 seconds]
kpshek has quit []
CreativeEmbassy has quit [Read error: Connection reset by peer]
<apeiros>
I think if you pass `external_encoding`, what ruby does is treat the data as the encoding you specified and converts it to the Encoding.default_internal
<apeiros>
hm, actually not… for me even with external_encoding, I get the result above
<maasha>
apeiros: yeah, I can't get it to work either with the example: IO.popen("gzip -cd #{file}", :external_encoding=>"EUC-JP")
Lewix has joined #ruby
<apeiros>
maasha: please show your code
<apeiros>
including how you determine the encoding
TheEconomist has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0.1/20140212131424]]
tagrudev has quit [Remote host closed the connection]
<havenwood>
The answer shall be, "Yes."
mansi has quit [Read error: Connection reset by peer]
<CreativeEmbassy>
I know. :D
shaunbaker has joined #ruby
<havenwood>
aha
klaut has joined #ruby
mansi has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
kpshek has quit []
browndawg has joined #ruby
SrPx has quit [Remote host closed the connection]
browndawg has quit [Max SendQ exceeded]
inkblot_ has left #ruby [#ruby]
blom has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
blom has joined #ruby
dayepa has quit [Quit: dayepa]
yasushi has joined #ruby
mmachine3000 has joined #ruby
njection has joined #ruby
TheEconomist has joined #ruby
__greg has quit [Quit: Leaving]
jamto11 has quit [Remote host closed the connection]
Amart41 has joined #ruby
abdulsattar has quit [Ping timeout: 252 seconds]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
mary5030 has quit [Ping timeout: 240 seconds]
teddyp1c_ has joined #ruby
browndawg has joined #ruby
bal has joined #ruby
browndawg has quit [Max SendQ exceeded]
endash_ has joined #ruby
bal has quit [Client Quit]
endash_ has quit [Client Quit]
ferno has joined #ruby
kpshek has joined #ruby
cj3kim has joined #ruby
teddyp1cker has quit [Ping timeout: 246 seconds]
tt1187 has joined #ruby
njection has quit [Ping timeout: 240 seconds]
michaeldeol has joined #ruby
duggiefresh has joined #ruby
<ceej>
I'm trying to learn about rack middleware, but I can't find a good example of rack middleware including other middle on initialize. Does anyone know of a good example?
zellio has quit [Quit: leaving]
bal has joined #ruby
ferno has quit [Ping timeout: 240 seconds]
atlas__ has joined #ruby
beneggett has quit [Read error: No route to host]
gnagno has joined #ruby
aganov has quit [Remote host closed the connection]
SrPx has joined #ruby
JasmeetQA1 has quit [Read error: Connection reset by peer]
stringoO has quit [Quit: stringoO]
sk87 has joined #ruby
meatherly has quit [Remote host closed the connection]
rayners has joined #ruby
<shevy>
ceej yeah, the upcase example
<shevy>
when I saw it, I suddenly understood middleware
lolmaus has quit [Quit: No Ping reply in 180 seconds.]
njection has joined #ruby
lolmaus has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
_justin has quit [Quit: _justin]
browndawg has joined #ruby
<jhass>
I'm sorry, I'm not that deep into the specifics of rack
browndawg has quit [Max SendQ exceeded]
bal has quit [Quit: bal]
<jhass>
rack-protection is quite popular though, so I'd expect them to be threadsaf
<jhass>
e
<jokke>
hey.. I have a rather weird spec i want to write: I need have a method run that calls another method with a block in which it waits x amount of seconds. I already have a spec that tests the functionality but i'd like to test whether it also waits x seconds. The problem is that the other method which yields can be anything and need an unknown amount of time to yield...
sm1ly has joined #ruby
<ceej>
jhass: no worries, that's what I was thinking too and why I was a bit confused :P
mansi has quit [Remote host closed the connection]
<ceej>
thank you for all your help though
zachallett has quit [Remote host closed the connection]
no0code has quit [Remote host closed the connection]
mansi has joined #ruby
alexju has quit [Remote host closed the connection]
<jhass>
jokke: I think you can solve that with the timecop gem
mikepack_ has joined #ruby
<jhass>
been a while I looked at it though
moted has quit [Ping timeout: 265 seconds]
_Andres has joined #ruby
jmurray has joined #ruby
rippa has joined #ruby
wolfsoul has quit [Quit: Leaving]
mansi has quit [Ping timeout: 240 seconds]
mikepack has quit [Ping timeout: 240 seconds]
<jokke>
timecop alright i'll have a look at it, thanks!
alexju has joined #ruby
IcyDragon has joined #ruby
Es0teric has joined #ruby
obs has quit [Quit: Konversation terminated!]
mansi has joined #ruby
njection has quit [Ping timeout: 255 seconds]
<jokke>
hm
<jhass>
jokke: that is if you can control what is yielded and freeze the time there
blackmesa has joined #ruby
DrShoggoth has quit [Quit: Leaving]
<jokke>
jhass: ah
<jokke>
sure can
<jokke>
with double
IceDragon has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 240 seconds]
dstynchula has joined #ruby
juarlex has joined #ruby
beneggett has quit [Ping timeout: 264 seconds]
Quetza1 has left #ruby [#ruby]
njection has joined #ruby
<jhass>
so if you want to assert that the method waits x seconds before the block is called, I'd snapshot the time before the call, freeze the time in the yield, get another Time.now after the call finished and assert something like expect(after-before).to be_within(1).of(expected)
baroquebobcat has quit [Quit: baroquebobcat]
beneggett has joined #ruby
Advocation has left #ruby [#ruby]
lkba has quit [Ping timeout: 246 seconds]
ndrei has joined #ruby
camilo has quit [Remote host closed the connection]
mikepack has joined #ruby
Advocation has joined #ruby
tcstar has joined #ruby
mary5030 has joined #ruby
bbloom has joined #ruby
baroquebobcat has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
jamto11 has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
Guest13108 has quit [Ping timeout: 240 seconds]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
tkuchiki has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 246 seconds]
Pluff has quit [Remote host closed the connection]
tjr9898 has joined #ruby
maletor has joined #ruby
njection has quit [Ping timeout: 240 seconds]
nahiluhmot has joined #ruby
Speed has quit [Ping timeout: 264 seconds]
blockout has joined #ruby
coderxin has quit [Remote host closed the connection]
Tachoh has left #ruby [#ruby]
<blockout>
Hey guys, can someone give me a hint what should i do? When i start a rake process, in ps i don't see it's arguments
<workmad3>
blockout: you're probably just using the wrong ps invocation...
Rober9393 has quit [Ping timeout: 255 seconds]
baroquebobcat_ has quit [Client Quit]
BuddhaGorilla has quit [Quit: Dreaming of bananas and butter...]
gaussblurinc has quit [Quit: Leaving.]
wallerdev has joined #ruby
robbyoconnor has quit [Ping timeout: 255 seconds]
<blockout>
workmad3: how do you mean that ?
baroquebobcat has quit [Ping timeout: 240 seconds]
njection has joined #ruby
klaut has quit [Remote host closed the connection]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
derek_c has joined #ruby
davy_ has joined #ruby
<workmad3>
blockout: you can alter the output from running 'ps' to choose what's displayed... it doesn't just automatically show everything like command arguments
blom has quit [Remote host closed the connection]
Rober9393 has joined #ruby
<blockout>
hm no, i have just done ps auxwww |grep rake
blom has joined #ruby
tylersmith has joined #ruby
<blockout>
but i have just found a trick, i can set $0 at start of rake and that will be shown as process name? nice!
sk87 has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
m1lt0n_ has quit [Quit: leaving]
nari has quit [Ping timeout: 240 seconds]
atlas__ has quit [Ping timeout: 255 seconds]
BuddhaGorilla has joined #ruby
klaut_ has joined #ruby
michaeldeol has joined #ruby
tungd has quit [Ping timeout: 240 seconds]
Guest13108 has joined #ruby
cj3kim has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
blockout has quit [Quit: Leaving]
Rollabunna has quit [Remote host closed the connection]
sski has quit [Remote host closed the connection]
sski has joined #ruby
CreativeEmbassy has quit [Quit: FO SHO]
blom has quit [Ping timeout: 255 seconds]
apeiros has quit [Remote host closed the connection]
<banister>
benzrf if you do that i'll make you my gf
<benzrf>
im not even a grill ;-;
<wallerdev>
banister doesn’t care haha
hobodave has quit [Ping timeout: 255 seconds]
abdulsattar has joined #ruby
dgarstang4 has quit [Quit: WeeChat 0.4.2]
<shevy>
benzrf you really need to write a programming language
<certainty>
we have enough programming languages :)
mercwithamouth has quit [Ping timeout: 246 seconds]
<jokke>
it's never enough!
<wallerdev>
the day we stop creating new programming languages is the day programming dies
larsam has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
chuk has joined #ruby
claymore has joined #ruby
<certainty>
which problem should the new language solve?
<agent_white>
I wanna see when it shifts away from using C to build errythang.
<shevy>
certainty all objects living in a VM
<wallerdev>
complexity
<certainty>
shevy: smalltalk
m4n1f3st0 has joined #ruby
<shevy>
smalltalk allows no alternative to this schemata
<certainty>
wallerdev: there are good tools to deal with complexity in existing languages
hobodave has joined #ruby
<jokke>
okay. no-ones yelling at me so i guess the spec is alright.
jlebrech has quit [Quit: Konversation terminated!]
<benzrf>
i was thinkin about a purely referentially tansparent language that uses oop-style organization
<benzrf>
& maybe polymorphism o:
<shevy>
what the heck does that even mean
<certainty>
benzrf: i like the first part but not the latter
<benzrf>
certainty: which latter part
<shevy>
poop style can never be wrong
<certainty>
oop-style organization
m4n1f3st_ has quit [Ping timeout: 264 seconds]
<certainty>
benzrf: ^
<agent_white>
shevy: That depends on the wipe count
<agent_white>
But then again, maybe you just ate something wrong
wallerdev has quit [Quit: wallerdev]
timonv has quit [Remote host closed the connection]
<shevy>
lol
wallerdev has joined #ruby
<benzrf>
pfft
aaronmcada has joined #ruby
<benzrf>
certainty: im referring to methods & local data
<shevy>
the best strategy is zero wipe count
nahiluhmot has quit [Quit: leaving]
<benzrf>
if you dont like that then why are you using ruby o-o
<certainty>
benzrf: my company forces that on me :)
<benzrf>
:I
<agent_white>
shevy: You skeezy motherfucker
<certainty>
benzrf: also it was the sanest of all options actually. Otherwise i had to code in php and C
<agent_white>
Teach me to poo like you
<shevy>
agent_white I am just trying to visualize what benzrf aims for
jtgiri_ has joined #ruby
<benzrf>
ugh
ahawkins has quit [Remote host closed the connection]
<agent_white>
;D
<agent_white>
ewwww PHP
<shevy>
oh
blom has quit [Remote host closed the connection]
<shevy>
PHP is this poop-style organization?
<benzrf>
i was also contemplating a dynamic strong ruby-like language that tracks side fx
njection has quit [Ping timeout: 240 seconds]
<agent_white>
I think we should all code in Brainfuck for job security.
<shevy>
side fx
<shevy>
is that like a bomb exploding as you code?
<benzrf>
the problem is that that doesnt lend itself well to late binding ;-;
<certainty>
:)
blom has joined #ruby
<agent_white>
PHP is poop-style, no-wipe for sure.
<shevy>
wait
<benzrf>
but maybe explicitly different syntax for side-effectual operations and non-effectual ones could fix that
<shevy>
let's ask centrx about PHP
<shevy>
damn he is not here :(
aaronmcadam has quit [Ping timeout: 240 seconds]
<benzrf>
hmm maybe im onto something here
<certainty>
benzrf: do it the clojure way, allow sideeffects in specific syntactic constructs
<benzrf>
certainty: oh?
<benzrf>
clojure does that?
lyanchih has quit [Ping timeout: 264 seconds]
<certainty>
benzrf: they don't actually track IO but one could extend the idea
asteros has joined #ruby
<benzrf>
i did a fully runtime side effect thing for my toy lisp
w1zeman1_ has joined #ruby
<benzrf>
but that's not very useful
Es0teric has quit [Quit: Nigga, im OUTIE 5000]
<benzrf>
i think if you entirely separated effectual code and pure code at a semantic AND syntactic level
<certainty>
benzrf: they allow updates of mutuble references to immutable data only inside transactions (well not for all references but for specifc ones)
<benzrf>
you could have late binding and dynamic stuff, while still having nice compile-time effect analysis
<benzrf>
certainty: neat o=
shredding has quit [Read error: Connection reset by peer]
<benzrf>
i also like first-class functions, which ruby does not have :T
vlad_starkov has joined #ruby
<certainty>
yeah that's pretty much mandatory these days
nari has joined #ruby
mrnugget has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<certainty>
i actually like clojure, it's a good mixture of haskell and lisp. It could enforce purity more for my taste, but that's left out on purpose. Clojurians seperate pure code from side-effecting code quite disciplined
<certainty>
of course they don't have a typsystem that kicks them in their balls if they don't play nicely
blom has quit [Ping timeout: 255 seconds]
shredding has joined #ruby
<agent_white>
I hope more languages come out that allow direct memory management like C. I like looking at hex and knowing it's a bucket in my ram. Kinda kewl.
blom has joined #ruby
* agent_white
shrugs
W0rmDr1nk has quit [Ping timeout: 255 seconds]
sdouglas has quit [Remote host closed the connection]
vlad_sta_ has quit [Ping timeout: 240 seconds]
GaryOak_ has joined #ruby
<agent_white>
rantic: *See Potato Linux*
<agent_white>
MT
sdouglas has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
njection has joined #ruby
ferno has quit [Ping timeout: 240 seconds]
TheEconomist has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0.1/20140212131424]]
banister_ has joined #ruby
<certainty>
agent_white: there certainly is a need for this kind of stuff, but it did more harm than good in the past, because it was applied to every problem
OdNairy has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
sailias has quit [Ping timeout: 252 seconds]
browndawg has joined #ruby
SrPx has quit [Remote host closed the connection]
<certainty>
most of the existing vulnerabilities are due to memory management errors, probably followed by off-by-one errors
browndawg has quit [Max SendQ exceeded]
banister has quit [Ping timeout: 264 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<agent_white>
certainty: Aye! But I still enjoy the fine-grained control :)
<agent_white>
Though I have yet to really dive into it.
beneggett has quit [Ping timeout: 255 seconds]
browndawg has joined #ruby
sdouglas has quit [Ping timeout: 240 seconds]
browndawg has quit [Max SendQ exceeded]
<certainty>
i don't work in places where this is needed, so i'm glad that i don't have too often. Only if some of my eggs have to call into C I eventually have to manage memory myself
beauby has joined #ruby
abra has quit [Ping timeout: 264 seconds]
bradhe has joined #ruby
<agent_white>
Ah yeah. I picked my university because its CSE curriculum is taught in C++/C, so I hope I might get to fiddle in a project using it one day.
roolo has quit [Quit: Leaving...]
hobodave has quit [Ping timeout: 252 seconds]
<certainty>
agent_white: eww, that would be hell for me. :) C doesn't fit my brain well
<certainty>
c++ neither
YamakasY has quit [Ping timeout: 240 seconds]
bradhe has quit [Read error: Connection reset by peer]
catphish has joined #ruby
noop has joined #ruby
bradhe has joined #ruby
mjs2600 has quit [Remote host closed the connection]
phansch has joined #ruby
sparrovv has joined #ruby
sparrovv has quit [Remote host closed the connection]
jhn_ has joined #ruby
njection has quit [Ping timeout: 246 seconds]
CreativeEmbassy has joined #ruby
<benzrf>
if you like low level shit just use asm
<benzrf>
o.o
jhn_ has quit [Max SendQ exceeded]
arietis has joined #ruby
rezzack has joined #ruby
nanoyak has joined #ruby
jhn_ has joined #ruby
creede has joined #ruby
<agent_white>
benzrf: Someday... I actually have a program that is vulnerable to buffer overflows that I inject some arbitrary shell-code into... so I want to figure out how to write my own shell-code so it opens something other than xterm. ;D
<certainty>
last time I touched C++, C++0x was around the corners and boost has been used heavily also alexandrescu showed some sick stuff with templates
treaki_ has quit [Ping timeout: 255 seconds]
ndrei has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
nisstyre has joined #ruby
<certainty>
probably the Oleg of C++ :)
Creative_ has joined #ruby
abra has joined #ruby
tonni has joined #ruby
ferno has joined #ruby
tt1187 has quit [Ping timeout: 255 seconds]
beneggett has joined #ruby
blandflakes has quit [Quit: Page closed]
nvrch has quit [Quit: nvrch]
doodleha_ has joined #ruby
lkba has joined #ruby
mmachine3000 has quit [Remote host closed the connection]
chuk has quit [Quit: This computer has gone to sleep]
njection has joined #ruby
sheepman is now known as sheepman|away
fveillette has quit []
mrnugget has quit [Ping timeout: 240 seconds]
Asher has quit [Quit: Leaving.]
phansch has quit [Quit: WeeChat 0.4.2]
ndrei has joined #ruby
sheepman|away is now known as sheepman
timonv has joined #ruby
jbueza has joined #ruby
doodlehaus has quit [Ping timeout: 255 seconds]
rainmanjam has joined #ruby
<shevy>
omg
thirdender1 has joined #ruby
sputnik13 has joined #ruby
rankine has joined #ruby
rankine has quit [Changing host]
rankine has joined #ruby
sputnik13 has quit [Max SendQ exceeded]
hobodave has joined #ruby
sputnik13 has joined #ruby
atlas__ has joined #ruby
geopet has quit []
njection has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Ping timeout: 240 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BuddhaGorilla has quit [Quit: Dreaming of bananas and butter...]
blom has quit [Ping timeout: 240 seconds]
shredding has quit [Ping timeout: 246 seconds]
elaptics is now known as elaptics`away
njection has joined #ruby
teddyp1c_ has quit []
timonv has joined #ruby
teddyp1cker has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
YamakasY has joined #ruby
_justin has joined #ruby
iceden has joined #ruby
bricker_ is now known as bricker
atlas__ has quit [Ping timeout: 264 seconds]
Vovko has joined #ruby
fudanchii has joined #ruby
xcv has joined #ruby
sailias has joined #ruby
rakm has quit [Quit: Connection closed for inactivity]
einarj has quit [Remote host closed the connection]
circuit has joined #ruby
fgo has joined #ruby
northfurr has quit [Ping timeout: 246 seconds]
shaunbaker has quit [Remote host closed the connection]
bearg has quit [Ping timeout: 252 seconds]
njection has quit [Ping timeout: 246 seconds]
Notte has joined #ruby
swegstar has joined #ruby
<swegstar>
hello
<swegstar>
i am thinking of starting to learn ruby but idk if it's worth it
<swegstar>
vies?
<swegstar>
views?
Elhu has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Remote host closed the connection]
<centrx>
swegstar, It will make you happy
m4n1f3st0 has quit []
mark_locklear has quit [Ping timeout: 264 seconds]
<crome>
its an odd question to ask on a ruby channel
njection has joined #ruby
abra_ has joined #ruby
<swegstar>
haha thats true, but i'm assuming you all have had experience of various languages
abra_ has quit [Max SendQ exceeded]
<crome>
no, ruby is a horrible, horrible language. I use it solely to repent for my sins
abra has quit [Ping timeout: 246 seconds]
hobodave has quit [Ping timeout: 252 seconds]
dumdedum has quit [Quit: foo]
abra_ has joined #ruby
hobodave has joined #ruby
<banister_>
swegstar worth it in terms of what? you have to state what your goals are in order for taht question to even make sense
<centrx>
#ruby channel officially recommends PHP or BASIC
* benzrf
slaps centrx
<certainty>
swegstar: it totally depends on what you expect from a launguage
<certainty>
-u
<banister_>
swegstar if you just want to get a job, ruby is a good choice, lots of ruby jobs around
<benzrf>
swegstar: ruby is a pleasant language
<benzrf>
it is not necessarily the best language, but it is fun
<banister_>
swegstar if on the other hand you're already an expereinced programmer in something like python, then learning ruby will not be a mind-expanding experience so it wont be worth it in that respect
<benzrf>
it has issues, but i like it
m4n1f3st0 has joined #ruby
<centrx>
It has no issues.
<certainty>
benzrf: name your language blow ... then once it's popular people can claim that there are lots of blow jobs
<centrx>
benzrf has issues
<crome>
lol
TMM has joined #ruby
TMM has quit [Changing host]
TMM has joined #ruby
<apeiros>
banister_: was at lunch when you pinged earlier today - what's up?
mike_k has quit [Remote host closed the connection]
sarlalian has quit [Quit: WeeChat 0.4.0]
kpshek has quit []
<banister_>
apeiros fixed it :) just wanted to know the behaviour of hidden_field for a form_for(foo)
<apeiros>
ah
mary5030 has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
fgo has quit [Remote host closed the connection]
fantazo has joined #ruby
<centrx>
I think we scared him away
creede has quit [Ping timeout: 264 seconds]
hobodave has quit [Client Quit]
<crome>
this is what you get for being honest
<swegstar>
ahah no dont worry im still here
mikepack_ has joined #ruby
<certainty>
statistics have shown that your odds to get a girl are significantly higher if you respond with ruby when she asks which programming language you use
asteros has quit [Quit: asteros]
<crome>
because they like jewels?
<certainty>
most C programmers get instantly slaped, but they're used to pain anyway
njection has quit [Ping timeout: 240 seconds]
<certainty>
crome: possibly
<certainty>
it's a mystery yet
<swegstar>
LOOL
<crome>
its funny how certainty tells me something is possible
<swegstar>
loving this :')
ehaliewicz has joined #ruby
jayne has quit [Remote host closed the connection]
kpshek has joined #ruby
<certainty>
the problem is of course that very few girls actually ask that question :D
<crome>
so its their fault
<crome>
done
<swegstar>
thanks for the advice guys i appreciate it :)
swegstar has left #ruby [#ruby]
shinobi_one has joined #ruby
<dstynchula>
teehee
<crome>
I dont think we gained a follower
<certainty>
see he just wants to get the girls
<centrx>
You failed
<centrx>
I'm going to send some more people in from ##php and this time you better do it right!
<certainty>
i think centrx scared him away
shaileshg has quit [Quit: Connection closed for inactivity]
mikepack_ has quit [Ping timeout: 252 seconds]
<benzrf>
bbl ;-;
benzrf is now known as benzrf|offline
ehaliewicz has quit [Ping timeout: 246 seconds]
njection has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
JaTochNietDan has joined #ruby
<shevy>
centrx is so evil
magoo has joined #ruby
<centrx>
Saving souls from PHP is not evil!
Xeago has joined #ruby
platzhirsch has joined #ruby
creede has joined #ruby
francisfish has quit [Remote host closed the connection]
<platzhirsch>
Having two arrays of intervals how can I detect or remove them out of one array if they are the same? For instance a = [[1,2], [4,5]] and b = [[0, 10], [4,5]] I would like to remove the [4,5] out of one of them
Al__ has quit [Quit: Al__]
philcrissman has quit [Remote host closed the connection]
dik_dak has quit [Ping timeout: 246 seconds]
ferno has left #ruby ["WeeChat 0.4.2"]
<jhass>
I think Array#- should work
<platzhirsch>
ah right, that's good
<jhass>
>> [[1,2],[4,5]]-[[0,10],[4,5]]
njection has quit [Ping timeout: 240 seconds]
<platzhirsch>
but the order is important
workmad3 has quit [Ping timeout: 255 seconds]
<platzhirsch>
> [[1,2],[4,5]]-[[0,10],[4,5]]
Al__ has joined #ruby
teddyp1cker has joined #ruby
rdark has quit [Quit: leaving]
timonv has quit [Remote host closed the connection]
<shevy>
hey
radic has quit [Disconnected by services]
<jhass>
eval-in seems sleeping, anyway, I get [[1, 2]]
<shevy>
why did you guys break the bot
radic_ has joined #ruby
x1337807x has joined #ruby
Al__ has quit [Client Quit]
<platzhirsch>
or concatenate them and run uniq
<platzhirsch>
ohh boy, what is the time complexity of uniq?
<apeiros>
O(n)
yfeldblum has joined #ruby
<platzhirsch>
awesome
<apeiros>
it's not the same as -, though
mikecmpbll has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
<platzhirsch>
apeiros: yeah found it
<apeiros>
well, O(n+m) actually
<platzhirsch>
that should be fine. Just finished three coding tests in a time limit
<apeiros>
better than concat + uniq is to just use union directly
asteros has joined #ruby
<apeiros>
a | b
hobodave has joined #ruby
juarlex has quit [Remote host closed the connection]
<centrx>
JesseCW, This looks like some kind of DSL?
jamto11 has quit [Remote host closed the connection]
tjr9898 has quit [Ping timeout: 255 seconds]
_justin has quit [Ping timeout: 252 seconds]
BuddhaGorilla has joined #ruby
<centrx>
oh, it's just commas
afex has joined #ruby
<JesseCW>
Yeah, it's a configuration file for Vagrant which is apprently Ruby
<JesseCW>
I honestly don't know Ruby. I'm just trying to make my config file more readable.
kpshek has joined #ruby
lolmaus has quit [Remote host closed the connection]
AntelopeSalad has quit [Remote host closed the connection]
AntelopeSalad has joined #ruby
Al__ has joined #ruby
kevinykchan has joined #ruby
Lulzon_ has quit [Ping timeout: 265 seconds]
njection has quit [Ping timeout: 240 seconds]
dik_dak has joined #ruby
maZtah has joined #ruby
rjk808 has joined #ruby
<JesseCW>
Has to be a better way than just dumping all of this on a single line.
Lulzon has joined #ruby
okdas has quit [Ping timeout: 264 seconds]
<jhass>
You already got two comments on your gist
klaut_ has quit [Remote host closed the connection]
phantomtiger has quit [Quit: phantomtiger]
<JesseCW>
oh my bad, didn't see those, thanks
davy_ has joined #ruby
coderxin has joined #ruby
yacks has quit [Quit: Leaving]
m4n1f3st0 has quit []
<shevy>
JesseCW come to ruby!
<JesseCW>
Seems the way I was putting those commas doesn't work with Ruby. It was just something I picked up reading peoples gruntfiles
<JesseCW>
as it works in javascript
mgorbach has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
njection has joined #ruby
geoffw8_ has quit [Quit: Connection closed for inactivity]
Notte has quit [Remote host closed the connection]
fantazo has quit [Quit: Verlassend]
jmurray has quit [Quit: jmurray]
enebo has joined #ruby
<JesseCW>
Thanks shevy. :)
dik_dak has quit [Ping timeout: 246 seconds]
ga1j1n has quit [Remote host closed the connection]
ga1j1n has joined #ruby
wald0 has joined #ruby
ferr has quit [Quit: Leaving.]
<platzhirsch>
Whew, that was some intense shit that coding test and if wouldn't have known the solution to the first task I guess I wouldn't have made it in time
<platzhirsch>
and it's really not Ruby code, just ifs and elses, and a lot of integer pointer variables to iterate the arrays
mark_locklear has joined #ruby
Al__ has quit [Quit: Al__]
tonni_ has joined #ruby
tonni has quit [Ping timeout: 264 seconds]
mgorbach has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
peta_ has quit [Quit: peta_]
ga1j1n has quit [Ping timeout: 264 seconds]
m4n1f3st0 has joined #ruby
mgorbach has quit [Read error: Connection reset by peer]
mjc__ is now known as mjc_
njection has quit [Ping timeout: 240 seconds]
chuk has joined #ruby
mike_k has joined #ruby
timonv has joined #ruby
doodlehaus has joined #ruby
coderxin has quit [Remote host closed the connection]
BuSerD has joined #ruby
m4n1f3st0 has quit [Ping timeout: 255 seconds]
mikepack_ has joined #ruby
_justin has joined #ruby
nerium has quit [Quit: nerium]
ukd1 has joined #ruby
stupidystupid has joined #ruby
mgorbach has joined #ruby
macclearich has joined #ruby
nerium has joined #ruby
CaptainJet has joined #ruby
ndrei has joined #ruby
doodleha_ has quit [Ping timeout: 264 seconds]
dik_dak has joined #ruby
mehlah has quit [Quit: Leaving...]
maletor has quit [Quit: Computer has gone to sleep.]
mikepack has quit [Ping timeout: 255 seconds]
asteros has joined #ruby
mikepack_ has quit [Ping timeout: 246 seconds]
njection has joined #ruby
dblessing has quit [Quit: dblessing]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
mlpinit has quit [Remote host closed the connection]
ktosiek has joined #ruby
rootshift has joined #ruby
jamto11 has joined #ruby
Elhu has joined #ruby
rootshift has quit [Client Quit]
b00stfr3ak has quit [Ping timeout: 246 seconds]
catphish has quit [Quit: Leaving]
rootshift has joined #ruby
<shevy>
platzhirsch hmm if we would work together on a project
lolmaus has joined #ruby
<shevy>
platzhirsch I would poke you with a sharp fork
<shevy>
all the time
toastynerd has quit [Remote host closed the connection]
mlpinit has joined #ruby
mlpinit has quit [Remote host closed the connection]
<platzhirsch>
shevy: and I would poop into your rice bowl
mlpinit has joined #ruby
momomomomo has joined #ruby
<platzhirsch>
I think at FogCreek they list that as an actual perk: We won't poke you with a stick.
chuk has quit [Quit: This computer has gone to sleep]
ga1j1n has joined #ruby
b00stfr3ak has joined #ruby
gnephiak has quit [Quit: Konversation terminated!]
w1zeman1_ has quit [Remote host closed the connection]
<shevy>
I accept this tradeoff
* shevy
pokes platzhirsch with a sharp fork.
<platzhirsch>
darn.
WormDr1nk has joined #ruby
WormDr1nk has quit [Changing host]
WormDr1nk has joined #ruby
<shevy>
you must wear the proper platzhirsch attire
<platzhirsch>
I am in London next week to work at a startup and see if I fit in well. My first actual on-side 'interview'
<shevy>
who is the boss at work!
<shevy>
who is the boss at work!
<shevy>
it is YOU
toastynerd has joined #ruby
<shevy>
ewww
<shevy>
you fly to london just for an interview?
W0rmDr1nk has quit [Ping timeout: 264 seconds]
njection has quit [Ping timeout: 246 seconds]
<shevy>
AND you will eat UK food?
<platzhirsch>
sorry, I am to beat to respond in an adequate way
<platzhirsch>
I don't think there is such a thing as UK food
<platzhirsch>
there is just Jamie Oliver and stuff
<shevy>
sure
JBreit has joined #ruby
<shevy>
take some old sick fish out of the themse
<shevy>
and eat them :)
<platzhirsch>
but I will bring my mighty cooking skills
<shevy>
oh... it is called "Thames" in english ...
nerium has quit [Quit: nerium]
Spami has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
JBreit has left #ruby [#ruby]
nerium has joined #ruby
<platzhirsch>
Actually it's not an interview, it's more like I work for them and they look if I can fit in and whether they like me or so
<platzhirsch>
but on-side interviews are really the norm
davy_ has quit [Remote host closed the connection]
<shevy>
ok but
acrussell has quit [Quit: Leaving.]
<shevy>
you aren't located anywhere near London right?
<shevy>
so you explicitely come over to *them*
<shevy>
then they tell you "No we don't want you."
koell has quit [Ping timeout: 255 seconds]
<shevy>
that's like an expensive shopping trip there!
<platzhirsch>
Berlin
<shevy>
ok now I understand
<shevy>
I'd leave that Ghetto as well :)
rockelb has joined #ruby
<platzhirsch>
ah, well of course they pay for travel and accommodations
<shevy>
aaaah
<shevy>
cool
axisys has joined #ruby
<gnagno>
lol platzhirsch I am thinking about moving from London to Berlin to work :)
<shevy>
you must have impressed them already
momomomomo has quit [Quit: momomomomo]
<shevy>
how did you do that?
<gnagno>
and you're making the opposite
<platzhirsch>
yeah gnagno, but that makes sense
<shevy>
gnagno don't go into the ghetto!
<platzhirsch>
shevy: you are from Vienna, ain't you?
<shevy>
yeah
<gnagno>
shevy, actually when I arrived to London a company paid for my plane for the interview as well.... it's quite common here
<platzhirsch>
yeah, typical Vienna attitude, a friend of mine also calls Berlin a Ghetto
Takehiro has joined #ruby
<shevy>
but it is true!
maletor has joined #ruby
<mikecmpbll>
anyone pissed about with ruboto?
<shevy>
I've been to many german towns
<shevy>
the only town worse than Berlin was Chemnitz :)
<platzhirsch>
gnagno: not only common there, but that's the usual way to do it everywhere
blom has joined #ruby
<gnagno>
why is Berlin a ghetto? I find it is a nice city
<shevy>
well, Frankfurt too... that is such a boring bankster town...
<crome>
mikecmpbll: a bit. but I couldnt even get it to work
<mikecmpbll>
some pretty neat stuff going on with it.
<crome>
it was a while ago though
<platzhirsch>
gnagno: but it make sense, quality of living is probably a lot better and Berlin is cheaper
njection has joined #ruby
<mikecmpbll>
i installed ruboto-irb ages ago on my phone and had a play about
<shevy>
gnagno been a couple years ago but when I was there, they literally built *everywhere*
<platzhirsch>
plus startups are booming
<mikecmpbll>
started developing an android app with it now, got my osx dev env set up.
<gnagno>
platzhirsch, that's the reason why I want to move to berlin, I get almost the same salary, but the life costs a lot less
mjs2600 has quit [Remote host closed the connection]
momigi has quit [Remote host closed the connection]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
<platzhirsch>
gnagno: so can I bomb you with some questions? Do you live in London, too?
<platzhirsch>
or more outside
<gnagno>
platzhirsch, yes sure, I live in Greenwich
mary5030 has joined #ruby
<platzhirsch>
gnagno: what's your current salary?
nanoyak has quit [Quit: Computer has gone to sleep.]
<shevy>
is that scottland?
mjs2600 has joined #ruby
james_d_h has joined #ruby
asteros has quit [Quit: asteros]
cgore has quit [Remote host closed the connection]
chat has joined #ruby
<platzhirsch>
It's a district shevy
<crome>
its also spelled scotland
<mikecmpbll>
:D
jamto11 has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
sailias has quit [Ping timeout: 255 seconds]
mikepack has joined #ruby
carraroj has joined #ruby
<shevy>
weird
<shevy>
I always thought it is high up to the north
YamakasY_ has joined #ruby
meatherly has quit [Remote host closed the connection]
<shevy>
crome I am preparing platzhirsch for London
<crome>
its tough
<crome>
nothing can prepare you for the size of the place
<platzhirsch>
I would rather go for NYC or SF, but at least most companies respond from applications to London
nerium has quit [Quit: nerium]
YamakasY has quit [Ping timeout: 246 seconds]
_justin has quit [Quit: _justin]
<wallerdev>
you should come to SF :)
nerium has joined #ruby
<wallerdev>
better weather than london at least :p
njection has quit [Ping timeout: 246 seconds]
<shevy>
haha
<crome>
hey, it wasnt even raining today
<shevy>
and better cuisine!
<platzhirsch>
from London and 2 years experience it will be easier to score a job in USA
<mikecmpbll>
depends what weather you like
<mikecmpbll>
and cuisine.
<shevy>
why is it easier from london to the usa?
<crome>
shevy: food is actually nothing bad in london
<gnagno>
it's easy to find better cuisine than London I think....
<shevy>
crome yeah, asian shops are everywhere
<axisys>
how do I improve this to combine two csv files on matching field only .. if field1 of a row of csv file1 one matches to a field2 of a row of csv file2 then merge them
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
<axisys>
shevy: may be I need to look at an example on ruby addresses each field
<shevy>
hmm
<shevy>
shinobi_one so one has to pass in only one string?
jmeeuwen has joined #ruby
<shinobi_one>
shevy: to generate the documentation AND get the parsed argument hash yes
dzhulk has joined #ruby
peta_ has joined #ruby
senayar_ has joined #ruby
rankine has quit [Quit: leaving]
<shinobi_one>
not sure if it works on 2.1.0 though
Malkio has joined #ruby
senayar_ has quit [Read error: No route to host]
ferr has joined #ruby
senayar_ has joined #ruby
nerium has quit [Quit: nerium]
dik_dak has quit [Ping timeout: 252 seconds]
francisfish has quit [Remote host closed the connection]
jtgiri_ has quit [Quit: jtgiri_]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nerium has joined #ruby
blom has quit [Remote host closed the connection]
senayar has quit [Ping timeout: 264 seconds]
baroquebobcat has joined #ruby
rjk808_ has joined #ruby
stupidystupid has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claymore has quit [Ping timeout: 252 seconds]
blom has joined #ruby
YamakasY_ has quit [Ping timeout: 240 seconds]
stupidystupid has joined #ruby
stupidystupid has quit [Max SendQ exceeded]
momigi has joined #ruby
<shevy>
hmm
Takehiro has quit [Remote host closed the connection]
rankine has joined #ruby
OdNairy has joined #ruby
<shinobi_one>
i'm writing some utility to deal with virtualbox command line crap, and was going to use OptionParser, but ehhh I don't like its limitations, so I found doctopt which looks sexy, now I'm looking at the rails source for how they do their command line stuff and I might just follow by example on that
claymore has joined #ruby
Asher has joined #ruby
BuddhaGorilla has quit [Quit: Dreaming of bananas and butter...]
asteros has joined #ruby
njection has quit [Ping timeout: 255 seconds]
Malkio has left #ruby [#ruby]
rjk808 has quit [Ping timeout: 252 seconds]
<wallerdev>
shinobi_one: like vagrant?
blom has quit [Ping timeout: 264 seconds]
arya_ has quit [Ping timeout: 255 seconds]
<centrx>
shinobi_one, The Rails command-line is very basic
<shinobi_one>
wallerdev: nah
xcv has quit [Remote host closed the connection]
<shinobi_one>
basically in interactive shell for virtualbox, so i don't have to type out all of these insanely bogus commands in my shell
tvw has quit []
<shinobi_one>
an interactive*
<wallerdev>
cool :)
xcv has joined #ruby
afex has quit [Ping timeout: 264 seconds]
<shinobi_one>
i'm doing a lot of snapshotting, restoring, tinkering right now and hating my life with their command line >xD
macclearich_ has joined #ruby
<wallerdev>
well hopefully you’re not on windows
<shinobi_one>
nah, osx ssh'd into linux that is hosting vms
userx has joined #ruby
meatherly has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
armyriad has joined #ruby
meatherly has joined #ruby
beneggett has joined #ruby
abdulsattar has quit [Ping timeout: 264 seconds]
macclearich has quit [Ping timeout: 240 seconds]
Takehiro has joined #ruby
nerium has quit [Quit: nerium]
tewlz has joined #ruby
mikepack has quit [Remote host closed the connection]
<tewlz>
what is the different between `Obj.meth if Obj` vs `Obj && Obj.meth`
nerium has joined #ruby
<tewlz>
s/different/difference/
blom has joined #ruby
njection has joined #ruby
dik_dak has joined #ruby
meatherly has quit [Read error: No route to host]
m4n1f3st0 has joined #ruby
claymore has quit [Ping timeout: 240 seconds]
meatherly has joined #ruby
BuddhaGorilla has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi_ has joined #ruby
claymore has joined #ruby
rockelb has quit [Quit: Leaving]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senayar_ has quit [Remote host closed the connection]
noop has quit [Ping timeout: 246 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<youssefeid>
someone reply so i know i got this to work
camilasan has joined #ruby
m4n1f3st0 has quit [Client Quit]
coderxin has joined #ruby
<apeiros>
youssefeid: ?
QKO has quit [Ping timeout: 252 seconds]
OdNairy has joined #ruby
<shevy>
youssefeid YES YOU DID IT
<youssefeid>
okay good thanks :)
<apeiros>
axisys: doesn't look wrong
<shevy>
tewlz dunno, but the variant with && looks damn ugly
robbyoconnor has joined #ruby
ctp has joined #ruby
davy_ has joined #ruby
m4n1f3st0 has joined #ruby
<shinobi_one>
tewlz: usually && is used as a shortcut to return the object afterwards as a shortcut, like `current_user = user.authenticated? && user`
afex has joined #ruby
nisstyre has quit [Ping timeout: 246 seconds]
mando has quit [Ping timeout: 255 seconds]
m4n1f3st0 has quit [Client Quit]
<shinobi_one>
apparently i don't know what a shortcut is because i typed the word twice :-\
nerium has quit [Quit: nerium]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<tewlz>
shinobi_one: cool, I've seen it both ways and the if was more readable for me. Didn't know if there was any low level difference that would make one prefered to another.
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
atlas__ has joined #ruby
<shinobi_one>
tewlz: i've usually seen it used as a one liner in a method that returns some object
mikepack has quit [Remote host closed the connection]
nerium has joined #ruby
<youssefeid>
Can anyone point me in the right direction for a ruby gem that searches a web database based on a users search. I would like it to search lets say ebay for products based on what the user enters in a textbox in html
m4n1f3st0 has joined #ruby
njection has joined #ruby
<centrx>
youssefeid, "search a web database"?
m4n1f3st0 has quit [Client Quit]
aaronmcada has quit [Quit: Leaving...]
ga1j1n has quit [Remote host closed the connection]
<wallerdev>
i think he means like an api
GaryOak_ has quit [Remote host closed the connection]
tt1187 has joined #ruby
<wallerdev>
youssefeid: see if you can find an ebay gem haha
sambao21 has joined #ruby
ga1j1n has joined #ruby
thirdender1 has quit [Read error: Connection reset by peer]
thirdender1 has joined #ruby
<shinobi_one>
doesn't everyone open up their databases for public searching through ruby gems? sheesh!
rootshift has joined #ruby
<wallerdev>
that’s web 3.0
beneggett has joined #ruby
<wallerdev>
chrome will query your database when your page loads and display the info however it thinks the user wants it :p
beneg has quit [Ping timeout: 252 seconds]
<youssefeid>
yes, I'd like it to go to ebay for example and search something in their search engine then i'd like to click on something based on a condition
SonicX has joined #ruby
benzrf|offline is now known as benzrf
<youssefeid>
i know theres an ebay api but I want it to be generic and work across mulitple websites
<shinobi_one>
youssefeid: i doubt anyone has written some generic gem that can go search tons of websites and do specific actions that you want
mikepack has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<shinobi_one>
but hey! i shouldn't doubt the ruby community..
ga1j1n has quit [Ping timeout: 255 seconds]
njection has quit [Ping timeout: 255 seconds]
<centrx>
I don't see anyone doing that. It would be an enormous effort for little benefit.
<wallerdev>
theres tons of web automation gems, I’m sure thats all he wants
Advocation has quit [Quit: Advocation]
george2 has quit [Remote host closed the connection]
fannye has quit [Remote host closed the connection]
gnagno has quit [Ping timeout: 264 seconds]
<wallerdev>
i used to use the mechanize gem for that kind of stuff if you want to check that out
beneg has joined #ruby
atlas__ has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
<benzrf>
so
<benzrf>
why use mri over mruby?
<benzrf>
*once the latter is mature
<benzrf>
is mri/yarv more performant?
vim_shim has joined #ruby
<wallerdev>
mri is the official ruby?
axsuul has joined #ruby
vlad_sta_ has joined #ruby
<mjc_>
mruby is not full ruby
Elhu has quit [Quit: Computer has gone to sleep.]
<youssefeid>
does the mechanize gem allow me to click on items on a webpage also?
Asher has quit [Quit: Leaving.]
<wallerdev>
youssefeid: yes
<axisys>
apeiros: it finally returned.. but no output
baroquebobcat has joined #ruby
<wallerdev>
it doesnt run javascript though
<axisys>
x[1] is the first or second field?
mikepack has quit [Ping timeout: 246 seconds]
beneggett has quit [Ping timeout: 255 seconds]
<youssefeid>
is it true that ruby only runs on linux servers?
<wallerdev>
lol
<shevy>
benzrf mruby lacks some things
vlad_sta_ has quit [Remote host closed the connection]
<shevy>
youssefeid ruby runs on OSX too and on windows
robbyoconnor has quit [Max SendQ exceeded]
<crome>
axisys: depends :)
<axisys>
crome: CSV.foreach('master.csv', { :col_sep => ':'} ) do |x|
<wmoxam>
youssefeid: it doesn't really run, it's more like a casual stroll
magoo has quit [Quit: WeeChat 0.4.2]
<crome>
axisys: in an array, it is
<axisys>
x[1] or x[0] will have the first field?
<crome>
0
<axisys>
thnaks
<axisys>
thanks*
nowthatsamatt has quit [Quit: nowthatsamatt]
<shevy>
axisys we always start counting at 0 in ruby arrays and strings
<youssefeid>
would you say that PHP is a better choice to go with based on what Im trying to do?
Notte has joined #ruby
<shevy>
in R we start at 1, which confuses the hell outta me
Elico has joined #ruby
<shevy>
youssefeid perhaps
<shevy>
youssefeid depends on how much you already know in PHP and how much you know in ruby
<wallerdev>
youssefeid: i dont think anyone knows what youre actually trying to do?
<benzrf>
never ever php
<axisys>
how do I change it so it prints the row one line?
vim_shim has left #ruby [#ruby]
<axisys>
puts x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],y[1] if x[0] == y[0]
<benzrf>
php is always the wrong choice
<benzrf>
ALWAYS
brain_shim has joined #ruby
njection has joined #ruby
<crome>
axisys: wow
<shevy>
axisys replace puts with print, append a "\n" after y[1]
vlad_starkov has quit [Ping timeout: 264 seconds]
<axisys>
shevy: thanks
<shevy>
axisys easier would be: p x
<axisys>
crome: newbiew
<axisys>
newbie*
<crome>
no worries
<tewlz>
benzrf: what if I have been using php for 40 years and someone is holding a gun to my hand demanding a website by tomorrow?
toastynerd has joined #ruby
io_syl_ has joined #ruby
<apeiros>
benzrf: wrong!
beneg has quit [Read error: No route to host]
kevinykchan has quit [Read error: Connection reset by peer]
<apeiros>
benzrf: php is the right choice for…
<apeiros>
*drumrolls*
io_syl_ has quit [Client Quit]
<youssefeid>
lol wrong place to ask about PHP. I'm just starting off with PHP and Ruby. My background is Java though
<apeiros>
enraging benzrf!
beneggett has joined #ruby
<benzrf>
youssefeid: php does /everything/ wrong
<shevy>
now now now
<shevy>
apeiros wrote about 50.000 lines of php code
kevinykchan has joined #ruby
<wallerdev>
php is great for simple sites
robbyoconnor has joined #ruby
Hobogrammer has joined #ruby
<tewlz>
why can't people javascript like php? Couldn't google have just made the V8 engine for some non-shitty langauge?
<apeiros>
shevy: I wrote 5.000.000 lines of php code! at least!
Elhu has joined #ruby
<crome>
tewlz: after 40 years of PHP you would beg for a bullet
<tewlz>
crome: LOLOL
<shevy>
youssefeid if you only want to do web stuff then php can do fine, of course it also is absolutely horrid and awful if you want to do more than web stuff with it
<shevy>
and even if you do only web stuff
<axisys>
shevy: how do I append? ,"\n" ?
<apeiros>
I assume the usual link has already been pasted?
<shevy>
it is still awful and horrid; centrx usually has a good quote
<shevy>
axisys yes. but p x would be even easier
mansi_ has quit [Remote host closed the connection]
<shevy>
apeiros the wheel one? dont think it has as of yet
<centrx>
PHP is an abomination and a scourge on the face of the earth.
<shevy>
hahahaha :D
<apeiros>
shevy: no, the fractal of bad design one
<tewlz>
php is just a fratured langauge that produces unexpected results the deeper you go. If you're starting out, please save yourself the headache and use a reasonable language.
<shevy>
oh that one
mansi has joined #ruby
<youssefeid>
then why are all these big sites coded in them?
<axisys>
shevy: p x,y[1],"\n" if x[0] = y[0] /
<axisys>
shevy: p x,y[1],"\n" if x[0] = y[0] ?
<tewlz>
much like javascript that we're all being forced to learn because now it's cool....damnit
<shevy>
axisys do you use IRB? you can try such code in irb
<apeiros>
youssefeid: because it's the easiest available language on the cheap hosters
<benzrf>
tewlz++
<axisys>
shevy: ok
njection has quit [Ping timeout: 240 seconds]
<shevy>
axisys I can't tell you for every line if it is wrong or right, you need to train your eyes. Look at the line, if you can not see an error, try it!
io_syl has quit [Ping timeout: 264 seconds]
<shevy>
youssefeid php integrates everything kind of
vlad_starkov has joined #ruby
<shevy>
try to get ruby on the web without installing anything else
<axisys>
how do I print like a foo,bar instead of [ "foo", "bar" ]
<tewlz>
youssefeid: one big reason people choose php is because there are a TON of php devs and hiring is easier
<axisys>
shevy: i am ubunut.. i have ruby and irb
<axisys>
i am on ubuntu*
<shevy>
axisys the latter is an array. you can convert an array into a string by calling method .join. in your example, try: array.join(', ')
<youssefeid>
so if you were to choose to learn a language for web dev fresh from the start and you had to choose between PHP and Ruby, which would you choose?
abdulsattar has quit [Ping timeout: 240 seconds]
peta_ has quit [Quit: peta_]
asteros has joined #ruby
<benzrf>
ruby
<shevy>
youssefeid for the first year?
kpshek has quit []
<youssefeid>
I'm still young so I want whats best for my future career
<benzrf>
always ruby
moein7tl has joined #ruby
<tewlz>
youssefeid: literally almost anything but php, or javascript. THat's shit too, but you'll have to learn javascript so suck it up.
<benzrf>
forget the web dev part
juarlex has quit [Remote host closed the connection]
<benzrf>
learn to PROGRAM
<shevy>
youssefeid php. then after a year you will hate it so much and switch to a better language
<randomnick_>
#php
crystal77 has quit [Quit: Computer has gone to sleep.]
<benzrf>
once you know how to program, learn to use that for web dev
<benzrf>
:U
<pipework>
youssefeid: The ability to learn and do anything is the most important thing in your career.
agarie_ has joined #ruby
<centrx>
Anything is better than PHP
mansi_ has joined #ruby
<shevy>
:)
<randomnick_>
ye ask on #php
mansi has quit [Read error: Connection reset by peer]
<crome>
youssefeid: one of the big advantages(?) of PHP is everything comes with built-in support for it. you install a web server, drop a php file in a directory in your public folder and it does something
<shevy>
yeah
<crome>
it requires little to zero entry level knowledge in anything
<benzrf>
crome: THAT IS NOT AN ADVANTAGE
<shevy>
it is about the only advantage it has over default ruby
<crome>
benzrf: I know
<pipework>
crome: That's not exactly how it works.
<apeiros>
youssefeid: you now, if you said python vs. ruby, or java vs. ruby, there might even be a discussion
<tewlz>
crome: not really, installing php modules can be buggy as fuck for your web server.
<shevy>
benzrf ease of deployment is a huge factor
pfg has joined #ruby
<apeiros>
youssefeid: but php vs. *anything*? it will always be *anything*
<benzrf>
shevy: heroku, for example, makes deployment easy as fuck
<benzrf>
apeiros: well....
<benzrf>
apeiros: there's always befunge
<shevy>
why do I fucking need heroku
<tewlz>
php vs brainfuck for learning how to use a loop?
yekta has joined #ruby
<benzrf>
oops i mean malbolge
moein7tl has left #ruby [#ruby]
agarie has quit [Ping timeout: 264 seconds]
<apeiros>
benzrf: no, no, really, even malbolge > php
<pipework>
tewlz: I'd rather just make my own hardware loop. Better than using PHP
<mjc_>
heh
<shevy>
I upload .php to just about most free webservers out there and that was it usually; even my university allows .php scripts, they don't allow ruby or .cgi stuff :(
<benzrf>
apeiros: idk man
mjs2600 has quit [Remote host closed the connection]
<tewlz>
pipework: lol you guys are so full of shit I can smell it over the internet.
kpshek has joined #ruby
<pipework>
Everything supports HTML and javascript.
<benzrf>
shevy: this is a problem with the university, not ruby
<pipework>
Use that.
<pipework>
tewlz: It's half the fun of being on IRC.
WormDr1nk has quit [Ping timeout: 264 seconds]
<shevy>
benzrf no, sample data to get numbers, you will see php is more widespread than default ruby
<mjc_>
one of php's biggest disadvantages is that it has everything built in
QKO has joined #ruby
thirdender1 has left #ruby ["PONG :dickson.freenode.net"]
<pipework>
But really though, I'd rather make a loop in hardware. That's interesting stuff for me. PHP isn't.
<mjc_>
it makes taking stuff out and improving apis very hard
<apeiros>
I love how in php, "0e9b6c7b1eda4043b440ee843feded72" == "0ed172bb55b342039458ad21568aab11"
crystal77 has joined #ruby
<benzrf>
>mfw
agent_white has quit [Quit: brb]
<shevy>
youssefeid php even has gtk bindings!
<benzrf>
jesus christ how horrifying
<youssefeid>
I'm looking at 10 maybe 20 years down the line. Would it be more beneficial to have 20 years of Ruby experience or 20 years of PHP experience?
njection has joined #ruby
nbezzala has quit [Ping timeout: 240 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
<shevy>
youssefeid you won't reach 20 years with PHP :)
<tewlz>
youssefeid: you're going about it the wrong way. You have NO idea what the web will look like in 20 years. Pick something you can learn easily NOW.
ndrei has quit [Ping timeout: 255 seconds]
Takehiro has quit [Quit: Leaving...]
<crome>
tewlz: +1
<benzrf>
youssefeid: it doesnt matter
<centrx>
Learn concepts, not langugaes
<youssefeid>
They say Ruby is going to take over PHP no?
<benzrf>
centrx += 10
<tewlz>
php is good for starting out honestly. Either is fine, just don't look for a career in PHP you'll hate yourself
<benzrf>
youssefeid: it doesnt matter
xerxas has quit [Quit: Connection closed for inactivity]
jjbohn has joined #ruby
SHyx0rmZ has joined #ruby
<benzrf>
learn something that's good and reasonably popular, not something that's atrocious and a bit more popular
beneggett has quit [Read error: No route to host]
<tewlz>
but really the ruby community is a hell of a lot easier to learn from. PHP has so many veterans that suck ass at coding.
<benzrf>
windows is more widespread than gnu/linux, but which do you use?
<shevy>
youssefeid ruby and php do not have 100% overlapping niches
<tewlz>
ruby agrees on conventions a lot more often and makes good choices together so it's a bit easier to follow along.
beneggett has joined #ruby
<shevy>
youssefeid so ruby can not take over PHP
YamakasY has joined #ruby
nbezzala has joined #ruby
<shevy>
youssefeid starts by having .php files and no corresponding ruby variant for the web - you'd have .cgi .ru or some "app", which is almost always more complicated
<shevy>
and .erb
<benzrf>
that is a good thing
<benzrf>
php's scheme of everything being in templates is an abomination
okdas has joined #ruby
ndrei has joined #ruby
senayar has joined #ruby
jjbohn has quit [Ping timeout: 246 seconds]
YamakasY_ has joined #ruby
mrnugget has joined #ruby
<youssefeid>
Can I pull a webpage's html code with Ruby?
wallerdev has quit [Quit: wallerdev]
<shevy>
yes
armyriad has quit [Ping timeout: 264 seconds]
mando has joined #ruby
<benzrf>
youssefeid: any language worth using can do that
<yekta>
Hello, I'm trying to separate a whole slew of handler methods into a sort of PORO helper. Trouble is, my handler methods now depend on attr_accessor objects from the class I'm pulling them out of. What's the best way to refactor that? Should I just have the helper be a module and pass the accessor object to each handler method every call?
<benzrf>
youssefeid: which language has nothing at all to do with what tasks you can accomplish with it, unless you're doing something super specialized
<youssefeid>
Ruby is the winner then :)
<crome>
and with less dumb
<IceyEC>
even easier :-P
Fire-Dragon-DoL has joined #ruby
njection has quit [Ping timeout: 264 seconds]
<benzrf>
youssefeid: it has to do with which language is better as a language
<shevy>
IceyEC but that is just a way to use it - you can do a "binary" that does the same in ruby just as well
<benzrf>
youssefeid: a language is not a toolbox, it is a LANGUAGE
claymore has joined #ruby
Eiam has joined #ruby
<benzrf>
youssefeid: but beginners seem to always think of languages as what tasks they make it easy to accomplish
<benzrf>
x.x
<IceyEC>
shevy I was merely paling with the 'any language worth using can do that'
<IceyEC>
playing*
<shevy>
youssefeid ruby is slightly more complicated than php
baroquebobcat has joined #ruby
zachallett has quit [Remote host closed the connection]
twiceaday has quit [Ping timeout: 255 seconds]
<shevy>
in php you never have to ask what a block is
Eiam has quit [Client Quit]
dingus_khan has joined #ruby
<shevy>
hmm... does php have lambdas?
okdas has quit [Ping timeout: 252 seconds]
<benzrf>
probably.
atlas__ has joined #ruby
twiceaday has joined #ruby
<apeiros>
shevy: see create_function
<benzrf>
and knowing php they're fucking awful
<shevy>
huh
<shevy>
what a name :)
beneggett has quit [Read error: No route to host]
<apeiros>
well, the name is surprisingly sane
<shevy>
reading that name alone I would think define_method to be equivalent to it
<shevy>
it seems you can do that in javascript even with a class (prototype?)
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
var sum = new Function('a','b', 'return a + b;');
agarie_ has quit [Remote host closed the connection]
claymore has quit [Ping timeout: 240 seconds]
<shevy>
hmm
<shevy>
var sum = function(a, b) { return a + b; }
<shevy>
damn it
kevinykchan has quit [Read error: Connection reset by peer]
<shevy>
even javascript looks better than php
phantomtiger has joined #ruby
jrichocean has joined #ruby
kevinykchan has joined #ruby
<benzrf>
js is not the worst language ever
Skylab has joined #ruby
teddyp1cker has quit [Ping timeout: 252 seconds]
<benzrf>
it's poorly designed and has crappy syntax, but it has some nice parts
<tewlz>
I don't even care about looks. I can coffeescript and it looks fine. It's the fact that even error reporting is inconsistent in php. I can get along fine, but I DO NOT WANT to get balls deep into a deadline and have some esoteric bullshit stop me for three days.
<benzrf>
php on the other hand
<benzrf>
jesus christ error reporting in php
<benzrf>
is the FUCKING WORST
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
<benzrf>
did you know that by default, a whole lot of errors get completely ignored?
claymore has joined #ruby
<benzrf>
the script just keeps running?
failshell has joined #ruby
<benzrf>
jesus christ
<tewlz>
thanks god I never had a career in php.
evenix_ has joined #ruby
rvraghav93 has quit [Quit: No Ping reply in 180 seconds.]
Skylab has left #ruby [#ruby]
rvraghav93 has joined #ruby
VTLob has joined #ruby
claymore has quit [Client Quit]
<apeiros>
@benzrf
<benzrf>
?
kotakotakota has joined #ruby
Xeago has joined #ruby
beneg has joined #ruby
<apeiros>
now he'll swear less :)
claymore has joined #ruby
<benzrf>
?
Xeago has quit [Read error: Connection reset by peer]
<youssefeid>
Anyone have some really good resources for learning Ruby?
<apeiros>
@ suppresses all error output
<benzrf>
oh lol
<benzrf>
i thought you were addressing me, twitter style
<apeiros>
^^
xcv has joined #ruby
xcv has quit [Remote host closed the connection]
<apeiros>
ok, should have used valid php: @benzrf()
<benzrf>
'valid php'
<apeiros>
damn, still off… @benzrf();
<benzrf>
youssefeid: i read the poignant guide, then harassed everybody in this channel with dumb questions for a month or two
njection has joined #ruby
Xeago has joined #ruby
<youssefeid>
lol
beneggett has quit [Read error: No route to host]
evenix has quit [Ping timeout: 246 seconds]
<dstynchula>
youssefeid: The ruby monk is a really good primer
<dstynchula>
full disclosure, I'm still learning myself, so I dont know how it scales
beneggett has joined #ruby
<tewlz>
youssefeid: if you're a baller, you'll just grab the pickaxe, read through it once, grab a 'good practices' like eloquent ruby, then hit the pickaxe again and you'll be so chalk full of ruby information you'll feel like a goddess with 10 dicks
claymore has quit [Remote host closed the connection]
philcrissman has joined #ruby
<youssefeid>
twelz: I like that
Jetchisel has joined #ruby
<tewlz>
youssefeid: if you're just playing around trying to find out if you like programming you should do stuff like rubymonk, super helpful but free and a lot less time intensive.
claymore has joined #ruby
<mjc_>
tewlz: lol
ferr has quit [Quit: Leaving.]
<youssefeid>
I already know I love programming. I mean where else can you be this creative?
<shevy>
tewlz lol "a goddess with 10 dicks"
<tewlz>
youssefeid: woodworking, painting, philosophy, legos, etc.
robbyoconnor has quit [Max SendQ exceeded]
Hanmac1 has joined #ruby
YamakasY_ is now known as YamakasY
<youssefeid>
lol
<shevy>
youssefeid in the life sciences - develop new nanobiomachines!
robbyoconnor has joined #ruby
nanoyak has joined #ruby
beneg has quit [Ping timeout: 240 seconds]
njection has quit [Ping timeout: 240 seconds]
kaliya has quit [Ping timeout: 246 seconds]
agarie has joined #ruby
<youssefeid>
im 15...
<benzrf>
youssefeid: haha
baroquebobcat has quit [Quit: baroquebobcat]
<tewlz>
then stop hitting on us. We're all over 18, that's illegal you'll go to jail
<benzrf>
youssefeid: i can show you some codes if you like :)
<benzrf>
do you know any programming already
Hanmac has quit [Ping timeout: 246 seconds]
<youssefeid>
Yea i coded for 8 months or so in Java
derek_c has joined #ruby
<shevy>
tewlz benzrf is still only 16
<youssefeid>
show me dem examples!
Kilo`byte has quit [Read error: Connection reset by peer]
mjw1 has left #ruby [#ruby]
<dstynchula>
10 dicks, lol! That would make her Deca-Dicktal!
<shevy>
lol
<youssefeid>
lol
<apeiros>
oh dear
stretchlimo has joined #ruby
<apeiros>
dstynchula: really?
senayar has quit [Remote host closed the connection]
<tewlz>
apeiros: well I mean that doesn't have to be her nickname, what do you suggest since you seem to not like it...
b00stfr3ak has quit [Read error: Connection reset by peer]
<apeiros>
I see, that rather immature depiction came from you tewlz
<dstynchula>
;b
<shevy>
dstynchula and what is dodeca!
<benzrf>
shevy: lies
funktor has quit [Remote host closed the connection]
<benzrf>
im 17
<shevy>
omg
<shevy>
you age quickly
<tewlz>
apeiros: excuse me? Exactly what dumbass decided sex jokes were immature?
<dstynchula>
12 methinks
<benzrf>
youssefeid: so you know OOP and procedural pretty well then?
<shevy>
yeah dstynchula
<yekta>
Can I get some OO help with Ruby, I've got helper methods in a module, but the helper methods rely on attr_accessor objects in a class I call the helper methods *from*. Is it bad practice to clone the attr_accessor objects to module's attr_accessor on the Class's initialize? Is there a better way to to this?
<apeiros>
tewlz: me. and if you do it again, I'll show you the way out.
kevinykchan has quit [Read error: Connection reset by peer]
duggiefresh has quit [Read error: Connection reset by peer]
duggiefresh has joined #ruby
kevinykchan has joined #ruby
wchun has joined #ruby
baroquebobcat has joined #ruby
dkamioka has joined #ruby
<youssefeid>
benzrf: yea
tt1187 has quit [Ping timeout: 255 seconds]
<tewlz>
apeiros: I mean if you're truely offended I'll stop just for you, but lets not act like it's for the communities sake, I don't know of a single person who didn't start making sex jokes by 10 and they certainly don't stop when you're older.
<benzrf>
youssefeid: ok
claymore has quit [Quit: Leaving]
pskosinski has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
<benzrf>
youssefeid: ruby has a number of new concepts over java but a lot is somewhat similar
<apeiros>
tewlz: it's inappropriate. don't do it.
<benzrf>
i.e. basic stuff like variables
claymore has joined #ruby
nanoyak has joined #ruby
njection has joined #ruby
<apeiros>
tewlz: that is, don't do it here. what you do on your regulars' table is none of my concern.
james_d_h has quit [Quit: leaving]
<benzrf>
youssefeid: the biggest difference from an OOP standpoint is that in ruby, there are no public fields
<benzrf>
youssefeid: and you don't predeclare what fields you have
<yekta>
Is this a bad place to ask for OOP Ruby advice?
<terrellt>
Best way to select the first element of an array that matches a condition?
<terrellt>
Something like #select, but I only want one.
<shevy>
yekta no but you have a very narrow problem field
<benzrf>
terrellt: detect
nanoyak has quit [Read error: Connection reset by peer]
<benzrf>
youssefeid: you can set any instance variable at any time, and none of them are public unless you make methods to return them
toastynerd has quit [Remote host closed the connection]
<crome>
terrellt: find
<benzrf>
youssefeid: even 'foo.bar = baz' is just calling that bar= method on foo
nanoyak has joined #ruby
jtgiri_ has joined #ruby
<terrellt>
Thanks benzrf, crome.
i_s has quit [Read error: Connection reset by peer]
<shevy>
youssefeid see? benzrf is only a bit older than you and already knows a lot
Travis-42 has joined #ruby
<shevy>
youssefeid and he is on #ruby but not on #php
mansi_ has quit [Remote host closed the connection]
i_s has joined #ruby
Kilo`byte has joined #ruby
<youssefeid>
lool benzerf's already been through what i'm going through
mansi has joined #ruby
<yekta>
shevy: Really? All I want to do really is just encapsulate a bunch of methods from my Class into a helper class/module so as to keep a more clean looking class. Is there a better way I should be doing this? The issue is the helper methods all currently depend on an attr_accessor object in the Class.
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
<shevy>
yekta first things first
<benzrf>
youssefeid: one of the biggest diffs youll notice at first between ruby and C is dynamic typing
<shevy>
yekta attr* do nothing else than you manually def*-ing them ok?
<benzrf>
youssefeid: *between java
klaut has joined #ruby
<benzrf>
youssefeid: in ruby you dont predeclare what type something is
Xeago has quit [Read error: Connection reset by peer]
<apeiros>
yekta: sounds fine. modules often depend on a method in the host class. see Enumerable (each) and Comparable (<=>)
<benzrf>
you just assume it's the type you want
jkamenik has quit [Quit: Leaving.]
<benzrf>
in fact, even if it isn't, itll work as long as it has the method you call
<youssefeid>
yea i noticed that when i looked at some code
<benzrf>
mhm
<benzrf>
instead of detecting that the method you want doesn't exist on that type at compile time
toastynerd has joined #ruby
<benzrf>
you get a runtime error if you try to call it
vlad_starkov has quit [Remote host closed the connection]
funktor has joined #ruby
<benzrf>
>> if true; "foo".reverse; else; "foo".woeifusdiuj; end
<benzrf>
youssefeid: the 1 biggest new thing youll see is probably blocks
<yekta>
apeiros: so how does the module know about that method aka. attr*, is it better practice to pass it in as an argument to an initializer or something? (still looking up the example you cited)
<crome>
but you can always define #woeifusdiuj on String!
<benzrf>
blocks are basically chunks of code that are stored into objects
<benzrf>
you can then run them later
<benzrf>
ish
<Travis-42>
is it bad practice in ruby to use #find to just loop until soemething is found, but not care about the return value? E.g. my_result = nil; array.find { |value| my_result = search(value); } to get the first my_result value found?
<benzrf>
in practice you are usually giving them to methods
<apeiros>
yekta: the common practice is to document on what method the module depends
<benzrf>
but im trying to cover what blocks are =p
<IceyEC>
haha fair enough
<benzrf>
without adding things like symbols and #to_proc
funktor has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
<benzrf>
youssefeid: the method receiving the block can then call it whenever it likes, or choose not to call it at all
<benzrf>
youssefeid: you're basically handing some code to the method, and the method chooses what it wants to do with it
pedrocr has joined #ruby
<youssefeid>
thanks benzrf
<benzrf>
np
<pedrocr>
I want to fork+exec from ruby into a C program and share a pipe in the process, is that possible?
atlas__ has joined #ruby
<yekta>
apeiros: Would you mind if I gist you my class and module and get some OO feedback? I feel like I've been working on this so long I'm loosing clarity of mind.
ga1j1n has joined #ruby
<apeiros>
yekta: sure, go ahead
rankine has quit [Quit: leaving]
<benzrf>
yekta: ill look @ it also
<apeiros>
yekta: and if not me, theres plenty who can/will
BuddhaGorilla has quit [Quit: Dreaming of bananas and butter...]
<benzrf>
shevy: i didnt write anything
VTLob has quit [Ping timeout: 252 seconds]
<benzrf>
this just started happening after installing a gem, or something
IceyEC has quit [Quit: IceyEC]
davy_ has joined #ruby
<jellosea>
i suddenly started getting this error while trying to parse xml in nokogiri, anyone know why? read_io': no implicit conversion of nil into String (TypeError)
<benzrf>
jellosea: what's the xml source?
<jellosea>
my code didn't change, but it seems to break now for any xml feed i use
<jellosea>
benzrf: its a few diffferent xml places,
mmoretti has joined #ruby
<jellosea>
sorry
<jellosea>
rss
pu22l3r has quit [Remote host closed the connection]
<benzrf>
i mean
<benzrf>
how are you getting it in your code
<yekta>
benzrf: right on, thanks - I'll have a look at it.
<benzrf>
=]
<jellosea>
doc = Nokogiri::XML(open(link))
pu22l3r has joined #ruby
timonv has quit [Remote host closed the connection]
<benzrf>
ok, so how do you know that the open is going through?
mjw1 has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
<jellosea>
whats going on this code worked file for months haha
stupidystupid has joined #ruby
Hanmac has joined #ruby
<yekta>
benzrf: Its an interesting approach alright. I'll have to digest this some. Thanks
samfisher has joined #ruby
dingus_khan has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 246 seconds]
<benzrf>
:_)
alexju has quit [Remote host closed the connection]
<benzrf>
* :)
coderxin_ has joined #ruby
<jellosea>
benzrf: any idea whats goin on?
<benzrf>
nope :I
<jellosea>
what is open supposed to return
mansi has quit [Remote host closed the connection]
brain_shim has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
_bart has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<samfisher>
I need to delete first and last line from a file. Actually, it has some weird format with
<samfisher>
squares
<samfisher>
a text file
<_bart>
anyone experience with zeromq?
bennylope has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jellosea has left #ruby [#ruby]
nfk has quit [Quit: yawn]
njection has quit [Ping timeout: 255 seconds]
mansi has joined #ruby
dingus_khan has joined #ruby
<benzrf>
_bart: i know a bit!
<benzrf>
what's up?
<_bart>
benzrf: do you recommend it?
<_bart>
benzrf: what did you use it for?
duggiefresh has quit [Remote host closed the connection]
<benzrf>
i intend to use it for my shitty cryptocurrency
coderxin has quit [Ping timeout: 255 seconds]
xcv has joined #ruby
<_bart>
haha
<benzrf>
and i recommend it to the extent of applicable law
<benzrf>
do you know it at all?
funktor has quit [Remote host closed the connection]
<_bart>
just checking out the video introductions
<_bart>
PHP-UK
bradhe has joined #ruby
<eichenwald>
why not amqp
vt102 has quit [Remote host closed the connection]
SrPx has quit [Remote host closed the connection]
<_bart>
it's a general talk about zeromq, not so much PHP specific
dingus_khan has quit [Remote host closed the connection]
juarlex has joined #ruby
atraylen has joined #ruby
shredding has quit [Quit: shredding]
creede has joined #ruby
Guest5613 has quit [Changing host]
Guest5613 has joined #ruby
<_bart>
eichenwald: don't know, haven't checked that one out
<benzrf>
eichenwald: because it is a different thing entirely
toastynerd has quit [Remote host closed the connection]
TheFishy has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
<benzrf>
_bart: zeromq is kinda like tcp but it's not
<TheFishy>
Is there a good http client that is thread safe?
blom has joined #ruby
nfk has joined #ruby
andrewlio has quit [Ping timeout: 255 seconds]
dzhulk has quit [Quit: Leaving.]
<eichenwald>
well amqp with rabbitmq is pretty easy to get going with
<benzrf>
zeromq is nuts tho
dzhulk has joined #ruby
<benzrf>
_bart: zeromq's 'sockets' are endpoints that transmit data, like tcp sockets
<benzrf>
they are otherwise not greatly similar
endash has quit [Ping timeout: 265 seconds]
<benzrf>
for one, they deal in discrete messages instead of streams of bytes
<_bart>
TheFishy: maybe simply the rest-client gem?
njection has joined #ruby
toastynerd has joined #ruby
jayne has joined #ruby
<shinobi_one>
is it possible in ruby to run a regular expression on a string from right to left?
wallerdev has joined #ruby
blom has quit [Read error: Connection reset by peer]
<benzrf>
_bart: the big diff though is that they are n-to-n and come in a few different flavors for use in common patterns
meatherly has quit [Remote host closed the connection]
<apeiros>
shinobi_one: not really. you can reverse the string and run the regex on that (though I assume you'd have to adapt the regex for that)
<benzrf>
_bart: and they automatically handle connections and disconnections, operate transparently over multiple transports, and are remarkably fault-tolerant
<benzrf>
(in comparison to tcp sockets anyway)
meatherly has joined #ruby
ikaros has quit [Quit: Ex-Chat]
<apeiros>
shinobi_one: you can anchor your regex to the end of the string - that's kind of running it from right to left
carraroj has quit [Quit: Konversation terminated!]
meatherly has quit [Read error: No route to host]
<apeiros>
shinobi_one: though, how about you tell us about the problem you try to solve instead of your suggested solution?
optz has joined #ruby
meatherly has joined #ruby
tewlz has quit [Ping timeout: 264 seconds]
<_bart>
zeromq makes me think of Storm
michaeldeol has joined #ruby
<_bart>
the way it divides load over a lot of 'tuples'
toastynerd has quit [Remote host closed the connection]
<shinobi_one>
apeiros: nevermind i'm an idiot
<_bart>
when using REQ/REP in combination with a ROUTER and DEALER does it still uses the queu of the client?
njection has quit [Ping timeout: 252 seconds]
<crome>
optz: returning nil when conditions are not met are usually not a very good idea. imagine you have 2 similar conditions, how would you figure out which one was hit in a test?
baroquebobcat has joined #ruby
i_s has quit [Ping timeout: 255 seconds]
IceyEC has joined #ruby
SrPx has joined #ruby
agarie has quit [Remote host closed the connection]
Jetchisel has joined #ruby
claymore has quit [Ping timeout: 264 seconds]
phansch has joined #ruby
<_bart>
Normally it queues the messages on the client side if the the server is blocking
beneg has quit [Read error: No route to host]
creede has joined #ruby
blom has joined #ruby
failshel_ has joined #ruby
beneg has joined #ruby
jamto11 has quit [Remote host closed the connection]
shredding has joined #ruby
lampe2 has quit [Ping timeout: 252 seconds]
asteros has joined #ruby
derek_c has quit [Ping timeout: 240 seconds]
<optz>
Crome- I was referring to the fact exit the function that way
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
terrellt has quit [Ping timeout: 255 seconds]
lampe2 has joined #ruby
njection has joined #ruby
okdas has quit [Ping timeout: 252 seconds]
<ceej>
soahccc: I'm not using rails btw, but I just want the Rails.root (#root) method in my app. If I remember Dir.getwd has issues when mounted to another rack app
mikepack has quit [Remote host closed the connection]
<skiabox>
what am I doing wrong?
_bart has quit [Quit: leaving]
<shevy>
platzhirsch Kruger? freddy from nightmare on elm street?
evenix has joined #ruby
njection has joined #ruby
<shevy>
skiabox no
<shevy>
skiabox the question is
* platzhirsch
farts into his hands and throws it to shevy
<shevy>
skiabox what are you trying to do
<platzhirsch>
apeiros: there goes your South Park reference
klaut has quit [Remote host closed the connection]
<shevy>
platzhirsch this is why people don't wanna shake hands with you :)
dingus_khan has quit [Ping timeout: 255 seconds]
<atmosx>
shit
<atmosx>
I'm hungry
<platzhirsch>
I don't have hands, I have hooves
<skiabox>
shevy : I am getting the following error from RubyMine
tkuchiki has quit [Remote host closed the connection]
<shevy>
skiabox pastebin.com is quite awful btw
<shevy>
hey atmosx
<atmosx>
hey shevy
<atmosx>
shevy: how's work?
<shevy>
skiabox can you use pastie.org or gist github?
<platzhirsch>
Gist or dead
Al__ has quit [Read error: Connection reset by peer]
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
<atmosx>
gist for the win (using the vim plugin)
Al__ has joined #ruby
<atmosx>
anyone using tmuxinator here?
<shevy>
atmosx nah, I am preparing for some other stuff... then I will intensify on R, read up on cancerbiology again, do some exams, then write to another (larger) company
<shevy>
skiabox all classes in ruby can have the initialize method, simply call the method in initialize and also instantiate your class into an object by doing .new
<shevy>
no please dont rely on redmine
mikepack has joined #ruby
<atmosx>
shevy: lol
<atmosx>
shevy: didn't go well with the perl guys?
<shevy>
>> class Test_Me_2; def initialize; puts time_as_string; end; def time_as_string; Time.now.to_s; end; end; x = Test_Me_2.new
<shevy>
skiabox ^^^ look at the above code, that works. replace all ; with \n mentally or paste into your editor but please dont use redmine :D
<shevy>
atmosx well
<atmosx>
-> /Users/Administrator ... a mac account called 'Adminisgrator'? that's werid alias
<skiabox>
I'll try this code right away
<shevy>
atmosx realistically there is no way to develop in their area
Guest46591 has joined #ruby
stupidystupid has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Elhu has quit [Quit: Computer has gone to sleep.]
<shevy>
atmosx they do in house service via scripts, data mining, annotating and curating dataset, which is derived from only a few scientists
W0rmDr1nk has joined #ruby
<shevy>
atmosx I can be a code monkey or a service monkey but that is insanely boring
stupidystupid has joined #ruby
nfk has quit [Ping timeout: 240 seconds]
<atmosx>
shevy: I see
<atmosx>
shevy: but do they pay well?
chipotle has joined #ruby
<shevy>
atmosx not there, but in the parent company (corporation)
njection has quit [Ping timeout: 240 seconds]
<atmosx>
shevy: but seriously, if you could choose what would you like to work on?
<shevy>
but they have a stricter regimen and mandatory requirement to go through too so I don't know if I could fit it, I will know in about 2 months
<shevy>
atmosx hmm
* atmosx
tries really hard not to eat corn flakes and watch the last episode of Suits
mikepack has quit [Ping timeout: 240 seconds]
<platzhirsch>
Is Suits good? It looked cheap on an Ad here in Berlin
<shevy>
atmosx I know what I want to do, roughly... it's not easy to describe. Synthetic biology is one of the coolest things by far, but it would require relocation to the USA
BuSerD has quit [Quit: BuSerD out........]
<skiabox>
shevy it worked
<shevy>
skiabox \o/
<skiabox>
so the easiest way to just run code is to create a class like this?
WormDr1nk has quit [Ping timeout: 255 seconds]
<atmosx>
platzhirsch: It's cheap, compared to "True Detective", "A Game of Thrones" and "A House of Cards" or even "Breaking Bad" IMHO, but it's 'soft' ... a bit boring if you watch too many episodes at once but I like the leading characters. It is cheap though.
coderxin_ has quit [Remote host closed the connection]
<skiabox>
I mean if you don't want to use irb and you want to use RubyMine for example
<shevy>
atmosx which is why I'll try to get into cancerbiology first, at worst I'll get some more months hands on experience, and/or do some programming related to bioinformatics, and in a year or two I can perhaps still see what I can do
<atmosx>
platzhirsch: but I like the fact that it's easy-going after watching true detective in 24 hours, made me wanna kill myself.
<platzhirsch>
atmosx: yeah alright, that's how I would describe 'The Blacklist'
<shevy>
skiabox don't know if it is "easiest"
<platzhirsch>
atmosx: yeah, I did Breaking Bad in 5 days
<shevy>
skiabox but a class neatly packages up things for you that are related to the job at hand
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
doodlehaus has joined #ruby
<atmosx>
shevy: I see.
<shevy>
skiabox you can instantiate a class at any time via new, and you can also use class methods for more convenient APIs
<platzhirsch>
shevy: Cool, so you are gearing up for the next career frontier?
<atmosx>
shevy: you have a degree in biology or something? I can't recall, I know you're in a related field
<skiabox>
shevy : I mean something like a static class
<atmosx>
platzhirsch: really? I didn't like the first 5 seasons, I wanted to kill the ... I don't remember his name, his helper... myself
<shevy>
atmosx hmm not quite, I'd still have to do a few more exams
<atmosx>
platzhirsch: sorry, the first 3 seasons lol
<atmosx>
shevy: but what ar eyou studying?
Fire-Dragon-DoL has quit [Ping timeout: 252 seconds]
<shevy>
atmosx right now chemistry; prior to that biology and genetics
asteros has quit [Quit: asteros]
fgo has joined #ruby
<platzhirsch>
atmosx: I was totally hooked after the first 30min..
<atmosx>
shevy: btw I'll be in Vienna with my gf and maybe some family from 1 to 6/4.
<shevy>
\o/
bcavileer__ has quit []
<atmosx>
shevy: we do some plasmid isolation experiments now, I don't understand shit :-( the guy is awful
njection has joined #ruby
bcavileer__ has joined #ruby
<shevy>
cool
<shevy>
sounds boring though hahaha
<atmosx>
shevy: his guarantor (with whom I have my thesis) is cool though, his last class was about chaperons
<shinobi_one>
anyone know how to find xcode path without using `xcode-select --print-path`? trying to uninstall macruby and i don't have xcode-select..
yasushi has joined #ruby
brkattk has quit [Quit: Leaving.]
<atmosx>
platzhirsch: you into chemistry?
Chronocity is now known as osvico
nateberkopec has joined #ruby
<atmosx>
platzhirsch: did you see your self in 'hero protagonist' ?
bcavileer__ is now known as bcavileer
mikemac has joined #ruby
<shevy>
atmosx platzhirsch will soon work in London!
bcavileer has quit [Changing host]
bcavileer has joined #ruby
bcavileer has joined #ruby
x77686d has joined #ruby
<platzhirsch>
atmosx: not at all. In high school it was always a close call whether I fail the class, just my grandfather (has a PhD there) bailed me out every time
<atmosx>
shevy: really? hm as a system administrator at a bio-informatics division in a univ?
<skiabox>
Is there any other way to run some code without having to instantiate a class?
<shevy>
atmosx dunno what platzhirsch will do in london
<Nowaker>
skiabox: class methods
<atmosx>
platzhirsch: I failed once in Chemistry and now I'm studying pharmacy (15 years later), I mean I hate chemistry with a passion but (at least now) I reckon there's as much magic as one can get in chemistry.
<platzhirsch>
Software Development
crazymykl has quit [Ping timeout: 240 seconds]
<atmosx>
platzhirsch: wow cool, RoR?
<platzhirsch>
Startup, building a product, burning out
<Nowaker>
def self.method ... end, and call it with MyClass.method()
dstynchula has quit []
<skiabox>
Nowaker : can u give an example my friend?
Vovko has joined #ruby
nisstyre has quit [Ping timeout: 252 seconds]
<shevy>
skiabox he kinda did just now ;)
funktor has joined #ruby
<platzhirsch>
I don't know, I am still in the interview huddle and I don't see myself succeeding anytime soon, but if this one thing works out I will build an Android app, but they use Ruby, and RoR on the backend so I could switch somewhen
<shevy>
>> class Foo; def self.yo; puts 'hi i am a class method'; end; end; Foo.yo()
<shevy>
atmosx I've noticed one curious thing about the perl guys though
<platzhirsch>
I am also applying to Full-stack engineer jobs where they use Python and Django, so I am bit suicidal, I just want to get the ball rolling you know? And get out of my R&D job
<shevy>
they really write only more or less isolated .pl scripts
<shevy>
some other guy comes to them, tells them he has this or that problem, then they write a perl script; and that was it, problem solved. moving on.
<platzhirsch>
atmosx: 'hero protagonist' ?
yfeldblum has joined #ruby
Elico has joined #ruby
jph98 has quit [Client Quit]
blom has joined #ruby
jjbohn has joined #ruby
<atmosx>
platzhirsch: yeah, I was making a reference to Stephenson but you got the point :-) - Did you like Walter White? :-)
<shevy>
atmosx they are kind of not integrating everything, like writing something more robust, no GUIs, no web stuff either anywhere, it's a bit like coding in the 1990s
<platzhirsch>
atmosx: I am not sure, it was an absolute painful experience to watch him so I would say no, but his transformation was very epic and biblic
<atmosx>
shevy: hmm
codabrink has quit [Ping timeout: 246 seconds]
* atmosx
eating corn flakes
quixotic_ has quit [Quit: Leaving]
njection has quit [Ping timeout: 246 seconds]
<atmosx>
platzhirsch: did you see "True Detective" ?
<platzhirsch>
no
workmad3 has joined #ruby
<platzhirsch>
corn flakes are really for children atmosx
<skiabox>
nice
<platzhirsch>
like fish sticks
<atmosx>
platzhirsch: i"m a 32 year old children, what can I say.
<skiabox>
I've changed my code so that it uses the magic self keyword!
ffranz has quit [Read error: Connection reset by peer]
<platzhirsch>
Don't fuck around with some sorry ass corn flakes. Make a big bowl of cereal and add some fucking flavor with fresh fruits and lots of different nuts. Healthy tastes goddamn delicious
<platzhirsch>
#thugkitchen
<skiabox>
yeah
codabrink has joined #ruby
<skiabox>
thanks to all you guys
SCommette has joined #ruby
<skiabox>
you were so helpful really
<skiabox>
:)
jgoss has quit [Ping timeout: 264 seconds]
<atmosx>
platzhirsch: fruits??? Who told that at 00:44 fruits are healthy? :-)
<shevy>
oranges
<skiabox>
shevy : I am in Frankfurt
<platzhirsch>
atmosx: yeah if you bought organic ones they are rotten by now
<shevy>
I am sorry for you skiabox :(
<skiabox>
why?
<platzhirsch>
skiabox: am Main or Oder?
nateberkopec has quit [Quit: Leaving...]
<apeiros>
banister_: ping - got an idea how to debug abnormously long startup time in pry?
<shevy>
you are surrounded by banksters and ugly buildings
momigi has joined #ruby
fgo has quit [Remote host closed the connection]
<atmosx>
shevy: oranges are kinda dangerous too... depends on stomach pH and prostanglandins floating around but could be really harmful in the afternoon
<skiabox>
define Oder
<platzhirsch>
Frankfurt (Oder)
<shevy>
atmosx damn, you sound like a girl :D
ffranz has joined #ruby
<atmosx>
shevy: I study these things :-P ... what can I do?
<platzhirsch>
The big ass river from Poland
danno1 has quit [Ping timeout: 240 seconds]
<atmosx>
shevy: mind you - I'm eating Beeren Muesli now
Fire-Dragon-DoL has joined #ruby
bcavileer has quit []
lw has quit [Quit: s]
<shevy>
I ate some Muesli some hours ago
<shevy>
now I could really need some fruits but I have none left