fflush changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste > 3 lines of text on pastebin.com
savage-_ has joined #ruby
savage- has quit [Read error: Connection reset by peer]
<horofox>
sepp2k: like x = Class.new do
carrythezero has quit [Ping timeout: 246 seconds]
cantonic_ has joined #ruby
<horofox>
sepp2k: ?
<davidcelis>
x isn't a constant
<banisterfiend>
horofox: x isn't a constant..........
<horofox>
X
<davidcelis>
banisterfiend: i win
<horofox>
davidcelis: X
<banisterfiend>
davidcelis: i spent extra time typing the '.'s ;)
<horofox>
davidcelis: are u happy? lol
<davidcelis>
horofox: more than you could ever know
<sepp2k>
horofox: Yes. Or const_set if you're doing it inside a method.
carrythezero has joined #ruby
<sepp2k>
Ruby doesn't like assigning constants inside methods otherwise.
S2kx has joined #ruby
<rking>
banisterfiend: Please do not talk on #ruby when there are outstanding questions for you on #pry. KKthx.
cantonic has quit [Ping timeout: 272 seconds]
cantonic_ is now known as cantonic
S1kx has quit [Ping timeout: 252 seconds]
justsee has quit [Quit: Leaving...]
sailias has joined #ruby
ZachBeta has quit [Read error: Connection reset by peer]
ZachBeta has joined #ruby
jimeh2 has quit [Ping timeout: 248 seconds]
johnjohnson has quit [Ping timeout: 245 seconds]
kokainepizza has quit [Quit: My pooter is sleep.]
<shevy>
sepp2k hmmm... wonder why dynamic constant assignment is not possible via FOO = :bla ... but it is via const_set ...
billyoc has joined #ruby
<devnull_>
I have a very stupid question but I go anyway http://pastebin.com/QYteFb1t should be really simple but for some reasons I get it wrong :P
frogprince_mac has quit [Ping timeout: 246 seconds]
<rking>
devnull_: Try: drbanner["_rev"]
johnjohnson has joined #ruby
<devnull_>
rking: yay :D
h4mz1d has joined #ruby
<devnull_>
rking: thanks a lot !!
<rking>
devnull_: The {…blah…} thingy is a Hash object, and you can dereference it using [key]. In this case your key is the String "_rev"
<devnull_>
rking: yes I should have tried it before..just tried before using json on it and that was the issue as before it was not a hash object ! thanks
Takehiro has joined #ruby
t83823 has quit [Remote host closed the connection]
xorgnak has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 240 seconds]
jarek has quit [Quit: jarek]
SCommette has quit [Quit: SCommette]
xorgnak has joined #ruby
Hanmac1 has joined #ruby
<horofox>
fowl: I know you can't marshal a anonymous class
<devnull_>
hi another n'00b questions thanks but would be a good deed and lot of good karma if you help :) http://pastebin.com/Vc5JbUDY
<horofox>
fowl: I want to make a anonymous class instance not be anonymous
Tiny has joined #ruby
xorgnak has quit [Remote host closed the connection]
Tiny has left #ruby [#ruby]
banisterfiend has joined #ruby
xorgnak has joined #ruby
<ryanf>
horofox: have you pasted the actual code you're trying that isn't working?
Hanmac has quit [Ping timeout: 264 seconds]
<horofox>
ryanf: i possibly have tried all combinations of const_get of all instances of objects of the whole universe
<horofox>
ryanf: the problem is complex, just pasting code isn't going to make a difference
<devnull_>
http://pastebin.com/Vc5JbUDY thanks again this is really easy is just that I need some help to get the right way to get that from the hash thanks again
franksort has joined #ruby
AndChat| has quit [Ping timeout: 252 seconds]
franksort has quit [Client Quit]
xorgnak has quit [Remote host closed the connection]
<ryanf>
horofox: yeah do like Kernel.const_set, it needs to be on a module
<ryanf>
horofox: hadn't realized that
<devnull_>
horofox: I don't want to transfor it to integer..I just want the value that is there e.g. "value"=>{"_id"=>"editdummy@hulk.li" I want the id that's all :)
banisterfiend has quit [Remote host closed the connection]
<horofox>
ryanf: Class.const_set 'BlahBlahBlah', @instance like this?
<devnull_>
horofox: or the rev or anything inside that hash without converting it to anything
<ryanf>
horofox: you don't want to do anything with the instance
<ryanf>
the instance is an instance. you care about the classes
<devnull_>
horofox: thanks again if you have a flattr account or amazon wishlist let me know :) once I fix this I am done for the day :)
Dreamer3 has quit [Ping timeout: 240 seconds]
<ryanf>
so, that, but with @class and @uploader instead
<ryanf>
(as two separate lines)
Dreamer3 has joined #ruby
jonathanwallace has joined #ruby
<CannedCorn>
does rubygems only respect release candidate gems when they have ".rcx" at the end
<CannedCorn>
i'd like to omit the dot
mztriz has left #ruby [#ruby]
<horofox>
ryanf: the test is Class.const_set 'BlahBlahBlah', @class; Class.const_set 'BlahBlahBlahhh', @uploader; Marshal.dump(@instance).should_not raise TypeError
<horofox>
ryanf: right now, but it doesn't work
ZachBeta has quit [Quit: Computer has gone to sleep.]
<horofox>
devnull_: haha, relax... w8 i'm going to take a look
ZachBeta has joined #ruby
<ryanf>
horofox: hmm, are you sure it's still the same problem?
<ryanf>
could be another anonymous class buried somewhere
<horofox>
devnull_: oh sorry
<horofox>
devnull_: it's edit['rows'][0]['id']
<horofox>
devnull_: or edit['rows'][0]['value']['_id'] for the most nested one
jonathanwallace has quit [Read error: Connection reset by peer]
jonathanwallace has joined #ruby
<horofox>
ryanf: i can't even understand well what this method does, class_eval... and shit
<ryanf>
yeah this is uh
<ryanf>
pretty interesting code
<ryanf>
I mean, to really fix this I think you'd have to go through and generate a constant name for every single anonymous class that gets generated everywhere in the codebase
hipertracker has quit [Quit: hipertracker]
<devnull_>
horofox: wooooo the second worked woooo I was serious if you have a flattr or amazon list let me know :D
<ryanf>
and make sure that the names are deterministic enough that you can always get stuff back out of the session later
<ryanf>
I think doing all that just to support the antipattern of putting AR objects in the session is probably not worth it
uris has joined #ruby
<horofox>
devnull_: I'm going to create a flattr them ;-)
<devnull_>
horofox: please do I have anyway some money stuck there :X
<horofox>
ryanf: what if somebody wants to cache a object that has a image?
<horofox>
ryanf: memcached has to marshal the object
<horofox>
ryanf: so... somehow, i think the fix is needed
<ryanf>
horofox: hmm, that's a good point. is this really always a problem then?
<ryanf>
it seems crazy that carrierwave could be so popular if that problem happens consistently
<ryanf>
since people like to put stuff in caches sometimes
<horofox>
ryanf: when you try to cache a object with a scope or that has an anonymous class
<horofox>
ryanf: it does not get cached by rails.cache.fetch
<horofox>
ryanf: but it doesn't complain.
banisterfiend has joined #ruby
Banistergalaxy has quit [Ping timeout: 252 seconds]
<horofox>
ryanf: my latest job, people used rails.cache.fetch everywhere
mdelcx has quit [Quit: Lost terminal]
<horofox>
ryanf: and guess what, everything were scope
<horofox>
scoped*
<horofox>
ryanf: so, nothing were actually cached :DDDD
<horofox>
ryanf: but people were getting paid like it did.
xorgnak has quit [Read error: Connection reset by peer]
<horofox>
ryanf: so like, i run a script to see which memcached keys were actually getting cached, and it as just one that was like Category.all (so no scope)
pipopopo has quit [Ping timeout: 272 seconds]
<ryanf>
haha
pipopopo has joined #ruby
<ryanf>
that's weird. I don't think I've ever run into that situation
Hunner has joined #ruby
<Hunner>
Is there a way to take a string "==" and turn it into the actual operator?
<arubin>
Hunner: eval?
<horofox>
ryanf: this is actually funny, because I think most of people don't use memcached in rails right
<devnull_>
horofox: done
<devnull_>
horofox: yeah I think is a cool idea :P I really wanted to fix that thing so badly lol
<horofox>
devnull_: hehe :D
<devnull_>
horofox: you got it ?
Taichou has joined #ruby
pipopopo has quit [Ping timeout: 240 seconds]
<horofox>
devnull_: oh yea :D thanks a lot
<devnull_>
horofox: thank you :) really appreciated and I use flattr sometimes to say thank you like I know is not a lot but at least one can get a coffee or two hehe :)
<horofox>
devnull_: hehe this is awesome, i've never got a coffee helping somebody here
<Hunner>
arubin: I don't think so, since == is lexer not ... whatever is after the lexer
pipopopo has joined #ruby
<arubin>
Hunner: I meant that you could use eval on an expression containing the string.
<horofox>
ryanf: btw, if you have the time(as you look very good with metaprogramming), give some love to the issue i've sent you hehe :P
<devnull_>
horofox: yeah vampires :>
<rking>
horofox: Wait, what's the relationship of scopes to .cache?
<horofox>
rking: it had a scope with a lambda inside, it didn't get cached.
<rking>
Ahh
<horofox>
rking: and rails isn't whiny about it... so like... things seemed right.
hekin has joined #ruby
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
<horofox>
ryanf: i'm going to be a carrierwave maintainer and I've quit my job last week, so I'm trying my best to get to know better the codebase
radic has quit [Disconnected by services]
radic_ has joined #ruby
<Hunner>
arubin: eval("\'foo\' #{'=='} \'foo\'") # <-- ugly as sin
<horofox>
ryanf: but this mount_uploader seens way over my level and I don't know how to teach myself what it does and how.
radic_ is now known as radic
<rking>
horofox: How did you end up figuring it out? Just taking a closer look at the SQL queries?
<horofox>
rking: checked which keys were being cached running a memcached script
xorgnak has joined #ruby
<horofox>
rking: kept banging my head over it for like a week and got it
<horofox>
rking: one of the best stackoverflow answers ive ever seen, it was worth the 1 week stress
<horofox>
rking: the best rated
vitor-br has joined #ruby
Takehiro has joined #ruby
<ryanf>
horofox: honestly I don't think I'm likely to have the time necessary to dive into that anytime soon
<ryanf>
especially since I've never used carrierwave
<ryanf>
maybe ask one of the other maintainers to help you with it?
<horofox>
ryanf: i will probably do.
t16215 has quit [Remote host closed the connection]
jarred has quit [Quit: jarred]
<rking>
horofox: Dang, that "mu is too short" cat is impressive.
t52162 has joined #ruby
<horofox>
rking: nailed it
<rking>
I wonder what his interest in the problem was.
<horofox>
rking: I think it's about knowledge, he knew a lot about marshaling and thought in the first place about it... because memcached had to marshal the object.
<ryanf>
I'm not sure I agree with his conclusion actually
<ryanf>
I mean, caching a Relation like that is definitely the wrong thing
<ryanf>
because, among other things, it probably hasn't even run the query yet in the given example
<ryanf>
but calling .to_a first would make it reasonable, and I think a blanket rule against caching AR objects would be going too far
<ryanf>
(since calling .to_a will make it just an array of AR models)
Takehiro has quit [Ping timeout: 246 seconds]
M- has joined #ruby
ZachBeta has joined #ruby
manizzle has joined #ruby
mercwith1mouth has joined #ruby
<horofox>
ryanf: yea, i think you are right
Guedes has quit [Ping timeout: 244 seconds]
<horofox>
ryanf: but the way he tracked down the problem was awesome hehe.
gqlewis has joined #ruby
manizzle has quit [Ping timeout: 240 seconds]
davidcelis is now known as jessepinkman
jessepinkman is now known as davidcelis
manizzle has joined #ruby
deryl has quit [Quit: deryl]
berserkr has quit [Quit: Leaving.]
xorgnak has quit [Remote host closed the connection]
Tearan has quit [Quit: Sleepy Badger....]
xorgnak has joined #ruby
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
gqlewis has quit [Remote host closed the connection]
gqlewis has joined #ruby
c0rn_ has joined #ruby
noyb has joined #ruby
freeayu has quit [Ping timeout: 255 seconds]
manizzle has quit [Ping timeout: 244 seconds]
pvh has joined #ruby
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
CarlB_the_great has quit [Remote host closed the connection]
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
t52162 has quit [Remote host closed the connection]
freeayu has joined #ruby
t91601 has joined #ruby
wuwoot has joined #ruby
sonkei has joined #ruby
wuwoot has left #ruby [#ruby]
manizzle has joined #ruby
xorgnak has quit [Remote host closed the connection]
sonkei has quit [Client Quit]
xorgnak has joined #ruby
jasonkuhrt has quit [Quit: Leaving...]
seitensei has joined #ruby
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
justsee has quit [Quit: Leaving...]
banisterfiend has quit [Ping timeout: 244 seconds]
Cache_Money has quit [Quit: Leaving]
horofox has quit [Quit: horofox]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
noyb has quit [Ping timeout: 246 seconds]
AlbireoX has joined #ruby
xorgnak has quit [Remote host closed the connection]
Takehiro has joined #ruby
ananthakumaran has joined #ruby
ringotwo has joined #ruby
ringotwo has quit [Remote host closed the connection]
<al2o3cr>
-e:1:in `eval': No such file or directory - /dev/null (Errno::ENOENT), from (eval):1:in `<main>', from -e:1:in `eval', from -e:1:in `<main>'
<burgestrand>
:o
<fullofcaffeine>
>> require 'rails'
<al2o3cr>
-e:1:in `eval': cannot load such file -- rails (LoadError), from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require', from (eval):1:in `<main>', from -e:1:in `eval', from -e:1:in `<main>'
<fullofcaffeine>
wut? :D
khakimov has joined #ruby
<banisterfiend>
fullofcaffeine: that's not surprising..
<banisterfiend>
not everyone has rails installed
<banisterfiend>
maybe a shock to you ;)
rakl has quit [Quit: sleeping]
<fullofcaffeine>
But but.. It thought Ruby was a framework made on Rails
t22068 has quit [Remote host closed the connection]
<fullofcaffeine>
jk :)
<fullofcaffeine>
ok, time to go, good night : -)
AlbireoX has quit [Remote host closed the connection]
fullofcaffeine has quit [Remote host closed the connection]
kokainepizza has quit [Quit: My pooter is sleep.]
<fowl>
>> sleep while true
<reactormonk>
>> require 'stringio'
<al2o3cr>
(TrueClass) true
ananthakumaran1 has joined #ruby
tonini has joined #ruby
<Hanmac>
look
<Hanmac>
>> 1
<al2o3cr>
(Fixnum) 1
<Hanmac>
cool ... it seems that it can protect itself from the Fatal shit :P
<radic>
if I replace line 6 withe a = b[0,1] it works
<davidcelis>
b[0,1] != b[1,1]
<davidcelis>
you have i = 1
Rochefort has joined #ruby
matrixise has joined #ruby
<radic>
./ascii.rb:7:in `to_s': wrong number of arguments (1 for 0) (ArgumentError)
<radic>
from ./ascii.rb:7
diegoviola has joined #ruby
JohnDu has quit [Ping timeout: 246 seconds]
jprovazn has joined #ruby
<Mon_Ouie>
You're calling to_s on nil
<Mon_Ouie>
And NilClass#to_s doesn't expect any argument, unlike Integer#to_s which expects a base
shadoi has quit [Quit: Leaving.]
saschagehlich has joined #ruby
Takehiro has joined #ruby
<vectorshelve>
Mon_Ouie: hi man
<Mon_Ouie>
Though you'd only have a string if this is 1.8
<Mon_Ouie>
'alut
<Mon_Ouie>
an integer*
<radic>
Mon_Ouie: but if b[i,1] is nil it shouldn't execute the while-loop
<Mon_Ouie>
b[i, 1] isn't nil, it's an array
<Mon_Ouie>
An empty string, rather
Takehiro has quit [Read error: No route to host]
<radic>
Mon_Ouie: and b[0,1] is not a array?
Takehiro has joined #ruby
<Mon_Ouie>
No, they're both strings (it would kind of help if your code was using variable names that actually meant something)
timonv has quit [Remote host closed the connection]
JohnDu has joined #ruby
Takehiro has quit [Remote host closed the connection]
LouisGB has joined #ruby
dhruvasagar has joined #ruby
arkiver has joined #ruby
ryanf has quit [Quit: leaving]
chimay has joined #ruby
chimay has quit [Changing host]
chimay has joined #ruby
aristidesfl has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<radic>
a=b[i-1,1] is working
Takehiro has joined #ruby
jimeh2 has joined #ruby
bradhe has quit [Remote host closed the connection]
Rochefort has quit [Remote host closed the connection]
wobr has joined #ruby
Rochefort has joined #ruby
thone has quit [Read error: Operation timed out]
maletor has quit [Quit: Computer has gone to sleep.]
d3vic3 has quit [Quit: leaving]
chendo_ has quit [Ping timeout: 244 seconds]
thone has joined #ruby
<Mon_Ouie>
It would be simpler to just use an iteration method like each_char in 1.9; or at least iterate over the indices (e.g. string.size.times { … })
chendo_ has joined #ruby
qwerxy has quit [Quit: offski]
mneorr has joined #ruby
Moggle has joined #ruby
Taichou has quit [Remote host closed the connection]
<Moggle>
Anyone hanging around that knows anything about Google Talk and why xmpp4r wont work with it by chance?
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
dfdsfds has joined #ruby
nilg has joined #ruby
Taichou has joined #ruby
perun_ has quit [Ping timeout: 252 seconds]
cantonic has joined #ruby
dfdsfds has quit [Client Quit]
arkiver has left #ruby ["Leaving"]
g33k has joined #ruby
cezar has joined #ruby
g33k has left #ruby [#ruby]
Taichou has quit [Remote host closed the connection]
cezar has quit [Client Quit]
arkiver has joined #ruby
nim_ has quit [Ping timeout: 245 seconds]
diegoviola has quit [Ping timeout: 244 seconds]
vlad_starkov has joined #ruby
ttilley has joined #ruby
<Muz>
Moggle: in general, or with the code you're trying to write/run?
a_a_g has quit [Quit: Leaving.]
robustus has joined #ruby
josh^ has quit [Ping timeout: 272 seconds]
g33k has joined #ruby
g33k has left #ruby [#ruby]
M- has quit [Quit: This computer has gone to sleep]
xorgnak has quit [Ping timeout: 246 seconds]
jarred has quit [Quit: jarred]
elaptics`away is now known as elaptics
josh^ has joined #ruby
zigomir has quit [Remote host closed the connection]
g33k has joined #ruby
jimeh2 has quit [Ping timeout: 244 seconds]
jimeh2 has joined #ruby
eldariof has joined #ruby
zigomir has joined #ruby
g33k has quit [Client Quit]
arkiver has quit [Quit: Leaving]
yxhuvud has joined #ruby
nim_ has joined #ruby
troessner has joined #ruby
g33k has joined #ruby
eighty4 has quit [Excess Flood]
arkiver has joined #ruby
g33k has quit [Client Quit]
arkiver has quit [Read error: Connection reset by peer]
KevinSjoberg has joined #ruby
eighty4 has joined #ruby
jwbuurlage has joined #ruby
Mon_Ouie has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
<Moggle>
The issue is Jabber::Client.auth(password)
<damagednoob>
at the moment what i'm trying to do is get a working application running on xserve, running on linux
d3vic3 has joined #ruby
d3vic3 has quit [Client Quit]
ph^ has quit [Remote host closed the connection]
ph^ has joined #ruby
<Xeago>
also, require 'rubygems' before you require something else in irb
timonv has joined #ruby
<catphish>
irb -rubygems is a better approach these days
<banisterfiend>
Xeago: only if you're misfortunate enough to be stuck in 1.8 :)
<bluebie>
oh my god new deloreans are in production and they're aiming to bring out an electric version in 2013 :O
<bluebie>
If I were a millionaire...
mklappstuhl has joined #ruby
Advocation has quit [Quit: Advocation]
berserkr has joined #ruby
<JonnieCache>
i wonder if they'll last longer than a year without falling apart this time
<bluebie>
who cares!
<bluebie>
they're deloreans!
<JonnieCache>
theres supposedly only a couple of dozen of the originals that still drive
<JonnieCache>
but yeah if youre buying a delorean you probably dont care
chendo_ has quit [Ping timeout: 244 seconds]
<JohnDu>
I'm sorry.. I don't know what is delorean.
<JonnieCache>
the car from back to the future
<JohnDu>
oh! it means
<fowl>
yes, electric model time machines.
<fowl>
i wonder if there will be a charge-by-lightning-rod feature
tatsuya__ has joined #ruby
<JohnDu>
I hope there's a ruby socked outside that delorean.
<bluebie>
that'd be pretty cool
<JohnDu>
:-p
Vert has joined #ruby
chendo_ has joined #ruby
tatsuya_o has quit [Read error: Connection reset by peer]
<bluebie>
usb flash drives are so dodgy
<bluebie>
I've bought two different brands with identical circuit boards inside
<catphish>
depends how much you pay for them
<bluebie>
except one has a blue flashing LED and one has a red LED
charliesome has joined #ruby
<catphish>
cheap ones are terrible
<bluebie>
except the ones with the blue LED are inside opaque black cases, so you can't see the light at all anyway, so why the hell did they use the most expensive colour of LED?!
<JohnDu>
is blue LED the most expensive ?
<catphish>
i don't imagine they're stupid, they probably got some cheap LEDs
<bluebie>
it's cheaper than it was in the 90s, but they were traditionally one of the most expensive
<bluebie>
along with white
ephemerian has joined #ruby
Taichou has joined #ruby
<damagednoob>
Muz: yeah, :/
troessner_ has joined #ruby
<bluebie>
these are extremely cheap ones
<damagednoob>
it looks like it's a permissions issue
<JohnDu>
I'd like to use cloud storage services to save files there.
<bluebie>
imation brand
<damagednoob>
is it possible that the gem was packaged incorrectly?
hekin has joined #ruby
hekin has quit [Client Quit]
rakl has quit [Quit: sleeping]
tonini has quit [Remote host closed the connection]
pk1001100011 is now known as pskosinski
troessner has quit [Ping timeout: 268 seconds]
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
<JonnieCache>
blue is indeed the most expensive, its also the brightest and most annoying
Virunga has joined #ruby
<JonnieCache>
i fucking hate blue leds. half of the stuff on my desk at home has tape covering the blue leds
<JohnDu>
:p
<bluebie>
JonnieCache: So you're blue sensitive too :)
bradhe has joined #ruby
<banisterfiend>
lol
statarb3 has quit [Ping timeout: 246 seconds]
<JonnieCache>
didnt know there was such a thing as "blue sensitive" i think its just that blue LEDs are brighter and the human eye is generally very sensitive to the wavelength they put out
christor has joined #ruby
<JohnDu>
is your keyboard Numlock LED is blue too ?
<JonnieCache>
none of my keyboards have leds
<JohnDu>
that's great...
<bluebie>
Blue LEDs aren't generally any brighter, if anything blue is the least efficient colour of LED
<bluebie>
aside from White
christor is now known as rorororo
<bluebie>
if your blue LEDs are especially bright, it's either all your manifacturers for some reason like to use really bright ones, or you're blue sensitive
<JonnieCache>
the arduino channel will know, ill ask them...
<rorororo>
Hi, I got an error by doing : value = (Math.sqrt($1))*($2), I ve got String can't be coerced into Float?
nim__ has joined #ruby
<bluebie>
blue is the most efficient colour in regulation of melatonin and circadian rhythms, so people who're already sensitive to light disruptions of their sleep-wake cycle are usually especially sensitive to blue lights
<bluebie>
I found them extremely obnoxious to look at until I started taking some medicine which helped me sleep properly
<bluebie>
among other things
<JohnDu>
bluebie: you like to take some medicine to help you sleep ?
<bluebie>
among other things :)
<JonnieCache>
the thing is, i find them extremely irritating at all times, they hurt my brain to look at. not just when im trying to sleep
<JohnDu>
wow.
bradhe has quit [Ping timeout: 248 seconds]
<bluebie>
JonnieCache: yepyep
<bluebie>
JonnieCache: Do you use flux on your computers?
<JonnieCache>
hell yes. its amazing.
nim_ has quit [Ping timeout: 268 seconds]
<JonnieCache>
the arduino channel seems to think that superbright blue leds are simply more common
<JonnieCache>
you can get superbright ones in all colours, but for some reason the blue ones always tend to be superbright
<bluebie>
most likely that most people don't perceive blue well
<JohnDu>
more than the RED ones ?
<JonnieCache>
and apparently the eye is actually most sensitive to green light
<bluebie>
especially in to old age - we start out with few blue colour receptors and get less and less as we age
Rochefort has quit [Remote host closed the connection]
<JohnDu>
I think RED is sensitive than blue to human
rorororo has quit [Quit: leaving]
cascalheira has joined #ruby
chendo_ has quit [Ping timeout: 244 seconds]
<JonnieCache>
bluebie: what sleep medication are you taking if you dont mind me asking?
<JonnieCache>
i had some melatonin pills but they didnt really work
<Hanmac>
have you tryed honey + milk?
<fowl>
JonnieCache: try benadryl
arietis has joined #ruby
<JonnieCache>
fowl: lol. dipenhydramine. no thanks
<bluebie>
I used to take melatonin, I found when I bought it from one pharmacy it worked really well and from another it didn't work at all, so I think there was something dodgy going on there
<fowl>
JonnieCache: it works for me:)
freeayu has quit [Ping timeout: 244 seconds]
<bluebie>
currently I don't take anything which is primarily for sleep - I take lamotrigine for type two bipolar and that sorts out the sleep stuff as well - the sun is less glaring and blue lights aren't nearly as annoying or disruptive
<JonnieCache>
the best thing for sleep is lots of excercise during the day
<JonnieCache>
thats why hackers can never sleep :)
<bnagy>
I sleep fine, thx
<bnagy>
... depending on ceffeine intake, anyway :(
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
<bnagy>
dammit, THAT'S why I never have any spare memory for, like, where the hell are my shoes, or 'why did I come in here again?'
<matti>
bnagy: Yeah, sorry.
<fowl>
your memories have been garbage collected
<matti>
bnagy: We've had to cut corners here and there.
<matti>
;d
<JohnDu>
bnagy: i'm sorry too..
<matti>
bnagy: And don't look for your penis. We've replaced it with more universal interface.
<bluebie>
bnagy: and those moments where you suddenly feel like you've lost a moment and feel disoriented? that's the garbage collector interupting your chain of throught for a couple dozen milliseconds
<JonnieCache>
isnt the MRI garbage collector of the "stop-the-world" variety? he shouldnt be able to notice it...
<bnagy>
I'm gonna associate two memories with each other as strongly as I can
<bnagy>
and then forget them both
<matti>
Hehe
<bluebie>
JonnieCache: That's all well and good, but there's a world outside of ruby and that world keeps on computing while MRI is having a snooze
<bnagy>
... that might be the nerdiest joke I have made this week
<workmad3>
bnagy: you're slacking
<bluebie>
bnagy: and it wasn't even funny - congrats
<workmad3>
and don't forget about dropping down into 16bit THUMB instructions if you don't need 32bit processing :)
<JonnieCache>
and that board has hibernation mode for powersaving. its generally a LOT more advanced than the avr stuff
<bluebie>
avr's can hibernate down to 0.002ma generally
<bluebie>
iirc
<bluebie>
I've made some extremely low power avr stuff
<JonnieCache>
also that cpu goes up to 80mhz i dont know where you got 16mhz from
deryl has joined #ruby
<banisterfiend>
JonnieCache: you've done some ARM asm?
<banisterfiend>
JonnieCache: anything on github?
<JonnieCache>
did a little bit at university. it was more a case of studying the theoretical differences between x86 and arm than about writing code
<JonnieCache>
nothing online, no
<bluebie>
ah 80mhz is kinda cool :)
<bluebie>
neat :)
gianlucadv has joined #ruby
<JonnieCache>
anyway the point is, they $5 each XD
<bluebie>
$5 doesn't even begin to approach how much time investment would go in to learning new tools and libraries, sadly
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
<JonnieCache>
depends if you view that as fun or not
<banisterfiend>
JonnieCache: u got raspberry pi thingy?
<JonnieCache>
no. didnt order one when i had the chance. no idea why
<bluebie>
I have a pi downstairs torrenting stuff for me :)
<bluebie>
it works well
<JonnieCache>
ill probably get one of the second generation ones
<bluebie>
going to hook up some 433mhz radios which arrived today and see if I can have a ruby script control lights and doorbell and capture people's car remote control codes and stuff like that :D
<JonnieCache>
what form are these radios in?
<bluebie>
little tiny PCBs with a data line and antenna hookup
<bluebie>
they just do very low speed OOK
<bluebie>
kinda like infrared protocols on remotes and stuff like that
<bluebie>
I want to make a compressed version of IPv6 UDP run over the radios bridged through the raspberry pi so I can have little solar powered gadgets and buttons and things which interact with my LAN
resurew has joined #ruby
* fowl
imagines bluebie's room full of spinning gadgets and gizmos
fermion has joined #ruby
<bluebie>
that's not far from the truth o_o
<JonnieCache>
bluebie: a bit like those xbee things
<banisterfiend>
bluebie: are there many tech savy girl in your area?
<bluebie>
JonnieCache: kinda, but about one fifth the price and waaaay lower bandwidth
<banisterfiend>
girls*
<bluebie>
banisterfiend: maybe <_<
<bluebie>
why?
<bluebie>
are you thinking of moving here to get with the ladies?
<banisterfiend>
none that i know of in my area
<banisterfiend>
hehe no
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
<Xeago>
would this be proper english: "...\n This assignment forms the basis for/of my finals."
<JonnieCache>
its more the heinous chemicals coating the inside i was referring to
<JonnieCache>
but i guess you can get ones without that stuff cant you. silly me
<bluebie>
JonnieCache: Just get the clear type
<bluebie>
I don't think the clay they use inside is that bad anyway
<bluebie>
just stay away from anything fleuro-based
<bluebie>
those have mercury and phosphors and all sorts of horrible stuff in them!
vlad_starkov has quit [Remote host closed the connection]
<bluebie>
incandescent's the way to go :D
<JonnieCache>
i think we broke one and the stuff went everywhere and we freaked out about inhaling it
<bluebie>
I recently became friends with a glass blower though so I might not work with lightbulbs so much going forward
<bluebie>
rightfully so
<bluebie>
the correct response is to leave the building opening as many doors and windows as you can on the way out and give it a couple minutes
<JonnieCache>
yeah once in a shop i was working in, one of those long tube lights broke, and we all got sent home for the day.
<fowl>
are you sure you're not supposed to freak out and breathe in and out really fast?
<fowl>
i feel like that would ventilate the area better
<Xeago>
rofl
<workmad3>
fowl: yeah, it would certainly ventilate your lungs very well
<Xeago>
anyone that is more proficient in english than me who can assist me if the following sentence is proper english: "...\n This assignment forms the basis for/of my finals."
<JonnieCache>
either "of" or "for" would be fine
<JonnieCache>
of/for looks odd. pick one
<bluebie>
yep, I think 'of' works better than 'for' in this context
wallerdev has quit [Quit: wallerdev]
<bnagy>
for
<JonnieCache>
bluebie: your site is cool, except the captions in the gallery bit are being excessively truncated
<JonnieCache>
but im sure youre aware of that
<bluebie>
yeah
<bluebie>
I have better things to do than redesign that
<bnagy>
except it should be in future / conditional
<bnagy>
basis of a conclusion, basis for something that is going to happen
<bluebie>
bnaggytrue that. For is better
<Xeago>
for because of the futuristic'y of my finals?
<Xeago>
btw bluebie, love the ripple game
<bluebie>
the post-modern finals :D
<bluebie>
hehe thanks Xeago
<Xeago>
what is it made in?
<Xeago>
js it seems?
<bluebie>
I made an ipad version but I never released it because I made it in cocos2d and cocos2d is hellspawn
thunderstrike has joined #ruby
<bluebie>
yep, ripple is in regular javascript, with canvas and <audio> tags
<bluebie>
it never works reliably in any browser
<Xeago>
it works lovely in safari :O
<bluebie>
and works in different ones each time a new browser gets released
<bluebie>
that's nice to hear :)
<Xeago>
did you try on ipad, just using mobile safari?
<JonnieCache>
bluebie: what words differently? im guessing the audio. canvas is fairly stable now isnt it?
<bluebie>
audio for html5 games still sucks, if you aren't designing exclusively for chrome
<JonnieCache>
*works
<bluebie>
canvas is fine if you don't mind getting a framedrop or two every half a second or so due to the garbage collector _even if you made no mess at all_
<bluebie>
Xeago: Mobile safari doesn't support sound in the ways it would require
<JonnieCache>
bluebie: did you see the moog google logo?
<lolmaus>
Could you please suggest the most awesome paid Ruby and RoR courses?
<bluebie>
Xeago: Feel free to try running it in mobile safari to see what the performance is like, Mobile safari's canvas support is pretty bad also
<banisterfiend>
bluebie: can u link to the ripple game? :)
<Xeago>
it's a bit laggy on iPad retina simulator, but it works okay'ish, can't test for sound atm, am at work
<bluebie>
Xeago: The simulator is quite a bit faster than real hardware for this stuff
<banisterfiend>
thx
<matti>
banisterfiend: Hi hi
snearch has joined #ruby
<matti>
banisterfiend: ;] ;] ;] ;] ;] ;] ;] ;]
theRoUS has joined #ruby
theRoUS has joined #ruby
<bluebie>
I find in desktop safari on mac I have to click replay challenge once after each level loads because the timing is always wrong the first time it plays through :/
<bluebie>
I should have used flash
<matti>
Mac sux
<matti>
;d
<matti>
Go Linux!
<Xeago>
no flash
<Xeago>
hell no
<Xeago>
finally a fun addictive game that doesn't kill my cpu here!
adeponte has joined #ruby
<bluebie>
I knew that'd get your attention :P
<banisterfiend>
bluebie: cool
<bluebie>
except it does kill your cpu
<bluebie>
and it doesn't even work on computers that are more than a few years old
<Xeago>
not like flash games would
<banisterfiend>
bluebie: is that the game that won awards?
<bluebie>
banisterfiend: Nope
<banisterfiend>
it's pretty original
<Xeago>
it doesn't kill a core
<banisterfiend>
bluebie: can u like to that one?
<Xeago>
like flash games do
<bluebie>
… I could...
<bluebie>
but that one REALLY doesn't work properly
<Xeago>
in any case, bluebie you have it opensourced? can I hack away at a mobile version?
<bluebie>
it was more of an installation than a web game..
<fowl>
i wish i was a girl
<bluebie>
Xeago: uh…. I haven't
SeySayux has quit [Ping timeout: 244 seconds]
<fowl>
walk in irc and take all the attention
<bluebie>
fowl: I hear they have a thing for that these days
<fowl>
wear dresses, makeup :(
<bluebie>
I don't wear dresses or makeup o_o
<JonnieCache>
nothing stopping you wearing dresses and makeup man
<bluebie>
yeah
<bluebie>
goths do it
<JonnieCache>
and i think all the attention is more due to the portfolio of interesting work
<Xeago>
bluebie, hit me if you want to make it mobile
<Xeago>
also got private repositories on github if that's what you want
<fowl>
get invited to private repositories...
<bluebie>
Xeago: No mobile browsers have the sorts of audio apis ripple requires, so just forget about it for now
<Xeago>
I mean native version
<JonnieCache>
LOL thats the best/worst chatup line ever
<bluebie>
hey babe come back to my place I have private repositories
<JonnieCache>
hey baby, how'd you like commit access to my private repository...
<Xeago>
:D
Virunga has quit [Remote host closed the connection]
<Xeago>
thanks for the english everyone!
tatsuya__ has quit [Remote host closed the connection]
<JonnieCache>
lol now my head is just full of sexually explicit version control puns
adeponte has quit [Ping timeout: 240 seconds]
<bluebie>
this bed has been marked 'friends only'
tatsuya_o has joined #ruby
<bnagy>
how do you like to merge? Hard, soft or mixed?
<bluebie>
also 'creative commons by-nc' - hope you're cool with that!
<bluebie>
bnagy: Hard! live on the edge!
<bluebie>
I like the idea of mixed merging
<JonnieCache>
fork me until my api breaks
bradhe has joined #ruby
<bluebie>
we need a new punctuation symbol for method names
<bluebie>
where it does half/half
<bnagy>
why don't you come down here and pull master
<JonnieCache>
HAHAHAHA
<bnagy>
OH KAY that's enough of that
<bluebie>
yep
<banisterfiend>
bluebie: the japanese prefer octopus merge
<bluebie>
banisterfiend: how about I just finish the iPhone version and you download it in some months?
<fowl>
haha
<banisterfiend>
sure
<fowl>
let him down easy
<bluebie>
what are you even talking about fowl
<fowl>
;)
<bluebie>
oh gods here come the winks!
jjang has quit [Ping timeout: 248 seconds]
<matti>
Winks!?
<matti>
;] ;] ;]
<matti>
Who ordered winks?!
<fowl>
bluebie: one time a girl told me she'd call me in a few months
<bluebie>
lol
<bluebie>
that's pretty funny :D
<matti>
fowl: ;p
tatsuya_o has quit [Ping timeout: 240 seconds]
charliesome is now known as epochfail
epochfail has quit [Disconnected by services]
charliesome has joined #ruby
bradhe has quit [Ping timeout: 272 seconds]
damagednoob has left #ruby [#ruby]
<bluebie>
I think I'll just cover over the LEDs in these usb drives o_o
<JonnieCache>
cant you desolder them?
<bluebie>
could do
<JonnieCache>
a lot of effort for some cheap usb drives i guess
<bluebie>
but it's even easier to just not make holes for them to shine out of!
<bluebie>
I'm making new cases for them anyway :)
<JonnieCache>
ah right
<JonnieCache>
you could paint them black thatd be even better
Takehiro has quit [Remote host closed the connection]
Foxandxss has joined #ruby
senny has quit [Remote host closed the connection]
senny has joined #ruby
senny has quit [Remote host closed the connection]
nari has quit [Ping timeout: 245 seconds]
senny has joined #ruby
vlad_starkov has joined #ruby
Rochefort has joined #ruby
ciopte7 has quit [Quit: ciopte7]
Virunga has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
ph^_ has joined #ruby
ph^_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
ph^ has quit [Ping timeout: 240 seconds]
QaDeS has joined #ruby
alistar has joined #ruby
<alistar>
Hello when using reg ex with a case satement of when then format can you match both text and numbers in a rage e.g. examplexx where xx is in the range 20-30 say?
<Xeago>
wait what are you trying to do?
<Xeago>
case over the matching part in a regex?
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
resure has quit [Remote host closed the connection]
<alistar>
yeah so for a larger example : when /example[20..30]/ then "we got it"
<Xeago>
bluebie!!! I can't solve this level
<bluebie>
alistar: You should probably just go with an if
<alistar>
thats psudo obviously as it seems not to work
<alistar>
bluebie: I have a larger number of switches tho
resure has joined #ruby
<bluebie>
alistar: regular expressions as far as I know aren't capable of dealing with multiple digit numbers in such a sensible way
<Xeago>
I recorded my screen, made it transparent and overlayed it over the challenge
<alistar>
bluebie: whats the benefit?
<Xeago>
I don't notice a difference!
<bluebie>
and when statements as far as I know can only do local or's, not nested ands
<JonnieCache>
alistar: depending on how consistent the strings are, you might want to just chop off the last two characters and convert it to an integer
<bluebie>
Xeago: IDK which level you're talking about?
<Xeago>
and I don't know how to find out?
<Xeago>
is there a variable I can inspect?
<bluebie>
screenshot maybe?
<alistar>
Some of my other matches are as simple as when /"devils.*" then "here we are"
<alistar>
so i cant split off the integer and treat the same
chimay has quit [Ping timeout: 246 seconds]
<alistar>
can i really only regex for chars or a range but not both then?
<JonnieCache>
basically regex only deals with individual characters, it isnt really capable of dealing with multiple chars
<JonnieCache>
so you can test if a single digit is say, within 1-5, but not if two digits are within 50-70
<alistar>
so in that case i need regex + the range
<JonnieCache>
you need to extract out all the digits, and convert them to an integer object
<Xeago>
is it needed that I make 2 ripples on a level?
<bluebie>
game.challenges.indexOf(game.challenge) if you want
<Xeago>
looked at the challenges.js
<alistar>
i see now id need a lot of regex to accomplish the same if doing it char by char
<Xeago>
is that the first that requires 2 ripples?
<JonnieCache>
alistar: but theres no real point.
<JonnieCache>
bluebie: it sounds like you should port this game to the ipad and cash in :)
<bluebie>
I made this game years ago - I have no idea how to load a level by numeric index
<bluebie>
JonnieCache: I did but it was horrible so I stopped
<bluebie>
maybe i'll redo it some day in rubymotion and sparrow framework
<bluebie>
… or I could just make a different game that's even better?
<bluebie>
I don't think this one is very fun
<bluebie>
it's difficult to make many levels for it
<bluebie>
good ones anyway
<Xeago>
the level after the 2 horizontal ones
<Xeago>
level 6, 1 indexed
<Xeago>
lightning bolt design
<bluebie>
yep that ones hard :)
<alistar>
JonnieCache: I got ya :) Say if I wanted to match a hostname and print a group the hostname belongs to where some hostnames i just need to match the text but others i need to match the numerical id at the end to determine the group what do you think would be the best way of doing this?
<bluebie>
and it does require two ripples
<alistar>
Or anyone else for that matter :)
<Xeago>
bluebie, why not have it auto generated?
<bluebie>
Xeago: that'd be pretty lame
nateberkopec has joined #ruby
<Xeago>
I'd try 1000 generations in about a week, mark the good ones and we got new levels?
<JonnieCache>
sounds like a job for mechanical turk
<bluebie>
sounds boring
<bluebie>
anyway
<bluebie>
I wouldn't sell an app for money
<bluebie>
don't want to work in computers
<bluebie>
I don't enjoy programming
banisterfiend has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
<Xeago>
:O
<Xeago>
then what are you doing in #ruby?
<Xeago>
culture?
<bluebie>
I enjoy teaching and making things :)
<bluebie>
and you guys are heaps cool
<alistar>
H I can do this in the when then cant i for those hostnames i know need the digits checked/
<bnagy>
wah australia flashback
<bnagy>
alistar: take a deep breath, man
<alistar>
sorry pidgin froze
Rochefort has quit [Remote host closed the connection]
Rochefort has joined #ruby
Rochefort has quit [Remote host closed the connection]
Rochefort has joined #ruby
<alistar>
I get it now I evaluate the digits on those hostnames i have matching inside the then using an if statement :)
brianpWins has quit [Quit: brianpWins]
bradhe has joined #ruby
Shrink has quit [Ping timeout: 252 seconds]
wez has joined #ruby
Takehiro has quit [Ping timeout: 255 seconds]
<JonnieCache>
i once saw a really good tutorial showing how to make a state machine parser with ruby's case statement and regexes
<JonnieCache>
it showed you how to do proper parsing with a stack and everything. unfortunately i think it may have been in a book
<alistar>
seen
<JonnieCache>
i always try and find it to show people in this situation but with no success. maybe i should write one...
<Muz>
NameError: undefined local variable or method `time_zone_appropriate_greeting' for main:Object
chussenot has quit [Read error: No route to host]
chussenot_ is now known as chussenot
Taichou has joined #ruby
Taichou has quit [Remote host closed the connection]
jarek has joined #ruby
qwerxy has quit [Quit: offski]
<shevy>
ack
<shevy>
when Muz copy pastes, he does not append a '.'
GoGoGarrett has joined #ruby
<Muz>
It wouldn't be right to not copy-paste verbatim.
specialGuest has joined #ruby
specialGuest has quit [Changing host]
specialGuest has joined #ruby
tommyvyo has joined #ruby
Jay_Levitt has quit [Quit: Jay_Levitt]
Rochefort has joined #ruby
cantbecool has joined #ruby
chimay has joined #ruby
Agis__ has joined #ruby
Axsuul has quit [Ping timeout: 264 seconds]
chimay has quit [Changing host]
chimay has joined #ruby
Goles has quit [Quit: Computer has gone to sleep.]
<Agis__>
hey guys, I've cloned a ruby gem in my local system and used this line in the bundler: gem 'github_api', :path => "~/Desktop/github" and did bundle update. I broke the gem so it wouldn't work (just to check) but it's still working, meaning it still gets the gem from rubygems probably. Any ideas?
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
<Agis__>
didn't know that I needed ti require this
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<Agis__>
haven't seen it before actually in any gems or apps
<chylli>
anyone can recommend a ruby rails editor ? or emacs mode ?
LBRapid has quit [Quit: Farewell.]
<JonnieCache>
Agis__: you will never see it in a gem
<catphish>
gedit, mate
alup has joined #ruby
<chylli>
catphish: thanks
<JonnieCache>
Agis__: there should never be any bundler related code in a gem, ever
<catphish>
mate has a lot of rails helpers if you're on os x
<JonnieCache>
chylli: sublime text is the bomb
<JonnieCache>
<3 sublime
LBRapid has joined #ruby
<Agis__>
JonnieCache: but all the gems has a Gemfile aren't they?
<chylli>
thanks
<JonnieCache>
Agis__: thats for the gems used to develop the gem, testing and so on
<koshii>
Hey in Ruby Koans, where it asks me to do the triangle work, should I be editing the triangle.rb in src/ or in koans/ . When I tried finishing triangle.rb in koans it threw a different kind of error (no colors, ASCII logo).
jrist-afk is now known as jrist
deryl has quit [Quit: deryl]
Takehiro has quit [Ping timeout: 240 seconds]
<JonnieCache>
the actual gem code that will be loaded by the app using that gem should never have bundler stuff in it, or rubygems stuff even
<JonnieCache>
or things will break
<JonnieCache>
its kind of confusing, i know. look at the source of your favourite gems to better understand it
ciopte7 has joined #ruby
xorgnak has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
tatsuya_o has joined #ruby
cantonic has quit [Quit: cantonic]
llaskin has joined #ruby
<llaskin>
hey, what am I doing wrong here?
<llaskin>
well lots hahah but i hit enter too fast
tdelam has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
thorncp has quit [Ping timeout: 272 seconds]
CodeFriar has quit [Quit: Leaving...]
<llaskin>
http://www.url.com:/folder.gsub(/.*:.*(:)/, ':8080') #I want to replace the 2nd ":" with :8080
jerrad has joined #ruby
<llaskin>
correction: 'http://www.url.com:/folder'.gsub(/.*:.*(:)/, ':8080') #I want to replace the 2nd ":" with :8080
relix has joined #ruby
CarlB_th_ has joined #ruby
thorncp has joined #ruby
jwbuurlage_ has quit [Read error: Connection reset by peer]
<al2o3cr>
-e:1:in `eval': `hash' is not allowed as an instance variable name (NameError), from (eval):1:in `<main>', from -e:1:in `eval', from -e:1:in `<main>'
<banisterfiend`>
plow: Try a rails channel first #rubyonrails
<banisterfiend`>
plow: this isn't really a rails chan
xorgnak has joined #ruby
xorgnak has quit [Remote host closed the connection]
<plow>
thanks
clj_newb has quit [Ping timeout: 245 seconds]
enroxorz has joined #ruby
plow has left #ruby [#ruby]
<enroxorz>
hey guys, what is the ruby equiv of <> ?
phantasm66 has joined #ruby
xorgnak has joined #ruby
<banisterfiend`>
enroxorz: !=
xorgnak has quit [Remote host closed the connection]
<enroxorz>
thanks
rippa has joined #ruby
yasushi has joined #ruby
<banisterfiend`>
enroxorz: what language uses <> ?
<Xeago>
sql
<Xeago>
windows batch shell iirc
BSaboia has quit [Ping timeout: 246 seconds]
<enroxorz>
SQL
<enroxorz>
im converting a sproc to business logic and i couldnt remember what <> was
<banisterfiend`>
enroxorz: but i mean which proper programming language were you using that used <> ?
Guest3479 is now known as robacarp
<enroxorz>
banisterfiend`: T-SQL to be exact.
<banisterfiend`>
ah ok..
jprovazn is now known as jprovazn_away
xorgnak has joined #ruby
xorgnak has quit [Remote host closed the connection]
<enroxorz>
there is a SPROC that is taxing our DB when ran, so I am moving it over to the model.
eikko is now known as eikko-akem
mahmoudimus has quit [Quit: Computer has gone to sleep.]
CodeFriar has quit [Quit: Leaving...]
evilsushi has joined #ruby
evilsushi has quit [Changing host]
evilsushi has joined #ruby
tatsuya_o has joined #ruby
und3f has quit [Quit: Leaving.]
tk_ has quit [Quit: ばいばい]
xorgnak has joined #ruby
adeponte has joined #ruby
dmiller has quit [Remote host closed the connection]
bradhe has joined #ruby
<JonnieCache>
enroxorz: wont it be faster in the database than in ruby
baroquebobcat has quit [Quit: baroquebobcat]
mikepack has joined #ruby
<enroxorz>
JonnieCache: The goal is to get as much logic outside of the DB. Fat Models instead of taxing the DB.
Jay_Levitt has quit [Quit: Jay_Levitt]
mark_locklear has joined #ruby
Morkel has quit [Quit: Morkel]
Jay_Levitt has joined #ruby
enroxorz is now known as enroxorz_
enroxorz has joined #ruby
KevinSjoberg has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
enroxorz_ has quit [Quit: Page closed]
bradhe has quit [Ping timeout: 252 seconds]
<Xeago>
Is this proper english: "Due to the possibility of the language barrier beeing an issue, conversations might stagger but they should nonetheless still achieve their desired result."
<Xeago>
it's a horrible long sentence :\
xorgnak has quit [Remote host closed the connection]
<canton7>
"beeing"
<Xeago>
blergh, again
seanyo has joined #ruby
xorgnak has joined #ruby
sepp2k has quit [Quit: Leaving.]
<Xeago>
thanks for spotting that one, reminds me to replaceall my docu..
xorgnak has quit [Remote host closed the connection]
<canton7>
i'd also s/but they/but
axl_ has joined #ruby
<canton7>
and s/might/may (but there's not much in that one)
billiam has joined #ruby
CodeFriar has joined #ruby
<canton7>
and maybe also s/nonetheless/ (in the interests of shortening it)
truekonrads has joined #ruby
<Xeago>
isn't may about permission?
jonathanwallace has joined #ruby
<Xeago>
I mahmm
<Xeago>
nvm
<canton7>
maybe :P as a native speaker, I've never learnt the theory
<Xeago>
may seems a better fit
<Xeago>
rofl
<truekonrads>
Hello. How can I specify the local interface for a tcp-connection in EventMachine?
<truekonrads>
I want to have the connection originate from a specific source IP
nwest has joined #ruby
<banisterfiend`>
Xeago: what do u mean by conversations?
<banisterfiend`>
do you really mean to say conversations?
<banisterfiend`>
Xeago: what's your native language btw
<Xeago>
dutch, living in sweden atm
Jrz has joined #ruby
<Xeago>
and just got my temporary permi
<Xeago>
t
<Xeago>
"A student demonstrates in practice to be able to a discuss in a result-oriented dialogue."
maesbn_ has joined #ruby
seanyo has quit [Read error: Connection reset by peer]
<Xeago>
my sentence is a comment on theirs
maesbn has quit [Remote host closed the connection]
<banisterfiend`>
Xeago: i thought the dutch had great english :P
<Xeago>
I am nitpicking
ph^ has joined #ruby
<Xeago>
the type of stuff I am writing is just plain horrible
nari has quit [Ping timeout: 246 seconds]
<Xeago>
legal-text is easier to read
seanyo has joined #ruby
<banisterfiend`>
well legal stuff is pithy, the stuff your'e pasting here is kind of verbose and awkward
<Xeago>
legal stuff makes sense
evilsushi has quit [Read error: Connection reset by peer]
<Xeago>
this doesn't
aganov has quit [Quit: aganov]
alvaro_o has joined #ruby
<Xeago>
this is all just redundant
specialGuest has joined #ruby
<banisterfiend`>
Xeago: who wrote this stuff?
<Xeago>
a committee at my school
macmartine has joined #ruby
<banisterfiend`>
haha
<Xeago>
committee of examniers
<Xeago>
without the typo
<banisterfiend`>
and you have to rewrite it?
<Xeago>
I have to comment about it, and then specify how I am achieving it
<Xeago>
or fullfilling that performance indicator
xorgnak has joined #ruby
kuzushi has quit [Remote host closed the connection]
<rking>
There are several things. One I'd just use the clipboard gem.
djbender has quit [Quit: djbender]
<rking>
Two I'd not use backticks for that — there's no output to capture, is there?
<fragmachine>
no I had it as exec before
<rking>
Three I'd make it echo first. I'm nto sure about that tmpfile.path
<rking>
Exec is definitely not right, that replaces the current process.
<fragmachine>
I didn't know there was a gem though, that's cool
<fragmachine>
oh no wonder
<rking>
Always default to array-args system
adeponte has quit [Remote host closed the connection]
<rking>
system %W(echo xclip -selection clipboard -i #{tmpfile.path})
<fragmachine>
/ignore * JOINS PARTS QUITS MODES NICKS
burgestrand has joined #ruby
<fragmachine>
I get an error "wrong first argument"
<Hanmac>
about the ruby dev kit on windows ... what does it include?
wpaulson has joined #ruby
<rking>
fragmachine: Sorry, put a * in front of the %W to splat it out.
mneorr has joined #ruby
CarlB_the_great has joined #ruby
<fragmachine>
hmm that just echoes the command but it doesn't look like it runs it
<rking>
It won't. That's part of my division and conqueration plan.
<fragmachine>
aha!
<rking>
Does it look right? Can you paste it into a shell and it work there?
wpaulson has quit [Client Quit]
wobr has quit [Ping timeout: 252 seconds]
<fragmachine>
yea it looks good to me
CarlB_th_ has quit [Ping timeout: 246 seconds]
mneorr has quit [Client Quit]
jasonkuhrt has quit [Quit: Leaving...]
<rking>
That same line works perfectly from the shell?
mneorr has joined #ruby
koshii has quit [Read error: Operation timed out]
<fragmachine>
it looks like it would, the script makes a tempfile so it's deleted when the script finishes
<fragmachine>
it expands to xclip -selection clipboard -i /tmp/redditFormatter.2012-09-0423:29:26+080020120904-5143-p46dlb
koshii has joined #ruby
<Xeago>
'Traditionalists insist that one should distinguish between may (present tense) and might (past tense) in expressing possibility: I may have some dessert after dinner if I'm still hungry | I might have known that the highway would be closed because of the storm. In casual use, though, may and might are generally interchangeable: they might take a vacation next month | he may have called earlier, but the answering machine was broken."
<rking>
Do $stdin.readline after that echo line so it pauses there, then run that in another terminal.
mklappstuhl has quit [Ping timeout: 246 seconds]
<Xeago>
I might have never known that if I wasn't so curious
<fragmachine>
that's genius I'll give it a go
Rochefort has quit [Remote host closed the connection]
yasushi has quit [Remote host closed the connection]
juarlex has joined #ruby
<rking>
Xeago: I may still fail to use it properly.
vlad_starkov has joined #ruby
heisenmink has joined #ruby
<fragmachine>
I might too
<fragmachine>
where do I put the xclip -selection clipboard -i /tmp/redditFormatter.2012-09-0423:36:19+080020120904-5157-fm8hwc
vitoravelino`afk is now known as `vitoravelino
<fragmachine>
oops
<fragmachine>
$stdin.readline?
<fragmachine>
on the next line from the system call?
punkrawkR has joined #ruby
<rking>
Yes.
<rking>
Then to finish it you can either Ctrl+c to kill it or hit enter to let it continue.
chylli has quit [Remote host closed the connection]
Rochefort has joined #ruby
<fragmachine>
I paste in the command, the script closes and nothing seems to have happened
<fragmachine>
the text isn't in the clipboard
MasterIdler_ has joined #ruby
<rking>
Hrm, how are you testing that it's in the clipboard?
areil has quit [Remote host closed the connection]
<fragmachine>
just by trying to paste into firefox
<Xeago>
and want a normal numbering, aswell as a manual numbering
eykosioux has quit [Client Quit]
<fragmachine>
ok well thanks for your help guys I gotta go
fragmachine has quit [Quit: leaving]
<Xeago>
without having the number part of the li's content
eykosioux has joined #ruby
tatsuya_o has joined #ruby
<johnjohnson>
Xeago: ol provides numbering by default - what do you want that's custom?
<Xeago>
having 2 sets of numbering
<Xeago>
look at the source for the link, that numbering is hardcoded
<Xeago>
I can move li;s up or down within the ol, without changing the numbering
tatsuya_o has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
<johnjohnson>
I suppose then you could wrap wrap the ol with an li, or visa versa
<johnjohnson>
Although that's a strange requirement ;p
jonathanwallace has quit [Ping timeout: 272 seconds]
jasonkuhrt has joined #ruby
spopescu has joined #ruby
mmitchell has joined #ruby
jonathanwallace has joined #ruby
CodeFriar has joined #ruby
zommi has quit [Quit: Leaving.]
baphled has quit [Ping timeout: 252 seconds]
sepp2k has joined #ruby
daniel_hinojosa has joined #ruby
jasonkuhrt has quit [Client Quit]
timonv has quit [Remote host closed the connection]
krawchyk has quit [Read error: Connection reset by peer]
jxf has joined #ruby
krawchyk has joined #ruby
samflores has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
Rochefort has quit [Remote host closed the connection]
samflores has left #ruby [#ruby]
jlogsdon has joined #ruby
eldariof has quit [Ping timeout: 240 seconds]
senny has quit [Remote host closed the connection]
jso has joined #ruby
andrewstewart has joined #ruby
khakimov has joined #ruby
jonathanwallace has joined #ruby
pefavre has joined #ruby
pefavre has left #ruby [#ruby]
yasushi has joined #ruby
invisime has quit [Read error: Connection reset by peer]
s1n4 has joined #ruby
hadees has quit [Quit: hadees]
invisime has joined #ruby
diegoviola has joined #ruby
blazes816 has joined #ruby
robbyoconnor has quit [Ping timeout: 268 seconds]
sonkei has joined #ruby
alanp has quit [Remote host closed the connection]
CodeFriar has quit [Quit: Leaving...]
blazes816 has quit [Client Quit]
blazes816 has joined #ruby
mmitchell has quit [Remote host closed the connection]
jjbohn has quit [Quit: Leaving...]
truekonrads has quit [Read error: Connection reset by peer]
chimay has quit [Quit: WeeChat 0.3.9-rc1]
`vitoravelino is now known as vitoravelino
yasushi has quit [Remote host closed the connection]
matrixise has quit [Ping timeout: 246 seconds]
chimay has joined #ruby
chimay has quit [Changing host]
chimay has joined #ruby
mahmoudimus has joined #ruby
sonkei has quit [Ping timeout: 246 seconds]
adeponte has joined #ruby
geggam has joined #ruby
gtuckerkellogg has joined #ruby
maletor has joined #ruby
jarek has left #ruby [#ruby]
jgrevich_ has joined #ruby
hadees has joined #ruby
heisenmink has joined #ruby
Chryson has joined #ruby
savage- has joined #ruby
jgrevich has quit [Ping timeout: 244 seconds]
jgrevich_ is now known as jgrevich
davidcelis has joined #ruby
ping-pong has quit [Ping timeout: 245 seconds]
methodmat312 has joined #ruby
<methodmat312>
Hello
rcloak has joined #ruby
<methodmat312>
I am using a module in several classes, and I wanted to know if there was a way to list all the classes where the module is included?
resure_away is now known as resure
artOfWar has joined #ruby
daniel_hinojosa has quit [Read error: Connection reset by peer]
<Xeago>
do a file search, preferably using grep
daniel_hinojosa has joined #ruby
<Xeago>
err
<Xeago>
ack
<Xeago>
instead of grep
zii is now known as hahaha
<methodmat312>
thanks xeago, so there isn't a way to do inside ruby while the code is running?
<methodmat312>
without making system call?
<Xeago>
no idea, why would you want it durin runtime?
<methodmat312>
rails thing, i have a rake task that i want to run on all classes that include this module and i dont want to give it a specific list of classes
<JonnieCache>
methodmat312: theres a callback method you can define on your module called included
<JonnieCache>
that gets called whenever the module is included
<methodmat312>
sweet thanks jonniecache
<JonnieCache>
you can use that to build your own list and keep track of things
<methodmat312>
that will do!
sepp2k has quit [Ping timeout: 246 seconds]
methodmat312 has quit [Quit: Leaving]
levieraf has joined #ruby
burgestrand has quit [Quit: Leaving.]
resure is now known as resure|haskell
tiripamwe has joined #ruby
xorgnak has quit [Remote host closed the connection]
ephemerian has quit [Quit: Leaving.]
xorgnak has joined #ruby
lampe2 has joined #ruby
johnjohnson has quit []
Xeago has quit [Ping timeout: 264 seconds]
<levieraf>
hi guys
<levieraf>
I have a question
<davidcelis>
I have an answer
<davidcelis>
ha ha ha just kidding, i don't know ruby
philcrissman has joined #ruby
cbuxton has joined #ruby
<rking>
levieraf: Yes he does. Privmsg him incessantly.
ping-pong has joined #ruby
<davidcelis>
rking: stop revealing my secrets
QaDeS has quit [Ping timeout: 246 seconds]
<levieraf>
davidcelis, I m right now learning sinatra
<levieraf>
my version sinatra is 1.3.3 and ruby version is 1.9.3p194 so, the problem is when I use require 'rack-flash'
chimkan_ has quit [Quit: chimkan_]
<levieraf>
and then run with e.q. ruby recall.rb
<levieraf>
the message is "!! Unexpected error while processing request: undefined method `<<' for nil:NilClass"
<davidcelis>
well apparently you're calling << on nil
<davidcelis>
but we can't know that without a gist of relevant code and the full trace
Jrz has joined #ruby
dmiller has joined #ruby
chimkan_ has joined #ruby
stkowski has joined #ruby
<canton7>
(this has been answered in #sinatra. Please mention if you're cross-posting in future)
perun_ has joined #ruby
cakehero has joined #ruby
mneorr has quit [Quit: Leaving.]
Drewch has joined #ruby
fbernier has joined #ruby
IrishGringo has joined #ruby
<koshii>
What is #sinatra all about?
shevy has quit [Ping timeout: 248 seconds]
<davidcelis>
koshii: take a wild guess
kuzushi has joined #ruby
sepp2k has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
arturaz has quit [Ping timeout: 272 seconds]
Tref has quit [Quit: Tref]
linuxsable has joined #ruby
upasna is now known as sweet_kid
statarb3 has quit [Quit: Leaving]
clj_newb has joined #ruby
<levieraf>
I have a question
<levieraf>
how I can see the packe associate with a gem
SirRamon_ has joined #ruby
<levieraf>
e.q as aptitude show Package
<levieraf>
but using gem
<levieraf>
something as gem show ..
<levieraf>
exist any commond for that?
linuxsable has quit [Quit: linuxsable]
<levieraf>
I can see the dependents that have a any gem
<levieraf>
is posible that?
AlbireoX has quit [Read error: Connection reset by peer]
<davidcelis>
read the man pages for gem
<davidcelis>
gem --help
AlbireoX`Laptop has joined #ruby
linuxsable has joined #ruby
sambio has quit [Ping timeout: 246 seconds]
machty has joined #ruby
Chryson has quit [Quit: Leaving]
hipertracker has quit [Quit: hipertracker]
Advocation has joined #ruby
qwerxy has quit [Quit: offski]
<levieraf>
davidcelis, thanks man
Spooner has quit [Ping timeout: 245 seconds]
shevy has joined #ruby
leoncamel has joined #ruby
TheShadowFog has quit [Read error: Connection reset by peer]
bluenemo has quit [Remote host closed the connection]
heisenmink has quit [Remote host closed the connection]
mmitchell has joined #ruby
* Hanmac
can install gems via apt
* davidcelis
can install gems via brew
BSaboia has joined #ruby
gloomer has joined #ruby
gloomer has quit [Client Quit]
leoncamel has quit [Ping timeout: 260 seconds]
<shevy>
hmmmm
* shevy
can install gems via wget
cbuxton has quit [Quit: Leaving.]
moted has quit [Remote host closed the connection]
bricker88 has joined #ruby
haf has joined #ruby
BSaboia__ has quit [Ping timeout: 246 seconds]
<bricker88>
I have a method called `linked`, and I just want to also be able to called `linked?` for clarity in some cases. Is there any disadvantage to using `alias_method` over just `def linked?; linked; end;`
<bricker88>
I read that alias_method actually makes a copy of the method, but I'm not sure exactly what that means.
mascool has joined #ruby
mohits has quit [Ping timeout: 246 seconds]
xorigin has quit [Quit: leaving]
Takehiro has quit [Remote host closed the connection]
jxf has quit [Quit: Leaving]
<haf>
Hi guys, I was wondering if someone could help me? I'm looking to get some test logging going, because of a failing test, and was wondering what is the best way to do logging in ruby/sinatra/rack?
Takehiro has joined #ruby
eignerchris has joined #ruby
sneakyness_wk has joined #ruby
bradhe has quit [Remote host closed the connection]
seanwash has quit [Quit: Computer has gone to sleep.]
mmitchell has quit [Remote host closed the connection]
clj_newb has quit [Ping timeout: 268 seconds]
c0rn_ has joined #ruby
futini has quit [Ping timeout: 246 seconds]
CodeFriar has joined #ruby
specialGuest has quit [Ping timeout: 246 seconds]
SirRamon_ has quit [Remote host closed the connection]
haxrbyte has joined #ruby
chussenot has quit [Quit: chussenot]
havenn has joined #ruby
paul_andrew has joined #ruby
riley526 has joined #ruby
timonv has joined #ruby
s1n4 has left #ruby ["leaving"]
jitesh_shetty has joined #ruby
heisenmink has joined #ruby
haxrbyte_ has joined #ruby
srnty has joined #ruby
srnty has left #ruby [#ruby]
xorgnak has joined #ruby
srnty has joined #ruby
yxhuvud has joined #ruby
haxrbyte has quit [Ping timeout: 252 seconds]
<srnty>
So I'm trying to match all characters between two parentheses, including other parentheses. Anyone know how I might do that?
havenn has quit [Remote host closed the connection]
voodoofish430 has joined #ruby
<davidcelis>
srnty: /\((.+)\)/
<srnty>
Thank you.
<srnty>
How do I keep the first paren and last paren out of the output?
<davidcelis>
use the capture group
SegFaultAX|work2 has joined #ruby
<davidcelis>
which i already put in that regex
<srnty>
Okay. Thank you!
dmiller has quit [Remote host closed the connection]
heisenmink has quit [Remote host closed the connection]
fantazo has quit [Remote host closed the connection]
Ontolog has joined #ruby
sagax has joined #ruby
<Ontolog>
is there a better way to check for an arbitrarily nested key? that is, better than doing something like this: session.has_key?(:auth_params) && session[:auth_params].has_key?(:email_token)
Advocation has quit [Quit: Advocation]
Asher has quit [Quit: Leaving.]
qwerxy has joined #ruby
xorgnak has quit [Remote host closed the connection]
xorgnak has quit [Remote host closed the connection]
<canton7>
Ontolog, rely on the fact that, by default, hash[:undefined_key] returns nil?
<Ontolog>
well ok you can take out the has_key? using thast fact
<Ontolog>
but that's not what I'm getting at
<Ontolog>
something like
<Ontolog>
has_key?(:some, :long, :key, :path)
enroxorz has joined #ruby
Jay_Levitt has quit [Ping timeout: 272 seconds]
yshh has joined #ruby
fearoffish has joined #ruby
xorgnak has joined #ruby
adamkittelson has joined #ruby
xorgnak has quit [Remote host closed the connection]
mmitchell has joined #ruby
<davidcelis>
monkeypatch Hash
Kneferilis has quit [Disconnected by services]
yshh has quit [Remote host closed the connection]
Spooner has joined #ruby
<joeyk>
you could extend hash to return the inside object: class Hash; def does key; self[key] || {}; end; end -> hash.does(:auth_params).has_key?(:email_token)
axl_ has quit [Quit: axl_]
<joeyk>
that's kind of ugly
<Ontolog>
of course i can monkeypatch it
<Ontolog>
just was hoping ActiveSupport did it for me already :p
<Ontolog>
thanks
riley526_ has joined #ruby
statarb3 has joined #ruby
Jay_Levitt has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
<davidcelis>
it doesn't, unfortunately
mmitchell has quit [Ping timeout: 272 seconds]
johnlcox has quit [Read error: Operation timed out]
johnlcox has joined #ruby
xorgnak has joined #ruby
DrShoggoth has joined #ruby
mmitchell has joined #ruby
specialGuest has joined #ruby
jasonkuhrt has joined #ruby
riley526 has quit [Ping timeout: 276 seconds]
paul_andrew has quit [Quit: leaving]
sagax has quit [Remote host closed the connection]
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
<Ontolog>
canton7: yes just like that, but not going to monkey patch Hash just yet (this is for work)
<koshii>
Wow, Codepad will interpret a lot of languages! I wonder how many security holes this has. :-)
<bricker88>
I accidentally a keyboard shortcut yesterday in Textmate, and it aligned the 1.9-style hashes colons… but I couldn't figure out what I did. Does anybody know?
<canton7>
it's been around for a while... so they've probably patched most of them :P
<koshii>
That's super cool anyway.
<canton7>
Ontolog, yeah cool. that's the concept anyway. def hash_has_keys?(hash, *keys) and replace self with hash :P
futini has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
axl_ has joined #ruby
SCommette has quit [Quit: SCommette]
xorgnak has quit [Remote host closed the connection]
SCommette has joined #ruby
Advocation has joined #ruby
paul_andrew has joined #ruby
mmitchell has quit [Ping timeout: 244 seconds]
wallerdev has joined #ruby
BiHi has quit [Quit: Computer has gone to sleep]
nim__ has quit [Ping timeout: 246 seconds]
heisenmink has joined #ruby
paul_andrew has quit [Read error: Connection reset by peer]
mmitchell has joined #ruby
paul_andrew has joined #ruby
thunderstrike has quit [Remote host closed the connection]
mrsolo has joined #ruby
Advocation has quit [Client Quit]
paul_andrew has quit [Read error: Connection reset by peer]
minijupe has joined #ruby
baphled has joined #ruby
xorgnak has joined #ruby
statarb3 has quit [Ping timeout: 268 seconds]
Spooner has quit [Ping timeout: 240 seconds]
Advocation has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
mmitchell has quit [Ping timeout: 276 seconds]
paul_andrew has joined #ruby
paul_andrew has quit [Read error: Connection reset by peer]
heisenmink has quit [Remote host closed the connection]
fermion has quit [Quit: P]
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
sagax has joined #ruby
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
xorgnak has quit [Remote host closed the connection]
mmitchell has joined #ruby
xorgnak has joined #ruby
manizzle has quit [Ping timeout: 272 seconds]
bradhe has quit [Remote host closed the connection]
paul_andrew has joined #ruby
saschagehlich has joined #ruby
nim__ has joined #ruby
xorgnak has quit [Remote host closed the connection]
berserkr has quit [Quit: Leaving.]
paul_andrew has quit [Read error: Connection reset by peer]
manizzle has joined #ruby
TheFuzzb_ is now known as TheFuzzball
eykosioux has quit [Quit: eykosioux]
spinagon has joined #ruby
Guest5516 has joined #ruby
prath has joined #ruby
eykosioux has joined #ruby
paul_andrew has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
clj_newb has joined #ruby
paul_andrew has quit [Read error: Connection reset by peer]
ACK__ has joined #ruby
eykosioux has left #ruby [#ruby]
eykosioux has joined #ruby
<shadoi>
banisterfiend`: so I use Boson/Hirb already in my CLI, and I'd love to add a shell / REPL feature, Pry seems like a great fit, do you think that sounds too crazy? Anyone else doing this?
rippa has quit [Ping timeout: 272 seconds]
<ACK__>
hello i know basic of ruby well, but i want to go more deep in the ruby, so which book you recommend for it?
<ACK__>
hello i know basic of ruby well, but i want to go more deep in the ruby, so which book you recommend for it?
<ACK__>
hello i know basic of ruby well, but i want to go more deep in the ruby, so which book you recommend for it?
ACK__ has quit [Killed (idoru (Spam is off topic on freenode.))]
nim__ has quit [Ping timeout: 244 seconds]
<davidcelis>
once is enough bro
<drPoggs>
"The Importance of Not Spamming"
<shadoi>
Not the one about looping, you've got that down already.
<drPoggs>
or lmgtfy
xorgnak has joined #ruby
ACK__ has joined #ruby
<eykosioux>
what is lmgtfy
reset has joined #ruby
reset has quit [Remote host closed the connection]
reset has joined #ruby
<drPoggs>
eykosioux: please tell me you're being funny :)
<eykosioux>
ACK__: idiomatic ruby was interesting too, although i never finished
banseljaj is now known as imami|afk
cj3kim has quit [Client Quit]
<eykosioux>
also, reading ruby source code on github from more talented ppl
<yaymukund>
oh, I think I'm just looking for include
<yaymukund>
ha
indigo747 has joined #ruby
xorgnak has quit [Remote host closed the connection]
Montas has joined #ruby
xorgnak has joined #ruby
johnlcox has quit [Quit: Computer has gone to sleep.]
sterex has joined #ruby
magmatt has joined #ruby
xorgnak has quit [Remote host closed the connection]
paul_andrew has joined #ruby
<Montas>
Hi, how do i generate class method for each item in array? I have constant array with items and attribute mask. I want to generate method <item>? for each of items in contant to check if that bit is set. I know the code to chcek the bit, but i would like to generate methods automaticaly from cosntant array
<magmatt>
my goodness... yield is hard to understand coming from python :)
indigo747 has left #ruby [#ruby]
<drPoggs>
Actually doing Ruby for real things helped me a great deal
Takehiro has quit [Remote host closed the connection]
<ACK__>
=======>> i want to write helpers in nanoc / rails / create my own following system in rails / tags system / or any other system so that i can implement on my rails/Sinatra/nanoc APP => and for all that i need to ruby very well so => FOR THIS PURPOSE TELL ME THE BOOK NAME <<<<<<<<<<=======
<davidcelis>
bro why are you merge conflicting
<ACK__>
THATS IT
<davidcelis>
where are these merge conflicts even coming from
johnlcox has joined #ruby
xorgnak has joined #ruby
<drPoggs>
XD
<drPoggs>
davidcelis++
paul_andrew has quit [Read error: Connection reset by peer]
<davidcelis>
Hanmac: no, please for the love of fuck no
wahly has joined #ruby
xorgnak has quit [Remote host closed the connection]
<ACK__>
Hanmac throws ACK__ into the #rubyonrails hole =>>>>>>>>>>>>>SAVE ME
<drPoggs>
ACK__: You probably need to start working on something and understand that you won't get it right first time if it's your first Ruby or Rails project - and that you gain understanding by *doing*, not just reading.
<ACK__>
SAVEEEEEEEEEEEEEEEEE
xorgnak has joined #ruby
xorgnak has quit [Remote host closed the connection]
<ACK__>
<drPoggs> YES, i kown but you can tell any way to accomplish my goal
xorgnak has joined #ruby
specialGuest has joined #ruby
stopbit has quit [Read error: Connection reset by peer]
<drPoggs>
ACK__: By doing. Buy a Ruby book. Read it. Maybe buy some more books. They're cheap. Read the Internet. Actually get your hands dirty and *code*
<wahly>
i'm looking for some pointers on how to make this script not suck so much: http://pastebin.com/482eJb8r. this is for a facter fact that is used in puppet. i want to get the CIDR address of each interface on the box, but the current script bombs out if there is an interface up with no address
stopbit has joined #ruby
<drPoggs>
ACK__: People who don't code end up managing projects, and you don't want to be a Project Manager
paul_andrew has joined #ruby
eldar has joined #ruby
<ACK__>
i have just started a ruby week ago
paul_andrew has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Quit: Leaving.]
<ACK__>
what about buying ===>>>> The Well-Grounded Rubyist <<<<=====
<Hanmac>
drPoggs you not need a book ... i learned ruby only from reading source & Docs ...
<Hanmac>
i dont even remember how i learned it ... some day i woke up and then i understand ruby
<wahly>
drPoggs: i'll give that a read. thanks
<philcrissman>
ACK__: Well Grounded Rubyist is a good book.
<ACK__>
but stuiable for biggens
<ACK__>
beginners
<drPoggs>
Hanmac: That's nothing - I learned Ruby through standing next to somebody on the train who had read a book about Ruby once.
eldariof has quit [Ping timeout: 245 seconds]
<drPoggs>
ACK__: One question - why Ruby?
mmitchell has quit [Remote host closed the connection]
<Hanmac>
"learning Ruby like Bacteria do" :P
<ACK__>
because => >>>> Rails / Sinatra / nanoc
<ACK__>
RAck
<ACK__>
rack
havenn has joined #ruby
<drPoggs>
ACK__: Those are just some words. *Why*? What's driving you to Ruby? What is it that appeals about Sinatra and Rails?
* Hanmac
points at #rubyonrails and #sinatra
<ACK__>
ok then Listen
<blob>
"because all the cool kids are doing it"
haxrbyte_ has quit [Ping timeout: 244 seconds]
xorgnak has quit [Remote host closed the connection]
chendo_ has joined #ruby
<drPoggs>
I started with Rails because I'd started with Catalyst back in the days when I didn't fully understand what the framework was, and before *it* understood what it was. I had a colleague who'd been doing Rails for a while, and decided I'd write a project of my own in Rails.
mmitchell has joined #ruby
<ACK__>
===========>>>>>>>> my vacation is going on, before Ruby i have tied PHP and Python but PHP semicolons and Python indentiation hurts me lot =>> Ruby has beautiful syntax and no semicoln <<<<==
alvaro_o__ has joined #ruby
<drPoggs>
The project sucked, even though I'd read books. So I did another project, which was better. And then another which was even better. And each time I tackled something new, I learnt more because I'd pushed myself.
<ACK__>
and large ECO=SYSTEM FOR LEARNING
metrix has joined #ruby
<drPoggs>
I could have stuck with Catalyst, but I liked Ruby's ecosystem. I like the fact there are sites such as Peepcode and RailsCasts. I like the fact that people here come on IRC and =======> HIGHLIGHT <====== their text to get their point across.
<drPoggs>
You don't get that with Java.
<ACK__>
good for beginners like me
havenn has quit [Ping timeout: 240 seconds]
<drPoggs>
ACK__: Do you have a specific *thing* you want to tackle in Ruby?
<ACK__>
Java don't like 's me
Russell^^ has joined #ruby
alvaro_o has joined #ruby
<ACK__>
<drPoggs> YES, =>>> I WANNA BE SUPER DUPER => web developer
statarb3 has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
paul_andrew has joined #ruby
<drPoggs>
ACK__: OK, start by writing on IRC mostly in letters rather than symbols. And then check out http://railscasts.com/ and go pester the #rubyonrails people
<metrix>
Is there a way to retrieve the location of a file I have required from within the file?
alvaro_o_ has quit [Ping timeout: 246 seconds]
paul_andrew has quit [Read error: Connection reset by peer]
musl has quit [Remote host closed the connection]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
<ACK__>
i hate railscasts
riley526_ has quit [Remote host closed the connection]
alvaro_o__ has quit [Ping timeout: 268 seconds]
<ACK__>
is ruby for rails book OUTDADTED
musl has joined #ruby
Radar has joined #ruby
elico has quit [Ping timeout: 268 seconds]
<epochwolf>
ACK__: all books are outdated.
Advocation has joined #ruby
<drPoggs>
ACK__: You could probably spend your time better by coding some Ruby *now*.
<epochwolf>
The only languages that move slow enough to warrant books are C99, Java, and javascript (for browsers)
Nisstyre_ has quit [Quit: Leaving]
<drPoggs>
epochwolf: I want to quote you on that :)
machty has quit [Read error: Connection reset by peer]
machty_ has joined #ruby
<epochwolf>
drPoggs: feel free
pefavre has joined #ruby
elico has joined #ruby
<drPoggs>
epochwolf: are you on Twitter so I can attribute you?
paul_andrew has joined #ruby
paul_andrew has quit [Read error: Connection reset by peer]
Nisstyre has joined #ruby
<epochwolf>
sure
chimay has quit [Quit: WeeChat 0.3.9-rc1]
<epochwolf>
@epochwolf
eikko-akem has quit [Ping timeout: 240 seconds]
<philcrissman>
ACK__: Ruby for Rails is a bit old, but it's about Ruby, not rails, so probably 90% of it is still relevant. TWGR covers 1.9, so, it's more up to date. If you're still looking for books.
Nisstyre is now known as Nisstyre_
pefavre_ has joined #ruby
xorgnak has joined #ruby
linuxsable has quit [Quit: linuxsable]
cjs226 has joined #ruby
Takehiro has joined #ruby
ACK__ has quit [Ping timeout: 245 seconds]
mmitchell has quit [Remote host closed the connection]
ckrailo has joined #ruby
pefavre has quit [Ping timeout: 268 seconds]
Montas has quit [Quit: Page closed]
Ontolog has quit [Quit: Ontolog]
<drPoggs>
phew, he pinged out
mmitchell has joined #ruby
Scient has joined #ruby
Virunga has joined #ruby
<epochwolf>
drPoggs: rejoice
helpa has joined #ruby
el_diablo has joined #ruby
haf has quit [Quit: Page closed]
<matti>
?
paul_andrew has joined #ruby
whisller has joined #ruby
paul_andrew has quit [Read error: Connection reset by peer]
whisller has left #ruby ["Leaving"]
jenrzzz has joined #ruby
<bricker88>
What is the difference between `require File.expand_path("../../../config/environment", __FILE__)`, and `require File.join("path", "to", "config", "environment")`? One works and the other doesn't but I don't know why
yxhuvud has quit [Ping timeout: 244 seconds]
<Mon_Ouie>
In the second one, what did you use as a path?
<Mon_Ouie>
Anyway, you'd be better off setting up the load path properly
<matti>
Hi hi Mon_Ouie
<Mon_Ouie>
'alut 'alut matti :p
<Hanmac>
bricker88 i think the problem is that you should use require_relative :P
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
mneorr has joined #ruby
kjellski_ has quit [Quit: Leaving]
reset has quit [Quit: Leaving...]
<bricker88>
Mon_Ouie: Hanmac: It was a lame error on my part, I was trying to use Rails.root before I had loaded Rails :P whoops. Thanks for the suggestions.
mvangala has quit [Read error: Connection reset by peer]
mvangala has joined #ruby
pskosinski has joined #ruby
blazes816 has quit [Quit: blazes816]
<elico>
anyone with eventmachine skills if you have used "set_sock_opt" method in a http client or other client i will be very glad to see how it's implemented
havenn has joined #ruby
musl has quit [Quit: WeeChat 0.3.9-rc1]
musl has joined #ruby
Jrz has quit [Quit: Computer has gone to sleep.]
theRoUS has quit [Ping timeout: 264 seconds]
specialGuest has quit [Ping timeout: 276 seconds]
specialGuest has joined #ruby
paul_andrew has joined #ruby
ringotwo has joined #ruby
Ontolog has joined #ruby
paul_andrew has quit [Read error: Connection reset by peer]
jonathanwallace has quit [Remote host closed the connection]
khakimov has quit [Quit: Computer has gone to sleep.]
samflores has joined #ruby
jonathanwallace has joined #ruby
linuxsable has joined #ruby
manizzle has quit [Ping timeout: 252 seconds]
cj3kim has quit [Quit: This computer has gone to sleep]
ringotwo has quit [Remote host closed the connection]
specialGuest has quit [Changing host]
specialGuest has joined #ruby
blazes816 has joined #ruby
paul_andrew has joined #ruby
jwbuurlage has quit [Quit: jwbuurlage]
mrdodo has quit [Read error: Connection reset by peer]
paul_andrew has quit [Read error: Connection reset by peer]
mrdodo has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
jonathanwallace has quit [Ping timeout: 272 seconds]
metrix has quit [Quit: ChatZilla 0.9.88.2 [Firefox 15.0/20120824154833]]
mwilson` has quit [Excess Flood]
Guedes is now known as Guedes_out
mwilson` has joined #ruby
Virunga has quit [Remote host closed the connection]
centipedefarmer has joined #ruby
Advocation has quit [Read error: No route to host]
Takehiro has joined #ruby
Advocation has joined #ruby
manizzle has joined #ruby
pricees has quit [Ping timeout: 252 seconds]
havenn has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 252 seconds]
axl_ has joined #ruby
rudyl313 has joined #ruby
Advocation has quit [Ping timeout: 276 seconds]
resure|haskell is now known as resure
resure has quit [Remote host closed the connection]
eikko-akem has quit [Ping timeout: 245 seconds]
Axsuul has joined #ruby
havenn has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
Ontolog has quit [Quit: Ontolog]
johnlcox_ has joined #ruby
johnlcox has quit [Ping timeout: 248 seconds]
johnlcox_ is now known as johnlcox
cbuxton has joined #ruby
reset has joined #ruby
linoj has quit [Ping timeout: 245 seconds]
cj3kim has quit [Ping timeout: 276 seconds]
Guest5516 has quit [Quit: Guest5516]
Advocation has joined #ruby
levieraf has quit [Quit: Saliendo]
Advocation has quit [Client Quit]
clj_newb has quit [Ping timeout: 244 seconds]
axl_ has quit [Quit: axl_]
pricees has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
deryl has quit [Quit: deryl]
Ontolog has joined #ruby
krawchyk has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
nim__ has quit [Ping timeout: 268 seconds]
eroc has joined #ruby
flagg0204 has joined #ruby
<eroc>
I was just on ruby-docs.org and saw this line of code: "if File.basename(path)[0] == ..". What does the double-period equal? The semantics of the line is that we are checking to see if the path starts with a single period.
<snorkdude>
canton7, testing now. I see what I was doing wrong. Thanks!
answer_42 has quit [Quit: WeeChat 0.3.8]
ezyang has left #ruby [#ruby]
havenn has quit [Remote host closed the connection]
Ontolog has quit [Quit: Ontolog]
khakimov has quit [Quit: Computer has gone to sleep.]
UdontKnow is now known as e
Ontolog has joined #ruby
axl_ has quit [Quit: axl_]
havenn has joined #ruby
mark_locklear has quit [Remote host closed the connection]
<snorkdude>
canton7, I'm not getting the expected result but now this is easy for me to debug. Thanks mate!
<canton7>
cool, np! let me know what I did wrong
<snorkdude>
I'm sure it has to do with the array v object. Working on it now.
fbernier has quit [Ping timeout: 246 seconds]
mmitchell has joined #ruby
cascalheira has joined #ruby
s0ber has quit [Read error: Connection reset by peer]
s0ber has joined #ruby
cascalheira has quit [Read error: Connection reset by peer]
musl has quit [Quit: WeeChat 0.3.9-rc1]
ephemerian has joined #ruby
<bricker88>
I'm trying to write a sort of custom rescue by putting some code inside of a block, and then doing some custom behavior in certain scenarios. Specifically, it's an HTTP request to an API and I'd like to do something custom on 404 response, 500 response, etc. Along these lines: https://gist.github.com/3626297 I know there are examples of this out there but I can't seem to find any lying around
kvirani has joined #ruby
mklappstuhl has joined #ruby
jimeh4 has quit [Ping timeout: 246 seconds]
xiaotian has joined #ruby
<mneorr>
any Padrino / Datamapper users here? I have a quick , noob question :)
havenn has quit [Remote host closed the connection]
atmosx has joined #ruby
robustus has quit [Ping timeout: 244 seconds]
maxmanders has joined #ruby
tiripamwe has quit [Ping timeout: 246 seconds]
jharr has joined #ruby
<maxmanders>
Hey, new to ruby and using Chef... in iterm2 or gnu screen all fine, but in tmux I get errors about not finding gems...
<maxmanders>
... not familiar enough with how ruby searches for gems to kmow where to start digging... ideas?
Takehiro has joined #ruby
<jharr>
When I use an @instance variable inside a lambda, what's the object that the instance variable is tied to?
snorkdude has quit [Remote host closed the connection]
clj_newb has joined #ruby
rubbish has joined #ruby
jimeh4 has joined #ruby
rubbish has left #ruby [#ruby]
snorkdude has joined #ruby
<Hanmac>
jharr depending how the lambda is called
mmitchell has quit [Remote host closed the connection]
the_jeebster1 has quit [Remote host closed the connection]
c0rn_ has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby
sailias has quit [Quit: Leaving.]
<jharr>
Hanmac: Any good reference websites for this? It's hard finding concise docs. Most things I'm finding are code vomit blog posts.
<mneorr>
when I run `padrino console` ; create my object with the data; call object.save , everything works OK. But when I run the code from the website, it generates "TypeError at /json
<snorkdude>
canton7, in line 34 shouldnt it be grid = Grid.initialize(5, 5, 5)?
<canton7>
snorkdude, no
<atmosx>
ah you're working with datamapper
<mneorr>
atmosx: and the interesting fact is that if I don't call request.save, everything works good, but obviously - you can't find it anymore :)
<canton7>
snorkdude, #new does lots of stuff, memory allocation etc, which includes calling #initialize
johnlcox has joined #ruby
<snorkdude>
canton7, I see...
<mneorr>
just wanted to try it on a small project; Haven't tried if this works with AR
khakimov has joined #ruby
<snorkdude>
canton7, what language are you most fluent in besides Ruby? The array issues should be fine, I'm just trying to decipher why I am not getting the expected result.
cj3kim has quit [Quit: This computer has gone to sleep]
jeff_sebring has joined #ruby
Virunga has joined #ruby
havenn has quit [Remote host closed the connection]
<canton7>
snorkdude, C#, php, C for microcontrollers, python
GoGoGarrett has quit [Remote host closed the connection]
mmitchell has quit [Remote host closed the connection]
musl has joined #ruby
qwerxy has quit [Quit: offski]
rorider has quit [Quit: Leaving]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
musl has quit [Client Quit]
seanwash has joined #ruby
Speed has quit [Remote host closed the connection]
c0rn_ has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Ping timeout: 246 seconds]
jamaa has joined #ruby
kvirani has quit [Remote host closed the connection]
<jamaa>
hi, I have two DateTime objects, one holding date and another one holding time, how can I combine them together ? is there some method for this ?
jesseatkinson has joined #ruby
jesseatkinson has quit [Client Quit]
fantazo has joined #ruby
mklappstuhl has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
joshman_ has quit [Ping timeout: 240 seconds]
linuxsable has quit [Quit: linuxsable]
recycle has quit [Remote host closed the connection]
smellynoser has quit [Quit: This computer has gone to sleep]
hadees has quit [Quit: hadees]
havenn has quit [Remote host closed the connection]
c0rn_ has joined #ruby
carloslopes has quit [Quit: Leaving.]
proshot is now known as statarb3
Takehiro has joined #ruby
<reactormonk>
jamaa: how about adding them together?
<jamaa>
reactormonk, how ? I tried d+t but get an error
johnlcox has quit [Quit: Computer has gone to sleep.]
<reactormonk>
jamaa: which one?
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
linuxsable has joined #ruby
<jamaa>
reactormonk, TypeError: expected numeric
bapa has quit [Remote host closed the connection]
<reactormonk>
jamaa: do a #to_i on the second one
jasonkuhrt has quit [Quit: Leaving...]
snorkdude has joined #ruby
havenn has joined #ruby
snorkdude has quit [Remote host closed the connection]
mafs has joined #ruby
Takehiro has quit [Ping timeout: 248 seconds]
geggam has quit [Ping timeout: 268 seconds]
kirun has quit [Quit: Client exiting]
Ontolog has quit [Remote host closed the connection]
CarlB_the_great has quit [Remote host closed the connection]
jeff_sebring has quit [Quit: Leaving]
Ontolog has joined #ruby
<jamaa>
reactormonk, hmmm there is no to_i to DateTime, and I can't figure out something similar
bapa has joined #ruby
musl has joined #ruby
johnlcox has joined #ruby
baphled has quit [Read error: Connection reset by peer]
musl has quit [Client Quit]
baphled has joined #ruby
Ontolog has left #ruby [#ruby]
mklappstuhl has joined #ruby
minijupe has quit [Quit: minijupe]
sdwrage has joined #ruby
robbyoconnor has joined #ruby
jonathanwallace has joined #ruby
xorigin has quit [Quit: leaving]
musl has joined #ruby
dangerousdave has quit [Quit: Leaving...]
musl has quit [Client Quit]
takamichi has quit [Ping timeout: 276 seconds]
musl has joined #ruby
takamichi has joined #ruby
hadees has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
musl has quit [Client Quit]
musl has joined #ruby
pricees has quit [Quit: leaving]
recycle has joined #ruby
musl has quit [Client Quit]
banseljaj is now known as imami|afk
ph^ has quit [Remote host closed the connection]
musl has joined #ruby
stepnem has quit [Ping timeout: 252 seconds]
saschagehlich has quit [Quit: saschagehlich]
recycle has quit [Remote host closed the connection]
torarne1 has joined #ruby
musl has quit [Client Quit]
emmanuelux has joined #ruby
musl has joined #ruby
<torarne1>
Q: Is there a way to have a rubygem that builds a .cpp file into an exectuable? The extensions mechanism with 'mkmf' seems to build a shared library :/
hadees has quit [Ping timeout: 246 seconds]
mengu has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
Guest69953 has joined #ruby
<Guest69953>
hi
recycle has joined #ruby
<Guest69953>
any one wana chat
prath has quit [Remote host closed the connection]
bbttxu has quit [Quit: bbttxu]
cjs226 has joined #ruby
philcrissman_ has joined #ruby
sterex has quit [Read error: Connection reset by peer]
philcrissman_ has quit [Remote host closed the connection]
deryl has quit [Read error: Connection reset by peer]
sterex has joined #ruby
deryl has joined #ruby
jlogsdon has quit [Remote host closed the connection]
mklappstuhl has quit [Ping timeout: 246 seconds]
Vert has joined #ruby
philcrissman has quit [Ping timeout: 252 seconds]
wmoxam has quit [Quit: leaving]
orzech has joined #ruby
orzech has left #ruby [#ruby]
johnlcox has quit [Ping timeout: 268 seconds]
DrShoggoth has quit [Quit: Leaving]
<TTilus>
no
<Guest69953>
y?
recycle has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
<fowl>
z
bradhe has joined #ruby
spopescu has quit [Quit: Leaving]
<eykosioux>
Ω
br4ndon has joined #ruby
<davidcelis>
∑
<Guest69953>
;)
<TTilus>
ö
<Guest69953>
<3
<davidcelis>
no
<maxmanders>
if $GEM_PATH and $GEM_HOME aren't set in my environment, how to I determine where gems will get loaded from?
<TTilus>
maxmanders: gem --help doesnt help you?
<Guest69953>
bye borning
<maxmanders>
TTilus: apologies - just getting started, I presume I should use --help, man and Google before I ask in here?
internet_user has quit [Remote host closed the connection]
Nisstyre_ has quit [Read error: Connection reset by peer]
hipertracker has quit [Quit: hipertracker]
recycle has joined #ruby
recycle has quit [Remote host closed the connection]
<TTilus>
maxmanders: not a bad approach
Guest69953 has quit []
baphled has quit [Ping timeout: 240 seconds]
<TTilus>
maxmanders: and --help man gg is pretty fast, you dont need to reald the whole /r/programming on the way :)
bier has quit [Read error: Operation timed out]
statarb3 has quit [Quit: Leaving]
havenn has joined #ruby
<TTilus>
although if you do you sure learn alot evdry time ;)
yasushi has joined #ruby
zamn has joined #ruby
<zamn>
hey im trying to instal this qtbindings gem and i keep getting errors from CMake such as: Could NOT find Ruby (missing: RUBY_INCLUDE_DIR RUBY_LIBRARY)
<zamn>
which im pretty sure i've set both of those
t0rc has joined #ruby
<t0rc>
whats the difference between unit testing and a spec?
<eykosioux>
they're not mutually exclusive
<eykosioux>
a spec is a specification, i'd say, and it could be for a unit test
<eykosioux>
unit testing is what you can do with specs
stopbit has quit [Quit: Leaving]
CodeFriar has quit [Quit: Leaving...]
yasushi has quit [Ping timeout: 245 seconds]
<maxmanders>
TTilus: many thanks, I'll come back when I'm a more experienced Rubyist with less beginner questions to ask :-)
billiam has quit [Quit: Leaving]
CodeFriar has joined #ruby
s0ber has quit [Read error: Connection reset by peer]
lampe2 has joined #ruby
<t0rc>
eykosioux: mm good point. thanks.
invisime has quit [Quit: Leaving.]
s0ber has joined #ruby
pipopopo has quit [Ping timeout: 255 seconds]
Foxandxss has joined #ruby
<davidcelis>
honestly a spec is a type of unit testing.
<davidcelis>
the difference is semantics
tommyvyo has joined #ruby
axl_ has quit [Quit: axl_]
SCommette has quit [Quit: SCommette]
cakehero has quit [Quit: Computer has gone to sleep.]
cjs226 has quit []
<t0rc>
davidcelis: that's kind of what i've gathered from seeing these things. It seems like specs are more a seemingly "english" and verbose way to describe your unit tests
eykosioux has quit [Quit: eykosioux]
cj3kim has quit [Quit: This computer has gone to sleep]
bier has joined #ruby
recycle has joined #ruby
lampe2 has quit [Quit: Verlassend]
zeromodulus has quit [Remote host closed the connection]
khakimov has quit [Quit: Computer has gone to sleep.]
Synthead has quit [Quit: p33 ba115]
zeromodulus has joined #ruby
havenn has quit [Remote host closed the connection]
zamn has quit [Quit: leaving]
cableray has joined #ruby
emmanuelux has quit [Remote host closed the connection]
<maxmanders>
Fixed the problem I was having - RVM wasn't being called so unexpected version of ruby being used - fixed that and gem install chef; everything working
billyoc` has joined #ruby
Nisstyre_ has joined #ruby
billyoc` has quit [Remote host closed the connection]
workmad3 has quit [Read error: Operation timed out]
billyoc has quit [Ping timeout: 252 seconds]
gfontenot has quit []
stkowski has quit [Quit: stkowski]
zeromodulus has quit [Ping timeout: 260 seconds]
jasonkuhrt has joined #ruby
Takehiro has joined #ruby
jasonkuhrt has quit [Client Quit]
aarwine has joined #ruby
<aarwine>
Is this the place to ask questions about gem sources?
jimeh4 has quit [Ping timeout: 264 seconds]
frogprince_mac has quit [Quit: Leaving...]
jjang has joined #ruby
havenn has joined #ruby
Virunga is now known as notte
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
sent-hil has joined #ruby
Takehiro has quit [Ping timeout: 244 seconds]
<sent-hil>
is there something like mockingbird for fb api?
notte is now known as Fragola
xiaotian has quit [Quit: Computer has gone to sleep.]
iamjarvo has joined #ruby
<iamjarvo>
hi all, i was wondering how does ruby know to keep track of values being returned during recursion
machty has quit [Read error: Connection reset by peer]
machty_ is now known as machty
Free-Beer is now known as Fragola
<iamjarvo>
so basically it will keep going through till it finds the base case but then in the end it will add them how
Fragola is now known as Portos
<reactormonk>
iamjarvo: ruby has expressions only, and returns the value of the last expression in a method by default
Portos is now known as Portos-
sent-hil has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 252 seconds]
<iamjarvo>
reactormonk: understood but how does it know to do the calulation at the end. so when it hits the base case it basically goes back up each method call and then adds up the numbers
<GeekOnCoffee>
you're setting a variable that's getting immediately thrown away
<GeekOnCoffee>
t
<GeekOnCoffee>
that's a waste of cycles
cantonic has joined #ruby
<goyox86>
Yup think the same (is not my code BTW) ;)
<rking>
goyox86: I was going to say what's the point of 1.
<GeekOnCoffee>
if you were doing @graph ||= Koala::Facebook::API.new(oauth_token)
jasonkuhrt has joined #ruby
<GeekOnCoffee>
then there'd at least be a point to it
mneorr has quit [Quit: Leaving.]
vlad_starkov has quit [Ping timeout: 268 seconds]
<rking>
And also I was going to chime in with my daily hate against use of needless parens, but I botched the gist comment (didn't indent), so my coolpoints are lost. =(
axl_ has joined #ruby
ph^ has quit [Ping timeout: 240 seconds]
<goyox86>
Well the thing is that at some point of the "consumer" code calls connect and assings it to a var
<goyox86>
Thanks guys, I know what to do: SUPER REFACTOR of this code I have here ;)
<goyox86>
Cheers!
* goyox86
going home :p
goyox86 has quit [Remote host closed the connection]
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
<t0rc>
I just ran: which bundle and it gives me the path to my .rvm
Criztian has quit [Remote host closed the connection]
<t0rc>
then I run: bundle
<t0rc>
and it says it's not installed
rdesfo has joined #ruby
rdesfo has left #ruby [#ruby]
<t0rc>
gem list also shows bundler as being installed
<iamjarvo>
t0rc: did you try cding in and out of the directory
<t0rc>
iamjarvo: yes, just tried, no change
stephenjudkins has joined #ruby
<dekz>
Is anyone aware if it is possible to access the rackup options inside a unicorn configuration file (I'd like to get the port supplied which doesn't seem to be bassed into the configuration)
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
<iamjarvo>
and when you do rvm gemset list it is using the right gemset
dpk has quit [Quit: Asleep at the keyboard.]
uris has quit [Quit: leaving]
M- has joined #ruby
<t0rc>
iamjarvo: well I didn't explicitly configure gemsets
<t0rc>
but yes
<t0rc>
I am using the system ruby and it is using: .rvm/gems/system
cakehero has quit [Quit: Computer has gone to sleep.]
specialGuest has quit [Ping timeout: 276 seconds]
Jamone has joined #ruby
Jamone has quit [Changing host]
Jamone has joined #ruby
lolsuper_ has quit [Ping timeout: 246 seconds]
jasonkuhrt has quit [Quit: Leaving...]
lolsuper_ has joined #ruby
lolsuper_ has quit [Changing host]
lolsuper_ has joined #ruby
punkrawkR has quit [Read error: Connection reset by peer]
<bricker88>
What is better to ensure that a method returns an array: `def columns; @columns || []; end`, or `attr_reader :columns; def initialize; @columns = []; end`
axl_ has quit [Quit: axl_]
stephenjudkins has quit [Quit: stephenjudkins]
havenn has joined #ruby
LouisGB has quit [Ping timeout: 255 seconds]
mikepack has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 245 seconds]
seanwash has quit [Quit: Computer has gone to sleep.]
Virunga has joined #ruby
chrishunt has joined #ruby
Virunga is now known as O123
awarner has quit [Remote host closed the connection]
cantonic has quit [Quit: cantonic]
butblack has joined #ruby
smellynoser has joined #ruby
tiripamwe has joined #ruby
BullShark has quit [Ping timeout: 240 seconds]
<davidcelis>
depends on if you want columns to be an attr?
BSaboia has quit [Read error: Connection reset by peer]
BullShark` has joined #ruby
AlbireoX`Laptop has quit [Remote host closed the connection]
stephenjudkins has joined #ruby
havenn has quit [Remote host closed the connection]
jjang has quit [Remote host closed the connection]