<jhass>
require is just a method, where it's called doesn't matter. It loads a ruby file relative to $LOAD_PATH
toastynerd has joined #ruby
<jhass>
include mixes a module into a class, making methods defined in that module available on that class
tkuchiki has quit [Read error: Operation timed out]
axl_ has left #ruby [#ruby]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
axsuul has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
monsieurp has quit [Quit: Lost terminal]
toastynerd has quit [Remote host closed the connection]
lolmaus has quit [Ping timeout: 240 seconds]
<jamto11>
i have a hash map with keys and values that are both strings (the values are all strings but i want to change them to integers). how do i change all the values to integers elegantly while retaining the map?
<kennym>
can someone invite me to the #rails channel?
<kennym>
never mind
<centrx>
kennym, Register and identify your nick
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
<kennym>
it is… however the actual channel I am looking for is #rubyonrails
Geniack_ has quit [Read error: Operation timed out]
marcdel has joined #ruby
chipotle has quit [Ping timeout: 240 seconds]
YamakasY has joined #ruby
<centrx>
kennym, Correct
<kennym>
centrx: thank you
FenixFyreX has quit [Ping timeout: 245 seconds]
nhmood_ has joined #ruby
bitsandbooks has joined #ruby
CaptainJet has joined #ruby
cescalante is now known as ce_afk
Geniack has joined #ruby
nhmood_ is now known as nhmood
apeiros has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
zz_karupanerura is now known as karupanerura
sdouglas has quit [Ping timeout: 265 seconds]
nisstyre has joined #ruby
YamakasY has quit [Read error: Operation timed out]
bluepojo_ has joined #ruby
YamakasY has joined #ruby
sparrovv has quit [Remote host closed the connection]
apeiros has joined #ruby
DrShoggoth has joined #ruby
chipotle has joined #ruby
binaryhat has joined #ruby
bluepojo has quit [Ping timeout: 265 seconds]
sdouglas has joined #ruby
vpretzel has joined #ruby
garbagecollectio has quit [Quit: garbagecollectio]
nateberkopec has quit [Quit: Leaving...]
jgoss has joined #ruby
lolmaus has joined #ruby
garbagecollectio has joined #ruby
fgo has quit [Remote host closed the connection]
nhhagen has joined #ruby
aspires has joined #ruby
supermarin has joined #ruby
Salve has joined #ruby
jimmyy has quit []
sambao21 has joined #ruby
aspires has quit [Client Quit]
e4xit_ has joined #ruby
e4xit has quit [Ping timeout: 240 seconds]
e4xit_ is now known as e4xit
pu22l3r has joined #ruby
nhhagen has quit [Ping timeout: 265 seconds]
Fyyr13_ has joined #ruby
tkuchiki_ has joined #ruby
jimmyy has joined #ruby
chipotle has quit [Quit: cya]
Fyyr13_ has quit [Ping timeout: 240 seconds]
bricker`LA has joined #ruby
momigi has quit [Remote host closed the connection]
YamakasY has quit [Quit: The best revenge is massive success...]
baroquebobcat has quit [Quit: baroquebobcat]
baroquebobcat has joined #ruby
lw has quit [Quit: s]
montyboy has quit [Read error: Connection reset by peer]
baroquebobcat has quit [Client Quit]
LadyRainicorn has quit [Quit: Bye]
robustus has quit [Ping timeout: 252 seconds]
akitada has joined #ruby
Red_Onyx has joined #ruby
confounds has joined #ruby
poguez has quit [Quit: Connection closed for inactivity]
axsuul has joined #ruby
momigi has joined #ruby
robustus has joined #ruby
binaryhat has quit [Quit: Leaving]
jamto11 has quit [Remote host closed the connection]
jimmyy has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
mcus has quit [Remote host closed the connection]
lyanchih has joined #ruby
lw has joined #ruby
yubrew has joined #ruby
jimmyy has joined #ruby
lutfidemirci has quit [Read error: Connection reset by peer]
lutfidemirci has joined #ruby
foredoomed has joined #ruby
tils` has joined #ruby
tjr9898 has quit [Read error: Connection reset by peer]
burgess|vayo has quit [Read error: Connection reset by peer]
jimmyy has quit [Read error: Connection reset by peer]
tjr9898 has joined #ruby
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
toastynerd has joined #ruby
yubrew has quit [Ping timeout: 265 seconds]
jimmyy has joined #ruby
mikepack has quit [Remote host closed the connection]
foredoomed has quit [Ping timeout: 240 seconds]
tils has quit [Ping timeout: 240 seconds]
momigi_ has joined #ruby
jimmyy has quit [Max SendQ exceeded]
Slavox is now known as Slavox|AFK
newbie1r has joined #ruby
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
jimmyy has joined #ruby
pu22l3r has quit [Remote host closed the connection]
foredoomed has joined #ruby
jimmyy has quit [Max SendQ exceeded]
saarinen has quit [Quit: saarinen]
larsam has joined #ruby
momigi has quit [Ping timeout: 264 seconds]
jimmyy has joined #ruby
axsuul has quit [Ping timeout: 244 seconds]
dkamioka has quit [Remote host closed the connection]
Steve445 has joined #ruby
whomp has joined #ruby
dkamioka_ has joined #ruby
Ziarkaen has quit [Ping timeout: 240 seconds]
sdouglas has quit [Remote host closed the connection]
foredoomed has quit [Ping timeout: 240 seconds]
duggiefresh has quit [Ping timeout: 244 seconds]
meatherly has joined #ruby
iliketurtles has joined #ruby
fgo has joined #ruby
dkamioka_ has quit [Remote host closed the connection]
Notte has joined #ruby
jimmyy has quit []
<Nilium>
So, uh, anyone feel like trying to code golf something?
jimmyy has joined #ruby
Notte has quit [Client Quit]
<whomp>
sure
<Steve445>
anyone track the time they spent on a issue or commit in GitHub? (usually for billing purposes or resource allocation tracking). Built this: https://github.com/StephenOTT/GitHub-Time-Tracking. Just looking for some UX suggestions around the workflow of the information. Showing Time and Budgets for issues, budgets, and then being able to drill down into different levels of info. Looking for some use cases for r
hobodave has quit [Quit: Computer has gone to sleep.]
jimmyy_ has joined #ruby
kennym1 has joined #ruby
drx_ has joined #ruby
meatherly has quit [Remote host closed the connection]
<Nilium>
https://gist.github.com/nilium/d2fbec2e3705f5e38069 ⇐ Alright. I've been working on trying to get this as short as possible. Because it's mostly unreadable now, the comments describe what it's trying to do.
<Nilium>
I managed to do it in 100 characters, but it'd be neat to see it shorter.
<Nilium>
At this point, though, I'm honestly kind of tired of hitting it with a stick over and over,
ehaliewicz has joined #ruby
<drx_>
Thats a freaky cool function
afreidah1 has joined #ruby
<drx_>
whats the application for this unique integer function ?
<Nilium>
Someone was asking a math problem on Stack Overflow and I decided to try to solve it with Ruby.
<Nilium>
And then I solved it, so I tried to code golf it.
shevy has quit [Ping timeout: 244 seconds]
kennym has quit [Ping timeout: 265 seconds]
meatherly has joined #ruby
<drx_>
nice
DrShoggoth has quit [Remote host closed the connection]
jimmyy has quit [Ping timeout: 264 seconds]
<drx_>
Whats code golf?
hobodave has joined #ruby
lutfidemirci has quit [Remote host closed the connection]
<Nilium>
I updated the gist with the non-golf'd implementation
mercwithamouth has quit [Ping timeout: 264 seconds]
<drx_>
damn, even the non-golf'd version looks golf'd compared to other languages
Vovko has joined #ruby
agent_white has joined #ruby
Steve445 has quit [Quit: Steve445]
<drx_>
and the golf'd version looks like it can't possibly achieve that output
<drx_>
yet it does
Steve445 has joined #ruby
axsuul has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
Steve445 has quit [Client Quit]
<agent_white>
Good evenin'!
<xuisc>
hello there agent_white
<pontiki>
welcome, agent_white. are you ready to report in?
<centrx>
Welcome Junior Developer #1
bitsandbooks has quit [Quit: My laptop has gone to sleep. Zzzzzz…]
supermarin has quit [Remote host closed the connection]
Steve445 has joined #ruby
supermarin has joined #ruby
nateberkopec has joined #ruby
Shidash has quit [Ping timeout: 252 seconds]
<agent_white>
pontiki: Agent_white reporting in! Keeping the peace, doing my best to fight the bad guys, whereever they may be!
nathanso_ has quit [Ping timeout: 264 seconds]
Steve445 has quit [Client Quit]
Steve445 has joined #ruby
francisfish has joined #ruby
<bnagy>
Nilium: I don't understand the rules
<bnagy>
why no 110?
albedoa has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
kenndel has joined #ruby
<Nilium>
For which one?
<bnagy>
why is 110 not valid
<Nilium>
For which one?
bitsandbooks has joined #ruby
YoloSwaggins has joined #ruby
binaryhat has joined #ruby
<bnagy>
uh what? For the output set
<Nilium>
That computes two sets of numbers.
<Nilium>
One without repeating digits and one with repeating digits, respectively.
Fyyr13_ has joined #ruby
xm has joined #ruby
lw has quit [Quit: s]
<bnagy>
ahh I see. OK, and no 1000 because 1...1000 I guess?
<Nilium>
It says (0, 1000), so yes, no 0 and no 1000
supermarin has quit [Ping timeout: 265 seconds]
<bnagy>
why are there repeats?
<bnagy>
106 is in both sets
<Nilium>
Though the reference implementation is slightly incorrect.
Fyyr13_ has quit [Read error: Connection reset by peer]
<Nilium>
Because it's _two sets of numbers_.
francisfish has quit [Ping timeout: 252 seconds]
Fyyr13_ has joined #ruby
<bnagy>
one with and one without repeating digits? Which digits in 106 repeat?
<Nilium>
It doesn't have to have repeating digits to be in the set with repeating digits.
<Nilium>
It's merely that one can have repeats and one cannot have repeats.
<bnagy>
ok
<Nilium>
Is there a way to report spambots on Freenode? This away_ bot is getting annoying.
<YoloSwaggins>
Hey all, I'm trying to write tests for a two classes in a module that uses redis. Presently, I'm using $redis, but I'd like to be able to pass in a mock redis driver for testing purposes. How do I pass a redis driver into my module?
Fyyr13__ has joined #ruby
thesheff17_ has quit [Ping timeout: 265 seconds]
BackEndCoder has quit [Read error: Connection reset by peer]
supermarin has quit [Read error: Connection reset by peer]
<bnagy>
oh nice
ankushio has joined #ruby
supermarin has joined #ruby
<Nilium>
Only downside is the numbers are now strings, but that's less important
lyanchih has quit [Quit: lyanchih]
BackEndCoder has quit [Quit: Leaving]
<bnagy>
side effecty uniq! is cool
BackEndCoder_ has joined #ruby
<ankushio>
In the following statement, what is URI? x = URI("http://foo.com/") . Is it a method? a class consructor?
<bnagy>
doesn't save any chars though
BackEndCoder_ is now known as BackEndCoder
<Nilium>
Ah, nevermind, yours was producing strings anyway
charliesome has joined #ruby
<Nilium>
Well, the uniq! thing doesn't save chars over the regex, but I do find it more readable since it suggests intent more clearly
<bnagy>
hrm. I had to check the side effect
<Nilium>
Whether that even means anything at 72 characters is debatable though
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
<Nilium>
Checking the side effect is probably preferable to figuring out why it's checking for a regex that's not immediately obvious in what it's doing
MatthewsFace has joined #ruby
<bnagy>
meh it's golf I don't really have an opinion
<Nilium>
Since I assume most people don't use backreferences in their regular expressions anyway
<bnagy>
neither of them are probably fit for real code, so
<Nilium>
I will fight people to the death on the use of regular expressions >_>
<ankushio>
In the following statement, what is URI? x = URI("http://foo.com/") . Is it a method? a class consructor?
<bnagy>
it's a method
meatherly has quit [Remote host closed the connection]
<bnagy>
in 99% of cases we don't use Caps for methods, the exception is 'special' methods that either produce something or raise an Exception, like Integer('4')
aryaching has joined #ruby
browndawg has joined #ruby
<Nilium>
What bnagy said.
danshultz has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby
mikepack has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
<Nilium>
Well, I'm convinced we've both committed terrible code-related sins today, bnagy.
* Nilium
hangs himself
charliesome has joined #ruby
chipotle has joined #ruby
<bnagy>
I was just looking at flip-flops
<Nilium>
I pray I reincarnate as a helicopter.
<Nilium>
flipflop is a nice wine.
<bnagy>
my hindbrain says something about flipflop ternary, but I am scared to look
linojon has quit [Quit: linojon]
<bnagy>
so I think I'll write real code instead :)
<RubyPanther>
Nilium: I tried Blind Moose, and I swear I could taste the moose
lyanchih has joined #ruby
<bricker`LA>
omg true detective ep 8 is released. Everybody shut up!
sski has quit [Remote host closed the connection]
<Nilium>
That's probably not a good thing.
<Nilium>
There were a few moose in the yard a while ago. Probably destroying the trees. Horrible animals.
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
sski has joined #ruby
<bnagy>
I have not eaten moose :(
alexju has quit [Remote host closed the connection]
<Nilium>
Oh, speaking of animals, I need to dig up that research paper I found on how when people hit animals while driving, the animal is always reported as an instigator (like it was trying to get hit and cause damage)
<bricker`LA>
boo HBO Go, "unknown system error"
<Nilium>
One of the weirder things I found while researching stuff on roadkill.
<bricker`LA>
some sysadmin at HBO HQ is freaking out right now.
BackEndCoder2 has quit [Quit: Leaving]
<RubyPanther>
Nilium: In some places if you're drunk you get listed as instigator
<ankushio>
bnagy: Thanks
ankushio has quit [Quit: Leaving...]
<RubyPanther>
Or if you're speeding
supermarin has quit [Remote host closed the connection]
Vovko has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
<Nilium>
RubyPanther: I think I remember reading that some newspaper often reported the driver as the one at fault, but otherwise the animal was usually the one at fault
kung has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby
tylersmith has joined #ruby
<RubyPanther>
Nilium: I can't find the article, but I read one in the past few months locally that gave a mixed number (Oregon)
<Nilium>
I'd guess it's easier to avoid possible defamation if you pin it on an animal that can't sue you than if you blame the driver
<RubyPanther>
If it is the driver's fault, then they have to have more expensive comprehensive insurance for it to be covered, so it makes a big difference to many drivers whose fault it is
diegoviola has joined #ruby
<RubyPanther>
If you write an mRuby program to drive for you, then it will never be your fault; only mechanical error.
<Nilium>
Found it. The article was Mai Kuha's "Degrees of Anthropocentrism in Accounts of Wildlife-Vehicle Collisions". It's a pretty fun read.
meatherly has joined #ruby
<Nilium>
Or as fun a read as you can imagine getting from a paper with a title like that.
<Nilium>
My time in university might have given me some form of Stockholm syndrome when it comes to academic articles.
sarmiena_ has joined #ruby
tylersmith has quit [Ping timeout: 240 seconds]
axl_ has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
garbagecollectio has quit [Quit: garbagecollectio]
garbagecollectio has joined #ruby
afreidah2 has joined #ruby
whomp has quit [Ping timeout: 252 seconds]
afreidah1 has quit [Ping timeout: 240 seconds]
Fyyr13__ has quit [Remote host closed the connection]
tongcx has left #ruby [#ruby]
<pontiki>
got a link, Nilium? i'm interested
thomasxie has joined #ruby
<Nilium>
I had to request it at the time, so I'll have to see if I still have it on my disk somewhere
<pontiki>
if you can dig it up, super
whomp has joined #ruby
<whomp>
RubyPanther, my internet just went down for a sec if you replied
zcreative has quit [Quit: Computer has gone to sleep.]
Hanmac has quit [Ping timeout: 252 seconds]
<RubyPanther>
whomp: replied to what?
<whomp>
to what i just wrote
<Nilium>
Oh hey, my bratwurst poem. Wasn't expecting to find that in my giant collection of crap.
<whomp>
about treating two objects of two different classes as the same one
<whomp>
since they both have certain characteristics, like a width, height, etc.
<Nilium>
Yeah, I don't have the PDF saved an- actually. Might be in my email.
<Nilium>
Nope.
Jetchisel has joined #ruby
<Nilium>
95% chance I printed it out and it's sitting in a file folder somewhere but finding that would actually be pretty difficult
<Nilium>
I hoard physical papers and do a terrible job of hoarding digital ones.
<RubyPanther>
whomp: maybe it went down before your question
Steve445 has quit [Quit: Steve445]
<whomp>
ok, well these objects can either be members of a class defined in the rubygem, or a Hash
<pontiki>
well, i have the DOI
iliketurtles has joined #ruby
<whomp>
so for a Hash h, we have h[:bounds][:height], whereas for a member of the other class, the Layer class, we have layer.height
<whomp>
i want to be able to call h.height and have it give me h[:bounds][:height]
segmond has quit [Read error: Connection reset by peer]
yubrew has joined #ruby
segmond has joined #ruby
segmond has quit [Max SendQ exceeded]
<whomp>
RubyPanther, would i create a module on Hash?
segmond has joined #ruby
<RubyPanther>
whomp: I would write a simple delegator
<The_NetZ>
hey, little help compiling ruby 2.1.1 under mingw-w64 on linux?
mclaughlin has joined #ruby
<Xeago>
have you tried ruby-build or ruby-install ?
<Xeago>
set your cc appropriately and it should figure out
lolmaus has quit [Quit: No Ping reply in 180 seconds.]
lolmaus has joined #ruby
<The_NetZ>
Xeago: ruby-build and ruby-install being? note, I'm attempting this with makepkg, basically an arch linux package maker
tagrudev has joined #ruby
jimmyy has joined #ruby
<Xeago>
google/github the 2, they automate dependency resolution and compiler options
<Xeago>
etc
<Xeago>
so one writes, ruby-install ruby 2.1 and off it goes
Guest81137 has quit [Quit: Leaving]
<The_NetZ>
Xeago: interesting.
tesuji has joined #ruby
kitak has quit [Remote host closed the connection]
tonni_ has quit [Remote host closed the connection]
tesuji has quit [Excess Flood]
<The_NetZ>
Xeago: see, thing is it goes fine for the most part, just craps out with recipe for target 'ext/socket/static' failed
s2013 has quit [Ping timeout: 252 seconds]
kitak has joined #ruby
codecop has joined #ruby
<Xeago>
never seen that before, at what stage is that
<Xeago>
(also try #ruby-lang)
amritanshu__RnD has joined #ruby
marcdel_ has quit [Ping timeout: 240 seconds]
bluepojo_ has quit [Read error: Connection reset by peer]
tesuji has joined #ruby
<The_NetZ>
one sec; I'm attempting again
yubrew has joined #ruby
bluepojo has joined #ruby
amritanshu__RnD has quit [Read error: Connection reset by peer]
<The_NetZ>
actually, I think I may have just figured out the issue; I think maybe my osx cross-compilation toolchain was interfering.
hiyosi has joined #ruby
jackneill has joined #ruby
anarang has joined #ruby
lutfidemirci has quit [Remote host closed the connection]
_tpavel has joined #ruby
lutfidemirci has joined #ruby
marcdel has joined #ruby
lyanchih has quit [Quit: lyanchih]
yubrew has quit [Ping timeout: 244 seconds]
BeingUntoDeath has quit []
freerobby has joined #ruby
amritanshu__RnD has joined #ruby
hiyosi has quit [Ping timeout: 265 seconds]
tanathos has quit [Ping timeout: 241 seconds]
ndrei has quit [Quit: Lost terminal]
CaptainJet has quit []
heftig has quit [Quit: Quitting]
Xeago has quit [Read error: Connection reset by peer]
marcdel has quit []
freerobby has quit [Ping timeout: 264 seconds]
Zunonia_ has quit [Quit: Computer has gone to sleep.]
CorySimmons has joined #ruby
<lxsameer>
hey guys, what is the fastest ruby implementations ?
morenoh149 has quit [Ping timeout: 264 seconds]
nhhagen has joined #ruby
<centrx>
lxsameer, JRuby, mruby, and MRI 2.1
<apeiros>
he asks for the fastest and you give him 3? :D
<apeiros>
add rbx to the list!
carif has quit [Read error: Operation timed out]
CorySimmons has quit [Ping timeout: 252 seconds]
Zunonia_ has joined #ruby
<centrx>
I thought Rubinius was dead
<lxsameer>
great thanks guys
<The_NetZ>
I'll say that extending jruby with java made me smash my face into my keyboard many a time, though.
lolmaus has quit [Remote host closed the connection]
momigi has joined #ruby
nhhagen has quit [Ping timeout: 244 seconds]
<lxsameer>
The_NetZ: really ? why
supermarin has joined #ruby
<The_NetZ>
it just didn't come to me, lol. I tried just about every example I could find, and no dice. so, I switched back to extending MRI with c++
apeiros has quit [Remote host closed the connection]
tonni has joined #ruby
lolmaus has joined #ruby
apeiros has joined #ruby
fgo has joined #ruby
thomasxie has left #ruby [#ruby]
Umschwung has joined #ruby
supermar_ has joined #ruby
supermarin has quit [Ping timeout: 244 seconds]
apeiros has quit [Ping timeout: 240 seconds]
ayaz has joined #ruby
mclaughlin has quit [Remote host closed the connection]
momigi has quit [Ping timeout: 244 seconds]
centrx has quit [Quit: All this computer hacking is making me thirsty]
supermar_ has quit [Ping timeout: 244 seconds]
mlpinit has joined #ruby
vlad_starkov has joined #ruby
sensen has joined #ruby
sdouglas has quit [Remote host closed the connection]
Avahey_ has quit [Quit: Connection closed for inactivity]
sdouglas has joined #ruby
<lxsameer>
how can i capture key values in a json structure using regex ?
mlpinit has quit [Ping timeout: 240 seconds]
sski has joined #ruby
jamto11 has joined #ruby
shabgrd has quit [Ping timeout: 240 seconds]
sdouglas has quit [Ping timeout: 240 seconds]
jimmyy has quit []
RohanRNS has joined #ruby
aagdbl has quit [Read error: Connection reset by peer]
aagdbl has joined #ruby
roolo has joined #ruby
jamto11 has quit [Ping timeout: 244 seconds]
CharlieG has quit [Quit: Leaving]
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
etqqkoiflwhb has joined #ruby
WormDrink has joined #ruby
tonni has quit [Ping timeout: 240 seconds]
fella7s has joined #ruby
saarinen has quit [Quit: saarinen]
fella6s has quit [Ping timeout: 264 seconds]
lyanchih has joined #ruby
etqqkoiflwhb has quit [Ping timeout: 265 seconds]
UserNameInvalid has joined #ruby
amclain has quit [Quit: Leaving]
tesuji has quit [Ping timeout: 244 seconds]
yeticry has joined #ruby
Red_Onyx has quit [Quit: Leaving]
<whomp>
is there a nice way of finding all the strings in an array between two strings? so like finding all of the strings starting with the letter F to the letter H, for example
St_Marx has quit [Read error: Connection reset by peer]
V__ has joined #ruby
tonni has joined #ruby
yubrew has joined #ruby
mary5030 has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
m104 has joined #ruby
lkba has joined #ruby
<bnagy>
sort your array
sski has quit [Remote host closed the connection]
sski has joined #ruby
Merks has joined #ruby
dumdedum has joined #ruby
claymore has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
bigkevmcd has joined #ruby
tonni has quit [Read error: Connection reset by peer]
Speed has joined #ruby
V__ has quit [Ping timeout: 245 seconds]
mary5030 has quit [Ping timeout: 240 seconds]
<whomp>
bnagy, just looking for something concise
<bnagy>
select
<bnagy>
strs.select {|s| lower <= s <= upper} or something I guess
sski has quit [Ping timeout: 264 seconds]
etqqkoiflwhb has joined #ruby
hiyosi has joined #ruby
sdouglas has joined #ruby
<bnagy>
oh wait can't chain < like that in ruby :/
<bnagy>
>> %w(cat bat dog frog zebra).select {|s| 'c' <= s && s <= 'q'}
freerobby has quit [Read error: Connection reset by peer]
freerobby1 has joined #ruby
sdouglas has quit [Ping timeout: 265 seconds]
nisstyre has quit [Quit: WeeChat 0.4.3]
dumdedum has quit [Ping timeout: 240 seconds]
tonni has joined #ruby
lyanchih has quit [Quit: lyanchih]
lyanchih has joined #ruby
Xeago has joined #ruby
francisfish has joined #ruby
m104 has quit [Quit: bye]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
St_Marx has joined #ruby
m1lt0n_ has joined #ruby
lyanchih has quit [Client Quit]
freerobby1 has quit [Ping timeout: 244 seconds]
lyanchih has joined #ruby
CorySimmons has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
francisfish has quit [Ping timeout: 240 seconds]
jhass|off is now known as jhass
jph98 has joined #ruby
browndawg has joined #ruby
CorySimmons has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senayar has joined #ruby
marcgg has joined #ruby
Xeago has quit [Remote host closed the connection]
dkamioka has joined #ruby
klaut_ has joined #ruby
nhhagen has joined #ruby
dumdedum has joined #ruby
supermarin has joined #ruby
yacks has quit [Ping timeout: 264 seconds]
sarmiena_ has joined #ruby
ankushio has joined #ruby
relix has joined #ruby
supermarin has quit [Ping timeout: 240 seconds]
andikr has joined #ruby
senayar has quit [Remote host closed the connection]
Macaveli has joined #ruby
mlpinit has joined #ruby
senayar has joined #ruby
whomp has quit [Ping timeout: 240 seconds]
nomenkun has joined #ruby
dkamioka has quit [Remote host closed the connection]
tanathos has joined #ruby
weie has joined #ruby
aagdbl has quit [Ping timeout: 264 seconds]
kate_r has joined #ruby
axsuul has joined #ruby
tanathos has quit [Client Quit]
invinceable has quit [Ping timeout: 240 seconds]
mlpinit has quit [Ping timeout: 244 seconds]
jph98 has quit [Quit: jph98]
roolo has quit [Quit: Leaving...]
jprovazn has joined #ruby
drx_ has quit [Ping timeout: 240 seconds]
whowantstolivef1 is now known as whowantstolivefo
tonni has quit [Remote host closed the connection]
francisfish has joined #ruby
paolooo has joined #ruby
einarj has joined #ruby
einarj has quit [Remote host closed the connection]
einarj has joined #ruby
francisfish has quit [Remote host closed the connection]
sk87 has joined #ruby
francisfish has joined #ruby
larsam has quit [Read error: Connection reset by peer]
Slavox is now known as Slavox|AFK
DouweM has quit [Ping timeout: 265 seconds]
ikaros has joined #ruby
sarmiena_ has quit [Quit: sarmiena_]
axsuul has quit [Ping timeout: 240 seconds]
ScalaClient has joined #ruby
Fridurmus has joined #ruby
Fridurmus has left #ruby [#ruby]
BeingUntoDeath has joined #ruby
amundj has quit [Read error: Connection reset by peer]
amundj has joined #ruby
razibog has joined #ruby
<BeingUntoDeath>
need some help getting started on ruby! :) will somebody pm me who cares to?
<jhass>
do not fear to ask your questions publicly
francisfish has quit [Ping timeout: 244 seconds]
Vivekananda has joined #ruby
yubrew has joined #ruby
drx_ has joined #ruby
yacks has joined #ruby
Slavox|AFK is now known as Slavox
andrewlio has joined #ruby
camilasan has joined #ruby
rubyduby has joined #ruby
Fridurmus has joined #ruby
<BeingUntoDeath>
how do i make it wait for an input, some empty variable
<BeingUntoDeath>
im using sublime
<rubyduby>
can somebody explain me the "Symbol" in ruby.
<rubyduby>
its very confusing concept.... and there is no good material that explains it clearly.
<BeingUntoDeath>
symbol? i've seen that used in a distinct way, but i haven't gotten to that as a concept.
yubrew has quit [Ping timeout: 240 seconds]
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bnagy>
rubyduby: they're constant identifiers, used normally to save memory. It's for when you want an identifier to use in code
<bnagy>
so there can be many copies of 'cat' in memory, but only ever one :cat
<BeingUntoDeath>
what is the symbol then?
<BeingUntoDeath>
sounds like... an object?
<bnagy>
so we'd tend to lookup pet_hash[:cat] not pet_hash['cat']
<BeingUntoDeath>
:O
shevy has joined #ruby
momigi has joined #ruby
<BeingUntoDeath>
coding is trippy.
<BeingUntoDeath>
i try and wrestle with these things as concepts... i usually get way ahead of myself in my design as i'm trying to learn...
<bnagy>
rubyduby: make any sense yet?
<rubyduby>
<bnagy> thanks bro, if they are constant identifiers, then if two object has same name like :cat in a hash, when used in keys like { :cat => "bark", :cat => "meow"}.. is this valid
Fridurmus has quit [Quit: leaving]
amritanshu__RnD has quit [Ping timeout: 265 seconds]
mehlah has joined #ruby
<bnagy>
well no duplicate hash keys are ever possible, symbol string anything
<apeiros>
rubyduby: a hash key can only occur once
<apeiros>
rubyduby: whether two values are equal hash keys is determined by the use of a.eql?(b)
Fridurmus has joined #ruby
mlpinit has joined #ruby
<rubyduby>
and does object occupy same space in memory, then how they can be differ like, is it built in ruby to differ these automatically
blackmesa has joined #ruby
<apeiros>
rubyduby: one fact about :symbols - they are never garbage collected. that is, once you created one, it'll stay in the memory for as long as the program runs. for that reason you should not convert user input to symbols.
Umschwung has quit []
<apeiros>
rubyduby: :foo differs from "foo" just the same ways as 12 differs from "12". not the same type of object.
<rubyduby>
so when defining a function or class, should i use symbols or not, when they are used in programming?
<shevy>
hmm
<apeiros>
as bnagy already said - their main purpose is to identify things.
camilasa_ has joined #ruby
sparrovv has joined #ruby
<rubyduby>
then variables also identify things like pointing to an object, why they are introduced in ruby...
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
<apeiros>
that's confusing things rubyduby
Slavox is now known as Slavox|AFK
<apeiros>
a variable *references* an object
<apeiros>
x = 12 # x references the integer 12
<jhass>
BeingUntoDeath: start your scripts from the commandline, not from sublime
<apeiros>
a symbol identifies (by its name) things
<apeiros>
x = :hello # x references to the Symbol :hello
momigi has quit [Ping timeout: 240 seconds]
<apeiros>
you use that identifier the same way you'd use a string.
<BeingUntoDeath>
k so, how do i get it to wait for an input?
<apeiros>
just that it's a bit more efficient.
<BeingUntoDeath>
to fill a variable or whatever.
tonni has joined #ruby
<BeingUntoDeath>
for a specific value with an if statement of something.
sparrovv has quit [Remote host closed the connection]
leonidlm has joined #ruby
<apeiros>
rubyduby: symbols are ordinary objects, like integers, strings, arrays
freerobby has joined #ruby
<apeiros>
rubyduby: their only speciality is that a symbol with the same "string value" will always be the same object. and even that is not all that special - small integers do that too
<rubyduby>
apeiros: thank you, i now get it, like symbols are just ordinary objects, they are single, they represent themself like integers and any other objects, and they are memory efficient, as they occupy same space in memory. no matter how many times you call them, am i right?
<apeiros>
a new instance of a string is a new, different object
<apeiros>
rubyduby: yes
<shevy>
can you really say memory efficient when they are not garbage collected
<apeiros>
same symbol - same object. no matter how it is created. just like an integer.
<apeiros>
technically symbols *are* integers (with an attached string, so to speak)
hiyosi has quit [Ping timeout: 265 seconds]
Port3M5[Work] has quit [Remote host closed the connection]
arietis has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
axsuul has quit [Ping timeout: 240 seconds]
rjk808 has joined #ruby
Merks has quit [Remote host closed the connection]
Merks has joined #ruby
Xeago has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
charliesome has joined #ruby
joonty has quit [Quit: WeeChat 0.4.2]
Port3M5[Work] has joined #ruby
Merks has quit [Ping timeout: 244 seconds]
<rubyduby>
well if i do x = 'me' and then x.object_id.. a location comes, but when i do y = x, and then y.object_id same location comes as of x.object_id... you said every instance of a string will occupy different space... is my example is right about it, if not then how can it be explained
weie has quit [Quit: Leaving...]
weie has joined #ruby
<rubyduby>
i am using ruby version 1.93
Ziarkaen has joined #ruby
joonty has joined #ruby
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<BeingUntoDeath>
what is deprecation?
<The_NetZ>
heh
<The_NetZ>
BeingUntoDeath: I'm attempting to avoid deprication on windows, but no 2.1.1 available XD
<certainty>
rubyduby: the expression y = x doesn't copy the object that x references, it just makes y point to the same object. It now references the same object that x references
<BeingUntoDeath>
comp sci is metaphysics
obs has joined #ruby
elaptics`away is now known as elaptics
<certainty>
it's like introducing another nam for the very same object
<certainty>
name, even
xerxas has joined #ruby
fgo has quit [Remote host closed the connection]
<jhass>
rubyduby: assignment doesn't copy, you're just giving the same object another reference to it
<jhass>
whoops, missed certainty already answered
<The_NetZ>
it happens, lol.
fgo has joined #ruby
kennym has joined #ruby
nfk has quit [Quit: yawn]
timonv has joined #ruby
vlad_starkov has joined #ruby
postmodern has quit [Quit: Leaving]
senayar_ has joined #ruby
senayar has quit [Read error: Connection reset by peer]
supermarin has joined #ruby
nfk has joined #ruby
timonv_ has joined #ruby
<BeingUntoDeath>
what is code for awaiting an input before closing?
<BeingUntoDeath>
is it gets?
<jhass>
yes
<lxsameer>
how can i capture repeating pattern of regex
<jhass>
lxsameer: pseudo example?
<tobiasvl>
lxsameer: /(pattern)*/ ?
shabgrd has joined #ruby
<lxsameer>
jhass: {key1: value, k2: value2 ....}
shabgrd has quit [Changing host]
shabgrd has joined #ruby
<lxsameer>
tobiasvl: how can i get all the matching then ?
<jhass>
could as well be .scan /pattern/
supermarin has quit [Ping timeout: 265 seconds]
timonv has quit [Ping timeout: 265 seconds]
<tobiasvl>
jhass: yeah, depends what lxsameer means
NovapaX has joined #ruby
<jhass>
lxsameer: that's a hash
<tobiasvl>
lxsameer: what do you want?
jespada has joined #ruby
Kneferilis has quit [Quit: Leaving]
arietis has quit [Quit: Computer has gone to sleep.]
blackmesa has quit [Ping timeout: 240 seconds]
<lxsameer>
tobiasvl: jhass suppose i have a hash like object which user entered, I want to split all the key/values using regex, i don't know how many key/value user entered
<tobiasvl>
oooooh.
Shidash has quit [Ping timeout: 264 seconds]
<jhass>
so that example is a string?
<lxsameer>
jhass: yeah
mengu has quit [Remote host closed the connection]
<jhass>
will it always be a valid ruby hash? or valid json perhaps?
foredoomed has joined #ruby
<lxsameer>
jhass: no
<BeingUntoDeath>
what are the simple rules for when something needs to be "ended"
<lxsameer>
jhass: it will be like them but not exactly the same
camilasa_ has quit [Remote host closed the connection]
<BeingUntoDeath>
im getting unexpected keyword_end
camilasan has joined #ruby
visof has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
<jhass>
lxsameer: something like input = input[1..-2] # get rid of the { }; parsed = Hash[input.split(',').map {|pair| pair.strip.split(':').map(&:strip) }] should do then, no?
camilasan has joined #ruby
<jhass>
or do you have to handle escaped separation characters?
chrisseaton has quit []
camilasan has quit [Read error: Connection reset by peer]
<tobiasvl>
BeingUntoDeath: simple rules? not sure what you mean, but if, classes, methods and blocks need to be closed with end (and more, but those are the likely culprits without seeing your code=
<lxsameer>
jhass: let me try that
fgo has quit [Remote host closed the connection]
camilasan has joined #ruby
bluenemo has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
e4xit has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
foredoomed has quit [Ping timeout: 240 seconds]
camilasan has joined #ruby
jamto11 has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
<BeingUntoDeath>
when i try to open my .rb file through cmd.exe.. command prompt just sits there...
<certainty>
dunno if that's 100% accurate but my guess is that you have to 'end' every lexical context that you started (probably with the exception of blocks with the {} syntax)
camilasa_ has quit [Read error: Connection reset by peer]
Merks has joined #ruby
<jhass>
BeingUntoDeath: enter something and press enter, that's probably your gets
<certainty>
gets gets in the way XD
monkegjinni has joined #ruby
monkegjinni has quit [Remote host closed the connection]
camilasan has joined #ruby
heftig has joined #ruby
monkegjinni has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
yubrew has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
jamto11 has quit [Ping timeout: 240 seconds]
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
e4xit has quit [Ping timeout: 240 seconds]
camilasa_ has quit [Read error: Connection reset by peer]
foredoomed has joined #ruby
banister has joined #ruby
camilasan has joined #ruby
lyanchih has quit [Quit: lyanchih]
dkamioka_ has joined #ruby
francisfish has joined #ruby
<shevy>
BeingUntoDeath show code on pastie.org !
camilasan has quit [Read error: Connection reset by peer]
monkegjinni has quit [Ping timeout: 264 seconds]
drumusician has joined #ruby
<BeingUntoDeath>
finally making some sort of progress. :P
camilasan has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
thomasxie has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
<BeingUntoDeath>
its like an instance of the object?
deadlock_ has joined #ruby
<jhass>
a method defined on the objects singleton class, that is a class that's unique to every object. Since classes are objects, that's how class methods work in ruby
<tobiasvl>
yes, it's a method that only exists in one instance of a class
deadlock_ has quit [Max SendQ exceeded]
deadlock_ has joined #ruby
anarang has quit [Ping timeout: 240 seconds]
lyanchih has joined #ruby
deadlock_ has quit [Max SendQ exceeded]
deadlock_ has joined #ruby
sk87 has joined #ruby
dkamioka_ has quit [Remote host closed the connection]
amritanshu__RnD has joined #ruby
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dkamioka_ has joined #ruby
Ziarkaen has quit [Ping timeout: 240 seconds]
Kneferilis has joined #ruby
art-solopov has joined #ruby
momigi has joined #ruby
timonv_ has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sk87 has joined #ruby
Jetchisel has joined #ruby
rdark has joined #ruby
lolmaus has quit [Read error: Operation timed out]
ehaliewicz has quit [Ping timeout: 240 seconds]
aagdbl has joined #ruby
ehaliewicz has joined #ruby
oneawayman has joined #ruby
nari has quit [Ping timeout: 245 seconds]
hiyosi has joined #ruby
lolmaus has joined #ruby
Ziarkaen has joined #ruby
DaniG2k has joined #ruby
thomasxie has left #ruby [#ruby]
freerobby has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
mojjojo has joined #ruby
anarang has joined #ruby
momigi has quit [Ping timeout: 264 seconds]
browndawg has quit [Ping timeout: 252 seconds]
lw has joined #ruby
lyanchih has quit [Quit: lyanchih]
hiyosi has quit [Ping timeout: 240 seconds]
rococo has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
AlSquire has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
Lewix has joined #ruby
My_Hearing has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Mon_Ouie has quit [Ping timeout: 240 seconds]
amritanshu__RnD has quit [Quit: Leaving]
ahawkins has joined #ruby
lyanchih has joined #ruby
mlpinit has quit [Remote host closed the connection]
workmad3 has joined #ruby
mlpinit has joined #ruby
CorySimmons has joined #ruby
professor_soap has joined #ruby
Fridurmus has quit [Ping timeout: 240 seconds]
rails426 has joined #ruby
<BeingUntoDeath>
so is ++ an operator in ruby?
<Xeago>
BeingUntoDeath: in most cases ++ is a syntax error
lw has quit [Quit: s]
mlpinit_ has joined #ruby
<Xeago>
I haven't ever seen ++ in working ruby code
<BeingUntoDeath>
its c#
<BeingUntoDeath>
it adds to a variable
zeeraw has joined #ruby
<BeingUntoDeath>
and int value i guess
<professor_soap>
Hey, I have a strange problem that is a bit of a pain in the ass when it comes to collaboration. In my Gemfile, I can't point a gem to a specific git address like this: " gem 'some_gem', git: 'git@github.com:user/some_gem.git' ", BUT I can specify it with an http address like this: " gem 'some_gem', git: 'https://github.com/user/some_gem.git' "
<gr33n7007h>
++ is eqivilent to x+=1
<jxport>
user.qualifies_for_free_sandwich? # I feel that this violates Single Responsibility Principle. How should this be structured?
<professor_soap>
Any ideas? :/
CorySimmons has quit [Ping timeout: 240 seconds]
<jxport>
FreeSandwichQualifier.check(user) # Separates free sandwich qualification logic from user logic. Is this the most idiomatic Ruby possible?
<professor_soap>
I have to change my file all the time and every one else seem to be able to spcify the git address
dkamioka_ has quit [Remote host closed the connection]
mlpinit has quit [Ping timeout: 240 seconds]
krz has quit [Quit: WeeChat 0.4.3]
dkamioka has joined #ruby
<jxport>
I find this channel's low level of activity a little odd considering Ruby's community!
sk87 has joined #ruby
<BeingUntoDeath>
me too.
krz has joined #ruby
<tobiasvl>
this channel is pretty active imho
michael_lee has joined #ruby
kitak_ has joined #ruby
<jxport>
tobiasvl: #perl is more active, and well, just compare the communities..
aagdbl has quit [Ping timeout: 244 seconds]
dapz has joined #ruby
anarang has quit [Ping timeout: 240 seconds]
<tobiasvl>
we're kind of fragmented though
<BeingUntoDeath>
any ideas why it wont print after correct if statement value is "gotten"
<tobiasvl>
#ruby-lang and #RubyOnRails
<tobiasvl>
BeingUntoDeath: impossible to say without seeing the code
<msch>
jxport what's the logic behind determining if the user qualifie for a free sandwhich?
<BeingUntoDeath>
if ( var1 == "hello?" )
<BeingUntoDeath>
print "yes"
<BeingUntoDeath>
end
aagdbl has joined #ruby
<tobiasvl>
okay… and what is var1?
<BeingUntoDeath>
and var1 = gets.to_s before that
sensen has quit [Ping timeout: 264 seconds]
<tobiasvl>
yes, but what IS var1?
<tobiasvl>
i'm guessing var1 == "hello?\n"
<BeingUntoDeath>
oh... wow.
<BeingUntoDeath>
thank you.
<jxport>
msch: good question. This is only an abstract example. But, say - it checks to see if user.id exists in the free sandwich DB.
supermarin has joined #ruby
kitak has quit [Ping timeout: 260 seconds]
Squarepy has joined #ruby
<tobiasvl>
BeingUntoDeath: when you're wondering why an if test involving a comparison isn't working, just print the variables involved in the comparison
<BeingUntoDeath>
awesome...
<msch>
BeingUntoDeath or open a REPL there and try it out: http://pryrepl.org/
<msch>
BeingUntoDeath via binding.pry
jaxxstorm has joined #ruby
alexju has quit [Remote host closed the connection]
<msch>
jxport sounds like something that does belong in the user object to me. ruby isn't like java where you have to put all the code for a class in a single .java file so I'm not seeing how the SRP here doesn't apply. the user should know if it qualifies if the qualification logic is that simple
<BeingUntoDeath>
i finally get -n
<BeingUntoDeath>
ding
aagdbl1 has joined #ruby
aagdbl has quit [Disconnected by services]
<Cork>
anyone know of a d3des lib that works in ruby 2.1?
<Cork>
msch: it is a sucky cipher look a like junk encoding
<Cork>
but... as it is in the spec not much you can do about it...
rococo has joined #ruby
<BeingUntoDeath>
i don't get -n... how do you escape referencing the \n of a gets method
<rubyduby>
how "return" works.... ruby always returns something, like result of an expression, i heard ruby handle everything as an expression, is that so... kindly explain it!!
sensen has joined #ruby
<shevy>
BeingUntoDeath use .chomp - remember that you deal with a string, you can apply string operations
vlad_starkov has quit [Remote host closed the connection]
tvw has joined #ruby
<BeingUntoDeath>
right. thank you.
<BeingUntoDeath>
is that the same thing as ruby storing everything as an object?
aagdbl has quit [Quit: Leaving.]
<shevy>
you can use Readline module too on linux at least, gives you cursor keys
<shevy>
well, the different classes all have defined methods you can invoke
<shevy>
array has .size, string has .size, hash has .size
<BeingUntoDeath>
so... gets.to_s.chomp
yacks has joined #ruby
<shevy>
yeah
<BeingUntoDeath>
wow.
<shevy>
if you don't like the "\n" there
<BeingUntoDeath>
this has taken me all night...
<BeingUntoDeath>
lol
yubrew has joined #ruby
<shevy>
there is also getc or getchar... hmm, to get just one char
<workmad3>
and a Fixnum is really an optimisation... it's used for Integers that fit into the range of values that can be represented as value objects
<shevy>
how else do you want to do it?
<shevy>
BeingUntoDeath, what should "1".to_i return
banister has joined #ruby
<workmad3>
BeingUntoDeath: yes... .to_i gives '0' if it can't parse a number, Integer("fooo") throws an error if it can't parse a number
<BeingUntoDeath>
lol!
<BeingUntoDeath>
okay.
<workmad3>
>> Integer("I am not a number!")
<eval-in>
workmad3 => invalid value for Integer(): "I am not a number!" (ArgumentError) ... (https://eval.in/117120)
<BeingUntoDeath>
lol...
philcrissman has quit [Ping timeout: 240 seconds]
krz has quit [Quit: WeeChat 0.4.3]
RedKnee has joined #ruby
RedKnee has left #ruby [#ruby]
krz has joined #ruby
nhhagen has joined #ruby
drumusician has quit [Read error: Connection reset by peer]
lolmaus has quit [Quit: No Ping reply in 180 seconds.]
drumusician has joined #ruby
lolmaus has joined #ruby
sski has quit [Remote host closed the connection]
sski has joined #ruby
Fyyr13_ has joined #ruby
<certainty>
rubyduby: a possible explanation for puts returning nil is that its sole task is to perform some side-effect, outputting the string, it doesn't compute anything so returning nil is perfectly fine
dkamioka has joined #ruby
<shevy>
it should return 42
<workmad3>
certainty: that was one answer that flashed through my head... I also came up with the idea that it's unclear if 'puts' should return the argument or the output stream...
shabgrd has quit [Ping timeout: 265 seconds]
<workmad3>
so it returns nil
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<workmad3>
shevy: everything should return 42... always
momigi has joined #ruby
hermanmunster has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 264 seconds]
hermanmunster has joined #ruby
hiyosi has joined #ruby
sski has quit [Ping timeout: 240 seconds]
mercwithamouth has joined #ruby
sdouglas has joined #ruby
vlad_starkov has joined #ruby
freerobby has joined #ruby
shaunbaker has joined #ruby
<certainty>
workmad3: returning the outputstream would be handy to chain calls (putting aside the smells that might result from it), but it would be ok I think, since it 'mutated' the stream and returns that very stream
dj_corncob has joined #ruby
mojjojo has quit [Quit: mojjojo]
<certainty>
workmad3: returning the string would surprise me, but it's not so uncommon. Some c io primitives that write data somewhere return the amount of bytes that have actually handed over successfully
drumusician has quit [Ping timeout: 240 seconds]
<certainty>
+been
<certainty>
bbl
mattmcclure has quit [Quit: Connection closed for inactivity]
hermanmunster has quit [Ping timeout: 240 seconds]
felixjet__ has joined #ruby
mostlybadfly has joined #ruby
einarj_ has joined #ruby
mvangala_ has joined #ruby
sdouglas has quit [Ping timeout: 265 seconds]
freerobby has quit [Ping timeout: 240 seconds]
weeeems has joined #ruby
<BeingUntoDeath>
whats the code for skipping code...
einarj has quit [Read error: Connection reset by peer]
mvangala has quit [Read error: Connection reset by peer]
hiyosi has quit [Ping timeout: 264 seconds]
crodas has quit [Quit: Disconnecting from stoned server.]
matled has quit [Remote host closed the connection]
matled- has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
rodasc has joined #ruby
matled- is now known as matled
TheLarkInn has joined #ruby
<tobiasvl>
BeingUntoDeath: what do you mean?
<BeingUntoDeath>
skipping ruby reading lines until a certain line...
<BeingUntoDeath>
?
momigi has quit [Ping timeout: 240 seconds]
dkamioka has quit [Remote host closed the connection]
<The_NetZ>
he means large block comments
<tobiasvl>
what's "a certain line"?
<The_NetZ>
=begin
vlad_starkov has quit [Ping timeout: 265 seconds]
<The_NetZ>
stuff
<The_NetZ>
=end
<tobiasvl>
ah yes
ndrei has joined #ruby
<The_NetZ>
I think, is that it?
<shevy>
that is most definitely a super certain line
TheLarkInn1 has quit [Ping timeout: 264 seconds]
felixjet_ has quit [Ping timeout: 264 seconds]
<shevy>
it has never been more certain before for sure
<BeingUntoDeath>
yes!!!!
<BeingUntoDeath>
thanks.
<BeingUntoDeath>
what is the math. for pi?
<shevy>
BeingUntoDeath sooner or later you will use # only :)
weems has quit [Ping timeout: 264 seconds]
<shevy>
Math::PI
<The_NetZ>
no prob, its a good thing I still speak fluent n00b :P
<BeingUntoDeath>
what do you mean shevy?
<shevy>
The_NetZ lol
<BeingUntoDeath>
thanks.
<shevy>
BeingUntoDeath I don't think many use =begin =end
<BeingUntoDeath>
yeah. no really, thanks. :D
<BeingUntoDeath>
lol.
<shevy>
if I have to uncomment something, I either use #, or something like: if false
canton7 has quit [Remote host closed the connection]
canton7 has joined #ruby
banister has joined #ruby
mehlah has quit [Quit: Leaving...]
yeticry has quit [Quit: leaving]
blackmesa has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
ahawkins_ has joined #ruby
<dj_corncob>
Hi all, im trying to implement a hash table in ruby for fun, but I'm having some issues with my 'add' method that adds an element to the table. http://pastebin.com/fpybLi3J . Theres a commented out implementation that shows ideally how I would like it to work, but its not.
Evergrace has joined #ruby
Speed has joined #ruby
BeingUntoDeath has quit [Ping timeout: 265 seconds]
ehaliewicz has quit [Read error: No route to host]
mikecmpbll has joined #ruby
perlsyntax has joined #ruby
banister has quit [Ping timeout: 265 seconds]
browndawg has joined #ruby
<art-solopov>
dj_corncob: I think, the problem is within lines 46-48. You assign the new variable to list, but not to self[get_slot(k)].
<apeiros>
rubyduby: did somebody answer your question?
<apeiros>
rubyduby: in case not: x = "hi"; y = x # <-- x references an object, y references the same object, no new object was created, hence same object id
supermarin has joined #ruby
<apeiros>
objects are only copied when you explicitly tell ruby to do so
sparrovv has quit [Remote host closed the connection]
* apeiros
off for lunch
banister has joined #ruby
<dj_corncob>
So how else would you do that? I don't want to run the search twice.
supermar_ has joined #ruby
supermarin has quit [Read error: Connection reset by peer]
ndrei has quit [Read error: Operation timed out]
<art-solopov>
dj_corncob: I'd save the get_slot(k) result in a variable (let's name it slot), and then in line 48 I'd write self[slot] = KeyedDoublyLinkedList.new( ListElement.new(k, v) )
yubrew has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
banister has quit [Read error: Connection reset by peer]
<workmad3>
art-solopov: you mean like in the working implementation? :)
<art-solopov>
workmad3: Oh, sorry, didn't notice it.
dkamioka has joined #ruby
<art-solopov>
But yeah, what's the problem with it?
supermar_ has quit [Ping timeout: 244 seconds]
anarang has quit [Ping timeout: 240 seconds]
away_ has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Ping timeout: 264 seconds]
zeeraw has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
Vivekananda has quit [Read error: Connection reset by peer]
<dj_corncob>
its not necessarily those lines, its more lines 50-55, where im searching for a node twice and updating it
zeeraw has quit [Client Quit]
<dj_corncob>
i think I need an update key method in my list class to update a particular key
zeeraw has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
<workmad3>
dj_corncob: line 52 of the commented-out section is wrong
vlad_starkov has joined #ruby
lolmaus has joined #ruby
<workmad3>
dj_corncob: that line should stay 'self[i].push( ListElement.new(k, v) )'
dkamioka has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
Vivekananda has joined #ruby
<workmad3>
dj_corncob: in your commented out section at the moment, you store the result of the search (good) but then when you discover it's nil (so nothing is found) you then try to push a new ListElement onto nil, rather than onto the list you were searching ;)
jamto11 has joined #ruby
mojjojo has joined #ruby
tolstoi has quit [Quit: Leaving]
camilasa_ has quit [Remote host closed the connection]
banister has joined #ruby
camilasan has joined #ruby
omegahm has quit [Ping timeout: 245 seconds]
yasushi has joined #ruby
camilasa_ has joined #ruby
<dj_corncob>
yeah thats not right at all, thanks
camilasa_ has quit [Read error: Connection reset by peer]
robert___ has joined #ruby
robert___ has joined #ruby
NovapaX has joined #ruby
camilasa_ has joined #ruby
koderok has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
jamto11 has quit [Ping timeout: 264 seconds]
Speed has quit [Ping timeout: 264 seconds]
phansch has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
mojjojo has quit [Client Quit]
camilasa_ has joined #ruby
monsieurp has joined #ruby
robert_ has quit [Ping timeout: 252 seconds]
camilas__ has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
yasushi has quit [Remote host closed the connection]
camilasan has quit [Ping timeout: 264 seconds]
iceden has quit [Read error: Operation timed out]
camilas__ has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
iceden has joined #ruby
anarang has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
foredoomed has joined #ruby
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
mojjojo has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
My_Hearing is now known as Mon_Ouie
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
ahawkins has quit [Ping timeout: 252 seconds]
mojjojo has quit [Client Quit]
camilasa_ has quit [Read error: Connection reset by peer]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
camilasan has joined #ruby
tkuchiki has quit [Remote host closed the connection]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
foredoomed has quit [Ping timeout: 264 seconds]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pfg has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
shaunbaker has quit [Remote host closed the connection]
shaileshg has joined #ruby
pfg has quit [Client Quit]
<dj_corncob>
I ended up having to add an update method to my list class, thanks all
mojjojo has joined #ruby
yalue has joined #ruby
alexherbo2 has joined #ruby
kaliya has joined #ruby
northfurr has quit [Ping timeout: 244 seconds]
shaunbaker has joined #ruby
omegahm has joined #ruby
kennym has joined #ruby
mojjojo has quit [Client Quit]
browndawg has quit [Ping timeout: 240 seconds]
nvrch has quit [Quit: nvrch]
randomnick_ has joined #ruby
freerobby has joined #ruby
bogeyd6 has quit [Read error: Connection reset by peer]
art-solopov has quit [Quit: Konversation terminated!]
rails426 has quit [Ping timeout: 240 seconds]
marcgg has quit [Ping timeout: 252 seconds]
DouweM has joined #ruby
rubyduby has quit [Quit: Page closed]
momigi has quit [Ping timeout: 244 seconds]
rjk808 has quit []
andrewlio has quit [Remote host closed the connection]
vt102 has joined #ruby
andrewlio has joined #ruby
foredoomed has joined #ruby
andrewlio has quit [Remote host closed the connection]
foredoomed has quit [Remote host closed the connection]
andrewlio has joined #ruby
pagioss is now known as pagios
yubrew has joined #ruby
Evergrace has quit [Ping timeout: 244 seconds]
mourest has joined #ruby
tgkokk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cya]
banister has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
supermarin has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
lyanchih has quit [Ping timeout: 240 seconds]
oneawayman has joined #ruby
kitak_ has quit [Remote host closed the connection]
ocx has joined #ruby
S0da has quit [Remote host closed the connection]
vlad_sta_ has quit [Remote host closed the connection]
<ocx>
hi all, i have a linuxheadless system that i would like to authenticate to hotspots, for that i was thinking of developping a webinterface on ruby to run on the headless, user from a pc would access this page press on authenticate hotspot, at this time a request would be send from the headless into hotspot, result would be returned to ruby interface and shown to the user, user enter user/pass and resends now headless is authenticated to h
vlad_starkov has joined #ruby
<ocx>
can anyone guide me where should i start? all in all i need the user to authenticate the headless to the hotspot
senayar_ has quit [Remote host closed the connection]
monsieurp has quit [Quit: Lost terminal]
<dp_011>
Hi, I try to push an app to heroku but I don't get any errors. I get when visiting the site "The page you were looking for doesn't exist.". I use the pg database and had do this: heroku pg:reset DATABASE than insert the app-name than heroku run rake db:migrate
razibog has quit [Ping timeout: 264 seconds]
james_d_h has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
mavcunha has joined #ruby
maroloccio2 has joined #ruby
oneawayman has quit [Read error: Connection reset by peer]
maroloccio has quit [Ping timeout: 240 seconds]
<perlsyntax>
Does ruby come with gui?
ndrei has joined #ruby
<The_NetZ>
ocx: would it not be simpler to just use the wireless config on the server
oneawayman has joined #ruby
<The_NetZ>
perlsyntax: not really.
<DouweM>
perlsyntax: what exactly are you looking for?
Thanatermesis has joined #ruby
<ocx>
The_NetZ: what do you mean
mforrester has joined #ruby
<perlsyntax>
i thought it came with it.
<The_NetZ>
there are bindings for stuff, and you can use swing from jruby
<perlsyntax>
thanks
<DouweM>
perlsyntax: there's no de facto GUI library, no
<The_NetZ>
ocx: as in, iw and such.
<perlsyntax>
i see
<workmad3>
perlsyntax: there's tk bindings with the stdlib... but not many people want to use that :)
UserNameInvalid has quit [Quit: Leaving]
mark_locklear has joined #ruby
<The_NetZ>
workmad3: as in, fltk?
<DouweM>
workmad3: ha, I had no idea
YamakasY has joined #ruby
<perlsyntax>
i just been doing some seach on ruby that all.
<workmad3>
perlsyntax: as in 'The Well Grounded Rubyist'?
<perlsyntax>
yes that it
<perlsyntax>
silly me
dblessing has joined #ruby
glosoli has joined #ruby
<perlsyntax>
workmad3,You read my mind:)
<workmad3>
perlsyntax: couldn't think of any other ruby books with the word 'rubyist' in them other that TWGR :)
chrisseaton has joined #ruby
<perlsyntax>
i see
<workmad3>
perlsyntax: but I don't know every ruby book, so thought I'd double-check...
<perlsyntax>
that no prob
<perlsyntax>
i think it big book not sure.
<workmad3>
perlsyntax: there's a MEAP of the second edition that's being updated for ruby 2 now... but the first edition covers 1.9, so should be ok :)
<perlsyntax>
i get a book from my lib on ruby 2.0
kaspergrubbe has joined #ruby
<perlsyntax>
:)
<workmad3>
1.9 to 2.0 isn't that big a change for newcomers tbh :)
<perlsyntax>
that good to know.
Evergrace has joined #ruby
aagdbl has quit [Quit: Leaving.]
<perlsyntax>
The other book i get is on 1.9 and 2.0 if i am right.
<perlsyntax>
can't wait to work on some projects.
pu22l3r has joined #ruby
<perlsyntax>
workmad3,I try to get use to my mac osx comeing from linux.
kaldrenon has joined #ruby
dj_corncob has quit [Remote host closed the connection]
patrice has joined #ruby
patrice has quit [Client Quit]
<workmad3>
perlsyntax: you could just start playing with ruby now... fire up IRB and play around a bit, find a web tutorial :)
tyranja is now known as tyranjoff
freerobby has joined #ruby
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
monsieurp has joined #ruby
hiyosi has joined #ruby
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
<rdark>
2.0 was more like 1.10 IMHO
agjacome has joined #ruby
sailias has joined #ruby
Speed has joined #ruby
Mon_Ouie has quit [Ping timeout: 244 seconds]
rmorello has joined #ruby
senayar_ has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
stringoO has joined #ruby
Evergrace has quit [Ping timeout: 265 seconds]
axsuul has joined #ruby
hiyosi has quit [Ping timeout: 252 seconds]
axsuul has quit [Max SendQ exceeded]
marcgg_ has quit [Read error: Connection reset by peer]
<DouweM>
rdark: it wasn't meant to be a 2.0 in semver terms, they're only now starting to use semver
marcgg has joined #ruby
<DouweM>
go away away_
danshultz has joined #ruby
northfurr has joined #ruby
northfurr has quit [Changing host]
northfurr has joined #ruby
mjs2600 has joined #ruby
senayar_ has quit [Ping timeout: 240 seconds]
toretore has joined #ruby
alexju has joined #ruby
momigi has joined #ruby
<perlsyntax>
i got way_ he been bug me to.
senayar has joined #ruby
<perlsyntax>
DouweM,Good idea
supermarin has joined #ruby
hiyosi has joined #ruby
duggiefresh has joined #ruby
grayWolf has joined #ruby
tjr9898 has quit [Remote host closed the connection]
e4xit has joined #ruby
benzrf has joined #ruby
<benzrf>
hey is anybody here good w/ celluloid?
nvrch has joined #ruby
yubrew has joined #ruby
Speed has quit [Ping timeout: 240 seconds]
sparrovv has joined #ruby
supermarin has quit [Ping timeout: 252 seconds]
thesheff17_ has joined #ruby
browndawg has joined #ruby
duggiefresh has quit [Ping timeout: 252 seconds]
rudisimo has joined #ruby
momigi has quit [Ping timeout: 240 seconds]
Evergrace has joined #ruby
Salve has joined #ruby
ahawkins_ is now known as ahawkins
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dkamioka has joined #ruby
havenwood has joined #ruby
Salve_ has joined #ruby
charliesome has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
<pothibo>
I have a sort of blank, how would you return the multiple of an integer ie: multiple of 3600 as if 900 returns 0, 3600 returns 3600, 5000 returns 3600 and 7200 would return 7200. I'm thinking of using (value % 3600) * 3600 but I'm wondering if ruby has any constructs for this
<pothibo>
I meant (value / 3600) * 3600
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
geekbri has joined #ruby
<benzrf>
pothibo: sounds like u want modulo
<benzrf>
oh wait
<pothibo>
benzrf ;)
<pothibo>
want multiple, not reminder
phansch has quit [Quit: WeeChat 0.4.2]
CorySimmons has joined #ruby
<benzrf>
im confused, i do not follow what u want o_o
grayWolf is now known as Speed
phansch has joined #ruby
phansch has quit [Client Quit]
jimmyy has joined #ruby
freerobby has joined #ruby
phansch has joined #ruby
Salve has quit [Ping timeout: 264 seconds]
<apeiros>
pothibo: by "multiple of an integer", you mean "the closest multiple of an integer"?
linojon has joined #ruby
<pothibo>
I have a duration in second and I'm trying to split that duration in hours and minutes independently. so duration.hours would return the number of hours, in seconds, and duration.minutes would return the minutes in second. So if I have a duration of 1hour 15 minutes, it would return hour = 3600 and minutes = 900
<pothibo>
apeiros yes, sorry, my mistake
<apeiros>
if so, with what bias? up/down? (e.g. with multiple of 3600, to what would 1800 round, to 0 or 3600?)
<apeiros>
and yes, your calculation is already almost what you need
tgkokk has quit [Ping timeout: 240 seconds]
charliesome has quit [Ping timeout: 252 seconds]
<apeiros>
num.fdiv(3600).round * 3600
<pothibo>
apeiros ceiled, always
<pothibo>
ok
<apeiros>
in that case, s/round/ceil/
Sawbones has joined #ruby
parduse has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
<pothibo>
is their a notable difference between your solution and ( num / 3600 ) * 3600 ? besides the object oriented approach vs scalar one
senayar has quit [Remote host closed the connection]
<apeiros>
pothibo: num/3600 is integer division if num is an integer. and as workmad3 showed, that will not get you the result you desire.
<pothibo>
workmad3 ;) I guess I wasn't clear but I was wondering if there was actual speed gain by using the former (Even though I doubt it since it uses float to int conversions)
Speed has left #ruby ["WeeChat 0.4.3"]
senayar has joined #ruby
yeticry has joined #ruby
<apeiros>
pothibo: you're mistaken. it uses no conversion at all.
<apeiros>
so yes, infinite precision *for rationals*, as I said it :-)
<benzrf>
^
<shevy>
only chuck norris can hold infinite precision
<apeiros>
the only boundary to precision there is the same as Bignum's limits.
sparrovv has quit [Remote host closed the connection]
<workmad3>
apeiros: it's still not infinite precision... it's just a number that would require infinite precision as a decimal expansion can be represented exactly as a rational
<pothibo>
benzrf spammin me too
<workmad3>
apeiros: otherwise you may as well say that 0.1 is infinite precision (in decimal) because 1/10 requires an infinite binary expansion ;)
candelabra has quit [Remote host closed the connection]
<apeiros>
workmad3: it is infinitely precise, yes
crystal77 has joined #ruby
dik_dak has joined #ruby
<apeiros>
it's a bit pointless to make the claim for single numbers, though
<workmad3>
apeiros: it's exact
<workmad3>
apeiros: which is not quite the same as infinitely precise
<workmad3>
apeiros: the infinities basically get removed with rationals
<apeiros>
I still don't see the difference, at least with regards to my claim
lw has joined #ruby
<apeiros>
12 in decimal is an infinitely precise (exact) representation of 12 in base 10
<apeiros>
in base π, you can't represent it with infinite precision
<benzrf>
^fax.
Czupa has joined #ruby
chris_thomson has joined #ruby
sparrovv has joined #ruby
<apeiros>
(it may well be that I'm unaware of mathematical terms and their meanings - I'm telling how I understand it and asking for the difference)
<workmad3>
apeiros: I guess I'm objecting to the use of the term 'infinitely precise' which (to me) implies that you're getting infinitesimally close to a value through infinite decimal expansion
paolooo has quit [Ping timeout: 245 seconds]
<workmad3>
apeiros: as opposed to 'exact' which introduces no infinities or exapansions, it's merely exactly the quantity under question...
<apeiros>
hm, ok
<workmad3>
*expansions
freerobby has quit [Quit: Leaving.]
<workmad3>
apeiros: is that agreement that you can see how I differ the terms and (somewhat) accept it? :)
<workmad3>
if so, I'm going to jump around going 'I won! I won! I finally won in a dispute about terms with apeiros!'
aagdbl has joined #ruby
<workmad3>
and then go to lunch :)
<benzrf>
nobody will evr beat ME in a dispute about terms
<benzrf>
B)
<shevy>
die benatkin
<shevy>
erm
<shevy>
die benzrf
pu22l3r has quit [Remote host closed the connection]
<workmad3>
benzrf: is that because you'd stick your fingers in your ears and go 'laalalalalala' if someone attempted such a dispute? ;)
pu22l3r has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<workmad3>
ok, lunch :)
Sawbones has quit []
<pothibo>
semantic war
<benzrf>
workmad3: of course!
<benzrf>
what else do you expect from a teenager?
<workmad3>
pothibo: the best kind of war!
<benzrf>
=)
tyranjoff is now known as tyranja
<benzrf>
workmad3: indisputably
<pothibo>
;)
workmad3 is now known as wm|lunch
jamto11 has joined #ruby
chris_thomson has quit [Quit: Zzz...]
<apeiros>
wm|lunch: damn, I try 3 times to complete your nick just to finally figure you changed it…
<apeiros>
wm|lunch: happy jumping around, you've won a dispute ;-)
<The_NetZ>
apeiros: lawl
linojon has quit [Ping timeout: 240 seconds]
foredoomed has joined #ruby
linojon has joined #ruby
devdazed has quit [Quit: Bye]
hamakn has quit [Remote host closed the connection]
_tpavel has quit [Quit: Leaving]
charliesome has joined #ruby
hamakn has joined #ruby
jrhe has joined #ruby
bathula has quit [Ping timeout: 240 seconds]
crystal77 has quit [Quit: Computer has gone to sleep.]
IceyEC has joined #ruby
charlies_ has joined #ruby
aagdbl has quit [Quit: Leaving.]
sdouglas has joined #ruby
tonni has quit [Remote host closed the connection]
<shevy>
benzrf man, you aren't far away from 18
tonni has joined #ruby
<benzrf>
oh shit ill be legally considered an adult in under a year
<benzrf>
that doesnt seem right
omegahm has joined #ruby
away_ has quit []
sparrovv has quit [Remote host closed the connection]
away_ has joined #ruby
<Tachoh>
dont worry nobody will treat you like an adult until you're in your 30s anyway
<xm>
does anyone know why "#!/usr/bin/env ruby" is used?
<xm>
rather than invoking ruby directly.. ?
nvrch has quit [Quit: nvrch]
<jhass>
xm: it allows you to have multiple rubies and to switch between them just by changing your $PATH
<xm>
thanks
<jhass>
it also makes your scripts more portable between different setups
charliesome has quit [Ping timeout: 264 seconds]
<xm>
ok, interesting
<xm>
ive never really seen this done before
<The_NetZ>
xm: yep. ruby may be located on a different path depending on the system, though the hashbang is only useful on linux
<xm>
most scripts just seem to call their interpreters etc directly
charlies_ has quit [Ping timeout: 240 seconds]
<apeiros>
Tachoh: and then they'll treat you like you were senile already
mourest has quit [Remote host closed the connection]
nvrch has joined #ruby
<apeiros>
xm: because different distros have their executables in different places
tonni has quit [Ping timeout: 240 seconds]
<apeiros>
env abstracts that problem
<xm>
i see
<apeiros>
sadly gnu env is a bit shitty and can't handle arguments :(
dzhulk has joined #ruby
bal has quit [Quit: bal]
<apeiros>
(or can newer versions now?)
CorySimmons has quit [Quit: Bye!]
phantasm66 has joined #ruby
gfunc has joined #ruby
marcgg_ has joined #ruby
yasushi has joined #ruby
<dp_011>
After push to heroku I get "The page you were looking for doesn't exist." With heroku logs I get no errors , can someone help me out ?
kevind has joined #ruby
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
grx has quit [Quit: Going offline, see ya! (www.adiirc.com)]
cover has joined #ruby
bal has joined #ruby
marcgg has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
<pothibo>
dp_011 that's quite vague
<The_NetZ>
apeiros: I think it can, now.
mary5030 has joined #ruby
thomasxie has joined #ruby
arietis has joined #ruby
<dp_011>
pothibo: I know pave a pg database local running fine
mbff has joined #ruby
mbff is now known as Guest88080
sk87 has joined #ruby
sparrovv has joined #ruby
garbagecollectio has quit [Quit: garbagecollectio]
MindfulMonk has joined #ruby
devdazed has joined #ruby
fgo has quit [Remote host closed the connection]
sparrovv has quit [Remote host closed the connection]
<dp_011>
pothibo: on config/production.rb I have config.assets.compile = true
thomasxie has quit [Client Quit]
zachallett has joined #ruby
thomasxie has joined #ruby
duggiefresh has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
dkamioka has quit [Remote host closed the connection]
tjr9898 has joined #ruby
fgo has joined #ruby
kirun has joined #ruby
agjacome has quit [Quit: Lost terminal]
segimondu is now known as segmond
jkamenik has joined #ruby
lmickh has joined #ruby
nvrch has quit [Quit: nvrch]
vlad_starkov has joined #ruby
jimmyy has joined #ruby
supermarin has joined #ruby
mourest has joined #ruby
klaut has quit [Quit: Connection closed for inactivity]
mary5030 has quit [Remote host closed the connection]
jimmyy has quit [Max SendQ exceeded]
mary5030 has joined #ruby
jimmyy has joined #ruby
mary5030 has quit [Remote host closed the connection]
aryaching has joined #ruby
mary5030 has joined #ruby
dkamioka has joined #ruby
slowcon has joined #ruby
mary5030 has quit [Remote host closed the connection]
klaut_ is now known as klaut
momigi has joined #ruby
mary5030 has joined #ruby
agjacome has joined #ruby
npearson has joined #ruby
supermarin has quit [Ping timeout: 244 seconds]
timonv has quit [Remote host closed the connection]
RaCx has joined #ruby
Coolhand is now known as niharvey
senayar_ has joined #ruby
maximski has joined #ruby
meatherly has joined #ruby
phutchins has quit [Remote host closed the connection]
arietis has quit [Quit: Computer has gone to sleep.]
mary5030 has quit [Ping timeout: 265 seconds]
arietis has joined #ruby
thomasxie has quit [Remote host closed the connection]
thomasxie has joined #ruby
senayar has quit [Ping timeout: 265 seconds]
lw has quit [Quit: s]
yacks has quit [Remote host closed the connection]
thomasxie has quit [Read error: Connection reset by peer]
momigi has quit [Ping timeout: 240 seconds]
RaCx_ has joined #ruby
thomasxie has joined #ruby
RaCx has quit [Ping timeout: 264 seconds]
RaCx_ is now known as RaCx
zz_jrhorn424 is now known as jrhorn424
obs has quit [Quit: Konversation terminated!]
craigp has joined #ruby
makara has quit [Ping timeout: 244 seconds]
codabrink has joined #ruby
craigp_ has quit [Ping timeout: 240 seconds]
obs has joined #ruby
momomomomo has quit [Quit: momomomomo]
momomomomo has joined #ruby
camilasa_ has quit [Remote host closed the connection]
<workmad3>
certainty: because I won in a semantic dispute against apeiros :D
shtirlic_ has joined #ruby
* certainty
reads the backlog
codecop has quit [Remote host closed the connection]
vjt_ has joined #ruby
<certainty>
workmad3: ok i see nothing. what was it about?
<workmad3>
certainty: the difference between 'infinitely precise' and 'exact'
cgore has joined #ruby
<certainty>
workmad3: what was your point?
benzrf has left #ruby [#ruby]
toastynerd has joined #ruby
antonishen has quit [Ping timeout: 265 seconds]
nfk has quit [Remote host closed the connection]
knigitz has quit [Remote host closed the connection]
Klumben has quit [Ping timeout: 265 seconds]
csq has quit [Ping timeout: 265 seconds]
shtirlic has quit [Ping timeout: 265 seconds]
artgoeshere has quit [Ping timeout: 265 seconds]
epochwolf has quit [Ping timeout: 265 seconds]
niharvey has quit [Quit: No Ping reply in 180 seconds.]
ConstantineXVI has quit [Ping timeout: 265 seconds]
seich- has quit [Ping timeout: 265 seconds]
pinage404 has quit [Ping timeout: 265 seconds]
binw has quit [Ping timeout: 265 seconds]
csq has joined #ruby
MindfulMonk has quit [Ping timeout: 265 seconds]
psyprus has quit [Ping timeout: 265 seconds]
cephalostrum has quit [Ping timeout: 265 seconds]
Jakee`__ has quit [Ping timeout: 265 seconds]
xiphiasx_ has quit [Ping timeout: 265 seconds]
tobiasvl has quit [Ping timeout: 265 seconds]
vjt has quit [Remote host closed the connection]
rickenharp_ has quit [Ping timeout: 265 seconds]
dnyy has quit [Ping timeout: 265 seconds]
the_mentat has quit [Ping timeout: 265 seconds]
ninegrid has quit [Ping timeout: 265 seconds]
seich- has joined #ruby
psyprus has joined #ruby
tvl has joined #ruby
kies has quit [Ping timeout: 265 seconds]
lfox has quit [Ping timeout: 265 seconds]
ninegrid has joined #ruby
bluepojo has quit [Quit: No Ping reply in 180 seconds.]
mordocai has quit [Remote host closed the connection]
<shevy>
This can get damn long to handle :\
<soahccc>
shevy: there is defined? or you just use a hash and check if the key is set at all
<shevy>
hmm
<shevy>
so just one hash for the configuration?
paulfm has quit [Ping timeout: 265 seconds]
RubyPanther has quit [Ping timeout: 265 seconds]
mjmac has quit [Ping timeout: 265 seconds]
mordocai has joined #ruby
bluepojo has joined #ruby
artgoeshere has joined #ruby
epochwolf has joined #ruby
Klumben has joined #ruby
ceej has quit [Ping timeout: 265 seconds]
epochwolf has quit [Changing host]
epochwolf has joined #ruby
<workmad3>
certainty: that 'infinitely precise' is not the same as 'exact' as 'infinitely precise' brings in the idea of an infinite sequence that at its limit is infinitesimally close to the 'correct' answer
<workmad3>
ooh, netsplit
ConstantineXVI has joined #ruby
MindfulMonk has joined #ruby
jjbohn is now known as jjbohn|afk
<certainty>
yeah mystery
lfox has joined #ruby
mikepack has joined #ruby
mjmac has joined #ruby
sdouglas has joined #ruby
Kneferilis has quit [Quit: Leaving]
felixjet has joined #ruby
<certainty>
workmad3: i guess the context were exact vs. inexact numbers?
<soahccc>
shevy: hehe banana is our internal collection of stuff :D
<workmad3>
certainty: 1/3 being an exact rational representation :)
<workmad3>
certainty: while the decimal representation of the same number would require infinite precision in a decimal expansion
centrx has joined #ruby
<soahccc>
shevy: and that method I use feels the dirtiest I've ever written :>
paulfm has joined #ruby
xiphiasx_ has joined #ruby
<certainty>
workmad3: yeah i see
<workmad3>
certainty: then I went to lunch :)
<workmad3>
and came back to apeiros agreeing and saying I could jump around in happiness :)
<soahccc>
workmad3: so when there is a cake and three person and one says "well everyone get a third of it" then you ask "exactly one third?" :D
ScalaClient has quit [Ping timeout: 240 seconds]
sputnik1_ has joined #ruby
sputnik1_ has quit [Client Quit]
nvrch has joined #ruby
shaunbaker has joined #ruby
jjbohn|afk is now known as jjbohn
jjbohn is now known as jjbohn|afk
thomasxie has joined #ruby
<workmad3>
soahccc: yes... I expect the person cutting to cut the cake into exact quarters then trisect one quarter with compass and straight-edge to provide each person with exactly 1 third
browndawg has quit [Quit: Leaving.]
afreidah2 has quit [Ping timeout: 265 seconds]
<certainty>
workmad3: in scheme the constant 1/3 is not exact
chrisseaton has quit []
<workmad3>
soahccc: or to use some equivalent mechanism to ensure each person gets a swept arc of 2/3rads :)
<workmad3>
certainty: 1.quo(3) is exact in ruby ;)
<soahccc>
what are the new "named parameters" called or are they just named parameters?
<workmad3>
soahccc: keyword arguments?
jack_rabbit has quit [Ping timeout: 240 seconds]
<soahccc>
okay basically the same right? I mean that are essentially named parameters
<et>
workmad3: infinite sequences are one way to define real numbers
<workmad3>
yeah, essentially
<workmad3>
et: I'm aware ;)
lxsameer has quit [Quit: Leaving]
<workmad3>
et: I'm also aware of dadekind cuts for arriving at the reals from the rationals
SCommette has joined #ruby
<workmad3>
*dedekind cuts
<et>
so there's no real difference between the sequence and the number
zcreative has joined #ruby
s2013 has joined #ruby
mengu has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 265 seconds]
dzhulk has left #ruby [#ruby]
vlad_starkov has quit [Remote host closed the connection]
afreidah2 has joined #ruby
<workmad3>
et: I like that statement on multiple levels ;)
<workmad3>
et: there could be a hyperreal difference between the sequence and the number though ;)
drumusician has joined #ruby
vlad_starkov has joined #ruby
wakus-on has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
<workmad3>
et: I still feel there's a difference between an exact representation and a representation that relies on an infinite number of non-zero terms
arubin has joined #ruby
senj has joined #ruby
drumusician has quit [Read error: Connection reset by peer]
mengu has joined #ruby
supersym has joined #ruby
<et>
you can identify that infinte number of terms with a sequence which exactly identifies the real number
heftig has quit [Read error: Operation timed out]
rayners has joined #ruby
gfunc has quit [Remote host closed the connection]
fayimora has quit [Ping timeout: 245 seconds]
jack_rabbit has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
IlIlIlIlIlIlI has left #ruby ["PRIVMSG #coderdojo.si :if has time :)"]
jds has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
perlsyntax has joined #ruby
larsam has joined #ruby
ndrei has joined #ruby
havenwood has quit [Remote host closed the connection]
danshult_ has joined #ruby
s2013 has quit [Ping timeout: 252 seconds]
ceej_ is now known as ceej
afreidah3 has joined #ruby
havenwood has joined #ruby
toastynerd has quit [Read error: Connection reset by peer]
afreidah2 has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
CorySimmons has joined #ruby
danshultz has quit [Ping timeout: 264 seconds]
axsuul has joined #ruby
snath has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
foredoomed has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 240 seconds]
vpretzel has quit [Ping timeout: 265 seconds]
vpretzel has joined #ruby
SCommette_ has joined #ruby
shabgard has quit [Quit: Aji maji la taraji]
bathula has quit [Ping timeout: 240 seconds]
monkegjinni has quit [Ping timeout: 252 seconds]
<dideler_work>
is one of these considered better style than the other? "http://#{url}" vs 'http://' << url
alexju has quit [Remote host closed the connection]
srji has quit [Quit: leaving]
paulfm has quit []
<shevy>
dideler_work the first style ensures that .to_s is called
srji has joined #ruby
SCommette has quit [Ping timeout: 240 seconds]
SCommette_ is now known as SCommette
<shevy>
dideler_work the second style makes no guarantee, and if url happens to not be a string, the << will lead to a runtime error
<weeb1e>
Has anyone here ever implemented chunked streaming for responses using the Thin web server on EventMachine? I've tried every chunked streaming implementation possible and data is never received by the client before the connection closes
<dideler_work>
shevy: thanks :)
acrussell has joined #ruby
maletor has joined #ruby
<shevy>
you are welcome!
<shevy>
ewww wakus-on spams again
datacrusher has joined #ruby
godd2 has joined #ruby
parus has quit [Ping timeout: 264 seconds]
<godd2>
Well I got my first segfault in ruby
Ziarkaen` has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
Ziarkaen has quit [Ping timeout: 240 seconds]
Shidash has joined #ruby
Kneferilis has joined #ruby
maletor has quit [Ping timeout: 264 seconds]
omegahm has quit [Write error: Connection reset by peer]
Celm has joined #ruby
sigurding has quit [Quit: sigurding]
mengu has quit []
sdouglas has quit [Remote host closed the connection]
armyriad has quit [Ping timeout: 244 seconds]
armyriad has joined #ruby
s2013 has joined #ruby
cover has joined #ruby
zB0hs has joined #ruby
zB0hs has quit [Client Quit]
charliesome has joined #ruby
bthesorceror has joined #ruby
hiyosi has joined #ruby
grzywacz has joined #ruby
grzywacz has quit [Changing host]
grzywacz has joined #ruby
_maes_ has quit [Ping timeout: 253 seconds]
garbagecollectio has joined #ruby
tagrudev has quit [Remote host closed the connection]
<garbagecollectio>
how do i pass params to a helper method from a view
LadyRainicorn has joined #ruby
paulfm has joined #ruby
<shevy>
godd2 yay man!
lutfidemirci has quit [Remote host closed the connection]
<shevy>
garbagecollectio sounds like rails -> #rubyonrails
LadyRainicorn has quit [Client Quit]
vpretzel has quit [Read error: Connection reset by peer]
<garbagecollectio>
i can't get in there eman
lutfidemirci has joined #ruby
pu22l3r_ has joined #ruby
abra has quit [Ping timeout: 265 seconds]
sdouglas_ has joined #ruby
vpretzel has joined #ruby
sigurding has joined #ruby
abra has joined #ruby
hobodave has joined #ruby
lw has joined #ruby
yubrew has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
pu22l3r has quit [Ping timeout: 241 seconds]
<shevy>
you must register before you can join
paulfm has quit [Client Quit]
<shevy>
the people on #sinatra and padrino-users don't force you to register though
<workmad3>
shevy: too much spam happens if we turn off the registration requirement in #rubyonrails :(
klue has joined #ruby
villainous has joined #ruby
<workmad3>
shevy: last time it was turned off for a few days, I think we had half a dozen porn spam bots posting in there...
<shevy>
hehehe
monkegjinni has joined #ruby
<shevy>
I wanna see that!
yacks has quit [Read error: Connection reset by peer]
<workmad3>
shevy: a new one tended to join a few hours after Radar banned one :)
paulfm has joined #ruby
IceDragon has quit [Ping timeout: 264 seconds]
jprovazn has quit [Quit: Leaving]
yubrew has quit [Ping timeout: 244 seconds]
supersym has quit [Quit: WeeChat 0.4.3]
jimmyy has quit []
AlexRussia has joined #ruby
supersym has joined #ruby
<workmad3>
garbagecollectio: to answer your question (although you should really register with freenode and join #rubyonrails :P ), you pass arguments to helper methods in the normal way... so if it's an erb view, <%= some_helper param1, param2, param3, ... %>
<godd2>
shevy: just don't ever try to make a buffer length negative for a WAVEHDR multimedia object
<workmad3>
godd2: sounds fun... also sounds like it's a bug in the C code :D
Xeago has quit [Remote host closed the connection]
abra has quit [Read error: Connection timed out]
Xeago has joined #ruby
axl_ has joined #ruby
weaksauce has quit [Ping timeout: 264 seconds]
abra has joined #ruby
villainous has left #ruby [#ruby]
poguez has joined #ruby
pfg has joined #ruby
sdouglas_ has quit [Remote host closed the connection]
sputnik1_ has joined #ruby
sdouglas has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
niklasb has joined #ruby
geopet has joined #ruby
havenwood has joined #ruby
<godd2>
bugs in winapi code?? surely not!
ce_afk is now known as cescalante
philcrissman has joined #ruby
quatron has joined #ruby
magoo has joined #ruby
pwh has joined #ruby
dp_011 has quit [Ping timeout: 240 seconds]
sdouglas has quit [Ping timeout: 265 seconds]
absolutezeroff has quit [Remote host closed the connection]
aganov has quit [Quit: Leaving]
freerobby has joined #ruby
lw has quit [Quit: s]
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
IceDragon has joined #ruby
<garbagecollectio>
here is a more ruby question
<garbagecollectio>
how can i create an instance varaible
troyready has joined #ruby
havenwood has quit [Remote host closed the connection]
<garbagecollectio>
a single time
yubrew has joined #ruby
<garbagecollectio>
when my application boots up
havenwood has joined #ruby
sigurding has quit [Ping timeout: 264 seconds]
zcreative has quit [Quit: Computer has gone to sleep.]
zcreative has joined #ruby
<centrx>
garbagecollectio, How does our application "boot up" ?
<garbagecollectio>
sorry, when a request is incoming
aspires has joined #ruby
bry4n_ has quit [Quit: WeeChat 0.4.2]
sdouglas has joined #ruby
<centrx>
garbagecollectio, What handles the request?
tcstar has joined #ruby
kevind_ has joined #ruby
<jhass>
garbagecollectio: that sounds like a description of the solution you think you need. How about a description of your problem? ;)
datacrusher has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 240 seconds]
Ziarkaen` has quit [Ping timeout: 244 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
bthesorceror has quit [Remote host closed the connection]
<garbagecollectio>
problem is i have data from a model that is used on my webpage across the entire site
<garbagecollectio>
and i don't want to make that call all the time
drumusician has joined #ruby
saarinen has joined #ruby
drumusician has quit [Remote host closed the connection]
RaCx has joined #ruby
drumusician has joined #ruby
<centrx>
garbagecollectio, Is this Rails?
<garbagecollectio>
yeah it could be if its easier
toastynerd has joined #ruby
hamed_r has quit [Quit: Ex-Chat]
sambao21 has joined #ruby
hamed_r has joined #ruby
kevind has quit [Ping timeout: 264 seconds]
kevind_ is now known as kevind
aspires has quit [Client Quit]
<jhass>
it's not a question of "being easier". The best way to do something depends on your application design, not on the fact that you're using Ruby
shime has joined #ruby
kukyakya has joined #ruby
kukyakya has quit [Client Quit]
niklasb has quit [Ping timeout: 240 seconds]
<jhass>
what you probably want is a caching view helper
kukyakya has joined #ruby
<garbagecollectio>
i have that
<centrx>
garbagecollectio, If I can make the question be whatever is easiest, then just turn your page into a static page and host it with webrick
lw has joined #ruby
claymore has joined #ruby
<garbagecollectio>
it is programmable
phansch has joined #ruby
et has left #ruby [#ruby]
<garbagecollectio>
the content can change depending on models
<garbagecollectio>
which is the first thing i said
<toretore>
oz: yeah, i'm using that for parsing, which it does quite well, but it doesn't generate
ahawkins has quit [Remote host closed the connection]
charliesome has joined #ruby
<godd2>
I guess the real question is, for what reason are you parsing an HTTP request? and is the fact that yoru answer is hard to find mean you're approaching your underlying problem the wrong way?
RaCx has quit [Quit: Computer has gone to sleep.]
apeiros has quit [Ping timeout: 265 seconds]
<toretore>
i have a tcp socket which receives http, which i want to parse. then i want to generate an http response and write that to the socket
<oz>
toretore: ah ok, I thought it did. Sorry! :)
nhhagen_ has quit [Ping timeout: 264 seconds]
mlpinit has quit [Remote host closed the connection]
Al__ has joined #ruby
baroquebobcat has joined #ruby
datacrusher has joined #ruby
mlpinit has joined #ruby
<jhass>
toretore: where do you get that socket from? maybe you can let webrick or something similar listen on it?
sambao21 has quit [Quit: Computer has gone to sleep.]
<toretore>
i kind of want to use the socket directly
<workmad3>
toretore: a.k.a. you want to write an HTTP server? :D
kukyakya has quit [Remote host closed the connection]
<toretore>
yes :P
<toretore>
that is pretty much what i'm doing
axl_ has quit [Quit: axl_]
parus has joined #ruby
<workmad3>
toretore: is there something about it that means you can't use rack? (I'm guessing some advanced streaming requirements?)
markisonfire has joined #ruby
rlb3 has joined #ruby
<toretore>
it's because of the way i'm handling concurrency
mikepack_ has joined #ruby
axl_ has joined #ruby
<toretore>
with fibers
charliesome has quit [Ping timeout: 265 seconds]
<toretore>
i can read and write concurrently from/to a socket
sdouglas has quit [Remote host closed the connection]
<toretore>
but an existing library won't be aware of this
<toretore>
part of me also wants to rant about how there ought to be a pure http parser/generator for ruby
guilleiguaran has joined #ruby
<toretore>
and that assuming i want a whole server or html parser is bad design
mikepack has quit [Ping timeout: 240 seconds]
paolooo has joined #ruby
Mongey has quit [Read error: Connection reset by peer]
etqqkoiflwhb has joined #ruby
mikepack_ has quit [Ping timeout: 240 seconds]
pel_daniel has joined #ruby
bluepojo__ has joined #ruby
Mongey has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
CorySimmons has quit [Quit: Zzz...]
sdouglas has joined #ruby
DouweM has quit [Read error: Connection timed out]
kies has joined #ruby
bluepojo has quit [Ping timeout: 265 seconds]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kies has quit [Changing host]
kies has joined #ruby
mjs2600 has quit [Remote host closed the connection]
zerun0_ has quit [Ping timeout: 240 seconds]
supermarin has joined #ruby
jlast has joined #ruby
supermarin has quit [Client Quit]
philcrissman has quit [Read error: Connection reset by peer]
Umschwung has joined #ruby
sdouglas has quit [Remote host closed the connection]
zerun0_ has joined #ruby
Mongey has quit [Read error: Connection reset by peer]
shaunbaker has quit [Remote host closed the connection]
xuisc has joined #ruby
xuisc has quit [Changing host]
xuisc has joined #ruby
kaspergr_ has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
saarinen has joined #ruby
GaryOak_ has joined #ruby
Mongey has joined #ruby
philcrissman has joined #ruby
<certainty>
we were in the same situation a while back. Then someone sat down and wrote intarweb which provides all the parsing/unparsing primitives for http
crystal77 has quit [Quit: Computer has gone to sleep.]
nhhagen has joined #ruby
Akuma has quit [Ping timeout: 264 seconds]
yarou has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
<weeb1e>
This is driving me insane
senayar_ has quit [Remote host closed the connection]
<toretore>
certainty: is that a real thing you're talking about?
banister has joined #ruby
kaspergrubbe has quit [Read error: Operation timed out]
timonv has quit [Remote host closed the connection]
senayar has joined #ruby
nhhagen has quit [Client Quit]
CorySimmons has joined #ruby
timonv has joined #ruby
pfg has joined #ruby
nanoyak has joined #ruby
<weeb1e>
I can't figure out where this issue is, I cannot get chunks of a HTTP response to be received by a browser before the connection closes or the last chunk is received
pwh has quit []
peterellisjones has joined #ruby
RaCx has joined #ruby
<toretore>
do you receive them with curl?
<weeb1e>
I've even written my own simple EventMachine HTTP server and the same things happens
bluenemo has quit [Remote host closed the connection]
<weeb1e>
I am sending a chunk once per second, for 10 seconds
<weeb1e>
You don't need to flush anything with EventMachine
Luyt__ has left #ruby [#ruby]
<weeb1e>
EventMachine does all the flushing
nanoyak has quit [Client Quit]
iliketurtles has joined #ruby
<toretore>
well, it's gotta be somewhere
tonni has joined #ruby
Elico1 has quit [Read error: Connection reset by peer]
Slavox|AFK is now known as Slavox
jespada has quit [Quit: Leaving]
<weeb1e>
I don't understand this at all, I've exposed the EM servers port for testing so that I can be sure it isn't nginx
shaunbaker has joined #ruby
jmeeuwen has joined #ruby
<weeb1e>
I've implemented countless protocols with EM, both UDP and TCP, and usually use long polling with Thin, but streaming simply does not work
shime has joined #ruby
Elico has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
<weeb1e>
I thought it was an issue with Thin, so I implemented a web server from scratch, and I have still gotten no where
krz has quit [Quit: WeeChat 0.4.3]
Xeago_ has joined #ruby
txdv has quit [Read error: Connection reset by peer]
txdv has joined #ruby
lutfidemirci has quit [Ping timeout: 252 seconds]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
mark_locklear has quit [Ping timeout: 240 seconds]
whomp has joined #ruby
niklasb has joined #ruby
<jhass>
dumb question but I just have to ask it. You did set Transfer-Encoding: chunked?
mikepack has joined #ruby
<weeb1e>
I just tested with EM::HttpRequest and streaming works perfectly
leonidlm has quit [Read error: Operation timed out]
Guest88080 is now known as mbff
<weeb1e>
So it is an issue with Chrome, Firefox and IE... This does not make sense
Xeago has quit [Ping timeout: 240 seconds]
<weeb1e>
jhass: Of course
toastynerd has joined #ruby
shaunbaker has quit [Remote host closed the connection]
<toretore>
so you are actually receiving the data as you're writing it?
shaunbaker has joined #ruby
bahar has joined #ruby
<toretore>
it's just that browsers don't parse each chunk?
<weeb1e>
Yes
Kruppe has joined #ruby
claymore has quit [Ping timeout: 240 seconds]
nisstyre has joined #ruby
<weeb1e>
Browsers wait until the last chunk or connection close until parsing the whole response
<weeb1e>
(both when making the request directly, or using javascript and polling the ajax buffer)
tonni has quit [Quit: Leaving...]
<weeb1e>
There are countless streaming examples all over, I've tried everything under the sun, and yet nothing works in browsers...
bthesorceror has quit [Remote host closed the connection]
<weeb1e>
How does anyone do HTTP streaming?
Xeago_ has quit [Ping timeout: 265 seconds]
<jhass>
hm. Still does sound to me like your stream doesn't confirm to the chunked transfer encoding
bthesorceror has joined #ruby
<jhass>
*conform
dagon666 has left #ruby [#ruby]
jrhe has quit [Quit: Connection closed for inactivity]
yeticry has quit [Ping timeout: 252 seconds]
<weeb1e>
jhass: I just implemented it from scratch using the spec, my test case is incredibly simple
mark_locklear has joined #ruby
<weeb1e>
It's hard coded for a single response
Umschwung has quit [Ping timeout: 264 seconds]
claymore has joined #ruby
lw has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
camilasan has quit []
havenwood has quit [Remote host closed the connection]
crystal77 has joined #ruby
<weeb1e>
Also, the chunked encoding has to be correct jhass, because I stopped my server from ever closing the connection, and browsers still parse the chunks correctly after the last one
mourest has quit [Read error: Connection reset by peer]
<benzrf_>
now we cn do arr_of_hashes.map &:fetch.(:thingy)
<benzrf_>
B)
<jbarket>
Question. When I pass a block to a method, is it possible for the block to have access to instance variables inside of the method that's evaluating it?
<benzrf_>
jbarket: if the method alows it...
heftig has joined #ruby
<benzrf_>
*if it does instance eval
pu22l3r_ has quit [Remote host closed the connection]
<benzrf_>
youd need to do evil black magic to do it from the block
WormDrink has quit [Ping timeout: 264 seconds]
CorySimmons has quit [Client Quit]
<centrx>
A block has access to instance variables...?
pu22l3r has joined #ruby
Lewix has joined #ruby
<benzrf_>
centrx: with instance_eval it does dunnit
x1337807x has joined #ruby
<centrx>
Just a regular block too
x1337807x has quit [Max SendQ exceeded]
<centrx>
benzrf_, He is saying a block, not define_method
<jbarket>
OK so for the sake of knowledge, would it be possible to do something similar with a local variable and a block? Or would I be better off just assigning the local variable to an instance variable, then doing instance_eval?
shinobi_one has quit [Quit: shinobi_one]
blackmesa has joined #ruby
jaimef has quit [Excess Flood]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shime has joined #ruby
<toretore>
certainty: ah, so that's why "ruby intarweb" didn't give me any results :P
bthesorceror has quit [Remote host closed the connection]
jaimef has joined #ruby
<certainty>
toretore: :) but i for one would welcome such a thing for ruby, so if you have too much time ... :)
<centrx>
jbarket, What is your actual code?
<benzrf_>
jbarket: you could inject into the binding of the block
<benzrf_>
but that's just evil
<benzrf_>
jbarket: i would advise you to make a 'context' class with methods for getting certain values
<benzrf_>
then inject the block into an instance
<benzrf_>
p standard idiom i think
<apeiros>
Soulcutter: sorry, was having dinner
WormDrink has joined #ruby
bthesorceror has joined #ruby
jack_rabbit has quit [Ping timeout: 240 seconds]
<toretore>
certainty: already started on it :P
Schmidt has quit [Quit: WeeChat 0.4.2]
<jbarket>
at this point nothing, I'm just trying to evaluate my options. I realized I kind have... half the cart and half the horse, then the other half of each, so trying to figure out what the hell to do. sort of need to evaluate a passed in block inside of another block calling the outer block's variable
rococo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jbarket>
cool thanks for the ideas guys
phansch has joined #ruby
<jhass>
jbarket: you could also sort of fake it by instance_eval'ing in an object that has methods that return the right values. But you really should just yield your values or an object with accessors for them
<apeiros>
Soulcutter: yeah. I did expect a bit of blowback, but I really disliked his snarky first comment.
nisstyre has quit [Quit: bai]
<certainty>
toretore: cool stuff
<toretore>
always find myself making better wheels, because someone made a car and then welded the wheels to it
banister has joined #ruby
<apeiros>
I mean I know I'm snarky and unpleasant too - on irc. I try not to by on less ephemeral media.
<toretore>
reuse and composability, anyone heard of it?
ocx has quit [Ping timeout: 245 seconds]
jbarket has quit [Quit: Page closed]
mehlah has quit [Quit: Leaving...]
ikaros has quit [Quit: Ex-Chat]
pagios has quit [Excess Flood]
<toretore>
apeiros: snark is how i refuel my passion
<certainty>
no never, what was it again?
andikr has quit [Remote host closed the connection]
<toretore>
snarky snark snark
<toretore>
that is what they call me
pagioss has joined #ruby
<certainty>
damn sometimes i miss a typesystem
<toretore>
why can't i do !==
CorySimmons has joined #ruby
<toretore>
:( :( :(
<toretore>
i miss javascript
moted has quit [Quit: moted]
mjs2600_ has joined #ruby
<workmad3>
toretore: open up a console in chrome and type away... get yourself a JS fix!
mjs2600_ has quit [Remote host closed the connection]
peterellisjones has quit [Quit: Leaving.]
<toretore>
i do sometimes.. to remove those "you have to register to read this article" things
rdark has left #ruby [#ruby]
<toretore>
usually it's just some element they put on top of it
whatasunnyday has quit [Quit: whatasunnyday]
jkamenik has quit [Read error: Connection reset by peer]
jkamenik1 has joined #ruby
obs has quit [Quit: Konversation terminated!]
nomenkun has joined #ruby
pwh has quit []
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<slash_nick>
toretore: ah, clever... it usually makes me bugger off, but next time i'll see if i can just get at it
pushpak has joined #ruby
thesheff17_ has joined #ruby
Hanmac1 has joined #ruby
craigp has joined #ruby
craigp has quit [Remote host closed the connection]
<Soulcutter>
apeiros: I admit my initial reaction was negative because of the Object method, but I hope I was more constructive in my reaction
Steve445 has joined #ruby
craigp has joined #ruby
Evergrace has quit [Ping timeout: 240 seconds]
<toretore>
slash_nick: i think they may be catching up to it though
<Soulcutter>
apeiros: I think there's a big difference between giving feedback saying "I don't like that" or "that's bad" vs saying how you think it could be improved
timonv has quit [Remote host closed the connection]
zeeraw has joined #ruby
mark_locklear has quit [Ping timeout: 252 seconds]
whatasunnyday has joined #ruby
Hanmac has quit [Ping timeout: 244 seconds]
ganthore has quit [Quit: Leaving]
<Soulcutter>
apeiros: I struggle to interpret feedback constructively when it isn't necessarily written constructively... it is hard to not have that grate on you
nanoyak has joined #ruby
pwh has joined #ruby
jack_rabbit has joined #ruby
UserNameInvalid has joined #ruby
pierre1_ has quit [Ping timeout: 244 seconds]
momigi has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
momigi has joined #ruby
<Soulcutter>
apeiros: I'm not sure I'd use that lib, but it's good to extract reusable snippets that you find yourself repeating, so good on ya
toastynerd has quit [Remote host closed the connection]
v0n has quit [Ping timeout: 240 seconds]
shinobi_one has joined #ruby
momigi has quit [Read error: Connection reset by peer]
momigi has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
Xeago has joined #ruby
jack_rabbit has quit [Ping timeout: 264 seconds]
toastynerd has joined #ruby
charliesome has joined #ruby
mjs2600_ has joined #ruby
whatasunnyday has quit [Quit: whatasunnyday]
dumdedum has quit [Quit: foo]
whatasunnyday has joined #ruby
shime_ has joined #ruby
whatasunnyday has quit [Client Quit]
havenwood has quit [Remote host closed the connection]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<jglover>
if I was to start a ruby application, and then have that program write a new rb script, and then run it, would that work? I think it would if ruby was interpreted, but I know it wouldn't work for a compiled language like C++ or Java
shime has quit [Ping timeout: 240 seconds]
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
MrJoshua has joined #ruby
oneawayman has joined #ruby
<slash_nick>
jglover: as in - you have a script that writes a file, loads the file, and runs the file?
<jhass>
jglover: it would work and even for java and c++ you could first automatically build it and then run the resulting binary. But the real question is why you would need that
codezomb has joined #ruby
<apeiros>
Soulcutter: yeah. I can understand both criticism on and rejection of the lib. I don't particularly like that pattern myself.
<apeiros>
Soulcutter: but I decided that if I use it, at least I do it better than by using a "magical" callback
Hobogrammer has joined #ruby
Speed has quit [Ping timeout: 240 seconds]
<slash_nick>
wakus-on: don't pm me webcam links please
<apeiros>
Soulcutter: fun fact - there is a major disadvantage in the current implementation, but none of the critiques noticed
<jglover>
slash_nick: jhass: well its really for a rails app. I need to create a model based on user input and then migrate etc, without restarting the server.
camilasan has joined #ruby
<jhass>
slash_nick: spam bot, same as away_. Feel free to get ignored in #freenode. Maybe they realize that it might be a problem if they hear it 20-30 times a day
shaileshg has quit [Quit: Connection closed for inactivity]
maletor has quit [Quit: Computer has gone to sleep.]
iliketurtles has joined #ruby
<apeiros>
jhass: funny idea - lets spam #freenode with notes about the spammer :)
benzrf_ has quit [Quit: leaving]
<jhass>
seriously, about a dozen people reported that now (it affects more channels than #ruby)
<RubyPanther>
apeiros: " It is an anti-pattern because it violates two things: a) the callback mutates its argument. You generally only want methods to mutate the receiver, not its arguments. Inherit does that correctly." That is clearly a false statement. Ruby core methods ARE Ruby, they _can't_ be anti-patterns.
<jhass>
all you get is to /ignore /mode +R
Pricey has joined #ruby
<apeiros>
I remember them claiming that switching to dancer (or whatever the ircd is called) would enable better anti-spam measures…
<apeiros>
RubyPanther: you're missing the point
<RubyPanther>
apeiros: No, I am making another point
<RubyPanther>
Just trust I got the point
<apeiros>
RubyPanther: a) ruby can *very well* use anti-patterns. b) it's not a core method implementation which is the issue.
<apeiros>
RubyPanther: no, you're missing *my* point entirely. also making wrong comparisons.
<RubyPanther>
That way, you'll always give appropriate/relevant responses
<apeiros>
"it's ruby core, it can't use anti-patterns" <-- odd fallacy.
jsilver has joined #ruby
<RubyPanther>
I'm saying Matz decides what is Good in Ruby. The things that Ruby itself does, by design, cannot be "anti-patterns" IN RUBY. Maybe in some other context they are.
maasha has joined #ruby
<apeiros>
yeah, what you say is wrong.
<apeiros>
matz deciding to use something doesn't automagically make it "not an anti-pattern."
<RubyPanther>
Maybe you think they're even bad, and wrong. And that is an opinion. It is fine. But anti-patterns are things that are actually wrong, things that cause real problems. Clearly wanting Ruby to be different than it is is just pundit-land opinion, not an actual "problem" with Ruby
MrLovejoy has joined #ruby
<Mon_Ouie>
e.g. Using $SAFE = 4 (or $SAFE at all) was a bad idea even before they removed it
<maasha>
this method is surprisingly slow: def is_alpha?(char); 65 <= char.ord and char.ord <= 122; end
<Mon_Ouie>
maasha: How about ('a'..'z').cover? char
WormDrink has quit [Read error: Connection reset by peer]
<MrLovejoy>
slahs_nick no spam yet
<maasha>
Mon_Ouie: will that be faster?
<apeiros>
RubyPanther: you're still missing the point and I'm not interested in pointing your nose even more on it.
<RubyPanther>
include/extend are _supposed_to_ mutate the argument. That can't be an anti-pattern, because it is basic to Ruby
Speed has joined #ruby
<maasha>
I was wondering if there was something low level and fast like the C macro is_alpha
<apeiros>
RubyPanther: wrong. include/extend mutate the receiver.
<slash_nick>
MrLovejoy: I've been joined for weeks... it's not "on join"
<apeiros>
RubyPanther: I guess you meant included/extended?
v0n has joined #ruby
<Mon_Ouie>
No idea, didn't try it. It makes more sense than using a magical number for 'A'/'z' (also I forgot to include capitals, I never remember which ones are first)
<RubyPanther>
" It is an anti-pattern because it violates two things: a) the callback mutates its argument. You generally only want methods to mutate the receiver, not its arguments. Inherit does that correctly. " But a) is wrong. That can't be proof of something being an anti-pattern. What does it "violate?" Certainly not Ruby, or basic Ruby design or principles.
<MrLovejoy>
im jsut wondering whats this channel for?
roolo has joined #ruby
<RubyPanther>
Is it a good _general_ principle, sure. But include/extend isn't a general case, it is exactly the specific case where Ruby says it is the way it happens
jprovazn has joined #ruby
<apeiros>
RubyPanther: look, if you actually listened (read) what the other says, I would be interested in this discussion
<centrx>
maasha, regex [[:alpha]]
phantomtiger has quit [Quit: phantomtiger]
<apeiros>
RubyPanther: unfortunately you've proven not to. so I don't bother.
<maasha>
centrx: invoing the regex engine for each char in a tight loop is expensive
weaksauce has joined #ruby
jonathanwallace has quit [Ping timeout: 240 seconds]
<RubyPanther>
apeiros: You've only repeated I'm wrong and missing your point :( You didn't "bother" in the first place.
bahar has quit [Changing host]
bahar has joined #ruby
<apeiros>
RubyPanther: I've also pointed you to the point. you chose to ignore it. I choose not to repeat it.
<Mon_Ouie>
maasha: I would try and benchmark all three suggestions (and other ones if you find any) to decide which one to use
jsilver has quit []
<RubyPanther>
Assume that: A) I'm not "wrong" unless you've at least tried to make an _objective_ point that shows it and B) just take my word I understand your points, because *I DO*
mikecmpbll has joined #ruby
<RubyPanther>
Otherwise, I wouldn't have bothered
<maasha>
Mon_Ouie: or head straight for inline C
<Mon_Ouie>
You could also go in between and use FFI to load isalpha from the libc
Skunky has joined #ruby
MrLovejoy has left #ruby [#ruby]
Skunky has left #ruby ["Leaving"]
<centrx>
maasha, Well, let's test it out
nouitfvf has joined #ruby
<RubyPanther>
It actually is useful to you, because I am also making a point, and I predict your gem will get more support if you adopt pro-Ruby reasoning in why it is good, instead of proposing it as a fix to the awful "anti-pattern" is actually just normal Ruby.
<maasha>
Mon_Ouie: FFI?
thesheff17 has quit [Quit: Leaving]
<RubyPanther>
Is it a better way, I'm not sure one way or the other. I'm sure it doesn't fix a problem with Ruby, though.
<Mon_Ouie>
Foreign Function Interface. Allows you to interface with (most often C-written) library files
<centrx>
maasha, How many characters are you testing?
<slash_nick>
apeiros: The story is that if two policemen are escorting a drunk prisoner between them, and both officers go to a cell, then (regardless of the path taken, and the fact that the prisoner may be wobbling about between the policemen) the prisoner must also end up in the cell.
<centrx>
maasha, Why manually parse the string instead of using Regex, which would probably be faster overall?
<slash_nick>
apeiros: that's a non mathematical explanation ^
vpretzel has joined #ruby
npearson_ has quit [Ping timeout: 240 seconds]
hiyosi has quit [Read error: Operation timed out]
<maasha>
centrx: I am testing 238M chars in my test case.
ScalaClient has joined #ruby
<maasha>
centrx: for the real stuff it will be more
<sarmiena_>
how do you open a file as binary?
oracal has joined #ruby
<apeiros>
slash_nick: ok, I don't follow. what led you to ask whether I'm wasn't a fan of that?
<RubyPanther>
#freenode really took issue yesterday with my suggestion to use heavy-handed temporary bans on the ISPs they're using, so my advice, keep requesting that until it sounds normal to them
<RubyPanther>
as it is right now, they're not willing to do the things that would stop it
<RubyPanther>
well, slow it
robert___ is now known as robert_
<Y3K>
RubyPanther: Thanks for the heads up, and sorry if I offended in any way, wasn't intentional.
Fyyr13_ has joined #ruby
<RubyPanther>
Y3K: No worries, it is a diverse channel :)
invinceable has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
lolmaus has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
<slash_nick>
Seems like the world's been making stronger efforts these past couple of years toward encouraging tolerance and discouraging ... whatever it is (sexist,racist,homophobic,etc)
havenwood has quit [Remote host closed the connection]
<CorySimmons>
I'm actually working on a Sass2Stylus converter
<shevy>
that is a nice commit though, I like the title
<CorySimmons>
But I want to cover old and new versions of Sass
<shevy>
" Don't use Class vars. "
<CorySimmons>
rofl
<CorySimmons>
Dat irony
havenwood has joined #ruby
afreidah4 has joined #ruby
<Y3K>
I like SASS quite enough, but I don't like Ruby too much (sorry! No hate)
shaunbak_ has joined #ruby
<Y3K>
I'd love to have SASS built on Node.js ie
<shevy>
I let ruby autogenerate all css I ever need anyway
mjs2600 has joined #ruby
<Y3K>
shevy: Ruby itself? Or a Gem?
<shevy>
Y3K well some scripts
afreidah3 has quit [Ping timeout: 240 seconds]
<Y3K>
Interesting.
CaptainJet has joined #ruby
<shevy>
they are spread all over my filesystem though :\
charliesome has joined #ruby
Vivekananda has quit [Quit: Ex-Chat]
<Y3K>
jhass: SASS 3.3 installed, thanks for your help. I do appreciate it!
stef_204 has joined #ruby
senayar has quit [Ping timeout: 252 seconds]
<CorySimmons>
Y3K: Sass is on node
<CorySimmons>
node-sass
<CorySimmons>
built from libsass
bigkevmcd has quit [Ping timeout: 252 seconds]
bogeyd6 has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
<shevy>
CorySimmons are you using rails or something in addition?
<Y3K>
CorySimmons: I remembered checking that before, there was something... Can't remember what, that make me skip it.
hornairs_ has joined #ruby
<Y3K>
But I'll check it again for sure, thanks for the heads up.
havenwood has quit [Ping timeout: 244 seconds]
shaunbaker has quit [Ping timeout: 264 seconds]
toastynerd has joined #ruby
Mongey has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
<RubyPanther>
I try hard to hate SASS, I just wish CSS was slightly better so I could manage it
<Y3K>
RubyPanther: I used to use vanilla CSS always until about... 2 months ago. I never complaint, but when I used a pre-processor I knew it was the right stuff :P
<etqqkoiflwhb>
Y3K: If not Ruby, whats your goto language?
sepp2k has joined #ruby
charliesome has quit [Ping timeout: 268 seconds]
maximski has quit [Remote host closed the connection]
<Y3K>
etqqkoiflwhb: Mostly Python (yes, Django lover here) and JavaScript (or actually Coffee, Meteor.js and Node.js)
hornairs has quit [Ping timeout: 241 seconds]
bigkevmcd has joined #ruby
tripwired has quit []
phantomtiger has joined #ruby
jjbohn|afk has quit [Read error: Connection reset by peer]
<RubyPanther>
I prefer to just use erb to integrate, but then I just can't manage to claim it is a better way ;)
<AlexRussia>
Hi! Who here used TeX and why you use him?
<shevy>
Y3K what do you like about django most?
<AlexRussia>
RubyPanther: shevy hi bros!
<RubyPanther>
AlexRussia: I used TeX to stand in Knuth's shadow
razibog has quit [Quit: Leaving.]
<AlexRussia>
RubyPanther: lol, you death in shadow?hihihihi
* AlexRussia
in process intall lyx
<Y3K>
shevy: _almost_ everything... Fast as hell (which is the main reason I don't like Ruby, I reckon I haven't played with it too much yet and most of its gems are really usable, but I've read many complaints about it's speed).
<AlexRussia>
install*
Speed has left #ruby ["WeeChat 0.4.3"]
<Y3K>
Also secure, easy, clear, robust, etc.
<Y3K>
Not perfect neither, but definetely one of the best Frameworks I've work with.
<AlexRussia>
also, some time ago i try haskell......ruby some like haskell......just don't compile XD
adefa has quit [Quit: Lost terminal]
<centrx>
Y3K, I doubt it is significantly faster than Ruby any more
<etqqkoiflwhb>
Y3K: Fast as in, fast startup time?
<RubyPanther>
AlexRussia: More seriously, I use TeX when I want to automate generation of printable documents, but I want to be able to make minor changes without regenerating
zcreative has joined #ruby
yeticry has joined #ruby
<RubyPanther>
For most people ruby+pdf is probably a better choice
<Y3K>
centrx, etqqkoiflwhb: I reckong I haven't take the time to really test myself, but I've mostly heard about HIGH consume of resources, in case of SASS the process speed and I've tested gem install and it's plain slow.
ouie has quit [Ping timeout: 240 seconds]
lachesis has joined #ruby
<shevy>
hmm gem can be slow when installing documentation
<AlexRussia>
RubyPanther: but possible convert TeX to PDF, i sound.....
CorySimmons has quit [Quit: Zzz...]
shinobi_one has joined #ruby
<centrx>
Y3K, Gem is only slow at generating documentation
CorySimmons has joined #ruby
<Y3K>
I'm an ignorant about Ruby, so I'm sure my "complaints" are probably very bad :)
npearson has joined #ruby
<Y3K>
As I said, no hate (at all)
<AlexRussia>
RubyPanther: anyway, lyx possible
<RubyPanther>
AlexRussia: Sure but since TeX is a special purpose programming language, IMO there should be a real reason to bother with it
<Y3K>
Ok, I gotta go.
acrussell has quit [Quit: Leaving.]
<Y3K>
Thanks for your help guys, this' a very comfortable community indeed.
<RubyPanther>
If you're just converting, then there is no advantage to having a full programming language in the document, for example, it is better to convert to PDF than to PS because they will both print the same, assuming you have PS support
nomenkun has joined #ruby
havenwood has joined #ruby
<AlexRussia>
RubyPanther: i want web face for it!
bthesorceror has quit [Remote host closed the connection]
<RubyPanther>
web face? x.X
ktosiek has joined #ruby
<AlexRussia>
RubyPanther: cause i get some crazy situation, when i'm impossible using some program for conver tex ot lyx to some formats
npearson has quit [Remote host closed the connection]
npearson has joined #ruby
<RubyPanther>
AlexRussia: If you work in academia, then LyX/TeX is probably a good choice
<RubyPanther>
Well, then you'll probably get stuck using all the formats possible at some point ;)
<centrx>
AlexRussia, Tex is best for typesetting
toastynerd has quit [Remote host closed the connection]
<AlexRussia>
centrx: Hi man
monkegjinni has quit [Remote host closed the connection]
mforrester has quit [Read error: Operation timed out]
toastynerd has joined #ruby
monkegjinni has joined #ruby
<AlexRussia>
RubyPanther: wut?
nomenkun has quit [Ping timeout: 240 seconds]
<RubyPanther>
All the advantages of TeX are when you're writing the source by hand. Using a GUI tool, it doesn't matter what format you use except that you can print it and exchange it with the people you need to exchange with
<AlexRussia>
RubyPanther: i think, tex is good for write some math!
<shevy>
hmmm
<RubyPanther>
In the old days where all the good tools were commercial, TeX had a serious use case as the free option that could actually do accurate typesetting ;)
<shevy>
__method__ only returns a symbol right?
garbagecollectio has quit [Quit: garbagecollectio]
jaimef has joined #ruby
jackneill has quit [Remote host closed the connection]
<AlexRussia>
RubyPanther: also, TeX is maybe first open software
<AlexRussia>
\rmy friend reply me, say, TeX is best over 40 last years!
<RubyPanther>
*gasp*
toastynerd has quit [Remote host closed the connection]
<shevy>
hmm hmm hmm
<centrx>
RubyPanther, What are you proposing as an alternative to tex?
<certainty>
shevy: what do you want?
<shevy>
certainty dunno yet, just debugging something right now
hyperboreean has quit [Ping timeout: 264 seconds]
<certainty>
ah i see
cescalante is now known as ce_afk
Voodoofish430 has quit [Ping timeout: 240 seconds]
ce_afk is now known as cescalante
<RubyPanther>
centrx: general purpose language -> PDF
boboc has joined #ruby
<etqqkoiflwhb>
is there an irc channel for rails?
<shevy>
etqqkoiflwhb #RubyOnRails
yfeldblum has joined #ruby
m8 has quit [Quit: Sto andando via]
<etqqkoiflwhb>
shevy: can;t connect, says invite only
<shevy>
etqqkoiflwhb yeah, you must register at freenode before you can join
<RubyPanther>
or, whatever the format of the GUI tool is because as a GUI tool user it doesn't matter, you're using it as if it was markup
monkegjinni has quit [Ping timeout: 240 seconds]
<shevy>
wakus-on is spamming :(
Czupa has quit [Remote host closed the connection]
jprovazn is now known as jprovazn_afk
CorySimmons has quit [Quit: Zzz...]
<centrx>
RubyPanther, Does your "general purpose programming language" handle spacing, hyphenation, and justification?
sparrovv has joined #ruby
Macaveli has joined #ruby
<RubyPanther>
shevy: /ignore *@90.174.0.140 ALL
<shevy>
hmm is that him?
<RubyPanther>
centrx: + PDF
klue has joined #ruby
weaksauce has joined #ruby
<centrx>
RubyPanther, Where can I find a reference for the PDF language?
Vovko has joined #ruby
saarinen has joined #ruby
nanoyak has joined #ruby
<art-solopov>
centrx: If you need PDF specs, they're here: pdf.editme.com/PDFREF
<RubyPanther>
centrx: I would use the reference for the generator instead
lw has quit [Quit: s]
sdouglas has quit [Remote host closed the connection]
<centrx>
art-solopov, Downloading these files from Adobe doesn't seem to be working
<RubyPanther>
If your use case makes it truly worth learning a full language just for document layout, then TeX is the obvious winner. I'm just saying it is niche knowledge few people need, including people who generate documents that have to print accurately
<centrx>
RubyPanther, What is the generator?
morenoh149 has joined #ruby
<centrx>
RubyPanther, You don't need to learn the full language for tex to be useful
<centrx>
RubyPanther, It is pretty simple markup
<RubyPanther>
centrx: There are pdf generators in all the modern languages, because that is what is used for printable business documents
<RubyPanther>
TeX is not markup, it is a complete programming language
<centrx>
Which you don't need to know to make use of it to create documents
<art-solopov>
RubyPanther: Markup covers 80% of use cases.
<RubyPanther>
art-solopov: I'd give a much much larger fake statistic :) :)
cescalante is now known as ce_afk
whatasunnyday has quit [Quit: whatasunnyday]
afex has joined #ruby
<jonnyro>
I am using ActiveResource to pull down data from a REST service. I would like to cache my retrieved results so that I do not have to re-request the same data across program runs. Any tips on how i should marshall/store the data?
Shidash has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
chrisja has quit [Quit: leaving]
<art-solopov>
RubyPanther: Well, I didn't really have to learn programming parts of LaTeX until guys at the uni started giving out some weird requirements. And then again, I just learned a couple commands to reset counters and such.
kennym has joined #ruby
boboc has quit [Remote host closed the connection]
boboc has joined #ruby
agent_white has joined #ruby
ktosiek_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<agent_white>
Afternoon folks
shinobi_one has joined #ruby
hornairs_ has quit [Remote host closed the connection]
<Soulcutter>
jonnyro: pick a cache key naming scheme that works for your resource, then store the response body as a string (assuming you only care about the response body and it IS a string)
wgosling has joined #ruby
hornairs has joined #ruby
maasha has quit [Quit: Page closed]
sdouglas has joined #ruby
sambao21 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Solnse has joined #ruby
shinobi_one has quit [Client Quit]
ktosiek has quit [Ping timeout: 265 seconds]
timonv has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
etqqkoiflwhb has joined #ruby
toastynerd has joined #ruby
rickruby has quit [Remote host closed the connection]
axl_ has joined #ruby
pu22l3r_ has joined #ruby
fxkr has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
juarlex has quit [Remote host closed the connection]
francisfish has joined #ruby
afreidah has joined #ruby
RaCx has joined #ruby
Squarepy has quit [Ping timeout: 264 seconds]
sdouglas has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 265 seconds]
alvaro_o has joined #ruby
afreidah4 has quit [Ping timeout: 245 seconds]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
etqqkoiflwhb has quit [Ping timeout: 265 seconds]
tylersmith has joined #ruby
klaut has quit [Remote host closed the connection]
freezey has joined #ruby
shevy has joined #ruby
npearson has quit [Remote host closed the connection]
randomnick_ has joined #ruby
kirun has quit [Quit: Client exiting]
magicrails has joined #ruby
<magicrails>
is there a way to have a global setter or getter method in ruby
<magicrails>
that affects all classes
centrx has quit [Quit: All this computer hacking is making me thirsty]
hfp is now known as hfp`away
<fxkr>
hi! im on Ruby 2.1.0. i try to run "gem install", but it gets stuck in an endless loop of connection attempts. deleting ~/.gem didnt help. "--debug" output here: http://fxkr.net/rubyproblem.txt -- any ideas?
hobodave has quit [Ping timeout: 240 seconds]
<magicrails>
I am trying, in Ruby, to override a default accessor method for a standard object. I basically want to funnel all getters through a common super method, without having direct control of any of the defined attributes(in derived classes and such).
<shevy>
magicrails well, what will you do if the class in question does not have a setter defined?
timonv has joined #ruby
kaldrenon has joined #ruby
hornairs has quit [Quit: hornairs]
<shevy>
magicrails you can iterate over all objects in ObjectSpace, and collect all classes into an array, then iterate over them all and try to modify them on the fly
<magicrails>
The problem I am trying to solve - a callers class may or may not have an attribute defined that they expect to be present (due to versioning, serialization etc). I want the system to be smart enough to detect this and react without having to refresh its class definition every time...or crash
agent_white has quit [Quit: brb]
end_guy has quit [Remote host closed the connection]
geekbri has quit []
Xeago has quit [Remote host closed the connection]
Jetchisel has joined #ruby
centrx has joined #ruby
<magicrails>
would that be a performant way of doing?
mikecmpbll has quit [Quit: i've nodded off.]
vlad_starkov has joined #ruby
<centrx>
magicrails, Why would you do that?
<magicrails>
i dont know
<magicrails>
why not
Xeago has joined #ruby
baroquebobcat has quit [Ping timeout: 264 seconds]
<magicrails>
does the obejctspace method work?
hfp`away is now known as hfp
<magicrails>
shevy: do u still have to refresh the class definition in that case
jaimef has quit [Excess Flood]
Spami has quit [Quit: This computer has gone to sleep]
Slavox is now known as Slavox|AFK
Xeago has quit [Remote host closed the connection]
<magicrails>
??
<magicrails>
??
<magicrails>
shevy: what would be code to do this
deadlock_ has joined #ruby
sambao21 has joined #ruby
gener1c has quit [Remote host closed the connection]
jprovazn_afk is now known as jprovazn
shinobi_one has joined #ruby
Slavox|AFK is now known as Slavox
rococo has joined #ruby
chrisseaton has joined #ruby
npearson has joined #ruby
jaimef has joined #ruby
wakus-on has quit [K-Lined]
magladroth has joined #ruby
pfg has joined #ruby
magladroth has left #ruby [#ruby]
charliesome has joined #ruby
workmad3 has quit [Read error: Operation timed out]
Zaratustra has joined #ruby
Vovko has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
RaCx has quit [Quit: Computer has gone to sleep.]
timonv has quit [Remote host closed the connection]
quatron has joined #ruby
<magicrails>
Lets assume, for argument sake (and because its currently the case) that I don't have access to the *modified* class definitions at run-time, only on creation/save time.
__greg has joined #ruby
zachallett has quit [Remote host closed the connection]
jkamenik1 has quit [Quit: Leaving.]
ScalaClient has quit [Ping timeout: 244 seconds]
sambao21 has joined #ruby
james_d_h has quit [Ping timeout: 240 seconds]
SHyx0rmZ has joined #ruby
charliesome has quit [Ping timeout: 265 seconds]
Gadgetoid has quit [Read error: Operation timed out]
<magicrails>
how do i do it on creation/save time?
aryaching has quit [Ping timeout: 252 seconds]
<magicrails>
when a class is being "created" vs "at run time"
axsuul has quit [Ping timeout: 240 seconds]
jonnyro has quit [Quit: Lost terminal]
senayar has joined #ruby
lw has joined #ruby
flowerhack has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 252 seconds]
nari has quit [Read error: Operation timed out]
Squarepy has joined #ruby
tonni has joined #ruby
shevy has joined #ruby
sailias has quit [Ping timeout: 240 seconds]
grzywacz has joined #ruby
RaCx has joined #ruby
Gadgetoid has joined #ruby
phantasm66 has quit [Quit: *sleeeep….]
rickruby has joined #ruby
danshultz has quit [Remote host closed the connection]
terrellt has left #ruby [#ruby]
danshultz has joined #ruby
shevy has quit [Ping timeout: 244 seconds]
mehlah has joined #ruby
hobodave has joined #ruby
mary5030 has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
mary5030 has joined #ruby
paulfm has quit []
art-solopov has quit [Quit: Konversation terminated!]
Spami has joined #ruby
Vovko has joined #ruby
agent_white has joined #ruby
danshultz has quit [Ping timeout: 240 seconds]
rudisimo has quit []
dblessing has quit [Quit: dblessing]
mforrester has joined #ruby
mikecmpbll has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
CorySimmons has joined #ruby
noober3 has quit [Quit: IceChat - Keeping PC's cool since 2000]
<shinobi_one>
BeingUntoDeath: are you talking about iron ruby?
rayners has quit [Remote host closed the connection]
ce_afk is now known as cescalante
dkamioka has quit [Read error: Connection reset by peer]
dkamioka has joined #ruby
Fyyr13_ has joined #ruby
cescalante is now known as ce_afk
shadoi1 has quit [Quit: Leaving.]
armyriad has joined #ruby
CorySimmons has joined #ruby
<BeingUntoDeath>
I suppose I am! Not sure. New to this. Thank you. :)
ScalaClient has joined #ruby
chipotle has quit [Quit: cya]
<magicrails>
I am trying, in Ruby, to override a default accessor method for a standard object. I basically want to funnel all getters through a common super method, without having direct control of any of the defined attributes(in derived classes and such).
<magicrails>
do i use method missing to do this
klue has quit [Ping timeout: 244 seconds]
<bnagy>
you can't, if I understand you correctly
<bnagy>
method_missing is for when a method is missing
Fyyr13_ has quit [Ping timeout: 240 seconds]
<magicrails>
bnagy: as opposed to what
<soahccc>
magicrails: what do you mean by standard object? ruby core object?
<bnagy>
well if something has a method defined then it's defined, ergo not missing
<bnagy>
you could try a simple wrapper class with a method missing dispatcher to the real thing
Mongey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bnagy>
class Wrapper;def initialize; @real = Blah.new; end; def method_missing meth, *args; # do stuff
CorySimmons has quit [Ping timeout: 252 seconds]
shevy has joined #ruby
zcreative has joined #ruby
shadoi1 has joined #ruby
fxkr has left #ruby [#ruby]
<magicrails>
The problem I am trying to solve - a callers class may or may not have an attribute defined that they expect to be present (due to versioning, serialization etc). I want the system to be smart enough to detect this and react without having to refresh its class definition every time...or crash
<bnagy>
yeah I read it in scrollback, but I can't parse it
charliesome has joined #ruby
<magicrails>
lol
tvw has joined #ruby
lw has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Jetchisel has joined #ruby
monkegjinni has joined #ruby
lw has quit [Client Quit]
jkamenik has joined #ruby
it_tard has quit [Quit: yawn]
mary5030 has quit [Ping timeout: 244 seconds]
<Soulcutter>
magicrails: I think you should rethink this approach. There's got to be a better way
not_a_guest has joined #ruby
sski has quit [Remote host closed the connection]
jaimef has quit [Excess Flood]
sski has joined #ruby
postmodern has joined #ruby
jprovazn has quit [Quit: Odcházím]
Steve445 has quit [Quit: Steve445]
away_ has joined #ruby
vlad_starkov has joined #ruby
juarlex has joined #ruby
jkamenik has quit [Ping timeout: 240 seconds]
CorySimmons has joined #ruby
magicrails has quit [Quit: magicrails]
jaxxstorm has left #ruby [#ruby]
magicrails has joined #ruby
CorySimmons has quit [Client Quit]
shevy has quit [Ping timeout: 265 seconds]
jaimef has joined #ruby
sski has quit [Ping timeout: 265 seconds]
DaniG2k has joined #ruby
Squarepy has quit [Ping timeout: 240 seconds]
shevy has joined #ruby
afex has quit [Ping timeout: 240 seconds]
axl_ has joined #ruby
vlad_starkov has quit [Ping timeout: 265 seconds]
weie has joined #ruby
axl_ has quit [Client Quit]
shevy has quit [Ping timeout: 240 seconds]
away_ has quit [Read error: Connection reset by peer]
enebo has quit [Quit: enebo]
sdouglas has joined #ruby
Xeago has joined #ruby
mark_locklear has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
mikepack_ has quit [Remote host closed the connection]
mikepack has joined #ruby
duggiefresh has joined #ruby
klue has joined #ruby
sdouglas has quit [Ping timeout: 252 seconds]
BeingUntoDeath has quit [Ping timeout: 252 seconds]
agent_white has joined #ruby
sambao21 has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
<slash_nick>
a better way, ahhh yeeeeah
<centrx>
What's going on
tils has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
magicrails has quit [Quit: magicrails]
<slash_nick>
centrx: i'm a baller, i'm a twenty inch crawler, blades on impala... etc
Sawbones has joined #ruby
CorySimmons has joined #ruby
CorySimmons has quit [Max SendQ exceeded]
maroloccio2 has quit [Quit: WeeChat 0.4.3]
afex has joined #ruby
CorySimmons has joined #ruby
freerobby has quit [Quit: Leaving.]
crystal77 has quit [Quit: Computer has gone to sleep.]
mikepack has quit [Remote host closed the connection]
blandflakes has quit [Quit: Page closed]
danshultz has joined #ruby
CorySimmons has quit [Client Quit]
michaeldeol has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
slowcon has quit []
magicrails has joined #ruby
shevy has joined #ruby
Gadgetoid has quit [Read error: Operation timed out]
francisfish has quit [Remote host closed the connection]
phansch has quit [Quit: WeeChat 0.4.2]
havenwood has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
einarj has joined #ruby
havenwood has joined #ruby
Al__ has joined #ruby
sputnik13 has quit [Ping timeout: 265 seconds]
<shinobi_one>
slash_nick: did you butcher that on purpose?
Naoe-Kanno has joined #ruby
SHyx0rmZ has quit [Ping timeout: 269 seconds]
Celm has quit [Remote host closed the connection]
jamto11 has quit []
jpierre03 has quit [Ping timeout: 265 seconds]
bluOxigen has quit [Ping timeout: 240 seconds]
irc_gulliver has joined #ruby
thesheff17_ has quit [Quit: Leaving]
PhilK_ is now known as PhilK
toastynerd has joined #ruby
zz_jrhorn424 is now known as jrhorn424
irc_gulliver has left #ruby [#ruby]
Al__ has quit [Read error: Connection reset by peer]
nanoyak has quit [Ping timeout: 265 seconds]
havenwood has quit [Ping timeout: 240 seconds]
klue has quit [Ping timeout: 244 seconds]
morenoh149 has left #ruby [#ruby]
Al__ has joined #ruby
stringoO has quit [Quit: stringoO]
Celm has joined #ruby
Umschwung has quit []
zachallett has joined #ruby
tstrokes has quit [Quit: Bye]
Tamae has joined #ruby
nanoyak has joined #ruby
klaut has joined #ruby
magoo_ has quit [Ping timeout: 240 seconds]
bogeyd6 has quit [Ping timeout: 240 seconds]
meatherly has quit [Remote host closed the connection]
magoo_ has joined #ruby
claymore has quit [Quit: Leaving]
alexju_ has quit [Remote host closed the connection]
erikruthven has joined #ruby
meatherly has joined #ruby
<slash_nick>
shinobi_one: i doubt it
james_d_h has joined #ruby
<ceej>
what is the best way to do a select on an array but keep the index?
whomp has joined #ruby
<slash_nick>
hmm... convert it to a hash of index/value pairs and select the values you want
oneawayman has joined #ruby
nisstyre has joined #ruby
lw has joined #ruby
danshultz has quit [Remote host closed the connection]
<ceej>
slash_nick: that's what I was thinking....
godd2 has joined #ruby
magoo has joined #ruby
danshultz has joined #ruby
<slash_nick>
ceej: seems intuitive then
<godd2>
Is it code smell to expect a block to return a particular type?
Macaveli has quit [Ping timeout: 252 seconds]
<ceej>
slash_nick: thanks, I just wanted to make sure there wasn't a ruby method for this I was missing
<slash_nick>
ceej: nothing jumps to mind
sambao21 has quit [Quit: Computer has gone to sleep.]
magoo_ has quit [Ping timeout: 240 seconds]
shadoi1 has quit [Quit: Leaving.]
<shinobi_one>
slash_nick: haha ok
meatherly has quit [Ping timeout: 264 seconds]
pwh has quit []
<shinobi_one>
slash_nick: wasn't sure if i was missing something or not
FenixFyreX has joined #ruby
rococo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<slash_nick>
shinobi_one: i just passed along what google gave me ;)
<FenixFyreX>
Hello, can anyone help me with building the ruby glfw3 gem? I have gotten pkg-config and cmake and mingw installed on my pc, however when the cmake is run it says it cannot find the package 'glfw3'..I' assuming this is a *.pc file, however I'm not sure where pkg-config looks at on Windows..
whatasunnyday has joined #ruby
kllyy has joined #ruby
Vovko has joined #ruby
lmickh has joined #ruby
jeregrine has joined #ruby
duggiefresh has quit [Remote host closed the connection]
<bnagy>
FenixFyreX: me neither, but if you have it installed with mingw or whatever, you should be able to run it with --debug or whatever?
<bnagy>
otherwise it should respect the env variable? I guess?
chris_thomson has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<bnagy>
like there's a PKGCONFIG_PATH env var or something
Salve_ has quit [Remote host closed the connection]
Salve has joined #ruby
Elico has quit [Read error: Connection reset by peer]
klue has joined #ruby
<FenixFyreX>
bnagy: Yeah, PKG_CONFIG_PATH
sambao21 has joined #ruby
<FenixFyreX>
I need to know how to modify it
Vovko has quit [Ping timeout: 252 seconds]
<FenixFyreX>
or read it?
aspires has quit [Read error: Connection reset by peer]
aspires has joined #ruby
hermanmunster has joined #ruby
diegovio1 has joined #ruby
SCommette has quit [Quit: SCommette]
jimmyy has joined #ruby
relix has joined #ruby
jimmyy has quit [Max SendQ exceeded]
monkegjinni has quit [Read error: Connection reset by peer]
relix has quit [Client Quit]
<tfittsy>
I'm trying to test if a string matches a regexp. using rubular I have this expression that works ^\d{1}[A-Z]-\d{2}-\d{2}-\d{2}$ but if I do valid = Regexp.new("^\d{1}[A-Z]-\d{2}-\d{2}-\d{2}$").freeze '1A-27-03-01'.match valid I get nil
Notte has quit [Remote host closed the connection]
jimmyy has joined #ruby
oracal has quit [Quit: Leaving]
monkegjinni has joined #ruby
sailias has joined #ruby
jimmyy has quit [Max SendQ exceeded]
spider-mario has quit [Remote host closed the connection]
<apeiros>
tfittsy: you should use regex literals
saarinen has quit [Quit: saarinen]
<apeiros>
by using a string, your escaping is wrong
agarie has quit [Remote host closed the connection]
Salve has quit [Ping timeout: 252 seconds]
jimmyy has joined #ruby
<apeiros>
also freezing a regex is pointless
yfeldblum has quit [Read error: Connection reset by peer]
Al__ has quit [Quit: Al__]
<tfittsy>
I just copied that from a benchmark, but thanks.
jimmyy has quit [Max SendQ exceeded]
magoo has joined #ruby
npearson has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
<apeiros>
tfittsy: well, I hope you understood what I said, and don't just copy & paste…
kllyy has left #ruby [#ruby]
kllyy has joined #ruby
zachallett has quit [Remote host closed the connection]
jimmyy has joined #ruby
kllyy has left #ruby [#ruby]
monkegjinni has quit [Ping timeout: 244 seconds]
jimmyy has quit [Max SendQ exceeded]
<tfittsy>
apeiros: sorry, interrupted. I'll make sure I get it in just a minute and let you know if I have any questions
kllyy has joined #ruby
Avahey_ has joined #ruby
teenwolf has joined #ruby
jobewan has quit [Quit: Leaving]
jimmyy has joined #ruby
freezey has joined #ruby
jimmyy has quit [Max SendQ exceeded]
yfeldblum has joined #ruby
sethen has quit [Ping timeout: 240 seconds]
jimmyy has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
<bnagy>
FenixFyreX: env vars are in the computer right click properties thing somewhere I think
DaniG2k has quit [Quit: leaving]
rlb3 has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 252 seconds]
Shidash has quit [Read error: Connection reset by peer]
geggam has quit [Remote host closed the connection]
kllyy has quit []
klue has quit [Ping timeout: 264 seconds]
timonv has quit [Ping timeout: 265 seconds]
shevy has joined #ruby
Shidash has joined #ruby
jpierre03 has joined #ruby
sailias has quit [Quit: Leaving.]
__greg has quit []
pwh has joined #ruby
FenixFyreX has quit [Quit: Page closed]
sailias has joined #ruby
tjr9898 has quit [Remote host closed the connection]
pawprint has joined #ruby
<pawprint>
when using ERB, do i need whitespace withing <%= foo %>
iliketurtles has quit [Quit: zzzzz…..]
<pawprint>
or can i just use <%=foo%>
james_d_h has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
<apeiros>
seems to work fine without whitespace
benzrf has joined #ruby
<benzrf>
hey yall
polydius has joined #ruby
<apeiros>
pawprint: you could try that out yourself just the way I did - open up irb/pry and simply try.
<benzrf>
i finally understand delimited continuations
<benzrf>
(⊙ω⊙)
<fraterlaetus>
Hey guys,
shevy has quit [Ping timeout: 264 seconds]
cover has quit [Ping timeout: 244 seconds]
<tfittsy>
apeiros: sorry, still trying to understand. so should it be valid = Regexp.new(/^d{1}[A-Z]{1}-d{2}-d{2}-d{2}$/) without being in a string? that doesn't throw errors at me but it still doesn't show as a match.
<benzrf>
hey fraterlaetus
<benzrf>
jesus christ regexes
<benzrf>
;-;
<benzrf>
*regexen
<apeiros>
tfittsy: leave that Regexp.new away
<apeiros>
tfittsy: you don't do String.new("foobar") either
momigi has quit [Remote host closed the connection]
<fraterlaetus>
I'm still learning at this, so please be patient if I'm off the plot with regards to Ruby